]>
Commit | Line | Data |
---|---|---|
a16d3c04 KB |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | # Guess values for system-dependent variables and create Makefiles. | |
0709ee62 | 44 | # Generated automatically using autoconf version 2.13 |
a16d3c04 KB |
45 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
46 | # | |
47 | # This configure script is free software; the Free Software Foundation | |
48 | # gives unlimited permission to copy, distribute and modify it. | |
49 | ||
50 | # Defaults: | |
51 | ac_help= | |
52 | ac_default_prefix=/usr/local | |
53 | # Any additions from configure.in: | |
f7a11f8c RR |
54 | ac_help="$ac_help |
55 | --enable-gui use GUI classes" | |
a16d3c04 KB |
56 | ac_help="$ac_help |
57 | --with-gtk use GTK+" | |
58 | ac_help="$ac_help | |
59 | --with-motif use Motif/Lesstif" | |
60 | ac_help="$ac_help | |
61 | --with-wine use WINE" | |
62 | ac_help="$ac_help | |
63 | --with-cygwin use Cygwin for MS-Windows" | |
64 | ac_help="$ac_help | |
65 | --with-mingw use GCC Minimal MS-Windows" | |
66 | ac_help="$ac_help | |
67 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
68 | ac_help="$ac_help | |
69 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
70 | ac_help="$ac_help | |
71 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
72 | ac_help="$ac_help | |
73 | --with-zlib use zlib for LZW compression" | |
74 | ac_help="$ac_help | |
75 | --with-libpng use libpng (PNG image format)" | |
76 | ac_help="$ac_help | |
a16d3c04 KB |
77 | --with-libjpeg use libjpeg (JPEG file format)" |
78 | ac_help="$ac_help | |
79 | --with-opengl use OpenGL (or Mesa)" | |
80 | ac_help="$ac_help | |
81 | --with-odbc use the IODBC and wxODBC classes" | |
82 | ac_help="$ac_help | |
83 | --enable-shared create shared library code" | |
84 | ac_help="$ac_help | |
85 | --enable-optimise create optimised code" | |
86 | ac_help="$ac_help | |
87 | --enable-debug same as debug_flag and debug_info" | |
88 | ac_help="$ac_help | |
89 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
90 | ac_help="$ac_help | |
91 | --enable-debug_info create code with debugging information" | |
92 | ac_help="$ac_help | |
93 | --enable-debug_gdb create code with extra GDB debugging information" | |
94 | ac_help="$ac_help | |
95 | --enable-debug_cntxt use wxDebugContext" | |
96 | ac_help="$ac_help | |
97 | --enable-mem_tracing create code with memory tracing" | |
98 | ac_help="$ac_help | |
99 | --enable-profile create code with profiling information" | |
100 | ac_help="$ac_help | |
101 | --enable-no_rtti create code without RTTI information" | |
102 | ac_help="$ac_help | |
103 | --enable-no_exceptions create code without exceptions information" | |
104 | ac_help="$ac_help | |
105 | --enable-permissive compile code disregarding strict ANSI" | |
106 | ac_help="$ac_help | |
107 | --enable-no_deps create code without dependency information" | |
108 | ac_help="$ac_help | |
a16d3c04 KB |
109 | --enable-intl use internationalization system" |
110 | ac_help="$ac_help | |
111 | --enable-config use wxConfig (and derived) classes" | |
112 | ac_help="$ac_help | |
113 | --enable-sockets use socket/network classes" | |
114 | ac_help="$ac_help | |
1c8515f9 KB |
115 | --enable-dialupman use dialup network classes" |
116 | ac_help="$ac_help | |
a16d3c04 KB |
117 | --enable-ipc use interprocess communication (wxSocket etc.)" |
118 | ac_help="$ac_help | |
119 | --enable-apple_ieee use the Apple IEEE codec" | |
120 | ac_help="$ac_help | |
121 | --enable-timedate use date/time classes" | |
122 | ac_help="$ac_help | |
123 | --enable-wave use wxWave class" | |
124 | ac_help="$ac_help | |
125 | --enable-fraction use wxFraction class" | |
126 | ac_help="$ac_help | |
127 | --enable-dynlib use wxLibrary class for DLL loading" | |
128 | ac_help="$ac_help | |
129 | --enable-longlong use wxLongLong class" | |
130 | ac_help="$ac_help | |
131 | --enable-log use logging system" | |
132 | ac_help="$ac_help | |
133 | --enable-streams use wxStream etc classes" | |
134 | ac_help="$ac_help | |
135 | --enable-file use wxFile classes" | |
136 | ac_help="$ac_help | |
137 | --enable-textfile use wxTextFile classes" | |
138 | ac_help="$ac_help | |
139 | --enable-unicode compile wxString with Unicode support" | |
140 | ac_help="$ac_help | |
141 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
142 | ac_help="$ac_help | |
143 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
144 | ac_help="$ac_help | |
145 | --enable-joystick compile in joystick support (Linux only)" | |
146 | ac_help="$ac_help | |
147 | --enable-std_iostreams use standard C++ stream classes" | |
148 | ac_help="$ac_help | |
149 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
150 | ac_help="$ac_help | |
151 | --enable-fs_zip use virtual ZIP filesystems" | |
152 | ac_help="$ac_help | |
153 | --enable-zipstream use wxZipInputStream" | |
154 | ac_help="$ac_help | |
155 | --enable-threads use threads" | |
156 | ac_help="$ac_help | |
157 | --enable-serial use class serialization" | |
158 | ac_help="$ac_help | |
159 | --enable-docview use document view architecture" | |
160 | ac_help="$ac_help | |
161 | --enable-help use help (using external browser at present)" | |
162 | ac_help="$ac_help | |
163 | --enable-constraints use layout-constraints system" | |
164 | ac_help="$ac_help | |
165 | --enable-printarch use printing architecture" | |
166 | ac_help="$ac_help | |
167 | --enable-mdi use multiple document interface architecture" | |
168 | ac_help="$ac_help | |
169 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
170 | ac_help="$ac_help | |
171 | --enable-prologio use Prolog IO library" | |
172 | ac_help="$ac_help | |
173 | --enable-resources use wxWindows resources" | |
174 | ac_help="$ac_help | |
175 | --enable-xresources use X resources for save (default for gtk+)" | |
176 | ac_help="$ac_help | |
177 | --enable-clipboard use wxClipboard classes" | |
178 | ac_help="$ac_help | |
179 | --enable-dnd use Drag'n'Drop classes" | |
180 | ac_help="$ac_help | |
181 | --enable-wxtree make wxTree library" | |
182 | ac_help="$ac_help | |
183 | --enable-controls use all usual controls" | |
184 | ac_help="$ac_help | |
185 | --enable-accel use accelerators" | |
186 | ac_help="$ac_help | |
187 | --enable-caret use wxCaret class" | |
188 | ac_help="$ac_help | |
189 | --enable-bmpbutton use wxBitmapButton class" | |
190 | ac_help="$ac_help | |
191 | --enable-checkbox use wxCheckBox class" | |
192 | ac_help="$ac_help | |
193 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
194 | ac_help="$ac_help | |
195 | --enable-choice use wxChoice class" | |
196 | ac_help="$ac_help | |
197 | --enable-combobox use wxComboBox classes" | |
198 | ac_help="$ac_help | |
199 | --enable-gauge use wxGauge class" | |
200 | ac_help="$ac_help | |
201 | --enable-grid use wxGrid class" | |
202 | ac_help="$ac_help | |
2726c66d KB |
203 | --enable-newgrid use new wxGrid class" |
204 | ac_help="$ac_help | |
a16d3c04 KB |
205 | --enable-imaglist use wxImageList class" |
206 | ac_help="$ac_help | |
207 | --enable-listbox use wxListBox class" | |
208 | ac_help="$ac_help | |
209 | --enable-listctrl use wxListCtrl class" | |
210 | ac_help="$ac_help | |
211 | --enable-notebook use wxNotebook class" | |
212 | ac_help="$ac_help | |
213 | --enable-radiobox use wxRadioBox class" | |
214 | ac_help="$ac_help | |
215 | --enable-radiobtn use wxRadioButton class" | |
216 | ac_help="$ac_help | |
217 | --enable-sash use wxSashWindow class" | |
218 | ac_help="$ac_help | |
219 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
220 | ac_help="$ac_help | |
221 | --enable-slider use wxSlider class" | |
222 | ac_help="$ac_help | |
223 | --enable-spinbtn use wxSpinButton class" | |
224 | ac_help="$ac_help | |
225 | --enable-splitter use wxSplitterWindow class" | |
226 | ac_help="$ac_help | |
227 | --enable-statbmp use wxStaticBitmap class" | |
228 | ac_help="$ac_help | |
229 | --enable-statbox use wxStaticBox class" | |
230 | ac_help="$ac_help | |
231 | --enable-statline use wxStaticLine class" | |
232 | ac_help="$ac_help | |
233 | --enable-statusbar use wxStatusBar class" | |
234 | ac_help="$ac_help | |
235 | --enable-tabdialog use wxTabControl class" | |
236 | ac_help="$ac_help | |
237 | --enable-toolbar use wxToolBar class" | |
238 | ac_help="$ac_help | |
239 | --enable-treectrl use wxTreeCtrl class" | |
240 | ac_help="$ac_help | |
241 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
242 | ac_help="$ac_help | |
243 | --enable-dirdlg use wxDirDialog" | |
244 | ac_help="$ac_help | |
245 | --enable-textdlg use wxTextDialog" | |
246 | ac_help="$ac_help | |
247 | --enable-tipdlg use startup tips" | |
248 | ac_help="$ac_help | |
249 | --enable-progressdlg use wxProgressDialog" | |
250 | ac_help="$ac_help | |
251 | --enable-miniframe use wxMiniFrame class" | |
252 | ac_help="$ac_help | |
253 | --enable-html use wxHTML sub-library" | |
254 | ac_help="$ac_help | |
255 | --enable-tooltips use wxToolTip class" | |
256 | ac_help="$ac_help | |
257 | --enable-splines use spline drawing code" | |
258 | ac_help="$ac_help | |
259 | --enable-validators use wxValidator and derived classes" | |
260 | ac_help="$ac_help | |
261 | --enable-busyinfo use wxBusyInfo" | |
1c8515f9 KB |
262 | ac_help="$ac_help |
263 | --enable-gif use gif images (GIF file format)" | |
264 | ac_help="$ac_help | |
265 | --enable-pcx use pcx images (PCX file format)" | |
266 | ac_help="$ac_help | |
267 | --enable-pnm use pnm images (PNM file format)" | |
a16d3c04 KB |
268 | ac_help="$ac_help |
269 | --with-x use the X Window System" | |
270 | ||
271 | # Initialize some variables set by options. | |
272 | # The variables have the same names as the options, with | |
273 | # dashes changed to underlines. | |
274 | build=NONE | |
275 | cache_file=./config.cache | |
276 | exec_prefix=NONE | |
277 | host=NONE | |
278 | no_create= | |
279 | nonopt=NONE | |
280 | no_recursion= | |
281 | prefix=NONE | |
282 | program_prefix=NONE | |
283 | program_suffix=NONE | |
284 | program_transform_name=s,x,x, | |
285 | silent= | |
286 | site= | |
287 | srcdir= | |
288 | target=NONE | |
289 | verbose= | |
290 | x_includes=NONE | |
291 | x_libraries=NONE | |
292 | bindir='${exec_prefix}/bin' | |
293 | sbindir='${exec_prefix}/sbin' | |
294 | libexecdir='${exec_prefix}/libexec' | |
295 | datadir='${prefix}/share' | |
296 | sysconfdir='${prefix}/etc' | |
297 | sharedstatedir='${prefix}/com' | |
298 | localstatedir='${prefix}/var' | |
299 | libdir='${exec_prefix}/lib' | |
300 | includedir='${prefix}/include' | |
301 | oldincludedir='/usr/include' | |
302 | infodir='${prefix}/info' | |
303 | mandir='${prefix}/man' | |
304 | ||
305 | # Initialize some other variables. | |
306 | subdirs= | |
307 | MFLAGS= MAKEFLAGS= | |
0709ee62 | 308 | SHELL=${CONFIG_SHELL-/bin/sh} |
a16d3c04 KB |
309 | # Maximum number of lines to put in a shell here document. |
310 | ac_max_here_lines=12 | |
311 | ||
312 | ac_prev= | |
313 | for ac_option | |
314 | do | |
315 | ||
316 | # If the previous option needs an argument, assign it. | |
317 | if test -n "$ac_prev"; then | |
318 | eval "$ac_prev=\$ac_option" | |
319 | ac_prev= | |
320 | continue | |
321 | fi | |
322 | ||
323 | case "$ac_option" in | |
324 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
325 | *) ac_optarg= ;; | |
326 | esac | |
327 | ||
328 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
329 | ||
330 | case "$ac_option" in | |
331 | ||
332 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
333 | ac_prev=bindir ;; | |
334 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
335 | bindir="$ac_optarg" ;; | |
336 | ||
337 | -build | --build | --buil | --bui | --bu) | |
338 | ac_prev=build ;; | |
339 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
340 | build="$ac_optarg" ;; | |
341 | ||
342 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
343 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
344 | ac_prev=cache_file ;; | |
345 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
346 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
347 | cache_file="$ac_optarg" ;; | |
348 | ||
349 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
350 | ac_prev=datadir ;; | |
351 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
352 | | --da=*) | |
353 | datadir="$ac_optarg" ;; | |
354 | ||
355 | -disable-* | --disable-*) | |
356 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
357 | # Reject names that are not valid shell variable names. | |
358 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
359 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
360 | fi | |
361 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
362 | eval "enable_${ac_feature}=no" ;; | |
363 | ||
364 | -enable-* | --enable-*) | |
365 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
366 | # Reject names that are not valid shell variable names. | |
367 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
368 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
369 | fi | |
370 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
371 | case "$ac_option" in | |
372 | *=*) ;; | |
373 | *) ac_optarg=yes ;; | |
374 | esac | |
375 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
376 | ||
377 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
378 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
379 | | --exec | --exe | --ex) | |
380 | ac_prev=exec_prefix ;; | |
381 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
382 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
383 | | --exec=* | --exe=* | --ex=*) | |
384 | exec_prefix="$ac_optarg" ;; | |
385 | ||
386 | -gas | --gas | --ga | --g) | |
387 | # Obsolete; use --with-gas. | |
388 | with_gas=yes ;; | |
389 | ||
390 | -help | --help | --hel | --he) | |
391 | # Omit some internal or obsolete options to make the list less imposing. | |
392 | # This message is too long to be a string in the A/UX 3.1 sh. | |
393 | cat << EOF | |
394 | Usage: configure [options] [host] | |
395 | Options: [defaults in brackets after descriptions] | |
396 | Configuration: | |
397 | --cache-file=FILE cache test results in FILE | |
398 | --help print this message | |
399 | --no-create do not create output files | |
400 | --quiet, --silent do not print \`checking...' messages | |
401 | --version print the version of autoconf that created configure | |
402 | Directory and file names: | |
403 | --prefix=PREFIX install architecture-independent files in PREFIX | |
404 | [$ac_default_prefix] | |
405 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
406 | [same as prefix] | |
407 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
408 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
409 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
410 | --datadir=DIR read-only architecture-independent data in DIR | |
411 | [PREFIX/share] | |
412 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
413 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
414 | [PREFIX/com] | |
415 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
416 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
417 | --includedir=DIR C header files in DIR [PREFIX/include] | |
418 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
419 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
420 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
421 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
422 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
423 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
424 | --program-transform-name=PROGRAM | |
425 | run sed PROGRAM on installed program names | |
426 | EOF | |
427 | cat << EOF | |
428 | Host type: | |
429 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
430 | --host=HOST configure for HOST [guessed] | |
431 | --target=TARGET configure for TARGET [TARGET=HOST] | |
432 | Features and packages: | |
433 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
434 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
435 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
436 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
437 | --x-includes=DIR X include files are in DIR | |
438 | --x-libraries=DIR X library files are in DIR | |
439 | EOF | |
440 | if test -n "$ac_help"; then | |
441 | echo "--enable and --with options recognized:$ac_help" | |
442 | fi | |
443 | exit 0 ;; | |
444 | ||
445 | -host | --host | --hos | --ho) | |
446 | ac_prev=host ;; | |
447 | -host=* | --host=* | --hos=* | --ho=*) | |
448 | host="$ac_optarg" ;; | |
449 | ||
450 | -includedir | --includedir | --includedi | --included | --include \ | |
451 | | --includ | --inclu | --incl | --inc) | |
452 | ac_prev=includedir ;; | |
453 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
454 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
455 | includedir="$ac_optarg" ;; | |
456 | ||
457 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
458 | ac_prev=infodir ;; | |
459 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
460 | infodir="$ac_optarg" ;; | |
461 | ||
462 | -libdir | --libdir | --libdi | --libd) | |
463 | ac_prev=libdir ;; | |
464 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
465 | libdir="$ac_optarg" ;; | |
466 | ||
467 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
468 | | --libexe | --libex | --libe) | |
469 | ac_prev=libexecdir ;; | |
470 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
471 | | --libexe=* | --libex=* | --libe=*) | |
472 | libexecdir="$ac_optarg" ;; | |
473 | ||
474 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
475 | | --localstate | --localstat | --localsta | --localst \ | |
476 | | --locals | --local | --loca | --loc | --lo) | |
477 | ac_prev=localstatedir ;; | |
478 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
479 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
480 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
481 | localstatedir="$ac_optarg" ;; | |
482 | ||
483 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
484 | ac_prev=mandir ;; | |
485 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
486 | mandir="$ac_optarg" ;; | |
487 | ||
488 | -nfp | --nfp | --nf) | |
489 | # Obsolete; use --without-fp. | |
490 | with_fp=no ;; | |
491 | ||
492 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
493 | | --no-cr | --no-c) | |
494 | no_create=yes ;; | |
495 | ||
496 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
497 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
498 | no_recursion=yes ;; | |
499 | ||
500 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
501 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
502 | | --oldin | --oldi | --old | --ol | --o) | |
503 | ac_prev=oldincludedir ;; | |
504 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
505 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
506 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
507 | oldincludedir="$ac_optarg" ;; | |
508 | ||
509 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
510 | ac_prev=prefix ;; | |
511 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
512 | prefix="$ac_optarg" ;; | |
513 | ||
514 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
515 | | --program-pre | --program-pr | --program-p) | |
516 | ac_prev=program_prefix ;; | |
517 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
518 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
519 | program_prefix="$ac_optarg" ;; | |
520 | ||
521 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
522 | | --program-suf | --program-su | --program-s) | |
523 | ac_prev=program_suffix ;; | |
524 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
525 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
526 | program_suffix="$ac_optarg" ;; | |
527 | ||
528 | -program-transform-name | --program-transform-name \ | |
529 | | --program-transform-nam | --program-transform-na \ | |
530 | | --program-transform-n | --program-transform- \ | |
531 | | --program-transform | --program-transfor \ | |
532 | | --program-transfo | --program-transf \ | |
533 | | --program-trans | --program-tran \ | |
534 | | --progr-tra | --program-tr | --program-t) | |
535 | ac_prev=program_transform_name ;; | |
536 | -program-transform-name=* | --program-transform-name=* \ | |
537 | | --program-transform-nam=* | --program-transform-na=* \ | |
538 | | --program-transform-n=* | --program-transform-=* \ | |
539 | | --program-transform=* | --program-transfor=* \ | |
540 | | --program-transfo=* | --program-transf=* \ | |
541 | | --program-trans=* | --program-tran=* \ | |
542 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
543 | program_transform_name="$ac_optarg" ;; | |
544 | ||
545 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
546 | | -silent | --silent | --silen | --sile | --sil) | |
547 | silent=yes ;; | |
548 | ||
549 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
550 | ac_prev=sbindir ;; | |
551 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
552 | | --sbi=* | --sb=*) | |
553 | sbindir="$ac_optarg" ;; | |
554 | ||
555 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
556 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
557 | | --sharedst | --shareds | --shared | --share | --shar \ | |
558 | | --sha | --sh) | |
559 | ac_prev=sharedstatedir ;; | |
560 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
561 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
562 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
563 | | --sha=* | --sh=*) | |
564 | sharedstatedir="$ac_optarg" ;; | |
565 | ||
566 | -site | --site | --sit) | |
567 | ac_prev=site ;; | |
568 | -site=* | --site=* | --sit=*) | |
569 | site="$ac_optarg" ;; | |
570 | ||
571 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
572 | ac_prev=srcdir ;; | |
573 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
574 | srcdir="$ac_optarg" ;; | |
575 | ||
576 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
577 | | --syscon | --sysco | --sysc | --sys | --sy) | |
578 | ac_prev=sysconfdir ;; | |
579 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
580 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
581 | sysconfdir="$ac_optarg" ;; | |
582 | ||
583 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
584 | ac_prev=target ;; | |
585 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
586 | target="$ac_optarg" ;; | |
587 | ||
588 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
589 | verbose=yes ;; | |
590 | ||
591 | -version | --version | --versio | --versi | --vers) | |
0709ee62 | 592 | echo "configure generated by autoconf version 2.13" |
a16d3c04 KB |
593 | exit 0 ;; |
594 | ||
595 | -with-* | --with-*) | |
596 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
597 | # Reject names that are not valid shell variable names. | |
598 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
599 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
600 | fi | |
601 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
602 | case "$ac_option" in | |
603 | *=*) ;; | |
604 | *) ac_optarg=yes ;; | |
605 | esac | |
606 | eval "with_${ac_package}='$ac_optarg'" ;; | |
607 | ||
608 | -without-* | --without-*) | |
609 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
610 | # Reject names that are not valid shell variable names. | |
611 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
612 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
613 | fi | |
614 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
615 | eval "with_${ac_package}=no" ;; | |
616 | ||
617 | --x) | |
618 | # Obsolete; use --with-x. | |
619 | with_x=yes ;; | |
620 | ||
621 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
622 | | --x-incl | --x-inc | --x-in | --x-i) | |
623 | ac_prev=x_includes ;; | |
624 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
625 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
626 | x_includes="$ac_optarg" ;; | |
627 | ||
628 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
629 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
630 | ac_prev=x_libraries ;; | |
631 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
632 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
633 | x_libraries="$ac_optarg" ;; | |
634 | ||
635 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
636 | ;; | |
637 | ||
638 | *) | |
639 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
640 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
641 | fi | |
642 | if test "x$nonopt" != xNONE; then | |
643 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
644 | fi | |
645 | nonopt="$ac_option" | |
646 | ;; | |
647 | ||
648 | esac | |
649 | done | |
650 | ||
651 | if test -n "$ac_prev"; then | |
652 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
653 | fi | |
654 | ||
655 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
656 | ||
657 | # File descriptor usage: | |
658 | # 0 standard input | |
659 | # 1 file creation | |
660 | # 2 errors and warnings | |
661 | # 3 some systems may open it to /dev/tty | |
662 | # 4 used on the Kubota Titan | |
663 | # 6 checking for... messages and results | |
664 | # 5 compiler messages saved in config.log | |
665 | if test "$silent" = yes; then | |
666 | exec 6>/dev/null | |
667 | else | |
668 | exec 6>&1 | |
669 | fi | |
670 | exec 5>./config.log | |
671 | ||
672 | echo "\ | |
673 | This file contains any messages produced by compilers while | |
674 | running configure, to aid debugging if configure makes a mistake. | |
675 | " 1>&5 | |
676 | ||
677 | # Strip out --no-create and --no-recursion so they do not pile up. | |
678 | # Also quote any args containing shell metacharacters. | |
679 | ac_configure_args= | |
680 | for ac_arg | |
681 | do | |
682 | case "$ac_arg" in | |
683 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
684 | | --no-cr | --no-c) ;; | |
685 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
686 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
687 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
688 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
689 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
690 | esac | |
691 | done | |
692 | ||
693 | # NLS nuisances. | |
694 | # Only set these to C if already set. These must not be set unconditionally | |
695 | # because not all systems understand e.g. LANG=C (notably SCO). | |
696 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
697 | # Non-C LC_CTYPE values break the ctype check. | |
698 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
699 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
700 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
701 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
702 | ||
703 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
704 | rm -rf conftest* confdefs.h | |
705 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
706 | echo > confdefs.h | |
707 | ||
708 | # A filename unique to this package, relative to the directory that | |
709 | # configure is in, which we can look for to find out if srcdir is correct. | |
710 | ac_unique_file=wx-config.in | |
711 | ||
712 | # Find the source files, if location was not specified. | |
713 | if test -z "$srcdir"; then | |
714 | ac_srcdir_defaulted=yes | |
715 | # Try the directory containing this script, then its parent. | |
716 | ac_prog=$0 | |
717 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
718 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
719 | srcdir=$ac_confdir | |
720 | if test ! -r $srcdir/$ac_unique_file; then | |
721 | srcdir=.. | |
722 | fi | |
723 | else | |
724 | ac_srcdir_defaulted=no | |
725 | fi | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | if test "$ac_srcdir_defaulted" = yes; then | |
728 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
729 | else | |
730 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
731 | fi | |
732 | fi | |
733 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
734 | ||
735 | # Prefer explicitly selected file to automatically selected ones. | |
736 | if test -z "$CONFIG_SITE"; then | |
737 | if test "x$prefix" != xNONE; then | |
738 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
739 | else | |
740 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
741 | fi | |
742 | fi | |
743 | for ac_site_file in $CONFIG_SITE; do | |
744 | if test -r "$ac_site_file"; then | |
745 | echo "loading site script $ac_site_file" | |
746 | . "$ac_site_file" | |
747 | fi | |
748 | done | |
749 | ||
750 | if test -r "$cache_file"; then | |
751 | echo "loading cache $cache_file" | |
752 | . $cache_file | |
753 | else | |
754 | echo "creating cache $cache_file" | |
755 | > $cache_file | |
756 | fi | |
757 | ||
758 | ac_ext=c | |
759 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
760 | ac_cpp='$CPP $CPPFLAGS' | |
761 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 762 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
763 | cross_compiling=$ac_cv_prog_cc_cross |
764 | ||
0709ee62 VZ |
765 | ac_exeext= |
766 | ac_objext=o | |
a16d3c04 KB |
767 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
768 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
769 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
770 | ac_n= ac_c=' | |
771 | ' ac_t=' ' | |
772 | else | |
773 | ac_n=-n ac_c= ac_t= | |
774 | fi | |
775 | else | |
776 | ac_n= ac_c='\c' ac_t= | |
777 | fi | |
778 | ||
779 | ||
780 | ||
781 | ac_aux_dir= | |
782 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
783 | if test -f $ac_dir/install-sh; then | |
784 | ac_aux_dir=$ac_dir | |
785 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
786 | break | |
787 | elif test -f $ac_dir/install.sh; then | |
788 | ac_aux_dir=$ac_dir | |
789 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
790 | break | |
791 | fi | |
792 | done | |
793 | if test -z "$ac_aux_dir"; then | |
794 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
795 | fi | |
796 | ac_config_guess=$ac_aux_dir/config.guess | |
797 | ac_config_sub=$ac_aux_dir/config.sub | |
798 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
799 | ||
800 | ||
801 | # Do some error checking and defaulting for the host and target type. | |
802 | # The inputs are: | |
803 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
804 | # | |
805 | # The rules are: | |
806 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
807 | # same time. | |
808 | # 2. Host defaults to nonopt. | |
809 | # 3. If nonopt is not specified, then host defaults to the current host, | |
810 | # as determined by config.guess. | |
811 | # 4. Target and build default to nonopt. | |
812 | # 5. If nonopt is not specified, then target and build default to host. | |
813 | ||
814 | # The aliases save the names the user supplied, while $host etc. | |
815 | # will get canonicalized. | |
816 | case $host---$target---$nonopt in | |
817 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
818 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
819 | esac | |
820 | ||
821 | ||
822 | # Make sure we can run config.sub. | |
0709ee62 | 823 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
a16d3c04 KB |
824 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
825 | fi | |
826 | ||
827 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
0709ee62 | 828 | echo "configure:829: checking host system type" >&5 |
a16d3c04 KB |
829 | |
830 | host_alias=$host | |
831 | case "$host_alias" in | |
832 | NONE) | |
833 | case $nonopt in | |
834 | NONE) | |
0709ee62 | 835 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
a16d3c04 KB |
836 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
837 | fi ;; | |
838 | *) host_alias=$nonopt ;; | |
839 | esac ;; | |
840 | esac | |
841 | ||
0709ee62 | 842 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
a16d3c04 KB |
843 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
844 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
845 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
846 | echo "$ac_t""$host" 1>&6 | |
847 | ||
848 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
0709ee62 | 849 | echo "configure:850: checking target system type" >&5 |
a16d3c04 KB |
850 | |
851 | target_alias=$target | |
852 | case "$target_alias" in | |
853 | NONE) | |
854 | case $nonopt in | |
855 | NONE) target_alias=$host_alias ;; | |
856 | *) target_alias=$nonopt ;; | |
857 | esac ;; | |
858 | esac | |
859 | ||
0709ee62 | 860 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
a16d3c04 KB |
861 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
862 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
863 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
864 | echo "$ac_t""$target" 1>&6 | |
865 | ||
866 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
0709ee62 | 867 | echo "configure:868: checking build system type" >&5 |
a16d3c04 KB |
868 | |
869 | build_alias=$build | |
870 | case "$build_alias" in | |
871 | NONE) | |
872 | case $nonopt in | |
873 | NONE) build_alias=$host_alias ;; | |
874 | *) build_alias=$nonopt ;; | |
875 | esac ;; | |
876 | esac | |
877 | ||
0709ee62 | 878 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
a16d3c04 KB |
879 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
880 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
881 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
882 | echo "$ac_t""$build" 1>&6 | |
883 | ||
884 | test "$host_alias" != "$target_alias" && | |
885 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
886 | NONENONEs,x,x, && | |
887 | program_prefix=${target_alias}- | |
888 | ||
889 | ||
890 | ||
891 | WX_MAJOR_VERSION_NUMBER=2 | |
892 | WX_MINOR_VERSION_NUMBER=1 | |
0709ee62 | 893 | WX_RELEASE_NUMBER=10 |
a16d3c04 KB |
894 | |
895 | WX_INTERFACE_AGE=0 | |
896 | WX_BINARY_AGE=0 | |
897 | ||
898 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
899 | ||
900 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
901 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
902 | WX_REVISION=$WX_INTERFACE_AGE | |
903 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
904 | ||
905 | ||
906 | USE_UNIX=1 | |
907 | USE_LINUX= | |
908 | USE_SGI= | |
909 | USE_HPUX= | |
910 | USE_SYSV= | |
911 | USE_SVR4= | |
912 | USE_AIX= | |
913 | USE_SUN= | |
914 | USE_SOLARIS= | |
915 | USE_SUNOS= | |
916 | USE_ALPHA= | |
917 | USE_OSF= | |
918 | USE_BSD= | |
919 | USE_FREEBSD= | |
920 | USE_VMS= | |
921 | USE_ULTRIX= | |
922 | USE_CYGWIN= | |
923 | USE_MINGW= | |
924 | USE_DATA_GENERAL= | |
925 | ||
926 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE" | |
927 | ||
928 | DEFAULT_wxUSE_GTK=0 | |
929 | DEFAULT_wxUSE_MOTIF=0 | |
930 | DEFAULT_wxUSE_MSW=0 | |
931 | DEFAULT_wxUSE_WINE=0 | |
932 | ||
933 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
934 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
935 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
936 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
937 | ||
938 | case "${host}" in | |
939 | *-hp-hpux* ) | |
940 | USE_HPUX=1 | |
941 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
942 | cat >> confdefs.h <<\EOF | |
943 | #define __HPUX__ 1 | |
944 | EOF | |
945 | ||
946 | ;; | |
947 | *-*-linux* ) | |
948 | USE_LINUX=1 | |
949 | cat >> confdefs.h <<\EOF | |
950 | #define __LINUX__ 1 | |
951 | EOF | |
952 | ||
953 | TMP=`uname -m` | |
954 | if test "x$TMP" = "xalpha"; then | |
955 | USE_ALPHA=1 | |
956 | cat >> confdefs.h <<\EOF | |
957 | #define __ALPHA__ 1 | |
958 | EOF | |
959 | ||
960 | fi | |
961 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
962 | ;; | |
963 | *-*-irix5* | *-*-irix6* ) | |
964 | USE_SGI=1 | |
965 | USE_SVR4=1 | |
966 | cat >> confdefs.h <<\EOF | |
967 | #define __SGI__ 1 | |
968 | EOF | |
969 | ||
970 | cat >> confdefs.h <<\EOF | |
971 | #define __SVR4__ 1 | |
972 | EOF | |
973 | ||
974 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
975 | ;; | |
976 | *-*-solaris2* ) | |
977 | USE_SUN=1 | |
978 | USE_SOLARIS=1 | |
979 | USE_SVR4=1 | |
980 | cat >> confdefs.h <<\EOF | |
981 | #define __SUN__ 1 | |
982 | EOF | |
983 | ||
984 | cat >> confdefs.h <<\EOF | |
985 | #define __SOLARIS__ 1 | |
986 | EOF | |
987 | ||
988 | cat >> confdefs.h <<\EOF | |
989 | #define __SVR4__ 1 | |
990 | EOF | |
991 | ||
992 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
993 | ;; | |
994 | *-*-sunos4* ) | |
995 | USE_SUN=1 | |
996 | USE_SUNOS=1 | |
997 | USE_BSD=1 | |
998 | cat >> confdefs.h <<\EOF | |
999 | #define __SUN__ 1 | |
1000 | EOF | |
1001 | ||
1002 | cat >> confdefs.h <<\EOF | |
1003 | #define __SUNOS__ 1 | |
1004 | EOF | |
1005 | ||
1006 | cat >> confdefs.h <<\EOF | |
1007 | #define __BSD__ 1 | |
1008 | EOF | |
1009 | ||
1010 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1011 | ;; | |
1012 | *-*-freebsd* | *-*-netbsd*) | |
1013 | USE_BSD=1 | |
1014 | USE_FREEBSD=1 | |
1015 | cat >> confdefs.h <<\EOF | |
1016 | #define __FREEBSD__ 1 | |
1017 | EOF | |
1018 | ||
1019 | cat >> confdefs.h <<\EOF | |
1020 | #define __BSD__ 1 | |
1021 | EOF | |
1022 | ||
1023 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1024 | ;; | |
1025 | *-*-osf* ) | |
1026 | USE_ALPHA=1 | |
1027 | USE_OSF=1 | |
1028 | cat >> confdefs.h <<\EOF | |
1029 | #define __ALPHA__ 1 | |
1030 | EOF | |
1031 | ||
1032 | cat >> confdefs.h <<\EOF | |
1033 | #define __OSF__ 1 | |
1034 | EOF | |
1035 | ||
1036 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1037 | ;; | |
1038 | *-*-dgux5* ) | |
1039 | USE_ALPHA=1 | |
1040 | USE_SVR4=1 | |
1041 | cat >> confdefs.h <<\EOF | |
1042 | #define __ALPHA__ 1 | |
1043 | EOF | |
1044 | ||
1045 | cat >> confdefs.h <<\EOF | |
1046 | #define __SVR4__ 1 | |
1047 | EOF | |
1048 | ||
1049 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1050 | ;; | |
1051 | *-*-sysv5* ) | |
1052 | USE_SYSV=1 | |
1053 | USE_SVR4=1 | |
1054 | cat >> confdefs.h <<\EOF | |
1055 | #define __SYSV__ 1 | |
1056 | EOF | |
1057 | ||
1058 | cat >> confdefs.h <<\EOF | |
1059 | #define __SVR4__ 1 | |
1060 | EOF | |
1061 | ||
1062 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1063 | ;; | |
1064 | *-*-aix* ) | |
1065 | USE_AIX=1 | |
1066 | USE_SYSV=1 | |
1067 | USE_SVR4=1 | |
1068 | cat >> confdefs.h <<\EOF | |
1069 | #define __AIX__ 1 | |
1070 | EOF | |
1071 | ||
1072 | cat >> confdefs.h <<\EOF | |
1073 | #define __SYSV__ 1 | |
1074 | EOF | |
1075 | ||
1076 | cat >> confdefs.h <<\EOF | |
1077 | #define __SVR4__ 1 | |
1078 | EOF | |
1079 | ||
1080 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1081 | ;; | |
1082 | ||
1083 | *-*-cygwin32* ) | |
1084 | USE_UNIX=0 | |
1085 | cat >> confdefs.h <<\EOF | |
1086 | #define __WIN32__ 1 | |
1087 | EOF | |
1088 | ||
1089 | cat >> confdefs.h <<\EOF | |
1090 | #define __WIN95__ 1 | |
1091 | EOF | |
1092 | ||
1093 | cat >> confdefs.h <<\EOF | |
1094 | #define __WINDOWS__ 1 | |
1095 | EOF | |
1096 | ||
1097 | cat >> confdefs.h <<\EOF | |
1098 | #define __GNUWIN32__ 1 | |
1099 | EOF | |
1100 | ||
1101 | cat >> confdefs.h <<\EOF | |
1102 | #define STRICT 1 | |
1103 | EOF | |
1104 | ||
1105 | cat >> confdefs.h <<\EOF | |
1106 | #define WINVER 0x0400 | |
1107 | EOF | |
1108 | ||
1109 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1110 | ;; | |
1111 | *-*-mingw32* ) | |
1112 | USE_UNIX=0 | |
1113 | cat >> confdefs.h <<\EOF | |
1114 | #define __WIN32__ 1 | |
1115 | EOF | |
1116 | ||
1117 | cat >> confdefs.h <<\EOF | |
1118 | #define __WIN95__ 1 | |
1119 | EOF | |
1120 | ||
1121 | cat >> confdefs.h <<\EOF | |
1122 | #define __WINDOWS__ 1 | |
1123 | EOF | |
1124 | ||
1125 | cat >> confdefs.h <<\EOF | |
1126 | #define __GNUWIN32__ 1 | |
1127 | EOF | |
1128 | ||
1129 | cat >> confdefs.h <<\EOF | |
1130 | #define STRICT 1 | |
1131 | EOF | |
1132 | ||
1133 | cat >> confdefs.h <<\EOF | |
1134 | #define WINVER 0x0400 | |
1135 | EOF | |
1136 | ||
1137 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1138 | ;; | |
1139 | ||
1140 | *-pc-os2_emx ) | |
1141 | cat >> confdefs.h <<\EOF | |
1142 | #define __EMX__ 1 | |
1143 | EOF | |
1144 | ||
1145 | ;; | |
1146 | ||
1147 | *) | |
1148 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1149 | esac | |
1150 | ||
1151 | if test "$USE_UNIX" = 1 ; then | |
1152 | wxUSE_UNIX=yes | |
1153 | cat >> confdefs.h <<\EOF | |
1154 | #define __UNIX__ 1 | |
1155 | EOF | |
1156 | ||
1157 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1158 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1159 | fi | |
1160 | ||
1161 | if test "$USE_LINUX" = 1; then | |
1162 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
0709ee62 | 1163 | echo "configure:1164: checking for gettext in -lc" >&5 |
a16d3c04 KB |
1164 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1165 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1167 | else | |
1168 | ac_save_LIBS="$LIBS" | |
1169 | LIBS="-lc $LIBS" | |
1170 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 1171 | #line 1172 "configure" |
a16d3c04 KB |
1172 | #include "confdefs.h" |
1173 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1174 | /* We use char because int might match the return type of a gcc2 | |
1175 | builtin and then its argument prototype would still apply. */ | |
1176 | char gettext(); | |
1177 | ||
1178 | int main() { | |
1179 | gettext() | |
1180 | ; return 0; } | |
1181 | EOF | |
0709ee62 | 1182 | if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
1183 | rm -rf conftest* |
1184 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1185 | else | |
1186 | echo "configure: failed program was:" >&5 | |
1187 | cat conftest.$ac_ext >&5 | |
1188 | rm -rf conftest* | |
1189 | eval "ac_cv_lib_$ac_lib_var=no" | |
1190 | fi | |
1191 | rm -f conftest* | |
1192 | LIBS="$ac_save_LIBS" | |
1193 | ||
1194 | fi | |
1195 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1196 | echo "$ac_t""yes" 1>&6 | |
1197 | cat >> confdefs.h <<\EOF | |
1198 | #define wxHAVE_GLIBC2 1 | |
1199 | EOF | |
1200 | ||
1201 | else | |
1202 | echo "$ac_t""no" 1>&6 | |
1203 | fi | |
1204 | ||
1205 | fi | |
1206 | ||
1207 | ||
1208 | ||
1209 | ||
1210 | wx_arg_cache_file="configarg.cache" | |
1211 | echo "loading argument cache $wx_arg_cache_file" | |
1212 | rm -f ${wx_arg_cache_file}.tmp | |
1213 | touch ${wx_arg_cache_file}.tmp | |
1214 | touch ${wx_arg_cache_file} | |
1215 | ||
1216 | ||
1217 | DEBUG_CONFIGURE=0 | |
1218 | if test $DEBUG_CONFIGURE = 1; then | |
1219 | DEFAULT_wxUSE_THREADS=yes | |
1220 | ||
1221 | DEFAULT_wxUSE_SHARED=yes | |
1222 | DEFAULT_wxUSE_OPTIMISE=yes | |
1223 | DEFAULT_wxUSE_PROFILE=no | |
1224 | DEFAULT_wxUSE_NO_DEPS=no | |
1225 | DEFAULT_wxUSE_NO_RTTI=no | |
1226 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1227 | DEFAULT_wxUSE_PERMISSIVE=no | |
1228 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1229 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1230 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1231 | DEFAULT_wxUSE_MEM_TRACING=no | |
1232 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1233 | DEFAULT_wxUSE_DMALLOC=no | |
1234 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1235 | ||
1236 | DEFAULT_wxUSE_LOG=yes | |
1237 | ||
1238 | DEFAULT_wxUSE_GUI=yes | |
1239 | ||
1240 | DEFAULT_wxUSE_ZLIB=no | |
1241 | DEFAULT_wxUSE_LIBPNG=no | |
a16d3c04 KB |
1242 | DEFAULT_wxUSE_LIBJPEG=no |
1243 | DEFAULT_wxUSE_ODBC=no | |
1244 | ||
1245 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1246 | DEFAULT_wxUSE_FILE=no | |
1247 | DEFAULT_wxUSE_TEXTFILE=no | |
1248 | DEFAULT_wxUSE_TIMEDATE=no | |
1249 | DEFAULT_wxUSE_WAVE=no | |
1250 | DEFAULT_wxUSE_INTL=no | |
1251 | DEFAULT_wxUSE_CONFIG=no | |
1252 | DEFAULT_wxUSE_STREAMS=no | |
1253 | DEFAULT_wxUSE_SOCKETS=no | |
1c8515f9 | 1254 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
a16d3c04 KB |
1255 | DEFAULT_wxUSE_SERIAL=no |
1256 | DEFAULT_wxUSE_JOYSTICK=no | |
1257 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1258 | DEFAULT_wxUSE_LONGLONG=no | |
1259 | ||
1260 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1261 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1262 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1263 | ||
1264 | DEFAULT_wxUSE_X_RESOURCES=no | |
1265 | DEFAULT_wxUSE_CLIPBOARD=no | |
1266 | DEFAULT_wxUSE_TOOLTIPS=no | |
1267 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1268 | DEFAULT_wxUSE_SPLINES=no | |
1269 | ||
1270 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1271 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1272 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1273 | ||
1274 | DEFAULT_wxUSE_PROLOGIO=no | |
1275 | DEFAULT_wxUSE_RESOURCES=no | |
1276 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1277 | DEFAULT_wxUSE_IPC=no | |
1278 | DEFAULT_wxUSE_HELP=no | |
1279 | DEFAULT_wxUSE_WXTREE=no | |
1280 | DEFAULT_wxUSE_METAFILE=no | |
1281 | ||
1282 | DEFAULT_wxUSE_COMMONDLGS=no | |
1283 | DEFAULT_wxUSE_DIRDLG=no | |
1284 | DEFAULT_wxUSE_TEXTDLG=no | |
1285 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1286 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1287 | DEFAULT_wxUSE_MINIFRAME=no | |
1288 | DEFAULT_wxUSE_HTML=no | |
1289 | DEFAULT_wxUSE_FS_INET=no | |
1290 | DEFAULT_wxUSE_FS_ZIP=no | |
1291 | DEFAULT_wxUSE_BUSYINFO=no | |
1292 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1293 | DEFAULT_wxUSE_VALIDATORS=yes | |
1294 | ||
1295 | DEFAULT_wxUSE_ACCEL=no | |
1296 | DEFAULT_wxUSE_CARET=no | |
1297 | DEFAULT_wxUSE_BMPBUTTON=no | |
1298 | DEFAULT_wxUSE_CHECKBOX=no | |
1299 | DEFAULT_wxUSE_CHECKLST=no | |
1300 | DEFAULT_wxUSE_CHOICE=yes | |
1301 | DEFAULT_wxUSE_COMBOBOX=no | |
1302 | DEFAULT_wxUSE_GAUGE=no | |
1303 | DEFAULT_wxUSE_GRID=no | |
2726c66d | 1304 | DEFAULT_wxUSE_NEW_GRID=no |
a16d3c04 KB |
1305 | DEFAULT_wxUSE_IMAGLIST=no |
1306 | DEFAULT_wxUSE_LISTBOX=no | |
1307 | DEFAULT_wxUSE_LISTCTRL=no | |
1308 | DEFAULT_wxUSE_NOTEBOOK=no | |
1309 | DEFAULT_wxUSE_RADIOBOX=no | |
1310 | DEFAULT_wxUSE_RADIOBTN=no | |
1311 | DEFAULT_wxUSE_SASH=no | |
1312 | DEFAULT_wxUSE_SCROLLBAR=no | |
1313 | DEFAULT_wxUSE_SLIDER=no | |
1314 | DEFAULT_wxUSE_SPINBTN=no | |
1315 | DEFAULT_wxUSE_SPLITTER=no | |
1316 | DEFAULT_wxUSE_STATBMP=no | |
1317 | DEFAULT_wxUSE_STATBOX=no | |
1318 | DEFAULT_wxUSE_STATLINE=no | |
1319 | DEFAULT_wxUSE_STATUSBAR=yes | |
1320 | DEFAULT_wxUSE_TABDIALOG=no | |
1321 | DEFAULT_wxUSE_TOOLBAR=no | |
1322 | DEFAULT_wxUSE_TREECTRL=no | |
1323 | ||
1324 | DEFAULT_wxUSE_UNICODE=no | |
1325 | DEFAULT_wxUSE_WCSRTOMBS=no | |
f7a11f8c | 1326 | |
1c8515f9 KB |
1327 | DEFAULT_wxUSE_GIF=no |
1328 | DEFAULT_wxUSE_PCX=no | |
1329 | DEFAULT_wxUSE_PNM=no | |
a16d3c04 KB |
1330 | else |
1331 | DEFAULT_wxUSE_THREADS=yes | |
1332 | ||
1333 | DEFAULT_wxUSE_SHARED=yes | |
1334 | DEFAULT_wxUSE_OPTIMISE=yes | |
1335 | DEFAULT_wxUSE_PROFILE=no | |
1336 | DEFAULT_wxUSE_NO_DEPS=no | |
1337 | DEFAULT_wxUSE_NO_RTTI=no | |
1338 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1339 | DEFAULT_wxUSE_PERMISSIVE=no | |
1340 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1341 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1342 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1343 | DEFAULT_wxUSE_MEM_TRACING=no | |
1344 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1345 | DEFAULT_wxUSE_DMALLOC=no | |
1346 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1347 | ||
1348 | DEFAULT_wxUSE_LOG=yes | |
1349 | ||
1350 | DEFAULT_wxUSE_GUI=yes | |
1351 | ||
1352 | DEFAULT_wxUSE_ZLIB=yes | |
1353 | DEFAULT_wxUSE_LIBPNG=yes | |
a16d3c04 | 1354 | DEFAULT_wxUSE_LIBJPEG=yes |
2726c66d | 1355 | DEFAULT_wxUSE_ODBC=yes |
a16d3c04 KB |
1356 | |
1357 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1358 | DEFAULT_wxUSE_FILE=yes | |
1359 | DEFAULT_wxUSE_TEXTFILE=yes | |
1360 | DEFAULT_wxUSE_TIMEDATE=yes | |
1361 | DEFAULT_wxUSE_WAVE=no | |
1362 | DEFAULT_wxUSE_INTL=yes | |
1363 | DEFAULT_wxUSE_CONFIG=yes | |
1364 | DEFAULT_wxUSE_STREAMS=yes | |
1365 | DEFAULT_wxUSE_SOCKETS=yes | |
1c8515f9 | 1366 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
a16d3c04 KB |
1367 | DEFAULT_wxUSE_SERIAL=yes |
1368 | DEFAULT_wxUSE_JOYSTICK=yes | |
1369 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1370 | DEFAULT_wxUSE_LONGLONG=no | |
1371 | ||
1372 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1373 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1374 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1375 | ||
1376 | DEFAULT_wxUSE_X_RESOURCES=no | |
1377 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1378 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1379 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1380 | DEFAULT_wxUSE_SPLINES=yes | |
1381 | ||
1382 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1383 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1384 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1385 | ||
1386 | DEFAULT_wxUSE_PROLOGIO=yes | |
1387 | DEFAULT_wxUSE_RESOURCES=yes | |
1388 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1389 | DEFAULT_wxUSE_IPC=yes | |
1390 | DEFAULT_wxUSE_HELP=yes | |
1391 | DEFAULT_wxUSE_WXTREE=yes | |
1392 | DEFAULT_wxUSE_METAFILE=yes | |
1393 | ||
1394 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1395 | DEFAULT_wxUSE_DIRDLG=yes | |
1396 | DEFAULT_wxUSE_TEXTDLG=yes | |
1397 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1398 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1399 | DEFAULT_wxUSE_MINIFRAME=yes | |
1400 | DEFAULT_wxUSE_HTML=yes | |
1401 | DEFAULT_wxUSE_FS_INET=yes | |
1402 | DEFAULT_wxUSE_FS_ZIP=yes | |
1403 | DEFAULT_wxUSE_BUSYINFO=yes | |
1404 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1405 | DEFAULT_wxUSE_VALIDATORS=yes | |
1406 | ||
1407 | DEFAULT_wxUSE_ACCEL=yes | |
1408 | DEFAULT_wxUSE_CARET=yes | |
1409 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1410 | DEFAULT_wxUSE_CHECKBOX=yes | |
1411 | DEFAULT_wxUSE_CHECKLST=yes | |
1412 | DEFAULT_wxUSE_CHOICE=yes | |
1413 | DEFAULT_wxUSE_COMBOBOX=yes | |
1414 | DEFAULT_wxUSE_GAUGE=yes | |
1415 | DEFAULT_wxUSE_GRID=yes | |
2726c66d | 1416 | DEFAULT_wxUSE_NEW_GRID=yes |
a16d3c04 KB |
1417 | DEFAULT_wxUSE_IMAGLIST=yes |
1418 | DEFAULT_wxUSE_LISTBOX=yes | |
1419 | DEFAULT_wxUSE_LISTCTRL=yes | |
1420 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1421 | DEFAULT_wxUSE_RADIOBOX=yes | |
1422 | DEFAULT_wxUSE_RADIOBTN=yes | |
1423 | DEFAULT_wxUSE_SASH=yes | |
1424 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1425 | DEFAULT_wxUSE_SLIDER=yes | |
1426 | DEFAULT_wxUSE_SPINBTN=yes | |
1427 | DEFAULT_wxUSE_SPLITTER=yes | |
1428 | DEFAULT_wxUSE_STATBMP=yes | |
1429 | DEFAULT_wxUSE_STATBOX=yes | |
1430 | DEFAULT_wxUSE_STATLINE=yes | |
1431 | DEFAULT_wxUSE_STATUSBAR=yes | |
1432 | DEFAULT_wxUSE_TABDIALOG=no | |
1433 | DEFAULT_wxUSE_TOOLBAR=yes | |
1434 | DEFAULT_wxUSE_TREECTRL=yes | |
1435 | ||
1436 | DEFAULT_wxUSE_UNICODE=no | |
1437 | DEFAULT_wxUSE_WCSRTOMBS=no | |
f7a11f8c | 1438 | |
1c8515f9 KB |
1439 | DEFAULT_wxUSE_GIF=yes |
1440 | DEFAULT_wxUSE_PCX=yes | |
1441 | DEFAULT_wxUSE_PNM=yes | |
a16d3c04 KB |
1442 | fi |
1443 | ||
1444 | ||
1445 | ||
1446 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1447 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1448 | if test "x$LINE" != x ; then | |
1449 | has_toolkit_in_cache=1 | |
1450 | eval "DEFAULT_$LINE" | |
1451 | eval "CACHE_$toolkit=1" | |
1452 | fi | |
1453 | done | |
1454 | ||
f7a11f8c RR |
1455 | |
1456 | ||
1457 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
0709ee62 | 1458 | echo "configure:1459: checking "for --enable-gui"" >&5 |
f7a11f8c RR |
1459 | no_cache=0 |
1460 | # Check whether --enable-gui or --disable-gui was given. | |
1461 | if test "${enable_gui+set}" = set; then | |
1462 | enableval="$enable_gui" | |
1463 | ||
1464 | if test "$enableval" = yes; then | |
1465 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1466 | else | |
1467 | ac_cv_use_gui='wxUSE_GUI=no' | |
1468 | fi | |
1469 | ||
1470 | else | |
1471 | ||
1472 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1473 | if test "x$LINE" != x ; then | |
1474 | eval "DEFAULT_$LINE" | |
1475 | else | |
1476 | no_cache=1 | |
1477 | fi | |
1478 | ||
1479 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1480 | ||
1481 | fi | |
1482 | ||
1483 | ||
1484 | eval "$ac_cv_use_gui" | |
1485 | if test "$no_cache" != 1; then | |
1486 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1487 | fi | |
1488 | ||
1489 | if test "$wxUSE_GUI" = yes; then | |
1490 | echo "$ac_t""yes" 1>&6 | |
1491 | else | |
1492 | echo "$ac_t""no" 1>&6 | |
1493 | fi | |
1494 | ||
1495 | ||
1496 | if test "$wxUSE_GUI" = "no"; then | |
1497 | DEFAULT_wxUSE_ZLIB=no | |
1498 | DEFAULT_wxUSE_LIBPNG=no | |
1499 | DEFAULT_wxUSE_LIBJPEG=no | |
1500 | DEFAULT_wxUSE_SOCKETS=no | |
1501 | DEFAULT_wxUSE_JOYSTICK=no | |
1502 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1503 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1504 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1505 | DEFAULT_wxUSE_X_RESOURCES=no | |
1506 | DEFAULT_wxUSE_CLIPBOARD=no | |
1507 | DEFAULT_wxUSE_TOOLTIPS=no | |
1508 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1509 | DEFAULT_wxUSE_SPLINES=no | |
1510 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1511 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1512 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1513 | DEFAULT_wxUSE_PROLOGIO=no | |
1514 | DEFAULT_wxUSE_RESOURCES=no | |
1515 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1516 | DEFAULT_wxUSE_IPC=no | |
1517 | DEFAULT_wxUSE_HELP=no | |
1518 | DEFAULT_wxUSE_WXTREE=no | |
1519 | DEFAULT_wxUSE_METAFILE=no | |
1520 | DEFAULT_wxUSE_COMMONDLGS=no | |
1521 | DEFAULT_wxUSE_DIRDLG=no | |
1522 | DEFAULT_wxUSE_TEXTDLG=no | |
1523 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1524 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1525 | DEFAULT_wxUSE_MINIFRAME=no | |
1526 | DEFAULT_wxUSE_HTML=no | |
1527 | DEFAULT_wxUSE_FS_INET=no | |
1528 | DEFAULT_wxUSE_FS_ZIP=no | |
1529 | DEFAULT_wxUSE_BUSYINFO=no | |
1530 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1531 | DEFAULT_wxUSE_VALIDATORS=yes | |
1532 | DEFAULT_wxUSE_ACCEL=no | |
1533 | DEFAULT_wxUSE_CARET=no | |
1534 | DEFAULT_wxUSE_BMPBUTTON=no | |
1535 | DEFAULT_wxUSE_CHECKBOX=no | |
1536 | DEFAULT_wxUSE_CHECKLST=no | |
1537 | DEFAULT_wxUSE_CHOICE=yes | |
1538 | DEFAULT_wxUSE_COMBOBOX=no | |
1539 | DEFAULT_wxUSE_GAUGE=no | |
1540 | DEFAULT_wxUSE_GRID=no | |
2726c66d | 1541 | DEFAULT_wxUSE_NEW_GRID=no |
f7a11f8c RR |
1542 | DEFAULT_wxUSE_IMAGLIST=no |
1543 | DEFAULT_wxUSE_LISTBOX=no | |
1544 | DEFAULT_wxUSE_LISTCTRL=no | |
1545 | DEFAULT_wxUSE_NOTEBOOK=no | |
1546 | DEFAULT_wxUSE_RADIOBOX=no | |
1547 | DEFAULT_wxUSE_RADIOBTN=no | |
1548 | DEFAULT_wxUSE_SASH=no | |
1549 | DEFAULT_wxUSE_SCROLLBAR=no | |
1550 | DEFAULT_wxUSE_SLIDER=no | |
1551 | DEFAULT_wxUSE_SPINBTN=no | |
1552 | DEFAULT_wxUSE_SPLITTER=no | |
1553 | DEFAULT_wxUSE_STATBMP=no | |
1554 | DEFAULT_wxUSE_STATBOX=no | |
1555 | DEFAULT_wxUSE_STATLINE=no | |
1556 | DEFAULT_wxUSE_STATUSBAR=yes | |
1557 | DEFAULT_wxUSE_TABDIALOG=no | |
1558 | DEFAULT_wxUSE_TOOLBAR=no | |
1559 | DEFAULT_wxUSE_TREECTRL=no | |
1560 | DEFAULT_wxUSE_GIF=no | |
1561 | DEFAULT_wxUSE_PCX=no | |
1562 | DEFAULT_wxUSE_PNM=no | |
1563 | fi | |
1564 | ||
a16d3c04 KB |
1565 | # Check whether --with-gtk or --without-gtk was given. |
1566 | if test "${with_gtk+set}" = set; then | |
1567 | withval="$with_gtk" | |
1568 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1569 | fi | |
1570 | ||
1571 | # Check whether --with-motif or --without-motif was given. | |
1572 | if test "${with_motif+set}" = set; then | |
1573 | withval="$with_motif" | |
1574 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1575 | fi | |
1576 | ||
1577 | # Check whether --with-wine or --without-wine was given. | |
1578 | if test "${with_wine+set}" = set; then | |
1579 | withval="$with_wine" | |
1580 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1581 | fi | |
1582 | ||
1583 | # Check whether --with-cygwin or --without-cygwin was given. | |
1584 | if test "${with_cygwin+set}" = set; then | |
1585 | withval="$with_cygwin" | |
1586 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1587 | fi | |
1588 | ||
1589 | # Check whether --with-mingw or --without-mingw was given. | |
1590 | if test "${with_mingw+set}" = set; then | |
1591 | withval="$with_mingw" | |
1592 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1593 | fi | |
1594 | ||
1595 | ||
1596 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1597 | if test "${with_gtk_prefix+set}" = set; then | |
1598 | withval="$with_gtk_prefix" | |
1599 | gtk_config_prefix="$withval" | |
1600 | else | |
1601 | gtk_config_prefix="" | |
1602 | fi | |
1603 | ||
1604 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1605 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1606 | withval="$with_gtk_exec_prefix" | |
1607 | gtk_config_exec_prefix="$withval" | |
1608 | else | |
1609 | gtk_config_exec_prefix="" | |
1610 | fi | |
1611 | ||
1612 | ||
1613 | ||
1614 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
0709ee62 | 1615 | echo "configure:1616: checking "for --with-dmalloc"" >&5 |
a16d3c04 KB |
1616 | no_cache=0 |
1617 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1618 | if test "${with_dmalloc+set}" = set; then | |
1619 | withval="$with_dmalloc" | |
1620 | ||
1621 | if test "$withval" = yes; then | |
1622 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
1623 | else | |
1624 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
1625 | fi | |
1626 | ||
1627 | else | |
1628 | ||
1629 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
1630 | if test "x$LINE" != x ; then | |
1631 | eval "DEFAULT_$LINE" | |
1632 | else | |
1633 | no_cache=1 | |
1634 | fi | |
1635 | ||
1636 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
1637 | ||
1638 | fi | |
1639 | ||
1640 | ||
1641 | eval "$ac_cv_use_dmalloc" | |
1642 | if test "$no_cache" != 1; then | |
1643 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
1644 | fi | |
1645 | ||
1646 | if test "$wxUSE_DMALLOC" = yes; then | |
1647 | echo "$ac_t""yes" 1>&6 | |
1648 | else | |
1649 | echo "$ac_t""no" 1>&6 | |
1650 | fi | |
1651 | ||
1652 | ||
1653 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 | |
0709ee62 | 1654 | echo "configure:1655: checking "for --with-zlib"" >&5 |
a16d3c04 KB |
1655 | no_cache=0 |
1656 | # Check whether --with-zlib or --without-zlib was given. | |
1657 | if test "${with_zlib+set}" = set; then | |
1658 | withval="$with_zlib" | |
1659 | ||
1660 | if test "$withval" = yes; then | |
1661 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
1662 | else | |
1663 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
1664 | fi | |
1665 | ||
1666 | else | |
1667 | ||
1668 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
1669 | if test "x$LINE" != x ; then | |
1670 | eval "DEFAULT_$LINE" | |
1671 | else | |
1672 | no_cache=1 | |
1673 | fi | |
1674 | ||
1675 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
1676 | ||
1677 | fi | |
1678 | ||
1679 | ||
1680 | eval "$ac_cv_use_zlib" | |
1681 | if test "$no_cache" != 1; then | |
1682 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
1683 | fi | |
1684 | ||
1685 | if test "$wxUSE_ZLIB" = yes; then | |
1686 | echo "$ac_t""yes" 1>&6 | |
1687 | else | |
1688 | echo "$ac_t""no" 1>&6 | |
1689 | fi | |
1690 | ||
1691 | ||
1692 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 | |
0709ee62 | 1693 | echo "configure:1694: checking "for --with-libpng"" >&5 |
a16d3c04 KB |
1694 | no_cache=0 |
1695 | # Check whether --with-libpng or --without-libpng was given. | |
1696 | if test "${with_libpng+set}" = set; then | |
1697 | withval="$with_libpng" | |
1698 | ||
1699 | if test "$withval" = yes; then | |
1700 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1701 | else | |
1702 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1703 | fi | |
1704 | ||
1705 | else | |
1706 | ||
1707 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1708 | if test "x$LINE" != x ; then | |
1709 | eval "DEFAULT_$LINE" | |
1710 | else | |
1711 | no_cache=1 | |
1712 | fi | |
1713 | ||
1714 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1715 | ||
1716 | fi | |
1717 | ||
1718 | ||
1719 | eval "$ac_cv_use_libpng" | |
1720 | if test "$no_cache" != 1; then | |
1721 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1722 | fi | |
1723 | ||
1724 | if test "$wxUSE_LIBPNG" = yes; then | |
1725 | echo "$ac_t""yes" 1>&6 | |
1726 | else | |
1727 | echo "$ac_t""no" 1>&6 | |
1728 | fi | |
1729 | ||
1730 | ||
a16d3c04 | 1731 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
0709ee62 | 1732 | echo "configure:1733: checking "for --with-libjpeg"" >&5 |
a16d3c04 KB |
1733 | no_cache=0 |
1734 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1735 | if test "${with_libjpeg+set}" = set; then | |
1736 | withval="$with_libjpeg" | |
1737 | ||
1738 | if test "$withval" = yes; then | |
1739 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1740 | else | |
1741 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1742 | fi | |
1743 | ||
1744 | else | |
1745 | ||
1746 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1747 | if test "x$LINE" != x ; then | |
1748 | eval "DEFAULT_$LINE" | |
1749 | else | |
1750 | no_cache=1 | |
1751 | fi | |
1752 | ||
1753 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1754 | ||
1755 | fi | |
1756 | ||
1757 | ||
1758 | eval "$ac_cv_use_libjpeg" | |
1759 | if test "$no_cache" != 1; then | |
1760 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1761 | fi | |
1762 | ||
1763 | if test "$wxUSE_LIBJPEG" = yes; then | |
1764 | echo "$ac_t""yes" 1>&6 | |
1765 | else | |
1766 | echo "$ac_t""no" 1>&6 | |
1767 | fi | |
1768 | ||
1769 | ||
1770 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 | |
0709ee62 | 1771 | echo "configure:1772: checking "for --with-opengl"" >&5 |
a16d3c04 KB |
1772 | no_cache=0 |
1773 | # Check whether --with-opengl or --without-opengl was given. | |
1774 | if test "${with_opengl+set}" = set; then | |
1775 | withval="$with_opengl" | |
1776 | ||
1777 | if test "$withval" = yes; then | |
1778 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
1779 | else | |
1780 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
1781 | fi | |
1782 | ||
1783 | else | |
1784 | ||
1785 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
1786 | if test "x$LINE" != x ; then | |
1787 | eval "DEFAULT_$LINE" | |
1788 | else | |
1789 | no_cache=1 | |
1790 | fi | |
1791 | ||
1792 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
1793 | ||
1794 | fi | |
1795 | ||
1796 | ||
1797 | eval "$ac_cv_use_opengl" | |
1798 | if test "$no_cache" != 1; then | |
1799 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
1800 | fi | |
1801 | ||
1802 | if test "$wxUSE_OPENGL" = yes; then | |
1803 | echo "$ac_t""yes" 1>&6 | |
1804 | else | |
1805 | echo "$ac_t""no" 1>&6 | |
1806 | fi | |
1807 | ||
1808 | ||
1809 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
0709ee62 | 1810 | echo "configure:1811: checking "for --with-odbc"" >&5 |
a16d3c04 KB |
1811 | no_cache=0 |
1812 | # Check whether --with-odbc or --without-odbc was given. | |
1813 | if test "${with_odbc+set}" = set; then | |
1814 | withval="$with_odbc" | |
1815 | ||
1816 | if test "$withval" = yes; then | |
1817 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1818 | else | |
1819 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1820 | fi | |
1821 | ||
1822 | else | |
1823 | ||
1824 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1825 | if test "x$LINE" != x ; then | |
1826 | eval "DEFAULT_$LINE" | |
1827 | else | |
1828 | no_cache=1 | |
1829 | fi | |
1830 | ||
1831 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1832 | ||
1833 | fi | |
1834 | ||
1835 | ||
1836 | eval "$ac_cv_use_odbc" | |
1837 | if test "$no_cache" != 1; then | |
1838 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1839 | fi | |
1840 | ||
1841 | if test "$wxUSE_ODBC" = yes; then | |
1842 | echo "$ac_t""yes" 1>&6 | |
1843 | else | |
1844 | echo "$ac_t""no" 1>&6 | |
1845 | fi | |
1846 | ||
1847 | ||
1848 | ||
1849 | ||
1850 | ||
1851 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
0709ee62 | 1852 | echo "configure:1853: checking "for --enable-shared"" >&5 |
a16d3c04 KB |
1853 | no_cache=0 |
1854 | # Check whether --enable-shared or --disable-shared was given. | |
1855 | if test "${enable_shared+set}" = set; then | |
1856 | enableval="$enable_shared" | |
1857 | ||
1858 | if test "$enableval" = yes; then | |
1859 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1860 | else | |
1861 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1862 | fi | |
1863 | ||
1864 | else | |
1865 | ||
1866 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1867 | if test "x$LINE" != x ; then | |
1868 | eval "DEFAULT_$LINE" | |
1869 | else | |
1870 | no_cache=1 | |
1871 | fi | |
1872 | ||
1873 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1874 | ||
1875 | fi | |
1876 | ||
1877 | ||
1878 | eval "$ac_cv_use_shared" | |
1879 | if test "$no_cache" != 1; then | |
1880 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1881 | fi | |
1882 | ||
1883 | if test "$wxUSE_SHARED" = yes; then | |
1884 | echo "$ac_t""yes" 1>&6 | |
1885 | else | |
1886 | echo "$ac_t""no" 1>&6 | |
1887 | fi | |
1888 | ||
1889 | ||
1890 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
0709ee62 | 1891 | echo "configure:1892: checking "for --enable-optimise"" >&5 |
a16d3c04 KB |
1892 | no_cache=0 |
1893 | # Check whether --enable-optimise or --disable-optimise was given. | |
1894 | if test "${enable_optimise+set}" = set; then | |
1895 | enableval="$enable_optimise" | |
1896 | ||
1897 | if test "$enableval" = yes; then | |
1898 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1899 | else | |
1900 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1901 | fi | |
1902 | ||
1903 | else | |
1904 | ||
1905 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1906 | if test "x$LINE" != x ; then | |
1907 | eval "DEFAULT_$LINE" | |
1908 | else | |
1909 | no_cache=1 | |
1910 | fi | |
1911 | ||
1912 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1913 | ||
1914 | fi | |
1915 | ||
1916 | ||
1917 | eval "$ac_cv_use_optimise" | |
1918 | if test "$no_cache" != 1; then | |
1919 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1920 | fi | |
1921 | ||
1922 | if test "$wxUSE_OPTIMISE" = yes; then | |
1923 | echo "$ac_t""yes" 1>&6 | |
1924 | else | |
1925 | echo "$ac_t""no" 1>&6 | |
1926 | fi | |
1927 | ||
1928 | ||
1929 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
0709ee62 | 1930 | echo "configure:1931: checking "for --enable-debug"" >&5 |
a16d3c04 KB |
1931 | no_cache=0 |
1932 | # Check whether --enable-debug or --disable-debug was given. | |
1933 | if test "${enable_debug+set}" = set; then | |
1934 | enableval="$enable_debug" | |
1935 | ||
1936 | if test "$enableval" = yes; then | |
1937 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1938 | else | |
1939 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1940 | fi | |
1941 | ||
1942 | else | |
1943 | ||
1944 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1945 | if test "x$LINE" != x ; then | |
1946 | eval "DEFAULT_$LINE" | |
1947 | else | |
1948 | no_cache=1 | |
1949 | fi | |
1950 | ||
1951 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1952 | ||
1953 | fi | |
1954 | ||
1955 | ||
1956 | eval "$ac_cv_use_debug" | |
1957 | if test "$no_cache" != 1; then | |
1958 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1959 | fi | |
1960 | ||
1961 | if test "$wxUSE_DEBUG" = yes; then | |
1962 | echo "$ac_t""yes" 1>&6 | |
1963 | else | |
1964 | echo "$ac_t""no" 1>&6 | |
1965 | fi | |
1966 | ||
1967 | ||
1968 | if test "$wxUSE_DEBUG" = "yes"; then | |
1969 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1970 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1971 | elif test "$wxUSE_DEBUG" = "no"; then | |
1972 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1973 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1974 | fi | |
1975 | ||
1976 | ||
1977 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
0709ee62 | 1978 | echo "configure:1979: checking "for --enable-debug_flag"" >&5 |
a16d3c04 KB |
1979 | no_cache=0 |
1980 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
1981 | if test "${enable_debug_flag+set}" = set; then | |
1982 | enableval="$enable_debug_flag" | |
1983 | ||
1984 | if test "$enableval" = yes; then | |
1985 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
1986 | else | |
1987 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
1988 | fi | |
1989 | ||
1990 | else | |
1991 | ||
1992 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
1993 | if test "x$LINE" != x ; then | |
1994 | eval "DEFAULT_$LINE" | |
1995 | else | |
1996 | no_cache=1 | |
1997 | fi | |
1998 | ||
1999 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2000 | ||
2001 | fi | |
2002 | ||
2003 | ||
2004 | eval "$ac_cv_use_debug_flag" | |
2005 | if test "$no_cache" != 1; then | |
2006 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2007 | fi | |
2008 | ||
2009 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2010 | echo "$ac_t""yes" 1>&6 | |
2011 | else | |
2012 | echo "$ac_t""no" 1>&6 | |
2013 | fi | |
2014 | ||
2015 | ||
2016 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
0709ee62 | 2017 | echo "configure:2018: checking "for --enable-debug_info"" >&5 |
a16d3c04 KB |
2018 | no_cache=0 |
2019 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2020 | if test "${enable_debug_info+set}" = set; then | |
2021 | enableval="$enable_debug_info" | |
2022 | ||
2023 | if test "$enableval" = yes; then | |
2024 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2025 | else | |
2026 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2027 | fi | |
2028 | ||
2029 | else | |
2030 | ||
2031 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2032 | if test "x$LINE" != x ; then | |
2033 | eval "DEFAULT_$LINE" | |
2034 | else | |
2035 | no_cache=1 | |
2036 | fi | |
2037 | ||
2038 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2039 | ||
2040 | fi | |
2041 | ||
2042 | ||
2043 | eval "$ac_cv_use_debug_info" | |
2044 | if test "$no_cache" != 1; then | |
2045 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2046 | fi | |
2047 | ||
2048 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2049 | echo "$ac_t""yes" 1>&6 | |
2050 | else | |
2051 | echo "$ac_t""no" 1>&6 | |
2052 | fi | |
2053 | ||
2054 | ||
2055 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
0709ee62 | 2056 | echo "configure:2057: checking "for --enable-debug_gdb"" >&5 |
a16d3c04 KB |
2057 | no_cache=0 |
2058 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2059 | if test "${enable_debug_gdb+set}" = set; then | |
2060 | enableval="$enable_debug_gdb" | |
2061 | ||
2062 | if test "$enableval" = yes; then | |
2063 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2064 | else | |
2065 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2066 | fi | |
2067 | ||
2068 | else | |
2069 | ||
2070 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2071 | if test "x$LINE" != x ; then | |
2072 | eval "DEFAULT_$LINE" | |
2073 | else | |
2074 | no_cache=1 | |
2075 | fi | |
2076 | ||
2077 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2078 | ||
2079 | fi | |
2080 | ||
2081 | ||
2082 | eval "$ac_cv_use_debug_gdb" | |
2083 | if test "$no_cache" != 1; then | |
2084 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2085 | fi | |
2086 | ||
2087 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2088 | echo "$ac_t""yes" 1>&6 | |
2089 | else | |
2090 | echo "$ac_t""no" 1>&6 | |
2091 | fi | |
2092 | ||
2093 | ||
2094 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
0709ee62 | 2095 | echo "configure:2096: checking "for --enable-debug_cntxt"" >&5 |
a16d3c04 KB |
2096 | no_cache=0 |
2097 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2098 | if test "${enable_debug_cntxt+set}" = set; then | |
2099 | enableval="$enable_debug_cntxt" | |
2100 | ||
2101 | if test "$enableval" = yes; then | |
2102 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2103 | else | |
2104 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2105 | fi | |
2106 | ||
2107 | else | |
2108 | ||
2109 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2110 | if test "x$LINE" != x ; then | |
2111 | eval "DEFAULT_$LINE" | |
2112 | else | |
2113 | no_cache=1 | |
2114 | fi | |
2115 | ||
2116 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2117 | ||
2118 | fi | |
2119 | ||
2120 | ||
2121 | eval "$ac_cv_use_debug_cntxt" | |
2122 | if test "$no_cache" != 1; then | |
2123 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2124 | fi | |
2125 | ||
2126 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2127 | echo "$ac_t""yes" 1>&6 | |
2128 | else | |
2129 | echo "$ac_t""no" 1>&6 | |
2130 | fi | |
2131 | ||
2132 | ||
2133 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
0709ee62 | 2134 | echo "configure:2135: checking "for --enable-mem_tracing"" >&5 |
a16d3c04 KB |
2135 | no_cache=0 |
2136 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2137 | if test "${enable_mem_tracing+set}" = set; then | |
2138 | enableval="$enable_mem_tracing" | |
2139 | ||
2140 | if test "$enableval" = yes; then | |
2141 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2142 | else | |
2143 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2144 | fi | |
2145 | ||
2146 | else | |
2147 | ||
2148 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2149 | if test "x$LINE" != x ; then | |
2150 | eval "DEFAULT_$LINE" | |
2151 | else | |
2152 | no_cache=1 | |
2153 | fi | |
2154 | ||
2155 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2156 | ||
2157 | fi | |
2158 | ||
2159 | ||
2160 | eval "$ac_cv_use_mem_tracing" | |
2161 | if test "$no_cache" != 1; then | |
2162 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2163 | fi | |
2164 | ||
2165 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2166 | echo "$ac_t""yes" 1>&6 | |
2167 | else | |
2168 | echo "$ac_t""no" 1>&6 | |
2169 | fi | |
2170 | ||
2171 | ||
2172 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
0709ee62 | 2173 | echo "configure:2174: checking "for --enable-profile"" >&5 |
a16d3c04 KB |
2174 | no_cache=0 |
2175 | # Check whether --enable-profile or --disable-profile was given. | |
2176 | if test "${enable_profile+set}" = set; then | |
2177 | enableval="$enable_profile" | |
2178 | ||
2179 | if test "$enableval" = yes; then | |
2180 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2181 | else | |
2182 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2183 | fi | |
2184 | ||
2185 | else | |
2186 | ||
2187 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2188 | if test "x$LINE" != x ; then | |
2189 | eval "DEFAULT_$LINE" | |
2190 | else | |
2191 | no_cache=1 | |
2192 | fi | |
2193 | ||
2194 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2195 | ||
2196 | fi | |
2197 | ||
2198 | ||
2199 | eval "$ac_cv_use_profile" | |
2200 | if test "$no_cache" != 1; then | |
2201 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2202 | fi | |
2203 | ||
2204 | if test "$wxUSE_PROFILE" = yes; then | |
2205 | echo "$ac_t""yes" 1>&6 | |
2206 | else | |
2207 | echo "$ac_t""no" 1>&6 | |
2208 | fi | |
2209 | ||
2210 | ||
2211 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
0709ee62 | 2212 | echo "configure:2213: checking "for --enable-no_rtti"" >&5 |
a16d3c04 KB |
2213 | no_cache=0 |
2214 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2215 | if test "${enable_no_rtti+set}" = set; then | |
2216 | enableval="$enable_no_rtti" | |
2217 | ||
2218 | if test "$enableval" = yes; then | |
2219 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2220 | else | |
2221 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2222 | fi | |
2223 | ||
2224 | else | |
2225 | ||
2226 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2227 | if test "x$LINE" != x ; then | |
2228 | eval "DEFAULT_$LINE" | |
2229 | else | |
2230 | no_cache=1 | |
2231 | fi | |
2232 | ||
2233 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2234 | ||
2235 | fi | |
2236 | ||
2237 | ||
2238 | eval "$ac_cv_use_no_rtti" | |
2239 | if test "$no_cache" != 1; then | |
2240 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2241 | fi | |
2242 | ||
2243 | if test "$wxUSE_NO_RTTI" = yes; then | |
2244 | echo "$ac_t""yes" 1>&6 | |
2245 | else | |
2246 | echo "$ac_t""no" 1>&6 | |
2247 | fi | |
2248 | ||
2249 | ||
2250 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
0709ee62 | 2251 | echo "configure:2252: checking "for --enable-no_exceptions"" >&5 |
a16d3c04 KB |
2252 | no_cache=0 |
2253 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2254 | if test "${enable_no_exceptions+set}" = set; then | |
2255 | enableval="$enable_no_exceptions" | |
2256 | ||
2257 | if test "$enableval" = yes; then | |
2258 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2259 | else | |
2260 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2261 | fi | |
2262 | ||
2263 | else | |
2264 | ||
2265 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2266 | if test "x$LINE" != x ; then | |
2267 | eval "DEFAULT_$LINE" | |
2268 | else | |
2269 | no_cache=1 | |
2270 | fi | |
2271 | ||
2272 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2273 | ||
2274 | fi | |
2275 | ||
2276 | ||
2277 | eval "$ac_cv_use_no_exceptions" | |
2278 | if test "$no_cache" != 1; then | |
2279 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2280 | fi | |
2281 | ||
2282 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2283 | echo "$ac_t""yes" 1>&6 | |
2284 | else | |
2285 | echo "$ac_t""no" 1>&6 | |
2286 | fi | |
2287 | ||
2288 | ||
2289 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
0709ee62 | 2290 | echo "configure:2291: checking "for --enable-permissive"" >&5 |
a16d3c04 KB |
2291 | no_cache=0 |
2292 | # Check whether --enable-permissive or --disable-permissive was given. | |
2293 | if test "${enable_permissive+set}" = set; then | |
2294 | enableval="$enable_permissive" | |
2295 | ||
2296 | if test "$enableval" = yes; then | |
2297 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2298 | else | |
2299 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2300 | fi | |
2301 | ||
2302 | else | |
2303 | ||
2304 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2305 | if test "x$LINE" != x ; then | |
2306 | eval "DEFAULT_$LINE" | |
2307 | else | |
2308 | no_cache=1 | |
2309 | fi | |
2310 | ||
2311 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2312 | ||
2313 | fi | |
2314 | ||
2315 | ||
2316 | eval "$ac_cv_use_permissive" | |
2317 | if test "$no_cache" != 1; then | |
2318 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2319 | fi | |
2320 | ||
2321 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2322 | echo "$ac_t""yes" 1>&6 | |
2323 | else | |
2324 | echo "$ac_t""no" 1>&6 | |
2325 | fi | |
2326 | ||
2327 | ||
2328 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
0709ee62 | 2329 | echo "configure:2330: checking "for --enable-no_deps"" >&5 |
a16d3c04 KB |
2330 | no_cache=0 |
2331 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2332 | if test "${enable_no_deps+set}" = set; then | |
2333 | enableval="$enable_no_deps" | |
2334 | ||
2335 | if test "$enableval" = yes; then | |
2336 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2337 | else | |
2338 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2339 | fi | |
2340 | ||
2341 | else | |
2342 | ||
2343 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2344 | if test "x$LINE" != x ; then | |
2345 | eval "DEFAULT_$LINE" | |
2346 | else | |
2347 | no_cache=1 | |
2348 | fi | |
2349 | ||
2350 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2351 | ||
2352 | fi | |
2353 | ||
2354 | ||
2355 | eval "$ac_cv_use_no_deps" | |
2356 | if test "$no_cache" != 1; then | |
2357 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2358 | fi | |
2359 | ||
2360 | if test "$wxUSE_NO_DEPS" = yes; then | |
2361 | echo "$ac_t""yes" 1>&6 | |
2362 | else | |
2363 | echo "$ac_t""no" 1>&6 | |
2364 | fi | |
2365 | ||
2366 | ||
2367 | ||
2368 | ||
a16d3c04 | 2369 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 |
0709ee62 | 2370 | echo "configure:2371: checking "for --enable-intl"" >&5 |
a16d3c04 KB |
2371 | no_cache=0 |
2372 | # Check whether --enable-intl or --disable-intl was given. | |
2373 | if test "${enable_intl+set}" = set; then | |
2374 | enableval="$enable_intl" | |
2375 | ||
2376 | if test "$enableval" = yes; then | |
2377 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2378 | else | |
2379 | ac_cv_use_intl='wxUSE_INTL=no' | |
2380 | fi | |
2381 | ||
2382 | else | |
2383 | ||
2384 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2385 | if test "x$LINE" != x ; then | |
2386 | eval "DEFAULT_$LINE" | |
2387 | else | |
2388 | no_cache=1 | |
2389 | fi | |
2390 | ||
2391 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2392 | ||
2393 | fi | |
2394 | ||
2395 | ||
2396 | eval "$ac_cv_use_intl" | |
2397 | if test "$no_cache" != 1; then | |
2398 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2399 | fi | |
2400 | ||
2401 | if test "$wxUSE_INTL" = yes; then | |
2402 | echo "$ac_t""yes" 1>&6 | |
2403 | else | |
2404 | echo "$ac_t""no" 1>&6 | |
2405 | fi | |
2406 | ||
2407 | ||
2408 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
0709ee62 | 2409 | echo "configure:2410: checking "for --enable-config"" >&5 |
a16d3c04 KB |
2410 | no_cache=0 |
2411 | # Check whether --enable-config or --disable-config was given. | |
2412 | if test "${enable_config+set}" = set; then | |
2413 | enableval="$enable_config" | |
2414 | ||
2415 | if test "$enableval" = yes; then | |
2416 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2417 | else | |
2418 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2419 | fi | |
2420 | ||
2421 | else | |
2422 | ||
2423 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2424 | if test "x$LINE" != x ; then | |
2425 | eval "DEFAULT_$LINE" | |
2426 | else | |
2427 | no_cache=1 | |
2428 | fi | |
2429 | ||
2430 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2431 | ||
2432 | fi | |
2433 | ||
2434 | ||
2435 | eval "$ac_cv_use_config" | |
2436 | if test "$no_cache" != 1; then | |
2437 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2438 | fi | |
2439 | ||
2440 | if test "$wxUSE_CONFIG" = yes; then | |
2441 | echo "$ac_t""yes" 1>&6 | |
2442 | else | |
2443 | echo "$ac_t""no" 1>&6 | |
2444 | fi | |
2445 | ||
2446 | ||
2447 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 | |
0709ee62 | 2448 | echo "configure:2449: checking "for --enable-sockets"" >&5 |
a16d3c04 KB |
2449 | no_cache=0 |
2450 | # Check whether --enable-sockets or --disable-sockets was given. | |
2451 | if test "${enable_sockets+set}" = set; then | |
2452 | enableval="$enable_sockets" | |
2453 | ||
2454 | if test "$enableval" = yes; then | |
2455 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2456 | else | |
2457 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2458 | fi | |
2459 | ||
2460 | else | |
2461 | ||
2462 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2463 | if test "x$LINE" != x ; then | |
2464 | eval "DEFAULT_$LINE" | |
2465 | else | |
2466 | no_cache=1 | |
2467 | fi | |
2468 | ||
2469 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2470 | ||
2471 | fi | |
2472 | ||
2473 | ||
2474 | eval "$ac_cv_use_sockets" | |
2475 | if test "$no_cache" != 1; then | |
2476 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2477 | fi | |
2478 | ||
2479 | if test "$wxUSE_SOCKETS" = yes; then | |
2480 | echo "$ac_t""yes" 1>&6 | |
2481 | else | |
2482 | echo "$ac_t""no" 1>&6 | |
2483 | fi | |
2484 | ||
2485 | ||
1c8515f9 | 2486 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 |
0709ee62 | 2487 | echo "configure:2488: checking "for --enable-dialupman"" >&5 |
1c8515f9 KB |
2488 | no_cache=0 |
2489 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2490 | if test "${enable_dialupman+set}" = set; then | |
2491 | enableval="$enable_dialupman" | |
2492 | ||
2493 | if test "$enableval" = yes; then | |
2494 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2495 | else | |
2496 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2497 | fi | |
2498 | ||
2499 | else | |
2500 | ||
2501 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2502 | if test "x$LINE" != x ; then | |
2503 | eval "DEFAULT_$LINE" | |
2504 | else | |
2505 | no_cache=1 | |
2506 | fi | |
2507 | ||
2508 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2509 | ||
2510 | fi | |
2511 | ||
2512 | ||
2513 | eval "$ac_cv_use_dialupman" | |
2514 | if test "$no_cache" != 1; then | |
2515 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2516 | fi | |
2517 | ||
2518 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2519 | echo "$ac_t""yes" 1>&6 | |
2520 | else | |
2521 | echo "$ac_t""no" 1>&6 | |
2522 | fi | |
2523 | ||
2524 | ||
a16d3c04 | 2525 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 |
0709ee62 | 2526 | echo "configure:2527: checking "for --enable-ipc"" >&5 |
a16d3c04 KB |
2527 | no_cache=0 |
2528 | # Check whether --enable-ipc or --disable-ipc was given. | |
2529 | if test "${enable_ipc+set}" = set; then | |
2530 | enableval="$enable_ipc" | |
2531 | ||
2532 | if test "$enableval" = yes; then | |
2533 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2534 | else | |
2535 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2536 | fi | |
2537 | ||
2538 | else | |
2539 | ||
2540 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2541 | if test "x$LINE" != x ; then | |
2542 | eval "DEFAULT_$LINE" | |
2543 | else | |
2544 | no_cache=1 | |
2545 | fi | |
2546 | ||
2547 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2548 | ||
2549 | fi | |
2550 | ||
2551 | ||
2552 | eval "$ac_cv_use_ipc" | |
2553 | if test "$no_cache" != 1; then | |
2554 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2555 | fi | |
2556 | ||
2557 | if test "$wxUSE_IPC" = yes; then | |
2558 | echo "$ac_t""yes" 1>&6 | |
2559 | else | |
2560 | echo "$ac_t""no" 1>&6 | |
2561 | fi | |
2562 | ||
2563 | ||
2564 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
0709ee62 | 2565 | echo "configure:2566: checking "for --enable-apple_ieee"" >&5 |
a16d3c04 KB |
2566 | no_cache=0 |
2567 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2568 | if test "${enable_apple_ieee+set}" = set; then | |
2569 | enableval="$enable_apple_ieee" | |
2570 | ||
2571 | if test "$enableval" = yes; then | |
2572 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2573 | else | |
2574 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2575 | fi | |
2576 | ||
2577 | else | |
2578 | ||
2579 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2580 | if test "x$LINE" != x ; then | |
2581 | eval "DEFAULT_$LINE" | |
2582 | else | |
2583 | no_cache=1 | |
2584 | fi | |
2585 | ||
2586 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2587 | ||
2588 | fi | |
2589 | ||
2590 | ||
2591 | eval "$ac_cv_use_apple_ieee" | |
2592 | if test "$no_cache" != 1; then | |
2593 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2594 | fi | |
2595 | ||
2596 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2597 | echo "$ac_t""yes" 1>&6 | |
2598 | else | |
2599 | echo "$ac_t""no" 1>&6 | |
2600 | fi | |
2601 | ||
2602 | ||
2603 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
0709ee62 | 2604 | echo "configure:2605: checking "for --enable-timedate"" >&5 |
a16d3c04 KB |
2605 | no_cache=0 |
2606 | # Check whether --enable-timedate or --disable-timedate was given. | |
2607 | if test "${enable_timedate+set}" = set; then | |
2608 | enableval="$enable_timedate" | |
2609 | ||
2610 | if test "$enableval" = yes; then | |
2611 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2612 | else | |
2613 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2614 | fi | |
2615 | ||
2616 | else | |
2617 | ||
2618 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2619 | if test "x$LINE" != x ; then | |
2620 | eval "DEFAULT_$LINE" | |
2621 | else | |
2622 | no_cache=1 | |
2623 | fi | |
2624 | ||
2625 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2626 | ||
2627 | fi | |
2628 | ||
2629 | ||
2630 | eval "$ac_cv_use_timedate" | |
2631 | if test "$no_cache" != 1; then | |
2632 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2633 | fi | |
2634 | ||
2635 | if test "$wxUSE_TIMEDATE" = yes; then | |
2636 | echo "$ac_t""yes" 1>&6 | |
2637 | else | |
2638 | echo "$ac_t""no" 1>&6 | |
2639 | fi | |
2640 | ||
2641 | ||
2642 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
0709ee62 | 2643 | echo "configure:2644: checking "for --enable-wave"" >&5 |
a16d3c04 KB |
2644 | no_cache=0 |
2645 | # Check whether --enable-wave or --disable-wave was given. | |
2646 | if test "${enable_wave+set}" = set; then | |
2647 | enableval="$enable_wave" | |
2648 | ||
2649 | if test "$enableval" = yes; then | |
2650 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2651 | else | |
2652 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2653 | fi | |
2654 | ||
2655 | else | |
2656 | ||
2657 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2658 | if test "x$LINE" != x ; then | |
2659 | eval "DEFAULT_$LINE" | |
2660 | else | |
2661 | no_cache=1 | |
2662 | fi | |
2663 | ||
2664 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2665 | ||
2666 | fi | |
2667 | ||
2668 | ||
2669 | eval "$ac_cv_use_wave" | |
2670 | if test "$no_cache" != 1; then | |
2671 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2672 | fi | |
2673 | ||
2674 | if test "$wxUSE_WAVE" = yes; then | |
2675 | echo "$ac_t""yes" 1>&6 | |
2676 | else | |
2677 | echo "$ac_t""no" 1>&6 | |
2678 | fi | |
2679 | ||
2680 | ||
2681 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
0709ee62 | 2682 | echo "configure:2683: checking "for --enable-fraction"" >&5 |
a16d3c04 KB |
2683 | no_cache=0 |
2684 | # Check whether --enable-fraction or --disable-fraction was given. | |
2685 | if test "${enable_fraction+set}" = set; then | |
2686 | enableval="$enable_fraction" | |
2687 | ||
2688 | if test "$enableval" = yes; then | |
2689 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2690 | else | |
2691 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2692 | fi | |
2693 | ||
2694 | else | |
2695 | ||
2696 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2697 | if test "x$LINE" != x ; then | |
2698 | eval "DEFAULT_$LINE" | |
2699 | else | |
2700 | no_cache=1 | |
2701 | fi | |
2702 | ||
2703 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2704 | ||
2705 | fi | |
2706 | ||
2707 | ||
2708 | eval "$ac_cv_use_fraction" | |
2709 | if test "$no_cache" != 1; then | |
2710 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2711 | fi | |
2712 | ||
2713 | if test "$wxUSE_FRACTION" = yes; then | |
2714 | echo "$ac_t""yes" 1>&6 | |
2715 | else | |
2716 | echo "$ac_t""no" 1>&6 | |
2717 | fi | |
2718 | ||
2719 | ||
2720 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
0709ee62 | 2721 | echo "configure:2722: checking "for --enable-dynlib"" >&5 |
a16d3c04 KB |
2722 | no_cache=0 |
2723 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2724 | if test "${enable_dynlib+set}" = set; then | |
2725 | enableval="$enable_dynlib" | |
2726 | ||
2727 | if test "$enableval" = yes; then | |
2728 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2729 | else | |
2730 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2731 | fi | |
2732 | ||
2733 | else | |
2734 | ||
2735 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2736 | if test "x$LINE" != x ; then | |
2737 | eval "DEFAULT_$LINE" | |
2738 | else | |
2739 | no_cache=1 | |
2740 | fi | |
2741 | ||
2742 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2743 | ||
2744 | fi | |
2745 | ||
2746 | ||
2747 | eval "$ac_cv_use_dynlib" | |
2748 | if test "$no_cache" != 1; then | |
2749 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2750 | fi | |
2751 | ||
2752 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2753 | echo "$ac_t""yes" 1>&6 | |
2754 | else | |
2755 | echo "$ac_t""no" 1>&6 | |
2756 | fi | |
2757 | ||
2758 | ||
2759 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
0709ee62 | 2760 | echo "configure:2761: checking "for --enable-longlong"" >&5 |
a16d3c04 KB |
2761 | no_cache=0 |
2762 | # Check whether --enable-longlong or --disable-longlong was given. | |
2763 | if test "${enable_longlong+set}" = set; then | |
2764 | enableval="$enable_longlong" | |
2765 | ||
2766 | if test "$enableval" = yes; then | |
2767 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2768 | else | |
2769 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2770 | fi | |
2771 | ||
2772 | else | |
2773 | ||
2774 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2775 | if test "x$LINE" != x ; then | |
2776 | eval "DEFAULT_$LINE" | |
2777 | else | |
2778 | no_cache=1 | |
2779 | fi | |
2780 | ||
2781 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2782 | ||
2783 | fi | |
2784 | ||
2785 | ||
2786 | eval "$ac_cv_use_longlong" | |
2787 | if test "$no_cache" != 1; then | |
2788 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2789 | fi | |
2790 | ||
2791 | if test "$wxUSE_LONGLONG" = yes; then | |
2792 | echo "$ac_t""yes" 1>&6 | |
2793 | else | |
2794 | echo "$ac_t""no" 1>&6 | |
2795 | fi | |
2796 | ||
2797 | ||
2798 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
0709ee62 | 2799 | echo "configure:2800: checking "for --enable-log"" >&5 |
a16d3c04 KB |
2800 | no_cache=0 |
2801 | # Check whether --enable-log or --disable-log was given. | |
2802 | if test "${enable_log+set}" = set; then | |
2803 | enableval="$enable_log" | |
2804 | ||
2805 | if test "$enableval" = yes; then | |
2806 | ac_cv_use_log='wxUSE_LOG=yes' | |
2807 | else | |
2808 | ac_cv_use_log='wxUSE_LOG=no' | |
2809 | fi | |
2810 | ||
2811 | else | |
2812 | ||
2813 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2814 | if test "x$LINE" != x ; then | |
2815 | eval "DEFAULT_$LINE" | |
2816 | else | |
2817 | no_cache=1 | |
2818 | fi | |
2819 | ||
2820 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2821 | ||
2822 | fi | |
2823 | ||
2824 | ||
2825 | eval "$ac_cv_use_log" | |
2826 | if test "$no_cache" != 1; then | |
2827 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2828 | fi | |
2829 | ||
2830 | if test "$wxUSE_LOG" = yes; then | |
2831 | echo "$ac_t""yes" 1>&6 | |
2832 | else | |
2833 | echo "$ac_t""no" 1>&6 | |
2834 | fi | |
2835 | ||
2836 | ||
2837 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
0709ee62 | 2838 | echo "configure:2839: checking "for --enable-streams"" >&5 |
a16d3c04 KB |
2839 | no_cache=0 |
2840 | # Check whether --enable-streams or --disable-streams was given. | |
2841 | if test "${enable_streams+set}" = set; then | |
2842 | enableval="$enable_streams" | |
2843 | ||
2844 | if test "$enableval" = yes; then | |
2845 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2846 | else | |
2847 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2848 | fi | |
2849 | ||
2850 | else | |
2851 | ||
2852 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2853 | if test "x$LINE" != x ; then | |
2854 | eval "DEFAULT_$LINE" | |
2855 | else | |
2856 | no_cache=1 | |
2857 | fi | |
2858 | ||
2859 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2860 | ||
2861 | fi | |
2862 | ||
2863 | ||
2864 | eval "$ac_cv_use_streams" | |
2865 | if test "$no_cache" != 1; then | |
2866 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2867 | fi | |
2868 | ||
2869 | if test "$wxUSE_STREAMS" = yes; then | |
2870 | echo "$ac_t""yes" 1>&6 | |
2871 | else | |
2872 | echo "$ac_t""no" 1>&6 | |
2873 | fi | |
2874 | ||
2875 | ||
2876 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
0709ee62 | 2877 | echo "configure:2878: checking "for --enable-file"" >&5 |
a16d3c04 KB |
2878 | no_cache=0 |
2879 | # Check whether --enable-file or --disable-file was given. | |
2880 | if test "${enable_file+set}" = set; then | |
2881 | enableval="$enable_file" | |
2882 | ||
2883 | if test "$enableval" = yes; then | |
2884 | ac_cv_use_file='wxUSE_FILE=yes' | |
2885 | else | |
2886 | ac_cv_use_file='wxUSE_FILE=no' | |
2887 | fi | |
2888 | ||
2889 | else | |
2890 | ||
2891 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2892 | if test "x$LINE" != x ; then | |
2893 | eval "DEFAULT_$LINE" | |
2894 | else | |
2895 | no_cache=1 | |
2896 | fi | |
2897 | ||
2898 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2899 | ||
2900 | fi | |
2901 | ||
2902 | ||
2903 | eval "$ac_cv_use_file" | |
2904 | if test "$no_cache" != 1; then | |
2905 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2906 | fi | |
2907 | ||
2908 | if test "$wxUSE_FILE" = yes; then | |
2909 | echo "$ac_t""yes" 1>&6 | |
2910 | else | |
2911 | echo "$ac_t""no" 1>&6 | |
2912 | fi | |
2913 | ||
2914 | ||
2915 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
0709ee62 | 2916 | echo "configure:2917: checking "for --enable-textfile"" >&5 |
a16d3c04 KB |
2917 | no_cache=0 |
2918 | # Check whether --enable-textfile or --disable-textfile was given. | |
2919 | if test "${enable_textfile+set}" = set; then | |
2920 | enableval="$enable_textfile" | |
2921 | ||
2922 | if test "$enableval" = yes; then | |
2923 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2924 | else | |
2925 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2926 | fi | |
2927 | ||
2928 | else | |
2929 | ||
2930 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2931 | if test "x$LINE" != x ; then | |
2932 | eval "DEFAULT_$LINE" | |
2933 | else | |
2934 | no_cache=1 | |
2935 | fi | |
2936 | ||
2937 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2938 | ||
2939 | fi | |
2940 | ||
2941 | ||
2942 | eval "$ac_cv_use_textfile" | |
2943 | if test "$no_cache" != 1; then | |
2944 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2945 | fi | |
2946 | ||
2947 | if test "$wxUSE_TEXTFILE" = yes; then | |
2948 | echo "$ac_t""yes" 1>&6 | |
2949 | else | |
2950 | echo "$ac_t""no" 1>&6 | |
2951 | fi | |
2952 | ||
2953 | ||
2954 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
0709ee62 | 2955 | echo "configure:2956: checking "for --enable-unicode"" >&5 |
a16d3c04 KB |
2956 | no_cache=0 |
2957 | # Check whether --enable-unicode or --disable-unicode was given. | |
2958 | if test "${enable_unicode+set}" = set; then | |
2959 | enableval="$enable_unicode" | |
2960 | ||
2961 | if test "$enableval" = yes; then | |
2962 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2963 | else | |
2964 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2965 | fi | |
2966 | ||
2967 | else | |
2968 | ||
2969 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
2970 | if test "x$LINE" != x ; then | |
2971 | eval "DEFAULT_$LINE" | |
2972 | else | |
2973 | no_cache=1 | |
2974 | fi | |
2975 | ||
2976 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
2977 | ||
2978 | fi | |
2979 | ||
2980 | ||
2981 | eval "$ac_cv_use_unicode" | |
2982 | if test "$no_cache" != 1; then | |
2983 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
2984 | fi | |
2985 | ||
2986 | if test "$wxUSE_UNICODE" = yes; then | |
2987 | echo "$ac_t""yes" 1>&6 | |
2988 | else | |
2989 | echo "$ac_t""no" 1>&6 | |
2990 | fi | |
2991 | ||
2992 | ||
2993 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
0709ee62 | 2994 | echo "configure:2995: checking "for --enable-wcsrtombs"" >&5 |
a16d3c04 KB |
2995 | no_cache=0 |
2996 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
2997 | if test "${enable_wcsrtombs+set}" = set; then | |
2998 | enableval="$enable_wcsrtombs" | |
2999 | ||
3000 | if test "$enableval" = yes; then | |
3001 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3002 | else | |
3003 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3004 | fi | |
3005 | ||
3006 | else | |
3007 | ||
3008 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3009 | if test "x$LINE" != x ; then | |
3010 | eval "DEFAULT_$LINE" | |
3011 | else | |
3012 | no_cache=1 | |
3013 | fi | |
3014 | ||
3015 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3016 | ||
3017 | fi | |
3018 | ||
3019 | ||
3020 | eval "$ac_cv_use_wcsrtombs" | |
3021 | if test "$no_cache" != 1; then | |
3022 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3023 | fi | |
3024 | ||
3025 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3026 | echo "$ac_t""yes" 1>&6 | |
3027 | else | |
3028 | echo "$ac_t""no" 1>&6 | |
3029 | fi | |
3030 | ||
3031 | ||
3032 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
0709ee62 | 3033 | echo "configure:3034: checking "for --enable-wxprintfv"" >&5 |
a16d3c04 KB |
3034 | no_cache=0 |
3035 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3036 | if test "${enable_wxprintfv+set}" = set; then | |
3037 | enableval="$enable_wxprintfv" | |
3038 | ||
3039 | if test "$enableval" = yes; then | |
3040 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3041 | else | |
3042 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3043 | fi | |
3044 | ||
3045 | else | |
3046 | ||
3047 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3048 | if test "x$LINE" != x ; then | |
3049 | eval "DEFAULT_$LINE" | |
3050 | else | |
3051 | no_cache=1 | |
3052 | fi | |
3053 | ||
3054 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3055 | ||
3056 | fi | |
3057 | ||
3058 | ||
3059 | eval "$ac_cv_use_wxprintfv" | |
3060 | if test "$no_cache" != 1; then | |
3061 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3062 | fi | |
3063 | ||
3064 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3065 | echo "$ac_t""yes" 1>&6 | |
3066 | else | |
3067 | echo "$ac_t""no" 1>&6 | |
3068 | fi | |
3069 | ||
3070 | ||
3071 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
0709ee62 | 3072 | echo "configure:3073: checking "for --enable-joystick"" >&5 |
a16d3c04 KB |
3073 | no_cache=0 |
3074 | # Check whether --enable-joystick or --disable-joystick was given. | |
3075 | if test "${enable_joystick+set}" = set; then | |
3076 | enableval="$enable_joystick" | |
3077 | ||
3078 | if test "$enableval" = yes; then | |
3079 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3080 | else | |
3081 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3082 | fi | |
3083 | ||
3084 | else | |
3085 | ||
3086 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3087 | if test "x$LINE" != x ; then | |
3088 | eval "DEFAULT_$LINE" | |
3089 | else | |
3090 | no_cache=1 | |
3091 | fi | |
3092 | ||
3093 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3094 | ||
3095 | fi | |
3096 | ||
3097 | ||
3098 | eval "$ac_cv_use_joystick" | |
3099 | if test "$no_cache" != 1; then | |
3100 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3101 | fi | |
3102 | ||
3103 | if test "$wxUSE_JOYSTICK" = yes; then | |
3104 | echo "$ac_t""yes" 1>&6 | |
3105 | else | |
3106 | echo "$ac_t""no" 1>&6 | |
3107 | fi | |
3108 | ||
3109 | ||
3110 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
0709ee62 | 3111 | echo "configure:3112: checking "for --enable-std_iostreams"" >&5 |
a16d3c04 KB |
3112 | no_cache=0 |
3113 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3114 | if test "${enable_std_iostreams+set}" = set; then | |
3115 | enableval="$enable_std_iostreams" | |
3116 | ||
3117 | if test "$enableval" = yes; then | |
3118 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3119 | else | |
3120 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3121 | fi | |
3122 | ||
3123 | else | |
3124 | ||
3125 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3126 | if test "x$LINE" != x ; then | |
3127 | eval "DEFAULT_$LINE" | |
3128 | else | |
3129 | no_cache=1 | |
3130 | fi | |
3131 | ||
3132 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3133 | ||
3134 | fi | |
3135 | ||
3136 | ||
3137 | eval "$ac_cv_use_std_iostreams" | |
3138 | if test "$no_cache" != 1; then | |
3139 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3140 | fi | |
3141 | ||
3142 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3143 | echo "$ac_t""yes" 1>&6 | |
3144 | else | |
3145 | echo "$ac_t""no" 1>&6 | |
3146 | fi | |
3147 | ||
3148 | ||
3149 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
0709ee62 | 3150 | echo "configure:3151: checking "for --enable-fs_inet"" >&5 |
a16d3c04 KB |
3151 | no_cache=0 |
3152 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3153 | if test "${enable_fs_inet+set}" = set; then | |
3154 | enableval="$enable_fs_inet" | |
3155 | ||
3156 | if test "$enableval" = yes; then | |
3157 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3158 | else | |
3159 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3160 | fi | |
3161 | ||
3162 | else | |
3163 | ||
3164 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3165 | if test "x$LINE" != x ; then | |
3166 | eval "DEFAULT_$LINE" | |
3167 | else | |
3168 | no_cache=1 | |
3169 | fi | |
3170 | ||
3171 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3172 | ||
3173 | fi | |
3174 | ||
3175 | ||
3176 | eval "$ac_cv_use_fs_inet" | |
3177 | if test "$no_cache" != 1; then | |
3178 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3179 | fi | |
3180 | ||
3181 | if test "$wxUSE_FS_INET" = yes; then | |
3182 | echo "$ac_t""yes" 1>&6 | |
3183 | else | |
3184 | echo "$ac_t""no" 1>&6 | |
3185 | fi | |
3186 | ||
3187 | ||
3188 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
0709ee62 | 3189 | echo "configure:3190: checking "for --enable-fs_zip"" >&5 |
a16d3c04 KB |
3190 | no_cache=0 |
3191 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3192 | if test "${enable_fs_zip+set}" = set; then | |
3193 | enableval="$enable_fs_zip" | |
3194 | ||
3195 | if test "$enableval" = yes; then | |
3196 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3197 | else | |
3198 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3199 | fi | |
3200 | ||
3201 | else | |
3202 | ||
3203 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3204 | if test "x$LINE" != x ; then | |
3205 | eval "DEFAULT_$LINE" | |
3206 | else | |
3207 | no_cache=1 | |
3208 | fi | |
3209 | ||
3210 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3211 | ||
3212 | fi | |
3213 | ||
3214 | ||
3215 | eval "$ac_cv_use_fs_zip" | |
3216 | if test "$no_cache" != 1; then | |
3217 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3218 | fi | |
3219 | ||
3220 | if test "$wxUSE_FS_ZIP" = yes; then | |
3221 | echo "$ac_t""yes" 1>&6 | |
3222 | else | |
3223 | echo "$ac_t""no" 1>&6 | |
3224 | fi | |
3225 | ||
3226 | ||
3227 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
0709ee62 | 3228 | echo "configure:3229: checking "for --enable-zipstream"" >&5 |
a16d3c04 KB |
3229 | no_cache=0 |
3230 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3231 | if test "${enable_zipstream+set}" = set; then | |
3232 | enableval="$enable_zipstream" | |
3233 | ||
3234 | if test "$enableval" = yes; then | |
3235 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3236 | else | |
3237 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3238 | fi | |
3239 | ||
3240 | else | |
3241 | ||
3242 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3243 | if test "x$LINE" != x ; then | |
3244 | eval "DEFAULT_$LINE" | |
3245 | else | |
3246 | no_cache=1 | |
3247 | fi | |
3248 | ||
3249 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3250 | ||
3251 | fi | |
3252 | ||
3253 | ||
3254 | eval "$ac_cv_use_zipstream" | |
3255 | if test "$no_cache" != 1; then | |
3256 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3257 | fi | |
3258 | ||
3259 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3260 | echo "$ac_t""yes" 1>&6 | |
3261 | else | |
3262 | echo "$ac_t""no" 1>&6 | |
3263 | fi | |
3264 | ||
3265 | ||
3266 | ||
3267 | ||
3268 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
0709ee62 | 3269 | echo "configure:3270: checking "for --enable-threads"" >&5 |
a16d3c04 KB |
3270 | no_cache=0 |
3271 | # Check whether --enable-threads or --disable-threads was given. | |
3272 | if test "${enable_threads+set}" = set; then | |
3273 | enableval="$enable_threads" | |
3274 | ||
3275 | if test "$enableval" = yes; then | |
3276 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3277 | else | |
3278 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3279 | fi | |
3280 | ||
3281 | else | |
3282 | ||
3283 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3284 | if test "x$LINE" != x ; then | |
3285 | eval "DEFAULT_$LINE" | |
3286 | else | |
3287 | no_cache=1 | |
3288 | fi | |
3289 | ||
3290 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3291 | ||
3292 | fi | |
3293 | ||
3294 | ||
3295 | eval "$ac_cv_use_threads" | |
3296 | if test "$no_cache" != 1; then | |
3297 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3298 | fi | |
3299 | ||
3300 | if test "$wxUSE_THREADS" = yes; then | |
3301 | echo "$ac_t""yes" 1>&6 | |
3302 | else | |
3303 | echo "$ac_t""no" 1>&6 | |
3304 | fi | |
3305 | ||
3306 | ||
3307 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
0709ee62 | 3308 | echo "configure:3309: checking "for --enable-serial"" >&5 |
a16d3c04 KB |
3309 | no_cache=0 |
3310 | # Check whether --enable-serial or --disable-serial was given. | |
3311 | if test "${enable_serial+set}" = set; then | |
3312 | enableval="$enable_serial" | |
3313 | ||
3314 | if test "$enableval" = yes; then | |
3315 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3316 | else | |
3317 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3318 | fi | |
3319 | ||
3320 | else | |
3321 | ||
3322 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3323 | if test "x$LINE" != x ; then | |
3324 | eval "DEFAULT_$LINE" | |
3325 | else | |
3326 | no_cache=1 | |
3327 | fi | |
3328 | ||
3329 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3330 | ||
3331 | fi | |
3332 | ||
3333 | ||
3334 | eval "$ac_cv_use_serial" | |
3335 | if test "$no_cache" != 1; then | |
3336 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3337 | fi | |
3338 | ||
3339 | if test "$wxUSE_SERIAL" = yes; then | |
3340 | echo "$ac_t""yes" 1>&6 | |
3341 | else | |
3342 | echo "$ac_t""no" 1>&6 | |
3343 | fi | |
3344 | ||
3345 | ||
3346 | ||
3347 | ||
3348 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
0709ee62 | 3349 | echo "configure:3350: checking "for --enable-docview"" >&5 |
a16d3c04 KB |
3350 | no_cache=0 |
3351 | # Check whether --enable-docview or --disable-docview was given. | |
3352 | if test "${enable_docview+set}" = set; then | |
3353 | enableval="$enable_docview" | |
3354 | ||
3355 | if test "$enableval" = yes; then | |
3356 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3357 | else | |
3358 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3359 | fi | |
3360 | ||
3361 | else | |
3362 | ||
3363 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3364 | if test "x$LINE" != x ; then | |
3365 | eval "DEFAULT_$LINE" | |
3366 | else | |
3367 | no_cache=1 | |
3368 | fi | |
3369 | ||
3370 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3371 | ||
3372 | fi | |
3373 | ||
3374 | ||
3375 | eval "$ac_cv_use_docview" | |
3376 | if test "$no_cache" != 1; then | |
3377 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3378 | fi | |
3379 | ||
3380 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3381 | echo "$ac_t""yes" 1>&6 | |
3382 | else | |
3383 | echo "$ac_t""no" 1>&6 | |
3384 | fi | |
3385 | ||
3386 | ||
3387 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
0709ee62 | 3388 | echo "configure:3389: checking "for --enable-help"" >&5 |
a16d3c04 KB |
3389 | no_cache=0 |
3390 | # Check whether --enable-help or --disable-help was given. | |
3391 | if test "${enable_help+set}" = set; then | |
3392 | enableval="$enable_help" | |
3393 | ||
3394 | if test "$enableval" = yes; then | |
3395 | ac_cv_use_help='wxUSE_HELP=yes' | |
3396 | else | |
3397 | ac_cv_use_help='wxUSE_HELP=no' | |
3398 | fi | |
3399 | ||
3400 | else | |
3401 | ||
3402 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3403 | if test "x$LINE" != x ; then | |
3404 | eval "DEFAULT_$LINE" | |
3405 | else | |
3406 | no_cache=1 | |
3407 | fi | |
3408 | ||
3409 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3410 | ||
3411 | fi | |
3412 | ||
3413 | ||
3414 | eval "$ac_cv_use_help" | |
3415 | if test "$no_cache" != 1; then | |
3416 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3417 | fi | |
3418 | ||
3419 | if test "$wxUSE_HELP" = yes; then | |
3420 | echo "$ac_t""yes" 1>&6 | |
3421 | else | |
3422 | echo "$ac_t""no" 1>&6 | |
3423 | fi | |
3424 | ||
3425 | ||
3426 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
0709ee62 | 3427 | echo "configure:3428: checking "for --enable-constraints"" >&5 |
a16d3c04 KB |
3428 | no_cache=0 |
3429 | # Check whether --enable-constraints or --disable-constraints was given. | |
3430 | if test "${enable_constraints+set}" = set; then | |
3431 | enableval="$enable_constraints" | |
3432 | ||
3433 | if test "$enableval" = yes; then | |
3434 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3435 | else | |
3436 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3437 | fi | |
3438 | ||
3439 | else | |
3440 | ||
3441 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3442 | if test "x$LINE" != x ; then | |
3443 | eval "DEFAULT_$LINE" | |
3444 | else | |
3445 | no_cache=1 | |
3446 | fi | |
3447 | ||
3448 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3449 | ||
3450 | fi | |
3451 | ||
3452 | ||
3453 | eval "$ac_cv_use_constraints" | |
3454 | if test "$no_cache" != 1; then | |
3455 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3456 | fi | |
3457 | ||
3458 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3459 | echo "$ac_t""yes" 1>&6 | |
3460 | else | |
3461 | echo "$ac_t""no" 1>&6 | |
3462 | fi | |
3463 | ||
3464 | ||
3465 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
0709ee62 | 3466 | echo "configure:3467: checking "for --enable-printarch"" >&5 |
a16d3c04 KB |
3467 | no_cache=0 |
3468 | # Check whether --enable-printarch or --disable-printarch was given. | |
3469 | if test "${enable_printarch+set}" = set; then | |
3470 | enableval="$enable_printarch" | |
3471 | ||
3472 | if test "$enableval" = yes; then | |
3473 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3474 | else | |
3475 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3476 | fi | |
3477 | ||
3478 | else | |
3479 | ||
3480 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3481 | if test "x$LINE" != x ; then | |
3482 | eval "DEFAULT_$LINE" | |
3483 | else | |
3484 | no_cache=1 | |
3485 | fi | |
3486 | ||
3487 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3488 | ||
3489 | fi | |
3490 | ||
3491 | ||
3492 | eval "$ac_cv_use_printarch" | |
3493 | if test "$no_cache" != 1; then | |
3494 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3495 | fi | |
3496 | ||
3497 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3498 | echo "$ac_t""yes" 1>&6 | |
3499 | else | |
3500 | echo "$ac_t""no" 1>&6 | |
3501 | fi | |
3502 | ||
3503 | ||
3504 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
0709ee62 | 3505 | echo "configure:3506: checking "for --enable-mdi"" >&5 |
a16d3c04 KB |
3506 | no_cache=0 |
3507 | # Check whether --enable-mdi or --disable-mdi was given. | |
3508 | if test "${enable_mdi+set}" = set; then | |
3509 | enableval="$enable_mdi" | |
3510 | ||
3511 | if test "$enableval" = yes; then | |
3512 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3513 | else | |
3514 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3515 | fi | |
3516 | ||
3517 | else | |
3518 | ||
3519 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3520 | if test "x$LINE" != x ; then | |
3521 | eval "DEFAULT_$LINE" | |
3522 | else | |
3523 | no_cache=1 | |
3524 | fi | |
3525 | ||
3526 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3527 | ||
3528 | fi | |
3529 | ||
3530 | ||
3531 | eval "$ac_cv_use_mdi" | |
3532 | if test "$no_cache" != 1; then | |
3533 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3534 | fi | |
3535 | ||
3536 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3537 | echo "$ac_t""yes" 1>&6 | |
3538 | else | |
3539 | echo "$ac_t""no" 1>&6 | |
3540 | fi | |
3541 | ||
3542 | ||
3543 | ||
3544 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
0709ee62 | 3545 | echo "configure:3546: checking "for --enable-postscript"" >&5 |
a16d3c04 KB |
3546 | no_cache=0 |
3547 | # Check whether --enable-postscript or --disable-postscript was given. | |
3548 | if test "${enable_postscript+set}" = set; then | |
3549 | enableval="$enable_postscript" | |
3550 | ||
3551 | if test "$enableval" = yes; then | |
3552 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3553 | else | |
3554 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3555 | fi | |
3556 | ||
3557 | else | |
3558 | ||
3559 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3560 | if test "x$LINE" != x ; then | |
3561 | eval "DEFAULT_$LINE" | |
3562 | else | |
3563 | no_cache=1 | |
3564 | fi | |
3565 | ||
3566 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3567 | ||
3568 | fi | |
3569 | ||
3570 | ||
3571 | eval "$ac_cv_use_postscript" | |
3572 | if test "$no_cache" != 1; then | |
3573 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3574 | fi | |
3575 | ||
3576 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3577 | echo "$ac_t""yes" 1>&6 | |
3578 | else | |
3579 | echo "$ac_t""no" 1>&6 | |
3580 | fi | |
3581 | ||
3582 | ||
3583 | ||
3584 | ||
3585 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
0709ee62 | 3586 | echo "configure:3587: checking "for --enable-prologio"" >&5 |
a16d3c04 KB |
3587 | no_cache=0 |
3588 | # Check whether --enable-prologio or --disable-prologio was given. | |
3589 | if test "${enable_prologio+set}" = set; then | |
3590 | enableval="$enable_prologio" | |
3591 | ||
3592 | if test "$enableval" = yes; then | |
3593 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3594 | else | |
3595 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3596 | fi | |
3597 | ||
3598 | else | |
3599 | ||
3600 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3601 | if test "x$LINE" != x ; then | |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
3607 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3608 | ||
3609 | fi | |
3610 | ||
3611 | ||
3612 | eval "$ac_cv_use_prologio" | |
3613 | if test "$no_cache" != 1; then | |
3614 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3615 | fi | |
3616 | ||
3617 | if test "$wxUSE_PROLOGIO" = yes; then | |
3618 | echo "$ac_t""yes" 1>&6 | |
3619 | else | |
3620 | echo "$ac_t""no" 1>&6 | |
3621 | fi | |
3622 | ||
3623 | ||
3624 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
0709ee62 | 3625 | echo "configure:3626: checking "for --enable-resources"" >&5 |
a16d3c04 KB |
3626 | no_cache=0 |
3627 | # Check whether --enable-resources or --disable-resources was given. | |
3628 | if test "${enable_resources+set}" = set; then | |
3629 | enableval="$enable_resources" | |
3630 | ||
3631 | if test "$enableval" = yes; then | |
3632 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3633 | else | |
3634 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3635 | fi | |
3636 | ||
3637 | else | |
3638 | ||
3639 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3640 | if test "x$LINE" != x ; then | |
3641 | eval "DEFAULT_$LINE" | |
3642 | else | |
3643 | no_cache=1 | |
3644 | fi | |
3645 | ||
3646 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3647 | ||
3648 | fi | |
3649 | ||
3650 | ||
3651 | eval "$ac_cv_use_resources" | |
3652 | if test "$no_cache" != 1; then | |
3653 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3654 | fi | |
3655 | ||
3656 | if test "$wxUSE_RESOURCES" = yes; then | |
3657 | echo "$ac_t""yes" 1>&6 | |
3658 | else | |
3659 | echo "$ac_t""no" 1>&6 | |
3660 | fi | |
3661 | ||
3662 | ||
3663 | ||
3664 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
0709ee62 | 3665 | echo "configure:3666: checking "for --enable-xresources"" >&5 |
a16d3c04 KB |
3666 | no_cache=0 |
3667 | # Check whether --enable-xresources or --disable-xresources was given. | |
3668 | if test "${enable_xresources+set}" = set; then | |
3669 | enableval="$enable_xresources" | |
3670 | ||
3671 | if test "$enableval" = yes; then | |
3672 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3673 | else | |
3674 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3675 | fi | |
3676 | ||
3677 | else | |
3678 | ||
3679 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3680 | if test "x$LINE" != x ; then | |
3681 | eval "DEFAULT_$LINE" | |
3682 | else | |
3683 | no_cache=1 | |
3684 | fi | |
3685 | ||
3686 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3687 | ||
3688 | fi | |
3689 | ||
3690 | ||
3691 | eval "$ac_cv_use_xresources" | |
3692 | if test "$no_cache" != 1; then | |
3693 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3694 | fi | |
3695 | ||
3696 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3697 | echo "$ac_t""yes" 1>&6 | |
3698 | else | |
3699 | echo "$ac_t""no" 1>&6 | |
3700 | fi | |
3701 | ||
3702 | ||
3703 | ||
3704 | ||
3705 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
0709ee62 | 3706 | echo "configure:3707: checking "for --enable-clipboard"" >&5 |
a16d3c04 KB |
3707 | no_cache=0 |
3708 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3709 | if test "${enable_clipboard+set}" = set; then | |
3710 | enableval="$enable_clipboard" | |
3711 | ||
3712 | if test "$enableval" = yes; then | |
3713 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3714 | else | |
3715 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3716 | fi | |
3717 | ||
3718 | else | |
3719 | ||
3720 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3721 | if test "x$LINE" != x ; then | |
3722 | eval "DEFAULT_$LINE" | |
3723 | else | |
3724 | no_cache=1 | |
3725 | fi | |
3726 | ||
3727 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3728 | ||
3729 | fi | |
3730 | ||
3731 | ||
3732 | eval "$ac_cv_use_clipboard" | |
3733 | if test "$no_cache" != 1; then | |
3734 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3735 | fi | |
3736 | ||
3737 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3738 | echo "$ac_t""yes" 1>&6 | |
3739 | else | |
3740 | echo "$ac_t""no" 1>&6 | |
3741 | fi | |
3742 | ||
3743 | ||
3744 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
0709ee62 | 3745 | echo "configure:3746: checking "for --enable-dnd"" >&5 |
a16d3c04 KB |
3746 | no_cache=0 |
3747 | # Check whether --enable-dnd or --disable-dnd was given. | |
3748 | if test "${enable_dnd+set}" = set; then | |
3749 | enableval="$enable_dnd" | |
3750 | ||
3751 | if test "$enableval" = yes; then | |
3752 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3753 | else | |
3754 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3755 | fi | |
3756 | ||
3757 | else | |
3758 | ||
3759 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3760 | if test "x$LINE" != x ; then | |
3761 | eval "DEFAULT_$LINE" | |
3762 | else | |
3763 | no_cache=1 | |
3764 | fi | |
3765 | ||
3766 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3767 | ||
3768 | fi | |
3769 | ||
3770 | ||
3771 | eval "$ac_cv_use_dnd" | |
3772 | if test "$no_cache" != 1; then | |
3773 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3774 | fi | |
3775 | ||
3776 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3777 | echo "$ac_t""yes" 1>&6 | |
3778 | else | |
3779 | echo "$ac_t""no" 1>&6 | |
3780 | fi | |
3781 | ||
3782 | ||
3783 | ||
3784 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
0709ee62 | 3785 | echo "configure:3786: checking "for --enable-wxtree"" >&5 |
a16d3c04 KB |
3786 | no_cache=0 |
3787 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3788 | if test "${enable_wxtree+set}" = set; then | |
3789 | enableval="$enable_wxtree" | |
3790 | ||
3791 | if test "$enableval" = yes; then | |
3792 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3793 | else | |
3794 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3795 | fi | |
3796 | ||
3797 | else | |
3798 | ||
3799 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3800 | if test "x$LINE" != x ; then | |
3801 | eval "DEFAULT_$LINE" | |
3802 | else | |
3803 | no_cache=1 | |
3804 | fi | |
3805 | ||
3806 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3807 | ||
3808 | fi | |
3809 | ||
3810 | ||
3811 | eval "$ac_cv_use_wxtree" | |
3812 | if test "$no_cache" != 1; then | |
3813 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3814 | fi | |
3815 | ||
3816 | if test "$wxUSE_WXTREE" = yes; then | |
3817 | echo "$ac_t""yes" 1>&6 | |
3818 | else | |
3819 | echo "$ac_t""no" 1>&6 | |
3820 | fi | |
3821 | ||
3822 | ||
3823 | ||
3824 | ||
3825 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
0709ee62 | 3826 | echo "configure:3827: checking "for --enable-controls"" >&5 |
a16d3c04 KB |
3827 | no_cache=0 |
3828 | # Check whether --enable-controls or --disable-controls was given. | |
3829 | if test "${enable_controls+set}" = set; then | |
3830 | enableval="$enable_controls" | |
3831 | ||
3832 | if test "$enableval" = yes; then | |
3833 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3834 | else | |
3835 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3836 | fi | |
3837 | ||
3838 | else | |
3839 | ||
3840 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3841 | if test "x$LINE" != x ; then | |
3842 | eval "DEFAULT_$LINE" | |
3843 | else | |
3844 | no_cache=1 | |
3845 | fi | |
3846 | ||
3847 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3848 | ||
3849 | fi | |
3850 | ||
3851 | ||
3852 | eval "$ac_cv_use_controls" | |
3853 | if test "$no_cache" != 1; then | |
3854 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3855 | fi | |
3856 | ||
3857 | if test "$wxUSE_CONTROLS" = yes; then | |
3858 | echo "$ac_t""yes" 1>&6 | |
3859 | else | |
3860 | echo "$ac_t""no" 1>&6 | |
3861 | fi | |
3862 | ||
3863 | ||
3864 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3865 | DEFAULT_wxUSE_ACCEL=yes | |
3866 | DEFAULT_wxUSE_CARET=yes | |
3867 | DEFAULT_wxUSE_COMBOBOX=yes | |
3868 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3869 | DEFAULT_wxUSE_CHECKBOX=yes | |
3870 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3871 | DEFAULT_wxUSE_CHOICE=yes | |
3872 | DEFAULT_wxUSE_GAUGE=yes | |
3873 | DEFAULT_wxUSE_GRID=yes | |
2726c66d | 3874 | DEFAULT_wxUSE_NEW_GRID=yes |
a16d3c04 KB |
3875 | DEFAULT_wxUSE_IMAGLIST=yes |
3876 | DEFAULT_wxUSE_LISTBOX=yes | |
3877 | DEFAULT_wxUSE_LISTCTRL=yes | |
3878 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3879 | DEFAULT_wxUSE_RADIOBOX=yes | |
3880 | DEFAULT_wxUSE_RADIOBTN=yes | |
3881 | DEFAULT_wxUSE_SASH=yes | |
3882 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3883 | DEFAULT_wxUSE_SLIDER=yes | |
3884 | DEFAULT_wxUSE_SPINBTN=yes | |
3885 | DEFAULT_wxUSE_SPLITTER=yes | |
3886 | DEFAULT_wxUSE_STATBMP=yes | |
3887 | DEFAULT_wxUSE_STATBOX=yes | |
3888 | DEFAULT_wxUSE_STATLINE=yes | |
3889 | DEFAULT_wxUSE_STATUSBAR=yes | |
3890 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3891 | DEFAULT_wxUSE_TOOLBAR=yes | |
3892 | DEFAULT_wxUSE_TOOLTIPS=yes | |
3893 | DEFAULT_wxUSE_TREECTRL=yes | |
3894 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3895 | DEFAULT_wxUSE_ACCEL=no | |
3896 | DEFAULT_wxUSE_CARET=no | |
3897 | DEFAULT_wxUSE_COMBOBOX=no | |
3898 | DEFAULT_wxUSE_BMPBUTTON=no | |
3899 | DEFAULT_wxUSE_CHECKBOX=no | |
3900 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3901 | DEFAULT_wxUSE_CHOICE=no | |
3902 | DEFAULT_wxUSE_GAUGE=no | |
3903 | DEFAULT_wxUSE_GRID=no | |
2726c66d | 3904 | DEFAULT_wxUSE_NEW_GRID=no |
a16d3c04 KB |
3905 | DEFAULT_wxUSE_IMAGLIST=no |
3906 | DEFAULT_wxUSE_LISTBOX=no | |
3907 | DEFAULT_wxUSE_LISTCTRL=no | |
3908 | DEFAULT_wxUSE_NOTEBOOK=no | |
3909 | DEFAULT_wxUSE_RADIOBOX=no | |
3910 | DEFAULT_wxUSE_RADIOBTN=no | |
3911 | DEFAULT_wxUSE_SASH=no | |
3912 | DEFAULT_wxUSE_SCROLLBAR=no | |
3913 | DEFAULT_wxUSE_SLIDER=no | |
3914 | DEFAULT_wxUSE_SPINBTN=no | |
3915 | DEFAULT_wxUSE_SPLITTER=no | |
3916 | DEFAULT_wxUSE_STATBMP=no | |
3917 | DEFAULT_wxUSE_STATBOX=no | |
3918 | DEFAULT_wxUSE_STATLINE=no | |
3919 | DEFAULT_wxUSE_STATUSBAR=no | |
3920 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3921 | DEFAULT_wxUSE_TOOLBAR=no | |
3922 | DEFAULT_wxUSE_TOOLTIPS=no | |
3923 | DEFAULT_wxUSE_TREECTRL=no | |
3924 | fi | |
3925 | ||
3926 | ||
3927 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
0709ee62 | 3928 | echo "configure:3929: checking "for --enable-accel"" >&5 |
a16d3c04 KB |
3929 | no_cache=0 |
3930 | # Check whether --enable-accel or --disable-accel was given. | |
3931 | if test "${enable_accel+set}" = set; then | |
3932 | enableval="$enable_accel" | |
3933 | ||
3934 | if test "$enableval" = yes; then | |
3935 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3936 | else | |
3937 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3938 | fi | |
3939 | ||
3940 | else | |
3941 | ||
3942 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3943 | if test "x$LINE" != x ; then | |
3944 | eval "DEFAULT_$LINE" | |
3945 | else | |
3946 | no_cache=1 | |
3947 | fi | |
3948 | ||
3949 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3950 | ||
3951 | fi | |
3952 | ||
3953 | ||
3954 | eval "$ac_cv_use_accel" | |
3955 | if test "$no_cache" != 1; then | |
3956 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3957 | fi | |
3958 | ||
3959 | if test "$wxUSE_ACCEL" = yes; then | |
3960 | echo "$ac_t""yes" 1>&6 | |
3961 | else | |
3962 | echo "$ac_t""no" 1>&6 | |
3963 | fi | |
3964 | ||
3965 | ||
3966 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
0709ee62 | 3967 | echo "configure:3968: checking "for --enable-caret"" >&5 |
a16d3c04 KB |
3968 | no_cache=0 |
3969 | # Check whether --enable-caret or --disable-caret was given. | |
3970 | if test "${enable_caret+set}" = set; then | |
3971 | enableval="$enable_caret" | |
3972 | ||
3973 | if test "$enableval" = yes; then | |
3974 | ac_cv_use_caret='wxUSE_CARET=yes' | |
3975 | else | |
3976 | ac_cv_use_caret='wxUSE_CARET=no' | |
3977 | fi | |
3978 | ||
3979 | else | |
3980 | ||
3981 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
3982 | if test "x$LINE" != x ; then | |
3983 | eval "DEFAULT_$LINE" | |
3984 | else | |
3985 | no_cache=1 | |
3986 | fi | |
3987 | ||
3988 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
3989 | ||
3990 | fi | |
3991 | ||
3992 | ||
3993 | eval "$ac_cv_use_caret" | |
3994 | if test "$no_cache" != 1; then | |
3995 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
3996 | fi | |
3997 | ||
3998 | if test "$wxUSE_CARET" = yes; then | |
3999 | echo "$ac_t""yes" 1>&6 | |
4000 | else | |
4001 | echo "$ac_t""no" 1>&6 | |
4002 | fi | |
4003 | ||
4004 | ||
4005 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
0709ee62 | 4006 | echo "configure:4007: checking "for --enable-bmpbutton"" >&5 |
a16d3c04 KB |
4007 | no_cache=0 |
4008 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4009 | if test "${enable_bmpbutton+set}" = set; then | |
4010 | enableval="$enable_bmpbutton" | |
4011 | ||
4012 | if test "$enableval" = yes; then | |
4013 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4014 | else | |
4015 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4016 | fi | |
4017 | ||
4018 | else | |
4019 | ||
4020 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4021 | if test "x$LINE" != x ; then | |
4022 | eval "DEFAULT_$LINE" | |
4023 | else | |
4024 | no_cache=1 | |
4025 | fi | |
4026 | ||
4027 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4028 | ||
4029 | fi | |
4030 | ||
4031 | ||
4032 | eval "$ac_cv_use_bmpbutton" | |
4033 | if test "$no_cache" != 1; then | |
4034 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4035 | fi | |
4036 | ||
4037 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4038 | echo "$ac_t""yes" 1>&6 | |
4039 | else | |
4040 | echo "$ac_t""no" 1>&6 | |
4041 | fi | |
4042 | ||
4043 | ||
4044 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
0709ee62 | 4045 | echo "configure:4046: checking "for --enable-checkbox"" >&5 |
a16d3c04 KB |
4046 | no_cache=0 |
4047 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4048 | if test "${enable_checkbox+set}" = set; then | |
4049 | enableval="$enable_checkbox" | |
4050 | ||
4051 | if test "$enableval" = yes; then | |
4052 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4053 | else | |
4054 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4055 | fi | |
4056 | ||
4057 | else | |
4058 | ||
4059 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4060 | if test "x$LINE" != x ; then | |
4061 | eval "DEFAULT_$LINE" | |
4062 | else | |
4063 | no_cache=1 | |
4064 | fi | |
4065 | ||
4066 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4067 | ||
4068 | fi | |
4069 | ||
4070 | ||
4071 | eval "$ac_cv_use_checkbox" | |
4072 | if test "$no_cache" != 1; then | |
4073 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4074 | fi | |
4075 | ||
4076 | if test "$wxUSE_CHECKBOX" = yes; then | |
4077 | echo "$ac_t""yes" 1>&6 | |
4078 | else | |
4079 | echo "$ac_t""no" 1>&6 | |
4080 | fi | |
4081 | ||
4082 | ||
4083 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
0709ee62 | 4084 | echo "configure:4085: checking "for --enable-checklst"" >&5 |
a16d3c04 KB |
4085 | no_cache=0 |
4086 | # Check whether --enable-checklst or --disable-checklst was given. | |
4087 | if test "${enable_checklst+set}" = set; then | |
4088 | enableval="$enable_checklst" | |
4089 | ||
4090 | if test "$enableval" = yes; then | |
4091 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4092 | else | |
4093 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4094 | fi | |
4095 | ||
4096 | else | |
4097 | ||
4098 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4099 | if test "x$LINE" != x ; then | |
4100 | eval "DEFAULT_$LINE" | |
4101 | else | |
4102 | no_cache=1 | |
4103 | fi | |
4104 | ||
4105 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4106 | ||
4107 | fi | |
4108 | ||
4109 | ||
4110 | eval "$ac_cv_use_checklst" | |
4111 | if test "$no_cache" != 1; then | |
4112 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4113 | fi | |
4114 | ||
4115 | if test "$wxUSE_CHECKLST" = yes; then | |
4116 | echo "$ac_t""yes" 1>&6 | |
4117 | else | |
4118 | echo "$ac_t""no" 1>&6 | |
4119 | fi | |
4120 | ||
4121 | ||
4122 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
0709ee62 | 4123 | echo "configure:4124: checking "for --enable-choice"" >&5 |
a16d3c04 KB |
4124 | no_cache=0 |
4125 | # Check whether --enable-choice or --disable-choice was given. | |
4126 | if test "${enable_choice+set}" = set; then | |
4127 | enableval="$enable_choice" | |
4128 | ||
4129 | if test "$enableval" = yes; then | |
4130 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4131 | else | |
4132 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4133 | fi | |
4134 | ||
4135 | else | |
4136 | ||
4137 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4138 | if test "x$LINE" != x ; then | |
4139 | eval "DEFAULT_$LINE" | |
4140 | else | |
4141 | no_cache=1 | |
4142 | fi | |
4143 | ||
4144 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4145 | ||
4146 | fi | |
4147 | ||
4148 | ||
4149 | eval "$ac_cv_use_choice" | |
4150 | if test "$no_cache" != 1; then | |
4151 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4152 | fi | |
4153 | ||
4154 | if test "$wxUSE_CHOICE" = yes; then | |
4155 | echo "$ac_t""yes" 1>&6 | |
4156 | else | |
4157 | echo "$ac_t""no" 1>&6 | |
4158 | fi | |
4159 | ||
4160 | ||
4161 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
0709ee62 | 4162 | echo "configure:4163: checking "for --enable-combobox"" >&5 |
a16d3c04 KB |
4163 | no_cache=0 |
4164 | # Check whether --enable-combobox or --disable-combobox was given. | |
4165 | if test "${enable_combobox+set}" = set; then | |
4166 | enableval="$enable_combobox" | |
4167 | ||
4168 | if test "$enableval" = yes; then | |
4169 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4170 | else | |
4171 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4172 | fi | |
4173 | ||
4174 | else | |
4175 | ||
4176 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4177 | if test "x$LINE" != x ; then | |
4178 | eval "DEFAULT_$LINE" | |
4179 | else | |
4180 | no_cache=1 | |
4181 | fi | |
4182 | ||
4183 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4184 | ||
4185 | fi | |
4186 | ||
4187 | ||
4188 | eval "$ac_cv_use_combobox" | |
4189 | if test "$no_cache" != 1; then | |
4190 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4191 | fi | |
4192 | ||
4193 | if test "$wxUSE_COMBOBOX" = yes; then | |
4194 | echo "$ac_t""yes" 1>&6 | |
4195 | else | |
4196 | echo "$ac_t""no" 1>&6 | |
4197 | fi | |
4198 | ||
4199 | ||
4200 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
0709ee62 | 4201 | echo "configure:4202: checking "for --enable-gauge"" >&5 |
a16d3c04 KB |
4202 | no_cache=0 |
4203 | # Check whether --enable-gauge or --disable-gauge was given. | |
4204 | if test "${enable_gauge+set}" = set; then | |
4205 | enableval="$enable_gauge" | |
4206 | ||
4207 | if test "$enableval" = yes; then | |
4208 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4209 | else | |
4210 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4211 | fi | |
4212 | ||
4213 | else | |
4214 | ||
4215 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4216 | if test "x$LINE" != x ; then | |
4217 | eval "DEFAULT_$LINE" | |
4218 | else | |
4219 | no_cache=1 | |
4220 | fi | |
4221 | ||
4222 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4223 | ||
4224 | fi | |
4225 | ||
4226 | ||
4227 | eval "$ac_cv_use_gauge" | |
4228 | if test "$no_cache" != 1; then | |
4229 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4230 | fi | |
4231 | ||
4232 | if test "$wxUSE_GAUGE" = yes; then | |
4233 | echo "$ac_t""yes" 1>&6 | |
4234 | else | |
4235 | echo "$ac_t""no" 1>&6 | |
4236 | fi | |
4237 | ||
4238 | ||
4239 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
0709ee62 | 4240 | echo "configure:4241: checking "for --enable-grid"" >&5 |
a16d3c04 KB |
4241 | no_cache=0 |
4242 | # Check whether --enable-grid or --disable-grid was given. | |
4243 | if test "${enable_grid+set}" = set; then | |
4244 | enableval="$enable_grid" | |
4245 | ||
4246 | if test "$enableval" = yes; then | |
4247 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4248 | else | |
4249 | ac_cv_use_grid='wxUSE_GRID=no' | |
4250 | fi | |
4251 | ||
4252 | else | |
4253 | ||
4254 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4255 | if test "x$LINE" != x ; then | |
4256 | eval "DEFAULT_$LINE" | |
4257 | else | |
4258 | no_cache=1 | |
4259 | fi | |
4260 | ||
4261 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4262 | ||
4263 | fi | |
4264 | ||
4265 | ||
4266 | eval "$ac_cv_use_grid" | |
4267 | if test "$no_cache" != 1; then | |
4268 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4269 | fi | |
4270 | ||
4271 | if test "$wxUSE_GRID" = yes; then | |
4272 | echo "$ac_t""yes" 1>&6 | |
4273 | else | |
4274 | echo "$ac_t""no" 1>&6 | |
4275 | fi | |
4276 | ||
4277 | ||
2726c66d | 4278 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 |
0709ee62 | 4279 | echo "configure:4280: checking "for --enable-newgrid"" >&5 |
2726c66d KB |
4280 | no_cache=0 |
4281 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4282 | if test "${enable_newgrid+set}" = set; then | |
4283 | enableval="$enable_newgrid" | |
4284 | ||
4285 | if test "$enableval" = yes; then | |
4286 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4287 | else | |
4288 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4289 | fi | |
4290 | ||
4291 | else | |
4292 | ||
4293 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4294 | if test "x$LINE" != x ; then | |
4295 | eval "DEFAULT_$LINE" | |
4296 | else | |
4297 | no_cache=1 | |
4298 | fi | |
4299 | ||
4300 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4301 | ||
4302 | fi | |
4303 | ||
4304 | ||
4305 | eval "$ac_cv_use_newgrid" | |
4306 | if test "$no_cache" != 1; then | |
4307 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4308 | fi | |
4309 | ||
4310 | if test "$wxUSE_NEW_GRID" = yes; then | |
4311 | echo "$ac_t""yes" 1>&6 | |
4312 | else | |
4313 | echo "$ac_t""no" 1>&6 | |
4314 | fi | |
4315 | ||
4316 | ||
a16d3c04 | 4317 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 |
0709ee62 | 4318 | echo "configure:4319: checking "for --enable-imaglist"" >&5 |
a16d3c04 KB |
4319 | no_cache=0 |
4320 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4321 | if test "${enable_imaglist+set}" = set; then | |
4322 | enableval="$enable_imaglist" | |
4323 | ||
4324 | if test "$enableval" = yes; then | |
4325 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4326 | else | |
4327 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4328 | fi | |
4329 | ||
4330 | else | |
4331 | ||
4332 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4333 | if test "x$LINE" != x ; then | |
4334 | eval "DEFAULT_$LINE" | |
4335 | else | |
4336 | no_cache=1 | |
4337 | fi | |
4338 | ||
4339 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4340 | ||
4341 | fi | |
4342 | ||
4343 | ||
4344 | eval "$ac_cv_use_imaglist" | |
4345 | if test "$no_cache" != 1; then | |
4346 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4347 | fi | |
4348 | ||
4349 | if test "$wxUSE_IMAGLIST" = yes; then | |
4350 | echo "$ac_t""yes" 1>&6 | |
4351 | else | |
4352 | echo "$ac_t""no" 1>&6 | |
4353 | fi | |
4354 | ||
4355 | ||
4356 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
0709ee62 | 4357 | echo "configure:4358: checking "for --enable-listbox"" >&5 |
a16d3c04 KB |
4358 | no_cache=0 |
4359 | # Check whether --enable-listbox or --disable-listbox was given. | |
4360 | if test "${enable_listbox+set}" = set; then | |
4361 | enableval="$enable_listbox" | |
4362 | ||
4363 | if test "$enableval" = yes; then | |
4364 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4365 | else | |
4366 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4367 | fi | |
4368 | ||
4369 | else | |
4370 | ||
4371 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4372 | if test "x$LINE" != x ; then | |
4373 | eval "DEFAULT_$LINE" | |
4374 | else | |
4375 | no_cache=1 | |
4376 | fi | |
4377 | ||
4378 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4379 | ||
4380 | fi | |
4381 | ||
4382 | ||
4383 | eval "$ac_cv_use_listbox" | |
4384 | if test "$no_cache" != 1; then | |
4385 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4386 | fi | |
4387 | ||
4388 | if test "$wxUSE_LISTBOX" = yes; then | |
4389 | echo "$ac_t""yes" 1>&6 | |
4390 | else | |
4391 | echo "$ac_t""no" 1>&6 | |
4392 | fi | |
4393 | ||
4394 | ||
4395 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
0709ee62 | 4396 | echo "configure:4397: checking "for --enable-listctrl"" >&5 |
a16d3c04 KB |
4397 | no_cache=0 |
4398 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4399 | if test "${enable_listctrl+set}" = set; then | |
4400 | enableval="$enable_listctrl" | |
4401 | ||
4402 | if test "$enableval" = yes; then | |
4403 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4404 | else | |
4405 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4406 | fi | |
4407 | ||
4408 | else | |
4409 | ||
4410 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4411 | if test "x$LINE" != x ; then | |
4412 | eval "DEFAULT_$LINE" | |
4413 | else | |
4414 | no_cache=1 | |
4415 | fi | |
4416 | ||
4417 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4418 | ||
4419 | fi | |
4420 | ||
4421 | ||
4422 | eval "$ac_cv_use_listctrl" | |
4423 | if test "$no_cache" != 1; then | |
4424 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4425 | fi | |
4426 | ||
4427 | if test "$wxUSE_LISTCTRL" = yes; then | |
4428 | echo "$ac_t""yes" 1>&6 | |
4429 | else | |
4430 | echo "$ac_t""no" 1>&6 | |
4431 | fi | |
4432 | ||
4433 | ||
4434 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
0709ee62 | 4435 | echo "configure:4436: checking "for --enable-notebook"" >&5 |
a16d3c04 KB |
4436 | no_cache=0 |
4437 | # Check whether --enable-notebook or --disable-notebook was given. | |
4438 | if test "${enable_notebook+set}" = set; then | |
4439 | enableval="$enable_notebook" | |
4440 | ||
4441 | if test "$enableval" = yes; then | |
4442 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4443 | else | |
4444 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4445 | fi | |
4446 | ||
4447 | else | |
4448 | ||
4449 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4450 | if test "x$LINE" != x ; then | |
4451 | eval "DEFAULT_$LINE" | |
4452 | else | |
4453 | no_cache=1 | |
4454 | fi | |
4455 | ||
4456 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4457 | ||
4458 | fi | |
4459 | ||
4460 | ||
4461 | eval "$ac_cv_use_notebook" | |
4462 | if test "$no_cache" != 1; then | |
4463 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4464 | fi | |
4465 | ||
4466 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4467 | echo "$ac_t""yes" 1>&6 | |
4468 | else | |
4469 | echo "$ac_t""no" 1>&6 | |
4470 | fi | |
4471 | ||
4472 | ||
4473 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
0709ee62 | 4474 | echo "configure:4475: checking "for --enable-radiobox"" >&5 |
a16d3c04 KB |
4475 | no_cache=0 |
4476 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4477 | if test "${enable_radiobox+set}" = set; then | |
4478 | enableval="$enable_radiobox" | |
4479 | ||
4480 | if test "$enableval" = yes; then | |
4481 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4482 | else | |
4483 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4484 | fi | |
4485 | ||
4486 | else | |
4487 | ||
4488 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4489 | if test "x$LINE" != x ; then | |
4490 | eval "DEFAULT_$LINE" | |
4491 | else | |
4492 | no_cache=1 | |
4493 | fi | |
4494 | ||
4495 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4496 | ||
4497 | fi | |
4498 | ||
4499 | ||
4500 | eval "$ac_cv_use_radiobox" | |
4501 | if test "$no_cache" != 1; then | |
4502 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4503 | fi | |
4504 | ||
4505 | if test "$wxUSE_RADIOBOX" = yes; then | |
4506 | echo "$ac_t""yes" 1>&6 | |
4507 | else | |
4508 | echo "$ac_t""no" 1>&6 | |
4509 | fi | |
4510 | ||
4511 | ||
4512 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
0709ee62 | 4513 | echo "configure:4514: checking "for --enable-radiobtn"" >&5 |
a16d3c04 KB |
4514 | no_cache=0 |
4515 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4516 | if test "${enable_radiobtn+set}" = set; then | |
4517 | enableval="$enable_radiobtn" | |
4518 | ||
4519 | if test "$enableval" = yes; then | |
4520 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4521 | else | |
4522 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4523 | fi | |
4524 | ||
4525 | else | |
4526 | ||
4527 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4528 | if test "x$LINE" != x ; then | |
4529 | eval "DEFAULT_$LINE" | |
4530 | else | |
4531 | no_cache=1 | |
4532 | fi | |
4533 | ||
4534 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4535 | ||
4536 | fi | |
4537 | ||
4538 | ||
4539 | eval "$ac_cv_use_radiobtn" | |
4540 | if test "$no_cache" != 1; then | |
4541 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4542 | fi | |
4543 | ||
4544 | if test "$wxUSE_RADIOBTN" = yes; then | |
4545 | echo "$ac_t""yes" 1>&6 | |
4546 | else | |
4547 | echo "$ac_t""no" 1>&6 | |
4548 | fi | |
4549 | ||
4550 | ||
4551 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
0709ee62 | 4552 | echo "configure:4553: checking "for --enable-sash"" >&5 |
a16d3c04 KB |
4553 | no_cache=0 |
4554 | # Check whether --enable-sash or --disable-sash was given. | |
4555 | if test "${enable_sash+set}" = set; then | |
4556 | enableval="$enable_sash" | |
4557 | ||
4558 | if test "$enableval" = yes; then | |
4559 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4560 | else | |
4561 | ac_cv_use_sash='wxUSE_SASH=no' | |
4562 | fi | |
4563 | ||
4564 | else | |
4565 | ||
4566 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4567 | if test "x$LINE" != x ; then | |
4568 | eval "DEFAULT_$LINE" | |
4569 | else | |
4570 | no_cache=1 | |
4571 | fi | |
4572 | ||
4573 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4574 | ||
4575 | fi | |
4576 | ||
4577 | ||
4578 | eval "$ac_cv_use_sash" | |
4579 | if test "$no_cache" != 1; then | |
4580 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4581 | fi | |
4582 | ||
4583 | if test "$wxUSE_SASH" = yes; then | |
4584 | echo "$ac_t""yes" 1>&6 | |
4585 | else | |
4586 | echo "$ac_t""no" 1>&6 | |
4587 | fi | |
4588 | ||
4589 | ||
4590 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
0709ee62 | 4591 | echo "configure:4592: checking "for --enable-scrollbar"" >&5 |
a16d3c04 KB |
4592 | no_cache=0 |
4593 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4594 | if test "${enable_scrollbar+set}" = set; then | |
4595 | enableval="$enable_scrollbar" | |
4596 | ||
4597 | if test "$enableval" = yes; then | |
4598 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4599 | else | |
4600 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4601 | fi | |
4602 | ||
4603 | else | |
4604 | ||
4605 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4606 | if test "x$LINE" != x ; then | |
4607 | eval "DEFAULT_$LINE" | |
4608 | else | |
4609 | no_cache=1 | |
4610 | fi | |
4611 | ||
4612 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4613 | ||
4614 | fi | |
4615 | ||
4616 | ||
4617 | eval "$ac_cv_use_scrollbar" | |
4618 | if test "$no_cache" != 1; then | |
4619 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4620 | fi | |
4621 | ||
4622 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4623 | echo "$ac_t""yes" 1>&6 | |
4624 | else | |
4625 | echo "$ac_t""no" 1>&6 | |
4626 | fi | |
4627 | ||
4628 | ||
4629 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
0709ee62 | 4630 | echo "configure:4631: checking "for --enable-slider"" >&5 |
a16d3c04 KB |
4631 | no_cache=0 |
4632 | # Check whether --enable-slider or --disable-slider was given. | |
4633 | if test "${enable_slider+set}" = set; then | |
4634 | enableval="$enable_slider" | |
4635 | ||
4636 | if test "$enableval" = yes; then | |
4637 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4638 | else | |
4639 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4640 | fi | |
4641 | ||
4642 | else | |
4643 | ||
4644 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4645 | if test "x$LINE" != x ; then | |
4646 | eval "DEFAULT_$LINE" | |
4647 | else | |
4648 | no_cache=1 | |
4649 | fi | |
4650 | ||
4651 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4652 | ||
4653 | fi | |
4654 | ||
4655 | ||
4656 | eval "$ac_cv_use_slider" | |
4657 | if test "$no_cache" != 1; then | |
4658 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4659 | fi | |
4660 | ||
4661 | if test "$wxUSE_SLIDER" = yes; then | |
4662 | echo "$ac_t""yes" 1>&6 | |
4663 | else | |
4664 | echo "$ac_t""no" 1>&6 | |
4665 | fi | |
4666 | ||
4667 | ||
4668 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
0709ee62 | 4669 | echo "configure:4670: checking "for --enable-spinbtn"" >&5 |
a16d3c04 KB |
4670 | no_cache=0 |
4671 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4672 | if test "${enable_spinbtn+set}" = set; then | |
4673 | enableval="$enable_spinbtn" | |
4674 | ||
4675 | if test "$enableval" = yes; then | |
4676 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4677 | else | |
4678 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4679 | fi | |
4680 | ||
4681 | else | |
4682 | ||
4683 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4684 | if test "x$LINE" != x ; then | |
4685 | eval "DEFAULT_$LINE" | |
4686 | else | |
4687 | no_cache=1 | |
4688 | fi | |
4689 | ||
4690 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4691 | ||
4692 | fi | |
4693 | ||
4694 | ||
4695 | eval "$ac_cv_use_spinbtn" | |
4696 | if test "$no_cache" != 1; then | |
4697 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4698 | fi | |
4699 | ||
4700 | if test "$wxUSE_SPINBTN" = yes; then | |
4701 | echo "$ac_t""yes" 1>&6 | |
4702 | else | |
4703 | echo "$ac_t""no" 1>&6 | |
4704 | fi | |
4705 | ||
4706 | ||
4707 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 | |
0709ee62 | 4708 | echo "configure:4709: checking "for --enable-splitter"" >&5 |
a16d3c04 KB |
4709 | no_cache=0 |
4710 | # Check whether --enable-splitter or --disable-splitter was given. | |
4711 | if test "${enable_splitter+set}" = set; then | |
4712 | enableval="$enable_splitter" | |
4713 | ||
4714 | if test "$enableval" = yes; then | |
4715 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4716 | else | |
4717 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4718 | fi | |
4719 | ||
4720 | else | |
4721 | ||
4722 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4723 | if test "x$LINE" != x ; then | |
4724 | eval "DEFAULT_$LINE" | |
4725 | else | |
4726 | no_cache=1 | |
4727 | fi | |
4728 | ||
4729 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4730 | ||
4731 | fi | |
4732 | ||
4733 | ||
4734 | eval "$ac_cv_use_splitter" | |
4735 | if test "$no_cache" != 1; then | |
4736 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4737 | fi | |
4738 | ||
4739 | if test "$wxUSE_SPLITTER" = yes; then | |
4740 | echo "$ac_t""yes" 1>&6 | |
4741 | else | |
4742 | echo "$ac_t""no" 1>&6 | |
4743 | fi | |
4744 | ||
4745 | ||
4746 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
0709ee62 | 4747 | echo "configure:4748: checking "for --enable-statbmp"" >&5 |
a16d3c04 KB |
4748 | no_cache=0 |
4749 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4750 | if test "${enable_statbmp+set}" = set; then | |
4751 | enableval="$enable_statbmp" | |
4752 | ||
4753 | if test "$enableval" = yes; then | |
4754 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4755 | else | |
4756 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4757 | fi | |
4758 | ||
4759 | else | |
4760 | ||
4761 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4762 | if test "x$LINE" != x ; then | |
4763 | eval "DEFAULT_$LINE" | |
4764 | else | |
4765 | no_cache=1 | |
4766 | fi | |
4767 | ||
4768 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4769 | ||
4770 | fi | |
4771 | ||
4772 | ||
4773 | eval "$ac_cv_use_statbmp" | |
4774 | if test "$no_cache" != 1; then | |
4775 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4776 | fi | |
4777 | ||
4778 | if test "$wxUSE_STATBMP" = yes; then | |
4779 | echo "$ac_t""yes" 1>&6 | |
4780 | else | |
4781 | echo "$ac_t""no" 1>&6 | |
4782 | fi | |
4783 | ||
4784 | ||
4785 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
0709ee62 | 4786 | echo "configure:4787: checking "for --enable-statbox"" >&5 |
a16d3c04 KB |
4787 | no_cache=0 |
4788 | # Check whether --enable-statbox or --disable-statbox was given. | |
4789 | if test "${enable_statbox+set}" = set; then | |
4790 | enableval="$enable_statbox" | |
4791 | ||
4792 | if test "$enableval" = yes; then | |
4793 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4794 | else | |
4795 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4796 | fi | |
4797 | ||
4798 | else | |
4799 | ||
4800 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4801 | if test "x$LINE" != x ; then | |
4802 | eval "DEFAULT_$LINE" | |
4803 | else | |
4804 | no_cache=1 | |
4805 | fi | |
4806 | ||
4807 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4808 | ||
4809 | fi | |
4810 | ||
4811 | ||
4812 | eval "$ac_cv_use_statbox" | |
4813 | if test "$no_cache" != 1; then | |
4814 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4815 | fi | |
4816 | ||
4817 | if test "$wxUSE_STATBOX" = yes; then | |
4818 | echo "$ac_t""yes" 1>&6 | |
4819 | else | |
4820 | echo "$ac_t""no" 1>&6 | |
4821 | fi | |
4822 | ||
4823 | ||
4824 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
0709ee62 | 4825 | echo "configure:4826: checking "for --enable-statline"" >&5 |
a16d3c04 KB |
4826 | no_cache=0 |
4827 | # Check whether --enable-statline or --disable-statline was given. | |
4828 | if test "${enable_statline+set}" = set; then | |
4829 | enableval="$enable_statline" | |
4830 | ||
4831 | if test "$enableval" = yes; then | |
4832 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4833 | else | |
4834 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4835 | fi | |
4836 | ||
4837 | else | |
4838 | ||
4839 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4840 | if test "x$LINE" != x ; then | |
4841 | eval "DEFAULT_$LINE" | |
4842 | else | |
4843 | no_cache=1 | |
4844 | fi | |
4845 | ||
4846 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4847 | ||
4848 | fi | |
4849 | ||
4850 | ||
4851 | eval "$ac_cv_use_statline" | |
4852 | if test "$no_cache" != 1; then | |
4853 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4854 | fi | |
4855 | ||
4856 | if test "$wxUSE_STATLINE" = yes; then | |
4857 | echo "$ac_t""yes" 1>&6 | |
4858 | else | |
4859 | echo "$ac_t""no" 1>&6 | |
4860 | fi | |
4861 | ||
4862 | ||
4863 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
0709ee62 | 4864 | echo "configure:4865: checking "for --enable-statusbar"" >&5 |
a16d3c04 KB |
4865 | no_cache=0 |
4866 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4867 | if test "${enable_statusbar+set}" = set; then | |
4868 | enableval="$enable_statusbar" | |
4869 | ||
4870 | if test "$enableval" = yes; then | |
4871 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4872 | else | |
4873 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4874 | fi | |
4875 | ||
4876 | else | |
4877 | ||
4878 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4879 | if test "x$LINE" != x ; then | |
4880 | eval "DEFAULT_$LINE" | |
4881 | else | |
4882 | no_cache=1 | |
4883 | fi | |
4884 | ||
4885 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4886 | ||
4887 | fi | |
4888 | ||
4889 | ||
4890 | eval "$ac_cv_use_statusbar" | |
4891 | if test "$no_cache" != 1; then | |
4892 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4893 | fi | |
4894 | ||
4895 | if test "$wxUSE_STATUSBAR" = yes; then | |
4896 | echo "$ac_t""yes" 1>&6 | |
4897 | else | |
4898 | echo "$ac_t""no" 1>&6 | |
4899 | fi | |
4900 | ||
4901 | ||
4902 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
0709ee62 | 4903 | echo "configure:4904: checking "for --enable-tabdialog"" >&5 |
a16d3c04 KB |
4904 | no_cache=0 |
4905 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4906 | if test "${enable_tabdialog+set}" = set; then | |
4907 | enableval="$enable_tabdialog" | |
4908 | ||
4909 | if test "$enableval" = yes; then | |
4910 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4911 | else | |
4912 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4913 | fi | |
4914 | ||
4915 | else | |
4916 | ||
4917 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4918 | if test "x$LINE" != x ; then | |
4919 | eval "DEFAULT_$LINE" | |
4920 | else | |
4921 | no_cache=1 | |
4922 | fi | |
4923 | ||
4924 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
4925 | ||
4926 | fi | |
4927 | ||
4928 | ||
4929 | eval "$ac_cv_use_tabdialog" | |
4930 | if test "$no_cache" != 1; then | |
4931 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
4932 | fi | |
4933 | ||
4934 | if test "$wxUSE_TABDIALOG" = yes; then | |
4935 | echo "$ac_t""yes" 1>&6 | |
4936 | else | |
4937 | echo "$ac_t""no" 1>&6 | |
4938 | fi | |
4939 | ||
4940 | ||
4941 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
0709ee62 | 4942 | echo "configure:4943: checking "for --enable-toolbar"" >&5 |
a16d3c04 KB |
4943 | no_cache=0 |
4944 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
4945 | if test "${enable_toolbar+set}" = set; then | |
4946 | enableval="$enable_toolbar" | |
4947 | ||
4948 | if test "$enableval" = yes; then | |
4949 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
4950 | else | |
4951 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
4952 | fi | |
4953 | ||
4954 | else | |
4955 | ||
4956 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
4957 | if test "x$LINE" != x ; then | |
4958 | eval "DEFAULT_$LINE" | |
4959 | else | |
4960 | no_cache=1 | |
4961 | fi | |
4962 | ||
4963 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
4964 | ||
4965 | fi | |
4966 | ||
4967 | ||
4968 | eval "$ac_cv_use_toolbar" | |
4969 | if test "$no_cache" != 1; then | |
4970 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
4971 | fi | |
4972 | ||
4973 | if test "$wxUSE_TOOLBAR" = yes; then | |
4974 | echo "$ac_t""yes" 1>&6 | |
4975 | else | |
4976 | echo "$ac_t""no" 1>&6 | |
4977 | fi | |
4978 | ||
4979 | ||
4980 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 | |
0709ee62 | 4981 | echo "configure:4982: checking "for --enable-treectrl"" >&5 |
a16d3c04 KB |
4982 | no_cache=0 |
4983 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
4984 | if test "${enable_treectrl+set}" = set; then | |
4985 | enableval="$enable_treectrl" | |
4986 | ||
4987 | if test "$enableval" = yes; then | |
4988 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
4989 | else | |
4990 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
4991 | fi | |
4992 | ||
4993 | else | |
4994 | ||
4995 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
4996 | if test "x$LINE" != x ; then | |
4997 | eval "DEFAULT_$LINE" | |
4998 | else | |
4999 | no_cache=1 | |
5000 | fi | |
5001 | ||
5002 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5003 | ||
5004 | fi | |
5005 | ||
5006 | ||
5007 | eval "$ac_cv_use_treectrl" | |
5008 | if test "$no_cache" != 1; then | |
5009 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5010 | fi | |
5011 | ||
5012 | if test "$wxUSE_TREECTRL" = yes; then | |
5013 | echo "$ac_t""yes" 1>&6 | |
5014 | else | |
5015 | echo "$ac_t""no" 1>&6 | |
5016 | fi | |
5017 | ||
5018 | ||
5019 | ||
5020 | ||
5021 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
0709ee62 | 5022 | echo "configure:5023: checking "for --enable-commondlg"" >&5 |
a16d3c04 KB |
5023 | no_cache=0 |
5024 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5025 | if test "${enable_commondlg+set}" = set; then | |
5026 | enableval="$enable_commondlg" | |
5027 | ||
5028 | if test "$enableval" = yes; then | |
5029 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5030 | else | |
5031 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5032 | fi | |
5033 | ||
5034 | else | |
5035 | ||
5036 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5037 | if test "x$LINE" != x ; then | |
5038 | eval "DEFAULT_$LINE" | |
5039 | else | |
5040 | no_cache=1 | |
5041 | fi | |
5042 | ||
5043 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5044 | ||
5045 | fi | |
5046 | ||
5047 | ||
5048 | eval "$ac_cv_use_commondlg" | |
5049 | if test "$no_cache" != 1; then | |
5050 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5051 | fi | |
5052 | ||
5053 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5054 | echo "$ac_t""yes" 1>&6 | |
5055 | else | |
5056 | echo "$ac_t""no" 1>&6 | |
5057 | fi | |
5058 | ||
5059 | ||
5060 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
0709ee62 | 5061 | echo "configure:5062: checking "for --enable-dirdlg"" >&5 |
a16d3c04 KB |
5062 | no_cache=0 |
5063 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5064 | if test "${enable_dirdlg+set}" = set; then | |
5065 | enableval="$enable_dirdlg" | |
5066 | ||
5067 | if test "$enableval" = yes; then | |
5068 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5069 | else | |
5070 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5071 | fi | |
5072 | ||
5073 | else | |
5074 | ||
5075 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5076 | if test "x$LINE" != x ; then | |
5077 | eval "DEFAULT_$LINE" | |
5078 | else | |
5079 | no_cache=1 | |
5080 | fi | |
5081 | ||
5082 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5083 | ||
5084 | fi | |
5085 | ||
5086 | ||
5087 | eval "$ac_cv_use_dirdlg" | |
5088 | if test "$no_cache" != 1; then | |
5089 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5090 | fi | |
5091 | ||
5092 | if test "$wxUSE_DIRDLG" = yes; then | |
5093 | echo "$ac_t""yes" 1>&6 | |
5094 | else | |
5095 | echo "$ac_t""no" 1>&6 | |
5096 | fi | |
5097 | ||
5098 | ||
5099 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
0709ee62 | 5100 | echo "configure:5101: checking "for --enable-textdlg"" >&5 |
a16d3c04 KB |
5101 | no_cache=0 |
5102 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5103 | if test "${enable_textdlg+set}" = set; then | |
5104 | enableval="$enable_textdlg" | |
5105 | ||
5106 | if test "$enableval" = yes; then | |
5107 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5108 | else | |
5109 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5110 | fi | |
5111 | ||
5112 | else | |
5113 | ||
5114 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5115 | if test "x$LINE" != x ; then | |
5116 | eval "DEFAULT_$LINE" | |
5117 | else | |
5118 | no_cache=1 | |
5119 | fi | |
5120 | ||
5121 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5122 | ||
5123 | fi | |
5124 | ||
5125 | ||
5126 | eval "$ac_cv_use_textdlg" | |
5127 | if test "$no_cache" != 1; then | |
5128 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5129 | fi | |
5130 | ||
5131 | if test "$wxUSE_TEXTDLG" = yes; then | |
5132 | echo "$ac_t""yes" 1>&6 | |
5133 | else | |
5134 | echo "$ac_t""no" 1>&6 | |
5135 | fi | |
5136 | ||
5137 | ||
5138 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
0709ee62 | 5139 | echo "configure:5140: checking "for --enable-tipdlg"" >&5 |
a16d3c04 KB |
5140 | no_cache=0 |
5141 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5142 | if test "${enable_tipdlg+set}" = set; then | |
5143 | enableval="$enable_tipdlg" | |
5144 | ||
5145 | if test "$enableval" = yes; then | |
5146 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5147 | else | |
5148 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5149 | fi | |
5150 | ||
5151 | else | |
5152 | ||
5153 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5154 | if test "x$LINE" != x ; then | |
5155 | eval "DEFAULT_$LINE" | |
5156 | else | |
5157 | no_cache=1 | |
5158 | fi | |
5159 | ||
5160 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5161 | ||
5162 | fi | |
5163 | ||
5164 | ||
5165 | eval "$ac_cv_use_tipdlg" | |
5166 | if test "$no_cache" != 1; then | |
5167 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5168 | fi | |
5169 | ||
5170 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5171 | echo "$ac_t""yes" 1>&6 | |
5172 | else | |
5173 | echo "$ac_t""no" 1>&6 | |
5174 | fi | |
5175 | ||
5176 | ||
5177 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
0709ee62 | 5178 | echo "configure:5179: checking "for --enable-progressdlg"" >&5 |
a16d3c04 KB |
5179 | no_cache=0 |
5180 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5181 | if test "${enable_progressdlg+set}" = set; then | |
5182 | enableval="$enable_progressdlg" | |
5183 | ||
5184 | if test "$enableval" = yes; then | |
5185 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5186 | else | |
5187 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5188 | fi | |
5189 | ||
5190 | else | |
5191 | ||
5192 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5193 | if test "x$LINE" != x ; then | |
5194 | eval "DEFAULT_$LINE" | |
5195 | else | |
5196 | no_cache=1 | |
5197 | fi | |
5198 | ||
5199 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5200 | ||
5201 | fi | |
5202 | ||
5203 | ||
5204 | eval "$ac_cv_use_progressdlg" | |
5205 | if test "$no_cache" != 1; then | |
5206 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5207 | fi | |
5208 | ||
5209 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5210 | echo "$ac_t""yes" 1>&6 | |
5211 | else | |
5212 | echo "$ac_t""no" 1>&6 | |
5213 | fi | |
5214 | ||
5215 | ||
5216 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
0709ee62 | 5217 | echo "configure:5218: checking "for --enable-miniframe"" >&5 |
a16d3c04 KB |
5218 | no_cache=0 |
5219 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5220 | if test "${enable_miniframe+set}" = set; then | |
5221 | enableval="$enable_miniframe" | |
5222 | ||
5223 | if test "$enableval" = yes; then | |
5224 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5225 | else | |
5226 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5227 | fi | |
5228 | ||
5229 | else | |
5230 | ||
5231 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5232 | if test "x$LINE" != x ; then | |
5233 | eval "DEFAULT_$LINE" | |
5234 | else | |
5235 | no_cache=1 | |
5236 | fi | |
5237 | ||
5238 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5239 | ||
5240 | fi | |
5241 | ||
5242 | ||
5243 | eval "$ac_cv_use_miniframe" | |
5244 | if test "$no_cache" != 1; then | |
5245 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5246 | fi | |
5247 | ||
5248 | if test "$wxUSE_MINIFRAME" = yes; then | |
5249 | echo "$ac_t""yes" 1>&6 | |
5250 | else | |
5251 | echo "$ac_t""no" 1>&6 | |
5252 | fi | |
5253 | ||
5254 | ||
5255 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
0709ee62 | 5256 | echo "configure:5257: checking "for --enable-html"" >&5 |
a16d3c04 KB |
5257 | no_cache=0 |
5258 | # Check whether --enable-html or --disable-html was given. | |
5259 | if test "${enable_html+set}" = set; then | |
5260 | enableval="$enable_html" | |
5261 | ||
5262 | if test "$enableval" = yes; then | |
5263 | ac_cv_use_html='wxUSE_HTML=yes' | |
5264 | else | |
5265 | ac_cv_use_html='wxUSE_HTML=no' | |
5266 | fi | |
5267 | ||
5268 | else | |
5269 | ||
5270 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5271 | if test "x$LINE" != x ; then | |
5272 | eval "DEFAULT_$LINE" | |
5273 | else | |
5274 | no_cache=1 | |
5275 | fi | |
5276 | ||
5277 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5278 | ||
5279 | fi | |
5280 | ||
5281 | ||
5282 | eval "$ac_cv_use_html" | |
5283 | if test "$no_cache" != 1; then | |
5284 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5285 | fi | |
5286 | ||
5287 | if test "$wxUSE_HTML" = yes; then | |
5288 | echo "$ac_t""yes" 1>&6 | |
5289 | else | |
5290 | echo "$ac_t""no" 1>&6 | |
5291 | fi | |
5292 | ||
5293 | ||
5294 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
0709ee62 | 5295 | echo "configure:5296: checking "for --enable-tooltips"" >&5 |
a16d3c04 KB |
5296 | no_cache=0 |
5297 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5298 | if test "${enable_tooltips+set}" = set; then | |
5299 | enableval="$enable_tooltips" | |
5300 | ||
5301 | if test "$enableval" = yes; then | |
5302 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5303 | else | |
5304 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5305 | fi | |
5306 | ||
5307 | else | |
5308 | ||
5309 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5310 | if test "x$LINE" != x ; then | |
5311 | eval "DEFAULT_$LINE" | |
5312 | else | |
5313 | no_cache=1 | |
5314 | fi | |
5315 | ||
5316 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5317 | ||
5318 | fi | |
5319 | ||
5320 | ||
5321 | eval "$ac_cv_use_tooltips" | |
5322 | if test "$no_cache" != 1; then | |
5323 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5324 | fi | |
5325 | ||
5326 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5327 | echo "$ac_t""yes" 1>&6 | |
5328 | else | |
5329 | echo "$ac_t""no" 1>&6 | |
5330 | fi | |
5331 | ||
5332 | ||
5333 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
0709ee62 | 5334 | echo "configure:5335: checking "for --enable-splines"" >&5 |
a16d3c04 KB |
5335 | no_cache=0 |
5336 | # Check whether --enable-splines or --disable-splines was given. | |
5337 | if test "${enable_splines+set}" = set; then | |
5338 | enableval="$enable_splines" | |
5339 | ||
5340 | if test "$enableval" = yes; then | |
5341 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5342 | else | |
5343 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5344 | fi | |
5345 | ||
5346 | else | |
5347 | ||
5348 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5349 | if test "x$LINE" != x ; then | |
5350 | eval "DEFAULT_$LINE" | |
5351 | else | |
5352 | no_cache=1 | |
5353 | fi | |
5354 | ||
5355 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5356 | ||
5357 | fi | |
5358 | ||
5359 | ||
5360 | eval "$ac_cv_use_splines" | |
5361 | if test "$no_cache" != 1; then | |
5362 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5363 | fi | |
5364 | ||
5365 | if test "$wxUSE_SPLINES" = yes; then | |
5366 | echo "$ac_t""yes" 1>&6 | |
5367 | else | |
5368 | echo "$ac_t""no" 1>&6 | |
5369 | fi | |
5370 | ||
5371 | ||
5372 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
0709ee62 | 5373 | echo "configure:5374: checking "for --enable-validators"" >&5 |
a16d3c04 KB |
5374 | no_cache=0 |
5375 | # Check whether --enable-validators or --disable-validators was given. | |
5376 | if test "${enable_validators+set}" = set; then | |
5377 | enableval="$enable_validators" | |
5378 | ||
5379 | if test "$enableval" = yes; then | |
5380 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5381 | else | |
5382 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5383 | fi | |
5384 | ||
5385 | else | |
5386 | ||
5387 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5388 | if test "x$LINE" != x ; then | |
5389 | eval "DEFAULT_$LINE" | |
5390 | else | |
5391 | no_cache=1 | |
5392 | fi | |
5393 | ||
5394 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5395 | ||
5396 | fi | |
5397 | ||
5398 | ||
5399 | eval "$ac_cv_use_validators" | |
5400 | if test "$no_cache" != 1; then | |
5401 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5402 | fi | |
5403 | ||
5404 | if test "$wxUSE_VALIDATORS" = yes; then | |
5405 | echo "$ac_t""yes" 1>&6 | |
5406 | else | |
5407 | echo "$ac_t""no" 1>&6 | |
5408 | fi | |
5409 | ||
5410 | ||
5411 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
0709ee62 | 5412 | echo "configure:5413: checking "for --enable-busyinfo"" >&5 |
a16d3c04 KB |
5413 | no_cache=0 |
5414 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5415 | if test "${enable_busyinfo+set}" = set; then | |
5416 | enableval="$enable_busyinfo" | |
5417 | ||
5418 | if test "$enableval" = yes; then | |
5419 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5420 | else | |
5421 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5422 | fi | |
5423 | ||
5424 | else | |
5425 | ||
5426 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5427 | if test "x$LINE" != x ; then | |
5428 | eval "DEFAULT_$LINE" | |
5429 | else | |
5430 | no_cache=1 | |
5431 | fi | |
5432 | ||
5433 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5434 | ||
5435 | fi | |
5436 | ||
5437 | ||
5438 | eval "$ac_cv_use_busyinfo" | |
5439 | if test "$no_cache" != 1; then | |
5440 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5441 | fi | |
5442 | ||
5443 | if test "$wxUSE_BUSYINFO" = yes; then | |
5444 | echo "$ac_t""yes" 1>&6 | |
5445 | else | |
5446 | echo "$ac_t""no" 1>&6 | |
5447 | fi | |
5448 | ||
5449 | ||
5450 | ||
1c8515f9 KB |
5451 | |
5452 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
0709ee62 | 5453 | echo "configure:5454: checking "for --enable-gif"" >&5 |
1c8515f9 KB |
5454 | no_cache=0 |
5455 | # Check whether --enable-gif or --disable-gif was given. | |
5456 | if test "${enable_gif+set}" = set; then | |
5457 | enableval="$enable_gif" | |
5458 | ||
5459 | if test "$enableval" = yes; then | |
5460 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5461 | else | |
5462 | ac_cv_use_gif='wxUSE_GIF=no' | |
5463 | fi | |
5464 | ||
5465 | else | |
5466 | ||
5467 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5468 | if test "x$LINE" != x ; then | |
5469 | eval "DEFAULT_$LINE" | |
5470 | else | |
5471 | no_cache=1 | |
5472 | fi | |
5473 | ||
5474 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5475 | ||
5476 | fi | |
5477 | ||
5478 | ||
5479 | eval "$ac_cv_use_gif" | |
5480 | if test "$no_cache" != 1; then | |
5481 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5482 | fi | |
5483 | ||
5484 | if test "$wxUSE_GIF" = yes; then | |
5485 | echo "$ac_t""yes" 1>&6 | |
5486 | else | |
5487 | echo "$ac_t""no" 1>&6 | |
5488 | fi | |
5489 | ||
5490 | ||
5491 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
0709ee62 | 5492 | echo "configure:5493: checking "for --enable-pcx"" >&5 |
1c8515f9 KB |
5493 | no_cache=0 |
5494 | # Check whether --enable-pcx or --disable-pcx was given. | |
5495 | if test "${enable_pcx+set}" = set; then | |
5496 | enableval="$enable_pcx" | |
5497 | ||
5498 | if test "$enableval" = yes; then | |
5499 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5500 | else | |
5501 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5502 | fi | |
5503 | ||
5504 | else | |
5505 | ||
5506 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5507 | if test "x$LINE" != x ; then | |
5508 | eval "DEFAULT_$LINE" | |
5509 | else | |
5510 | no_cache=1 | |
5511 | fi | |
5512 | ||
5513 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5514 | ||
5515 | fi | |
5516 | ||
5517 | ||
5518 | eval "$ac_cv_use_pcx" | |
5519 | if test "$no_cache" != 1; then | |
5520 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5521 | fi | |
5522 | ||
5523 | if test "$wxUSE_PCX" = yes; then | |
5524 | echo "$ac_t""yes" 1>&6 | |
5525 | else | |
5526 | echo "$ac_t""no" 1>&6 | |
5527 | fi | |
5528 | ||
5529 | ||
5530 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
0709ee62 | 5531 | echo "configure:5532: checking "for --enable-pnm"" >&5 |
1c8515f9 KB |
5532 | no_cache=0 |
5533 | # Check whether --enable-pnm or --disable-pnm was given. | |
5534 | if test "${enable_pnm+set}" = set; then | |
5535 | enableval="$enable_pnm" | |
5536 | ||
5537 | if test "$enableval" = yes; then | |
5538 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5539 | else | |
5540 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5541 | fi | |
5542 | ||
5543 | else | |
5544 | ||
5545 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5546 | if test "x$LINE" != x ; then | |
5547 | eval "DEFAULT_$LINE" | |
5548 | else | |
5549 | no_cache=1 | |
5550 | fi | |
5551 | ||
5552 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5553 | ||
5554 | fi | |
5555 | ||
5556 | ||
5557 | eval "$ac_cv_use_pnm" | |
5558 | if test "$no_cache" != 1; then | |
5559 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5560 | fi | |
5561 | ||
5562 | if test "$wxUSE_PNM" = yes; then | |
5563 | echo "$ac_t""yes" 1>&6 | |
5564 | else | |
5565 | echo "$ac_t""no" 1>&6 | |
5566 | fi | |
5567 | ||
5568 | ||
5569 | ||
a16d3c04 KB |
5570 | echo "saving argument cache $wx_arg_cache_file" |
5571 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5572 | ||
5573 | ||
5574 | ||
5575 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
0709ee62 | 5576 | echo "configure:5577: checking for toolkit" >&5 |
f7a11f8c RR |
5577 | |
5578 | if test "$wxUSE_GUI" = "yes"; then | |
a16d3c04 KB |
5579 | |
5580 | if test "$TOOLKIT_GIVEN" = 1; then | |
5581 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5582 | var=wxUSE_$toolkit | |
5583 | eval "value=\$${var}" | |
5584 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5585 | done | |
5586 | else | |
5587 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5588 | if test "$has_toolkit_in_cache" != 1; then | |
5589 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5590 | else | |
5591 | var=DEFAULT_wxUSE_$toolkit | |
5592 | fi | |
5593 | eval "wxUSE_$toolkit=\$${var}" | |
5594 | done | |
5595 | fi | |
5596 | ||
5597 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` | |
5598 | ||
5599 | case "$NUM_TOOLKITS" in | |
5600 | 1) | |
5601 | ;; | |
5602 | 0) | |
5603 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5604 | ;; | |
5605 | *) | |
5606 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5607 | esac | |
5608 | ||
5609 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5610 | var=wxUSE_$toolkit | |
5611 | eval "value=\$${var}" | |
5612 | if test "x$value" != x; then | |
5613 | cache_var=CACHE_$toolkit | |
5614 | eval "cache=\$${cache_var}" | |
5615 | if test "$cache" = 1; then | |
5616 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5617 | fi | |
5618 | if test "$value" = 1; then | |
5619 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5620 | fi | |
5621 | fi | |
5622 | done | |
5623 | ||
f7a11f8c RR |
5624 | else |
5625 | echo "$ac_t""base only" 1>&6 | |
5626 | fi | |
5627 | ||
a16d3c04 KB |
5628 | |
5629 | cat > confcache <<\EOF | |
5630 | # This file is a shell script that caches the results of configure | |
5631 | # tests run on this system so they can be shared between configure | |
5632 | # scripts and configure runs. It is not useful on other systems. | |
5633 | # If it contains results you don't want to keep, you may remove or edit it. | |
5634 | # | |
5635 | # By default, configure uses ./config.cache as the cache file, | |
5636 | # creating it if it does not exist already. You can give configure | |
5637 | # the --cache-file=FILE option to use a different cache file; that is | |
5638 | # what configure does when it calls configure scripts in | |
5639 | # subdirectories, so they share the cache. | |
5640 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5641 | # config.status only pays attention to the cache file if you give it the | |
5642 | # --recheck option to rerun configure. | |
5643 | # | |
5644 | EOF | |
5645 | # The following way of writing the cache mishandles newlines in values, | |
5646 | # but we know of no workaround that is simple, portable, and efficient. | |
5647 | # So, don't put newlines in cache variables' values. | |
5648 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5649 | # and sets the high bit in the cache file unless we assign to the vars. | |
5650 | (set) 2>&1 | | |
0709ee62 | 5651 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
a16d3c04 KB |
5652 | *ac_space=\ *) |
5653 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5654 | # turns \\\\ into \\, and sed turns \\ into \). | |
5655 | sed -n \ | |
5656 | -e "s/'/'\\\\''/g" \ | |
5657 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5658 | ;; | |
5659 | *) | |
5660 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5661 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5662 | ;; | |
5663 | esac >> confcache | |
5664 | if cmp -s $cache_file confcache; then | |
5665 | : | |
5666 | else | |
5667 | if test -w $cache_file; then | |
5668 | echo "updating cache $cache_file" | |
5669 | cat confcache > $cache_file | |
5670 | else | |
5671 | echo "not updating unwritable cache $cache_file" | |
5672 | fi | |
5673 | fi | |
5674 | rm -f confcache | |
5675 | ||
5676 | ||
5677 | if eval "test $host != $build"; then | |
5678 | if eval "test $host_alias != NONE"; then | |
1c8515f9 KB |
5679 | CC=$host_alias-gcc |
5680 | CXX=$host_alias-c++ | |
a16d3c04 KB |
5681 | AR=$host_alias-ar |
5682 | RANLIB=$host_alias-ranlib | |
1c8515f9 KB |
5683 | DLLTOOL=$host_alias-dlltool |
5684 | LD=$host_alias-ld | |
a16d3c04 KB |
5685 | NM=$host_alias-nm |
5686 | STRIP=$host_alias-strip | |
5687 | fi | |
5688 | fi | |
5689 | ||
5690 | # Extract the first word of "gcc", so it can be a program name with args. | |
5691 | set dummy gcc; ac_word=$2 | |
5692 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 5693 | echo "configure:5694: checking for $ac_word" >&5 |
a16d3c04 KB |
5694 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5696 | else | |
5697 | if test -n "$CC"; then | |
5698 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5699 | else | |
0709ee62 VZ |
5700 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5701 | ac_dummy="$PATH" | |
5702 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
5703 | test -z "$ac_dir" && ac_dir=. |
5704 | if test -f $ac_dir/$ac_word; then | |
5705 | ac_cv_prog_CC="gcc" | |
5706 | break | |
5707 | fi | |
5708 | done | |
5709 | IFS="$ac_save_ifs" | |
5710 | fi | |
5711 | fi | |
5712 | CC="$ac_cv_prog_CC" | |
5713 | if test -n "$CC"; then | |
5714 | echo "$ac_t""$CC" 1>&6 | |
5715 | else | |
5716 | echo "$ac_t""no" 1>&6 | |
5717 | fi | |
5718 | ||
5719 | if test -z "$CC"; then | |
5720 | # Extract the first word of "cc", so it can be a program name with args. | |
5721 | set dummy cc; ac_word=$2 | |
5722 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 5723 | echo "configure:5724: checking for $ac_word" >&5 |
a16d3c04 KB |
5724 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5726 | else | |
5727 | if test -n "$CC"; then | |
5728 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5729 | else | |
0709ee62 | 5730 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
a16d3c04 | 5731 | ac_prog_rejected=no |
0709ee62 VZ |
5732 | ac_dummy="$PATH" |
5733 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
5734 | test -z "$ac_dir" && ac_dir=. |
5735 | if test -f $ac_dir/$ac_word; then | |
5736 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5737 | ac_prog_rejected=yes | |
5738 | continue | |
5739 | fi | |
5740 | ac_cv_prog_CC="cc" | |
5741 | break | |
5742 | fi | |
5743 | done | |
5744 | IFS="$ac_save_ifs" | |
5745 | if test $ac_prog_rejected = yes; then | |
5746 | # We found a bogon in the path, so make sure we never use it. | |
5747 | set dummy $ac_cv_prog_CC | |
5748 | shift | |
5749 | if test $# -gt 0; then | |
5750 | # We chose a different compiler from the bogus one. | |
5751 | # However, it has the same basename, so the bogon will be chosen | |
5752 | # first if we set CC to just the basename; use the full file name. | |
5753 | shift | |
5754 | set dummy "$ac_dir/$ac_word" "$@" | |
5755 | shift | |
5756 | ac_cv_prog_CC="$@" | |
5757 | fi | |
5758 | fi | |
5759 | fi | |
5760 | fi | |
5761 | CC="$ac_cv_prog_CC" | |
5762 | if test -n "$CC"; then | |
5763 | echo "$ac_t""$CC" 1>&6 | |
5764 | else | |
5765 | echo "$ac_t""no" 1>&6 | |
5766 | fi | |
5767 | ||
0709ee62 VZ |
5768 | if test -z "$CC"; then |
5769 | case "`uname -s`" in | |
5770 | *win32* | *WIN32*) | |
5771 | # Extract the first word of "cl", so it can be a program name with args. | |
5772 | set dummy cl; ac_word=$2 | |
5773 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5774 | echo "configure:5775: checking for $ac_word" >&5 | |
5775 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
5776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5777 | else | |
5778 | if test -n "$CC"; then | |
5779 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5780 | else | |
5781 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5782 | ac_dummy="$PATH" | |
5783 | for ac_dir in $ac_dummy; do | |
5784 | test -z "$ac_dir" && ac_dir=. | |
5785 | if test -f $ac_dir/$ac_word; then | |
5786 | ac_cv_prog_CC="cl" | |
5787 | break | |
5788 | fi | |
5789 | done | |
5790 | IFS="$ac_save_ifs" | |
5791 | fi | |
5792 | fi | |
5793 | CC="$ac_cv_prog_CC" | |
5794 | if test -n "$CC"; then | |
5795 | echo "$ac_t""$CC" 1>&6 | |
5796 | else | |
5797 | echo "$ac_t""no" 1>&6 | |
5798 | fi | |
5799 | ;; | |
5800 | esac | |
5801 | fi | |
a16d3c04 KB |
5802 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5803 | fi | |
5804 | ||
5805 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
0709ee62 | 5806 | echo "configure:5807: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
a16d3c04 KB |
5807 | |
5808 | ac_ext=c | |
5809 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5810 | ac_cpp='$CPP $CPPFLAGS' | |
5811 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 5812 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
5813 | cross_compiling=$ac_cv_prog_cc_cross |
5814 | ||
0709ee62 VZ |
5815 | cat > conftest.$ac_ext << EOF |
5816 | ||
5817 | #line 5818 "configure" | |
a16d3c04 | 5818 | #include "confdefs.h" |
0709ee62 | 5819 | |
a16d3c04 KB |
5820 | main(){return(0);} |
5821 | EOF | |
0709ee62 | 5822 | if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
5823 | ac_cv_prog_cc_works=yes |
5824 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5825 | if (./conftest; exit) 2>/dev/null; then | |
5826 | ac_cv_prog_cc_cross=no | |
5827 | else | |
5828 | ac_cv_prog_cc_cross=yes | |
5829 | fi | |
5830 | else | |
5831 | echo "configure: failed program was:" >&5 | |
5832 | cat conftest.$ac_ext >&5 | |
5833 | ac_cv_prog_cc_works=no | |
5834 | fi | |
5835 | rm -fr conftest* | |
0709ee62 VZ |
5836 | ac_ext=c |
5837 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5838 | ac_cpp='$CPP $CPPFLAGS' | |
5839 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5840 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5841 | cross_compiling=$ac_cv_prog_cc_cross | |
a16d3c04 KB |
5842 | |
5843 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
5844 | if test $ac_cv_prog_cc_works = no; then | |
5845 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
5846 | fi | |
5847 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
0709ee62 | 5848 | echo "configure:5849: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a16d3c04 KB |
5849 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
5850 | cross_compiling=$ac_cv_prog_cc_cross | |
5851 | ||
5852 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
0709ee62 | 5853 | echo "configure:5854: checking whether we are using GNU C" >&5 |
a16d3c04 KB |
5854 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
5855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5856 | else | |
5857 | cat > conftest.c <<EOF | |
5858 | #ifdef __GNUC__ | |
5859 | yes; | |
5860 | #endif | |
5861 | EOF | |
0709ee62 | 5862 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a16d3c04 KB |
5863 | ac_cv_prog_gcc=yes |
5864 | else | |
5865 | ac_cv_prog_gcc=no | |
5866 | fi | |
5867 | fi | |
5868 | ||
5869 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
5870 | ||
5871 | if test $ac_cv_prog_gcc = yes; then | |
5872 | GCC=yes | |
0709ee62 VZ |
5873 | else |
5874 | GCC= | |
5875 | fi | |
5876 | ||
5877 | ac_test_CFLAGS="${CFLAGS+set}" | |
5878 | ac_save_CFLAGS="$CFLAGS" | |
5879 | CFLAGS= | |
5880 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
5881 | echo "configure:5882: checking whether ${CC-cc} accepts -g" >&5 | |
a16d3c04 KB |
5882 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
5883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5884 | else | |
5885 | echo 'void f(){}' > conftest.c | |
5886 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
5887 | ac_cv_prog_cc_g=yes | |
5888 | else | |
5889 | ac_cv_prog_cc_g=no | |
5890 | fi | |
5891 | rm -f conftest* | |
5892 | ||
5893 | fi | |
5894 | ||
5895 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
0709ee62 VZ |
5896 | if test "$ac_test_CFLAGS" = set; then |
5897 | CFLAGS="$ac_save_CFLAGS" | |
5898 | elif test $ac_cv_prog_cc_g = yes; then | |
5899 | if test "$GCC" = yes; then | |
a16d3c04 KB |
5900 | CFLAGS="-g -O2" |
5901 | else | |
0709ee62 | 5902 | CFLAGS="-g" |
fa3e4baf | 5903 | fi |
2726c66d | 5904 | else |
0709ee62 VZ |
5905 | if test "$GCC" = yes; then |
5906 | CFLAGS="-O2" | |
5907 | else | |
5908 | CFLAGS= | |
5909 | fi | |
a16d3c04 KB |
5910 | fi |
5911 | ||
5912 | ||
5913 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
5914 | ||
5915 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
0709ee62 | 5916 | echo "configure:5917: checking how to run the C preprocessor" >&5 |
a16d3c04 KB |
5917 | # On Suns, sometimes $CPP names a directory. |
5918 | if test -n "$CPP" && test -d "$CPP"; then | |
5919 | CPP= | |
5920 | fi | |
5921 | if test -z "$CPP"; then | |
5922 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
5923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5924 | else | |
5925 | # This must be in double quotes, not single quotes, because CPP may get | |
5926 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
5927 | CPP="${CC-cc} -E" | |
5928 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5929 | # not just through cpp. | |
5930 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 5931 | #line 5932 "configure" |
a16d3c04 KB |
5932 | #include "confdefs.h" |
5933 | #include <assert.h> | |
5934 | Syntax Error | |
5935 | EOF | |
5936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
5937 | { (eval echo configure:5938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5938 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
5939 | if test -z "$ac_err"; then |
5940 | : | |
5941 | else | |
5942 | echo "$ac_err" >&5 | |
5943 | echo "configure: failed program was:" >&5 | |
5944 | cat conftest.$ac_ext >&5 | |
5945 | rm -rf conftest* | |
5946 | CPP="${CC-cc} -E -traditional-cpp" | |
5947 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 5948 | #line 5949 "configure" |
fa3e4baf KB |
5949 | #include "confdefs.h" |
5950 | #include <assert.h> | |
5951 | Syntax Error | |
5952 | EOF | |
5953 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
5954 | { (eval echo configure:5955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5955 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5956 | if test -z "$ac_err"; then | |
5957 | : | |
5958 | else | |
5959 | echo "$ac_err" >&5 | |
5960 | echo "configure: failed program was:" >&5 | |
5961 | cat conftest.$ac_ext >&5 | |
5962 | rm -rf conftest* | |
5963 | CPP="${CC-cc} -nologo -E" | |
5964 | cat > conftest.$ac_ext <<EOF | |
5965 | #line 5966 "configure" | |
5966 | #include "confdefs.h" | |
5967 | #include <assert.h> | |
5968 | Syntax Error | |
5969 | EOF | |
5970 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5971 | { (eval echo configure:5972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5972 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
5973 | if test -z "$ac_err"; then |
5974 | : | |
5975 | else | |
5976 | echo "$ac_err" >&5 | |
5977 | echo "configure: failed program was:" >&5 | |
5978 | cat conftest.$ac_ext >&5 | |
5979 | rm -rf conftest* | |
5980 | CPP=/lib/cpp | |
5981 | fi | |
5982 | rm -f conftest* | |
5983 | fi | |
0709ee62 VZ |
5984 | rm -f conftest* |
5985 | fi | |
a16d3c04 KB |
5986 | rm -f conftest* |
5987 | ac_cv_prog_CPP="$CPP" | |
5988 | fi | |
5989 | CPP="$ac_cv_prog_CPP" | |
5990 | else | |
5991 | ac_cv_prog_CPP="$CPP" | |
5992 | fi | |
5993 | echo "$ac_t""$CPP" 1>&6 | |
5994 | ||
5995 | ||
5996 | if test $ac_cv_prog_gcc = yes; then | |
5997 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
0709ee62 | 5998 | echo "configure:5999: checking whether ${CC-cc} needs -traditional" >&5 |
a16d3c04 KB |
5999 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6001 | else | |
6002 | ac_pattern="Autoconf.*'x'" | |
6003 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 6004 | #line 6005 "configure" |
a16d3c04 KB |
6005 | #include "confdefs.h" |
6006 | #include <sgtty.h> | |
6007 | Autoconf TIOCGETP | |
6008 | EOF | |
6009 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6010 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6011 | rm -rf conftest* | |
6012 | ac_cv_prog_gcc_traditional=yes | |
6013 | else | |
6014 | rm -rf conftest* | |
6015 | ac_cv_prog_gcc_traditional=no | |
6016 | fi | |
6017 | rm -f conftest* | |
6018 | ||
6019 | ||
6020 | if test $ac_cv_prog_gcc_traditional = no; then | |
6021 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 6022 | #line 6023 "configure" |
a16d3c04 KB |
6023 | #include "confdefs.h" |
6024 | #include <termio.h> | |
6025 | Autoconf TCGETA | |
6026 | EOF | |
6027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6028 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6029 | rm -rf conftest* | |
6030 | ac_cv_prog_gcc_traditional=yes | |
6031 | fi | |
6032 | rm -f conftest* | |
6033 | ||
6034 | fi | |
6035 | fi | |
6036 | ||
6037 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6038 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6039 | CC="$CC -traditional" | |
6040 | fi | |
6041 | fi | |
6042 | ||
6043 | ||
6044 | ||
6045 | ac_ext=C | |
6046 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6047 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6048 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 6049 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
6050 | cross_compiling=$ac_cv_prog_cxx_cross |
6051 | ||
6052 | ||
0709ee62 | 6053 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
a16d3c04 KB |
6054 | do |
6055 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6056 | set dummy $ac_prog; ac_word=$2 | |
6057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 6058 | echo "configure:6059: checking for $ac_word" >&5 |
a16d3c04 KB |
6059 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6061 | else | |
6062 | if test -n "$CXX"; then | |
6063 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6064 | else | |
0709ee62 VZ |
6065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6066 | ac_dummy="$PATH" | |
6067 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6068 | test -z "$ac_dir" && ac_dir=. |
6069 | if test -f $ac_dir/$ac_word; then | |
6070 | ac_cv_prog_CXX="$ac_prog" | |
6071 | break | |
6072 | fi | |
6073 | done | |
6074 | IFS="$ac_save_ifs" | |
6075 | fi | |
6076 | fi | |
6077 | CXX="$ac_cv_prog_CXX" | |
6078 | if test -n "$CXX"; then | |
6079 | echo "$ac_t""$CXX" 1>&6 | |
6080 | else | |
6081 | echo "$ac_t""no" 1>&6 | |
6082 | fi | |
6083 | ||
6084 | test -n "$CXX" && break | |
6085 | done | |
6086 | test -n "$CXX" || CXX="gcc" | |
6087 | ||
6088 | ||
6089 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
0709ee62 | 6090 | echo "configure:6091: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a16d3c04 KB |
6091 | |
6092 | ac_ext=C | |
6093 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6094 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6095 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 6096 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
6097 | cross_compiling=$ac_cv_prog_cxx_cross |
6098 | ||
0709ee62 VZ |
6099 | cat > conftest.$ac_ext << EOF |
6100 | ||
6101 | #line 6102 "configure" | |
a16d3c04 | 6102 | #include "confdefs.h" |
0709ee62 VZ |
6103 | |
6104 | int main(){return(0);} | |
a16d3c04 | 6105 | EOF |
0709ee62 | 6106 | if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
6107 | ac_cv_prog_cxx_works=yes |
6108 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6109 | if (./conftest; exit) 2>/dev/null; then | |
6110 | ac_cv_prog_cxx_cross=no | |
6111 | else | |
6112 | ac_cv_prog_cxx_cross=yes | |
6113 | fi | |
6114 | else | |
6115 | echo "configure: failed program was:" >&5 | |
6116 | cat conftest.$ac_ext >&5 | |
6117 | ac_cv_prog_cxx_works=no | |
6118 | fi | |
6119 | rm -fr conftest* | |
0709ee62 VZ |
6120 | ac_ext=C |
6121 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6122 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6123 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6124 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6125 | cross_compiling=$ac_cv_prog_cxx_cross | |
a16d3c04 KB |
6126 | |
6127 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6128 | if test $ac_cv_prog_cxx_works = no; then | |
6129 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6130 | fi | |
6131 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
0709ee62 | 6132 | echo "configure:6133: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a16d3c04 KB |
6133 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6134 | cross_compiling=$ac_cv_prog_cxx_cross | |
6135 | ||
6136 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
0709ee62 | 6137 | echo "configure:6138: checking whether we are using GNU C++" >&5 |
a16d3c04 KB |
6138 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6140 | else | |
6141 | cat > conftest.C <<EOF | |
6142 | #ifdef __GNUC__ | |
6143 | yes; | |
6144 | #endif | |
6145 | EOF | |
0709ee62 | 6146 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a16d3c04 KB |
6147 | ac_cv_prog_gxx=yes |
6148 | else | |
6149 | ac_cv_prog_gxx=no | |
6150 | fi | |
6151 | fi | |
6152 | ||
6153 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6154 | ||
6155 | if test $ac_cv_prog_gxx = yes; then | |
6156 | GXX=yes | |
0709ee62 VZ |
6157 | else |
6158 | GXX= | |
6159 | fi | |
6160 | ||
6161 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6162 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6163 | CXXFLAGS= | |
6164 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
6165 | echo "configure:6166: checking whether ${CXX-g++} accepts -g" >&5 | |
a16d3c04 KB |
6166 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6168 | else | |
6169 | echo 'void f(){}' > conftest.cc | |
6170 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6171 | ac_cv_prog_cxx_g=yes | |
6172 | else | |
6173 | ac_cv_prog_cxx_g=no | |
6174 | fi | |
6175 | rm -f conftest* | |
6176 | ||
6177 | fi | |
6178 | ||
6179 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
0709ee62 VZ |
6180 | if test "$ac_test_CXXFLAGS" = set; then |
6181 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6182 | elif test $ac_cv_prog_cxx_g = yes; then | |
6183 | if test "$GXX" = yes; then | |
a16d3c04 KB |
6184 | CXXFLAGS="-g -O2" |
6185 | else | |
0709ee62 | 6186 | CXXFLAGS="-g" |
fa3e4baf | 6187 | fi |
2726c66d | 6188 | else |
0709ee62 VZ |
6189 | if test "$GXX" = yes; then |
6190 | CXXFLAGS="-O2" | |
6191 | else | |
6192 | CXXFLAGS= | |
6193 | fi | |
a16d3c04 KB |
6194 | fi |
6195 | ||
6196 | ||
6197 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
0709ee62 | 6198 | echo "configure:6199: checking how to run the C++ preprocessor" >&5 |
a16d3c04 KB |
6199 | if test -z "$CXXCPP"; then |
6200 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6202 | else | |
6203 | ac_ext=C | |
6204 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6205 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6206 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 6207 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
6208 | cross_compiling=$ac_cv_prog_cxx_cross |
6209 | CXXCPP="${CXX-g++} -E" | |
6210 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 6211 | #line 6212 "configure" |
a16d3c04 KB |
6212 | #include "confdefs.h" |
6213 | #include <stdlib.h> | |
6214 | EOF | |
6215 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
6216 | { (eval echo configure:6217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6217 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
6218 | if test -z "$ac_err"; then |
6219 | : | |
6220 | else | |
6221 | echo "$ac_err" >&5 | |
6222 | echo "configure: failed program was:" >&5 | |
6223 | cat conftest.$ac_ext >&5 | |
6224 | rm -rf conftest* | |
6225 | CXXCPP=/lib/cpp | |
6226 | fi | |
6227 | rm -f conftest* | |
6228 | ac_cv_prog_CXXCPP="$CXXCPP" | |
0709ee62 VZ |
6229 | ac_ext=C |
6230 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6231 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6232 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6233 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6234 | cross_compiling=$ac_cv_prog_cxx_cross | |
a16d3c04 KB |
6235 | fi |
6236 | fi | |
6237 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6238 | echo "$ac_t""$CXXCPP" 1>&6 | |
6239 | ||
6240 | ||
6241 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6242 | ||
6243 | ac_ext=c | |
6244 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6245 | ac_cpp='$CPP $CPPFLAGS' | |
6246 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 6247 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
6248 | cross_compiling=$ac_cv_prog_cc_cross |
6249 | ||
6250 | ||
6251 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6252 | set dummy ranlib; ac_word=$2 | |
6253 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 6254 | echo "configure:6255: checking for $ac_word" >&5 |
a16d3c04 KB |
6255 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6257 | else | |
6258 | if test -n "$RANLIB"; then | |
6259 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6260 | else | |
0709ee62 VZ |
6261 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6262 | ac_dummy="$PATH" | |
6263 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6264 | test -z "$ac_dir" && ac_dir=. |
6265 | if test -f $ac_dir/$ac_word; then | |
6266 | ac_cv_prog_RANLIB="ranlib" | |
6267 | break | |
6268 | fi | |
6269 | done | |
6270 | IFS="$ac_save_ifs" | |
6271 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6272 | fi | |
6273 | fi | |
6274 | RANLIB="$ac_cv_prog_RANLIB" | |
6275 | if test -n "$RANLIB"; then | |
6276 | echo "$ac_t""$RANLIB" 1>&6 | |
6277 | else | |
6278 | echo "$ac_t""no" 1>&6 | |
6279 | fi | |
6280 | ||
6281 | ||
6282 | # Extract the first word of "ar", so it can be a program name with args. | |
6283 | set dummy ar; ac_word=$2 | |
6284 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 6285 | echo "configure:6286: checking for $ac_word" >&5 |
a16d3c04 KB |
6286 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6288 | else | |
6289 | if test -n "$AR"; then | |
6290 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6291 | else | |
0709ee62 VZ |
6292 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6293 | ac_dummy="$PATH" | |
6294 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6295 | test -z "$ac_dir" && ac_dir=. |
6296 | if test -f $ac_dir/$ac_word; then | |
6297 | ac_cv_prog_AR="ar" | |
6298 | break | |
6299 | fi | |
6300 | done | |
6301 | IFS="$ac_save_ifs" | |
6302 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6303 | fi | |
6304 | fi | |
6305 | AR="$ac_cv_prog_AR" | |
6306 | if test -n "$AR"; then | |
6307 | echo "$ac_t""$AR" 1>&6 | |
6308 | else | |
6309 | echo "$ac_t""no" 1>&6 | |
6310 | fi | |
6311 | ||
6312 | ||
6313 | # Find a good install program. We prefer a C program (faster), | |
6314 | # so one script is as good as another. But avoid the broken or | |
6315 | # incompatible versions: | |
6316 | # SysV /etc/install, /usr/sbin/install | |
6317 | # SunOS /usr/etc/install | |
6318 | # IRIX /sbin/install | |
6319 | # AIX /bin/install | |
0709ee62 | 6320 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
a16d3c04 KB |
6321 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
6322 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6323 | # ./install, which can be erroneously created by make from ./install.sh. | |
6324 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
0709ee62 | 6325 | echo "configure:6326: checking for a BSD compatible install" >&5 |
a16d3c04 KB |
6326 | if test -z "$INSTALL"; then |
6327 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6329 | else | |
0709ee62 | 6330 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
a16d3c04 KB |
6331 | for ac_dir in $PATH; do |
6332 | # Account for people who put trailing slashes in PATH elements. | |
6333 | case "$ac_dir/" in | |
6334 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6335 | *) | |
6336 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
0709ee62 VZ |
6337 | # Don't use installbsd from OSF since it installs stuff as root |
6338 | # by default. | |
6339 | for ac_prog in ginstall scoinst install; do | |
a16d3c04 KB |
6340 | if test -f $ac_dir/$ac_prog; then |
6341 | if test $ac_prog = install && | |
6342 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6343 | # AIX install. It has an incompatible calling convention. | |
6344 | : | |
6345 | else | |
6346 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6347 | break 2 | |
6348 | fi | |
6349 | fi | |
6350 | done | |
6351 | ;; | |
6352 | esac | |
6353 | done | |
6354 | IFS="$ac_save_IFS" | |
6355 | ||
6356 | fi | |
6357 | if test "${ac_cv_path_install+set}" = set; then | |
6358 | INSTALL="$ac_cv_path_install" | |
6359 | else | |
6360 | # As a last resort, use the slow shell script. We don't cache a | |
6361 | # path for INSTALL within a source directory, because that will | |
6362 | # break other packages using the cache if that directory is | |
6363 | # removed, or if the path is relative. | |
6364 | INSTALL="$ac_install_sh" | |
6365 | fi | |
6366 | fi | |
6367 | echo "$ac_t""$INSTALL" 1>&6 | |
6368 | ||
6369 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6370 | # It thinks the first close brace ends the variable substitution. | |
6371 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6372 | ||
0709ee62 VZ |
6373 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
6374 | ||
a16d3c04 KB |
6375 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
6376 | ||
6377 | ||
6378 | # Extract the first word of "strip", so it can be a program name with args. | |
6379 | set dummy strip; ac_word=$2 | |
6380 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 6381 | echo "configure:6382: checking for $ac_word" >&5 |
a16d3c04 KB |
6382 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6384 | else | |
6385 | if test -n "$STRIP"; then | |
6386 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6387 | else | |
0709ee62 VZ |
6388 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6389 | ac_dummy="$PATH" | |
6390 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6391 | test -z "$ac_dir" && ac_dir=. |
6392 | if test -f $ac_dir/$ac_word; then | |
6393 | ac_cv_prog_STRIP="strip" | |
6394 | break | |
6395 | fi | |
6396 | done | |
6397 | IFS="$ac_save_ifs" | |
6398 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6399 | fi | |
6400 | fi | |
6401 | STRIP="$ac_cv_prog_STRIP" | |
6402 | if test -n "$STRIP"; then | |
6403 | echo "$ac_t""$STRIP" 1>&6 | |
6404 | else | |
6405 | echo "$ac_t""no" 1>&6 | |
6406 | fi | |
6407 | ||
6408 | ||
6409 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
0709ee62 | 6410 | echo "configure:6411: checking "make for VPATH support"" >&5 |
a16d3c04 KB |
6411 | cat - << EOF > confMake |
6412 | check : file | |
6413 | cp \$? \$@ | |
6414 | cp \$? final_file | |
6415 | EOF | |
6416 | ||
6417 | if test ! -d sub ; then | |
6418 | mkdir sub | |
6419 | fi | |
6420 | echo dummy > sub/file | |
6421 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6422 | RESULT=$? | |
6423 | rm -f sub/file check final_file confMake | |
6424 | rmdir sub | |
6425 | if test "$RESULT" = 0; then | |
6426 | echo "$ac_t""yes" 1>&6 | |
6427 | else | |
6428 | echo "$ac_t""no" 1>&6 | |
6429 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6430 | VPATH correctly. | |
6431 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6432 | fi | |
6433 | ||
6434 | for ac_prog in 'bison -y' byacc | |
6435 | do | |
6436 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6437 | set dummy $ac_prog; ac_word=$2 | |
6438 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 6439 | echo "configure:6440: checking for $ac_word" >&5 |
a16d3c04 KB |
6440 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6442 | else | |
6443 | if test -n "$YACC"; then | |
6444 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6445 | else | |
0709ee62 VZ |
6446 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6447 | ac_dummy="$PATH" | |
6448 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6449 | test -z "$ac_dir" && ac_dir=. |
6450 | if test -f $ac_dir/$ac_word; then | |
6451 | ac_cv_prog_YACC="$ac_prog" | |
6452 | break | |
6453 | fi | |
6454 | done | |
6455 | IFS="$ac_save_ifs" | |
6456 | fi | |
6457 | fi | |
6458 | YACC="$ac_cv_prog_YACC" | |
6459 | if test -n "$YACC"; then | |
6460 | echo "$ac_t""$YACC" 1>&6 | |
6461 | else | |
6462 | echo "$ac_t""no" 1>&6 | |
6463 | fi | |
6464 | ||
6465 | test -n "$YACC" && break | |
6466 | done | |
6467 | test -n "$YACC" || YACC="yacc" | |
6468 | ||
6469 | ||
6470 | # Extract the first word of "flex", so it can be a program name with args. | |
6471 | set dummy flex; ac_word=$2 | |
6472 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 6473 | echo "configure:6474: checking for $ac_word" >&5 |
a16d3c04 KB |
6474 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6476 | else | |
6477 | if test -n "$LEX"; then | |
6478 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6479 | else | |
0709ee62 VZ |
6480 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6481 | ac_dummy="$PATH" | |
6482 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6483 | test -z "$ac_dir" && ac_dir=. |
6484 | if test -f $ac_dir/$ac_word; then | |
6485 | ac_cv_prog_LEX="flex" | |
6486 | break | |
6487 | fi | |
6488 | done | |
6489 | IFS="$ac_save_ifs" | |
6490 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6491 | fi | |
6492 | fi | |
6493 | LEX="$ac_cv_prog_LEX" | |
6494 | if test -n "$LEX"; then | |
6495 | echo "$ac_t""$LEX" 1>&6 | |
6496 | else | |
6497 | echo "$ac_t""no" 1>&6 | |
6498 | fi | |
6499 | ||
6500 | if test -z "$LEXLIB" | |
6501 | then | |
6502 | case "$LEX" in | |
6503 | flex*) ac_lib=fl ;; | |
6504 | *) ac_lib=l ;; | |
6505 | esac | |
6506 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
0709ee62 | 6507 | echo "configure:6508: checking for yywrap in -l$ac_lib" >&5 |
a16d3c04 KB |
6508 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6509 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6511 | else | |
6512 | ac_save_LIBS="$LIBS" | |
6513 | LIBS="-l$ac_lib $LIBS" | |
6514 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 6515 | #line 6516 "configure" |
a16d3c04 KB |
6516 | #include "confdefs.h" |
6517 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6518 | /* We use char because int might match the return type of a gcc2 | |
6519 | builtin and then its argument prototype would still apply. */ | |
6520 | char yywrap(); | |
6521 | ||
6522 | int main() { | |
6523 | yywrap() | |
6524 | ; return 0; } | |
6525 | EOF | |
0709ee62 | 6526 | if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
6527 | rm -rf conftest* |
6528 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6529 | else | |
6530 | echo "configure: failed program was:" >&5 | |
6531 | cat conftest.$ac_ext >&5 | |
6532 | rm -rf conftest* | |
6533 | eval "ac_cv_lib_$ac_lib_var=no" | |
6534 | fi | |
6535 | rm -f conftest* | |
6536 | LIBS="$ac_save_LIBS" | |
6537 | ||
6538 | fi | |
6539 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6540 | echo "$ac_t""yes" 1>&6 | |
6541 | LEXLIB="-l$ac_lib" | |
6542 | else | |
6543 | echo "$ac_t""no" 1>&6 | |
6544 | fi | |
6545 | ||
6546 | fi | |
6547 | ||
6548 | ||
6549 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
0709ee62 | 6550 | echo "configure:6551: checking whether ln -s works" >&5 |
a16d3c04 KB |
6551 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6553 | else | |
6554 | rm -f conftestdata | |
6555 | if ln -s X conftestdata 2>/dev/null | |
6556 | then | |
6557 | rm -f conftestdata | |
6558 | ac_cv_prog_LN_S="ln -s" | |
6559 | else | |
6560 | ac_cv_prog_LN_S=ln | |
6561 | fi | |
6562 | fi | |
6563 | LN_S="$ac_cv_prog_LN_S" | |
6564 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6565 | echo "$ac_t""yes" 1>&6 | |
6566 | else | |
6567 | echo "$ac_t""no" 1>&6 | |
6568 | fi | |
6569 | ||
6570 | ||
6571 | ||
6572 | SEARCH_INCLUDE="\ | |
6573 | /usr/Motif-1.2/include \ | |
6574 | /usr/Motif-2.1/include \ | |
6575 | \ | |
6576 | /usr/include/Motif1.2 \ | |
6577 | /opt/xpm/include/X11 \ | |
6578 | /opt/GBxpm/include/ \ | |
6579 | /opt/GBxpm/X11/include/ \ | |
6580 | \ | |
6581 | /usr/Motif1.2/include \ | |
6582 | /usr/dt/include \ | |
6583 | /usr/include/Xm \ | |
6584 | \ | |
6585 | /usr/X11R6/include \ | |
6586 | /usr/X11R5/include \ | |
6587 | /usr/X11R4/include \ | |
6588 | \ | |
6589 | /usr/X11R6/lib \ | |
6590 | /usr/X11R5/lib \ | |
6591 | /usr/X11R4/lib \ | |
6592 | \ | |
6593 | /usr/include/X11R6 \ | |
6594 | /usr/include/X11R5 \ | |
6595 | /usr/include/X11R4 \ | |
6596 | \ | |
6597 | /usr/local/X11R6/include \ | |
6598 | /usr/local/X11R5/include \ | |
6599 | /usr/local/X11R4/include \ | |
6600 | \ | |
6601 | /usr/local/include/X11R6 \ | |
6602 | /usr/local/include/X11R5 \ | |
6603 | /usr/local/include/X11R4 \ | |
6604 | \ | |
6605 | /usr/X11/include \ | |
6606 | /usr/include/X11 \ | |
6607 | /usr/local/X11/include \ | |
6608 | /usr/local/include/X11 \ | |
6609 | \ | |
6610 | /usr/X386/include \ | |
6611 | /usr/x386/include \ | |
6612 | /usr/XFree86/include/X11 \ | |
6613 | \ | |
6614 | /usr/include \ | |
6615 | /usr/local/include \ | |
6616 | \ | |
6617 | /usr/include/gtk \ | |
6618 | /usr/local/include/gtk \ | |
6619 | /usr/include/glib \ | |
6620 | /usr/local/include/glib \ | |
6621 | \ | |
6622 | /usr/include/qt \ | |
6623 | /usr/local/include/qt \ | |
6624 | \ | |
6625 | /usr/include/windows \ | |
6626 | /usr/include/wine \ | |
6627 | /usr/local/include/wine \ | |
6628 | \ | |
6629 | /usr/unsupported/include \ | |
6630 | /usr/athena/include \ | |
6631 | /usr/local/x11r5/include \ | |
6632 | /usr/lpp/Xamples/include \ | |
6633 | \ | |
6634 | /usr/openwin/include \ | |
6635 | /usr/openwin/share/include \ | |
6636 | " | |
6637 | ||
6638 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6639 | ||
6640 | ||
6641 | cat > confcache <<\EOF | |
6642 | # This file is a shell script that caches the results of configure | |
6643 | # tests run on this system so they can be shared between configure | |
6644 | # scripts and configure runs. It is not useful on other systems. | |
6645 | # If it contains results you don't want to keep, you may remove or edit it. | |
6646 | # | |
6647 | # By default, configure uses ./config.cache as the cache file, | |
6648 | # creating it if it does not exist already. You can give configure | |
6649 | # the --cache-file=FILE option to use a different cache file; that is | |
6650 | # what configure does when it calls configure scripts in | |
6651 | # subdirectories, so they share the cache. | |
6652 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6653 | # config.status only pays attention to the cache file if you give it the | |
6654 | # --recheck option to rerun configure. | |
6655 | # | |
6656 | EOF | |
6657 | # The following way of writing the cache mishandles newlines in values, | |
6658 | # but we know of no workaround that is simple, portable, and efficient. | |
6659 | # So, don't put newlines in cache variables' values. | |
6660 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6661 | # and sets the high bit in the cache file unless we assign to the vars. | |
6662 | (set) 2>&1 | | |
0709ee62 | 6663 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
a16d3c04 KB |
6664 | *ac_space=\ *) |
6665 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6666 | # turns \\\\ into \\, and sed turns \\ into \). | |
6667 | sed -n \ | |
6668 | -e "s/'/'\\\\''/g" \ | |
6669 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6670 | ;; | |
6671 | *) | |
6672 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6673 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6674 | ;; | |
6675 | esac >> confcache | |
6676 | if cmp -s $cache_file confcache; then | |
6677 | : | |
6678 | else | |
6679 | if test -w $cache_file; then | |
6680 | echo "updating cache $cache_file" | |
6681 | cat confcache > $cache_file | |
6682 | else | |
6683 | echo "not updating unwritable cache $cache_file" | |
6684 | fi | |
6685 | fi | |
6686 | rm -f confcache | |
6687 | ||
6688 | ||
6689 | ||
f7a11f8c RR |
6690 | if test "$wxUSE_GUI" = "yes"; then |
6691 | ||
a16d3c04 KB |
6692 | TOOLKIT= |
6693 | TOOLKIT_INCLUDE= | |
6694 | ||
6695 | GUIOBJS= | |
6696 | COMMONOBJS= | |
6697 | GENERICOBJS= | |
6698 | ||
6699 | GUI_TK_LIBRARY= | |
6700 | GUI_TK_LINK= | |
6701 | ||
6702 | WXGTK12= | |
6703 | ||
6704 | WXWINE= | |
6705 | ||
1c8515f9 | 6706 | PROGRAM_EXT= |
a16d3c04 KB |
6707 | |
6708 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
6709 | if test "$cross_compiling" = "yes" ; then | |
f7a11f8c | 6710 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 |
a16d3c04 | 6711 | else |
f7a11f8c | 6712 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 |
0709ee62 | 6713 | echo "configure:6714: checking for Windows headers" >&5 |
f7a11f8c | 6714 | |
a16d3c04 KB |
6715 | ac_find_includes= |
6716 | for ac_dir in $SEARCH_INCLUDE; | |
6717 | do | |
6718 | if test -f "$ac_dir/windows.h"; then | |
6719 | ac_find_includes=$ac_dir | |
6720 | break | |
6721 | fi | |
6722 | done | |
6723 | ||
f7a11f8c | 6724 | if test "$ac_find_includes" != "" ; then |
a16d3c04 KB |
6725 | echo "$ac_t""found $ac_find_includes" 1>&6 |
6726 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
f7a11f8c | 6727 | else |
a16d3c04 KB |
6728 | echo "$ac_t""no" 1>&6 |
6729 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
1c8515f9 | 6730 | fi |
a16d3c04 | 6731 | fi |
1c8515f9 | 6732 | |
a16d3c04 KB |
6733 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
6734 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6735 | ||
6736 | TOOLKIT=MSW | |
1c8515f9 | 6737 | |
f7a11f8c RR |
6738 | GUIOBJS="\$(MSW_GUIOBJS)" |
6739 | GUIHEADERS="\$(MSW_HEADERS)" | |
6740 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6741 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
a16d3c04 KB |
6742 | UNIXOBJS= |
6743 | GUIDIST=MSW_DIST | |
6744 | PROGRAM_EXT=.exe | |
6745 | fi | |
6746 | ||
6747 | if test "$wxUSE_GTK" = 1; then | |
6748 | ||
6749 | if test x$gtk_config_exec_prefix != x ; then | |
6750 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6751 | if test x${GTK_CONFIG+set} != xset ; then | |
6752 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6753 | fi | |
6754 | fi | |
6755 | if test x$gtk_config_prefix != x ; then | |
6756 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6757 | if test x${GTK_CONFIG+set} != xset ; then | |
6758 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6759 | fi | |
6760 | fi | |
6761 | ||
6762 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6763 | set dummy gtk-config; ac_word=$2 | |
6764 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
0709ee62 | 6765 | echo "configure:6766: checking for $ac_word" >&5 |
a16d3c04 KB |
6766 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6768 | else | |
6769 | case "$GTK_CONFIG" in | |
6770 | /*) | |
6771 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6772 | ;; | |
0709ee62 VZ |
6773 | ?:/*) |
6774 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
a16d3c04 | 6775 | ;; |
a16d3c04 | 6776 | *) |
0709ee62 VZ |
6777 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6778 | ac_dummy="$PATH" | |
6779 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6780 | test -z "$ac_dir" && ac_dir=. |
6781 | if test -f $ac_dir/$ac_word; then | |
6782 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6783 | break | |
6784 | fi | |
6785 | done | |
6786 | IFS="$ac_save_ifs" | |
6787 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6788 | ;; | |
6789 | esac | |
6790 | fi | |
6791 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6792 | if test -n "$GTK_CONFIG"; then | |
6793 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6794 | else | |
6795 | echo "$ac_t""no" 1>&6 | |
6796 | fi | |
6797 | ||
0709ee62 | 6798 | min_gtk_version=1.2.1 |
a16d3c04 | 6799 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
0709ee62 | 6800 | echo "configure:6801: checking for GTK - version >= $min_gtk_version" >&5 |
a16d3c04 KB |
6801 | no_gtk="" |
6802 | if test "$GTK_CONFIG" != "no" ; then | |
6803 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6804 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6805 | ac_save_CFLAGS="$CFLAGS" | |
6806 | ac_save_LIBS="$LIBS" | |
6807 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6808 | LIBS="$LIBS $GTK_LIBS" | |
6809 | if test "$cross_compiling" = yes; then | |
6810 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6811 | else | |
6812 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 6813 | #line 6814 "configure" |
a16d3c04 KB |
6814 | #include "confdefs.h" |
6815 | ||
6816 | #include <gtk/gtk.h> | |
6817 | #include <stdio.h> | |
6818 | ||
6819 | int | |
6820 | main () | |
6821 | { | |
6822 | int major, minor, micro; | |
6823 | ||
6824 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6825 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6826 | exit(1); | |
6827 | } | |
6828 | ||
6829 | if (gtk_minor_version == 1) return FALSE; | |
6830 | ||
6831 | return !((gtk_major_version > major) || | |
f7a11f8c RR |
6832 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
6833 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
a16d3c04 KB |
6834 | } |
6835 | ||
6836 | EOF | |
0709ee62 | 6837 | if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
6838 | then |
6839 | : | |
6840 | else | |
6841 | echo "configure: failed program was:" >&5 | |
6842 | cat conftest.$ac_ext >&5 | |
6843 | rm -fr conftest* | |
6844 | no_gtk=yes | |
6845 | fi | |
6846 | rm -fr conftest* | |
6847 | fi | |
6848 | ||
6849 | CFLAGS="$ac_save_CFLAGS" | |
6850 | LIBS="$ac_save_LIBS" | |
6851 | else | |
6852 | no_gtk=yes | |
6853 | fi | |
6854 | if test "x$no_gtk" = x ; then | |
6855 | echo "$ac_t""yes" 1>&6 | |
0709ee62 | 6856 | WXGTK12=1 |
a16d3c04 KB |
6857 | else |
6858 | echo "$ac_t""no" 1>&6 | |
6859 | GTK_CFLAGS="" | |
6860 | GTK_LIBS="" | |
0709ee62 | 6861 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; } |
a16d3c04 KB |
6862 | fi |
6863 | ||
6864 | ||
6865 | ||
a16d3c04 KB |
6866 | |
6867 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
f7a11f8c | 6868 | GUI_TK_LIBRARY="$GTK_LIBS" |
a16d3c04 | 6869 | TOOLKIT=GTK |
1c8515f9 | 6870 | |
f7a11f8c RR |
6871 | GUIOBJS="\$(GTK_GUIOBJS)" |
6872 | GUIHEADERS="\$(GTK_HEADERS)" | |
6873 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
6874 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
6875 | GUIDEPS="\$(GTK_GUIDEPS)" | |
6876 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
6877 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
6878 | UNIXOBJS="\$(UNIX_OBJS)" | |
a16d3c04 KB |
6879 | GUIDIST=GTK_DIST |
6880 | fi | |
6881 | ||
6882 | if test "$wxUSE_WINE" = 1; then | |
6883 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
0709ee62 | 6884 | echo "configure:6885: checking for WINE includes" >&5 |
a16d3c04 KB |
6885 | |
6886 | ac_find_includes= | |
6887 | for ac_dir in $SEARCH_INCLUDE; | |
6888 | do | |
6889 | if test -f "$ac_dir/windows.h"; then | |
6890 | ac_find_includes=$ac_dir | |
6891 | break | |
6892 | fi | |
6893 | done | |
6894 | ||
6895 | if test "$ac_find_includes" != "" ; then | |
6896 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6897 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6898 | else | |
6899 | echo "$ac_t""no" 1>&6 | |
6900 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6901 | fi | |
6902 | ||
6903 | XPM_LINK="" | |
6904 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
0709ee62 | 6905 | echo "configure:6906: checking for Xpm library" >&5 |
a16d3c04 KB |
6906 | |
6907 | ac_find_libraries= | |
6908 | for ac_dir in $SEARCH_LIB; | |
6909 | do | |
6910 | for ac_extension in a so sl; do | |
6911 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
6912 | ac_find_libraries=$ac_dir | |
6913 | break 2 | |
6914 | fi | |
6915 | done | |
6916 | done | |
6917 | ||
6918 | if test "$ac_find_libraries" != "" ; then | |
6919 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
6920 | XPM_LINK="-lXpm" | |
6921 | cat >> confdefs.h <<\EOF | |
6922 | #define wxHAVE_LIB_XPM 1 | |
6923 | EOF | |
6924 | ||
6925 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6926 | else | |
6927 | echo "$ac_t""no" 1>&6 | |
6928 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
6929 | fi | |
1c8515f9 | 6930 | |
a16d3c04 KB |
6931 | MESA_LINK="" |
6932 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
0709ee62 | 6933 | echo "configure:6934: checking for Mesa library" >&5 |
a16d3c04 KB |
6934 | |
6935 | ac_find_libraries= | |
6936 | for ac_dir in $SEARCH_LIB; | |
6937 | do | |
6938 | for ac_extension in a so sl; do | |
6939 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
6940 | ac_find_libraries=$ac_dir | |
6941 | break 2 | |
6942 | fi | |
6943 | done | |
6944 | done | |
6945 | ||
6946 | if test "$ac_find_libraries" != "" ; then | |
6947 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
6948 | MESA_LINK="-lMesaGL" | |
6949 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6950 | else | |
6951 | { echo "configure: error: no" 1>&2; exit 1; } | |
6952 | fi | |
6953 | ||
f7a11f8c | 6954 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" |
a16d3c04 KB |
6955 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
6956 | WXWINE=1 | |
6957 | TOOLKIT=MSW | |
1c8515f9 | 6958 | |
f7a11f8c RR |
6959 | GUIHEADERS="\$(MSW_HEADERS)" |
6960 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6961 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6962 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6963 | GUIDEPS="\$(MSW_GUIDEPS)" | |
6964 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
6965 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
6966 | UNIXOBJS="\$(UNIX_OBJS)" | |
a16d3c04 KB |
6967 | GUIDIST=MSW_DIST |
6968 | fi | |
6969 | ||
6970 | if test "$wxUSE_MOTIF" = 1; then | |
6971 | # If we find X, set shell vars x_includes and x_libraries to the | |
6972 | # paths, otherwise set no_x=yes. | |
6973 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
6974 | # --without-x overrides everything else, but does not touch the cache. | |
6975 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
0709ee62 | 6976 | echo "configure:6977: checking for X" >&5 |
a16d3c04 KB |
6977 | |
6978 | # Check whether --with-x or --without-x was given. | |
6979 | if test "${with_x+set}" = set; then | |
6980 | withval="$with_x" | |
6981 | : | |
6982 | fi | |
6983 | ||
6984 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
6985 | if test "x$with_x" = xno; then | |
6986 | # The user explicitly disabled X. | |
6987 | have_x=disabled | |
6988 | else | |
6989 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
6990 | # Both variables are already set. | |
6991 | have_x=yes | |
6992 | else | |
6993 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
6994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6995 | else | |
6996 | # One or both of the vars are not set, and there is no cached value. | |
6997 | ac_x_includes=NO ac_x_libraries=NO | |
6998 | rm -fr conftestdir | |
6999 | if mkdir conftestdir; then | |
7000 | cd conftestdir | |
7001 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7002 | cat > Imakefile <<'EOF' | |
7003 | acfindx: | |
7004 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7005 | EOF | |
7006 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7007 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7008 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7009 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7010 | for ac_extension in a so sl; do | |
7011 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
7012 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7013 | ac_im_usrlibdir=$ac_im_libdir; break | |
7014 | fi | |
7015 | done | |
7016 | # Screen out bogus values from the imake configuration. They are | |
7017 | # bogus both because they are the default anyway, and because | |
7018 | # using them would break gcc on systems where it needs fixed includes. | |
7019 | case "$ac_im_incroot" in | |
7020 | /usr/include) ;; | |
7021 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7022 | esac | |
7023 | case "$ac_im_usrlibdir" in | |
7024 | /usr/lib | /lib) ;; | |
7025 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7026 | esac | |
7027 | fi | |
7028 | cd .. | |
7029 | rm -fr conftestdir | |
7030 | fi | |
7031 | ||
7032 | if test "$ac_x_includes" = NO; then | |
7033 | # Guess where to find include files, by looking for this one X11 .h file. | |
7034 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
7035 | ||
7036 | # First, try using that file with no special directory specified. | |
7037 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7038 | #line 7039 "configure" |
a16d3c04 KB |
7039 | #include "confdefs.h" |
7040 | #include <$x_direct_test_include> | |
7041 | EOF | |
7042 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
7043 | { (eval echo configure:7044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7044 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
7045 | if test -z "$ac_err"; then |
7046 | rm -rf conftest* | |
7047 | # We can compile using X headers with no special include directory. | |
7048 | ac_x_includes= | |
7049 | else | |
7050 | echo "$ac_err" >&5 | |
7051 | echo "configure: failed program was:" >&5 | |
7052 | cat conftest.$ac_ext >&5 | |
7053 | rm -rf conftest* | |
7054 | # Look for the header file in a standard set of common directories. | |
7055 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7056 | for ac_dir in \ | |
7057 | /usr/X11/include \ | |
7058 | /usr/X11R6/include \ | |
7059 | /usr/X11R5/include \ | |
7060 | /usr/X11R4/include \ | |
7061 | \ | |
7062 | /usr/include/X11 \ | |
7063 | /usr/include/X11R6 \ | |
7064 | /usr/include/X11R5 \ | |
7065 | /usr/include/X11R4 \ | |
7066 | \ | |
7067 | /usr/local/X11/include \ | |
7068 | /usr/local/X11R6/include \ | |
7069 | /usr/local/X11R5/include \ | |
7070 | /usr/local/X11R4/include \ | |
7071 | \ | |
7072 | /usr/local/include/X11 \ | |
7073 | /usr/local/include/X11R6 \ | |
7074 | /usr/local/include/X11R5 \ | |
7075 | /usr/local/include/X11R4 \ | |
7076 | \ | |
7077 | /usr/X386/include \ | |
7078 | /usr/x386/include \ | |
7079 | /usr/XFree86/include/X11 \ | |
7080 | \ | |
7081 | /usr/include \ | |
7082 | /usr/local/include \ | |
7083 | /usr/unsupported/include \ | |
7084 | /usr/athena/include \ | |
7085 | /usr/local/x11r5/include \ | |
7086 | /usr/lpp/Xamples/include \ | |
7087 | \ | |
7088 | /usr/openwin/include \ | |
7089 | /usr/openwin/share/include \ | |
7090 | ; \ | |
7091 | do | |
7092 | if test -r "$ac_dir/$x_direct_test_include"; then | |
7093 | ac_x_includes=$ac_dir | |
7094 | break | |
7095 | fi | |
7096 | done | |
7097 | fi | |
7098 | rm -f conftest* | |
7099 | fi # $ac_x_includes = NO | |
7100 | ||
7101 | if test "$ac_x_libraries" = NO; then | |
7102 | # Check for the libraries. | |
7103 | ||
7104 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
7105 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
7106 | ||
7107 | # See if we find them without any special options. | |
7108 | # Don't add to $LIBS permanently. | |
7109 | ac_save_LIBS="$LIBS" | |
7110 | LIBS="-l$x_direct_test_library $LIBS" | |
7111 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7112 | #line 7113 "configure" |
a16d3c04 KB |
7113 | #include "confdefs.h" |
7114 | ||
7115 | int main() { | |
7116 | ${x_direct_test_function}() | |
7117 | ; return 0; } | |
7118 | EOF | |
0709ee62 | 7119 | if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7120 | rm -rf conftest* |
7121 | LIBS="$ac_save_LIBS" | |
7122 | # We can link X programs with no special library path. | |
7123 | ac_x_libraries= | |
7124 | else | |
7125 | echo "configure: failed program was:" >&5 | |
7126 | cat conftest.$ac_ext >&5 | |
7127 | rm -rf conftest* | |
7128 | LIBS="$ac_save_LIBS" | |
7129 | # First see if replacing the include by lib works. | |
7130 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7131 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7132 | /usr/X11/lib \ | |
7133 | /usr/X11R6/lib \ | |
7134 | /usr/X11R5/lib \ | |
7135 | /usr/X11R4/lib \ | |
7136 | \ | |
7137 | /usr/lib/X11 \ | |
7138 | /usr/lib/X11R6 \ | |
7139 | /usr/lib/X11R5 \ | |
7140 | /usr/lib/X11R4 \ | |
7141 | \ | |
7142 | /usr/local/X11/lib \ | |
7143 | /usr/local/X11R6/lib \ | |
7144 | /usr/local/X11R5/lib \ | |
7145 | /usr/local/X11R4/lib \ | |
7146 | \ | |
7147 | /usr/local/lib/X11 \ | |
7148 | /usr/local/lib/X11R6 \ | |
7149 | /usr/local/lib/X11R5 \ | |
7150 | /usr/local/lib/X11R4 \ | |
7151 | \ | |
7152 | /usr/X386/lib \ | |
7153 | /usr/x386/lib \ | |
7154 | /usr/XFree86/lib/X11 \ | |
7155 | \ | |
7156 | /usr/lib \ | |
7157 | /usr/local/lib \ | |
7158 | /usr/unsupported/lib \ | |
7159 | /usr/athena/lib \ | |
7160 | /usr/local/x11r5/lib \ | |
7161 | /usr/lpp/Xamples/lib \ | |
7162 | /lib/usr/lib/X11 \ | |
7163 | \ | |
7164 | /usr/openwin/lib \ | |
7165 | /usr/openwin/share/lib \ | |
7166 | ; \ | |
7167 | do | |
7168 | for ac_extension in a so sl; do | |
7169 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7170 | ac_x_libraries=$ac_dir | |
7171 | break 2 | |
7172 | fi | |
7173 | done | |
7174 | done | |
7175 | fi | |
7176 | rm -f conftest* | |
7177 | fi # $ac_x_libraries = NO | |
7178 | ||
7179 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
7180 | # Didn't find X anywhere. Cache the known absence of X. | |
7181 | ac_cv_have_x="have_x=no" | |
7182 | else | |
7183 | # Record where we found X for the cache. | |
7184 | ac_cv_have_x="have_x=yes \ | |
7185 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7186 | fi | |
7187 | fi | |
7188 | fi | |
7189 | eval "$ac_cv_have_x" | |
7190 | fi # $with_x != no | |
7191 | ||
7192 | if test "$have_x" != yes; then | |
7193 | echo "$ac_t""$have_x" 1>&6 | |
7194 | no_x=yes | |
7195 | else | |
7196 | # If each of the values was on the command line, it overrides each guess. | |
7197 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7198 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7199 | # Update the cache value to reflect the command line values. | |
7200 | ac_cv_have_x="have_x=yes \ | |
7201 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7202 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7203 | fi | |
7204 | ||
7205 | if test "$no_x" = yes; then | |
7206 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7207 | cat >> confdefs.h <<\EOF | |
7208 | #define X_DISPLAY_MISSING 1 | |
7209 | EOF | |
7210 | ||
7211 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
7212 | else | |
7213 | if test -n "$x_includes"; then | |
7214 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
7215 | fi | |
7216 | ||
7217 | # It would also be nice to do this for all -L options, not just this one. | |
7218 | if test -n "$x_libraries"; then | |
7219 | X_LIBS="$X_LIBS -L$x_libraries" | |
7220 | # For Solaris; some versions of Sun CC require a space after -R and | |
7221 | # others require no space. Words are not sufficient . . . . | |
7222 | case "`(uname -sr) 2>/dev/null`" in | |
7223 | "SunOS 5"*) | |
7224 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
0709ee62 | 7225 | echo "configure:7226: checking whether -R must be followed by a space" >&5 |
a16d3c04 KB |
7226 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
7227 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7228 | #line 7229 "configure" |
a16d3c04 KB |
7229 | #include "confdefs.h" |
7230 | ||
7231 | int main() { | |
7232 | ||
7233 | ; return 0; } | |
7234 | EOF | |
0709ee62 | 7235 | if { (eval echo configure:7236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7236 | rm -rf conftest* |
7237 | ac_R_nospace=yes | |
7238 | else | |
7239 | echo "configure: failed program was:" >&5 | |
7240 | cat conftest.$ac_ext >&5 | |
7241 | rm -rf conftest* | |
7242 | ac_R_nospace=no | |
7243 | fi | |
7244 | rm -f conftest* | |
7245 | if test $ac_R_nospace = yes; then | |
7246 | echo "$ac_t""no" 1>&6 | |
7247 | X_LIBS="$X_LIBS -R$x_libraries" | |
7248 | else | |
7249 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7250 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7251 | #line 7252 "configure" |
a16d3c04 KB |
7252 | #include "confdefs.h" |
7253 | ||
7254 | int main() { | |
7255 | ||
7256 | ; return 0; } | |
7257 | EOF | |
0709ee62 | 7258 | if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7259 | rm -rf conftest* |
7260 | ac_R_space=yes | |
7261 | else | |
7262 | echo "configure: failed program was:" >&5 | |
7263 | cat conftest.$ac_ext >&5 | |
7264 | rm -rf conftest* | |
7265 | ac_R_space=no | |
7266 | fi | |
7267 | rm -f conftest* | |
7268 | if test $ac_R_space = yes; then | |
7269 | echo "$ac_t""yes" 1>&6 | |
7270 | X_LIBS="$X_LIBS -R $x_libraries" | |
7271 | else | |
7272 | echo "$ac_t""neither works" 1>&6 | |
7273 | fi | |
7274 | fi | |
7275 | LIBS="$ac_xsave_LIBS" | |
7276 | esac | |
7277 | fi | |
7278 | ||
7279 | # Check for system-dependent libraries X programs must link with. | |
7280 | # Do this before checking for the system-independent R6 libraries | |
7281 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7282 | ||
7283 | if test "$ISC" = yes; then | |
7284 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7285 | else | |
7286 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7287 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7288 | # the Alpha needs dnet_stub (dnet does not exist). | |
7289 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
0709ee62 | 7290 | echo "configure:7291: checking for dnet_ntoa in -ldnet" >&5 |
a16d3c04 KB |
7291 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7292 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7294 | else | |
7295 | ac_save_LIBS="$LIBS" | |
7296 | LIBS="-ldnet $LIBS" | |
7297 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7298 | #line 7299 "configure" |
a16d3c04 KB |
7299 | #include "confdefs.h" |
7300 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7301 | /* We use char because int might match the return type of a gcc2 | |
7302 | builtin and then its argument prototype would still apply. */ | |
7303 | char dnet_ntoa(); | |
7304 | ||
7305 | int main() { | |
7306 | dnet_ntoa() | |
7307 | ; return 0; } | |
7308 | EOF | |
0709ee62 | 7309 | if { (eval echo configure:7310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7310 | rm -rf conftest* |
7311 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7312 | else | |
7313 | echo "configure: failed program was:" >&5 | |
7314 | cat conftest.$ac_ext >&5 | |
7315 | rm -rf conftest* | |
7316 | eval "ac_cv_lib_$ac_lib_var=no" | |
7317 | fi | |
7318 | rm -f conftest* | |
7319 | LIBS="$ac_save_LIBS" | |
7320 | ||
7321 | fi | |
7322 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7323 | echo "$ac_t""yes" 1>&6 | |
7324 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7325 | else | |
7326 | echo "$ac_t""no" 1>&6 | |
7327 | fi | |
7328 | ||
7329 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7330 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
0709ee62 | 7331 | echo "configure:7332: checking for dnet_ntoa in -ldnet_stub" >&5 |
a16d3c04 KB |
7332 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7333 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7335 | else | |
7336 | ac_save_LIBS="$LIBS" | |
7337 | LIBS="-ldnet_stub $LIBS" | |
7338 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7339 | #line 7340 "configure" |
a16d3c04 KB |
7340 | #include "confdefs.h" |
7341 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7342 | /* We use char because int might match the return type of a gcc2 | |
7343 | builtin and then its argument prototype would still apply. */ | |
7344 | char dnet_ntoa(); | |
7345 | ||
7346 | int main() { | |
7347 | dnet_ntoa() | |
7348 | ; return 0; } | |
7349 | EOF | |
0709ee62 | 7350 | if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7351 | rm -rf conftest* |
7352 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7353 | else | |
7354 | echo "configure: failed program was:" >&5 | |
7355 | cat conftest.$ac_ext >&5 | |
7356 | rm -rf conftest* | |
7357 | eval "ac_cv_lib_$ac_lib_var=no" | |
7358 | fi | |
7359 | rm -f conftest* | |
7360 | LIBS="$ac_save_LIBS" | |
7361 | ||
7362 | fi | |
7363 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7364 | echo "$ac_t""yes" 1>&6 | |
7365 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7366 | else | |
7367 | echo "$ac_t""no" 1>&6 | |
7368 | fi | |
7369 | ||
7370 | fi | |
7371 | ||
7372 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7373 | # to get the SysV transport functions. | |
7374 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7375 | # needs -lnsl. | |
7376 | # The nsl library prevents programs from opening the X display | |
7377 | # on Irix 5.2, according to dickey@clark.net. | |
7378 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
0709ee62 | 7379 | echo "configure:7380: checking for gethostbyname" >&5 |
a16d3c04 KB |
7380 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
7381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7382 | else | |
7383 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7384 | #line 7385 "configure" |
a16d3c04 KB |
7385 | #include "confdefs.h" |
7386 | /* System header to define __stub macros and hopefully few prototypes, | |
7387 | which can conflict with char gethostbyname(); below. */ | |
7388 | #include <assert.h> | |
7389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7390 | /* We use char because int might match the return type of a gcc2 | |
7391 | builtin and then its argument prototype would still apply. */ | |
7392 | char gethostbyname(); | |
7393 | ||
7394 | int main() { | |
7395 | ||
7396 | /* The GNU C library defines this for functions which it implements | |
7397 | to always fail with ENOSYS. Some functions are actually named | |
7398 | something starting with __ and the normal name is an alias. */ | |
7399 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7400 | choke me | |
7401 | #else | |
2726c66d | 7402 | gethostbyname(); |
a16d3c04 KB |
7403 | #endif |
7404 | ||
7405 | ; return 0; } | |
7406 | EOF | |
0709ee62 | 7407 | if { (eval echo configure:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7408 | rm -rf conftest* |
7409 | eval "ac_cv_func_gethostbyname=yes" | |
7410 | else | |
7411 | echo "configure: failed program was:" >&5 | |
7412 | cat conftest.$ac_ext >&5 | |
7413 | rm -rf conftest* | |
7414 | eval "ac_cv_func_gethostbyname=no" | |
7415 | fi | |
7416 | rm -f conftest* | |
7417 | fi | |
7418 | ||
7419 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7420 | echo "$ac_t""yes" 1>&6 | |
7421 | : | |
7422 | else | |
7423 | echo "$ac_t""no" 1>&6 | |
7424 | fi | |
7425 | ||
7426 | if test $ac_cv_func_gethostbyname = no; then | |
7427 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
0709ee62 | 7428 | echo "configure:7429: checking for gethostbyname in -lnsl" >&5 |
a16d3c04 KB |
7429 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
7430 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7432 | else | |
7433 | ac_save_LIBS="$LIBS" | |
7434 | LIBS="-lnsl $LIBS" | |
7435 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7436 | #line 7437 "configure" |
a16d3c04 KB |
7437 | #include "confdefs.h" |
7438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7439 | /* We use char because int might match the return type of a gcc2 | |
7440 | builtin and then its argument prototype would still apply. */ | |
7441 | char gethostbyname(); | |
7442 | ||
7443 | int main() { | |
7444 | gethostbyname() | |
7445 | ; return 0; } | |
7446 | EOF | |
0709ee62 | 7447 | if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7448 | rm -rf conftest* |
7449 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7450 | else | |
7451 | echo "configure: failed program was:" >&5 | |
7452 | cat conftest.$ac_ext >&5 | |
7453 | rm -rf conftest* | |
7454 | eval "ac_cv_lib_$ac_lib_var=no" | |
7455 | fi | |
7456 | rm -f conftest* | |
7457 | LIBS="$ac_save_LIBS" | |
7458 | ||
7459 | fi | |
7460 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7461 | echo "$ac_t""yes" 1>&6 | |
7462 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7463 | else | |
7464 | echo "$ac_t""no" 1>&6 | |
7465 | fi | |
7466 | ||
7467 | fi | |
7468 | ||
7469 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7470 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7471 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7472 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7473 | # gethostby* variants that don't use the nameserver (or something). | |
7474 | # -lsocket must be given before -lnsl if both are needed. | |
7475 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7476 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
0709ee62 | 7477 | echo "configure:7478: checking for connect" >&5 |
a16d3c04 KB |
7478 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
7479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7480 | else | |
7481 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7482 | #line 7483 "configure" |
a16d3c04 KB |
7483 | #include "confdefs.h" |
7484 | /* System header to define __stub macros and hopefully few prototypes, | |
7485 | which can conflict with char connect(); below. */ | |
7486 | #include <assert.h> | |
7487 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7488 | /* We use char because int might match the return type of a gcc2 | |
7489 | builtin and then its argument prototype would still apply. */ | |
7490 | char connect(); | |
7491 | ||
7492 | int main() { | |
7493 | ||
7494 | /* The GNU C library defines this for functions which it implements | |
7495 | to always fail with ENOSYS. Some functions are actually named | |
7496 | something starting with __ and the normal name is an alias. */ | |
7497 | #if defined (__stub_connect) || defined (__stub___connect) | |
7498 | choke me | |
7499 | #else | |
2726c66d | 7500 | connect(); |
a16d3c04 KB |
7501 | #endif |
7502 | ||
7503 | ; return 0; } | |
7504 | EOF | |
0709ee62 | 7505 | if { (eval echo configure:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7506 | rm -rf conftest* |
7507 | eval "ac_cv_func_connect=yes" | |
7508 | else | |
7509 | echo "configure: failed program was:" >&5 | |
7510 | cat conftest.$ac_ext >&5 | |
7511 | rm -rf conftest* | |
7512 | eval "ac_cv_func_connect=no" | |
7513 | fi | |
7514 | rm -f conftest* | |
7515 | fi | |
7516 | ||
7517 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7518 | echo "$ac_t""yes" 1>&6 | |
7519 | : | |
7520 | else | |
7521 | echo "$ac_t""no" 1>&6 | |
7522 | fi | |
7523 | ||
7524 | if test $ac_cv_func_connect = no; then | |
7525 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
0709ee62 | 7526 | echo "configure:7527: checking for connect in -lsocket" >&5 |
a16d3c04 KB |
7527 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
7528 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7530 | else | |
7531 | ac_save_LIBS="$LIBS" | |
7532 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7533 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7534 | #line 7535 "configure" |
a16d3c04 KB |
7535 | #include "confdefs.h" |
7536 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7537 | /* We use char because int might match the return type of a gcc2 | |
7538 | builtin and then its argument prototype would still apply. */ | |
7539 | char connect(); | |
7540 | ||
7541 | int main() { | |
7542 | connect() | |
7543 | ; return 0; } | |
7544 | EOF | |
0709ee62 | 7545 | if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7546 | rm -rf conftest* |
7547 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7548 | else | |
7549 | echo "configure: failed program was:" >&5 | |
7550 | cat conftest.$ac_ext >&5 | |
7551 | rm -rf conftest* | |
7552 | eval "ac_cv_lib_$ac_lib_var=no" | |
7553 | fi | |
7554 | rm -f conftest* | |
7555 | LIBS="$ac_save_LIBS" | |
7556 | ||
7557 | fi | |
7558 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7559 | echo "$ac_t""yes" 1>&6 | |
7560 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7561 | else | |
7562 | echo "$ac_t""no" 1>&6 | |
7563 | fi | |
7564 | ||
7565 | fi | |
7566 | ||
7567 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7568 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
0709ee62 | 7569 | echo "configure:7570: checking for remove" >&5 |
a16d3c04 KB |
7570 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
7571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7572 | else | |
7573 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7574 | #line 7575 "configure" |
a16d3c04 KB |
7575 | #include "confdefs.h" |
7576 | /* System header to define __stub macros and hopefully few prototypes, | |
7577 | which can conflict with char remove(); below. */ | |
7578 | #include <assert.h> | |
7579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7580 | /* We use char because int might match the return type of a gcc2 | |
7581 | builtin and then its argument prototype would still apply. */ | |
7582 | char remove(); | |
7583 | ||
7584 | int main() { | |
7585 | ||
7586 | /* The GNU C library defines this for functions which it implements | |
7587 | to always fail with ENOSYS. Some functions are actually named | |
7588 | something starting with __ and the normal name is an alias. */ | |
7589 | #if defined (__stub_remove) || defined (__stub___remove) | |
7590 | choke me | |
7591 | #else | |
2726c66d | 7592 | remove(); |
a16d3c04 KB |
7593 | #endif |
7594 | ||
7595 | ; return 0; } | |
7596 | EOF | |
0709ee62 | 7597 | if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7598 | rm -rf conftest* |
7599 | eval "ac_cv_func_remove=yes" | |
7600 | else | |
7601 | echo "configure: failed program was:" >&5 | |
7602 | cat conftest.$ac_ext >&5 | |
7603 | rm -rf conftest* | |
7604 | eval "ac_cv_func_remove=no" | |
7605 | fi | |
7606 | rm -f conftest* | |
7607 | fi | |
7608 | ||
7609 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
7610 | echo "$ac_t""yes" 1>&6 | |
7611 | : | |
7612 | else | |
7613 | echo "$ac_t""no" 1>&6 | |
7614 | fi | |
7615 | ||
7616 | if test $ac_cv_func_remove = no; then | |
7617 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
0709ee62 | 7618 | echo "configure:7619: checking for remove in -lposix" >&5 |
a16d3c04 KB |
7619 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
7620 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7622 | else | |
7623 | ac_save_LIBS="$LIBS" | |
7624 | LIBS="-lposix $LIBS" | |
7625 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7626 | #line 7627 "configure" |
a16d3c04 KB |
7627 | #include "confdefs.h" |
7628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7629 | /* We use char because int might match the return type of a gcc2 | |
7630 | builtin and then its argument prototype would still apply. */ | |
7631 | char remove(); | |
7632 | ||
7633 | int main() { | |
7634 | remove() | |
7635 | ; return 0; } | |
7636 | EOF | |
0709ee62 | 7637 | if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7638 | rm -rf conftest* |
7639 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7640 | else | |
7641 | echo "configure: failed program was:" >&5 | |
7642 | cat conftest.$ac_ext >&5 | |
7643 | rm -rf conftest* | |
7644 | eval "ac_cv_lib_$ac_lib_var=no" | |
7645 | fi | |
7646 | rm -f conftest* | |
7647 | LIBS="$ac_save_LIBS" | |
7648 | ||
7649 | fi | |
7650 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7651 | echo "$ac_t""yes" 1>&6 | |
7652 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
7653 | else | |
7654 | echo "$ac_t""no" 1>&6 | |
7655 | fi | |
7656 | ||
7657 | fi | |
7658 | ||
7659 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
7660 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
0709ee62 | 7661 | echo "configure:7662: checking for shmat" >&5 |
a16d3c04 KB |
7662 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
7663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7664 | else | |
7665 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7666 | #line 7667 "configure" |
a16d3c04 KB |
7667 | #include "confdefs.h" |
7668 | /* System header to define __stub macros and hopefully few prototypes, | |
7669 | which can conflict with char shmat(); below. */ | |
7670 | #include <assert.h> | |
7671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7672 | /* We use char because int might match the return type of a gcc2 | |
7673 | builtin and then its argument prototype would still apply. */ | |
7674 | char shmat(); | |
7675 | ||
7676 | int main() { | |
7677 | ||
7678 | /* The GNU C library defines this for functions which it implements | |
7679 | to always fail with ENOSYS. Some functions are actually named | |
7680 | something starting with __ and the normal name is an alias. */ | |
7681 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
7682 | choke me | |
7683 | #else | |
2726c66d | 7684 | shmat(); |
a16d3c04 KB |
7685 | #endif |
7686 | ||
7687 | ; return 0; } | |
7688 | EOF | |
0709ee62 | 7689 | if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7690 | rm -rf conftest* |
7691 | eval "ac_cv_func_shmat=yes" | |
7692 | else | |
7693 | echo "configure: failed program was:" >&5 | |
7694 | cat conftest.$ac_ext >&5 | |
7695 | rm -rf conftest* | |
7696 | eval "ac_cv_func_shmat=no" | |
7697 | fi | |
7698 | rm -f conftest* | |
7699 | fi | |
7700 | ||
7701 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
7702 | echo "$ac_t""yes" 1>&6 | |
7703 | : | |
7704 | else | |
7705 | echo "$ac_t""no" 1>&6 | |
7706 | fi | |
7707 | ||
7708 | if test $ac_cv_func_shmat = no; then | |
7709 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
0709ee62 | 7710 | echo "configure:7711: checking for shmat in -lipc" >&5 |
a16d3c04 KB |
7711 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
7712 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7714 | else | |
7715 | ac_save_LIBS="$LIBS" | |
7716 | LIBS="-lipc $LIBS" | |
7717 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 7718 | #line 7719 "configure" |
a16d3c04 KB |
7719 | #include "confdefs.h" |
7720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7721 | /* We use char because int might match the return type of a gcc2 | |
7722 | builtin and then its argument prototype would still apply. */ | |
7723 | char shmat(); | |
7724 | ||
7725 | int main() { | |
7726 | shmat() | |
7727 | ; return 0; } | |
7728 | EOF | |
0709ee62 | 7729 | if { (eval echo configure:7730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7730 | rm -rf conftest* |
7731 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7732 | else | |
7733 | echo "configure: failed program was:" >&5 | |
7734 | cat conftest.$ac_ext >&5 | |
7735 | rm -rf conftest* | |
7736 | eval "ac_cv_lib_$ac_lib_var=no" | |
7737 | fi | |
7738 | rm -f conftest* | |
7739 | LIBS="$ac_save_LIBS" | |
7740 | ||
7741 | fi | |
7742 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7743 | echo "$ac_t""yes" 1>&6 | |
7744 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
7745 | else | |
7746 | echo "$ac_t""no" 1>&6 | |
7747 | fi | |
7748 | ||
7749 | fi | |
7750 | fi | |
7751 | ||
7752 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
7753 | ac_save_LDFLAGS="$LDFLAGS" | |
7754 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
7755 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
7756 | # check for ICE first), but we must link in the order -lSM -lICE or | |
7757 | # we get undefined symbols. So assume we have SM if we have ICE. | |
7758 | # These have to be linked with before -lX11, unlike the other | |
7759 | # libraries we check for below, so use a different variable. | |
7760 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
7761 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
0709ee62 | 7762 | echo "configure:7763: checking for IceConnectionNumber in -lICE" >&5 |
a16d3c04 KB |
7763 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
7764 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7766 | else | |
7767 | ac_save_LIBS="$LIBS" | |
0709ee62 | 7768 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a16d3c04 | 7769 | cat > conftest.$ac_ext <<EOF |
0709ee62 | 7770 | #line 7771 "configure" |
a16d3c04 KB |
7771 | #include "confdefs.h" |
7772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7773 | /* We use char because int might match the return type of a gcc2 | |
7774 | builtin and then its argument prototype would still apply. */ | |
7775 | char IceConnectionNumber(); | |
7776 | ||
7777 | int main() { | |
7778 | IceConnectionNumber() | |
7779 | ; return 0; } | |
7780 | EOF | |
0709ee62 | 7781 | if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
7782 | rm -rf conftest* |
7783 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7784 | else | |
7785 | echo "configure: failed program was:" >&5 | |
7786 | cat conftest.$ac_ext >&5 | |
7787 | rm -rf conftest* | |
7788 | eval "ac_cv_lib_$ac_lib_var=no" | |
7789 | fi | |
7790 | rm -f conftest* | |
7791 | LIBS="$ac_save_LIBS" | |
7792 | ||
7793 | fi | |
7794 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7795 | echo "$ac_t""yes" 1>&6 | |
7796 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
7797 | else | |
7798 | echo "$ac_t""no" 1>&6 | |
7799 | fi | |
7800 | ||
7801 | LDFLAGS="$ac_save_LDFLAGS" | |
7802 | ||
7803 | fi | |
7804 | ||
7805 | ||
7806 | if test "$no_x" = "yes"; then | |
7807 | { echo "configure: error: X11 libraries not found" 1>&2; exit 1; } | |
7808 | fi | |
7809 | ||
7810 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
7811 | GUI_TK_LIBRARY="$X_LIBS" | |
7812 | ||
7813 | echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6 | |
0709ee62 | 7814 | echo "configure:7815: checking for Motif/Lesstif includes" >&5 |
a16d3c04 KB |
7815 | |
7816 | ac_find_includes= | |
7817 | for ac_dir in $SEARCH_INCLUDE; | |
7818 | do | |
7819 | if test -f "$ac_dir/Xm/Xm.h"; then | |
7820 | ac_find_includes=$ac_dir | |
7821 | break | |
7822 | fi | |
7823 | done | |
7824 | ||
7825 | if test "$ac_find_includes" != "" ; then | |
7826 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7827 | else | |
7828 | echo "$ac_t""no" 1>&6 | |
7829 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
7830 | fi | |
7831 | ||
7832 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
0709ee62 | 7833 | echo "configure:7834: checking for Motif/Lesstif library" >&5 |
a16d3c04 KB |
7834 | |
7835 | ac_find_libraries= | |
7836 | for ac_dir in $SEARCH_LIB; | |
7837 | do | |
7838 | for ac_extension in a so sl; do | |
7839 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
7840 | ac_find_libraries=$ac_dir | |
7841 | break 2 | |
7842 | fi | |
7843 | done | |
7844 | done | |
7845 | ||
7846 | if test "$ac_find_libraries" != "" ; then | |
7847 | ||
7848 | ac_path_to_include=$ac_find_includes | |
7849 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
7850 | result=$? | |
7851 | if test $result = 0; then | |
7852 | ac_path_to_include="" | |
7853 | else | |
7854 | ac_path_to_include="-I$ac_find_includes" | |
7855 | fi | |
7856 | ||
7857 | ||
7858 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7859 | result=$? | |
7860 | if test $result = 0; then | |
7861 | ac_path_to_link="" | |
7862 | else | |
7863 | ac_path_to_link="-L$ac_find_libraries" | |
7864 | fi | |
7865 | ||
7866 | ||
7867 | CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link" | |
7868 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
7869 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7870 | else | |
7871 | echo "$ac_t""no" 1>&6 | |
7872 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
7873 | fi | |
7874 | ||
7875 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
0709ee62 | 7876 | echo "configure:7877: checking for Xt library" >&5 |
a16d3c04 KB |
7877 | |
7878 | ac_find_libraries= | |
7879 | for ac_dir in $SEARCH_LIB; | |
7880 | do | |
7881 | for ac_extension in a so sl; do | |
7882 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
7883 | ac_find_libraries=$ac_dir | |
7884 | break 2 | |
7885 | fi | |
7886 | done | |
7887 | done | |
7888 | ||
7889 | if test "$ac_find_libraries" != "" ; then | |
7890 | ||
7891 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7892 | result=$? | |
7893 | if test $result = 0; then | |
7894 | ac_path_to_link="" | |
7895 | else | |
7896 | ac_path_to_link="-L$ac_find_libraries" | |
7897 | fi | |
7898 | ||
7899 | CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link" | |
7900 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7901 | else | |
7902 | echo "$ac_t""no" 1>&6 | |
7903 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
7904 | fi | |
7905 | ||
7906 | XPM_LINK="" | |
7907 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
0709ee62 | 7908 | echo "configure:7909: checking for Xpm library" >&5 |
a16d3c04 KB |
7909 | |
7910 | ac_find_libraries= | |
7911 | for ac_dir in $SEARCH_LIB; | |
7912 | do | |
7913 | for ac_extension in a so sl; do | |
7914 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7915 | ac_find_libraries=$ac_dir | |
7916 | break 2 | |
7917 | fi | |
7918 | done | |
7919 | done | |
7920 | ||
7921 | if test "$ac_find_libraries" != "" ; then | |
7922 | ||
7923 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7924 | result=$? | |
7925 | if test $result = 0; then | |
7926 | ac_path_to_link="" | |
7927 | else | |
7928 | ac_path_to_link="-L$ac_find_libraries" | |
7929 | fi | |
7930 | ||
7931 | CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link" | |
7932 | XPM_LINK="-lXpm " | |
7933 | cat >> confdefs.h <<\EOF | |
7934 | #define wxHAVE_LIB_XPM 1 | |
7935 | EOF | |
7936 | ||
7937 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7938 | else | |
7939 | echo "$ac_t""no" 1>&6 | |
7940 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7941 | fi | |
7942 | ||
f7a11f8c | 7943 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -lm" |
a16d3c04 KB |
7944 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
7945 | TOOLKIT=MOTIF | |
1c8515f9 | 7946 | |
f7a11f8c RR |
7947 | GUIHEADERS="\$(MOTIF_HEADERS)" |
7948 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
7949 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
7950 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" | |
7951 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
7952 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
7953 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" | |
7954 | UNIXOBJS="\$(UNIX_OBJS)" | |
a16d3c04 KB |
7955 | GUIDIST=MOTIF_DIST |
7956 | fi | |
7957 | ||
7958 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
7959 | ||
7960 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
7961 | ||
7962 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
7963 | ||
f7a11f8c RR |
7964 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS)" |
7965 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" | |
7966 | ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)" | |
7967 | else | |
7968 | ||
7969 | ALL_OBJECTS="\$(BASE_OBJS)" | |
7970 | ALL_DEPFILES="\${BASE_DEPS}" | |
7971 | ALL_HEADERS="\${BASE_HEADERS}" | |
7972 | ||
7973 | WX_LIBRARY="wxbase" | |
7974 | fi | |
a16d3c04 | 7975 | |
f7a11f8c | 7976 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" |
a16d3c04 | 7977 | |
f7a11f8c | 7978 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" |
a16d3c04 | 7979 | |
f7a11f8c RR |
7980 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
7981 | ||
7982 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
7983 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
7984 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
a16d3c04 KB |
7985 | |
7986 | SHARED_LD= | |
7987 | PIC_FLAG= | |
2726c66d KB |
7988 | WX_ALL= |
7989 | WX_ALL_INSTALLED= | |
a16d3c04 KB |
7990 | |
7991 | if test "$wxUSE_SHARED" = "yes"; then | |
7992 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
7993 | ||
2726c66d KB |
7994 | case "${host}" in |
7995 | *-hp-hpux* ) | |
7996 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
7997 | SHARED_LD="${CXX} -b -o" | |
7998 | PIC_FLAG="+Z" | |
7999 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8000 | ;; | |
8001 | *-*-linux* ) | |
8002 | SHARED_LD="${CC} -shared -o" | |
8003 | PIC_FLAG="-fPIC" | |
8004 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8005 | WX_ALL="CREATE_LINKS" | |
8006 | ;; | |
8007 | *-*-irix5* | *-*-irix6* ) | |
8008 | if test "$GCC" = yes ; then | |
8009 | SHARED_LD="${CC} -shared -o" | |
8010 | PIC_FLAG="-fPIC" | |
8011 | else | |
8012 | SHARED_LD="${CXX} -shared -o" | |
8013 | fi | |
8014 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8015 | WX_ALL="CREATE_LINKS" | |
8016 | ;; | |
8017 | *-*-solaris2* ) | |
8018 | if test "$GCC" = yes ; then | |
8019 | SHARED_LD="${CC} -shared -o" | |
8020 | PIC_FLAG="-fPIC" | |
8021 | else | |
8022 | SHARED_LD="${CXX} -G -o" | |
8023 | PIC_FLAG="PIC" | |
8024 | fi | |
8025 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8026 | WX_ALL="CREATE_LINKS" | |
8027 | ;; | |
8028 | *-*-sunos4* ) | |
8029 | SHARED_LD="${CC} -shared -o" | |
8030 | PIC_FLAG="-fPIC" | |
8031 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8032 | WX_ALL="CREATE_LINKS" | |
8033 | ;; | |
8034 | *-*-freebsd* | *-*-netbsd*) | |
8035 | SHARED_LD="${CC} -shared -o" | |
8036 | PIC_FLAG="-fPIC" | |
8037 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8038 | WX_ALL="CREATE_LINKS" | |
8039 | ;; | |
8040 | *-*-osf* ) | |
8041 | SHARED_LD="${CXX} -shared -o" | |
8042 | PIC_FLAG="-fPIC" | |
8043 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8044 | WX_ALL="CREATE_LINKS" | |
8045 | ;; | |
8046 | *-*-dgux5* ) | |
8047 | SHARED_LD="${CXX} -shared -o" | |
8048 | PIC_FLAG="-fPIC" | |
8049 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8050 | WX_ALL="CREATE_LINKS" | |
8051 | ;; | |
8052 | *-*-sysv5* ) | |
8053 | SHARED_LD="${CC} -shared -o" | |
8054 | PIC_FLAG="-fPIC" | |
8055 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8056 | WX_ALL="CREATE_LINKS" | |
8057 | ;; | |
8058 | *-*-aix* ) | |
8059 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8060 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8061 | ;; | |
8062 | *-*-cygwin32* ) | |
8063 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8064 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8065 | ;; | |
8066 | *-*-mingw32* ) | |
8067 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8068 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8069 | ;; | |
8070 | *-pc-os2_emx ) | |
8071 | ;; | |
8072 | *) | |
8073 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8074 | esac | |
a16d3c04 KB |
8075 | |
8076 | else | |
8077 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
2726c66d | 8078 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" |
a16d3c04 KB |
8079 | fi |
8080 | ||
8081 | ||
8082 | for ac_hdr in strings.h | |
8083 | do | |
8084 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8085 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 8086 | echo "configure:8087: checking for $ac_hdr" >&5 |
a16d3c04 KB |
8087 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8089 | else | |
8090 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8091 | #line 8092 "configure" |
a16d3c04 KB |
8092 | #include "confdefs.h" |
8093 | #include <$ac_hdr> | |
8094 | EOF | |
8095 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
8096 | { (eval echo configure:8097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8097 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
8098 | if test -z "$ac_err"; then |
8099 | rm -rf conftest* | |
8100 | eval "ac_cv_header_$ac_safe=yes" | |
8101 | else | |
8102 | echo "$ac_err" >&5 | |
8103 | echo "configure: failed program was:" >&5 | |
8104 | cat conftest.$ac_ext >&5 | |
8105 | rm -rf conftest* | |
8106 | eval "ac_cv_header_$ac_safe=no" | |
8107 | fi | |
8108 | rm -f conftest* | |
8109 | fi | |
8110 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8111 | echo "$ac_t""yes" 1>&6 | |
8112 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8113 | cat >> confdefs.h <<EOF | |
8114 | #define $ac_tr_hdr 1 | |
8115 | EOF | |
8116 | ||
8117 | else | |
8118 | echo "$ac_t""no" 1>&6 | |
8119 | fi | |
8120 | done | |
8121 | ||
8122 | for ac_hdr in unistd.h | |
8123 | do | |
8124 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8125 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 8126 | echo "configure:8127: checking for $ac_hdr" >&5 |
a16d3c04 KB |
8127 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8129 | else | |
8130 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8131 | #line 8132 "configure" |
a16d3c04 KB |
8132 | #include "confdefs.h" |
8133 | #include <$ac_hdr> | |
8134 | EOF | |
8135 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
8136 | { (eval echo configure:8137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8137 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
8138 | if test -z "$ac_err"; then |
8139 | rm -rf conftest* | |
8140 | eval "ac_cv_header_$ac_safe=yes" | |
8141 | else | |
8142 | echo "$ac_err" >&5 | |
8143 | echo "configure: failed program was:" >&5 | |
8144 | cat conftest.$ac_ext >&5 | |
8145 | rm -rf conftest* | |
8146 | eval "ac_cv_header_$ac_safe=no" | |
8147 | fi | |
8148 | rm -f conftest* | |
8149 | fi | |
8150 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8151 | echo "$ac_t""yes" 1>&6 | |
8152 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8153 | cat >> confdefs.h <<EOF | |
8154 | #define $ac_tr_hdr 1 | |
8155 | EOF | |
8156 | ||
8157 | else | |
8158 | echo "$ac_t""no" 1>&6 | |
8159 | fi | |
8160 | done | |
8161 | ||
8162 | for ac_hdr in wchar.h | |
8163 | do | |
8164 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8165 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 8166 | echo "configure:8167: checking for $ac_hdr" >&5 |
a16d3c04 KB |
8167 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8169 | else | |
8170 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8171 | #line 8172 "configure" |
a16d3c04 KB |
8172 | #include "confdefs.h" |
8173 | #include <$ac_hdr> | |
8174 | EOF | |
8175 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
8176 | { (eval echo configure:8177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8177 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
8178 | if test -z "$ac_err"; then |
8179 | rm -rf conftest* | |
8180 | eval "ac_cv_header_$ac_safe=yes" | |
8181 | else | |
8182 | echo "$ac_err" >&5 | |
8183 | echo "configure: failed program was:" >&5 | |
8184 | cat conftest.$ac_ext >&5 | |
8185 | rm -rf conftest* | |
8186 | eval "ac_cv_header_$ac_safe=no" | |
8187 | fi | |
8188 | rm -f conftest* | |
8189 | fi | |
8190 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8191 | echo "$ac_t""yes" 1>&6 | |
8192 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8193 | cat >> confdefs.h <<EOF | |
8194 | #define $ac_tr_hdr 1 | |
8195 | EOF | |
8196 | ||
8197 | else | |
8198 | echo "$ac_t""no" 1>&6 | |
8199 | fi | |
8200 | done | |
8201 | ||
8202 | for ac_hdr in wcstr.h | |
8203 | do | |
8204 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8205 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 8206 | echo "configure:8207: checking for $ac_hdr" >&5 |
a16d3c04 KB |
8207 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8209 | else | |
8210 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8211 | #line 8212 "configure" |
a16d3c04 KB |
8212 | #include "confdefs.h" |
8213 | #include <$ac_hdr> | |
8214 | EOF | |
8215 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
8216 | { (eval echo configure:8217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8217 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
8218 | if test -z "$ac_err"; then |
8219 | rm -rf conftest* | |
8220 | eval "ac_cv_header_$ac_safe=yes" | |
8221 | else | |
8222 | echo "$ac_err" >&5 | |
8223 | echo "configure: failed program was:" >&5 | |
8224 | cat conftest.$ac_ext >&5 | |
8225 | rm -rf conftest* | |
8226 | eval "ac_cv_header_$ac_safe=no" | |
8227 | fi | |
8228 | rm -f conftest* | |
8229 | fi | |
8230 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8231 | echo "$ac_t""yes" 1>&6 | |
8232 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8233 | cat >> confdefs.h <<EOF | |
8234 | #define $ac_tr_hdr 1 | |
8235 | EOF | |
8236 | ||
8237 | else | |
8238 | echo "$ac_t""no" 1>&6 | |
8239 | fi | |
8240 | done | |
8241 | ||
8242 | for ac_hdr in fnmatch.h | |
8243 | do | |
8244 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8245 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 8246 | echo "configure:8247: checking for $ac_hdr" >&5 |
a16d3c04 KB |
8247 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8249 | else | |
8250 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8251 | #line 8252 "configure" |
a16d3c04 KB |
8252 | #include "confdefs.h" |
8253 | #include <$ac_hdr> | |
8254 | EOF | |
8255 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
8256 | { (eval echo configure:8257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8257 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
8258 | if test -z "$ac_err"; then |
8259 | rm -rf conftest* | |
8260 | eval "ac_cv_header_$ac_safe=yes" | |
8261 | else | |
8262 | echo "$ac_err" >&5 | |
8263 | echo "configure: failed program was:" >&5 | |
8264 | cat conftest.$ac_ext >&5 | |
8265 | rm -rf conftest* | |
8266 | eval "ac_cv_header_$ac_safe=no" | |
8267 | fi | |
8268 | rm -f conftest* | |
8269 | fi | |
8270 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8271 | echo "$ac_t""yes" 1>&6 | |
8272 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8273 | cat >> confdefs.h <<EOF | |
8274 | #define $ac_tr_hdr 1 | |
8275 | EOF | |
8276 | ||
8277 | else | |
8278 | echo "$ac_t""no" 1>&6 | |
8279 | fi | |
8280 | done | |
8281 | ||
f7a11f8c RR |
8282 | |
8283 | if test "$wxUSE_GUI" = "yes"; then | |
8284 | for ac_hdr in X11/XKBlib.h | |
a16d3c04 KB |
8285 | do |
8286 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8287 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 8288 | echo "configure:8289: checking for $ac_hdr" >&5 |
a16d3c04 KB |
8289 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8291 | else | |
8292 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8293 | #line 8294 "configure" |
a16d3c04 KB |
8294 | #include "confdefs.h" |
8295 | #include <$ac_hdr> | |
8296 | EOF | |
8297 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
8298 | { (eval echo configure:8299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8299 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
8300 | if test -z "$ac_err"; then |
8301 | rm -rf conftest* | |
8302 | eval "ac_cv_header_$ac_safe=yes" | |
8303 | else | |
8304 | echo "$ac_err" >&5 | |
8305 | echo "configure: failed program was:" >&5 | |
8306 | cat conftest.$ac_ext >&5 | |
8307 | rm -rf conftest* | |
8308 | eval "ac_cv_header_$ac_safe=no" | |
8309 | fi | |
8310 | rm -f conftest* | |
8311 | fi | |
8312 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8313 | echo "$ac_t""yes" 1>&6 | |
8314 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8315 | cat >> confdefs.h <<EOF | |
8316 | #define $ac_tr_hdr 1 | |
8317 | EOF | |
8318 | ||
8319 | else | |
8320 | echo "$ac_t""no" 1>&6 | |
8321 | fi | |
8322 | done | |
8323 | ||
f7a11f8c | 8324 | fi |
a16d3c04 KB |
8325 | |
8326 | ||
8327 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
0709ee62 | 8328 | echo "configure:8329: checking for ANSI C header files" >&5 |
a16d3c04 KB |
8329 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
8330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8331 | else | |
8332 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8333 | #line 8334 "configure" |
a16d3c04 KB |
8334 | #include "confdefs.h" |
8335 | #include <stdlib.h> | |
8336 | #include <stdarg.h> | |
8337 | #include <string.h> | |
8338 | #include <float.h> | |
8339 | EOF | |
8340 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
8341 | { (eval echo configure:8342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8342 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
8343 | if test -z "$ac_err"; then |
8344 | rm -rf conftest* | |
8345 | ac_cv_header_stdc=yes | |
8346 | else | |
8347 | echo "$ac_err" >&5 | |
8348 | echo "configure: failed program was:" >&5 | |
8349 | cat conftest.$ac_ext >&5 | |
8350 | rm -rf conftest* | |
8351 | ac_cv_header_stdc=no | |
8352 | fi | |
8353 | rm -f conftest* | |
8354 | ||
8355 | if test $ac_cv_header_stdc = yes; then | |
8356 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8357 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8358 | #line 8359 "configure" |
a16d3c04 KB |
8359 | #include "confdefs.h" |
8360 | #include <string.h> | |
8361 | EOF | |
8362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8363 | egrep "memchr" >/dev/null 2>&1; then | |
8364 | : | |
8365 | else | |
8366 | rm -rf conftest* | |
8367 | ac_cv_header_stdc=no | |
8368 | fi | |
8369 | rm -f conftest* | |
8370 | ||
8371 | fi | |
8372 | ||
8373 | if test $ac_cv_header_stdc = yes; then | |
8374 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8375 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8376 | #line 8377 "configure" |
a16d3c04 KB |
8377 | #include "confdefs.h" |
8378 | #include <stdlib.h> | |
8379 | EOF | |
8380 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8381 | egrep "free" >/dev/null 2>&1; then | |
8382 | : | |
8383 | else | |
8384 | rm -rf conftest* | |
8385 | ac_cv_header_stdc=no | |
8386 | fi | |
8387 | rm -f conftest* | |
8388 | ||
8389 | fi | |
8390 | ||
8391 | if test $ac_cv_header_stdc = yes; then | |
8392 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8393 | if test "$cross_compiling" = yes; then | |
8394 | : | |
8395 | else | |
8396 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8397 | #line 8398 "configure" |
a16d3c04 KB |
8398 | #include "confdefs.h" |
8399 | #include <ctype.h> | |
8400 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8401 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8402 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8403 | int main () { int i; for (i = 0; i < 256; i++) | |
8404 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8405 | exit (0); } | |
8406 | ||
8407 | EOF | |
0709ee62 | 8408 | if { (eval echo configure:8409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8409 | then |
8410 | : | |
8411 | else | |
8412 | echo "configure: failed program was:" >&5 | |
8413 | cat conftest.$ac_ext >&5 | |
8414 | rm -fr conftest* | |
8415 | ac_cv_header_stdc=no | |
8416 | fi | |
8417 | rm -fr conftest* | |
8418 | fi | |
8419 | ||
8420 | fi | |
8421 | fi | |
8422 | ||
8423 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
8424 | if test $ac_cv_header_stdc = yes; then | |
8425 | cat >> confdefs.h <<\EOF | |
8426 | #define STDC_HEADERS 1 | |
8427 | EOF | |
8428 | ||
8429 | fi | |
8430 | ||
8431 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
0709ee62 | 8432 | echo "configure:8433: checking for mode_t" >&5 |
a16d3c04 KB |
8433 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
8434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8435 | else | |
8436 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8437 | #line 8438 "configure" |
a16d3c04 KB |
8438 | #include "confdefs.h" |
8439 | #include <sys/types.h> | |
8440 | #if STDC_HEADERS | |
8441 | #include <stdlib.h> | |
8442 | #include <stddef.h> | |
8443 | #endif | |
8444 | EOF | |
8445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0709ee62 | 8446 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
a16d3c04 KB |
8447 | rm -rf conftest* |
8448 | ac_cv_type_mode_t=yes | |
8449 | else | |
8450 | rm -rf conftest* | |
8451 | ac_cv_type_mode_t=no | |
8452 | fi | |
8453 | rm -f conftest* | |
8454 | ||
8455 | fi | |
8456 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
8457 | if test $ac_cv_type_mode_t = no; then | |
8458 | cat >> confdefs.h <<\EOF | |
8459 | #define mode_t int | |
8460 | EOF | |
8461 | ||
8462 | fi | |
8463 | ||
8464 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
0709ee62 | 8465 | echo "configure:8466: checking for off_t" >&5 |
a16d3c04 KB |
8466 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
8467 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8468 | else | |
8469 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8470 | #line 8471 "configure" |
a16d3c04 KB |
8471 | #include "confdefs.h" |
8472 | #include <sys/types.h> | |
8473 | #if STDC_HEADERS | |
8474 | #include <stdlib.h> | |
8475 | #include <stddef.h> | |
8476 | #endif | |
8477 | EOF | |
8478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0709ee62 | 8479 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
a16d3c04 KB |
8480 | rm -rf conftest* |
8481 | ac_cv_type_off_t=yes | |
8482 | else | |
8483 | rm -rf conftest* | |
8484 | ac_cv_type_off_t=no | |
8485 | fi | |
8486 | rm -f conftest* | |
8487 | ||
8488 | fi | |
8489 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
8490 | if test $ac_cv_type_off_t = no; then | |
8491 | cat >> confdefs.h <<\EOF | |
8492 | #define off_t long | |
8493 | EOF | |
8494 | ||
8495 | fi | |
8496 | ||
8497 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
0709ee62 | 8498 | echo "configure:8499: checking for pid_t" >&5 |
a16d3c04 KB |
8499 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8501 | else | |
8502 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8503 | #line 8504 "configure" |
a16d3c04 KB |
8504 | #include "confdefs.h" |
8505 | #include <sys/types.h> | |
8506 | #if STDC_HEADERS | |
8507 | #include <stdlib.h> | |
8508 | #include <stddef.h> | |
8509 | #endif | |
8510 | EOF | |
8511 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0709ee62 | 8512 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
a16d3c04 KB |
8513 | rm -rf conftest* |
8514 | ac_cv_type_pid_t=yes | |
8515 | else | |
8516 | rm -rf conftest* | |
8517 | ac_cv_type_pid_t=no | |
8518 | fi | |
8519 | rm -f conftest* | |
8520 | ||
8521 | fi | |
8522 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8523 | if test $ac_cv_type_pid_t = no; then | |
8524 | cat >> confdefs.h <<\EOF | |
8525 | #define pid_t int | |
8526 | EOF | |
8527 | ||
8528 | fi | |
8529 | ||
8530 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
0709ee62 | 8531 | echo "configure:8532: checking for size_t" >&5 |
a16d3c04 KB |
8532 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8534 | else | |
8535 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8536 | #line 8537 "configure" |
a16d3c04 KB |
8537 | #include "confdefs.h" |
8538 | #include <sys/types.h> | |
8539 | #if STDC_HEADERS | |
8540 | #include <stdlib.h> | |
8541 | #include <stddef.h> | |
8542 | #endif | |
8543 | EOF | |
8544 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0709ee62 | 8545 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
a16d3c04 KB |
8546 | rm -rf conftest* |
8547 | ac_cv_type_size_t=yes | |
8548 | else | |
8549 | rm -rf conftest* | |
8550 | ac_cv_type_size_t=no | |
8551 | fi | |
8552 | rm -f conftest* | |
8553 | ||
8554 | fi | |
8555 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
8556 | if test $ac_cv_type_size_t = no; then | |
8557 | cat >> confdefs.h <<\EOF | |
8558 | #define size_t unsigned | |
8559 | EOF | |
8560 | ||
8561 | fi | |
8562 | ||
8563 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
0709ee62 | 8564 | echo "configure:8565: checking for uid_t in sys/types.h" >&5 |
a16d3c04 KB |
8565 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
8566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8567 | else | |
8568 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8569 | #line 8570 "configure" |
a16d3c04 KB |
8570 | #include "confdefs.h" |
8571 | #include <sys/types.h> | |
8572 | EOF | |
8573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8574 | egrep "uid_t" >/dev/null 2>&1; then | |
8575 | rm -rf conftest* | |
8576 | ac_cv_type_uid_t=yes | |
8577 | else | |
8578 | rm -rf conftest* | |
8579 | ac_cv_type_uid_t=no | |
8580 | fi | |
8581 | rm -f conftest* | |
8582 | ||
8583 | fi | |
8584 | ||
8585 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
8586 | if test $ac_cv_type_uid_t = no; then | |
8587 | cat >> confdefs.h <<\EOF | |
8588 | #define uid_t int | |
8589 | EOF | |
8590 | ||
8591 | cat >> confdefs.h <<\EOF | |
8592 | #define gid_t int | |
8593 | EOF | |
8594 | ||
8595 | fi | |
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
0709ee62 | 8601 | echo "configure:8602: checking for working const" >&5 |
a16d3c04 KB |
8602 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8604 | else | |
8605 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8606 | #line 8607 "configure" |
a16d3c04 KB |
8607 | #include "confdefs.h" |
8608 | ||
8609 | int main() { | |
8610 | ||
8611 | /* Ultrix mips cc rejects this. */ | |
8612 | typedef int charset[2]; const charset x; | |
8613 | /* SunOS 4.1.1 cc rejects this. */ | |
8614 | char const *const *ccp; | |
8615 | char **p; | |
8616 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8617 | struct point {int x, y;}; | |
8618 | static struct point const zero = {0,0}; | |
8619 | /* AIX XL C 1.02.0.0 rejects this. | |
8620 | It does not let you subtract one const X* pointer from another in an arm | |
8621 | of an if-expression whose if-part is not a constant expression */ | |
8622 | const char *g = "string"; | |
8623 | ccp = &g + (g ? g-g : 0); | |
8624 | /* HPUX 7.0 cc rejects these. */ | |
8625 | ++ccp; | |
8626 | p = (char**) ccp; | |
8627 | ccp = (char const *const *) p; | |
8628 | { /* SCO 3.2v4 cc rejects this. */ | |
8629 | char *t; | |
8630 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8631 | ||
8632 | *t++ = 0; | |
8633 | } | |
8634 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8635 | int x[] = {25, 17}; | |
8636 | const int *foo = &x[0]; | |
8637 | ++foo; | |
8638 | } | |
8639 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8640 | typedef const int *iptr; | |
8641 | iptr p = 0; | |
8642 | ++p; | |
8643 | } | |
8644 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8645 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8646 | struct s { int j; const int *ap[3]; }; | |
8647 | struct s *b; b->j = 5; | |
8648 | } | |
8649 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8650 | const int foo = 10; | |
8651 | } | |
8652 | ||
8653 | ; return 0; } | |
8654 | EOF | |
0709ee62 | 8655 | if { (eval echo configure:8656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
8656 | rm -rf conftest* |
8657 | ac_cv_c_const=yes | |
8658 | else | |
8659 | echo "configure: failed program was:" >&5 | |
8660 | cat conftest.$ac_ext >&5 | |
8661 | rm -rf conftest* | |
8662 | ac_cv_c_const=no | |
8663 | fi | |
8664 | rm -f conftest* | |
8665 | fi | |
8666 | ||
8667 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
8668 | if test $ac_cv_c_const = no; then | |
8669 | cat >> confdefs.h <<\EOF | |
8670 | #define const | |
8671 | EOF | |
8672 | ||
8673 | fi | |
8674 | ||
8675 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
0709ee62 | 8676 | echo "configure:8677: checking for inline" >&5 |
a16d3c04 KB |
8677 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
8678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8679 | else | |
8680 | ac_cv_c_inline=no | |
8681 | for ac_kw in inline __inline__ __inline; do | |
8682 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8683 | #line 8684 "configure" |
a16d3c04 KB |
8684 | #include "confdefs.h" |
8685 | ||
8686 | int main() { | |
8687 | } $ac_kw foo() { | |
8688 | ; return 0; } | |
8689 | EOF | |
0709ee62 | 8690 | if { (eval echo configure:8691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
8691 | rm -rf conftest* |
8692 | ac_cv_c_inline=$ac_kw; break | |
8693 | else | |
8694 | echo "configure: failed program was:" >&5 | |
8695 | cat conftest.$ac_ext >&5 | |
8696 | fi | |
8697 | rm -f conftest* | |
8698 | done | |
8699 | ||
8700 | fi | |
8701 | ||
8702 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
8703 | case "$ac_cv_c_inline" in | |
8704 | inline | yes) ;; | |
8705 | no) cat >> confdefs.h <<\EOF | |
8706 | #define inline | |
8707 | EOF | |
8708 | ;; | |
8709 | *) cat >> confdefs.h <<EOF | |
8710 | #define inline $ac_cv_c_inline | |
8711 | EOF | |
8712 | ;; | |
8713 | esac | |
8714 | ||
8715 | ||
8716 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
0709ee62 | 8717 | echo "configure:8718: checking size of char" >&5 |
a16d3c04 KB |
8718 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
8719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8720 | else | |
8721 | if test "$cross_compiling" = yes; then | |
8722 | ac_cv_sizeof_char=1 | |
8723 | else | |
8724 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8725 | #line 8726 "configure" |
a16d3c04 KB |
8726 | #include "confdefs.h" |
8727 | #include <stdio.h> | |
8728 | main() | |
8729 | { | |
8730 | FILE *f=fopen("conftestval", "w"); | |
8731 | if (!f) exit(1); | |
8732 | fprintf(f, "%d\n", sizeof(char)); | |
8733 | exit(0); | |
8734 | } | |
8735 | EOF | |
0709ee62 | 8736 | if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8737 | then |
8738 | ac_cv_sizeof_char=`cat conftestval` | |
8739 | else | |
8740 | echo "configure: failed program was:" >&5 | |
8741 | cat conftest.$ac_ext >&5 | |
8742 | rm -fr conftest* | |
8743 | ac_cv_sizeof_char=0 | |
8744 | fi | |
8745 | rm -fr conftest* | |
8746 | fi | |
8747 | ||
8748 | fi | |
8749 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
8750 | cat >> confdefs.h <<EOF | |
8751 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
8752 | EOF | |
8753 | ||
8754 | ||
8755 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
0709ee62 | 8756 | echo "configure:8757: checking size of short" >&5 |
a16d3c04 KB |
8757 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
8758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8759 | else | |
8760 | if test "$cross_compiling" = yes; then | |
8761 | ac_cv_sizeof_short=2 | |
8762 | else | |
8763 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8764 | #line 8765 "configure" |
a16d3c04 KB |
8765 | #include "confdefs.h" |
8766 | #include <stdio.h> | |
8767 | main() | |
8768 | { | |
8769 | FILE *f=fopen("conftestval", "w"); | |
8770 | if (!f) exit(1); | |
8771 | fprintf(f, "%d\n", sizeof(short)); | |
8772 | exit(0); | |
8773 | } | |
8774 | EOF | |
0709ee62 | 8775 | if { (eval echo configure:8776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8776 | then |
8777 | ac_cv_sizeof_short=`cat conftestval` | |
8778 | else | |
8779 | echo "configure: failed program was:" >&5 | |
8780 | cat conftest.$ac_ext >&5 | |
8781 | rm -fr conftest* | |
8782 | ac_cv_sizeof_short=0 | |
8783 | fi | |
8784 | rm -fr conftest* | |
8785 | fi | |
8786 | ||
8787 | fi | |
8788 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
8789 | cat >> confdefs.h <<EOF | |
8790 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
8791 | EOF | |
8792 | ||
8793 | ||
8794 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
0709ee62 | 8795 | echo "configure:8796: checking size of int *" >&5 |
a16d3c04 KB |
8796 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
8797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8798 | else | |
8799 | if test "$cross_compiling" = yes; then | |
8800 | ac_cv_sizeof_int_p=4 | |
8801 | else | |
8802 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8803 | #line 8804 "configure" |
a16d3c04 KB |
8804 | #include "confdefs.h" |
8805 | #include <stdio.h> | |
8806 | main() | |
8807 | { | |
8808 | FILE *f=fopen("conftestval", "w"); | |
8809 | if (!f) exit(1); | |
8810 | fprintf(f, "%d\n", sizeof(int *)); | |
8811 | exit(0); | |
8812 | } | |
8813 | EOF | |
0709ee62 | 8814 | if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8815 | then |
8816 | ac_cv_sizeof_int_p=`cat conftestval` | |
8817 | else | |
8818 | echo "configure: failed program was:" >&5 | |
8819 | cat conftest.$ac_ext >&5 | |
8820 | rm -fr conftest* | |
8821 | ac_cv_sizeof_int_p=0 | |
8822 | fi | |
8823 | rm -fr conftest* | |
8824 | fi | |
8825 | ||
8826 | fi | |
8827 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
8828 | cat >> confdefs.h <<EOF | |
8829 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
8830 | EOF | |
8831 | ||
8832 | ||
8833 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
0709ee62 | 8834 | echo "configure:8835: checking size of int" >&5 |
a16d3c04 KB |
8835 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
8836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8837 | else | |
8838 | if test "$cross_compiling" = yes; then | |
8839 | ac_cv_sizeof_int=4 | |
8840 | else | |
8841 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8842 | #line 8843 "configure" |
a16d3c04 KB |
8843 | #include "confdefs.h" |
8844 | #include <stdio.h> | |
8845 | main() | |
8846 | { | |
8847 | FILE *f=fopen("conftestval", "w"); | |
8848 | if (!f) exit(1); | |
8849 | fprintf(f, "%d\n", sizeof(int)); | |
8850 | exit(0); | |
8851 | } | |
8852 | EOF | |
0709ee62 | 8853 | if { (eval echo configure:8854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8854 | then |
8855 | ac_cv_sizeof_int=`cat conftestval` | |
8856 | else | |
8857 | echo "configure: failed program was:" >&5 | |
8858 | cat conftest.$ac_ext >&5 | |
8859 | rm -fr conftest* | |
8860 | ac_cv_sizeof_int=0 | |
8861 | fi | |
8862 | rm -fr conftest* | |
8863 | fi | |
8864 | ||
8865 | fi | |
8866 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
8867 | cat >> confdefs.h <<EOF | |
8868 | #define SIZEOF_INT $ac_cv_sizeof_int | |
8869 | EOF | |
8870 | ||
8871 | ||
8872 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
0709ee62 | 8873 | echo "configure:8874: checking size of long" >&5 |
a16d3c04 KB |
8874 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
8875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8876 | else | |
8877 | if test "$cross_compiling" = yes; then | |
8878 | ac_cv_sizeof_long=4 | |
8879 | else | |
8880 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8881 | #line 8882 "configure" |
a16d3c04 KB |
8882 | #include "confdefs.h" |
8883 | #include <stdio.h> | |
8884 | main() | |
8885 | { | |
8886 | FILE *f=fopen("conftestval", "w"); | |
8887 | if (!f) exit(1); | |
8888 | fprintf(f, "%d\n", sizeof(long)); | |
8889 | exit(0); | |
8890 | } | |
8891 | EOF | |
0709ee62 | 8892 | if { (eval echo configure:8893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8893 | then |
8894 | ac_cv_sizeof_long=`cat conftestval` | |
8895 | else | |
8896 | echo "configure: failed program was:" >&5 | |
8897 | cat conftest.$ac_ext >&5 | |
8898 | rm -fr conftest* | |
8899 | ac_cv_sizeof_long=0 | |
8900 | fi | |
8901 | rm -fr conftest* | |
8902 | fi | |
8903 | ||
8904 | fi | |
8905 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
8906 | cat >> confdefs.h <<EOF | |
8907 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
8908 | EOF | |
8909 | ||
8910 | ||
8911 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
0709ee62 | 8912 | echo "configure:8913: checking size of long long" >&5 |
a16d3c04 KB |
8913 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
8914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8915 | else | |
8916 | if test "$cross_compiling" = yes; then | |
8917 | ac_cv_sizeof_long_long=0 | |
8918 | else | |
8919 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8920 | #line 8921 "configure" |
a16d3c04 KB |
8921 | #include "confdefs.h" |
8922 | #include <stdio.h> | |
8923 | main() | |
8924 | { | |
8925 | FILE *f=fopen("conftestval", "w"); | |
8926 | if (!f) exit(1); | |
8927 | fprintf(f, "%d\n", sizeof(long long)); | |
8928 | exit(0); | |
8929 | } | |
8930 | EOF | |
0709ee62 | 8931 | if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8932 | then |
8933 | ac_cv_sizeof_long_long=`cat conftestval` | |
8934 | else | |
8935 | echo "configure: failed program was:" >&5 | |
8936 | cat conftest.$ac_ext >&5 | |
8937 | rm -fr conftest* | |
8938 | ac_cv_sizeof_long_long=0 | |
8939 | fi | |
8940 | rm -fr conftest* | |
8941 | fi | |
8942 | ||
8943 | fi | |
8944 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
8945 | cat >> confdefs.h <<EOF | |
8946 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
8947 | EOF | |
8948 | ||
8949 | ||
8950 | ||
8951 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
0709ee62 | 8952 | echo "configure:8953: checking whether byte ordering is bigendian" >&5 |
a16d3c04 KB |
8953 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
8954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8955 | else | |
8956 | ac_cv_c_bigendian=unknown | |
8957 | # See if sys/param.h defines the BYTE_ORDER macro. | |
8958 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8959 | #line 8960 "configure" |
a16d3c04 KB |
8960 | #include "confdefs.h" |
8961 | #include <sys/types.h> | |
8962 | #include <sys/param.h> | |
8963 | int main() { | |
8964 | ||
8965 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
8966 | bogus endian macros | |
8967 | #endif | |
8968 | ; return 0; } | |
8969 | EOF | |
0709ee62 | 8970 | if { (eval echo configure:8971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
8971 | rm -rf conftest* |
8972 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
8973 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 8974 | #line 8975 "configure" |
a16d3c04 KB |
8975 | #include "confdefs.h" |
8976 | #include <sys/types.h> | |
8977 | #include <sys/param.h> | |
8978 | int main() { | |
8979 | ||
8980 | #if BYTE_ORDER != BIG_ENDIAN | |
8981 | not big endian | |
8982 | #endif | |
8983 | ; return 0; } | |
8984 | EOF | |
0709ee62 | 8985 | if { (eval echo configure:8986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
8986 | rm -rf conftest* |
8987 | ac_cv_c_bigendian=yes | |
8988 | else | |
8989 | echo "configure: failed program was:" >&5 | |
8990 | cat conftest.$ac_ext >&5 | |
8991 | rm -rf conftest* | |
8992 | ac_cv_c_bigendian=no | |
8993 | fi | |
8994 | rm -f conftest* | |
8995 | else | |
8996 | echo "configure: failed program was:" >&5 | |
8997 | cat conftest.$ac_ext >&5 | |
8998 | fi | |
8999 | rm -f conftest* | |
9000 | if test $ac_cv_c_bigendian = unknown; then | |
9001 | if test "$cross_compiling" = yes; then | |
9002 | ac_cv_c_bigendian=unknown | |
9003 | else | |
9004 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9005 | #line 9006 "configure" |
a16d3c04 KB |
9006 | #include "confdefs.h" |
9007 | main () { | |
9008 | /* Are we little or big endian? From Harbison&Steele. */ | |
9009 | union | |
9010 | { | |
9011 | long l; | |
9012 | char c[sizeof (long)]; | |
9013 | } u; | |
9014 | u.l = 1; | |
9015 | exit (u.c[sizeof (long) - 1] == 1); | |
9016 | } | |
9017 | EOF | |
0709ee62 | 9018 | if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
9019 | then |
9020 | ac_cv_c_bigendian=no | |
9021 | else | |
9022 | echo "configure: failed program was:" >&5 | |
9023 | cat conftest.$ac_ext >&5 | |
9024 | rm -fr conftest* | |
9025 | ac_cv_c_bigendian=yes | |
9026 | fi | |
9027 | rm -fr conftest* | |
9028 | fi | |
9029 | ||
9030 | fi | |
9031 | fi | |
9032 | ||
9033 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9034 | if test $ac_cv_c_bigendian = unknown; then | |
9035 | 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 | |
9036 | fi | |
9037 | if test $ac_cv_c_bigendian = yes; then | |
9038 | cat >> confdefs.h <<\EOF | |
9039 | #define WORDS_BIGENDIAN 1 | |
9040 | EOF | |
9041 | ||
9042 | fi | |
9043 | ||
9044 | ||
9045 | ||
9046 | if test "$cross_compiling" = "yes"; then | |
9047 | cat >> confdefs.h <<\EOF | |
9048 | #define wxUSE_IOSTREAMH 1 | |
9049 | EOF | |
9050 | ||
9051 | else | |
9052 | ||
9053 | ac_ext=C | |
9054 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9055 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9056 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 9057 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
9058 | cross_compiling=$ac_cv_prog_cxx_cross |
9059 | ||
9060 | ||
9061 | for ac_hdr in iostream | |
9062 | do | |
9063 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9064 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 9065 | echo "configure:9066: checking for $ac_hdr" >&5 |
a16d3c04 KB |
9066 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9068 | else | |
9069 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9070 | #line 9071 "configure" |
a16d3c04 KB |
9071 | #include "confdefs.h" |
9072 | #include <$ac_hdr> | |
9073 | EOF | |
9074 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
9075 | { (eval echo configure:9076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9076 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
9077 | if test -z "$ac_err"; then |
9078 | rm -rf conftest* | |
9079 | eval "ac_cv_header_$ac_safe=yes" | |
9080 | else | |
9081 | echo "$ac_err" >&5 | |
9082 | echo "configure: failed program was:" >&5 | |
9083 | cat conftest.$ac_ext >&5 | |
9084 | rm -rf conftest* | |
9085 | eval "ac_cv_header_$ac_safe=no" | |
9086 | fi | |
9087 | rm -f conftest* | |
9088 | fi | |
9089 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9090 | echo "$ac_t""yes" 1>&6 | |
9091 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9092 | cat >> confdefs.h <<EOF | |
9093 | #define $ac_tr_hdr 1 | |
9094 | EOF | |
9095 | ||
9096 | else | |
9097 | echo "$ac_t""no" 1>&6 | |
9098 | fi | |
9099 | done | |
9100 | ||
9101 | ||
9102 | if test "x$HAVE_IOSTREAM" = x ; then | |
9103 | cat >> confdefs.h <<\EOF | |
9104 | #define wxUSE_IOSTREAMH 1 | |
9105 | EOF | |
9106 | ||
9107 | else | |
9108 | : | |
9109 | fi | |
9110 | ||
9111 | ac_ext=c | |
9112 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9113 | ac_cpp='$CPP $CPPFLAGS' | |
9114 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 9115 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
9116 | cross_compiling=$ac_cv_prog_cc_cross |
9117 | ||
9118 | fi | |
9119 | ||
9120 | ||
9121 | ||
9122 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
0709ee62 | 9123 | echo "configure:9124: checking if C++ compiler supports bool" >&5 |
a16d3c04 KB |
9124 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
9125 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9126 | else | |
9127 | ||
9128 | ||
9129 | ac_ext=C | |
9130 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9131 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9132 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 9133 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
9134 | cross_compiling=$ac_cv_prog_cxx_cross |
9135 | ||
9136 | ||
9137 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9138 | #line 9139 "configure" |
a16d3c04 KB |
9139 | #include "confdefs.h" |
9140 | ||
9141 | ||
9142 | int main() { | |
9143 | ||
9144 | bool b = true; | |
9145 | ||
9146 | return 0; | |
9147 | ||
9148 | ; return 0; } | |
9149 | EOF | |
0709ee62 | 9150 | if { (eval echo configure:9151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
9151 | rm -rf conftest* |
9152 | ||
9153 | cat >> confdefs.h <<\EOF | |
9154 | #define HAVE_BOOL 1 | |
9155 | EOF | |
9156 | ||
9157 | wx_cv_cpp_bool=yes | |
9158 | ||
9159 | else | |
9160 | echo "configure: failed program was:" >&5 | |
9161 | cat conftest.$ac_ext >&5 | |
9162 | rm -rf conftest* | |
9163 | ||
9164 | wx_cv_cpp_bool=no | |
9165 | ||
9166 | ||
9167 | fi | |
9168 | rm -f conftest* | |
9169 | ||
9170 | ac_ext=c | |
9171 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9172 | ac_cpp='$CPP $CPPFLAGS' | |
9173 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 9174 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
9175 | cross_compiling=$ac_cv_prog_cc_cross |
9176 | ||
9177 | ||
9178 | fi | |
9179 | ||
9180 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9181 | ||
9182 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9183 | cat >> confdefs.h <<\EOF | |
9184 | #define HAVE_BOOL 1 | |
9185 | EOF | |
9186 | ||
9187 | fi | |
9188 | ||
9189 | ||
9190 | ||
9191 | echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6 | |
0709ee62 | 9192 | echo "configure:9193: checking if size_t and int are different types" >&5 |
a16d3c04 KB |
9193 | if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then |
9194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9195 | else | |
9196 | ||
9197 | ||
9198 | ac_ext=C | |
9199 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9200 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9201 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 9202 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
9203 | cross_compiling=$ac_cv_prog_cxx_cross |
9204 | ||
9205 | ||
9206 | if test "$cross_compiling" = yes; then | |
9207 | wx_cv_cpp_sizet_not_int=no | |
9208 | ||
9209 | else | |
9210 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9211 | #line 9212 "configure" |
a16d3c04 KB |
9212 | #include "confdefs.h" |
9213 | #ifdef __cplusplus | |
9214 | extern "C" void exit(int); | |
9215 | #endif | |
9216 | ||
9217 | #include <stdlib.h> | |
9218 | ||
9219 | class S | |
9220 | { | |
9221 | public: | |
9222 | S(char *s) { m_s = s; } | |
9223 | ||
9224 | char operator[](size_t n) const { return m_s[n]; } | |
9225 | char operator[](int n) const { return m_s[n]; } | |
9226 | ||
9227 | private: | |
9228 | char *m_s; | |
9229 | }; | |
9230 | ||
9231 | int main() | |
9232 | { | |
9233 | S s("dummy"); | |
9234 | size_t n1 = 2; | |
9235 | int n2 = 3; | |
9236 | ||
9237 | return s[n1] == s[n2]; | |
9238 | } | |
9239 | ||
9240 | EOF | |
0709ee62 | 9241 | if { (eval echo configure:9242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
9242 | then |
9243 | cat >> confdefs.h <<\EOF | |
9244 | #define wxUSE_SIZE_T_STRING_OPERATOR 1 | |
9245 | EOF | |
9246 | wx_cv_cpp_sizet_not_int=yes | |
9247 | else | |
9248 | echo "configure: failed program was:" >&5 | |
9249 | cat conftest.$ac_ext >&5 | |
9250 | rm -fr conftest* | |
9251 | wx_cv_cpp_sizet_not_int=no | |
9252 | fi | |
9253 | rm -fr conftest* | |
9254 | fi | |
9255 | ||
9256 | ||
9257 | ac_ext=c | |
9258 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9259 | ac_cpp='$CPP $CPPFLAGS' | |
9260 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 9261 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
9262 | cross_compiling=$ac_cv_prog_cc_cross |
9263 | ||
9264 | ||
9265 | fi | |
9266 | ||
9267 | echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6 | |
9268 | ||
9269 | ||
9270 | ||
9271 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 | |
0709ee62 | 9272 | echo "configure:9273: checking if you need GNU extensions" >&5 |
a16d3c04 KB |
9273 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
9274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9275 | else | |
9276 | ||
9277 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9278 | #line 9279 "configure" |
a16d3c04 KB |
9279 | #include "confdefs.h" |
9280 | #include <features.h> | |
9281 | int main() { | |
9282 | ||
9283 | ||
9284 | #ifndef __GNU_LIBRARY__ | |
9285 | Compile error wanted | |
9286 | #endif | |
9287 | ||
9288 | ||
9289 | ; return 0; } | |
9290 | EOF | |
0709ee62 | 9291 | if { (eval echo configure:9292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
9292 | rm -rf conftest* |
9293 | wx_cv_gnu_extensions=yes | |
9294 | else | |
9295 | echo "configure: failed program was:" >&5 | |
9296 | cat conftest.$ac_ext >&5 | |
9297 | rm -rf conftest* | |
9298 | wx_cv_gnu_extensions=no | |
9299 | fi | |
9300 | rm -f conftest* | |
9301 | ||
9302 | fi | |
9303 | ||
9304 | ||
9305 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9306 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9307 | cat >> confdefs.h <<EOF | |
9308 | #define _GNU_SOURCE 1 | |
9309 | EOF | |
9310 | ||
9311 | fi | |
9312 | ||
9313 | ||
9314 | ||
9315 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
0709ee62 | 9316 | echo "configure:9317: checking for wcslen in -lc" >&5 |
a16d3c04 KB |
9317 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
9318 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9319 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9320 | else | |
9321 | ac_save_LIBS="$LIBS" | |
9322 | LIBS="-lc $LIBS" | |
9323 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9324 | #line 9325 "configure" |
a16d3c04 KB |
9325 | #include "confdefs.h" |
9326 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9327 | /* We use char because int might match the return type of a gcc2 | |
9328 | builtin and then its argument prototype would still apply. */ | |
9329 | char wcslen(); | |
9330 | ||
9331 | int main() { | |
9332 | wcslen() | |
9333 | ; return 0; } | |
9334 | EOF | |
0709ee62 | 9335 | if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9336 | rm -rf conftest* |
9337 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9338 | else | |
9339 | echo "configure: failed program was:" >&5 | |
9340 | cat conftest.$ac_ext >&5 | |
9341 | rm -rf conftest* | |
9342 | eval "ac_cv_lib_$ac_lib_var=no" | |
9343 | fi | |
9344 | rm -f conftest* | |
9345 | LIBS="$ac_save_LIBS" | |
9346 | ||
9347 | fi | |
9348 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9349 | echo "$ac_t""yes" 1>&6 | |
9350 | ||
9351 | cat >> confdefs.h <<\EOF | |
9352 | #define HAVE_WCSLEN 1 | |
9353 | EOF | |
9354 | ||
9355 | WCHAR_LINK="" | |
9356 | ||
9357 | else | |
9358 | echo "$ac_t""no" 1>&6 | |
9359 | ||
9360 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
0709ee62 | 9361 | echo "configure:9362: checking for wcslen in -lw" >&5 |
a16d3c04 KB |
9362 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
9363 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9365 | else | |
9366 | ac_save_LIBS="$LIBS" | |
9367 | LIBS="-lw $LIBS" | |
9368 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9369 | #line 9370 "configure" |
a16d3c04 KB |
9370 | #include "confdefs.h" |
9371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9372 | /* We use char because int might match the return type of a gcc2 | |
9373 | builtin and then its argument prototype would still apply. */ | |
9374 | char wcslen(); | |
9375 | ||
9376 | int main() { | |
9377 | wcslen() | |
9378 | ; return 0; } | |
9379 | EOF | |
0709ee62 | 9380 | if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9381 | rm -rf conftest* |
9382 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9383 | else | |
9384 | echo "configure: failed program was:" >&5 | |
9385 | cat conftest.$ac_ext >&5 | |
9386 | rm -rf conftest* | |
9387 | eval "ac_cv_lib_$ac_lib_var=no" | |
9388 | fi | |
9389 | rm -f conftest* | |
9390 | LIBS="$ac_save_LIBS" | |
9391 | ||
9392 | fi | |
9393 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9394 | echo "$ac_t""yes" 1>&6 | |
9395 | ||
9396 | cat >> confdefs.h <<\EOF | |
9397 | #define HAVE_WCSLEN 1 | |
9398 | EOF | |
9399 | ||
9400 | WCHAR_LINK="-lw" | |
9401 | ||
9402 | else | |
9403 | echo "$ac_t""no" 1>&6 | |
9404 | fi | |
9405 | ||
9406 | ||
9407 | fi | |
9408 | ||
9409 | ||
9410 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
0709ee62 | 9411 | echo "configure:9412: checking for vprintf" >&5 |
a16d3c04 KB |
9412 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
9413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9414 | else | |
9415 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9416 | #line 9417 "configure" |
a16d3c04 KB |
9417 | #include "confdefs.h" |
9418 | /* System header to define __stub macros and hopefully few prototypes, | |
9419 | which can conflict with char vprintf(); below. */ | |
9420 | #include <assert.h> | |
9421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9422 | /* We use char because int might match the return type of a gcc2 | |
9423 | builtin and then its argument prototype would still apply. */ | |
9424 | char vprintf(); | |
9425 | ||
9426 | int main() { | |
9427 | ||
9428 | /* The GNU C library defines this for functions which it implements | |
9429 | to always fail with ENOSYS. Some functions are actually named | |
9430 | something starting with __ and the normal name is an alias. */ | |
9431 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9432 | choke me | |
9433 | #else | |
2726c66d | 9434 | vprintf(); |
a16d3c04 KB |
9435 | #endif |
9436 | ||
9437 | ; return 0; } | |
9438 | EOF | |
0709ee62 | 9439 | if { (eval echo configure:9440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9440 | rm -rf conftest* |
9441 | eval "ac_cv_func_vprintf=yes" | |
9442 | else | |
9443 | echo "configure: failed program was:" >&5 | |
9444 | cat conftest.$ac_ext >&5 | |
9445 | rm -rf conftest* | |
9446 | eval "ac_cv_func_vprintf=no" | |
9447 | fi | |
9448 | rm -f conftest* | |
9449 | fi | |
9450 | ||
9451 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9452 | echo "$ac_t""yes" 1>&6 | |
9453 | cat >> confdefs.h <<\EOF | |
9454 | #define HAVE_VPRINTF 1 | |
9455 | EOF | |
9456 | ||
9457 | else | |
9458 | echo "$ac_t""no" 1>&6 | |
9459 | fi | |
9460 | ||
9461 | if test "$ac_cv_func_vprintf" != yes; then | |
9462 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
0709ee62 | 9463 | echo "configure:9464: checking for _doprnt" >&5 |
a16d3c04 KB |
9464 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
9465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9466 | else | |
9467 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9468 | #line 9469 "configure" |
a16d3c04 KB |
9469 | #include "confdefs.h" |
9470 | /* System header to define __stub macros and hopefully few prototypes, | |
9471 | which can conflict with char _doprnt(); below. */ | |
9472 | #include <assert.h> | |
9473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9474 | /* We use char because int might match the return type of a gcc2 | |
9475 | builtin and then its argument prototype would still apply. */ | |
9476 | char _doprnt(); | |
9477 | ||
9478 | int main() { | |
9479 | ||
9480 | /* The GNU C library defines this for functions which it implements | |
9481 | to always fail with ENOSYS. Some functions are actually named | |
9482 | something starting with __ and the normal name is an alias. */ | |
9483 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
9484 | choke me | |
9485 | #else | |
2726c66d | 9486 | _doprnt(); |
a16d3c04 KB |
9487 | #endif |
9488 | ||
9489 | ; return 0; } | |
9490 | EOF | |
0709ee62 | 9491 | if { (eval echo configure:9492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9492 | rm -rf conftest* |
9493 | eval "ac_cv_func__doprnt=yes" | |
9494 | else | |
9495 | echo "configure: failed program was:" >&5 | |
9496 | cat conftest.$ac_ext >&5 | |
9497 | rm -rf conftest* | |
9498 | eval "ac_cv_func__doprnt=no" | |
9499 | fi | |
9500 | rm -f conftest* | |
9501 | fi | |
9502 | ||
9503 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
9504 | echo "$ac_t""yes" 1>&6 | |
9505 | cat >> confdefs.h <<\EOF | |
9506 | #define HAVE_DOPRNT 1 | |
9507 | EOF | |
9508 | ||
9509 | else | |
9510 | echo "$ac_t""no" 1>&6 | |
9511 | fi | |
9512 | ||
9513 | fi | |
9514 | ||
9515 | ||
9516 | for ac_func in vsnprintf | |
9517 | do | |
9518 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 9519 | echo "configure:9520: checking for $ac_func" >&5 |
a16d3c04 KB |
9520 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9522 | else | |
9523 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9524 | #line 9525 "configure" |
a16d3c04 KB |
9525 | #include "confdefs.h" |
9526 | /* System header to define __stub macros and hopefully few prototypes, | |
9527 | which can conflict with char $ac_func(); below. */ | |
9528 | #include <assert.h> | |
9529 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9530 | /* We use char because int might match the return type of a gcc2 | |
9531 | builtin and then its argument prototype would still apply. */ | |
9532 | char $ac_func(); | |
9533 | ||
9534 | int main() { | |
9535 | ||
9536 | /* The GNU C library defines this for functions which it implements | |
9537 | to always fail with ENOSYS. Some functions are actually named | |
9538 | something starting with __ and the normal name is an alias. */ | |
9539 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9540 | choke me | |
9541 | #else | |
2726c66d | 9542 | $ac_func(); |
a16d3c04 KB |
9543 | #endif |
9544 | ||
9545 | ; return 0; } | |
9546 | EOF | |
0709ee62 | 9547 | if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9548 | rm -rf conftest* |
9549 | eval "ac_cv_func_$ac_func=yes" | |
9550 | else | |
9551 | echo "configure: failed program was:" >&5 | |
9552 | cat conftest.$ac_ext >&5 | |
9553 | rm -rf conftest* | |
9554 | eval "ac_cv_func_$ac_func=no" | |
9555 | fi | |
9556 | rm -f conftest* | |
9557 | fi | |
9558 | ||
9559 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9560 | echo "$ac_t""yes" 1>&6 | |
9561 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9562 | cat >> confdefs.h <<EOF | |
9563 | #define $ac_tr_func 1 | |
9564 | EOF | |
9565 | cat >> confdefs.h <<\EOF | |
9566 | #define HAVE_VSNPRINTF 1 | |
9567 | EOF | |
9568 | ||
9569 | else | |
9570 | echo "$ac_t""no" 1>&6 | |
9571 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
9572 | ||
9573 | fi | |
9574 | done | |
9575 | ||
9576 | ||
9577 | ||
9578 | ac_ext=C | |
9579 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9580 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9581 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 9582 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
9583 | cross_compiling=$ac_cv_prog_cxx_cross |
9584 | ||
9585 | ||
9586 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
0709ee62 | 9587 | echo "configure:9588: checking for vsscanf" >&5 |
a16d3c04 KB |
9588 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
9589 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9590 | else | |
9591 | ||
9592 | if test "$cross_compiling" = yes; then | |
9593 | wx_cv_func_vsscanf=no | |
9594 | ||
9595 | else | |
9596 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9597 | #line 9598 "configure" |
a16d3c04 KB |
9598 | #include "confdefs.h" |
9599 | #ifdef __cplusplus | |
9600 | extern "C" void exit(int); | |
9601 | #endif | |
9602 | ||
9603 | #include <stdio.h> | |
9604 | #include <stdarg.h> | |
9605 | ||
9606 | int try_vsscanf(const char *format, ...) | |
9607 | { | |
9608 | va_list ap; | |
9609 | va_start(ap, format); | |
9610 | ||
9611 | vsscanf("17", format, ap); | |
9612 | ||
9613 | va_end(ap); | |
9614 | } | |
9615 | ||
9616 | int main() | |
9617 | { | |
9618 | int i; | |
9619 | try_vsscanf("%d", &i); | |
9620 | return i == 17 ? 0 : 1; | |
9621 | } | |
9622 | ||
9623 | EOF | |
0709ee62 | 9624 | if { (eval echo configure:9625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
9625 | then |
9626 | ||
9627 | cat >> confdefs.h <<\EOF | |
9628 | #define HAVE_VSSCANF 1 | |
9629 | EOF | |
9630 | ||
9631 | wx_cv_func_vsscanf=yes | |
9632 | ||
9633 | else | |
9634 | echo "configure: failed program was:" >&5 | |
9635 | cat conftest.$ac_ext >&5 | |
9636 | rm -fr conftest* | |
9637 | wx_cv_func_vsscanf=no | |
9638 | fi | |
9639 | rm -fr conftest* | |
9640 | fi | |
9641 | ||
9642 | ||
9643 | fi | |
9644 | ||
9645 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
9646 | ||
9647 | ac_ext=c | |
9648 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9649 | ac_cpp='$CPP $CPPFLAGS' | |
9650 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 9651 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
9652 | cross_compiling=$ac_cv_prog_cc_cross |
9653 | ||
9654 | ||
9655 | for ac_func in vfork | |
9656 | do | |
9657 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 9658 | echo "configure:9659: checking for $ac_func" >&5 |
a16d3c04 KB |
9659 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9661 | else | |
9662 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9663 | #line 9664 "configure" |
a16d3c04 KB |
9664 | #include "confdefs.h" |
9665 | /* System header to define __stub macros and hopefully few prototypes, | |
9666 | which can conflict with char $ac_func(); below. */ | |
9667 | #include <assert.h> | |
9668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9669 | /* We use char because int might match the return type of a gcc2 | |
9670 | builtin and then its argument prototype would still apply. */ | |
9671 | char $ac_func(); | |
9672 | ||
9673 | int main() { | |
9674 | ||
9675 | /* The GNU C library defines this for functions which it implements | |
9676 | to always fail with ENOSYS. Some functions are actually named | |
9677 | something starting with __ and the normal name is an alias. */ | |
9678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9679 | choke me | |
9680 | #else | |
2726c66d | 9681 | $ac_func(); |
a16d3c04 KB |
9682 | #endif |
9683 | ||
9684 | ; return 0; } | |
9685 | EOF | |
0709ee62 | 9686 | if { (eval echo configure:9687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9687 | rm -rf conftest* |
9688 | eval "ac_cv_func_$ac_func=yes" | |
9689 | else | |
9690 | echo "configure: failed program was:" >&5 | |
9691 | cat conftest.$ac_ext >&5 | |
9692 | rm -rf conftest* | |
9693 | eval "ac_cv_func_$ac_func=no" | |
9694 | fi | |
9695 | rm -f conftest* | |
9696 | fi | |
9697 | ||
9698 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9699 | echo "$ac_t""yes" 1>&6 | |
9700 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9701 | cat >> confdefs.h <<EOF | |
9702 | #define $ac_tr_func 1 | |
9703 | EOF | |
9704 | ||
9705 | else | |
9706 | echo "$ac_t""no" 1>&6 | |
9707 | fi | |
9708 | done | |
9709 | ||
9710 | ||
9711 | POSIX4_LINK= | |
9712 | for ac_func in nanosleep | |
9713 | do | |
9714 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 9715 | echo "configure:9716: checking for $ac_func" >&5 |
a16d3c04 KB |
9716 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9718 | else | |
9719 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9720 | #line 9721 "configure" |
a16d3c04 KB |
9721 | #include "confdefs.h" |
9722 | /* System header to define __stub macros and hopefully few prototypes, | |
9723 | which can conflict with char $ac_func(); below. */ | |
9724 | #include <assert.h> | |
9725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9726 | /* We use char because int might match the return type of a gcc2 | |
9727 | builtin and then its argument prototype would still apply. */ | |
9728 | char $ac_func(); | |
9729 | ||
9730 | int main() { | |
9731 | ||
9732 | /* The GNU C library defines this for functions which it implements | |
9733 | to always fail with ENOSYS. Some functions are actually named | |
9734 | something starting with __ and the normal name is an alias. */ | |
9735 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9736 | choke me | |
9737 | #else | |
2726c66d | 9738 | $ac_func(); |
a16d3c04 KB |
9739 | #endif |
9740 | ||
9741 | ; return 0; } | |
9742 | EOF | |
0709ee62 | 9743 | if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9744 | rm -rf conftest* |
9745 | eval "ac_cv_func_$ac_func=yes" | |
9746 | else | |
9747 | echo "configure: failed program was:" >&5 | |
9748 | cat conftest.$ac_ext >&5 | |
9749 | rm -rf conftest* | |
9750 | eval "ac_cv_func_$ac_func=no" | |
9751 | fi | |
9752 | rm -f conftest* | |
9753 | fi | |
9754 | ||
9755 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9756 | echo "$ac_t""yes" 1>&6 | |
9757 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9758 | cat >> confdefs.h <<EOF | |
9759 | #define $ac_tr_func 1 | |
9760 | EOF | |
9761 | cat >> confdefs.h <<\EOF | |
9762 | #define HAVE_NANOSLEEP 1 | |
9763 | EOF | |
9764 | ||
9765 | else | |
9766 | echo "$ac_t""no" 1>&6 | |
9767 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
0709ee62 | 9768 | echo "configure:9769: checking for nanosleep in -lposix4" >&5 |
a16d3c04 KB |
9769 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
9770 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9772 | else | |
9773 | ac_save_LIBS="$LIBS" | |
9774 | LIBS="-lposix4 $LIBS" | |
9775 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9776 | #line 9777 "configure" |
a16d3c04 KB |
9777 | #include "confdefs.h" |
9778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9779 | /* We use char because int might match the return type of a gcc2 | |
9780 | builtin and then its argument prototype would still apply. */ | |
9781 | char nanosleep(); | |
9782 | ||
9783 | int main() { | |
9784 | nanosleep() | |
9785 | ; return 0; } | |
9786 | EOF | |
0709ee62 | 9787 | if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9788 | rm -rf conftest* |
9789 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9790 | else | |
9791 | echo "configure: failed program was:" >&5 | |
9792 | cat conftest.$ac_ext >&5 | |
9793 | rm -rf conftest* | |
9794 | eval "ac_cv_lib_$ac_lib_var=no" | |
9795 | fi | |
9796 | rm -f conftest* | |
9797 | LIBS="$ac_save_LIBS" | |
9798 | ||
9799 | fi | |
9800 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9801 | echo "$ac_t""yes" 1>&6 | |
9802 | ||
9803 | cat >> confdefs.h <<\EOF | |
9804 | #define HAVE_NANOSLEEP 1 | |
9805 | EOF | |
9806 | ||
9807 | POSIX4_LINK="-lposix4" | |
9808 | ||
9809 | else | |
9810 | echo "$ac_t""no" 1>&6 | |
9811 | ||
9812 | for ac_func in usleep | |
9813 | do | |
9814 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 9815 | echo "configure:9816: checking for $ac_func" >&5 |
a16d3c04 KB |
9816 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9818 | else | |
9819 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9820 | #line 9821 "configure" |
a16d3c04 KB |
9821 | #include "confdefs.h" |
9822 | /* System header to define __stub macros and hopefully few prototypes, | |
9823 | which can conflict with char $ac_func(); below. */ | |
9824 | #include <assert.h> | |
9825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9826 | /* We use char because int might match the return type of a gcc2 | |
9827 | builtin and then its argument prototype would still apply. */ | |
9828 | char $ac_func(); | |
9829 | ||
9830 | int main() { | |
9831 | ||
9832 | /* The GNU C library defines this for functions which it implements | |
9833 | to always fail with ENOSYS. Some functions are actually named | |
9834 | something starting with __ and the normal name is an alias. */ | |
9835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9836 | choke me | |
9837 | #else | |
2726c66d | 9838 | $ac_func(); |
a16d3c04 KB |
9839 | #endif |
9840 | ||
9841 | ; return 0; } | |
9842 | EOF | |
0709ee62 | 9843 | if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9844 | rm -rf conftest* |
9845 | eval "ac_cv_func_$ac_func=yes" | |
9846 | else | |
9847 | echo "configure: failed program was:" >&5 | |
9848 | cat conftest.$ac_ext >&5 | |
9849 | rm -rf conftest* | |
9850 | eval "ac_cv_func_$ac_func=no" | |
9851 | fi | |
9852 | rm -f conftest* | |
9853 | fi | |
9854 | ||
9855 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9856 | echo "$ac_t""yes" 1>&6 | |
9857 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9858 | cat >> confdefs.h <<EOF | |
9859 | #define $ac_tr_func 1 | |
9860 | EOF | |
9861 | cat >> confdefs.h <<\EOF | |
9862 | #define HAVE_USLEEP 1 | |
9863 | EOF | |
9864 | ||
9865 | else | |
9866 | echo "$ac_t""no" 1>&6 | |
9867 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
9868 | fi | |
9869 | done | |
9870 | ||
9871 | ||
9872 | fi | |
9873 | ||
9874 | ||
9875 | fi | |
9876 | done | |
9877 | ||
9878 | ||
9879 | for ac_func in uname gethostname | |
9880 | do | |
9881 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 9882 | echo "configure:9883: checking for $ac_func" >&5 |
a16d3c04 KB |
9883 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9885 | else | |
9886 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9887 | #line 9888 "configure" |
a16d3c04 KB |
9888 | #include "confdefs.h" |
9889 | /* System header to define __stub macros and hopefully few prototypes, | |
9890 | which can conflict with char $ac_func(); below. */ | |
9891 | #include <assert.h> | |
9892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9893 | /* We use char because int might match the return type of a gcc2 | |
9894 | builtin and then its argument prototype would still apply. */ | |
9895 | char $ac_func(); | |
9896 | ||
9897 | int main() { | |
9898 | ||
9899 | /* The GNU C library defines this for functions which it implements | |
9900 | to always fail with ENOSYS. Some functions are actually named | |
9901 | something starting with __ and the normal name is an alias. */ | |
9902 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9903 | choke me | |
9904 | #else | |
2726c66d | 9905 | $ac_func(); |
a16d3c04 KB |
9906 | #endif |
9907 | ||
9908 | ; return 0; } | |
9909 | EOF | |
0709ee62 | 9910 | if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9911 | rm -rf conftest* |
9912 | eval "ac_cv_func_$ac_func=yes" | |
9913 | else | |
9914 | echo "configure: failed program was:" >&5 | |
9915 | cat conftest.$ac_ext >&5 | |
9916 | rm -rf conftest* | |
9917 | eval "ac_cv_func_$ac_func=no" | |
9918 | fi | |
9919 | rm -f conftest* | |
9920 | fi | |
9921 | ||
9922 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9923 | echo "$ac_t""yes" 1>&6 | |
9924 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9925 | cat >> confdefs.h <<EOF | |
9926 | #define $ac_tr_func 1 | |
9927 | EOF | |
9928 | break | |
9929 | else | |
9930 | echo "$ac_t""no" 1>&6 | |
9931 | fi | |
9932 | done | |
9933 | ||
9934 | ||
f7a11f8c RR |
9935 | for ac_func in strtok_r |
9936 | do | |
9937 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 9938 | echo "configure:9939: checking for $ac_func" >&5 |
f7a11f8c RR |
9939 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9941 | else | |
9942 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9943 | #line 9944 "configure" |
f7a11f8c RR |
9944 | #include "confdefs.h" |
9945 | /* System header to define __stub macros and hopefully few prototypes, | |
9946 | which can conflict with char $ac_func(); below. */ | |
9947 | #include <assert.h> | |
9948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9949 | /* We use char because int might match the return type of a gcc2 | |
9950 | builtin and then its argument prototype would still apply. */ | |
9951 | char $ac_func(); | |
f7a11f8c RR |
9952 | |
9953 | int main() { | |
9954 | ||
9955 | /* The GNU C library defines this for functions which it implements | |
9956 | to always fail with ENOSYS. Some functions are actually named | |
9957 | something starting with __ and the normal name is an alias. */ | |
9958 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9959 | choke me | |
9960 | #else | |
2726c66d | 9961 | $ac_func(); |
f7a11f8c RR |
9962 | #endif |
9963 | ||
9964 | ; return 0; } | |
9965 | EOF | |
0709ee62 | 9966 | if { (eval echo configure:9967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f7a11f8c RR |
9967 | rm -rf conftest* |
9968 | eval "ac_cv_func_$ac_func=yes" | |
9969 | else | |
9970 | echo "configure: failed program was:" >&5 | |
9971 | cat conftest.$ac_ext >&5 | |
9972 | rm -rf conftest* | |
9973 | eval "ac_cv_func_$ac_func=no" | |
9974 | fi | |
9975 | rm -f conftest* | |
9976 | fi | |
9977 | ||
9978 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9979 | echo "$ac_t""yes" 1>&6 | |
9980 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9981 | cat >> confdefs.h <<EOF | |
9982 | #define $ac_tr_func 1 | |
9983 | EOF | |
9984 | ||
9985 | else | |
9986 | echo "$ac_t""no" 1>&6 | |
9987 | fi | |
9988 | done | |
9989 | ||
9990 | ||
a16d3c04 KB |
9991 | for ac_func in inet_addr |
9992 | do | |
9993 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 9994 | echo "configure:9995: checking for $ac_func" >&5 |
a16d3c04 KB |
9995 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9997 | else | |
9998 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 9999 | #line 10000 "configure" |
a16d3c04 KB |
10000 | #include "confdefs.h" |
10001 | /* System header to define __stub macros and hopefully few prototypes, | |
10002 | which can conflict with char $ac_func(); below. */ | |
10003 | #include <assert.h> | |
10004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10005 | /* We use char because int might match the return type of a gcc2 | |
10006 | builtin and then its argument prototype would still apply. */ | |
10007 | char $ac_func(); | |
10008 | ||
10009 | int main() { | |
10010 | ||
10011 | /* The GNU C library defines this for functions which it implements | |
10012 | to always fail with ENOSYS. Some functions are actually named | |
10013 | something starting with __ and the normal name is an alias. */ | |
10014 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10015 | choke me | |
10016 | #else | |
2726c66d | 10017 | $ac_func(); |
a16d3c04 KB |
10018 | #endif |
10019 | ||
10020 | ; return 0; } | |
10021 | EOF | |
0709ee62 | 10022 | if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10023 | rm -rf conftest* |
10024 | eval "ac_cv_func_$ac_func=yes" | |
10025 | else | |
10026 | echo "configure: failed program was:" >&5 | |
10027 | cat conftest.$ac_ext >&5 | |
10028 | rm -rf conftest* | |
10029 | eval "ac_cv_func_$ac_func=no" | |
10030 | fi | |
10031 | rm -f conftest* | |
10032 | fi | |
10033 | ||
10034 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10035 | echo "$ac_t""yes" 1>&6 | |
10036 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10037 | cat >> confdefs.h <<EOF | |
10038 | #define $ac_tr_func 1 | |
10039 | EOF | |
10040 | ||
10041 | else | |
10042 | echo "$ac_t""no" 1>&6 | |
10043 | fi | |
10044 | done | |
10045 | ||
10046 | for ac_func in inet_aton | |
10047 | do | |
10048 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 10049 | echo "configure:10050: checking for $ac_func" >&5 |
a16d3c04 KB |
10050 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10052 | else | |
10053 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10054 | #line 10055 "configure" |
a16d3c04 KB |
10055 | #include "confdefs.h" |
10056 | /* System header to define __stub macros and hopefully few prototypes, | |
10057 | which can conflict with char $ac_func(); below. */ | |
10058 | #include <assert.h> | |
10059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10060 | /* We use char because int might match the return type of a gcc2 | |
10061 | builtin and then its argument prototype would still apply. */ | |
10062 | char $ac_func(); | |
10063 | ||
10064 | int main() { | |
10065 | ||
10066 | /* The GNU C library defines this for functions which it implements | |
10067 | to always fail with ENOSYS. Some functions are actually named | |
10068 | something starting with __ and the normal name is an alias. */ | |
10069 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10070 | choke me | |
10071 | #else | |
2726c66d | 10072 | $ac_func(); |
a16d3c04 KB |
10073 | #endif |
10074 | ||
10075 | ; return 0; } | |
10076 | EOF | |
0709ee62 | 10077 | if { (eval echo configure:10078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10078 | rm -rf conftest* |
10079 | eval "ac_cv_func_$ac_func=yes" | |
10080 | else | |
10081 | echo "configure: failed program was:" >&5 | |
10082 | cat conftest.$ac_ext >&5 | |
10083 | rm -rf conftest* | |
10084 | eval "ac_cv_func_$ac_func=no" | |
10085 | fi | |
10086 | rm -f conftest* | |
10087 | fi | |
10088 | ||
10089 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10090 | echo "$ac_t""yes" 1>&6 | |
10091 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10092 | cat >> confdefs.h <<EOF | |
10093 | #define $ac_tr_func 1 | |
10094 | EOF | |
10095 | ||
10096 | else | |
10097 | echo "$ac_t""no" 1>&6 | |
10098 | fi | |
10099 | done | |
10100 | ||
10101 | echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 | |
0709ee62 | 10102 | echo "configure:10103: checking for inet_aton in -lresolv" >&5 |
a16d3c04 KB |
10103 | ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` |
10104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10106 | else | |
10107 | ac_save_LIBS="$LIBS" | |
10108 | LIBS="-lresolv $LIBS" | |
10109 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10110 | #line 10111 "configure" |
a16d3c04 KB |
10111 | #include "confdefs.h" |
10112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10113 | /* We use char because int might match the return type of a gcc2 | |
10114 | builtin and then its argument prototype would still apply. */ | |
10115 | char inet_aton(); | |
10116 | ||
10117 | int main() { | |
10118 | inet_aton() | |
10119 | ; return 0; } | |
10120 | EOF | |
0709ee62 | 10121 | if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10122 | rm -rf conftest* |
10123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10124 | else | |
10125 | echo "configure: failed program was:" >&5 | |
10126 | cat conftest.$ac_ext >&5 | |
10127 | rm -rf conftest* | |
10128 | eval "ac_cv_lib_$ac_lib_var=no" | |
10129 | fi | |
10130 | rm -f conftest* | |
10131 | LIBS="$ac_save_LIBS" | |
10132 | ||
10133 | fi | |
10134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10135 | echo "$ac_t""yes" 1>&6 | |
10136 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
10137 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
10138 | cat >> confdefs.h <<EOF | |
10139 | #define $ac_tr_lib 1 | |
10140 | EOF | |
10141 | ||
10142 | LIBS="-lresolv $LIBS" | |
10143 | ||
10144 | else | |
10145 | echo "$ac_t""no" 1>&6 | |
10146 | fi | |
10147 | ||
10148 | ||
10149 | ||
10150 | cat > confcache <<\EOF | |
10151 | # This file is a shell script that caches the results of configure | |
10152 | # tests run on this system so they can be shared between configure | |
10153 | # scripts and configure runs. It is not useful on other systems. | |
10154 | # If it contains results you don't want to keep, you may remove or edit it. | |
10155 | # | |
10156 | # By default, configure uses ./config.cache as the cache file, | |
10157 | # creating it if it does not exist already. You can give configure | |
10158 | # the --cache-file=FILE option to use a different cache file; that is | |
10159 | # what configure does when it calls configure scripts in | |
10160 | # subdirectories, so they share the cache. | |
10161 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10162 | # config.status only pays attention to the cache file if you give it the | |
10163 | # --recheck option to rerun configure. | |
10164 | # | |
10165 | EOF | |
10166 | # The following way of writing the cache mishandles newlines in values, | |
10167 | # but we know of no workaround that is simple, portable, and efficient. | |
10168 | # So, don't put newlines in cache variables' values. | |
10169 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10170 | # and sets the high bit in the cache file unless we assign to the vars. | |
10171 | (set) 2>&1 | | |
0709ee62 | 10172 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
a16d3c04 KB |
10173 | *ac_space=\ *) |
10174 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10175 | # turns \\\\ into \\, and sed turns \\ into \). | |
10176 | sed -n \ | |
10177 | -e "s/'/'\\\\''/g" \ | |
10178 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10179 | ;; | |
10180 | *) | |
10181 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10182 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10183 | ;; | |
10184 | esac >> confcache | |
10185 | if cmp -s $cache_file confcache; then | |
10186 | : | |
10187 | else | |
10188 | if test -w $cache_file; then | |
10189 | echo "updating cache $cache_file" | |
10190 | cat confcache > $cache_file | |
10191 | else | |
10192 | echo "not updating unwritable cache $cache_file" | |
10193 | fi | |
10194 | fi | |
10195 | rm -f confcache | |
10196 | ||
10197 | ||
10198 | ||
10199 | if test "$USE_UNIX" = 1; then | |
10200 | ||
10201 | ||
10202 | THREADS_LINK="" | |
10203 | THREADS_OBJ="" | |
10204 | ||
10205 | if test "$wxUSE_THREADS" = "yes" ; then | |
10206 | if test "$wxUSE_WINE" = 1 ; then | |
10207 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
10208 | wxUSE_THREADS="no" | |
10209 | fi | |
10210 | fi | |
10211 | ||
10212 | if test "$wxUSE_THREADS" = "yes" ; then | |
1c8515f9 | 10213 | |
a16d3c04 | 10214 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
0709ee62 | 10215 | echo "configure:10216: checking for pthread_create in -lpthread" >&5 |
a16d3c04 KB |
10216 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
10217 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10219 | else | |
10220 | ac_save_LIBS="$LIBS" | |
10221 | LIBS="-lpthread $LIBS" | |
10222 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10223 | #line 10224 "configure" |
a16d3c04 KB |
10224 | #include "confdefs.h" |
10225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10226 | /* We use char because int might match the return type of a gcc2 | |
10227 | builtin and then its argument prototype would still apply. */ | |
10228 | char pthread_create(); | |
10229 | ||
10230 | int main() { | |
10231 | pthread_create() | |
10232 | ; return 0; } | |
10233 | EOF | |
0709ee62 | 10234 | if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10235 | rm -rf conftest* |
10236 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10237 | else | |
10238 | echo "configure: failed program was:" >&5 | |
10239 | cat conftest.$ac_ext >&5 | |
10240 | rm -rf conftest* | |
10241 | eval "ac_cv_lib_$ac_lib_var=no" | |
10242 | fi | |
10243 | rm -f conftest* | |
10244 | LIBS="$ac_save_LIBS" | |
10245 | ||
10246 | fi | |
10247 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10248 | echo "$ac_t""yes" 1>&6 | |
10249 | ||
10250 | THREADS_OBJ="threadpsx.lo" | |
10251 | THREADS_LINK="pthread" | |
10252 | ||
10253 | else | |
10254 | echo "$ac_t""no" 1>&6 | |
10255 | ||
10256 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
0709ee62 | 10257 | echo "configure:10258: checking for pthread_create in -lc_r" >&5 |
a16d3c04 KB |
10258 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
10259 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10261 | else | |
10262 | ac_save_LIBS="$LIBS" | |
10263 | LIBS="-lc_r $LIBS" | |
10264 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10265 | #line 10266 "configure" |
a16d3c04 KB |
10266 | #include "confdefs.h" |
10267 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10268 | /* We use char because int might match the return type of a gcc2 | |
10269 | builtin and then its argument prototype would still apply. */ | |
10270 | char pthread_create(); | |
10271 | ||
10272 | int main() { | |
10273 | pthread_create() | |
10274 | ; return 0; } | |
10275 | EOF | |
0709ee62 | 10276 | if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10277 | rm -rf conftest* |
10278 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10279 | else | |
10280 | echo "configure: failed program was:" >&5 | |
10281 | cat conftest.$ac_ext >&5 | |
10282 | rm -rf conftest* | |
10283 | eval "ac_cv_lib_$ac_lib_var=no" | |
10284 | fi | |
10285 | rm -f conftest* | |
10286 | LIBS="$ac_save_LIBS" | |
10287 | ||
10288 | fi | |
10289 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10290 | echo "$ac_t""yes" 1>&6 | |
10291 | ||
10292 | THREADS_OBJ="threadpsx.lo" | |
10293 | THREADS_LINK="c_r" | |
10294 | ||
10295 | else | |
10296 | echo "$ac_t""no" 1>&6 | |
10297 | ||
10298 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10299 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
0709ee62 | 10300 | echo "configure:10301: checking for sys/prctl.h" >&5 |
a16d3c04 KB |
10301 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10303 | else | |
10304 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10305 | #line 10306 "configure" |
a16d3c04 KB |
10306 | #include "confdefs.h" |
10307 | #include <sys/prctl.h> | |
10308 | EOF | |
10309 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
10310 | { (eval echo configure:10311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10311 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
10312 | if test -z "$ac_err"; then |
10313 | rm -rf conftest* | |
10314 | eval "ac_cv_header_$ac_safe=yes" | |
10315 | else | |
10316 | echo "$ac_err" >&5 | |
10317 | echo "configure: failed program was:" >&5 | |
10318 | cat conftest.$ac_ext >&5 | |
10319 | rm -rf conftest* | |
10320 | eval "ac_cv_header_$ac_safe=no" | |
10321 | fi | |
10322 | rm -f conftest* | |
10323 | fi | |
10324 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10325 | echo "$ac_t""yes" 1>&6 | |
10326 | ||
10327 | THREADS_OBJ="threadsgi.lo" | |
10328 | ||
10329 | else | |
10330 | echo "$ac_t""no" 1>&6 | |
10331 | fi | |
10332 | ||
10333 | ||
10334 | fi | |
10335 | ||
10336 | ||
10337 | fi | |
10338 | ||
10339 | ||
10340 | if test -z "$THREADS_OBJ" ; then | |
10341 | wxUSE_THREADS=no | |
10342 | echo "configure: warning: No thread support on this system" 1>&2 | |
10343 | fi | |
10344 | fi | |
10345 | ||
10346 | if test "$wxUSE_THREADS" = "yes" ; then | |
10347 | ||
10348 | for ac_hdr in sched.h | |
10349 | do | |
10350 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10351 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 10352 | echo "configure:10353: checking for $ac_hdr" >&5 |
a16d3c04 KB |
10353 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10355 | else | |
10356 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10357 | #line 10358 "configure" |
a16d3c04 KB |
10358 | #include "confdefs.h" |
10359 | #include <$ac_hdr> | |
10360 | EOF | |
10361 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
10362 | { (eval echo configure:10363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10363 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
10364 | if test -z "$ac_err"; then |
10365 | rm -rf conftest* | |
10366 | eval "ac_cv_header_$ac_safe=yes" | |
10367 | else | |
10368 | echo "$ac_err" >&5 | |
10369 | echo "configure: failed program was:" >&5 | |
10370 | cat conftest.$ac_ext >&5 | |
10371 | rm -rf conftest* | |
10372 | eval "ac_cv_header_$ac_safe=no" | |
10373 | fi | |
10374 | rm -f conftest* | |
10375 | fi | |
10376 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10377 | echo "$ac_t""yes" 1>&6 | |
10378 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10379 | cat >> confdefs.h <<EOF | |
10380 | #define $ac_tr_hdr 1 | |
10381 | EOF | |
10382 | ||
10383 | else | |
10384 | echo "$ac_t""no" 1>&6 | |
10385 | fi | |
10386 | done | |
10387 | ||
10388 | ||
10389 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
0709ee62 | 10390 | echo "configure:10391: checking for sched_yield in -l$THREADS_LINK" >&5 |
a16d3c04 KB |
10391 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
10392 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10394 | else | |
10395 | ac_save_LIBS="$LIBS" | |
10396 | LIBS="-l$THREADS_LINK $LIBS" | |
10397 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10398 | #line 10399 "configure" |
a16d3c04 KB |
10399 | #include "confdefs.h" |
10400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10401 | /* We use char because int might match the return type of a gcc2 | |
10402 | builtin and then its argument prototype would still apply. */ | |
10403 | char sched_yield(); | |
10404 | ||
10405 | int main() { | |
10406 | sched_yield() | |
10407 | ; return 0; } | |
10408 | EOF | |
0709ee62 | 10409 | if { (eval echo configure:10410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10410 | rm -rf conftest* |
10411 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10412 | else | |
10413 | echo "configure: failed program was:" >&5 | |
10414 | cat conftest.$ac_ext >&5 | |
10415 | rm -rf conftest* | |
10416 | eval "ac_cv_lib_$ac_lib_var=no" | |
10417 | fi | |
10418 | rm -f conftest* | |
10419 | LIBS="$ac_save_LIBS" | |
10420 | ||
10421 | fi | |
10422 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10423 | echo "$ac_t""yes" 1>&6 | |
10424 | cat >> confdefs.h <<\EOF | |
10425 | #define HAVE_SCHED_YIELD 1 | |
10426 | EOF | |
10427 | ||
10428 | else | |
10429 | echo "$ac_t""no" 1>&6 | |
10430 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
0709ee62 | 10431 | echo "configure:10432: checking for sched_yield in -l"posix4"" >&5 |
a16d3c04 KB |
10432 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
10433 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10435 | else | |
10436 | ac_save_LIBS="$LIBS" | |
10437 | LIBS="-l"posix4" $LIBS" | |
10438 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10439 | #line 10440 "configure" |
a16d3c04 KB |
10440 | #include "confdefs.h" |
10441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10442 | /* We use char because int might match the return type of a gcc2 | |
10443 | builtin and then its argument prototype would still apply. */ | |
10444 | char sched_yield(); | |
10445 | ||
10446 | int main() { | |
10447 | sched_yield() | |
10448 | ; return 0; } | |
10449 | EOF | |
0709ee62 | 10450 | if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10451 | rm -rf conftest* |
10452 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10453 | else | |
10454 | echo "configure: failed program was:" >&5 | |
10455 | cat conftest.$ac_ext >&5 | |
10456 | rm -rf conftest* | |
10457 | eval "ac_cv_lib_$ac_lib_var=no" | |
10458 | fi | |
10459 | rm -f conftest* | |
10460 | LIBS="$ac_save_LIBS" | |
10461 | ||
10462 | fi | |
10463 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10464 | echo "$ac_t""yes" 1>&6 | |
10465 | cat >> confdefs.h <<\EOF | |
10466 | #define HAVE_SCHED_YIELD 1 | |
10467 | EOF | |
10468 | POSIX4_LINK="-lposix4" | |
10469 | else | |
10470 | echo "$ac_t""no" 1>&6 | |
10471 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
10472 | ||
10473 | fi | |
10474 | ||
10475 | ||
10476 | fi | |
10477 | ||
10478 | ||
10479 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
0709ee62 | 10480 | echo "configure:10481: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
a16d3c04 KB |
10481 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10482 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10484 | else | |
10485 | ac_save_LIBS="$LIBS" | |
10486 | LIBS="-l$THREADS_LINK $LIBS" | |
10487 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10488 | #line 10489 "configure" |
a16d3c04 KB |
10489 | #include "confdefs.h" |
10490 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10491 | /* We use char because int might match the return type of a gcc2 | |
10492 | builtin and then its argument prototype would still apply. */ | |
10493 | char pthread_attr_getschedpolicy(); | |
10494 | ||
10495 | int main() { | |
10496 | pthread_attr_getschedpolicy() | |
10497 | ; return 0; } | |
10498 | EOF | |
0709ee62 | 10499 | if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10500 | rm -rf conftest* |
10501 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10502 | else | |
10503 | echo "configure: failed program was:" >&5 | |
10504 | cat conftest.$ac_ext >&5 | |
10505 | rm -rf conftest* | |
10506 | eval "ac_cv_lib_$ac_lib_var=no" | |
10507 | fi | |
10508 | rm -f conftest* | |
10509 | LIBS="$ac_save_LIBS" | |
10510 | ||
10511 | fi | |
10512 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10513 | echo "$ac_t""yes" 1>&6 | |
10514 | cat >> confdefs.h <<\EOF | |
10515 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10516 | EOF | |
10517 | ||
10518 | else | |
10519 | echo "$ac_t""no" 1>&6 | |
10520 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
0709ee62 | 10521 | echo "configure:10522: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
a16d3c04 KB |
10522 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10523 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10524 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10525 | else | |
10526 | ac_save_LIBS="$LIBS" | |
10527 | LIBS="-l"posix4" $LIBS" | |
10528 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10529 | #line 10530 "configure" |
a16d3c04 KB |
10530 | #include "confdefs.h" |
10531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10532 | /* We use char because int might match the return type of a gcc2 | |
10533 | builtin and then its argument prototype would still apply. */ | |
10534 | char pthread_attr_getschedpolicy(); | |
10535 | ||
10536 | int main() { | |
10537 | pthread_attr_getschedpolicy() | |
10538 | ; return 0; } | |
10539 | EOF | |
0709ee62 | 10540 | if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10541 | rm -rf conftest* |
10542 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10543 | else | |
10544 | echo "configure: failed program was:" >&5 | |
10545 | cat conftest.$ac_ext >&5 | |
10546 | rm -rf conftest* | |
10547 | eval "ac_cv_lib_$ac_lib_var=no" | |
10548 | fi | |
10549 | rm -f conftest* | |
10550 | LIBS="$ac_save_LIBS" | |
10551 | ||
10552 | fi | |
10553 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10554 | echo "$ac_t""yes" 1>&6 | |
10555 | cat >> confdefs.h <<\EOF | |
10556 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10557 | EOF | |
10558 | POSIX4_LINK="-lposix4" | |
10559 | else | |
10560 | echo "$ac_t""no" 1>&6 | |
10561 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
10562 | ||
10563 | fi | |
10564 | ||
10565 | ||
10566 | fi | |
10567 | ||
10568 | ||
10569 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
0709ee62 | 10570 | echo "configure:10571: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
a16d3c04 KB |
10571 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
10572 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10574 | else | |
10575 | ac_save_LIBS="$LIBS" | |
10576 | LIBS="-l$THREADS_LINK $LIBS" | |
10577 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10578 | #line 10579 "configure" |
a16d3c04 KB |
10579 | #include "confdefs.h" |
10580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10581 | /* We use char because int might match the return type of a gcc2 | |
10582 | builtin and then its argument prototype would still apply. */ | |
10583 | char pthread_cancel(); | |
10584 | ||
10585 | int main() { | |
10586 | pthread_cancel() | |
10587 | ; return 0; } | |
10588 | EOF | |
0709ee62 | 10589 | if { (eval echo configure:10590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10590 | rm -rf conftest* |
10591 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10592 | else | |
10593 | echo "configure: failed program was:" >&5 | |
10594 | cat conftest.$ac_ext >&5 | |
10595 | rm -rf conftest* | |
10596 | eval "ac_cv_lib_$ac_lib_var=no" | |
10597 | fi | |
10598 | rm -f conftest* | |
10599 | LIBS="$ac_save_LIBS" | |
10600 | ||
10601 | fi | |
10602 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10603 | echo "$ac_t""yes" 1>&6 | |
10604 | cat >> confdefs.h <<\EOF | |
10605 | #define HAVE_PTHREAD_CANCEL 1 | |
10606 | EOF | |
10607 | ||
10608 | else | |
10609 | echo "$ac_t""no" 1>&6 | |
10610 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10611 | fi | |
10612 | ||
10613 | ||
10614 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
0709ee62 | 10615 | echo "configure:10616: checking for pthread_cleanup_push/pop" >&5 |
a16d3c04 KB |
10616 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
10617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10618 | else | |
10619 | ||
10620 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10621 | #line 10622 "configure" |
a16d3c04 KB |
10622 | #include "confdefs.h" |
10623 | #include <pthread.h> | |
10624 | int main() { | |
10625 | ||
10626 | pthread_cleanup_push(NULL, NULL); | |
10627 | pthread_cleanup_pop(0); | |
10628 | ||
10629 | ; return 0; } | |
10630 | EOF | |
0709ee62 | 10631 | if { (eval echo configure:10632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
10632 | rm -rf conftest* |
10633 | ||
10634 | wx_cv_func_pthread_cleanup_push=yes | |
10635 | cat >> confdefs.h <<\EOF | |
10636 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
10637 | EOF | |
10638 | ||
10639 | ||
10640 | else | |
10641 | echo "configure: failed program was:" >&5 | |
10642 | cat conftest.$ac_ext >&5 | |
10643 | rm -rf conftest* | |
10644 | ||
10645 | wx_cv_func_pthread_cleanup_push=no | |
10646 | ||
10647 | fi | |
10648 | rm -f conftest* | |
10649 | ||
10650 | fi | |
10651 | ||
10652 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10653 | ||
10654 | THREADS_LINK="-l$THREADS_LINK" | |
10655 | fi | |
10656 | ||
10657 | fi | |
10658 | ||
10659 | if test "$wxUSE_THREADS" = "yes"; then | |
10660 | cat >> confdefs.h <<\EOF | |
10661 | #define wxUSE_THREADS 1 | |
10662 | EOF | |
10663 | ||
10664 | ||
10665 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
10666 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
10667 | ||
10668 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
10669 | fi | |
10670 | ||
10671 | if test "$WXGTK12" = 1 ; then | |
10672 | cat >> confdefs.h <<EOF | |
10673 | #define __WXGTK12__ $WXGTK12 | |
10674 | EOF | |
10675 | ||
10676 | fi | |
10677 | ||
10678 | if test "$WXWINE" = 1 ; then | |
10679 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
10680 | fi | |
10681 | ||
10682 | if test "$wxUSE_CYGWIN" = 1 ; then | |
10683 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
10684 | fi | |
10685 | ||
10686 | WXDEBUG= | |
10687 | ||
10688 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
10689 | WXDEBUG="-g" | |
10690 | wxUSE_OPTIMISE=no | |
10691 | fi | |
10692 | ||
10693 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
10694 | wxUSE_DEBUG_INFO=yes | |
10695 | WXDEBUG="-ggdb" | |
10696 | fi | |
10697 | ||
10698 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
10699 | cat >> confdefs.h <<\EOF | |
10700 | #define WXDEBUG 1 | |
10701 | EOF | |
10702 | ||
10703 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10704 | else | |
10705 | if test "$wxUSE_GTK" = 1 ; then | |
10706 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
10707 | fi | |
10708 | fi | |
10709 | ||
10710 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
10711 | cat >> confdefs.h <<\EOF | |
10712 | #define wxUSE_MEMORY_TRACING 1 | |
10713 | EOF | |
10714 | ||
10715 | cat >> confdefs.h <<\EOF | |
10716 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
10717 | EOF | |
10718 | ||
10719 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
10720 | fi | |
10721 | ||
10722 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
10723 | DMALLOC_LINK="-ldmalloc" | |
10724 | fi | |
10725 | ||
10726 | PROFILE= | |
10727 | if test "$wxUSE_PROFILE" = "yes" ; then | |
10728 | PROFILE="-pg" | |
10729 | fi | |
10730 | ||
10731 | DEP_INFO_FLAGS= | |
10732 | if test "$GCC" = yes ; then | |
10733 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
f7a11f8c | 10734 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" |
a16d3c04 KB |
10735 | fi |
10736 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
f7a11f8c | 10737 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" |
a16d3c04 KB |
10738 | fi |
10739 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
10740 | CFLAGS="${CFLAGS} -fpermissive" | |
10741 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
10742 | fi | |
10743 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
10744 | DEP_INFO_FLAGS="-MMD" | |
10745 | fi | |
1c8515f9 KB |
10746 | fi |
10747 | ||
10748 | ||
a16d3c04 KB |
10749 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
10750 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
10751 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
10752 | OPTIMISE= | |
10753 | else | |
10754 | if test "$GCC" = yes ; then | |
10755 | OPTIMISE="-O2" | |
10756 | case "${host}" in | |
10757 | i586-*-*|i686-*-* ) | |
10758 | OPTIMISE="${OPTIMISE} " | |
10759 | ;; | |
10760 | esac | |
10761 | else | |
10762 | OPTIMISE="-O" | |
10763 | fi | |
10764 | fi | |
10765 | ||
10766 | ||
10767 | ZLIB_INCLUDE= | |
10768 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10769 | cat >> confdefs.h <<\EOF | |
10770 | #define wxUSE_ZLIB 1 | |
10771 | EOF | |
10772 | ||
10773 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
10774 | fi | |
10775 | ||
10776 | PNG_INCLUDE= | |
10777 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10778 | cat >> confdefs.h <<\EOF | |
10779 | #define wxUSE_LIBPNG 1 | |
10780 | EOF | |
10781 | ||
10782 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
10783 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
10784 | fi | |
10785 | ||
a16d3c04 KB |
10786 | JPEG_INCLUDE= |
10787 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
10788 | cat >> confdefs.h <<\EOF | |
10789 | #define wxUSE_LIBJPEG 1 | |
10790 | EOF | |
10791 | ||
10792 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10793 | fi | |
10794 | ||
10795 | if test "$wxUSE_OPENGL" = "yes"; then | |
10796 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
10797 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
0709ee62 | 10798 | echo "configure:10799: checking for GL/gl.h" >&5 |
a16d3c04 KB |
10799 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10800 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10801 | else | |
10802 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10803 | #line 10804 "configure" |
a16d3c04 KB |
10804 | #include "confdefs.h" |
10805 | #include <GL/gl.h> | |
10806 | EOF | |
10807 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
10808 | { (eval echo configure:10809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10809 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
10810 | if test -z "$ac_err"; then |
10811 | rm -rf conftest* | |
10812 | eval "ac_cv_header_$ac_safe=yes" | |
10813 | else | |
10814 | echo "$ac_err" >&5 | |
10815 | echo "configure: failed program was:" >&5 | |
10816 | cat conftest.$ac_ext >&5 | |
10817 | rm -rf conftest* | |
10818 | eval "ac_cv_header_$ac_safe=no" | |
10819 | fi | |
10820 | rm -f conftest* | |
10821 | fi | |
10822 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10823 | echo "$ac_t""yes" 1>&6 | |
10824 | ||
10825 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
0709ee62 | 10826 | echo "configure:10827: checking for glInitNames in -lGL" >&5 |
a16d3c04 KB |
10827 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` |
10828 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10830 | else | |
10831 | ac_save_LIBS="$LIBS" | |
10832 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
10833 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10834 | #line 10835 "configure" |
a16d3c04 KB |
10835 | #include "confdefs.h" |
10836 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10837 | /* We use char because int might match the return type of a gcc2 | |
10838 | builtin and then its argument prototype would still apply. */ | |
10839 | char glInitNames(); | |
10840 | ||
10841 | int main() { | |
10842 | glInitNames() | |
10843 | ; return 0; } | |
10844 | EOF | |
0709ee62 | 10845 | if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10846 | rm -rf conftest* |
10847 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10848 | else | |
10849 | echo "configure: failed program was:" >&5 | |
10850 | cat conftest.$ac_ext >&5 | |
10851 | rm -rf conftest* | |
10852 | eval "ac_cv_lib_$ac_lib_var=no" | |
10853 | fi | |
10854 | rm -f conftest* | |
10855 | LIBS="$ac_save_LIBS" | |
10856 | ||
10857 | fi | |
10858 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10859 | echo "$ac_t""yes" 1>&6 | |
10860 | ||
10861 | OPENGL_LINK="-lGL" | |
10862 | cat >> confdefs.h <<\EOF | |
10863 | #define wxUSE_OPENGL 1 | |
10864 | EOF | |
10865 | ||
10866 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10867 | ||
10868 | else | |
10869 | echo "$ac_t""no" 1>&6 | |
10870 | ||
10871 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
0709ee62 | 10872 | echo "configure:10873: checking for glInitNames in -lMesaGL" >&5 |
a16d3c04 KB |
10873 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` |
10874 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10876 | else | |
10877 | ac_save_LIBS="$LIBS" | |
10878 | LIBS="-lMesaGL $LIBS" | |
10879 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 10880 | #line 10881 "configure" |
a16d3c04 KB |
10881 | #include "confdefs.h" |
10882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10883 | /* We use char because int might match the return type of a gcc2 | |
10884 | builtin and then its argument prototype would still apply. */ | |
10885 | char glInitNames(); | |
10886 | ||
10887 | int main() { | |
10888 | glInitNames() | |
10889 | ; return 0; } | |
10890 | EOF | |
0709ee62 | 10891 | if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10892 | rm -rf conftest* |
10893 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10894 | else | |
10895 | echo "configure: failed program was:" >&5 | |
10896 | cat conftest.$ac_ext >&5 | |
10897 | rm -rf conftest* | |
10898 | eval "ac_cv_lib_$ac_lib_var=no" | |
10899 | fi | |
10900 | rm -f conftest* | |
10901 | LIBS="$ac_save_LIBS" | |
10902 | ||
10903 | fi | |
10904 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10905 | echo "$ac_t""yes" 1>&6 | |
10906 | ||
10907 | OPENGL_LINK="-lMesaGL" | |
10908 | cat >> confdefs.h <<\EOF | |
10909 | #define wxUSE_OPENGL 1 | |
10910 | EOF | |
10911 | ||
10912 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10913 | ||
10914 | else | |
10915 | echo "$ac_t""no" 1>&6 | |
10916 | wxUSE_OPENGL=0 | |
10917 | fi | |
10918 | ||
10919 | ||
10920 | fi | |
10921 | ||
10922 | ||
10923 | else | |
10924 | echo "$ac_t""no" 1>&6 | |
10925 | wxUSE_OPENGL=0 | |
10926 | fi | |
10927 | ||
10928 | fi | |
10929 | ||
10930 | ||
10931 | if test "$wxUSE_GUI" = "yes"; then | |
10932 | cat >> confdefs.h <<\EOF | |
10933 | #define wxUSE_GUI 1 | |
10934 | EOF | |
10935 | ||
10936 | ||
10937 | else | |
10938 | cat >> confdefs.h <<\EOF | |
10939 | #define wxUSE_NOGUI 1 | |
10940 | EOF | |
10941 | ||
10942 | fi | |
10943 | ||
10944 | ||
10945 | if test "$wxUSE_UNIX" = "yes"; then | |
10946 | cat >> confdefs.h <<\EOF | |
10947 | #define wxUSE_UNIX 1 | |
10948 | EOF | |
10949 | ||
10950 | fi | |
10951 | ||
10952 | ||
10953 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
10954 | cat >> confdefs.h <<\EOF | |
10955 | #define wxUSE_APPLE_IEEE 1 | |
10956 | EOF | |
10957 | ||
10958 | fi | |
10959 | ||
10960 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
10961 | cat >> confdefs.h <<\EOF | |
10962 | #define wxUSE_TIMEDATE 1 | |
10963 | EOF | |
10964 | ||
10965 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
10966 | fi | |
10967 | ||
10968 | if test "$wxUSE_WAVE" = "yes"; then | |
10969 | cat >> confdefs.h <<\EOF | |
10970 | #define wxUSE_WAVE 1 | |
10971 | EOF | |
10972 | ||
10973 | fi | |
10974 | ||
10975 | if test "$wxUSE_FILE" = "yes"; then | |
10976 | cat >> confdefs.h <<\EOF | |
10977 | #define wxUSE_FILE 1 | |
10978 | EOF | |
10979 | ||
10980 | fi | |
10981 | ||
10982 | if test "$wxUSE_FS_INET" = "yes"; then | |
10983 | cat >> confdefs.h <<\EOF | |
10984 | #define wxUSE_FS_INET 1 | |
10985 | EOF | |
10986 | ||
10987 | fi | |
10988 | ||
10989 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
10990 | cat >> confdefs.h <<\EOF | |
10991 | #define wxUSE_FS_ZIP 1 | |
10992 | EOF | |
10993 | ||
10994 | fi | |
10995 | ||
10996 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
10997 | cat >> confdefs.h <<\EOF | |
10998 | #define wxUSE_ZIPSTREAM 1 | |
10999 | EOF | |
11000 | ||
11001 | fi | |
11002 | ||
11003 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
11004 | cat >> confdefs.h <<\EOF | |
11005 | #define wxUSE_BUSYINFO 1 | |
11006 | EOF | |
11007 | ||
11008 | fi | |
11009 | ||
11010 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
11011 | cat >> confdefs.h <<\EOF | |
11012 | #define wxUSE_STD_IOSTREAM 1 | |
11013 | EOF | |
11014 | ||
11015 | fi | |
11016 | ||
11017 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
11018 | if test "$wxUSE_FILE" != "yes"; then | |
11019 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
11020 | else | |
11021 | cat >> confdefs.h <<\EOF | |
11022 | #define wxUSE_TEXTFILE 1 | |
11023 | EOF | |
11024 | ||
11025 | fi | |
11026 | fi | |
11027 | ||
11028 | if test "$wxUSE_CONFIG" = "yes" ; then | |
11029 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
11030 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
11031 | else | |
11032 | cat >> confdefs.h <<\EOF | |
11033 | #define wxUSE_CONFIG 1 | |
11034 | EOF | |
11035 | ||
11036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
11037 | fi | |
11038 | fi | |
11039 | ||
11040 | if test "$wxUSE_INTL" = "yes" ; then | |
11041 | if test "$wxUSE_FILE" != "yes"; then | |
11042 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
11043 | else | |
11044 | cat >> confdefs.h <<\EOF | |
11045 | #define wxUSE_INTL 1 | |
11046 | EOF | |
11047 | ||
11048 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
11049 | fi | |
11050 | fi | |
11051 | ||
11052 | if test "$wxUSE_LOG" = "yes"; then | |
11053 | cat >> confdefs.h <<\EOF | |
11054 | #define wxUSE_LOG 1 | |
11055 | EOF | |
11056 | ||
11057 | fi | |
11058 | ||
11059 | if test "$wxUSE_LONGLONG" = "yes"; then | |
11060 | cat >> confdefs.h <<\EOF | |
11061 | #define wxUSE_LONGLONG 1 | |
11062 | EOF | |
11063 | ||
11064 | fi | |
11065 | ||
11066 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
2726c66d | 11067 | cat >> confdefs.h <<\EOF |
a16d3c04 KB |
11068 | #define wxUSE_SOCKETS 1 |
11069 | EOF | |
11070 | ||
2726c66d KB |
11071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" |
11072 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
a16d3c04 KB |
11073 | fi |
11074 | ||
1c8515f9 KB |
11075 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
11076 | cat >> confdefs.h <<\EOF | |
11077 | #define wxUSE_DIALUP_MANAGER 1 | |
11078 | EOF | |
11079 | ||
11080 | fi | |
11081 | ||
a16d3c04 KB |
11082 | if test "$wxUSE_STREAMS" = "yes" ; then |
11083 | cat >> confdefs.h <<\EOF | |
11084 | #define wxUSE_STREAMS 1 | |
11085 | EOF | |
11086 | ||
11087 | fi | |
11088 | ||
11089 | if test "$wxUSE_SERIAL" = "yes" ; then | |
11090 | cat >> confdefs.h <<\EOF | |
11091 | #define wxUSE_SERIAL 1 | |
11092 | EOF | |
11093 | ||
11094 | fi | |
11095 | ||
11096 | ||
11097 | if test "$wxUSE_SOCKETS" = "yes"; then | |
11098 | ||
11099 | ac_ext=C | |
11100 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11101 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11102 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 11103 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
11104 | cross_compiling=$ac_cv_prog_cxx_cross |
11105 | ||
11106 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
0709ee62 | 11107 | echo "configure:11108: checking the type of the third argument of getsockname" >&5 |
a16d3c04 | 11108 | cat > conftest.$ac_ext <<EOF |
0709ee62 | 11109 | #line 11110 "configure" |
a16d3c04 KB |
11110 | #include "confdefs.h" |
11111 | #include <sys/socket.h> | |
11112 | int main() { | |
11113 | socklen_t len; getsockname(0, NULL, &len); | |
11114 | ; return 0; } | |
11115 | EOF | |
0709ee62 | 11116 | if { (eval echo configure:11117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
11117 | rm -rf conftest* |
11118 | cat >> confdefs.h <<\EOF | |
11119 | #define SOCKLEN_T socklen_t | |
11120 | EOF | |
11121 | echo "$ac_t""socklen_t" 1>&6 | |
11122 | else | |
11123 | echo "configure: failed program was:" >&5 | |
11124 | cat conftest.$ac_ext >&5 | |
11125 | rm -rf conftest* | |
11126 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 11127 | #line 11128 "configure" |
a16d3c04 KB |
11128 | #include "confdefs.h" |
11129 | #include <sys/socket.h> | |
11130 | int main() { | |
11131 | size_t len; getsockname(0, NULL, &len); | |
11132 | ; return 0; } | |
11133 | EOF | |
0709ee62 | 11134 | if { (eval echo configure:11135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
11135 | rm -rf conftest* |
11136 | cat >> confdefs.h <<\EOF | |
11137 | #define SOCKLEN_T size_t | |
11138 | EOF | |
11139 | echo "$ac_t""size_t" 1>&6 | |
11140 | else | |
11141 | echo "configure: failed program was:" >&5 | |
11142 | cat conftest.$ac_ext >&5 | |
11143 | rm -rf conftest* | |
11144 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 11145 | #line 11146 "configure" |
a16d3c04 KB |
11146 | #include "confdefs.h" |
11147 | #include <sys/socket.h> | |
11148 | int main() { | |
11149 | int len; getsockname(0, NULL, &len); | |
11150 | ; return 0; } | |
11151 | EOF | |
0709ee62 | 11152 | if { (eval echo configure:11153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
11153 | rm -rf conftest* |
11154 | cat >> confdefs.h <<\EOF | |
11155 | #define SOCKLEN_T int | |
11156 | EOF | |
11157 | echo "$ac_t""int" 1>&6 | |
11158 | else | |
11159 | echo "configure: failed program was:" >&5 | |
11160 | cat conftest.$ac_ext >&5 | |
11161 | rm -rf conftest* | |
11162 | echo "$ac_t""unknown" 1>&6 | |
11163 | ||
11164 | fi | |
11165 | rm -f conftest* | |
11166 | ||
11167 | fi | |
11168 | rm -f conftest* | |
11169 | ||
11170 | fi | |
11171 | rm -f conftest* | |
11172 | ac_ext=c | |
11173 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11174 | ac_cpp='$CPP $CPPFLAGS' | |
11175 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 11176 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
11177 | cross_compiling=$ac_cv_prog_cc_cross |
11178 | ||
11179 | fi | |
11180 | ||
11181 | ||
11182 | if test "$wxUSE_JOYSTICK" = 1; then | |
11183 | for ac_hdr in linux/joystick.h | |
11184 | do | |
11185 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11186 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0709ee62 | 11187 | echo "configure:11188: checking for $ac_hdr" >&5 |
a16d3c04 KB |
11188 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11190 | else | |
11191 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 11192 | #line 11193 "configure" |
a16d3c04 KB |
11193 | #include "confdefs.h" |
11194 | #include <$ac_hdr> | |
11195 | EOF | |
11196 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0709ee62 VZ |
11197 | { (eval echo configure:11198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11198 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
a16d3c04 KB |
11199 | if test -z "$ac_err"; then |
11200 | rm -rf conftest* | |
11201 | eval "ac_cv_header_$ac_safe=yes" | |
11202 | else | |
11203 | echo "$ac_err" >&5 | |
11204 | echo "configure: failed program was:" >&5 | |
11205 | cat conftest.$ac_ext >&5 | |
11206 | rm -rf conftest* | |
11207 | eval "ac_cv_header_$ac_safe=no" | |
11208 | fi | |
11209 | rm -f conftest* | |
11210 | fi | |
11211 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11212 | echo "$ac_t""yes" 1>&6 | |
11213 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11214 | cat >> confdefs.h <<EOF | |
11215 | #define $ac_tr_hdr 1 | |
11216 | EOF | |
11217 | ||
11218 | else | |
11219 | echo "$ac_t""no" 1>&6 | |
11220 | fi | |
11221 | done | |
11222 | ||
11223 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
11224 | cat >> confdefs.h <<\EOF | |
11225 | #define wxUSE_JOYSTICK 1 | |
11226 | EOF | |
11227 | ||
11228 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
11229 | fi | |
11230 | fi | |
11231 | ||
11232 | ||
11233 | HAVE_DL_FUNCS=0 | |
11234 | HAVE_SHL_FUNCS=0 | |
11235 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
2726c66d | 11236 | for ac_func in dlopen |
a16d3c04 KB |
11237 | do |
11238 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 11239 | echo "configure:11240: checking for $ac_func" >&5 |
a16d3c04 KB |
11240 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11242 | else | |
11243 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 11244 | #line 11245 "configure" |
a16d3c04 KB |
11245 | #include "confdefs.h" |
11246 | /* System header to define __stub macros and hopefully few prototypes, | |
11247 | which can conflict with char $ac_func(); below. */ | |
11248 | #include <assert.h> | |
11249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11250 | /* We use char because int might match the return type of a gcc2 | |
11251 | builtin and then its argument prototype would still apply. */ | |
11252 | char $ac_func(); | |
11253 | ||
11254 | int main() { | |
11255 | ||
11256 | /* The GNU C library defines this for functions which it implements | |
11257 | to always fail with ENOSYS. Some functions are actually named | |
11258 | something starting with __ and the normal name is an alias. */ | |
11259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11260 | choke me | |
11261 | #else | |
2726c66d | 11262 | $ac_func(); |
a16d3c04 KB |
11263 | #endif |
11264 | ||
11265 | ; return 0; } | |
11266 | EOF | |
0709ee62 | 11267 | if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
11268 | rm -rf conftest* |
11269 | eval "ac_cv_func_$ac_func=yes" | |
11270 | else | |
11271 | echo "configure: failed program was:" >&5 | |
11272 | cat conftest.$ac_ext >&5 | |
11273 | rm -rf conftest* | |
11274 | eval "ac_cv_func_$ac_func=no" | |
11275 | fi | |
11276 | rm -f conftest* | |
11277 | fi | |
11278 | ||
11279 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11280 | echo "$ac_t""yes" 1>&6 | |
11281 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11282 | cat >> confdefs.h <<EOF | |
11283 | #define $ac_tr_func 1 | |
11284 | EOF | |
2726c66d KB |
11285 | |
11286 | cat >> confdefs.h <<\EOF | |
a16d3c04 KB |
11287 | #define HAVE_DLOPEN 1 |
11288 | EOF | |
2726c66d KB |
11289 | |
11290 | HAVE_DL_FUNCS=1 | |
11291 | ||
a16d3c04 KB |
11292 | else |
11293 | echo "$ac_t""no" 1>&6 | |
11294 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
0709ee62 | 11295 | echo "configure:11296: checking for dlopen in -ldl" >&5 |
a16d3c04 KB |
11296 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
11297 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11299 | else | |
11300 | ac_save_LIBS="$LIBS" | |
11301 | LIBS="-ldl $LIBS" | |
11302 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 11303 | #line 11304 "configure" |
a16d3c04 KB |
11304 | #include "confdefs.h" |
11305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11306 | /* We use char because int might match the return type of a gcc2 | |
11307 | builtin and then its argument prototype would still apply. */ | |
11308 | char dlopen(); | |
11309 | ||
11310 | int main() { | |
11311 | dlopen() | |
11312 | ; return 0; } | |
11313 | EOF | |
0709ee62 | 11314 | if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
11315 | rm -rf conftest* |
11316 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11317 | else | |
11318 | echo "configure: failed program was:" >&5 | |
11319 | cat conftest.$ac_ext >&5 | |
11320 | rm -rf conftest* | |
11321 | eval "ac_cv_lib_$ac_lib_var=no" | |
11322 | fi | |
11323 | rm -f conftest* | |
11324 | LIBS="$ac_save_LIBS" | |
11325 | ||
11326 | fi | |
11327 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11328 | echo "$ac_t""yes" 1>&6 | |
2726c66d KB |
11329 | |
11330 | cat >> confdefs.h <<\EOF | |
a16d3c04 KB |
11331 | #define HAVE_DLOPEN 1 |
11332 | EOF | |
2726c66d KB |
11333 | |
11334 | HAVE_DL_FUNCS=1 | |
11335 | LIBS="$LIBS -ldl" | |
11336 | ||
a16d3c04 KB |
11337 | else |
11338 | echo "$ac_t""no" 1>&6 | |
a16d3c04 | 11339 | |
2726c66d | 11340 | for ac_func in shl_load |
a16d3c04 KB |
11341 | do |
11342 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0709ee62 | 11343 | echo "configure:11344: checking for $ac_func" >&5 |
a16d3c04 KB |
11344 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11346 | else | |
11347 | cat > conftest.$ac_ext <<EOF | |
0709ee62 | 11348 | #line 11349 "configure" |
a16d3c04 KB |
11349 | #include "confdefs.h" |
11350 | /* System header to define __stub macros and hopefully few prototypes, | |
11351 | which can conflict with char $ac_func(); below. */ | |
11352 | #include <assert.h> | |
11353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11354 | /* We use char because int might match the return type of a gcc2 | |
11355 | builtin and then its argument prototype would still apply. */ | |
11356 | char $ac_func(); | |
11357 | ||
11358 | int main() { | |
11359 | ||
11360 | /* The GNU C library defines this for functions which it implements | |
11361 | to always fail with ENOSYS. Some functions are actually named | |
11362 | something starting with __ and the normal name is an alias. */ | |
11363 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11364 | choke me | |
11365 | #else | |
2726c66d | 11366 | $ac_func(); |
a16d3c04 KB |
11367 | #endif |
11368 | ||
11369 | ; return 0; } | |
11370 | EOF | |
0709ee62 | 11371 | if { (eval echo configure:11372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
11372 | rm -rf conftest* |
11373 | eval "ac_cv_func_$ac_func=yes" | |
11374 | else | |
11375 | echo "configure: failed program was:" >&5 | |
11376 | cat conftest.$ac_ext >&5 | |
11377 | rm -rf conftest* | |
11378 | eval "ac_cv_func_$ac_func=no" | |
11379 | fi | |
11380 | rm -f conftest* | |
11381 | fi | |
11382 | ||
11383 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11384 | echo "$ac_t""yes" 1>&6 | |
11385 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11386 | cat >> confdefs.h <<EOF | |
11387 | #define $ac_tr_func 1 | |
11388 | EOF | |
2726c66d KB |
11389 | |
11390 | cat >> confdefs.h <<\EOF | |
a16d3c04 KB |
11391 | #define HAVE_SHL_LOAD 1 |
11392 | EOF | |
2726c66d KB |
11393 | |
11394 | HAVE_SHL_FUNCS=1 | |
11395 | ||
a16d3c04 KB |
11396 | else |
11397 | echo "$ac_t""no" 1>&6 | |
11398 | fi | |
11399 | done | |
11400 | ||
2726c66d KB |
11401 | |
11402 | fi | |
11403 | ||
11404 | ||
11405 | fi | |
11406 | done | |
11407 | ||
a16d3c04 KB |
11408 | |
11409 | if test "$HAVE_DL_FUNCS" = 0; then | |
2726c66d KB |
11410 | if test "$HAVE_SHL_FUNCS" = 0; then |
11411 | if test "$USE_UNIX" = 1; then | |
11412 | echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2 | |
11413 | wxUSE_ODBC=no | |
11414 | wxUSE_DYNLIB_CLASS=no | |
11415 | else | |
11416 | echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2 | |
11417 | fi | |
f7a11f8c | 11418 | fi |
a16d3c04 KB |
11419 | fi |
11420 | fi | |
11421 | ||
11422 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
11423 | cat >> confdefs.h <<\EOF | |
11424 | #define wxUSE_DYNLIB_CLASS 1 | |
11425 | EOF | |
11426 | ||
11427 | fi | |
11428 | ||
11429 | ||
11430 | if test "$wxUSE_UNICODE" = "yes" ; then | |
11431 | cat >> confdefs.h <<\EOF | |
11432 | #define wxUSE_UNICODE 1 | |
11433 | EOF | |
11434 | ||
11435 | fi | |
11436 | ||
11437 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
11438 | cat >> confdefs.h <<\EOF | |
11439 | #define wxUSE_WCSRTOMBS 1 | |
11440 | EOF | |
11441 | ||
11442 | fi | |
11443 | ||
11444 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
11445 | cat >> confdefs.h <<\EOF | |
11446 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
11447 | EOF | |
11448 | ||
11449 | fi | |
11450 | ||
11451 | ||
11452 | IODBC_C_SRC="" | |
11453 | if test "$wxUSE_ODBC" = "yes" ; then | |
11454 | cat >> confdefs.h <<\EOF | |
11455 | #define wxUSE_ODBC 1 | |
11456 | EOF | |
11457 | ||
2726c66d | 11458 | WXODBCFLAG="-D_IODBC_" |
a16d3c04 KB |
11459 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
11460 | fi | |
11461 | ||
11462 | ||
11463 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
11464 | cat >> confdefs.h <<\EOF | |
11465 | #define wxUSE_POSTSCRIPT 1 | |
11466 | EOF | |
11467 | ||
11468 | fi | |
11469 | ||
11470 | cat >> confdefs.h <<\EOF | |
11471 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
11472 | EOF | |
11473 | ||
11474 | ||
11475 | cat >> confdefs.h <<\EOF | |
11476 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
11477 | EOF | |
11478 | ||
11479 | ||
11480 | ||
11481 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
11482 | cat >> confdefs.h <<\EOF | |
11483 | #define wxUSE_CONSTRAINTS 1 | |
11484 | EOF | |
11485 | ||
11486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
11487 | fi | |
11488 | ||
11489 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
11490 | cat >> confdefs.h <<\EOF | |
11491 | #define wxUSE_MDI_ARCHITECTURE 1 | |
11492 | EOF | |
11493 | ||
11494 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
11495 | fi | |
11496 | ||
11497 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
11498 | cat >> confdefs.h <<\EOF | |
11499 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
11500 | EOF | |
11501 | ||
11502 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
11503 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
11504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
11505 | fi | |
11506 | fi | |
11507 | ||
11508 | if test "$wxUSE_HELP" = "yes"; then | |
11509 | cat >> confdefs.h <<\EOF | |
11510 | #define wxUSE_HELP 1 | |
11511 | EOF | |
11512 | ||
11513 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
11514 | fi | |
11515 | ||
11516 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
11517 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11518 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
11519 | else | |
11520 | cat >> confdefs.h <<\EOF | |
11521 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
11522 | EOF | |
11523 | ||
11524 | fi | |
11525 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
11526 | fi | |
11527 | ||
11528 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
11529 | cat >> confdefs.h <<\EOF | |
11530 | #define wxUSE_PROLOGIO 1 | |
11531 | EOF | |
11532 | ||
11533 | fi | |
11534 | ||
11535 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
11536 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
11537 | cat >> confdefs.h <<\EOF | |
11538 | #define wxUSE_RESOURCES 1 | |
11539 | EOF | |
11540 | ||
11541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
11542 | else | |
11543 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
11544 | fi | |
11545 | fi | |
11546 | ||
11547 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
11548 | cat >> confdefs.h <<\EOF | |
11549 | #define wxUSE_X_RESOURCES 1 | |
11550 | EOF | |
11551 | ||
11552 | fi | |
11553 | ||
11554 | ||
11555 | if test "$wxUSE_IPC" = "yes"; then | |
11556 | cat >> confdefs.h <<\EOF | |
11557 | #define wxUSE_IPC 1 | |
11558 | EOF | |
11559 | ||
11560 | fi | |
11561 | ||
11562 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
11563 | cat >> confdefs.h <<\EOF | |
11564 | #define wxUSE_CLIPBOARD 1 | |
11565 | EOF | |
11566 | ||
11567 | fi | |
11568 | ||
11569 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
11570 | if test "$wxUSE_GTK" = 1; then | |
11571 | if test "$WXGTK12" != 1; then | |
11572 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
f7a11f8c | 11573 | wxUSE_DRAG_AND_DROP=no |
a16d3c04 KB |
11574 | fi |
11575 | fi | |
11576 | ||
11577 | if test "$wxUSE_MOTIF" = 1; then | |
11578 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
f7a11f8c | 11579 | wxUSE_DRAG_AND_DROP=no |
a16d3c04 KB |
11580 | fi |
11581 | ||
11582 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
11583 | cat >> confdefs.h <<\EOF | |
11584 | #define wxUSE_DRAG_AND_DROP 1 | |
11585 | EOF | |
11586 | ||
11587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
11588 | fi | |
11589 | fi | |
11590 | ||
11591 | if test "$wxUSE_SPLINES" = "yes" ; then | |
11592 | cat >> confdefs.h <<\EOF | |
11593 | #define wxUSE_SPLINES 1 | |
11594 | EOF | |
11595 | ||
11596 | fi | |
11597 | ||
11598 | ||
11599 | if test "$wxUSE_ACCEL" = "yes"; then | |
11600 | cat >> confdefs.h <<\EOF | |
11601 | #define wxUSE_ACCEL 1 | |
11602 | EOF | |
11603 | ||
11604 | fi | |
11605 | ||
11606 | if test "$wxUSE_CARET" = "yes"; then | |
11607 | cat >> confdefs.h <<\EOF | |
11608 | #define wxUSE_CARET 1 | |
11609 | EOF | |
11610 | ||
11611 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
11612 | fi | |
11613 | ||
11614 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
11615 | cat >> confdefs.h <<\EOF | |
11616 | #define wxUSE_COMBOBOX 1 | |
11617 | EOF | |
11618 | ||
11619 | fi | |
11620 | ||
11621 | if test "$wxUSE_CHOICE" = "yes"; then | |
11622 | cat >> confdefs.h <<\EOF | |
11623 | #define wxUSE_CHOICE 1 | |
11624 | EOF | |
11625 | ||
11626 | fi | |
11627 | ||
11628 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
11629 | cat >> confdefs.h <<\EOF | |
11630 | #define wxUSE_BMPBUTTON 1 | |
11631 | EOF | |
11632 | ||
11633 | fi | |
11634 | ||
11635 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
11636 | cat >> confdefs.h <<\EOF | |
11637 | #define wxUSE_CHECKBOX 1 | |
11638 | EOF | |
11639 | ||
11640 | fi | |
11641 | ||
11642 | if test "$wxUSE_CHECKLST" = "yes"; then | |
11643 | cat >> confdefs.h <<\EOF | |
11644 | #define wxUSE_CHECKLISTBOX 1 | |
11645 | EOF | |
11646 | ||
11647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
11648 | fi | |
11649 | ||
11650 | if test "$wxUSE_GAUGE" = "yes"; then | |
11651 | cat >> confdefs.h <<\EOF | |
11652 | #define wxUSE_GAUGE 1 | |
11653 | EOF | |
11654 | ||
11655 | fi | |
11656 | ||
11657 | if test "$wxUSE_GRID" = "yes"; then | |
11658 | cat >> confdefs.h <<\EOF | |
11659 | #define wxUSE_GRID 1 | |
11660 | EOF | |
11661 | ||
11662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
11663 | fi | |
11664 | ||
2726c66d KB |
11665 | if test "$wxUSE_NEW_GRID" = "yes"; then |
11666 | cat >> confdefs.h <<\EOF | |
11667 | #define wxUSE_NEW_GRID 1 | |
11668 | EOF | |
11669 | ||
11670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
11671 | fi | |
11672 | ||
a16d3c04 KB |
11673 | if test "$wxUSE_IMAGLIST" = "yes"; then |
11674 | cat >> confdefs.h <<\EOF | |
11675 | #define wxUSE_IMAGLIST 1 | |
11676 | EOF | |
11677 | ||
11678 | fi | |
11679 | ||
11680 | if test "$wxUSE_LISTBOX" = "yes"; then | |
11681 | cat >> confdefs.h <<\EOF | |
11682 | #define wxUSE_LISTBOX 1 | |
11683 | EOF | |
11684 | ||
11685 | fi | |
11686 | ||
11687 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
11688 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
11689 | cat >> confdefs.h <<\EOF | |
11690 | #define wxUSE_LISTCTRL 1 | |
11691 | EOF | |
11692 | ||
11693 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
11694 | else | |
11695 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
11696 | fi | |
11697 | fi | |
11698 | ||
11699 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
11700 | cat >> confdefs.h <<\EOF | |
11701 | #define wxUSE_NOTEBOOK 1 | |
11702 | EOF | |
11703 | ||
11704 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
11705 | fi | |
11706 | ||
11707 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
11708 | cat >> confdefs.h <<\EOF | |
11709 | #define wxUSE_RADIOBOX 1 | |
11710 | EOF | |
11711 | ||
11712 | fi | |
11713 | ||
11714 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
11715 | cat >> confdefs.h <<\EOF | |
11716 | #define wxUSE_RADIOBTN 1 | |
11717 | EOF | |
11718 | ||
11719 | fi | |
11720 | ||
11721 | if test "$wxUSE_SASH" = "yes"; then | |
11722 | cat >> confdefs.h <<\EOF | |
11723 | #define wxUSE_SASH 1 | |
11724 | EOF | |
11725 | ||
11726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
11727 | fi | |
11728 | ||
11729 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
11730 | cat >> confdefs.h <<\EOF | |
11731 | #define wxUSE_SCROLLBAR 1 | |
11732 | EOF | |
11733 | ||
11734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll" | |
11735 | fi | |
11736 | ||
11737 | if test "$wxUSE_SLIDER" = "yes"; then | |
11738 | cat >> confdefs.h <<\EOF | |
11739 | #define wxUSE_SLIDER 1 | |
11740 | EOF | |
11741 | ||
11742 | fi | |
11743 | ||
11744 | if test "$wxUSE_SPINBTN" = "yes"; then | |
11745 | cat >> confdefs.h <<\EOF | |
11746 | #define wxUSE_SPINBTN 1 | |
11747 | EOF | |
11748 | ||
11749 | fi | |
11750 | ||
11751 | if test "$wxUSE_SPLITTER" = "yes"; then | |
11752 | cat >> confdefs.h <<\EOF | |
11753 | #define wxUSE_SPLITTER 1 | |
11754 | EOF | |
11755 | ||
11756 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
11757 | fi | |
11758 | ||
11759 | if test "$wxUSE_STATBMP" = "yes"; then | |
11760 | cat >> confdefs.h <<\EOF | |
11761 | #define wxUSE_STATBMP 1 | |
11762 | EOF | |
11763 | ||
11764 | fi | |
11765 | ||
11766 | if test "$wxUSE_STATBOX" = "yes"; then | |
11767 | cat >> confdefs.h <<\EOF | |
11768 | #define wxUSE_STATBOX 1 | |
11769 | EOF | |
11770 | ||
11771 | fi | |
11772 | ||
11773 | if test "$wxUSE_STATLINE" = "yes"; then | |
11774 | if test "$wxUSE_WINE" = 1 ; then | |
11775 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
11776 | else | |
f7a11f8c | 11777 | cat >> confdefs.h <<\EOF |
a16d3c04 KB |
11778 | #define wxUSE_STATLINE 1 |
11779 | EOF | |
11780 | ||
11781 | fi | |
11782 | fi | |
11783 | ||
11784 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
11785 | cat >> confdefs.h <<\EOF | |
11786 | #define wxUSE_STATUSBAR 1 | |
11787 | EOF | |
11788 | ||
11789 | fi | |
11790 | ||
11791 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
11792 | cat >> confdefs.h <<\EOF | |
11793 | #define wxUSE_TAB_DIALOG 1 | |
11794 | EOF | |
11795 | ||
11796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
11797 | fi | |
11798 | ||
11799 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
11800 | cat >> confdefs.h <<\EOF | |
11801 | #define wxUSE_TOOLBAR 1 | |
11802 | EOF | |
11803 | ||
11804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
11805 | fi | |
11806 | ||
11807 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
11808 | if test "$wxUSE_MOTIF" = 1; then | |
11809 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
11810 | else | |
11811 | if test "$wxUSE_WINE" = 1; then | |
11812 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
11813 | else | |
11814 | cat >> confdefs.h <<\EOF | |
11815 | #define wxUSE_TOOLTIPS 1 | |
11816 | EOF | |
11817 | ||
11818 | fi | |
11819 | fi | |
11820 | fi | |
11821 | ||
11822 | if test "$wxUSE_TREECTRL" = "yes"; then | |
11823 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
11824 | cat >> confdefs.h <<\EOF | |
11825 | #define wxUSE_TREECTRL 1 | |
11826 | EOF | |
11827 | ||
11828 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
11829 | else | |
11830 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
11831 | fi | |
11832 | fi | |
11833 | ||
11834 | ||
11835 | ||
11836 | if test "$wxUSE_METAFILE" = "yes"; then | |
11837 | cat >> confdefs.h <<\EOF | |
11838 | #define wxUSE_METAFILE 1 | |
11839 | EOF | |
11840 | ||
11841 | fi | |
11842 | ||
11843 | if test "$wxUSE_DIRDLG" = "yes"; then | |
11844 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11845 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
11846 | else | |
11847 | if test "$wxUSE_TREECTRL" != "yes"; then | |
11848 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
11849 | else | |
11850 | cat >> confdefs.h <<\EOF | |
11851 | #define wxUSE_DIRDLG 1 | |
11852 | EOF | |
11853 | ||
11854 | fi | |
11855 | fi | |
11856 | fi | |
11857 | ||
11858 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
11859 | cat >> confdefs.h <<\EOF | |
11860 | #define wxUSE_TEXTDLG 1 | |
11861 | EOF | |
11862 | ||
11863 | fi | |
11864 | ||
11865 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
11866 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11867 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
11868 | else | |
11869 | cat >> confdefs.h <<\EOF | |
11870 | #define wxUSE_STARTUP_TIPS 1 | |
11871 | EOF | |
11872 | ||
11873 | fi | |
11874 | fi | |
11875 | ||
11876 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
11877 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11878 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
11879 | else | |
11880 | cat >> confdefs.h <<\EOF | |
11881 | #define wxUSE_PROGRESSDLG 1 | |
11882 | EOF | |
11883 | ||
11884 | fi | |
11885 | fi | |
11886 | ||
11887 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
11888 | cat >> confdefs.h <<\EOF | |
11889 | #define wxUSE_MINIFRAME 1 | |
11890 | EOF | |
11891 | ||
11892 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
11893 | fi | |
11894 | ||
11895 | if test "$wxUSE_HTML" = "yes"; then | |
11896 | cat >> confdefs.h <<\EOF | |
11897 | #define wxUSE_HTML 1 | |
11898 | EOF | |
11899 | ||
11900 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
11901 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
11902 | fi | |
11903 | ||
11904 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
11905 | cat >> confdefs.h <<\EOF | |
11906 | #define wxUSE_VALIDATORS 1 | |
11907 | EOF | |
11908 | ||
11909 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
11910 | fi | |
11911 | ||
1c8515f9 KB |
11912 | if test "$wxUSE_GIF" = "yes" ; then |
11913 | cat >> confdefs.h <<\EOF | |
11914 | #define wxUSE_GIF 1 | |
11915 | EOF | |
11916 | ||
11917 | fi | |
11918 | ||
11919 | if test "$wxUSE_PCX" = "yes" ; then | |
11920 | cat >> confdefs.h <<\EOF | |
11921 | #define wxUSE_PCX 1 | |
11922 | EOF | |
11923 | ||
11924 | fi | |
11925 | ||
11926 | if test "$wxUSE_PNM" = "yes" ; then | |
11927 | cat >> confdefs.h <<\EOF | |
11928 | #define wxUSE_PNM 1 | |
11929 | EOF | |
11930 | ||
11931 | fi | |
11932 | ||
a16d3c04 KB |
11933 | |
11934 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" | |
11935 | ||
2726c66d | 11936 | EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" |
f7a11f8c RR |
11937 | if test "$wxUSE_GUI" = "yes"; then |
11938 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
11939 | fi | |
a16d3c04 KB |
11940 | |
11941 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
11942 | ||
11943 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE" | |
11944 | ||
11945 | if test "$GXX" = yes ; then | |
11946 | CXXWARNINGS="-Wall" | |
11947 | fi | |
2726c66d | 11948 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
a16d3c04 KB |
11949 | |
11950 | CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS" | |
11951 | CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
11952 | CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS" | |
11953 | ||
11954 | if test "$wxUSE_GUI" = "yes"; then | |
11955 | ||
11956 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
11957 | forty fractal image wxpoem" | |
f7a11f8c RR |
11958 | else |
11959 | SAMPLES_SUBDIRS="" | |
a16d3c04 KB |
11960 | fi |
11961 | ||
11962 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
11963 | ||
11964 | ||
11965 | ||
11966 | ||
11967 | ||
11968 | ||
11969 | ||
11970 | ||
11971 | ||
11972 | ||
11973 | ||
11974 | ||
11975 | ||
11976 | ||
11977 | ||
11978 | ||
11979 | ||
11980 | ||
11981 | ||
11982 | ||
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | ||
11991 | ||
11992 | ||
11993 | ||
11994 | ||
11995 | ||
11996 | ||
11997 | ||
11998 | ||
11999 | ||
12000 | ||
12001 | ||
12002 | ||
12003 | ||
12004 | ||
12005 | ||
12006 | ||
f7a11f8c RR |
12007 | |
12008 | ||
12009 | ||
12010 | ||
a16d3c04 KB |
12011 | |
12012 | ||
12013 | ||
12014 | ||
12015 | ||
12016 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
0709ee62 | 12017 | echo "configure:12018: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a16d3c04 KB |
12018 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
12019 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
12020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12021 | else | |
12022 | cat > conftestmake <<\EOF | |
12023 | all: | |
12024 | @echo 'ac_maketemp="${MAKE}"' | |
12025 | EOF | |
12026 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12027 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
12028 | if test -n "$ac_maketemp"; then | |
12029 | eval ac_cv_prog_make_${ac_make}_set=yes | |
12030 | else | |
12031 | eval ac_cv_prog_make_${ac_make}_set=no | |
12032 | fi | |
12033 | rm -f conftestmake | |
12034 | fi | |
12035 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
12036 | echo "$ac_t""yes" 1>&6 | |
12037 | SET_MAKE= | |
12038 | else | |
12039 | echo "$ac_t""no" 1>&6 | |
12040 | SET_MAKE="MAKE=${MAKE-make}" | |
12041 | fi | |
12042 | ||
12043 | ||
12044 | ||
12045 | ||
12046 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
12047 | GL_TOOLKIT_DIR="win" | |
12048 | else | |
12049 | GL_TOOLKIT_DIR="${TOOLKIT_DIR}" | |
12050 | fi | |
12051 | ||
12052 | ||
12053 | trap '' 1 2 15 | |
12054 | cat > confcache <<\EOF | |
12055 | # This file is a shell script that caches the results of configure | |
12056 | # tests run on this system so they can be shared between configure | |
12057 | # scripts and configure runs. It is not useful on other systems. | |
12058 | # If it contains results you don't want to keep, you may remove or edit it. | |
12059 | # | |
12060 | # By default, configure uses ./config.cache as the cache file, | |
12061 | # creating it if it does not exist already. You can give configure | |
12062 | # the --cache-file=FILE option to use a different cache file; that is | |
12063 | # what configure does when it calls configure scripts in | |
12064 | # subdirectories, so they share the cache. | |
12065 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
12066 | # config.status only pays attention to the cache file if you give it the | |
12067 | # --recheck option to rerun configure. | |
12068 | # | |
12069 | EOF | |
12070 | # The following way of writing the cache mishandles newlines in values, | |
12071 | # but we know of no workaround that is simple, portable, and efficient. | |
12072 | # So, don't put newlines in cache variables' values. | |
12073 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12074 | # and sets the high bit in the cache file unless we assign to the vars. | |
12075 | (set) 2>&1 | | |
0709ee62 | 12076 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
a16d3c04 KB |
12077 | *ac_space=\ *) |
12078 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
12079 | # turns \\\\ into \\, and sed turns \\ into \). | |
12080 | sed -n \ | |
12081 | -e "s/'/'\\\\''/g" \ | |
12082 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
12083 | ;; | |
12084 | *) | |
12085 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12086 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
12087 | ;; | |
12088 | esac >> confcache | |
12089 | if cmp -s $cache_file confcache; then | |
12090 | : | |
12091 | else | |
12092 | if test -w $cache_file; then | |
12093 | echo "updating cache $cache_file" | |
12094 | cat confcache > $cache_file | |
12095 | else | |
12096 | echo "not updating unwritable cache $cache_file" | |
12097 | fi | |
12098 | fi | |
12099 | rm -f confcache | |
12100 | ||
12101 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
12102 | ||
12103 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12104 | # Let make expand exec_prefix. | |
12105 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12106 | ||
12107 | # Any assignment to VPATH causes Sun make to only execute | |
12108 | # the first set of double-colon rules, so remove it if not needed. | |
12109 | # If there is a colon in the path, we need to keep it. | |
12110 | if test "x$srcdir" = x.; then | |
12111 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
12112 | fi | |
12113 | ||
12114 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
12115 | ||
12116 | DEFS=-DHAVE_CONFIG_H | |
12117 | ||
12118 | # Without the "./", some shells look in PATH for config.status. | |
12119 | : ${CONFIG_STATUS=./config.status} | |
12120 | ||
12121 | echo creating $CONFIG_STATUS | |
12122 | rm -f $CONFIG_STATUS | |
12123 | cat > $CONFIG_STATUS <<EOF | |
12124 | #! /bin/sh | |
12125 | # Generated automatically by configure. | |
12126 | # Run this file to recreate the current configuration. | |
12127 | # This directory was configured as follows, | |
12128 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12129 | # | |
12130 | # $0 $ac_configure_args | |
12131 | # | |
12132 | # Compiler output produced by configure, useful for debugging | |
12133 | # configure, is in ./config.log if it exists. | |
12134 | ||
12135 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
12136 | for ac_option | |
12137 | do | |
12138 | case "\$ac_option" in | |
12139 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12140 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
12141 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
12142 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
0709ee62 | 12143 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
a16d3c04 KB |
12144 | exit 0 ;; |
12145 | -help | --help | --hel | --he | --h) | |
12146 | echo "\$ac_cs_usage"; exit 0 ;; | |
12147 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
12148 | esac | |
12149 | done | |
12150 | ||
12151 | ac_given_srcdir=$srcdir | |
12152 | ac_given_INSTALL="$INSTALL" | |
12153 | ||
12154 | trap 'rm -fr `echo " | |
12155 | wx-config | |
f7a11f8c RR |
12156 | src/make.env |
12157 | src/makeprog.env | |
12158 | src/makelib.env | |
a16d3c04 KB |
12159 | Makefile |
12160 | samples/Makefile | |
12161 | samples/bombs/Makefile | |
12162 | samples/caret/Makefile | |
12163 | samples/checklst/Makefile | |
12164 | samples/config/Makefile | |
12165 | samples/controls/Makefile | |
2726c66d | 12166 | samples/db/Makefile |
f7a11f8c RR |
12167 | samples/dialogs/Makefile |
12168 | samples/docview/Makefile | |
12169 | samples/docvwmdi/Makefile | |
12170 | samples/dnd/Makefile | |
12171 | samples/drawing/Makefile | |
0709ee62 VZ |
12172 | samples/forty/Makefile |
12173 | samples/fractal/Makefile | |
f7a11f8c RR |
12174 | samples/image/Makefile |
12175 | samples/internat/Makefile | |
12176 | samples/layout/Makefile | |
12177 | samples/listctrl/Makefile | |
12178 | samples/mdi/Makefile | |
12179 | samples/minifram/Makefile | |
2726c66d KB |
12180 | samples/minimal/Makefile |
12181 | samples/nettest/Makefile | |
12182 | samples/newgrid/Makefile | |
f7a11f8c | 12183 | samples/notebook/Makefile |
0709ee62 | 12184 | samples/png/Makefile |
a16d3c04 | 12185 | samples/printing/Makefile |
2726c66d KB |
12186 | samples/proplist/Makefile |
12187 | samples/richedit/Makefile | |
0709ee62 | 12188 | samples/resource/Makefile |
f7a11f8c RR |
12189 | samples/sashtest/Makefile |
12190 | samples/scroll/Makefile | |
12191 | samples/splitter/Makefile | |
12192 | samples/text/Makefile | |
12193 | samples/thread/Makefile | |
12194 | samples/toolbar/Makefile | |
12195 | samples/treectrl/Makefile | |
12196 | samples/typetest/Makefile | |
12197 | samples/validate/Makefile | |
12198 | samples/wxpoem/Makefile | |
12199 | samples/wxsocket/Makefile | |
12200 | samples/wizard/Makefile | |
12201 | samples/html/Makefile | |
12202 | samples/html/about/Makefile | |
12203 | samples/html/help/Makefile | |
12204 | samples/html/printing/Makefile | |
12205 | samples/html/test/Makefile | |
12206 | samples/html/zip/Makefile | |
12207 | samples/html/virtual/Makefile | |
12208 | samples/html/widget/Makefile | |
12209 | utils/Makefile | |
12210 | utils/wxMMedia2/Makefile | |
12211 | utils/wxMMedia2/lib/Makefile | |
12212 | utils/wxMMedia2/sample/Makefile | |
12213 | utils/glcanvas/Makefile | |
12214 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
12215 | utils/ogl/Makefile | |
12216 | utils/ogl/src/Makefile | |
a16d3c04 KB |
12217 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
12218 | EOF | |
12219 | cat >> $CONFIG_STATUS <<EOF | |
12220 | ||
12221 | # Protect against being on the right side of a sed subst in config.status. | |
12222 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
12223 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
12224 | $ac_vpsub | |
12225 | $extrasub | |
0709ee62 | 12226 | s%@SHELL@%$SHELL%g |
a16d3c04 KB |
12227 | s%@CFLAGS@%$CFLAGS%g |
12228 | s%@CPPFLAGS@%$CPPFLAGS%g | |
12229 | s%@CXXFLAGS@%$CXXFLAGS%g | |
0709ee62 | 12230 | s%@FFLAGS@%$FFLAGS%g |
a16d3c04 KB |
12231 | s%@DEFS@%$DEFS%g |
12232 | s%@LDFLAGS@%$LDFLAGS%g | |
12233 | s%@LIBS@%$LIBS%g | |
12234 | s%@exec_prefix@%$exec_prefix%g | |
12235 | s%@prefix@%$prefix%g | |
12236 | s%@program_transform_name@%$program_transform_name%g | |
12237 | s%@bindir@%$bindir%g | |
12238 | s%@sbindir@%$sbindir%g | |
12239 | s%@libexecdir@%$libexecdir%g | |
12240 | s%@datadir@%$datadir%g | |
12241 | s%@sysconfdir@%$sysconfdir%g | |
12242 | s%@sharedstatedir@%$sharedstatedir%g | |
12243 | s%@localstatedir@%$localstatedir%g | |
12244 | s%@libdir@%$libdir%g | |
12245 | s%@includedir@%$includedir%g | |
12246 | s%@oldincludedir@%$oldincludedir%g | |
12247 | s%@infodir@%$infodir%g | |
12248 | s%@mandir@%$mandir%g | |
12249 | s%@host@%$host%g | |
12250 | s%@host_alias@%$host_alias%g | |
12251 | s%@host_cpu@%$host_cpu%g | |
12252 | s%@host_vendor@%$host_vendor%g | |
12253 | s%@host_os@%$host_os%g | |
12254 | s%@target@%$target%g | |
12255 | s%@target_alias@%$target_alias%g | |
12256 | s%@target_cpu@%$target_cpu%g | |
12257 | s%@target_vendor@%$target_vendor%g | |
12258 | s%@target_os@%$target_os%g | |
12259 | s%@build@%$build%g | |
12260 | s%@build_alias@%$build_alias%g | |
12261 | s%@build_cpu@%$build_cpu%g | |
12262 | s%@build_vendor@%$build_vendor%g | |
12263 | s%@build_os@%$build_os%g | |
12264 | s%@CC@%$CC%g | |
12265 | s%@CPP@%$CPP%g | |
12266 | s%@CXX@%$CXX%g | |
12267 | s%@CXXCPP@%$CXXCPP%g | |
12268 | s%@RANLIB@%$RANLIB%g | |
12269 | s%@AR@%$AR%g | |
12270 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
0709ee62 | 12271 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
a16d3c04 KB |
12272 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
12273 | s%@STRIP@%$STRIP%g | |
12274 | s%@YACC@%$YACC%g | |
12275 | s%@LEX@%$LEX%g | |
12276 | s%@LEXLIB@%$LEXLIB%g | |
12277 | s%@LN_S@%$LN_S%g | |
12278 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
12279 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
12280 | s%@GTK_LIBS@%$GTK_LIBS%g | |
12281 | s%@X_CFLAGS@%$X_CFLAGS%g | |
12282 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
12283 | s%@X_LIBS@%$X_LIBS%g | |
12284 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
12285 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
12286 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
12287 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
12288 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
12289 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
12290 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
12291 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
12292 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
12293 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
12294 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
12295 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
12296 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
2726c66d KB |
12297 | s%@WX_ALL@%$WX_ALL%g |
12298 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
a16d3c04 KB |
12299 | s%@SHARED_LD@%$SHARED_LD%g |
12300 | s%@PIC_FLAG@%$PIC_FLAG%g | |
12301 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
12302 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
12303 | s%@TOOLKIT@%$TOOLKIT%g | |
12304 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
12305 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
12306 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
12307 | s%@GUIHEADERS@%$GUIHEADERS%g | |
12308 | s%@GUIOBJS@%$GUIOBJS%g | |
12309 | s%@COMMONOBJS@%$COMMONOBJS%g | |
12310 | s%@GENERICOBJS@%$GENERICOBJS%g | |
12311 | s%@GUIDEPS@%$GUIDEPS%g | |
12312 | s%@COMMONDEPS@%$COMMONDEPS%g | |
12313 | s%@GENERICDEPS@%$GENERICDEPS%g | |
12314 | s%@UNIXOBJS@%$UNIXOBJS%g | |
f7a11f8c RR |
12315 | s%@UNIXDEPS@%$UNIXDEPS%g |
12316 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
12317 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
12318 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
a16d3c04 KB |
12319 | s%@GUIDIST@%$GUIDIST%g |
12320 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
12321 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
12322 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
12323 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
12324 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
12325 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
12326 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
12327 | s%@LD_LIBS@%$LD_LIBS%g | |
12328 | s%@SET_MAKE@%$SET_MAKE%g | |
12329 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
12330 | ||
12331 | CEOF | |
12332 | EOF | |
12333 | ||
12334 | cat >> $CONFIG_STATUS <<\EOF | |
12335 | ||
12336 | # Split the substitutions into bite-sized pieces for seds with | |
12337 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
12338 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
12339 | ac_file=1 # Number of current file. | |
12340 | ac_beg=1 # First line for current file. | |
12341 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
12342 | ac_more_lines=: | |
12343 | ac_sed_cmds="" | |
12344 | while $ac_more_lines; do | |
12345 | if test $ac_beg -gt 1; then | |
12346 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
12347 | else | |
12348 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
12349 | fi | |
12350 | if test ! -s conftest.s$ac_file; then | |
12351 | ac_more_lines=false | |
12352 | rm -f conftest.s$ac_file | |
12353 | else | |
12354 | if test -z "$ac_sed_cmds"; then | |
12355 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
12356 | else | |
12357 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
12358 | fi | |
12359 | ac_file=`expr $ac_file + 1` | |
12360 | ac_beg=$ac_end | |
12361 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
12362 | fi | |
12363 | done | |
12364 | if test -z "$ac_sed_cmds"; then | |
12365 | ac_sed_cmds=cat | |
12366 | fi | |
12367 | EOF | |
12368 | ||
12369 | cat >> $CONFIG_STATUS <<EOF | |
12370 | ||
12371 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
f7a11f8c RR |
12372 | src/make.env |
12373 | src/makeprog.env | |
12374 | src/makelib.env | |
a16d3c04 KB |
12375 | Makefile |
12376 | samples/Makefile | |
12377 | samples/bombs/Makefile | |
12378 | samples/caret/Makefile | |
12379 | samples/checklst/Makefile | |
12380 | samples/config/Makefile | |
12381 | samples/controls/Makefile | |
2726c66d | 12382 | samples/db/Makefile |
f7a11f8c RR |
12383 | samples/dialogs/Makefile |
12384 | samples/docview/Makefile | |
12385 | samples/docvwmdi/Makefile | |
12386 | samples/dnd/Makefile | |
12387 | samples/drawing/Makefile | |
0709ee62 VZ |
12388 | samples/forty/Makefile |
12389 | samples/fractal/Makefile | |
f7a11f8c RR |
12390 | samples/image/Makefile |
12391 | samples/internat/Makefile | |
12392 | samples/layout/Makefile | |
12393 | samples/listctrl/Makefile | |
12394 | samples/mdi/Makefile | |
12395 | samples/minifram/Makefile | |
2726c66d KB |
12396 | samples/minimal/Makefile |
12397 | samples/nettest/Makefile | |
12398 | samples/newgrid/Makefile | |
f7a11f8c | 12399 | samples/notebook/Makefile |
0709ee62 | 12400 | samples/png/Makefile |
a16d3c04 | 12401 | samples/printing/Makefile |
2726c66d KB |
12402 | samples/proplist/Makefile |
12403 | samples/richedit/Makefile | |
0709ee62 | 12404 | samples/resource/Makefile |
f7a11f8c RR |
12405 | samples/sashtest/Makefile |
12406 | samples/scroll/Makefile | |
12407 | samples/splitter/Makefile | |
12408 | samples/text/Makefile | |
12409 | samples/thread/Makefile | |
12410 | samples/toolbar/Makefile | |
12411 | samples/treectrl/Makefile | |
12412 | samples/typetest/Makefile | |
12413 | samples/validate/Makefile | |
12414 | samples/wxpoem/Makefile | |
12415 | samples/wxsocket/Makefile | |
12416 | samples/wizard/Makefile | |
12417 | samples/html/Makefile | |
12418 | samples/html/about/Makefile | |
12419 | samples/html/help/Makefile | |
12420 | samples/html/printing/Makefile | |
12421 | samples/html/test/Makefile | |
12422 | samples/html/zip/Makefile | |
12423 | samples/html/virtual/Makefile | |
12424 | samples/html/widget/Makefile | |
12425 | utils/Makefile | |
12426 | utils/wxMMedia2/Makefile | |
12427 | utils/wxMMedia2/lib/Makefile | |
12428 | utils/wxMMedia2/sample/Makefile | |
12429 | utils/glcanvas/Makefile | |
12430 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
12431 | utils/ogl/Makefile | |
12432 | utils/ogl/src/Makefile | |
a16d3c04 KB |
12433 | "} |
12434 | EOF | |
12435 | cat >> $CONFIG_STATUS <<\EOF | |
12436 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
12437 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12438 | case "$ac_file" in | |
12439 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
12440 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
12441 | *) ac_file_in="${ac_file}.in" ;; | |
12442 | esac | |
12443 | ||
12444 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
12445 | ||
12446 | # Remove last slash and all that follows it. Not all systems have dirname. | |
12447 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
12448 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
12449 | # The file is in a subdirectory. | |
12450 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
12451 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
12452 | # A "../" for each directory in $ac_dir_suffix. | |
12453 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
12454 | else | |
12455 | ac_dir_suffix= ac_dots= | |
12456 | fi | |
12457 | ||
12458 | case "$ac_given_srcdir" in | |
12459 | .) srcdir=. | |
12460 | if test -z "$ac_dots"; then top_srcdir=. | |
12461 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
12462 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
12463 | *) # Relative path. | |
12464 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
12465 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
12466 | esac | |
12467 | ||
12468 | case "$ac_given_INSTALL" in | |
12469 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
12470 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
12471 | esac | |
12472 | ||
12473 | echo creating "$ac_file" | |
12474 | rm -f "$ac_file" | |
12475 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
12476 | case "$ac_file" in | |
12477 | *Makefile*) ac_comsub="1i\\ | |
12478 | # $configure_input" ;; | |
12479 | *) ac_comsub= ;; | |
12480 | esac | |
12481 | ||
12482 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
12483 | sed -e "$ac_comsub | |
12484 | s%@configure_input@%$configure_input%g | |
12485 | s%@srcdir@%$srcdir%g | |
12486 | s%@top_srcdir@%$top_srcdir%g | |
12487 | s%@INSTALL@%$INSTALL%g | |
12488 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
12489 | fi; done | |
12490 | rm -f conftest.s* | |
12491 | ||
12492 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12493 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12494 | # | |
12495 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12496 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12497 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
12498 | ac_dC='\3' | |
12499 | ac_dD='%g' | |
12500 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
12501 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12502 | ac_uB='\([ ]\)%\1#\2define\3' | |
12503 | ac_uC=' ' | |
12504 | ac_uD='\4%g' | |
12505 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12506 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12507 | ac_eB='$%\1#\2define\3' | |
12508 | ac_eC=' ' | |
12509 | ac_eD='%g' | |
12510 | ||
12511 | if test "${CONFIG_HEADERS+set}" != set; then | |
12512 | EOF | |
12513 | cat >> $CONFIG_STATUS <<EOF | |
12514 | CONFIG_HEADERS="setup.h:setup.h.in" | |
12515 | EOF | |
12516 | cat >> $CONFIG_STATUS <<\EOF | |
12517 | fi | |
12518 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
12519 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12520 | case "$ac_file" in | |
12521 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
12522 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
12523 | *) ac_file_in="${ac_file}.in" ;; | |
12524 | esac | |
12525 | ||
12526 | echo creating $ac_file | |
12527 | ||
12528 | rm -f conftest.frag conftest.in conftest.out | |
12529 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
12530 | cat $ac_file_inputs > conftest.in | |
12531 | ||
12532 | EOF | |
12533 | ||
12534 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
12535 | # the proper values into config.h.in to produce config.h. And first: | |
12536 | # Protect against being on the right side of a sed subst in config.status. | |
12537 | # Protect against being in an unquoted here document in config.status. | |
12538 | rm -f conftest.vals | |
12539 | cat > conftest.hdr <<\EOF | |
12540 | s/[\\&%]/\\&/g | |
12541 | s%[\\$`]%\\&%g | |
12542 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
12543 | s%ac_d%ac_u%gp | |
12544 | s%ac_u%ac_e%gp | |
12545 | EOF | |
12546 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
12547 | rm -f conftest.hdr | |
12548 | ||
12549 | # This sed command replaces #undef with comments. This is necessary, for | |
12550 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12551 | # on some systems where configure will not decide to define it. | |
12552 | cat >> conftest.vals <<\EOF | |
12553 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
12554 | EOF | |
12555 | ||
12556 | # Break up conftest.vals because some shells have a limit on | |
12557 | # the size of here documents, and old seds have small limits too. | |
12558 | ||
12559 | rm -f conftest.tail | |
12560 | while : | |
12561 | do | |
12562 | ac_lines=`grep -c . conftest.vals` | |
12563 | # grep -c gives empty output for an empty file on some AIX systems. | |
12564 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
12565 | # Write a limited-size here document to conftest.frag. | |
12566 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
12567 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
12568 | echo 'CEOF | |
12569 | sed -f conftest.frag conftest.in > conftest.out | |
12570 | rm -f conftest.in | |
12571 | mv conftest.out conftest.in | |
12572 | ' >> $CONFIG_STATUS | |
12573 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
12574 | rm -f conftest.vals | |
12575 | mv conftest.tail conftest.vals | |
12576 | done | |
12577 | rm -f conftest.vals | |
12578 | ||
12579 | cat >> $CONFIG_STATUS <<\EOF | |
12580 | rm -f conftest.frag conftest.h | |
12581 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
12582 | cat conftest.in >> conftest.h | |
12583 | rm -f conftest.in | |
12584 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
12585 | echo "$ac_file is unchanged" | |
12586 | rm -f conftest.h | |
12587 | else | |
12588 | # Remove last slash and all that follows it. Not all systems have dirname. | |
12589 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
12590 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
12591 | # The file is in a subdirectory. | |
12592 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
12593 | fi | |
12594 | rm -f $ac_file | |
12595 | mv conftest.h $ac_file | |
12596 | fi | |
12597 | fi; done | |
12598 | ||
12599 | EOF | |
12600 | cat >> $CONFIG_STATUS <<EOF | |
12601 | ||
12602 | LN_S="${ac_cv_prog_LN_S}" | |
12603 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
12604 | ||
12605 | ||
12606 | EOF | |
12607 | cat >> $CONFIG_STATUS <<\EOF | |
12608 | ||
12609 | chmod +x wx-config | |
f7a11f8c RR |
12610 | if test ! -d include; then |
12611 | mkdir include | |
12612 | fi | |
12613 | if test ! -d include/wx; then | |
12614 | mkdir include/wx | |
12615 | fi | |
12616 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
12617 | mkdir include/wx/${TOOLKIT_DIR} | |
12618 | fi | |
12619 | cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
a16d3c04 KB |
12620 | |
12621 | exit 0 | |
12622 | EOF | |
12623 | chmod +x $CONFIG_STATUS | |
12624 | rm -fr confdefs* $ac_clean_files | |
12625 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
12626 | ||
12627 |