]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
10f2d63a VZ |
36 | |
37 | ||
38 | ||
39 | ||
40 | # Guess values for system-dependent variables and create Makefiles. | |
69ffe1d2 | 41 | # Generated automatically using autoconf version 2.14 |
10f2d63a VZ |
42 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
43 | # | |
44 | # This configure script is free software; the Free Software Foundation | |
45 | # gives unlimited permission to copy, distribute and modify it. | |
46 | ||
47 | # Defaults: | |
48 | ac_help= | |
49 | ac_default_prefix=/usr/local | |
50 | # Any additions from configure.in: | |
51 | ac_help="$ac_help | |
52 | --enable-gui use GUI classes" | |
53 | ac_help="$ac_help | |
54 | --with-gtk use GTK+" | |
55 | ac_help="$ac_help | |
56 | --with-motif use Motif/Lesstif" | |
57 | ac_help="$ac_help | |
58 | --with-wine use WINE" | |
59 | ac_help="$ac_help | |
60 | --with-cygwin use Cygwin for MS-Windows" | |
61 | ac_help="$ac_help | |
62 | --with-mingw use GCC Minimal MS-Windows" | |
63 | ac_help="$ac_help | |
64 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
65 | ac_help="$ac_help | |
66 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
67 | ac_help="$ac_help | |
68 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
69 | ac_help="$ac_help | |
70 | --with-zlib use zlib for LZW compression" | |
71 | ac_help="$ac_help | |
72 | --with-libpng use libpng (PNG image format)" | |
73 | ac_help="$ac_help | |
74 | --with-libjpeg use libjpeg (JPEG file format)" | |
75 | ac_help="$ac_help | |
76 | --with-opengl use OpenGL (or Mesa)" | |
77 | ac_help="$ac_help | |
78 | --with-odbc use the IODBC and wxODBC classes" | |
79 | ac_help="$ac_help | |
80 | --enable-shared create shared library code" | |
81 | ac_help="$ac_help | |
82 | --enable-optimise create optimised code" | |
83 | ac_help="$ac_help | |
84 | --enable-debug same as debug_flag and debug_info" | |
85 | ac_help="$ac_help | |
86 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
87 | ac_help="$ac_help | |
88 | --enable-debug_info create code with debugging information" | |
89 | ac_help="$ac_help | |
90 | --enable-debug_gdb create code with extra GDB debugging information" | |
91 | ac_help="$ac_help | |
92 | --enable-debug_cntxt use wxDebugContext" | |
93 | ac_help="$ac_help | |
94 | --enable-mem_tracing create code with memory tracing" | |
95 | ac_help="$ac_help | |
96 | --enable-profile create code with profiling information" | |
97 | ac_help="$ac_help | |
98 | --enable-no_rtti create code without RTTI information" | |
99 | ac_help="$ac_help | |
100 | --enable-no_exceptions create code without exceptions information" | |
101 | ac_help="$ac_help | |
102 | --enable-permissive compile code disregarding strict ANSI" | |
103 | ac_help="$ac_help | |
104 | --enable-no_deps create code without dependency information" | |
105 | ac_help="$ac_help | |
106 | --enable-intl use internationalization system" | |
107 | ac_help="$ac_help | |
108 | --enable-config use wxConfig (and derived) classes" | |
109 | ac_help="$ac_help | |
110 | --enable-sockets use socket/network classes" | |
111 | ac_help="$ac_help | |
112 | --enable-dialupman use dialup network classes" | |
113 | ac_help="$ac_help | |
114 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
115 | ac_help="$ac_help | |
116 | --enable-apple_ieee use the Apple IEEE codec" | |
117 | ac_help="$ac_help | |
118 | --enable-timedate use date/time classes" | |
119 | ac_help="$ac_help | |
120 | --enable-wave use wxWave class" | |
121 | ac_help="$ac_help | |
122 | --enable-fraction use wxFraction class" | |
123 | ac_help="$ac_help | |
124 | --enable-dynlib use wxLibrary class for DLL loading" | |
125 | ac_help="$ac_help | |
126 | --enable-longlong use wxLongLong class" | |
127 | ac_help="$ac_help | |
128 | --enable-log use logging system" | |
129 | ac_help="$ac_help | |
130 | --enable-streams use wxStream etc classes" | |
131 | ac_help="$ac_help | |
132 | --enable-file use wxFile classes" | |
133 | ac_help="$ac_help | |
134 | --enable-textfile use wxTextFile classes" | |
135 | ac_help="$ac_help | |
136 | --enable-unicode compile wxString with Unicode support" | |
137 | ac_help="$ac_help | |
138 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
139 | ac_help="$ac_help | |
140 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
141 | ac_help="$ac_help | |
142 | --enable-joystick compile in joystick support (Linux only)" | |
143 | ac_help="$ac_help | |
144 | --enable-std_iostreams use standard C++ stream classes" | |
145 | ac_help="$ac_help | |
146 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
147 | ac_help="$ac_help | |
148 | --enable-fs_zip use virtual ZIP filesystems" | |
149 | ac_help="$ac_help | |
150 | --enable-zipstream use wxZipInputStream" | |
151 | ac_help="$ac_help | |
152 | --enable-threads use threads" | |
153 | ac_help="$ac_help | |
154 | --enable-serial use class serialization" | |
155 | ac_help="$ac_help | |
156 | --enable-docview use document view architecture" | |
157 | ac_help="$ac_help | |
158 | --enable-help use help (using external browser at present)" | |
159 | ac_help="$ac_help | |
160 | --enable-constraints use layout-constraints system" | |
161 | ac_help="$ac_help | |
162 | --enable-printarch use printing architecture" | |
163 | ac_help="$ac_help | |
164 | --enable-mdi use multiple document interface architecture" | |
165 | ac_help="$ac_help | |
166 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
167 | ac_help="$ac_help | |
168 | --enable-prologio use Prolog IO library" | |
169 | ac_help="$ac_help | |
170 | --enable-resources use wxWindows resources" | |
171 | ac_help="$ac_help | |
172 | --enable-xresources use X resources for save (default for gtk+)" | |
173 | ac_help="$ac_help | |
174 | --enable-clipboard use wxClipboard classes" | |
175 | ac_help="$ac_help | |
176 | --enable-dnd use Drag'n'Drop classes" | |
177 | ac_help="$ac_help | |
178 | --enable-wxtree make wxTree library" | |
179 | ac_help="$ac_help | |
180 | --enable-controls use all usual controls" | |
181 | ac_help="$ac_help | |
182 | --enable-accel use accelerators" | |
183 | ac_help="$ac_help | |
184 | --enable-caret use wxCaret class" | |
185 | ac_help="$ac_help | |
186 | --enable-bmpbutton use wxBitmapButton class" | |
187 | ac_help="$ac_help | |
188 | --enable-checkbox use wxCheckBox class" | |
189 | ac_help="$ac_help | |
190 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
191 | ac_help="$ac_help | |
192 | --enable-choice use wxChoice class" | |
193 | ac_help="$ac_help | |
194 | --enable-combobox use wxComboBox classes" | |
195 | ac_help="$ac_help | |
196 | --enable-gauge use wxGauge class" | |
197 | ac_help="$ac_help | |
198 | --enable-grid use wxGrid class" | |
199 | ac_help="$ac_help | |
200 | --enable-newgrid use new wxGrid class" | |
201 | ac_help="$ac_help | |
202 | --enable-imaglist use wxImageList class" | |
203 | ac_help="$ac_help | |
204 | --enable-listbox use wxListBox class" | |
205 | ac_help="$ac_help | |
206 | --enable-listctrl use wxListCtrl class" | |
207 | ac_help="$ac_help | |
208 | --enable-notebook use wxNotebook class" | |
209 | ac_help="$ac_help | |
210 | --enable-radiobox use wxRadioBox class" | |
211 | ac_help="$ac_help | |
212 | --enable-radiobtn use wxRadioButton class" | |
213 | ac_help="$ac_help | |
214 | --enable-sash use wxSashWindow class" | |
215 | ac_help="$ac_help | |
216 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
217 | ac_help="$ac_help | |
218 | --enable-slider use wxSlider class" | |
219 | ac_help="$ac_help | |
220 | --enable-spinbtn use wxSpinButton class" | |
221 | ac_help="$ac_help | |
222 | --enable-splitter use wxSplitterWindow class" | |
223 | ac_help="$ac_help | |
224 | --enable-statbmp use wxStaticBitmap class" | |
225 | ac_help="$ac_help | |
226 | --enable-statbox use wxStaticBox class" | |
227 | ac_help="$ac_help | |
228 | --enable-statline use wxStaticLine class" | |
229 | ac_help="$ac_help | |
230 | --enable-statusbar use wxStatusBar class" | |
231 | ac_help="$ac_help | |
232 | --enable-tabdialog use wxTabControl class" | |
233 | ac_help="$ac_help | |
234 | --enable-toolbar use wxToolBar class" | |
235 | ac_help="$ac_help | |
236 | --enable-treectrl use wxTreeCtrl class" | |
237 | ac_help="$ac_help | |
238 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
239 | ac_help="$ac_help | |
240 | --enable-dirdlg use wxDirDialog" | |
241 | ac_help="$ac_help | |
242 | --enable-textdlg use wxTextDialog" | |
243 | ac_help="$ac_help | |
244 | --enable-tipdlg use startup tips" | |
245 | ac_help="$ac_help | |
246 | --enable-progressdlg use wxProgressDialog" | |
247 | ac_help="$ac_help | |
248 | --enable-miniframe use wxMiniFrame class" | |
249 | ac_help="$ac_help | |
250 | --enable-html use wxHTML sub-library" | |
251 | ac_help="$ac_help | |
252 | --enable-tooltips use wxToolTip class" | |
253 | ac_help="$ac_help | |
254 | --enable-splines use spline drawing code" | |
255 | ac_help="$ac_help | |
256 | --enable-validators use wxValidator and derived classes" | |
257 | ac_help="$ac_help | |
258 | --enable-busyinfo use wxBusyInfo" | |
259 | ac_help="$ac_help | |
260 | --enable-gif use gif images (GIF file format)" | |
261 | ac_help="$ac_help | |
262 | --enable-pcx use pcx images (PCX file format)" | |
263 | ac_help="$ac_help | |
264 | --enable-pnm use pnm images (PNM file format)" | |
ab9b9eab VZ |
265 | ac_help="$ac_help |
266 | --with-x use the X Window System" | |
10f2d63a VZ |
267 | |
268 | # Initialize some variables set by options. | |
269 | # The variables have the same names as the options, with | |
270 | # dashes changed to underlines. | |
271 | build=NONE | |
272 | cache_file=./config.cache | |
273 | exec_prefix=NONE | |
274 | host=NONE | |
275 | no_create= | |
276 | nonopt=NONE | |
277 | no_recursion= | |
278 | prefix=NONE | |
279 | program_prefix=NONE | |
280 | program_suffix=NONE | |
281 | program_transform_name=s,x,x, | |
282 | silent= | |
283 | site= | |
284 | srcdir= | |
285 | target=NONE | |
286 | verbose= | |
287 | x_includes=NONE | |
288 | x_libraries=NONE | |
289 | bindir='${exec_prefix}/bin' | |
290 | sbindir='${exec_prefix}/sbin' | |
291 | libexecdir='${exec_prefix}/libexec' | |
292 | datadir='${prefix}/share' | |
293 | sysconfdir='${prefix}/etc' | |
294 | sharedstatedir='${prefix}/com' | |
295 | localstatedir='${prefix}/var' | |
296 | libdir='${exec_prefix}/lib' | |
297 | includedir='${prefix}/include' | |
298 | oldincludedir='/usr/include' | |
299 | infodir='${prefix}/info' | |
300 | mandir='${prefix}/man' | |
301 | ||
302 | # Initialize some other variables. | |
303 | subdirs= | |
304 | MFLAGS= MAKEFLAGS= | |
305 | SHELL=${CONFIG_SHELL-/bin/sh} | |
306 | # Maximum number of lines to put in a shell here document. | |
307 | ac_max_here_lines=12 | |
308 | ||
309 | ac_prev= | |
310 | for ac_option | |
311 | do | |
312 | ||
313 | # If the previous option needs an argument, assign it. | |
314 | if test -n "$ac_prev"; then | |
315 | eval "$ac_prev=\$ac_option" | |
316 | ac_prev= | |
317 | continue | |
318 | fi | |
319 | ||
320 | case "$ac_option" in | |
321 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
322 | *) ac_optarg= ;; | |
323 | esac | |
324 | ||
325 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
326 | ||
327 | case "$ac_option" in | |
328 | ||
329 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
330 | ac_prev=bindir ;; | |
331 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
332 | bindir="$ac_optarg" ;; | |
333 | ||
334 | -build | --build | --buil | --bui | --bu) | |
335 | ac_prev=build ;; | |
336 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
337 | build="$ac_optarg" ;; | |
338 | ||
339 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
340 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
341 | ac_prev=cache_file ;; | |
342 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
343 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
344 | cache_file="$ac_optarg" ;; | |
345 | ||
346 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
347 | ac_prev=datadir ;; | |
348 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
349 | | --da=*) | |
350 | datadir="$ac_optarg" ;; | |
351 | ||
352 | -disable-* | --disable-*) | |
353 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
354 | # Reject names that are not valid shell variable names. | |
355 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
356 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
357 | fi | |
358 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
359 | eval "enable_${ac_feature}=no" ;; | |
360 | ||
361 | -enable-* | --enable-*) | |
362 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
363 | # Reject names that are not valid shell variable names. | |
364 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
365 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
366 | fi | |
367 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
368 | case "$ac_option" in | |
369 | *=*) ;; | |
370 | *) ac_optarg=yes ;; | |
371 | esac | |
372 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
373 | ||
374 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
375 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
376 | | --exec | --exe | --ex) | |
377 | ac_prev=exec_prefix ;; | |
378 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
379 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
380 | | --exec=* | --exe=* | --ex=*) | |
381 | exec_prefix="$ac_optarg" ;; | |
382 | ||
383 | -gas | --gas | --ga | --g) | |
384 | # Obsolete; use --with-gas. | |
385 | with_gas=yes ;; | |
386 | ||
387 | -help | --help | --hel | --he) | |
388 | # Omit some internal or obsolete options to make the list less imposing. | |
389 | # This message is too long to be a string in the A/UX 3.1 sh. | |
390 | cat << EOF | |
391 | Usage: configure [options] [host] | |
392 | Options: [defaults in brackets after descriptions] | |
393 | Configuration: | |
394 | --cache-file=FILE cache test results in FILE | |
395 | --help print this message | |
396 | --no-create do not create output files | |
397 | --quiet, --silent do not print \`checking...' messages | |
398 | --version print the version of autoconf that created configure | |
399 | Directory and file names: | |
400 | --prefix=PREFIX install architecture-independent files in PREFIX | |
401 | [$ac_default_prefix] | |
402 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
403 | [same as prefix] | |
404 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
405 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
406 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
407 | --datadir=DIR read-only architecture-independent data in DIR | |
408 | [PREFIX/share] | |
409 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
410 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
411 | [PREFIX/com] | |
412 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
413 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
414 | --includedir=DIR C header files in DIR [PREFIX/include] | |
415 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
416 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
417 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
418 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
419 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
420 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
421 | --program-transform-name=PROGRAM | |
422 | run sed PROGRAM on installed program names | |
423 | EOF | |
424 | cat << EOF | |
425 | Host type: | |
426 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
427 | --host=HOST configure for HOST [guessed] | |
428 | --target=TARGET configure for TARGET [TARGET=HOST] | |
429 | Features and packages: | |
430 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
431 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
432 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
433 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
434 | --x-includes=DIR X include files are in DIR | |
435 | --x-libraries=DIR X library files are in DIR | |
436 | EOF | |
437 | if test -n "$ac_help"; then | |
438 | echo "--enable and --with options recognized:$ac_help" | |
439 | fi | |
440 | exit 0 ;; | |
441 | ||
442 | -host | --host | --hos | --ho) | |
443 | ac_prev=host ;; | |
444 | -host=* | --host=* | --hos=* | --ho=*) | |
445 | host="$ac_optarg" ;; | |
446 | ||
447 | -includedir | --includedir | --includedi | --included | --include \ | |
448 | | --includ | --inclu | --incl | --inc) | |
449 | ac_prev=includedir ;; | |
450 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
451 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
452 | includedir="$ac_optarg" ;; | |
453 | ||
454 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
455 | ac_prev=infodir ;; | |
456 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
457 | infodir="$ac_optarg" ;; | |
458 | ||
459 | -libdir | --libdir | --libdi | --libd) | |
460 | ac_prev=libdir ;; | |
461 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
462 | libdir="$ac_optarg" ;; | |
463 | ||
464 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
465 | | --libexe | --libex | --libe) | |
466 | ac_prev=libexecdir ;; | |
467 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
468 | | --libexe=* | --libex=* | --libe=*) | |
469 | libexecdir="$ac_optarg" ;; | |
470 | ||
471 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
472 | | --localstate | --localstat | --localsta | --localst \ | |
473 | | --locals | --local | --loca | --loc | --lo) | |
474 | ac_prev=localstatedir ;; | |
475 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
476 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
477 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
478 | localstatedir="$ac_optarg" ;; | |
479 | ||
480 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
481 | ac_prev=mandir ;; | |
482 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
483 | mandir="$ac_optarg" ;; | |
484 | ||
485 | -nfp | --nfp | --nf) | |
486 | # Obsolete; use --without-fp. | |
487 | with_fp=no ;; | |
488 | ||
489 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
490 | | --no-cr | --no-c) | |
491 | no_create=yes ;; | |
492 | ||
493 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
494 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
495 | no_recursion=yes ;; | |
496 | ||
497 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
498 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
499 | | --oldin | --oldi | --old | --ol | --o) | |
500 | ac_prev=oldincludedir ;; | |
501 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
502 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
503 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
504 | oldincludedir="$ac_optarg" ;; | |
505 | ||
506 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
507 | ac_prev=prefix ;; | |
508 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
509 | prefix="$ac_optarg" ;; | |
510 | ||
511 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
512 | | --program-pre | --program-pr | --program-p) | |
513 | ac_prev=program_prefix ;; | |
514 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
515 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
516 | program_prefix="$ac_optarg" ;; | |
517 | ||
518 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
519 | | --program-suf | --program-su | --program-s) | |
520 | ac_prev=program_suffix ;; | |
521 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
522 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
523 | program_suffix="$ac_optarg" ;; | |
524 | ||
525 | -program-transform-name | --program-transform-name \ | |
526 | | --program-transform-nam | --program-transform-na \ | |
527 | | --program-transform-n | --program-transform- \ | |
528 | | --program-transform | --program-transfor \ | |
529 | | --program-transfo | --program-transf \ | |
530 | | --program-trans | --program-tran \ | |
531 | | --progr-tra | --program-tr | --program-t) | |
532 | ac_prev=program_transform_name ;; | |
533 | -program-transform-name=* | --program-transform-name=* \ | |
534 | | --program-transform-nam=* | --program-transform-na=* \ | |
535 | | --program-transform-n=* | --program-transform-=* \ | |
536 | | --program-transform=* | --program-transfor=* \ | |
537 | | --program-transfo=* | --program-transf=* \ | |
538 | | --program-trans=* | --program-tran=* \ | |
539 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
540 | program_transform_name="$ac_optarg" ;; | |
541 | ||
542 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
543 | | -silent | --silent | --silen | --sile | --sil) | |
544 | silent=yes ;; | |
545 | ||
546 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
547 | ac_prev=sbindir ;; | |
548 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
549 | | --sbi=* | --sb=*) | |
550 | sbindir="$ac_optarg" ;; | |
551 | ||
552 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
553 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
554 | | --sharedst | --shareds | --shared | --share | --shar \ | |
555 | | --sha | --sh) | |
556 | ac_prev=sharedstatedir ;; | |
557 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
558 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
559 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
560 | | --sha=* | --sh=*) | |
561 | sharedstatedir="$ac_optarg" ;; | |
562 | ||
563 | -site | --site | --sit) | |
564 | ac_prev=site ;; | |
565 | -site=* | --site=* | --sit=*) | |
566 | site="$ac_optarg" ;; | |
567 | ||
568 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
569 | ac_prev=srcdir ;; | |
570 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
571 | srcdir="$ac_optarg" ;; | |
572 | ||
573 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
574 | | --syscon | --sysco | --sysc | --sys | --sy) | |
575 | ac_prev=sysconfdir ;; | |
576 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
577 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
578 | sysconfdir="$ac_optarg" ;; | |
579 | ||
580 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
581 | ac_prev=target ;; | |
582 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
583 | target="$ac_optarg" ;; | |
584 | ||
585 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
586 | verbose=yes ;; | |
587 | ||
588 | -version | --version | --versio | --versi | --vers) | |
69ffe1d2 | 589 | echo "configure generated by autoconf version 2.14" |
10f2d63a VZ |
590 | exit 0 ;; |
591 | ||
592 | -with-* | --with-*) | |
593 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
594 | # Reject names that are not valid shell variable names. | |
595 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
596 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
597 | fi | |
598 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
599 | case "$ac_option" in | |
600 | *=*) ;; | |
601 | *) ac_optarg=yes ;; | |
602 | esac | |
603 | eval "with_${ac_package}='$ac_optarg'" ;; | |
604 | ||
605 | -without-* | --without-*) | |
606 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
607 | # Reject names that are not valid shell variable names. | |
608 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
609 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
610 | fi | |
611 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
612 | eval "with_${ac_package}=no" ;; | |
613 | ||
614 | --x) | |
615 | # Obsolete; use --with-x. | |
616 | with_x=yes ;; | |
617 | ||
618 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
619 | | --x-incl | --x-inc | --x-in | --x-i) | |
620 | ac_prev=x_includes ;; | |
621 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
622 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
623 | x_includes="$ac_optarg" ;; | |
624 | ||
625 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
626 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
627 | ac_prev=x_libraries ;; | |
628 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
629 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
630 | x_libraries="$ac_optarg" ;; | |
631 | ||
632 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
633 | ;; | |
634 | ||
635 | *) | |
636 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
637 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
638 | fi | |
639 | if test "x$nonopt" != xNONE; then | |
640 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
641 | fi | |
642 | nonopt="$ac_option" | |
643 | ;; | |
644 | ||
645 | esac | |
646 | done | |
647 | ||
648 | if test -n "$ac_prev"; then | |
649 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
650 | fi | |
651 | ||
652 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
653 | ||
654 | # File descriptor usage: | |
655 | # 0 standard input | |
656 | # 1 file creation | |
657 | # 2 errors and warnings | |
658 | # 3 some systems may open it to /dev/tty | |
659 | # 4 used on the Kubota Titan | |
660 | # 6 checking for... messages and results | |
661 | # 5 compiler messages saved in config.log | |
662 | if test "$silent" = yes; then | |
663 | exec 6>/dev/null | |
664 | else | |
665 | exec 6>&1 | |
666 | fi | |
667 | exec 5>./config.log | |
668 | ||
669 | echo "\ | |
670 | This file contains any messages produced by compilers while | |
671 | running configure, to aid debugging if configure makes a mistake. | |
672 | " 1>&5 | |
673 | ||
674 | # Strip out --no-create and --no-recursion so they do not pile up. | |
675 | # Also quote any args containing shell metacharacters. | |
676 | ac_configure_args= | |
677 | for ac_arg | |
678 | do | |
679 | case "$ac_arg" in | |
680 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
681 | | --no-cr | --no-c) ;; | |
682 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
683 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
684 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
685 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
686 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
687 | esac | |
688 | done | |
689 | ||
690 | # NLS nuisances. | |
691 | # Only set these to C if already set. These must not be set unconditionally | |
692 | # because not all systems understand e.g. LANG=C (notably SCO). | |
693 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
694 | # Non-C LC_CTYPE values break the ctype check. | |
695 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
696 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
697 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
698 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
699 | ||
700 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
701 | rm -rf conftest* confdefs.h | |
702 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
703 | echo > confdefs.h | |
704 | ||
705 | # A filename unique to this package, relative to the directory that | |
706 | # configure is in, which we can look for to find out if srcdir is correct. | |
707 | ac_unique_file=wx-config.in | |
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_prog=$0 | |
714 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
715 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
716 | srcdir=$ac_confdir | |
717 | if test ! -r $srcdir/$ac_unique_file; then | |
718 | srcdir=.. | |
719 | fi | |
720 | else | |
721 | ac_srcdir_defaulted=no | |
722 | fi | |
723 | if test ! -r $srcdir/$ac_unique_file; then | |
724 | if test "$ac_srcdir_defaulted" = yes; then | |
725 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
726 | else | |
727 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
728 | fi | |
729 | fi | |
730 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
731 | ||
732 | # Prefer explicitly selected file to automatically selected ones. | |
733 | if test -z "$CONFIG_SITE"; then | |
734 | if test "x$prefix" != xNONE; then | |
735 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
736 | else | |
737 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
738 | fi | |
739 | fi | |
740 | for ac_site_file in $CONFIG_SITE; do | |
741 | if test -r "$ac_site_file"; then | |
742 | echo "loading site script $ac_site_file" | |
743 | . "$ac_site_file" | |
744 | fi | |
745 | done | |
746 | ||
747 | if test -r "$cache_file"; then | |
748 | echo "loading cache $cache_file" | |
749 | . $cache_file | |
750 | else | |
751 | echo "creating cache $cache_file" | |
752 | > $cache_file | |
753 | fi | |
754 | ||
755 | ac_ext=c | |
756 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
757 | ac_cpp='$CPP $CPPFLAGS' | |
758 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
759 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
760 | cross_compiling=$ac_cv_prog_cc_cross | |
761 | ||
762 | ac_exeext= | |
763 | ac_objext=o | |
764 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
765 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
766 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
767 | ac_n= ac_c=' | |
768 | ' ac_t=' ' | |
769 | else | |
770 | ac_n=-n ac_c= ac_t= | |
771 | fi | |
772 | else | |
773 | ac_n= ac_c='\c' ac_t= | |
774 | fi | |
775 | ||
776 | ||
777 | ||
778 | ac_aux_dir= | |
779 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
780 | if test -f $ac_dir/install-sh; then | |
781 | ac_aux_dir=$ac_dir | |
782 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
783 | break | |
784 | elif test -f $ac_dir/install.sh; then | |
785 | ac_aux_dir=$ac_dir | |
786 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
787 | break | |
788 | fi | |
789 | done | |
790 | if test -z "$ac_aux_dir"; then | |
791 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
792 | fi | |
793 | ac_config_guess=$ac_aux_dir/config.guess | |
794 | ac_config_sub=$ac_aux_dir/config.sub | |
795 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
796 | ||
797 | ||
798 | # Do some error checking and defaulting for the host and target type. | |
799 | # The inputs are: | |
800 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
801 | # | |
802 | # The rules are: | |
803 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
804 | # same time. | |
805 | # 2. Host defaults to nonopt. | |
806 | # 3. If nonopt is not specified, then host defaults to the current host, | |
807 | # as determined by config.guess. | |
808 | # 4. Target and build default to nonopt. | |
809 | # 5. If nonopt is not specified, then target and build default to host. | |
810 | ||
811 | # The aliases save the names the user supplied, while $host etc. | |
812 | # will get canonicalized. | |
813 | case $host---$target---$nonopt in | |
814 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
815 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
816 | esac | |
817 | ||
818 | ||
819 | # Make sure we can run config.sub. | |
820 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
821 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
822 | fi | |
823 | ||
824 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
ab9b9eab | 825 | echo "configure:826: checking host system type" >&5 |
10f2d63a VZ |
826 | |
827 | host_alias=$host | |
828 | case "$host_alias" in | |
829 | NONE) | |
830 | case $nonopt in | |
831 | NONE) | |
832 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
833 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
834 | fi ;; | |
835 | *) host_alias=$nonopt ;; | |
836 | esac ;; | |
837 | esac | |
838 | ||
839 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
840 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
841 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
842 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
843 | echo "$ac_t""$host" 1>&6 | |
844 | ||
845 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
ab9b9eab | 846 | echo "configure:847: checking target system type" >&5 |
10f2d63a VZ |
847 | |
848 | target_alias=$target | |
849 | case "$target_alias" in | |
850 | NONE) | |
851 | case $nonopt in | |
852 | NONE) target_alias=$host_alias ;; | |
853 | *) target_alias=$nonopt ;; | |
854 | esac ;; | |
855 | esac | |
856 | ||
857 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
858 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
859 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
860 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
861 | echo "$ac_t""$target" 1>&6 | |
862 | ||
863 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
ab9b9eab | 864 | echo "configure:865: checking build system type" >&5 |
10f2d63a VZ |
865 | |
866 | build_alias=$build | |
867 | case "$build_alias" in | |
868 | NONE) | |
869 | case $nonopt in | |
870 | NONE) build_alias=$host_alias ;; | |
871 | *) build_alias=$nonopt ;; | |
872 | esac ;; | |
873 | esac | |
874 | ||
875 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
876 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
877 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
878 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
879 | echo "$ac_t""$build" 1>&6 | |
880 | ||
881 | test "$host_alias" != "$target_alias" && | |
882 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
883 | NONENONEs,x,x, && | |
884 | program_prefix=${target_alias}- | |
885 | ||
886 | ||
887 | ||
888 | WX_MAJOR_VERSION_NUMBER=2 | |
889 | WX_MINOR_VERSION_NUMBER=1 | |
ba0e7d41 | 890 | WX_RELEASE_NUMBER=12 |
10f2d63a VZ |
891 | |
892 | WX_INTERFACE_AGE=0 | |
893 | WX_BINARY_AGE=0 | |
894 | ||
895 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
896 | ||
897 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
898 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
899 | WX_REVISION=$WX_INTERFACE_AGE | |
900 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
901 | ||
902 | ||
903 | USE_UNIX=1 | |
904 | USE_WIN32=0 | |
905 | USE_LINUX= | |
906 | USE_SGI= | |
907 | USE_HPUX= | |
908 | USE_SYSV= | |
909 | USE_SVR4= | |
910 | USE_AIX= | |
911 | USE_SUN= | |
912 | USE_SOLARIS= | |
913 | USE_SUNOS= | |
914 | USE_ALPHA= | |
915 | USE_OSF= | |
916 | USE_BSD= | |
917 | USE_FREEBSD= | |
918 | USE_VMS= | |
919 | USE_ULTRIX= | |
920 | USE_CYGWIN= | |
921 | USE_MINGW= | |
922 | USE_DATA_GENERAL= | |
923 | ||
ab9b9eab VZ |
924 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
925 | ||
10f2d63a VZ |
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 | |
ab9b9eab | 942 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
943 | cat >> confdefs.h <<\EOF |
944 | #define __HPUX__ 1 | |
945 | EOF | |
946 | ||
947 | ;; | |
948 | *-*-linux* ) | |
949 | USE_LINUX=1 | |
950 | cat >> confdefs.h <<\EOF | |
951 | #define __LINUX__ 1 | |
952 | EOF | |
953 | ||
954 | TMP=`uname -m` | |
955 | if test "x$TMP" = "xalpha"; then | |
956 | USE_ALPHA=1 | |
957 | cat >> confdefs.h <<\EOF | |
958 | #define __ALPHA__ 1 | |
959 | EOF | |
960 | ||
961 | fi | |
962 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
963 | ;; | |
964 | *-*-irix5* | *-*-irix6* ) | |
965 | USE_SGI=1 | |
966 | USE_SVR4=1 | |
967 | cat >> confdefs.h <<\EOF | |
968 | #define __SGI__ 1 | |
969 | EOF | |
970 | ||
971 | cat >> confdefs.h <<\EOF | |
972 | #define __SVR4__ 1 | |
973 | EOF | |
974 | ||
975 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
976 | ;; | |
977 | *-*-solaris2* ) | |
978 | USE_SUN=1 | |
979 | USE_SOLARIS=1 | |
980 | USE_SVR4=1 | |
981 | cat >> confdefs.h <<\EOF | |
982 | #define __SUN__ 1 | |
983 | EOF | |
984 | ||
985 | cat >> confdefs.h <<\EOF | |
986 | #define __SOLARIS__ 1 | |
987 | EOF | |
988 | ||
989 | cat >> confdefs.h <<\EOF | |
990 | #define __SVR4__ 1 | |
991 | EOF | |
992 | ||
993 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 994 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
995 | ;; |
996 | *-*-sunos4* ) | |
997 | USE_SUN=1 | |
998 | USE_SUNOS=1 | |
999 | USE_BSD=1 | |
1000 | cat >> confdefs.h <<\EOF | |
1001 | #define __SUN__ 1 | |
1002 | EOF | |
1003 | ||
1004 | cat >> confdefs.h <<\EOF | |
1005 | #define __SUNOS__ 1 | |
1006 | EOF | |
1007 | ||
1008 | cat >> confdefs.h <<\EOF | |
1009 | #define __BSD__ 1 | |
1010 | EOF | |
1011 | ||
1012 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1013 | ;; | |
1014 | *-*-freebsd* | *-*-netbsd*) | |
1015 | USE_BSD=1 | |
1016 | USE_FREEBSD=1 | |
1017 | cat >> confdefs.h <<\EOF | |
1018 | #define __FREEBSD__ 1 | |
1019 | EOF | |
1020 | ||
1021 | cat >> confdefs.h <<\EOF | |
1022 | #define __BSD__ 1 | |
1023 | EOF | |
1024 | ||
1025 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1026 | ;; | |
1027 | *-*-osf* ) | |
1028 | USE_ALPHA=1 | |
1029 | USE_OSF=1 | |
1030 | cat >> confdefs.h <<\EOF | |
1031 | #define __ALPHA__ 1 | |
1032 | EOF | |
1033 | ||
1034 | cat >> confdefs.h <<\EOF | |
1035 | #define __OSF__ 1 | |
1036 | EOF | |
1037 | ||
1038 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1039 | ;; | |
1040 | *-*-dgux5* ) | |
1041 | USE_ALPHA=1 | |
1042 | USE_SVR4=1 | |
1043 | cat >> confdefs.h <<\EOF | |
1044 | #define __ALPHA__ 1 | |
1045 | EOF | |
1046 | ||
1047 | cat >> confdefs.h <<\EOF | |
1048 | #define __SVR4__ 1 | |
1049 | EOF | |
1050 | ||
1051 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1052 | ;; | |
1053 | *-*-sysv5* ) | |
1054 | USE_SYSV=1 | |
1055 | USE_SVR4=1 | |
1056 | cat >> confdefs.h <<\EOF | |
1057 | #define __SYSV__ 1 | |
1058 | EOF | |
1059 | ||
1060 | cat >> confdefs.h <<\EOF | |
1061 | #define __SVR4__ 1 | |
1062 | EOF | |
1063 | ||
1064 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1065 | ;; | |
1066 | *-*-aix* ) | |
1067 | USE_AIX=1 | |
1068 | USE_SYSV=1 | |
1069 | USE_SVR4=1 | |
1070 | cat >> confdefs.h <<\EOF | |
1071 | #define __AIX__ 1 | |
1072 | EOF | |
1073 | ||
1074 | cat >> confdefs.h <<\EOF | |
1075 | #define __SYSV__ 1 | |
1076 | EOF | |
1077 | ||
1078 | cat >> confdefs.h <<\EOF | |
1079 | #define __SVR4__ 1 | |
1080 | EOF | |
1081 | ||
1082 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1083 | ;; | |
1084 | ||
1085 | *-*-cygwin32* ) | |
1086 | USE_UNIX=0 | |
1087 | USE_WIN32=1 | |
1088 | cat >> confdefs.h <<\EOF | |
1089 | #define __WIN32__ 1 | |
1090 | EOF | |
1091 | ||
1092 | cat >> confdefs.h <<\EOF | |
1093 | #define __WIN95__ 1 | |
1094 | EOF | |
1095 | ||
1096 | cat >> confdefs.h <<\EOF | |
1097 | #define __WINDOWS__ 1 | |
1098 | EOF | |
1099 | ||
1100 | cat >> confdefs.h <<\EOF | |
1101 | #define __GNUWIN32__ 1 | |
1102 | EOF | |
1103 | ||
1104 | cat >> confdefs.h <<\EOF | |
1105 | #define STRICT 1 | |
1106 | EOF | |
1107 | ||
1108 | cat >> confdefs.h <<\EOF | |
1109 | #define WINVER 0x0400 | |
1110 | EOF | |
1111 | ||
1112 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1113 | ;; | |
1114 | *-*-mingw32* ) | |
1115 | USE_UNIX=0 | |
1116 | USE_WIN32=1 | |
1117 | cat >> confdefs.h <<\EOF | |
1118 | #define __WIN32__ 1 | |
1119 | EOF | |
1120 | ||
1121 | cat >> confdefs.h <<\EOF | |
1122 | #define __WIN95__ 1 | |
1123 | EOF | |
1124 | ||
1125 | cat >> confdefs.h <<\EOF | |
1126 | #define __WINDOWS__ 1 | |
1127 | EOF | |
1128 | ||
1129 | cat >> confdefs.h <<\EOF | |
1130 | #define __GNUWIN32__ 1 | |
1131 | EOF | |
1132 | ||
1133 | cat >> confdefs.h <<\EOF | |
1134 | #define STRICT 1 | |
1135 | EOF | |
1136 | ||
1137 | cat >> confdefs.h <<\EOF | |
1138 | #define WINVER 0x0400 | |
1139 | EOF | |
1140 | ||
1141 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1142 | ;; | |
1143 | ||
1144 | *-pc-os2_emx ) | |
1145 | cat >> confdefs.h <<\EOF | |
1146 | #define __EMX__ 1 | |
1147 | EOF | |
1148 | ||
1149 | ;; | |
1150 | ||
1151 | *) | |
1152 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1153 | esac | |
1154 | ||
1155 | if test "$USE_UNIX" = 1 ; then | |
1156 | wxUSE_UNIX=yes | |
1157 | cat >> confdefs.h <<\EOF | |
1158 | #define __UNIX__ 1 | |
1159 | EOF | |
1160 | ||
1161 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1162 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1163 | fi | |
1164 | ||
1165 | if test "$USE_LINUX" = 1; then | |
1166 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
ab9b9eab | 1167 | echo "configure:1168: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1168 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1169 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1171 | else | |
1172 | ac_save_LIBS="$LIBS" | |
1173 | LIBS="-lc $LIBS" | |
1174 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 1175 | #line 1176 "configure" |
10f2d63a VZ |
1176 | #include "confdefs.h" |
1177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1178 | /* We use char because int might match the return type of a gcc2 | |
1179 | builtin and then its argument prototype would still apply. */ | |
1180 | char gettext(); | |
1181 | ||
1182 | int main() { | |
1183 | gettext() | |
1184 | ; return 0; } | |
1185 | EOF | |
ab9b9eab | 1186 | if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1187 | rm -rf conftest* |
1188 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1189 | else | |
1190 | echo "configure: failed program was:" >&5 | |
1191 | cat conftest.$ac_ext >&5 | |
1192 | rm -rf conftest* | |
1193 | eval "ac_cv_lib_$ac_lib_var=no" | |
1194 | fi | |
1195 | rm -f conftest* | |
1196 | LIBS="$ac_save_LIBS" | |
1197 | ||
1198 | fi | |
1199 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1200 | echo "$ac_t""yes" 1>&6 | |
1201 | cat >> confdefs.h <<\EOF | |
1202 | #define wxHAVE_GLIBC2 1 | |
1203 | EOF | |
1204 | ||
1205 | else | |
1206 | echo "$ac_t""no" 1>&6 | |
1207 | fi | |
1208 | ||
1209 | fi | |
1210 | ||
1211 | ||
1212 | ||
1213 | ||
1214 | wx_arg_cache_file="configarg.cache" | |
1215 | echo "loading argument cache $wx_arg_cache_file" | |
1216 | rm -f ${wx_arg_cache_file}.tmp | |
1217 | touch ${wx_arg_cache_file}.tmp | |
1218 | touch ${wx_arg_cache_file} | |
1219 | ||
1220 | ||
1221 | DEBUG_CONFIGURE=0 | |
1222 | if test $DEBUG_CONFIGURE = 1; then | |
1223 | DEFAULT_wxUSE_THREADS=yes | |
1224 | ||
1225 | DEFAULT_wxUSE_SHARED=yes | |
1226 | DEFAULT_wxUSE_OPTIMISE=yes | |
1227 | DEFAULT_wxUSE_PROFILE=no | |
1228 | DEFAULT_wxUSE_NO_DEPS=no | |
1229 | DEFAULT_wxUSE_NO_RTTI=no | |
1230 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1231 | DEFAULT_wxUSE_PERMISSIVE=no | |
1232 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1233 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1234 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1235 | DEFAULT_wxUSE_MEM_TRACING=no | |
1236 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1237 | DEFAULT_wxUSE_DMALLOC=no | |
1238 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1239 | ||
1240 | DEFAULT_wxUSE_LOG=yes | |
1241 | ||
1242 | DEFAULT_wxUSE_GUI=yes | |
1243 | ||
1244 | DEFAULT_wxUSE_ZLIB=no | |
1245 | DEFAULT_wxUSE_LIBPNG=no | |
1246 | DEFAULT_wxUSE_LIBJPEG=no | |
1247 | DEFAULT_wxUSE_ODBC=no | |
1248 | ||
1249 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1250 | DEFAULT_wxUSE_FILE=no | |
1251 | DEFAULT_wxUSE_TEXTFILE=no | |
1252 | DEFAULT_wxUSE_TIMEDATE=no | |
1253 | DEFAULT_wxUSE_WAVE=no | |
1254 | DEFAULT_wxUSE_INTL=no | |
1255 | DEFAULT_wxUSE_CONFIG=no | |
1256 | DEFAULT_wxUSE_STREAMS=no | |
1257 | DEFAULT_wxUSE_SOCKETS=no | |
1258 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1259 | DEFAULT_wxUSE_SERIAL=no | |
1260 | DEFAULT_wxUSE_JOYSTICK=no | |
1261 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1262 | DEFAULT_wxUSE_LONGLONG=no | |
1263 | ||
1264 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1265 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1266 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1267 | ||
1268 | DEFAULT_wxUSE_X_RESOURCES=no | |
1269 | DEFAULT_wxUSE_CLIPBOARD=no | |
1270 | DEFAULT_wxUSE_TOOLTIPS=no | |
1271 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1272 | DEFAULT_wxUSE_SPLINES=no | |
1273 | ||
1274 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1275 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1276 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1277 | ||
1278 | DEFAULT_wxUSE_PROLOGIO=no | |
1279 | DEFAULT_wxUSE_RESOURCES=no | |
1280 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1281 | DEFAULT_wxUSE_IPC=no | |
1282 | DEFAULT_wxUSE_HELP=no | |
1283 | DEFAULT_wxUSE_WXTREE=no | |
1284 | DEFAULT_wxUSE_METAFILE=no | |
1285 | ||
1286 | DEFAULT_wxUSE_COMMONDLGS=no | |
1287 | DEFAULT_wxUSE_DIRDLG=no | |
1288 | DEFAULT_wxUSE_TEXTDLG=no | |
1289 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1290 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1291 | DEFAULT_wxUSE_MINIFRAME=no | |
1292 | DEFAULT_wxUSE_HTML=no | |
1293 | DEFAULT_wxUSE_FS_INET=no | |
1294 | DEFAULT_wxUSE_FS_ZIP=no | |
1295 | DEFAULT_wxUSE_BUSYINFO=no | |
1296 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1297 | DEFAULT_wxUSE_VALIDATORS=yes | |
1298 | ||
1299 | DEFAULT_wxUSE_ACCEL=no | |
1300 | DEFAULT_wxUSE_CARET=no | |
1301 | DEFAULT_wxUSE_BMPBUTTON=no | |
1302 | DEFAULT_wxUSE_CHECKBOX=no | |
1303 | DEFAULT_wxUSE_CHECKLST=no | |
1304 | DEFAULT_wxUSE_CHOICE=yes | |
1305 | DEFAULT_wxUSE_COMBOBOX=no | |
1306 | DEFAULT_wxUSE_GAUGE=no | |
1307 | DEFAULT_wxUSE_GRID=no | |
1308 | DEFAULT_wxUSE_NEW_GRID=no | |
1309 | DEFAULT_wxUSE_IMAGLIST=no | |
1310 | DEFAULT_wxUSE_LISTBOX=no | |
1311 | DEFAULT_wxUSE_LISTCTRL=no | |
1312 | DEFAULT_wxUSE_NOTEBOOK=no | |
1313 | DEFAULT_wxUSE_RADIOBOX=no | |
1314 | DEFAULT_wxUSE_RADIOBTN=no | |
1315 | DEFAULT_wxUSE_SASH=no | |
1316 | DEFAULT_wxUSE_SCROLLBAR=no | |
1317 | DEFAULT_wxUSE_SLIDER=no | |
1318 | DEFAULT_wxUSE_SPINBTN=no | |
1319 | DEFAULT_wxUSE_SPLITTER=no | |
1320 | DEFAULT_wxUSE_STATBMP=no | |
1321 | DEFAULT_wxUSE_STATBOX=no | |
1322 | DEFAULT_wxUSE_STATLINE=no | |
1323 | DEFAULT_wxUSE_STATUSBAR=yes | |
1324 | DEFAULT_wxUSE_TABDIALOG=no | |
1325 | DEFAULT_wxUSE_TOOLBAR=no | |
1326 | DEFAULT_wxUSE_TREECTRL=no | |
1327 | ||
1328 | DEFAULT_wxUSE_UNICODE=no | |
1329 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1330 | ||
1331 | DEFAULT_wxUSE_GIF=no | |
1332 | DEFAULT_wxUSE_PCX=no | |
1333 | DEFAULT_wxUSE_PNM=no | |
1334 | else | |
1335 | DEFAULT_wxUSE_THREADS=yes | |
1336 | ||
1337 | DEFAULT_wxUSE_SHARED=yes | |
1338 | DEFAULT_wxUSE_OPTIMISE=yes | |
1339 | DEFAULT_wxUSE_PROFILE=no | |
1340 | DEFAULT_wxUSE_NO_DEPS=no | |
1341 | DEFAULT_wxUSE_NO_RTTI=no | |
1342 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1343 | DEFAULT_wxUSE_PERMISSIVE=no | |
1344 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1345 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1346 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1347 | DEFAULT_wxUSE_MEM_TRACING=no | |
1348 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1349 | DEFAULT_wxUSE_DMALLOC=no | |
1350 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1351 | ||
1352 | DEFAULT_wxUSE_LOG=yes | |
1353 | ||
1354 | DEFAULT_wxUSE_GUI=yes | |
1355 | ||
1356 | DEFAULT_wxUSE_ZLIB=yes | |
1357 | DEFAULT_wxUSE_LIBPNG=yes | |
1358 | DEFAULT_wxUSE_LIBJPEG=yes | |
1359 | DEFAULT_wxUSE_ODBC=yes | |
1360 | ||
1361 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1362 | DEFAULT_wxUSE_FILE=yes | |
1363 | DEFAULT_wxUSE_TEXTFILE=yes | |
1364 | DEFAULT_wxUSE_TIMEDATE=yes | |
1365 | DEFAULT_wxUSE_WAVE=no | |
1366 | DEFAULT_wxUSE_INTL=yes | |
1367 | DEFAULT_wxUSE_CONFIG=yes | |
1368 | DEFAULT_wxUSE_STREAMS=yes | |
1369 | DEFAULT_wxUSE_SOCKETS=yes | |
1370 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1371 | DEFAULT_wxUSE_SERIAL=yes | |
1372 | DEFAULT_wxUSE_JOYSTICK=yes | |
1373 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1374 | DEFAULT_wxUSE_LONGLONG=no | |
1375 | ||
1376 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1377 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1378 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1379 | ||
1380 | DEFAULT_wxUSE_X_RESOURCES=no | |
1381 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1382 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1383 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1384 | DEFAULT_wxUSE_SPLINES=yes | |
1385 | ||
1386 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1387 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1388 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1389 | ||
1390 | DEFAULT_wxUSE_PROLOGIO=yes | |
1391 | DEFAULT_wxUSE_RESOURCES=yes | |
1392 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1393 | DEFAULT_wxUSE_IPC=yes | |
1394 | DEFAULT_wxUSE_HELP=yes | |
1395 | DEFAULT_wxUSE_WXTREE=yes | |
1396 | DEFAULT_wxUSE_METAFILE=yes | |
1397 | ||
1398 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1399 | DEFAULT_wxUSE_DIRDLG=yes | |
1400 | DEFAULT_wxUSE_TEXTDLG=yes | |
1401 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1402 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1403 | DEFAULT_wxUSE_MINIFRAME=yes | |
1404 | DEFAULT_wxUSE_HTML=yes | |
1405 | DEFAULT_wxUSE_FS_INET=yes | |
1406 | DEFAULT_wxUSE_FS_ZIP=yes | |
1407 | DEFAULT_wxUSE_BUSYINFO=yes | |
1408 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1409 | DEFAULT_wxUSE_VALIDATORS=yes | |
1410 | ||
1411 | DEFAULT_wxUSE_ACCEL=yes | |
1412 | DEFAULT_wxUSE_CARET=yes | |
1413 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1414 | DEFAULT_wxUSE_CHECKBOX=yes | |
1415 | DEFAULT_wxUSE_CHECKLST=yes | |
1416 | DEFAULT_wxUSE_CHOICE=yes | |
1417 | DEFAULT_wxUSE_COMBOBOX=yes | |
1418 | DEFAULT_wxUSE_GAUGE=yes | |
1419 | DEFAULT_wxUSE_GRID=yes | |
fc9c7c09 | 1420 | DEFAULT_wxUSE_NEW_GRID=no |
10f2d63a VZ |
1421 | DEFAULT_wxUSE_IMAGLIST=yes |
1422 | DEFAULT_wxUSE_LISTBOX=yes | |
1423 | DEFAULT_wxUSE_LISTCTRL=yes | |
1424 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1425 | DEFAULT_wxUSE_RADIOBOX=yes | |
1426 | DEFAULT_wxUSE_RADIOBTN=yes | |
1427 | DEFAULT_wxUSE_SASH=yes | |
1428 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1429 | DEFAULT_wxUSE_SLIDER=yes | |
1430 | DEFAULT_wxUSE_SPINBTN=yes | |
1431 | DEFAULT_wxUSE_SPLITTER=yes | |
1432 | DEFAULT_wxUSE_STATBMP=yes | |
1433 | DEFAULT_wxUSE_STATBOX=yes | |
1434 | DEFAULT_wxUSE_STATLINE=yes | |
1435 | DEFAULT_wxUSE_STATUSBAR=yes | |
1436 | DEFAULT_wxUSE_TABDIALOG=no | |
1437 | DEFAULT_wxUSE_TOOLBAR=yes | |
1438 | DEFAULT_wxUSE_TREECTRL=yes | |
1439 | ||
1440 | DEFAULT_wxUSE_UNICODE=no | |
1441 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1442 | ||
1443 | DEFAULT_wxUSE_GIF=yes | |
1444 | DEFAULT_wxUSE_PCX=yes | |
1445 | DEFAULT_wxUSE_PNM=yes | |
1446 | fi | |
1447 | ||
1448 | ||
1449 | ||
1450 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1451 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1452 | if test "x$LINE" != x ; then | |
1453 | has_toolkit_in_cache=1 | |
1454 | eval "DEFAULT_$LINE" | |
1455 | eval "CACHE_$toolkit=1" | |
1456 | fi | |
1457 | done | |
1458 | ||
1459 | ||
1460 | ||
1461 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
ab9b9eab | 1462 | echo "configure:1463: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1463 | no_cache=0 |
1464 | # Check whether --enable-gui or --disable-gui was given. | |
1465 | if test "${enable_gui+set}" = set; then | |
1466 | enableval="$enable_gui" | |
1467 | ||
1468 | if test "$enableval" = yes; then | |
1469 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1470 | else | |
1471 | ac_cv_use_gui='wxUSE_GUI=no' | |
1472 | fi | |
1473 | ||
1474 | else | |
1475 | ||
1476 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1477 | if test "x$LINE" != x ; then | |
1478 | eval "DEFAULT_$LINE" | |
1479 | else | |
1480 | no_cache=1 | |
1481 | fi | |
1482 | ||
1483 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1484 | ||
1485 | fi | |
1486 | ||
1487 | ||
1488 | eval "$ac_cv_use_gui" | |
1489 | if test "$no_cache" != 1; then | |
1490 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1491 | fi | |
1492 | ||
1493 | if test "$wxUSE_GUI" = yes; then | |
1494 | echo "$ac_t""yes" 1>&6 | |
1495 | else | |
1496 | echo "$ac_t""no" 1>&6 | |
1497 | fi | |
1498 | ||
1499 | ||
1500 | if test "$wxUSE_GUI" = "no"; then | |
1501 | DEFAULT_wxUSE_ZLIB=no | |
1502 | DEFAULT_wxUSE_LIBPNG=no | |
1503 | DEFAULT_wxUSE_LIBJPEG=no | |
1504 | DEFAULT_wxUSE_SOCKETS=no | |
1505 | DEFAULT_wxUSE_JOYSTICK=no | |
1506 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1507 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1508 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1509 | DEFAULT_wxUSE_X_RESOURCES=no | |
1510 | DEFAULT_wxUSE_CLIPBOARD=no | |
1511 | DEFAULT_wxUSE_TOOLTIPS=no | |
1512 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1513 | DEFAULT_wxUSE_SPLINES=no | |
1514 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1515 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1516 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1517 | DEFAULT_wxUSE_PROLOGIO=no | |
1518 | DEFAULT_wxUSE_RESOURCES=no | |
1519 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1520 | DEFAULT_wxUSE_IPC=no | |
1521 | DEFAULT_wxUSE_HELP=no | |
1522 | DEFAULT_wxUSE_WXTREE=no | |
1523 | DEFAULT_wxUSE_METAFILE=no | |
1524 | DEFAULT_wxUSE_COMMONDLGS=no | |
1525 | DEFAULT_wxUSE_DIRDLG=no | |
1526 | DEFAULT_wxUSE_TEXTDLG=no | |
1527 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1528 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1529 | DEFAULT_wxUSE_MINIFRAME=no | |
1530 | DEFAULT_wxUSE_HTML=no | |
1531 | DEFAULT_wxUSE_FS_INET=no | |
1532 | DEFAULT_wxUSE_FS_ZIP=no | |
1533 | DEFAULT_wxUSE_BUSYINFO=no | |
1534 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1535 | DEFAULT_wxUSE_VALIDATORS=no | |
1536 | DEFAULT_wxUSE_ACCEL=no | |
1537 | DEFAULT_wxUSE_CARET=no | |
1538 | DEFAULT_wxUSE_BMPBUTTON=no | |
1539 | DEFAULT_wxUSE_CHECKBOX=no | |
1540 | DEFAULT_wxUSE_CHECKLST=no | |
1541 | DEFAULT_wxUSE_CHOICE=no | |
1542 | DEFAULT_wxUSE_COMBOBOX=no | |
1543 | DEFAULT_wxUSE_GAUGE=no | |
1544 | DEFAULT_wxUSE_GRID=no | |
1545 | DEFAULT_wxUSE_NEW_GRID=no | |
1546 | DEFAULT_wxUSE_IMAGLIST=no | |
1547 | DEFAULT_wxUSE_LISTBOX=no | |
1548 | DEFAULT_wxUSE_LISTCTRL=no | |
1549 | DEFAULT_wxUSE_NOTEBOOK=no | |
1550 | DEFAULT_wxUSE_RADIOBOX=no | |
1551 | DEFAULT_wxUSE_RADIOBTN=no | |
1552 | DEFAULT_wxUSE_SASH=no | |
1553 | DEFAULT_wxUSE_SCROLLBAR=no | |
1554 | DEFAULT_wxUSE_SLIDER=no | |
1555 | DEFAULT_wxUSE_SPINBTN=no | |
1556 | DEFAULT_wxUSE_SPLITTER=no | |
1557 | DEFAULT_wxUSE_STATBMP=no | |
1558 | DEFAULT_wxUSE_STATBOX=no | |
1559 | DEFAULT_wxUSE_STATLINE=no | |
1560 | DEFAULT_wxUSE_STATUSBAR=no | |
1561 | DEFAULT_wxUSE_TABDIALOG=no | |
1562 | DEFAULT_wxUSE_TOOLBAR=no | |
1563 | DEFAULT_wxUSE_TREECTRL=no | |
1564 | DEFAULT_wxUSE_GIF=no | |
1565 | DEFAULT_wxUSE_PCX=no | |
1566 | DEFAULT_wxUSE_PNM=no | |
1567 | fi | |
1568 | ||
1569 | # Check whether --with-gtk or --without-gtk was given. | |
1570 | if test "${with_gtk+set}" = set; then | |
1571 | withval="$with_gtk" | |
1572 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1573 | fi | |
1574 | ||
1575 | # Check whether --with-motif or --without-motif was given. | |
1576 | if test "${with_motif+set}" = set; then | |
1577 | withval="$with_motif" | |
1578 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1579 | fi | |
1580 | ||
1581 | # Check whether --with-wine or --without-wine was given. | |
1582 | if test "${with_wine+set}" = set; then | |
1583 | withval="$with_wine" | |
1584 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1585 | fi | |
1586 | ||
1587 | # Check whether --with-cygwin or --without-cygwin was given. | |
1588 | if test "${with_cygwin+set}" = set; then | |
1589 | withval="$with_cygwin" | |
1590 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1591 | fi | |
1592 | ||
1593 | # Check whether --with-mingw or --without-mingw was given. | |
1594 | if test "${with_mingw+set}" = set; then | |
1595 | withval="$with_mingw" | |
1596 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1597 | fi | |
1598 | ||
1599 | ||
1600 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1601 | if test "${with_gtk_prefix+set}" = set; then | |
1602 | withval="$with_gtk_prefix" | |
1603 | gtk_config_prefix="$withval" | |
1604 | else | |
1605 | gtk_config_prefix="" | |
1606 | fi | |
1607 | ||
1608 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1609 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1610 | withval="$with_gtk_exec_prefix" | |
1611 | gtk_config_exec_prefix="$withval" | |
1612 | else | |
1613 | gtk_config_exec_prefix="" | |
1614 | fi | |
1615 | ||
1616 | ||
1617 | ||
1618 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
ab9b9eab | 1619 | echo "configure:1620: checking "for --with-dmalloc"" >&5 |
10f2d63a VZ |
1620 | no_cache=0 |
1621 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1622 | if test "${with_dmalloc+set}" = set; then | |
1623 | withval="$with_dmalloc" | |
1624 | ||
1625 | if test "$withval" = yes; then | |
1626 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
1627 | else | |
1628 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
1629 | fi | |
1630 | ||
1631 | else | |
1632 | ||
1633 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
1634 | if test "x$LINE" != x ; then | |
1635 | eval "DEFAULT_$LINE" | |
1636 | else | |
1637 | no_cache=1 | |
1638 | fi | |
1639 | ||
1640 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
1641 | ||
1642 | fi | |
1643 | ||
1644 | ||
1645 | eval "$ac_cv_use_dmalloc" | |
1646 | if test "$no_cache" != 1; then | |
1647 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
1648 | fi | |
1649 | ||
1650 | if test "$wxUSE_DMALLOC" = yes; then | |
1651 | echo "$ac_t""yes" 1>&6 | |
1652 | else | |
1653 | echo "$ac_t""no" 1>&6 | |
1654 | fi | |
1655 | ||
1656 | ||
1657 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 | |
ab9b9eab | 1658 | echo "configure:1659: checking "for --with-zlib"" >&5 |
10f2d63a VZ |
1659 | no_cache=0 |
1660 | # Check whether --with-zlib or --without-zlib was given. | |
1661 | if test "${with_zlib+set}" = set; then | |
1662 | withval="$with_zlib" | |
1663 | ||
1664 | if test "$withval" = yes; then | |
1665 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
1666 | else | |
1667 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
1668 | fi | |
1669 | ||
1670 | else | |
1671 | ||
1672 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
1673 | if test "x$LINE" != x ; then | |
1674 | eval "DEFAULT_$LINE" | |
1675 | else | |
1676 | no_cache=1 | |
1677 | fi | |
1678 | ||
1679 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
1680 | ||
1681 | fi | |
1682 | ||
1683 | ||
1684 | eval "$ac_cv_use_zlib" | |
1685 | if test "$no_cache" != 1; then | |
1686 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
1687 | fi | |
1688 | ||
1689 | if test "$wxUSE_ZLIB" = yes; then | |
1690 | echo "$ac_t""yes" 1>&6 | |
1691 | else | |
1692 | echo "$ac_t""no" 1>&6 | |
1693 | fi | |
1694 | ||
1695 | ||
1696 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 | |
ab9b9eab | 1697 | echo "configure:1698: checking "for --with-libpng"" >&5 |
10f2d63a VZ |
1698 | no_cache=0 |
1699 | # Check whether --with-libpng or --without-libpng was given. | |
1700 | if test "${with_libpng+set}" = set; then | |
1701 | withval="$with_libpng" | |
1702 | ||
1703 | if test "$withval" = yes; then | |
1704 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1705 | else | |
1706 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1707 | fi | |
1708 | ||
1709 | else | |
1710 | ||
1711 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1712 | if test "x$LINE" != x ; then | |
1713 | eval "DEFAULT_$LINE" | |
1714 | else | |
1715 | no_cache=1 | |
1716 | fi | |
1717 | ||
1718 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1719 | ||
1720 | fi | |
1721 | ||
1722 | ||
1723 | eval "$ac_cv_use_libpng" | |
1724 | if test "$no_cache" != 1; then | |
1725 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1726 | fi | |
1727 | ||
1728 | if test "$wxUSE_LIBPNG" = yes; then | |
1729 | echo "$ac_t""yes" 1>&6 | |
1730 | else | |
1731 | echo "$ac_t""no" 1>&6 | |
1732 | fi | |
1733 | ||
1734 | ||
1735 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 | |
ab9b9eab | 1736 | echo "configure:1737: checking "for --with-libjpeg"" >&5 |
10f2d63a VZ |
1737 | no_cache=0 |
1738 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1739 | if test "${with_libjpeg+set}" = set; then | |
1740 | withval="$with_libjpeg" | |
1741 | ||
1742 | if test "$withval" = yes; then | |
1743 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1744 | else | |
1745 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1746 | fi | |
1747 | ||
1748 | else | |
1749 | ||
1750 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1751 | if test "x$LINE" != x ; then | |
1752 | eval "DEFAULT_$LINE" | |
1753 | else | |
1754 | no_cache=1 | |
1755 | fi | |
1756 | ||
1757 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1758 | ||
1759 | fi | |
1760 | ||
1761 | ||
1762 | eval "$ac_cv_use_libjpeg" | |
1763 | if test "$no_cache" != 1; then | |
1764 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1765 | fi | |
1766 | ||
1767 | if test "$wxUSE_LIBJPEG" = yes; then | |
1768 | echo "$ac_t""yes" 1>&6 | |
1769 | else | |
1770 | echo "$ac_t""no" 1>&6 | |
1771 | fi | |
1772 | ||
1773 | ||
1774 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 | |
ab9b9eab | 1775 | echo "configure:1776: checking "for --with-opengl"" >&5 |
10f2d63a VZ |
1776 | no_cache=0 |
1777 | # Check whether --with-opengl or --without-opengl was given. | |
1778 | if test "${with_opengl+set}" = set; then | |
1779 | withval="$with_opengl" | |
1780 | ||
1781 | if test "$withval" = yes; then | |
1782 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
1783 | else | |
1784 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
1785 | fi | |
1786 | ||
1787 | else | |
1788 | ||
1789 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
1790 | if test "x$LINE" != x ; then | |
1791 | eval "DEFAULT_$LINE" | |
1792 | else | |
1793 | no_cache=1 | |
1794 | fi | |
1795 | ||
1796 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
1797 | ||
1798 | fi | |
1799 | ||
1800 | ||
1801 | eval "$ac_cv_use_opengl" | |
1802 | if test "$no_cache" != 1; then | |
1803 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
1804 | fi | |
1805 | ||
1806 | if test "$wxUSE_OPENGL" = yes; then | |
1807 | echo "$ac_t""yes" 1>&6 | |
1808 | else | |
1809 | echo "$ac_t""no" 1>&6 | |
1810 | fi | |
1811 | ||
1812 | ||
1813 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
ab9b9eab | 1814 | echo "configure:1815: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1815 | no_cache=0 |
1816 | # Check whether --with-odbc or --without-odbc was given. | |
1817 | if test "${with_odbc+set}" = set; then | |
1818 | withval="$with_odbc" | |
1819 | ||
1820 | if test "$withval" = yes; then | |
1821 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1822 | else | |
1823 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1824 | fi | |
1825 | ||
1826 | else | |
1827 | ||
1828 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1829 | if test "x$LINE" != x ; then | |
1830 | eval "DEFAULT_$LINE" | |
1831 | else | |
1832 | no_cache=1 | |
1833 | fi | |
1834 | ||
1835 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1836 | ||
1837 | fi | |
1838 | ||
1839 | ||
1840 | eval "$ac_cv_use_odbc" | |
1841 | if test "$no_cache" != 1; then | |
1842 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1843 | fi | |
1844 | ||
1845 | if test "$wxUSE_ODBC" = yes; then | |
1846 | echo "$ac_t""yes" 1>&6 | |
1847 | else | |
1848 | echo "$ac_t""no" 1>&6 | |
1849 | fi | |
1850 | ||
1851 | ||
1852 | ||
1853 | ||
1854 | ||
1855 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
ab9b9eab | 1856 | echo "configure:1857: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
1857 | no_cache=0 |
1858 | # Check whether --enable-shared or --disable-shared was given. | |
1859 | if test "${enable_shared+set}" = set; then | |
1860 | enableval="$enable_shared" | |
1861 | ||
1862 | if test "$enableval" = yes; then | |
1863 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1864 | else | |
1865 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1866 | fi | |
1867 | ||
1868 | else | |
1869 | ||
1870 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1871 | if test "x$LINE" != x ; then | |
1872 | eval "DEFAULT_$LINE" | |
1873 | else | |
1874 | no_cache=1 | |
1875 | fi | |
1876 | ||
1877 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1878 | ||
1879 | fi | |
1880 | ||
1881 | ||
1882 | eval "$ac_cv_use_shared" | |
1883 | if test "$no_cache" != 1; then | |
1884 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1885 | fi | |
1886 | ||
1887 | if test "$wxUSE_SHARED" = yes; then | |
1888 | echo "$ac_t""yes" 1>&6 | |
1889 | else | |
1890 | echo "$ac_t""no" 1>&6 | |
1891 | fi | |
1892 | ||
1893 | ||
1894 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
ab9b9eab | 1895 | echo "configure:1896: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
1896 | no_cache=0 |
1897 | # Check whether --enable-optimise or --disable-optimise was given. | |
1898 | if test "${enable_optimise+set}" = set; then | |
1899 | enableval="$enable_optimise" | |
1900 | ||
1901 | if test "$enableval" = yes; then | |
1902 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1903 | else | |
1904 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1905 | fi | |
1906 | ||
1907 | else | |
1908 | ||
1909 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1910 | if test "x$LINE" != x ; then | |
1911 | eval "DEFAULT_$LINE" | |
1912 | else | |
1913 | no_cache=1 | |
1914 | fi | |
1915 | ||
1916 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1917 | ||
1918 | fi | |
1919 | ||
1920 | ||
1921 | eval "$ac_cv_use_optimise" | |
1922 | if test "$no_cache" != 1; then | |
1923 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1924 | fi | |
1925 | ||
1926 | if test "$wxUSE_OPTIMISE" = yes; then | |
1927 | echo "$ac_t""yes" 1>&6 | |
1928 | else | |
1929 | echo "$ac_t""no" 1>&6 | |
1930 | fi | |
1931 | ||
1932 | ||
1933 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
ab9b9eab | 1934 | echo "configure:1935: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
1935 | no_cache=0 |
1936 | # Check whether --enable-debug or --disable-debug was given. | |
1937 | if test "${enable_debug+set}" = set; then | |
1938 | enableval="$enable_debug" | |
1939 | ||
1940 | if test "$enableval" = yes; then | |
1941 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1942 | else | |
1943 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1944 | fi | |
1945 | ||
1946 | else | |
1947 | ||
1948 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1949 | if test "x$LINE" != x ; then | |
1950 | eval "DEFAULT_$LINE" | |
1951 | else | |
1952 | no_cache=1 | |
1953 | fi | |
1954 | ||
1955 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1956 | ||
1957 | fi | |
1958 | ||
1959 | ||
1960 | eval "$ac_cv_use_debug" | |
1961 | if test "$no_cache" != 1; then | |
1962 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1963 | fi | |
1964 | ||
1965 | if test "$wxUSE_DEBUG" = yes; then | |
1966 | echo "$ac_t""yes" 1>&6 | |
1967 | else | |
1968 | echo "$ac_t""no" 1>&6 | |
1969 | fi | |
1970 | ||
1971 | ||
1972 | if test "$wxUSE_DEBUG" = "yes"; then | |
1973 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1974 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1975 | elif test "$wxUSE_DEBUG" = "no"; then | |
1976 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1977 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1978 | fi | |
1979 | ||
1980 | ||
1981 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
ab9b9eab | 1982 | echo "configure:1983: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
1983 | no_cache=0 |
1984 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
1985 | if test "${enable_debug_flag+set}" = set; then | |
1986 | enableval="$enable_debug_flag" | |
1987 | ||
1988 | if test "$enableval" = yes; then | |
1989 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
1990 | else | |
1991 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
1992 | fi | |
1993 | ||
1994 | else | |
1995 | ||
1996 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
1997 | if test "x$LINE" != x ; then | |
1998 | eval "DEFAULT_$LINE" | |
1999 | else | |
2000 | no_cache=1 | |
2001 | fi | |
2002 | ||
2003 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2004 | ||
2005 | fi | |
2006 | ||
2007 | ||
2008 | eval "$ac_cv_use_debug_flag" | |
2009 | if test "$no_cache" != 1; then | |
2010 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2011 | fi | |
2012 | ||
2013 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2014 | echo "$ac_t""yes" 1>&6 | |
2015 | else | |
2016 | echo "$ac_t""no" 1>&6 | |
2017 | fi | |
2018 | ||
2019 | ||
2020 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
ab9b9eab | 2021 | echo "configure:2022: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2022 | no_cache=0 |
2023 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2024 | if test "${enable_debug_info+set}" = set; then | |
2025 | enableval="$enable_debug_info" | |
2026 | ||
2027 | if test "$enableval" = yes; then | |
2028 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2029 | else | |
2030 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2031 | fi | |
2032 | ||
2033 | else | |
2034 | ||
2035 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2036 | if test "x$LINE" != x ; then | |
2037 | eval "DEFAULT_$LINE" | |
2038 | else | |
2039 | no_cache=1 | |
2040 | fi | |
2041 | ||
2042 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2043 | ||
2044 | fi | |
2045 | ||
2046 | ||
2047 | eval "$ac_cv_use_debug_info" | |
2048 | if test "$no_cache" != 1; then | |
2049 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2050 | fi | |
2051 | ||
2052 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2053 | echo "$ac_t""yes" 1>&6 | |
2054 | else | |
2055 | echo "$ac_t""no" 1>&6 | |
2056 | fi | |
2057 | ||
2058 | ||
2059 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
ab9b9eab | 2060 | echo "configure:2061: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2061 | no_cache=0 |
2062 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2063 | if test "${enable_debug_gdb+set}" = set; then | |
2064 | enableval="$enable_debug_gdb" | |
2065 | ||
2066 | if test "$enableval" = yes; then | |
2067 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2068 | else | |
2069 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2070 | fi | |
2071 | ||
2072 | else | |
2073 | ||
2074 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2075 | if test "x$LINE" != x ; then | |
2076 | eval "DEFAULT_$LINE" | |
2077 | else | |
2078 | no_cache=1 | |
2079 | fi | |
2080 | ||
2081 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2082 | ||
2083 | fi | |
2084 | ||
2085 | ||
2086 | eval "$ac_cv_use_debug_gdb" | |
2087 | if test "$no_cache" != 1; then | |
2088 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2089 | fi | |
2090 | ||
2091 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2092 | echo "$ac_t""yes" 1>&6 | |
2093 | else | |
2094 | echo "$ac_t""no" 1>&6 | |
2095 | fi | |
2096 | ||
2097 | ||
2098 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
ab9b9eab | 2099 | echo "configure:2100: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2100 | no_cache=0 |
2101 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2102 | if test "${enable_debug_cntxt+set}" = set; then | |
2103 | enableval="$enable_debug_cntxt" | |
2104 | ||
2105 | if test "$enableval" = yes; then | |
2106 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2107 | else | |
2108 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2109 | fi | |
2110 | ||
2111 | else | |
2112 | ||
2113 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2114 | if test "x$LINE" != x ; then | |
2115 | eval "DEFAULT_$LINE" | |
2116 | else | |
2117 | no_cache=1 | |
2118 | fi | |
2119 | ||
2120 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2121 | ||
2122 | fi | |
2123 | ||
2124 | ||
2125 | eval "$ac_cv_use_debug_cntxt" | |
2126 | if test "$no_cache" != 1; then | |
2127 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2128 | fi | |
2129 | ||
2130 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2131 | echo "$ac_t""yes" 1>&6 | |
2132 | else | |
2133 | echo "$ac_t""no" 1>&6 | |
2134 | fi | |
2135 | ||
2136 | ||
2137 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
ab9b9eab | 2138 | echo "configure:2139: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2139 | no_cache=0 |
2140 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2141 | if test "${enable_mem_tracing+set}" = set; then | |
2142 | enableval="$enable_mem_tracing" | |
2143 | ||
2144 | if test "$enableval" = yes; then | |
2145 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2146 | else | |
2147 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2148 | fi | |
2149 | ||
2150 | else | |
2151 | ||
2152 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2153 | if test "x$LINE" != x ; then | |
2154 | eval "DEFAULT_$LINE" | |
2155 | else | |
2156 | no_cache=1 | |
2157 | fi | |
2158 | ||
2159 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2160 | ||
2161 | fi | |
2162 | ||
2163 | ||
2164 | eval "$ac_cv_use_mem_tracing" | |
2165 | if test "$no_cache" != 1; then | |
2166 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2167 | fi | |
2168 | ||
2169 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2170 | echo "$ac_t""yes" 1>&6 | |
2171 | else | |
2172 | echo "$ac_t""no" 1>&6 | |
2173 | fi | |
2174 | ||
2175 | ||
2176 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
ab9b9eab | 2177 | echo "configure:2178: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2178 | no_cache=0 |
2179 | # Check whether --enable-profile or --disable-profile was given. | |
2180 | if test "${enable_profile+set}" = set; then | |
2181 | enableval="$enable_profile" | |
2182 | ||
2183 | if test "$enableval" = yes; then | |
2184 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2185 | else | |
2186 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2187 | fi | |
2188 | ||
2189 | else | |
2190 | ||
2191 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2192 | if test "x$LINE" != x ; then | |
2193 | eval "DEFAULT_$LINE" | |
2194 | else | |
2195 | no_cache=1 | |
2196 | fi | |
2197 | ||
2198 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2199 | ||
2200 | fi | |
2201 | ||
2202 | ||
2203 | eval "$ac_cv_use_profile" | |
2204 | if test "$no_cache" != 1; then | |
2205 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2206 | fi | |
2207 | ||
2208 | if test "$wxUSE_PROFILE" = yes; then | |
2209 | echo "$ac_t""yes" 1>&6 | |
2210 | else | |
2211 | echo "$ac_t""no" 1>&6 | |
2212 | fi | |
2213 | ||
2214 | ||
2215 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
ab9b9eab | 2216 | echo "configure:2217: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2217 | no_cache=0 |
2218 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2219 | if test "${enable_no_rtti+set}" = set; then | |
2220 | enableval="$enable_no_rtti" | |
2221 | ||
2222 | if test "$enableval" = yes; then | |
2223 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2224 | else | |
2225 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2226 | fi | |
2227 | ||
2228 | else | |
2229 | ||
2230 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2231 | if test "x$LINE" != x ; then | |
2232 | eval "DEFAULT_$LINE" | |
2233 | else | |
2234 | no_cache=1 | |
2235 | fi | |
2236 | ||
2237 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2238 | ||
2239 | fi | |
2240 | ||
2241 | ||
2242 | eval "$ac_cv_use_no_rtti" | |
2243 | if test "$no_cache" != 1; then | |
2244 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2245 | fi | |
2246 | ||
2247 | if test "$wxUSE_NO_RTTI" = yes; then | |
2248 | echo "$ac_t""yes" 1>&6 | |
2249 | else | |
2250 | echo "$ac_t""no" 1>&6 | |
2251 | fi | |
2252 | ||
2253 | ||
2254 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
ab9b9eab | 2255 | echo "configure:2256: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2256 | no_cache=0 |
2257 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2258 | if test "${enable_no_exceptions+set}" = set; then | |
2259 | enableval="$enable_no_exceptions" | |
2260 | ||
2261 | if test "$enableval" = yes; then | |
2262 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2263 | else | |
2264 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2265 | fi | |
2266 | ||
2267 | else | |
2268 | ||
2269 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2270 | if test "x$LINE" != x ; then | |
2271 | eval "DEFAULT_$LINE" | |
2272 | else | |
2273 | no_cache=1 | |
2274 | fi | |
2275 | ||
2276 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2277 | ||
2278 | fi | |
2279 | ||
2280 | ||
2281 | eval "$ac_cv_use_no_exceptions" | |
2282 | if test "$no_cache" != 1; then | |
2283 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2284 | fi | |
2285 | ||
2286 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2287 | echo "$ac_t""yes" 1>&6 | |
2288 | else | |
2289 | echo "$ac_t""no" 1>&6 | |
2290 | fi | |
2291 | ||
2292 | ||
2293 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
ab9b9eab | 2294 | echo "configure:2295: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2295 | no_cache=0 |
2296 | # Check whether --enable-permissive or --disable-permissive was given. | |
2297 | if test "${enable_permissive+set}" = set; then | |
2298 | enableval="$enable_permissive" | |
2299 | ||
2300 | if test "$enableval" = yes; then | |
2301 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2302 | else | |
2303 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2304 | fi | |
2305 | ||
2306 | else | |
2307 | ||
2308 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2309 | if test "x$LINE" != x ; then | |
2310 | eval "DEFAULT_$LINE" | |
2311 | else | |
2312 | no_cache=1 | |
2313 | fi | |
2314 | ||
2315 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2316 | ||
2317 | fi | |
2318 | ||
2319 | ||
2320 | eval "$ac_cv_use_permissive" | |
2321 | if test "$no_cache" != 1; then | |
2322 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2323 | fi | |
2324 | ||
2325 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2326 | echo "$ac_t""yes" 1>&6 | |
2327 | else | |
2328 | echo "$ac_t""no" 1>&6 | |
2329 | fi | |
2330 | ||
2331 | ||
2332 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
ab9b9eab | 2333 | echo "configure:2334: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2334 | no_cache=0 |
2335 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2336 | if test "${enable_no_deps+set}" = set; then | |
2337 | enableval="$enable_no_deps" | |
2338 | ||
2339 | if test "$enableval" = yes; then | |
2340 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2341 | else | |
2342 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2343 | fi | |
2344 | ||
2345 | else | |
2346 | ||
2347 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2348 | if test "x$LINE" != x ; then | |
2349 | eval "DEFAULT_$LINE" | |
2350 | else | |
2351 | no_cache=1 | |
2352 | fi | |
2353 | ||
2354 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2355 | ||
2356 | fi | |
2357 | ||
2358 | ||
2359 | eval "$ac_cv_use_no_deps" | |
2360 | if test "$no_cache" != 1; then | |
2361 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2362 | fi | |
2363 | ||
2364 | if test "$wxUSE_NO_DEPS" = yes; then | |
2365 | echo "$ac_t""yes" 1>&6 | |
2366 | else | |
2367 | echo "$ac_t""no" 1>&6 | |
2368 | fi | |
2369 | ||
2370 | ||
2371 | ||
2372 | ||
2373 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
ab9b9eab | 2374 | echo "configure:2375: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2375 | no_cache=0 |
2376 | # Check whether --enable-intl or --disable-intl was given. | |
2377 | if test "${enable_intl+set}" = set; then | |
2378 | enableval="$enable_intl" | |
2379 | ||
2380 | if test "$enableval" = yes; then | |
2381 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2382 | else | |
2383 | ac_cv_use_intl='wxUSE_INTL=no' | |
2384 | fi | |
2385 | ||
2386 | else | |
2387 | ||
2388 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2389 | if test "x$LINE" != x ; then | |
2390 | eval "DEFAULT_$LINE" | |
2391 | else | |
2392 | no_cache=1 | |
2393 | fi | |
2394 | ||
2395 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2396 | ||
2397 | fi | |
2398 | ||
2399 | ||
2400 | eval "$ac_cv_use_intl" | |
2401 | if test "$no_cache" != 1; then | |
2402 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2403 | fi | |
2404 | ||
2405 | if test "$wxUSE_INTL" = yes; then | |
2406 | echo "$ac_t""yes" 1>&6 | |
2407 | else | |
2408 | echo "$ac_t""no" 1>&6 | |
2409 | fi | |
2410 | ||
2411 | ||
2412 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
ab9b9eab | 2413 | echo "configure:2414: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2414 | no_cache=0 |
2415 | # Check whether --enable-config or --disable-config was given. | |
2416 | if test "${enable_config+set}" = set; then | |
2417 | enableval="$enable_config" | |
2418 | ||
2419 | if test "$enableval" = yes; then | |
2420 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2421 | else | |
2422 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2423 | fi | |
2424 | ||
2425 | else | |
2426 | ||
2427 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2428 | if test "x$LINE" != x ; then | |
2429 | eval "DEFAULT_$LINE" | |
2430 | else | |
2431 | no_cache=1 | |
2432 | fi | |
2433 | ||
2434 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2435 | ||
2436 | fi | |
2437 | ||
2438 | ||
2439 | eval "$ac_cv_use_config" | |
2440 | if test "$no_cache" != 1; then | |
2441 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2442 | fi | |
2443 | ||
2444 | if test "$wxUSE_CONFIG" = yes; then | |
2445 | echo "$ac_t""yes" 1>&6 | |
2446 | else | |
2447 | echo "$ac_t""no" 1>&6 | |
2448 | fi | |
2449 | ||
2450 | ||
2451 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 | |
ab9b9eab | 2452 | echo "configure:2453: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2453 | no_cache=0 |
2454 | # Check whether --enable-sockets or --disable-sockets was given. | |
2455 | if test "${enable_sockets+set}" = set; then | |
2456 | enableval="$enable_sockets" | |
2457 | ||
2458 | if test "$enableval" = yes; then | |
2459 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2460 | else | |
2461 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2462 | fi | |
2463 | ||
2464 | else | |
2465 | ||
2466 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2467 | if test "x$LINE" != x ; then | |
2468 | eval "DEFAULT_$LINE" | |
2469 | else | |
2470 | no_cache=1 | |
2471 | fi | |
2472 | ||
2473 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2474 | ||
2475 | fi | |
2476 | ||
2477 | ||
2478 | eval "$ac_cv_use_sockets" | |
2479 | if test "$no_cache" != 1; then | |
2480 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2481 | fi | |
2482 | ||
2483 | if test "$wxUSE_SOCKETS" = yes; then | |
2484 | echo "$ac_t""yes" 1>&6 | |
2485 | else | |
2486 | echo "$ac_t""no" 1>&6 | |
2487 | fi | |
2488 | ||
2489 | ||
2490 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
ab9b9eab | 2491 | echo "configure:2492: checking "for --enable-dialupman"" >&5 |
10f2d63a VZ |
2492 | no_cache=0 |
2493 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2494 | if test "${enable_dialupman+set}" = set; then | |
2495 | enableval="$enable_dialupman" | |
2496 | ||
2497 | if test "$enableval" = yes; then | |
2498 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2499 | else | |
2500 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2501 | fi | |
2502 | ||
2503 | else | |
2504 | ||
2505 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2506 | if test "x$LINE" != x ; then | |
2507 | eval "DEFAULT_$LINE" | |
2508 | else | |
2509 | no_cache=1 | |
2510 | fi | |
2511 | ||
2512 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2513 | ||
2514 | fi | |
2515 | ||
2516 | ||
2517 | eval "$ac_cv_use_dialupman" | |
2518 | if test "$no_cache" != 1; then | |
2519 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2520 | fi | |
2521 | ||
2522 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2523 | echo "$ac_t""yes" 1>&6 | |
2524 | else | |
2525 | echo "$ac_t""no" 1>&6 | |
2526 | fi | |
2527 | ||
2528 | ||
2529 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
ab9b9eab | 2530 | echo "configure:2531: checking "for --enable-ipc"" >&5 |
10f2d63a VZ |
2531 | no_cache=0 |
2532 | # Check whether --enable-ipc or --disable-ipc was given. | |
2533 | if test "${enable_ipc+set}" = set; then | |
2534 | enableval="$enable_ipc" | |
2535 | ||
2536 | if test "$enableval" = yes; then | |
2537 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2538 | else | |
2539 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2540 | fi | |
2541 | ||
2542 | else | |
2543 | ||
2544 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2545 | if test "x$LINE" != x ; then | |
2546 | eval "DEFAULT_$LINE" | |
2547 | else | |
2548 | no_cache=1 | |
2549 | fi | |
2550 | ||
2551 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2552 | ||
2553 | fi | |
2554 | ||
2555 | ||
2556 | eval "$ac_cv_use_ipc" | |
2557 | if test "$no_cache" != 1; then | |
2558 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2559 | fi | |
2560 | ||
2561 | if test "$wxUSE_IPC" = yes; then | |
2562 | echo "$ac_t""yes" 1>&6 | |
2563 | else | |
2564 | echo "$ac_t""no" 1>&6 | |
2565 | fi | |
2566 | ||
2567 | ||
2568 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
ab9b9eab | 2569 | echo "configure:2570: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2570 | no_cache=0 |
2571 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2572 | if test "${enable_apple_ieee+set}" = set; then | |
2573 | enableval="$enable_apple_ieee" | |
2574 | ||
2575 | if test "$enableval" = yes; then | |
2576 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2577 | else | |
2578 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2579 | fi | |
2580 | ||
2581 | else | |
2582 | ||
2583 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2584 | if test "x$LINE" != x ; then | |
2585 | eval "DEFAULT_$LINE" | |
2586 | else | |
2587 | no_cache=1 | |
2588 | fi | |
2589 | ||
2590 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2591 | ||
2592 | fi | |
2593 | ||
2594 | ||
2595 | eval "$ac_cv_use_apple_ieee" | |
2596 | if test "$no_cache" != 1; then | |
2597 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2598 | fi | |
2599 | ||
2600 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2601 | echo "$ac_t""yes" 1>&6 | |
2602 | else | |
2603 | echo "$ac_t""no" 1>&6 | |
2604 | fi | |
2605 | ||
2606 | ||
2607 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
ab9b9eab | 2608 | echo "configure:2609: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2609 | no_cache=0 |
2610 | # Check whether --enable-timedate or --disable-timedate was given. | |
2611 | if test "${enable_timedate+set}" = set; then | |
2612 | enableval="$enable_timedate" | |
2613 | ||
2614 | if test "$enableval" = yes; then | |
2615 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2616 | else | |
2617 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2618 | fi | |
2619 | ||
2620 | else | |
2621 | ||
2622 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2623 | if test "x$LINE" != x ; then | |
2624 | eval "DEFAULT_$LINE" | |
2625 | else | |
2626 | no_cache=1 | |
2627 | fi | |
2628 | ||
2629 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2630 | ||
2631 | fi | |
2632 | ||
2633 | ||
2634 | eval "$ac_cv_use_timedate" | |
2635 | if test "$no_cache" != 1; then | |
2636 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2637 | fi | |
2638 | ||
2639 | if test "$wxUSE_TIMEDATE" = yes; then | |
2640 | echo "$ac_t""yes" 1>&6 | |
2641 | else | |
2642 | echo "$ac_t""no" 1>&6 | |
2643 | fi | |
2644 | ||
2645 | ||
2646 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
ab9b9eab | 2647 | echo "configure:2648: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2648 | no_cache=0 |
2649 | # Check whether --enable-wave or --disable-wave was given. | |
2650 | if test "${enable_wave+set}" = set; then | |
2651 | enableval="$enable_wave" | |
2652 | ||
2653 | if test "$enableval" = yes; then | |
2654 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2655 | else | |
2656 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2657 | fi | |
2658 | ||
2659 | else | |
2660 | ||
2661 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2662 | if test "x$LINE" != x ; then | |
2663 | eval "DEFAULT_$LINE" | |
2664 | else | |
2665 | no_cache=1 | |
2666 | fi | |
2667 | ||
2668 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2669 | ||
2670 | fi | |
2671 | ||
2672 | ||
2673 | eval "$ac_cv_use_wave" | |
2674 | if test "$no_cache" != 1; then | |
2675 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2676 | fi | |
2677 | ||
2678 | if test "$wxUSE_WAVE" = yes; then | |
2679 | echo "$ac_t""yes" 1>&6 | |
2680 | else | |
2681 | echo "$ac_t""no" 1>&6 | |
2682 | fi | |
2683 | ||
2684 | ||
2685 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
ab9b9eab | 2686 | echo "configure:2687: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2687 | no_cache=0 |
2688 | # Check whether --enable-fraction or --disable-fraction was given. | |
2689 | if test "${enable_fraction+set}" = set; then | |
2690 | enableval="$enable_fraction" | |
2691 | ||
2692 | if test "$enableval" = yes; then | |
2693 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2694 | else | |
2695 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2696 | fi | |
2697 | ||
2698 | else | |
2699 | ||
2700 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2701 | if test "x$LINE" != x ; then | |
2702 | eval "DEFAULT_$LINE" | |
2703 | else | |
2704 | no_cache=1 | |
2705 | fi | |
2706 | ||
2707 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2708 | ||
2709 | fi | |
2710 | ||
2711 | ||
2712 | eval "$ac_cv_use_fraction" | |
2713 | if test "$no_cache" != 1; then | |
2714 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2715 | fi | |
2716 | ||
2717 | if test "$wxUSE_FRACTION" = yes; then | |
2718 | echo "$ac_t""yes" 1>&6 | |
2719 | else | |
2720 | echo "$ac_t""no" 1>&6 | |
2721 | fi | |
2722 | ||
2723 | ||
2724 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
ab9b9eab | 2725 | echo "configure:2726: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2726 | no_cache=0 |
2727 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2728 | if test "${enable_dynlib+set}" = set; then | |
2729 | enableval="$enable_dynlib" | |
2730 | ||
2731 | if test "$enableval" = yes; then | |
2732 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2733 | else | |
2734 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2735 | fi | |
2736 | ||
2737 | else | |
2738 | ||
2739 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2740 | if test "x$LINE" != x ; then | |
2741 | eval "DEFAULT_$LINE" | |
2742 | else | |
2743 | no_cache=1 | |
2744 | fi | |
2745 | ||
2746 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2747 | ||
2748 | fi | |
2749 | ||
2750 | ||
2751 | eval "$ac_cv_use_dynlib" | |
2752 | if test "$no_cache" != 1; then | |
2753 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2754 | fi | |
2755 | ||
2756 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2757 | echo "$ac_t""yes" 1>&6 | |
2758 | else | |
2759 | echo "$ac_t""no" 1>&6 | |
2760 | fi | |
2761 | ||
2762 | ||
2763 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
ab9b9eab | 2764 | echo "configure:2765: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2765 | no_cache=0 |
2766 | # Check whether --enable-longlong or --disable-longlong was given. | |
2767 | if test "${enable_longlong+set}" = set; then | |
2768 | enableval="$enable_longlong" | |
2769 | ||
2770 | if test "$enableval" = yes; then | |
2771 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2772 | else | |
2773 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2774 | fi | |
2775 | ||
2776 | else | |
2777 | ||
2778 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2779 | if test "x$LINE" != x ; then | |
2780 | eval "DEFAULT_$LINE" | |
2781 | else | |
2782 | no_cache=1 | |
2783 | fi | |
2784 | ||
2785 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2786 | ||
2787 | fi | |
2788 | ||
2789 | ||
2790 | eval "$ac_cv_use_longlong" | |
2791 | if test "$no_cache" != 1; then | |
2792 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2793 | fi | |
2794 | ||
2795 | if test "$wxUSE_LONGLONG" = yes; then | |
2796 | echo "$ac_t""yes" 1>&6 | |
2797 | else | |
2798 | echo "$ac_t""no" 1>&6 | |
2799 | fi | |
2800 | ||
2801 | ||
2802 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
ab9b9eab | 2803 | echo "configure:2804: checking "for --enable-log"" >&5 |
10f2d63a VZ |
2804 | no_cache=0 |
2805 | # Check whether --enable-log or --disable-log was given. | |
2806 | if test "${enable_log+set}" = set; then | |
2807 | enableval="$enable_log" | |
2808 | ||
2809 | if test "$enableval" = yes; then | |
2810 | ac_cv_use_log='wxUSE_LOG=yes' | |
2811 | else | |
2812 | ac_cv_use_log='wxUSE_LOG=no' | |
2813 | fi | |
2814 | ||
2815 | else | |
2816 | ||
2817 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2818 | if test "x$LINE" != x ; then | |
2819 | eval "DEFAULT_$LINE" | |
2820 | else | |
2821 | no_cache=1 | |
2822 | fi | |
2823 | ||
2824 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2825 | ||
2826 | fi | |
2827 | ||
2828 | ||
2829 | eval "$ac_cv_use_log" | |
2830 | if test "$no_cache" != 1; then | |
2831 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2832 | fi | |
2833 | ||
2834 | if test "$wxUSE_LOG" = yes; then | |
2835 | echo "$ac_t""yes" 1>&6 | |
2836 | else | |
2837 | echo "$ac_t""no" 1>&6 | |
2838 | fi | |
2839 | ||
2840 | ||
2841 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
ab9b9eab | 2842 | echo "configure:2843: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
2843 | no_cache=0 |
2844 | # Check whether --enable-streams or --disable-streams was given. | |
2845 | if test "${enable_streams+set}" = set; then | |
2846 | enableval="$enable_streams" | |
2847 | ||
2848 | if test "$enableval" = yes; then | |
2849 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2850 | else | |
2851 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2852 | fi | |
2853 | ||
2854 | else | |
2855 | ||
2856 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2857 | if test "x$LINE" != x ; then | |
2858 | eval "DEFAULT_$LINE" | |
2859 | else | |
2860 | no_cache=1 | |
2861 | fi | |
2862 | ||
2863 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2864 | ||
2865 | fi | |
2866 | ||
2867 | ||
2868 | eval "$ac_cv_use_streams" | |
2869 | if test "$no_cache" != 1; then | |
2870 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2871 | fi | |
2872 | ||
2873 | if test "$wxUSE_STREAMS" = yes; then | |
2874 | echo "$ac_t""yes" 1>&6 | |
2875 | else | |
2876 | echo "$ac_t""no" 1>&6 | |
2877 | fi | |
2878 | ||
2879 | ||
2880 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
ab9b9eab | 2881 | echo "configure:2882: checking "for --enable-file"" >&5 |
10f2d63a VZ |
2882 | no_cache=0 |
2883 | # Check whether --enable-file or --disable-file was given. | |
2884 | if test "${enable_file+set}" = set; then | |
2885 | enableval="$enable_file" | |
2886 | ||
2887 | if test "$enableval" = yes; then | |
2888 | ac_cv_use_file='wxUSE_FILE=yes' | |
2889 | else | |
2890 | ac_cv_use_file='wxUSE_FILE=no' | |
2891 | fi | |
2892 | ||
2893 | else | |
2894 | ||
2895 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2896 | if test "x$LINE" != x ; then | |
2897 | eval "DEFAULT_$LINE" | |
2898 | else | |
2899 | no_cache=1 | |
2900 | fi | |
2901 | ||
2902 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2903 | ||
2904 | fi | |
2905 | ||
2906 | ||
2907 | eval "$ac_cv_use_file" | |
2908 | if test "$no_cache" != 1; then | |
2909 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2910 | fi | |
2911 | ||
2912 | if test "$wxUSE_FILE" = yes; then | |
2913 | echo "$ac_t""yes" 1>&6 | |
2914 | else | |
2915 | echo "$ac_t""no" 1>&6 | |
2916 | fi | |
2917 | ||
2918 | ||
2919 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
ab9b9eab | 2920 | echo "configure:2921: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
2921 | no_cache=0 |
2922 | # Check whether --enable-textfile or --disable-textfile was given. | |
2923 | if test "${enable_textfile+set}" = set; then | |
2924 | enableval="$enable_textfile" | |
2925 | ||
2926 | if test "$enableval" = yes; then | |
2927 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2928 | else | |
2929 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2930 | fi | |
2931 | ||
2932 | else | |
2933 | ||
2934 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2935 | if test "x$LINE" != x ; then | |
2936 | eval "DEFAULT_$LINE" | |
2937 | else | |
2938 | no_cache=1 | |
2939 | fi | |
2940 | ||
2941 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2942 | ||
2943 | fi | |
2944 | ||
2945 | ||
2946 | eval "$ac_cv_use_textfile" | |
2947 | if test "$no_cache" != 1; then | |
2948 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2949 | fi | |
2950 | ||
2951 | if test "$wxUSE_TEXTFILE" = yes; then | |
2952 | echo "$ac_t""yes" 1>&6 | |
2953 | else | |
2954 | echo "$ac_t""no" 1>&6 | |
2955 | fi | |
2956 | ||
2957 | ||
2958 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
ab9b9eab | 2959 | echo "configure:2960: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
2960 | no_cache=0 |
2961 | # Check whether --enable-unicode or --disable-unicode was given. | |
2962 | if test "${enable_unicode+set}" = set; then | |
2963 | enableval="$enable_unicode" | |
2964 | ||
2965 | if test "$enableval" = yes; then | |
2966 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2967 | else | |
2968 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2969 | fi | |
2970 | ||
2971 | else | |
2972 | ||
2973 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
2974 | if test "x$LINE" != x ; then | |
2975 | eval "DEFAULT_$LINE" | |
2976 | else | |
2977 | no_cache=1 | |
2978 | fi | |
2979 | ||
2980 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
2981 | ||
2982 | fi | |
2983 | ||
2984 | ||
2985 | eval "$ac_cv_use_unicode" | |
2986 | if test "$no_cache" != 1; then | |
2987 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
2988 | fi | |
2989 | ||
2990 | if test "$wxUSE_UNICODE" = yes; then | |
2991 | echo "$ac_t""yes" 1>&6 | |
2992 | else | |
2993 | echo "$ac_t""no" 1>&6 | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
ab9b9eab | 2998 | echo "configure:2999: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
2999 | no_cache=0 |
3000 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3001 | if test "${enable_wcsrtombs+set}" = set; then | |
3002 | enableval="$enable_wcsrtombs" | |
3003 | ||
3004 | if test "$enableval" = yes; then | |
3005 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3006 | else | |
3007 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3008 | fi | |
3009 | ||
3010 | else | |
3011 | ||
3012 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3013 | if test "x$LINE" != x ; then | |
3014 | eval "DEFAULT_$LINE" | |
3015 | else | |
3016 | no_cache=1 | |
3017 | fi | |
3018 | ||
3019 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3020 | ||
3021 | fi | |
3022 | ||
3023 | ||
3024 | eval "$ac_cv_use_wcsrtombs" | |
3025 | if test "$no_cache" != 1; then | |
3026 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3027 | fi | |
3028 | ||
3029 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3030 | echo "$ac_t""yes" 1>&6 | |
3031 | else | |
3032 | echo "$ac_t""no" 1>&6 | |
3033 | fi | |
3034 | ||
3035 | ||
3036 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
ab9b9eab | 3037 | echo "configure:3038: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3038 | no_cache=0 |
3039 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3040 | if test "${enable_wxprintfv+set}" = set; then | |
3041 | enableval="$enable_wxprintfv" | |
3042 | ||
3043 | if test "$enableval" = yes; then | |
3044 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3045 | else | |
3046 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3047 | fi | |
3048 | ||
3049 | else | |
3050 | ||
3051 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3052 | if test "x$LINE" != x ; then | |
3053 | eval "DEFAULT_$LINE" | |
3054 | else | |
3055 | no_cache=1 | |
3056 | fi | |
3057 | ||
3058 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3059 | ||
3060 | fi | |
3061 | ||
3062 | ||
3063 | eval "$ac_cv_use_wxprintfv" | |
3064 | if test "$no_cache" != 1; then | |
3065 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3066 | fi | |
3067 | ||
3068 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3069 | echo "$ac_t""yes" 1>&6 | |
3070 | else | |
3071 | echo "$ac_t""no" 1>&6 | |
3072 | fi | |
3073 | ||
3074 | ||
3075 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
ab9b9eab | 3076 | echo "configure:3077: checking "for --enable-joystick"" >&5 |
10f2d63a VZ |
3077 | no_cache=0 |
3078 | # Check whether --enable-joystick or --disable-joystick was given. | |
3079 | if test "${enable_joystick+set}" = set; then | |
3080 | enableval="$enable_joystick" | |
3081 | ||
3082 | if test "$enableval" = yes; then | |
3083 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3084 | else | |
3085 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3086 | fi | |
3087 | ||
3088 | else | |
3089 | ||
3090 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3091 | if test "x$LINE" != x ; then | |
3092 | eval "DEFAULT_$LINE" | |
3093 | else | |
3094 | no_cache=1 | |
3095 | fi | |
3096 | ||
3097 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3098 | ||
3099 | fi | |
3100 | ||
3101 | ||
3102 | eval "$ac_cv_use_joystick" | |
3103 | if test "$no_cache" != 1; then | |
3104 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3105 | fi | |
3106 | ||
3107 | if test "$wxUSE_JOYSTICK" = yes; then | |
3108 | echo "$ac_t""yes" 1>&6 | |
3109 | else | |
3110 | echo "$ac_t""no" 1>&6 | |
3111 | fi | |
3112 | ||
3113 | ||
3114 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
ab9b9eab | 3115 | echo "configure:3116: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3116 | no_cache=0 |
3117 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3118 | if test "${enable_std_iostreams+set}" = set; then | |
3119 | enableval="$enable_std_iostreams" | |
3120 | ||
3121 | if test "$enableval" = yes; then | |
3122 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3123 | else | |
3124 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3125 | fi | |
3126 | ||
3127 | else | |
3128 | ||
3129 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3130 | if test "x$LINE" != x ; then | |
3131 | eval "DEFAULT_$LINE" | |
3132 | else | |
3133 | no_cache=1 | |
3134 | fi | |
3135 | ||
3136 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3137 | ||
3138 | fi | |
3139 | ||
3140 | ||
3141 | eval "$ac_cv_use_std_iostreams" | |
3142 | if test "$no_cache" != 1; then | |
3143 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3144 | fi | |
3145 | ||
3146 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3147 | echo "$ac_t""yes" 1>&6 | |
3148 | else | |
3149 | echo "$ac_t""no" 1>&6 | |
3150 | fi | |
3151 | ||
3152 | ||
3153 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
ab9b9eab | 3154 | echo "configure:3155: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3155 | no_cache=0 |
3156 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3157 | if test "${enable_fs_inet+set}" = set; then | |
3158 | enableval="$enable_fs_inet" | |
3159 | ||
3160 | if test "$enableval" = yes; then | |
3161 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3162 | else | |
3163 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3164 | fi | |
3165 | ||
3166 | else | |
3167 | ||
3168 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3169 | if test "x$LINE" != x ; then | |
3170 | eval "DEFAULT_$LINE" | |
3171 | else | |
3172 | no_cache=1 | |
3173 | fi | |
3174 | ||
3175 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3176 | ||
3177 | fi | |
3178 | ||
3179 | ||
3180 | eval "$ac_cv_use_fs_inet" | |
3181 | if test "$no_cache" != 1; then | |
3182 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3183 | fi | |
3184 | ||
3185 | if test "$wxUSE_FS_INET" = yes; then | |
3186 | echo "$ac_t""yes" 1>&6 | |
3187 | else | |
3188 | echo "$ac_t""no" 1>&6 | |
3189 | fi | |
3190 | ||
3191 | ||
3192 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
ab9b9eab | 3193 | echo "configure:3194: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3194 | no_cache=0 |
3195 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3196 | if test "${enable_fs_zip+set}" = set; then | |
3197 | enableval="$enable_fs_zip" | |
3198 | ||
3199 | if test "$enableval" = yes; then | |
3200 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3201 | else | |
3202 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3203 | fi | |
3204 | ||
3205 | else | |
3206 | ||
3207 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3208 | if test "x$LINE" != x ; then | |
3209 | eval "DEFAULT_$LINE" | |
3210 | else | |
3211 | no_cache=1 | |
3212 | fi | |
3213 | ||
3214 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3215 | ||
3216 | fi | |
3217 | ||
3218 | ||
3219 | eval "$ac_cv_use_fs_zip" | |
3220 | if test "$no_cache" != 1; then | |
3221 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3222 | fi | |
3223 | ||
3224 | if test "$wxUSE_FS_ZIP" = yes; then | |
3225 | echo "$ac_t""yes" 1>&6 | |
3226 | else | |
3227 | echo "$ac_t""no" 1>&6 | |
3228 | fi | |
3229 | ||
3230 | ||
3231 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
ab9b9eab | 3232 | echo "configure:3233: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3233 | no_cache=0 |
3234 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3235 | if test "${enable_zipstream+set}" = set; then | |
3236 | enableval="$enable_zipstream" | |
3237 | ||
3238 | if test "$enableval" = yes; then | |
3239 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3240 | else | |
3241 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3242 | fi | |
3243 | ||
3244 | else | |
3245 | ||
3246 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3247 | if test "x$LINE" != x ; then | |
3248 | eval "DEFAULT_$LINE" | |
3249 | else | |
3250 | no_cache=1 | |
3251 | fi | |
3252 | ||
3253 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3254 | ||
3255 | fi | |
3256 | ||
3257 | ||
3258 | eval "$ac_cv_use_zipstream" | |
3259 | if test "$no_cache" != 1; then | |
3260 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3261 | fi | |
3262 | ||
3263 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3264 | echo "$ac_t""yes" 1>&6 | |
3265 | else | |
3266 | echo "$ac_t""no" 1>&6 | |
3267 | fi | |
3268 | ||
3269 | ||
3270 | ||
3271 | ||
3272 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
ab9b9eab | 3273 | echo "configure:3274: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3274 | no_cache=0 |
3275 | # Check whether --enable-threads or --disable-threads was given. | |
3276 | if test "${enable_threads+set}" = set; then | |
3277 | enableval="$enable_threads" | |
3278 | ||
3279 | if test "$enableval" = yes; then | |
3280 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3281 | else | |
3282 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3283 | fi | |
3284 | ||
3285 | else | |
3286 | ||
3287 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3288 | if test "x$LINE" != x ; then | |
3289 | eval "DEFAULT_$LINE" | |
3290 | else | |
3291 | no_cache=1 | |
3292 | fi | |
3293 | ||
3294 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3295 | ||
3296 | fi | |
3297 | ||
3298 | ||
3299 | eval "$ac_cv_use_threads" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_THREADS" = yes; then | |
3305 | echo "$ac_t""yes" 1>&6 | |
3306 | else | |
3307 | echo "$ac_t""no" 1>&6 | |
3308 | fi | |
3309 | ||
3310 | ||
3311 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
ab9b9eab | 3312 | echo "configure:3313: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3313 | no_cache=0 |
3314 | # Check whether --enable-serial or --disable-serial was given. | |
3315 | if test "${enable_serial+set}" = set; then | |
3316 | enableval="$enable_serial" | |
3317 | ||
3318 | if test "$enableval" = yes; then | |
3319 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3320 | else | |
3321 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3322 | fi | |
3323 | ||
3324 | else | |
3325 | ||
3326 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3327 | if test "x$LINE" != x ; then | |
3328 | eval "DEFAULT_$LINE" | |
3329 | else | |
3330 | no_cache=1 | |
3331 | fi | |
3332 | ||
3333 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3334 | ||
3335 | fi | |
3336 | ||
3337 | ||
3338 | eval "$ac_cv_use_serial" | |
3339 | if test "$no_cache" != 1; then | |
3340 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3341 | fi | |
3342 | ||
3343 | if test "$wxUSE_SERIAL" = yes; then | |
3344 | echo "$ac_t""yes" 1>&6 | |
3345 | else | |
3346 | echo "$ac_t""no" 1>&6 | |
3347 | fi | |
3348 | ||
3349 | ||
3350 | ||
3351 | ||
3352 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
ab9b9eab | 3353 | echo "configure:3354: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3354 | no_cache=0 |
3355 | # Check whether --enable-docview or --disable-docview was given. | |
3356 | if test "${enable_docview+set}" = set; then | |
3357 | enableval="$enable_docview" | |
3358 | ||
3359 | if test "$enableval" = yes; then | |
3360 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3361 | else | |
3362 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3363 | fi | |
3364 | ||
3365 | else | |
3366 | ||
3367 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3368 | if test "x$LINE" != x ; then | |
3369 | eval "DEFAULT_$LINE" | |
3370 | else | |
3371 | no_cache=1 | |
3372 | fi | |
3373 | ||
3374 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3375 | ||
3376 | fi | |
3377 | ||
3378 | ||
3379 | eval "$ac_cv_use_docview" | |
3380 | if test "$no_cache" != 1; then | |
3381 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3382 | fi | |
3383 | ||
3384 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3385 | echo "$ac_t""yes" 1>&6 | |
3386 | else | |
3387 | echo "$ac_t""no" 1>&6 | |
3388 | fi | |
3389 | ||
3390 | ||
3391 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
ab9b9eab | 3392 | echo "configure:3393: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3393 | no_cache=0 |
3394 | # Check whether --enable-help or --disable-help was given. | |
3395 | if test "${enable_help+set}" = set; then | |
3396 | enableval="$enable_help" | |
3397 | ||
3398 | if test "$enableval" = yes; then | |
3399 | ac_cv_use_help='wxUSE_HELP=yes' | |
3400 | else | |
3401 | ac_cv_use_help='wxUSE_HELP=no' | |
3402 | fi | |
3403 | ||
3404 | else | |
3405 | ||
3406 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3414 | ||
3415 | fi | |
3416 | ||
3417 | ||
3418 | eval "$ac_cv_use_help" | |
3419 | if test "$no_cache" != 1; then | |
3420 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3421 | fi | |
3422 | ||
3423 | if test "$wxUSE_HELP" = yes; then | |
3424 | echo "$ac_t""yes" 1>&6 | |
3425 | else | |
3426 | echo "$ac_t""no" 1>&6 | |
3427 | fi | |
3428 | ||
3429 | ||
3430 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
ab9b9eab | 3431 | echo "configure:3432: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3432 | no_cache=0 |
3433 | # Check whether --enable-constraints or --disable-constraints was given. | |
3434 | if test "${enable_constraints+set}" = set; then | |
3435 | enableval="$enable_constraints" | |
3436 | ||
3437 | if test "$enableval" = yes; then | |
3438 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3439 | else | |
3440 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3441 | fi | |
3442 | ||
3443 | else | |
3444 | ||
3445 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3446 | if test "x$LINE" != x ; then | |
3447 | eval "DEFAULT_$LINE" | |
3448 | else | |
3449 | no_cache=1 | |
3450 | fi | |
3451 | ||
3452 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3453 | ||
3454 | fi | |
3455 | ||
3456 | ||
3457 | eval "$ac_cv_use_constraints" | |
3458 | if test "$no_cache" != 1; then | |
3459 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3460 | fi | |
3461 | ||
3462 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3463 | echo "$ac_t""yes" 1>&6 | |
3464 | else | |
3465 | echo "$ac_t""no" 1>&6 | |
3466 | fi | |
3467 | ||
3468 | ||
3469 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
ab9b9eab | 3470 | echo "configure:3471: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3471 | no_cache=0 |
3472 | # Check whether --enable-printarch or --disable-printarch was given. | |
3473 | if test "${enable_printarch+set}" = set; then | |
3474 | enableval="$enable_printarch" | |
3475 | ||
3476 | if test "$enableval" = yes; then | |
3477 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3478 | else | |
3479 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3480 | fi | |
3481 | ||
3482 | else | |
3483 | ||
3484 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3485 | if test "x$LINE" != x ; then | |
3486 | eval "DEFAULT_$LINE" | |
3487 | else | |
3488 | no_cache=1 | |
3489 | fi | |
3490 | ||
3491 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3492 | ||
3493 | fi | |
3494 | ||
3495 | ||
3496 | eval "$ac_cv_use_printarch" | |
3497 | if test "$no_cache" != 1; then | |
3498 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3499 | fi | |
3500 | ||
3501 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3502 | echo "$ac_t""yes" 1>&6 | |
3503 | else | |
3504 | echo "$ac_t""no" 1>&6 | |
3505 | fi | |
3506 | ||
3507 | ||
3508 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
ab9b9eab | 3509 | echo "configure:3510: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3510 | no_cache=0 |
3511 | # Check whether --enable-mdi or --disable-mdi was given. | |
3512 | if test "${enable_mdi+set}" = set; then | |
3513 | enableval="$enable_mdi" | |
3514 | ||
3515 | if test "$enableval" = yes; then | |
3516 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3517 | else | |
3518 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3519 | fi | |
3520 | ||
3521 | else | |
3522 | ||
3523 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3524 | if test "x$LINE" != x ; then | |
3525 | eval "DEFAULT_$LINE" | |
3526 | else | |
3527 | no_cache=1 | |
3528 | fi | |
3529 | ||
3530 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3531 | ||
3532 | fi | |
3533 | ||
3534 | ||
3535 | eval "$ac_cv_use_mdi" | |
3536 | if test "$no_cache" != 1; then | |
3537 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3538 | fi | |
3539 | ||
3540 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3541 | echo "$ac_t""yes" 1>&6 | |
3542 | else | |
3543 | echo "$ac_t""no" 1>&6 | |
3544 | fi | |
3545 | ||
3546 | ||
3547 | ||
3548 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
ab9b9eab | 3549 | echo "configure:3550: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3550 | no_cache=0 |
3551 | # Check whether --enable-postscript or --disable-postscript was given. | |
3552 | if test "${enable_postscript+set}" = set; then | |
3553 | enableval="$enable_postscript" | |
3554 | ||
3555 | if test "$enableval" = yes; then | |
3556 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3557 | else | |
3558 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3559 | fi | |
3560 | ||
3561 | else | |
3562 | ||
3563 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3571 | ||
3572 | fi | |
3573 | ||
3574 | ||
3575 | eval "$ac_cv_use_postscript" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3581 | echo "$ac_t""yes" 1>&6 | |
3582 | else | |
3583 | echo "$ac_t""no" 1>&6 | |
3584 | fi | |
3585 | ||
3586 | ||
3587 | ||
3588 | ||
3589 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
ab9b9eab | 3590 | echo "configure:3591: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3591 | no_cache=0 |
3592 | # Check whether --enable-prologio or --disable-prologio was given. | |
3593 | if test "${enable_prologio+set}" = set; then | |
3594 | enableval="$enable_prologio" | |
3595 | ||
3596 | if test "$enableval" = yes; then | |
3597 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3598 | else | |
3599 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3600 | fi | |
3601 | ||
3602 | else | |
3603 | ||
3604 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3605 | if test "x$LINE" != x ; then | |
3606 | eval "DEFAULT_$LINE" | |
3607 | else | |
3608 | no_cache=1 | |
3609 | fi | |
3610 | ||
3611 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3612 | ||
3613 | fi | |
3614 | ||
3615 | ||
3616 | eval "$ac_cv_use_prologio" | |
3617 | if test "$no_cache" != 1; then | |
3618 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3619 | fi | |
3620 | ||
3621 | if test "$wxUSE_PROLOGIO" = yes; then | |
3622 | echo "$ac_t""yes" 1>&6 | |
3623 | else | |
3624 | echo "$ac_t""no" 1>&6 | |
3625 | fi | |
3626 | ||
3627 | ||
3628 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
ab9b9eab | 3629 | echo "configure:3630: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3630 | no_cache=0 |
3631 | # Check whether --enable-resources or --disable-resources was given. | |
3632 | if test "${enable_resources+set}" = set; then | |
3633 | enableval="$enable_resources" | |
3634 | ||
3635 | if test "$enableval" = yes; then | |
3636 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3637 | else | |
3638 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3639 | fi | |
3640 | ||
3641 | else | |
3642 | ||
3643 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3644 | if test "x$LINE" != x ; then | |
3645 | eval "DEFAULT_$LINE" | |
3646 | else | |
3647 | no_cache=1 | |
3648 | fi | |
3649 | ||
3650 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3651 | ||
3652 | fi | |
3653 | ||
3654 | ||
3655 | eval "$ac_cv_use_resources" | |
3656 | if test "$no_cache" != 1; then | |
3657 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3658 | fi | |
3659 | ||
3660 | if test "$wxUSE_RESOURCES" = yes; then | |
3661 | echo "$ac_t""yes" 1>&6 | |
3662 | else | |
3663 | echo "$ac_t""no" 1>&6 | |
3664 | fi | |
3665 | ||
3666 | ||
3667 | ||
3668 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
ab9b9eab | 3669 | echo "configure:3670: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3670 | no_cache=0 |
3671 | # Check whether --enable-xresources or --disable-xresources was given. | |
3672 | if test "${enable_xresources+set}" = set; then | |
3673 | enableval="$enable_xresources" | |
3674 | ||
3675 | if test "$enableval" = yes; then | |
3676 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3677 | else | |
3678 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3679 | fi | |
3680 | ||
3681 | else | |
3682 | ||
3683 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3684 | if test "x$LINE" != x ; then | |
3685 | eval "DEFAULT_$LINE" | |
3686 | else | |
3687 | no_cache=1 | |
3688 | fi | |
3689 | ||
3690 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3691 | ||
3692 | fi | |
3693 | ||
3694 | ||
3695 | eval "$ac_cv_use_xresources" | |
3696 | if test "$no_cache" != 1; then | |
3697 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3698 | fi | |
3699 | ||
3700 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3701 | echo "$ac_t""yes" 1>&6 | |
3702 | else | |
3703 | echo "$ac_t""no" 1>&6 | |
3704 | fi | |
3705 | ||
3706 | ||
3707 | ||
3708 | ||
3709 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
ab9b9eab | 3710 | echo "configure:3711: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3711 | no_cache=0 |
3712 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3713 | if test "${enable_clipboard+set}" = set; then | |
3714 | enableval="$enable_clipboard" | |
3715 | ||
3716 | if test "$enableval" = yes; then | |
3717 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3718 | else | |
3719 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3720 | fi | |
3721 | ||
3722 | else | |
3723 | ||
3724 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3725 | if test "x$LINE" != x ; then | |
3726 | eval "DEFAULT_$LINE" | |
3727 | else | |
3728 | no_cache=1 | |
3729 | fi | |
3730 | ||
3731 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3732 | ||
3733 | fi | |
3734 | ||
3735 | ||
3736 | eval "$ac_cv_use_clipboard" | |
3737 | if test "$no_cache" != 1; then | |
3738 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3739 | fi | |
3740 | ||
3741 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3742 | echo "$ac_t""yes" 1>&6 | |
3743 | else | |
3744 | echo "$ac_t""no" 1>&6 | |
3745 | fi | |
3746 | ||
3747 | ||
3748 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
ab9b9eab | 3749 | echo "configure:3750: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
3750 | no_cache=0 |
3751 | # Check whether --enable-dnd or --disable-dnd was given. | |
3752 | if test "${enable_dnd+set}" = set; then | |
3753 | enableval="$enable_dnd" | |
3754 | ||
3755 | if test "$enableval" = yes; then | |
3756 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3757 | else | |
3758 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3759 | fi | |
3760 | ||
3761 | else | |
3762 | ||
3763 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3764 | if test "x$LINE" != x ; then | |
3765 | eval "DEFAULT_$LINE" | |
3766 | else | |
3767 | no_cache=1 | |
3768 | fi | |
3769 | ||
3770 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3771 | ||
3772 | fi | |
3773 | ||
3774 | ||
3775 | eval "$ac_cv_use_dnd" | |
3776 | if test "$no_cache" != 1; then | |
3777 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3778 | fi | |
3779 | ||
3780 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3781 | echo "$ac_t""yes" 1>&6 | |
3782 | else | |
3783 | echo "$ac_t""no" 1>&6 | |
3784 | fi | |
3785 | ||
3786 | ||
3787 | ||
3788 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
ab9b9eab | 3789 | echo "configure:3790: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
3790 | no_cache=0 |
3791 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3792 | if test "${enable_wxtree+set}" = set; then | |
3793 | enableval="$enable_wxtree" | |
3794 | ||
3795 | if test "$enableval" = yes; then | |
3796 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3797 | else | |
3798 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3799 | fi | |
3800 | ||
3801 | else | |
3802 | ||
3803 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3804 | if test "x$LINE" != x ; then | |
3805 | eval "DEFAULT_$LINE" | |
3806 | else | |
3807 | no_cache=1 | |
3808 | fi | |
3809 | ||
3810 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3811 | ||
3812 | fi | |
3813 | ||
3814 | ||
3815 | eval "$ac_cv_use_wxtree" | |
3816 | if test "$no_cache" != 1; then | |
3817 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3818 | fi | |
3819 | ||
3820 | if test "$wxUSE_WXTREE" = yes; then | |
3821 | echo "$ac_t""yes" 1>&6 | |
3822 | else | |
3823 | echo "$ac_t""no" 1>&6 | |
3824 | fi | |
3825 | ||
3826 | ||
3827 | ||
3828 | ||
3829 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
ab9b9eab | 3830 | echo "configure:3831: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
3831 | no_cache=0 |
3832 | # Check whether --enable-controls or --disable-controls was given. | |
3833 | if test "${enable_controls+set}" = set; then | |
3834 | enableval="$enable_controls" | |
3835 | ||
3836 | if test "$enableval" = yes; then | |
3837 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3838 | else | |
3839 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3840 | fi | |
3841 | ||
3842 | else | |
3843 | ||
3844 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3845 | if test "x$LINE" != x ; then | |
3846 | eval "DEFAULT_$LINE" | |
3847 | else | |
3848 | no_cache=1 | |
3849 | fi | |
3850 | ||
3851 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3852 | ||
3853 | fi | |
3854 | ||
3855 | ||
3856 | eval "$ac_cv_use_controls" | |
3857 | if test "$no_cache" != 1; then | |
3858 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3859 | fi | |
3860 | ||
3861 | if test "$wxUSE_CONTROLS" = yes; then | |
3862 | echo "$ac_t""yes" 1>&6 | |
3863 | else | |
3864 | echo "$ac_t""no" 1>&6 | |
3865 | fi | |
3866 | ||
3867 | ||
3868 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3869 | DEFAULT_wxUSE_ACCEL=yes | |
3870 | DEFAULT_wxUSE_CARET=yes | |
3871 | DEFAULT_wxUSE_COMBOBOX=yes | |
3872 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3873 | DEFAULT_wxUSE_CHECKBOX=yes | |
3874 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3875 | DEFAULT_wxUSE_CHOICE=yes | |
3876 | DEFAULT_wxUSE_GAUGE=yes | |
3877 | DEFAULT_wxUSE_GRID=yes | |
fc9c7c09 | 3878 | DEFAULT_wxUSE_NEW_GRID=no |
10f2d63a VZ |
3879 | DEFAULT_wxUSE_IMAGLIST=yes |
3880 | DEFAULT_wxUSE_LISTBOX=yes | |
3881 | DEFAULT_wxUSE_LISTCTRL=yes | |
3882 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3883 | DEFAULT_wxUSE_RADIOBOX=yes | |
3884 | DEFAULT_wxUSE_RADIOBTN=yes | |
3885 | DEFAULT_wxUSE_SASH=yes | |
3886 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3887 | DEFAULT_wxUSE_SLIDER=yes | |
3888 | DEFAULT_wxUSE_SPINBTN=yes | |
3889 | DEFAULT_wxUSE_SPLITTER=yes | |
3890 | DEFAULT_wxUSE_STATBMP=yes | |
3891 | DEFAULT_wxUSE_STATBOX=yes | |
3892 | DEFAULT_wxUSE_STATLINE=yes | |
3893 | DEFAULT_wxUSE_STATUSBAR=yes | |
3894 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3895 | DEFAULT_wxUSE_TOOLBAR=yes | |
3896 | DEFAULT_wxUSE_TOOLTIPS=yes | |
3897 | DEFAULT_wxUSE_TREECTRL=yes | |
3898 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3899 | DEFAULT_wxUSE_ACCEL=no | |
3900 | DEFAULT_wxUSE_CARET=no | |
3901 | DEFAULT_wxUSE_COMBOBOX=no | |
3902 | DEFAULT_wxUSE_BMPBUTTON=no | |
3903 | DEFAULT_wxUSE_CHECKBOX=no | |
3904 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3905 | DEFAULT_wxUSE_CHOICE=no | |
3906 | DEFAULT_wxUSE_GAUGE=no | |
3907 | DEFAULT_wxUSE_GRID=no | |
3908 | DEFAULT_wxUSE_NEW_GRID=no | |
3909 | DEFAULT_wxUSE_IMAGLIST=no | |
3910 | DEFAULT_wxUSE_LISTBOX=no | |
3911 | DEFAULT_wxUSE_LISTCTRL=no | |
3912 | DEFAULT_wxUSE_NOTEBOOK=no | |
3913 | DEFAULT_wxUSE_RADIOBOX=no | |
3914 | DEFAULT_wxUSE_RADIOBTN=no | |
3915 | DEFAULT_wxUSE_SASH=no | |
3916 | DEFAULT_wxUSE_SCROLLBAR=no | |
3917 | DEFAULT_wxUSE_SLIDER=no | |
3918 | DEFAULT_wxUSE_SPINBTN=no | |
3919 | DEFAULT_wxUSE_SPLITTER=no | |
3920 | DEFAULT_wxUSE_STATBMP=no | |
3921 | DEFAULT_wxUSE_STATBOX=no | |
3922 | DEFAULT_wxUSE_STATLINE=no | |
3923 | DEFAULT_wxUSE_STATUSBAR=no | |
3924 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3925 | DEFAULT_wxUSE_TOOLBAR=no | |
3926 | DEFAULT_wxUSE_TOOLTIPS=no | |
3927 | DEFAULT_wxUSE_TREECTRL=no | |
3928 | fi | |
3929 | ||
3930 | ||
3931 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
ab9b9eab | 3932 | echo "configure:3933: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
3933 | no_cache=0 |
3934 | # Check whether --enable-accel or --disable-accel was given. | |
3935 | if test "${enable_accel+set}" = set; then | |
3936 | enableval="$enable_accel" | |
3937 | ||
3938 | if test "$enableval" = yes; then | |
3939 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3940 | else | |
3941 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3942 | fi | |
3943 | ||
3944 | else | |
3945 | ||
3946 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3947 | if test "x$LINE" != x ; then | |
3948 | eval "DEFAULT_$LINE" | |
3949 | else | |
3950 | no_cache=1 | |
3951 | fi | |
3952 | ||
3953 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3954 | ||
3955 | fi | |
3956 | ||
3957 | ||
3958 | eval "$ac_cv_use_accel" | |
3959 | if test "$no_cache" != 1; then | |
3960 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3961 | fi | |
3962 | ||
3963 | if test "$wxUSE_ACCEL" = yes; then | |
3964 | echo "$ac_t""yes" 1>&6 | |
3965 | else | |
3966 | echo "$ac_t""no" 1>&6 | |
3967 | fi | |
3968 | ||
3969 | ||
3970 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
ab9b9eab | 3971 | echo "configure:3972: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
3972 | no_cache=0 |
3973 | # Check whether --enable-caret or --disable-caret was given. | |
3974 | if test "${enable_caret+set}" = set; then | |
3975 | enableval="$enable_caret" | |
3976 | ||
3977 | if test "$enableval" = yes; then | |
3978 | ac_cv_use_caret='wxUSE_CARET=yes' | |
3979 | else | |
3980 | ac_cv_use_caret='wxUSE_CARET=no' | |
3981 | fi | |
3982 | ||
3983 | else | |
3984 | ||
3985 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
3986 | if test "x$LINE" != x ; then | |
3987 | eval "DEFAULT_$LINE" | |
3988 | else | |
3989 | no_cache=1 | |
3990 | fi | |
3991 | ||
3992 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
3993 | ||
3994 | fi | |
3995 | ||
3996 | ||
3997 | eval "$ac_cv_use_caret" | |
3998 | if test "$no_cache" != 1; then | |
3999 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4000 | fi | |
4001 | ||
4002 | if test "$wxUSE_CARET" = yes; then | |
4003 | echo "$ac_t""yes" 1>&6 | |
4004 | else | |
4005 | echo "$ac_t""no" 1>&6 | |
4006 | fi | |
4007 | ||
4008 | ||
4009 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
ab9b9eab | 4010 | echo "configure:4011: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4011 | no_cache=0 |
4012 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4013 | if test "${enable_bmpbutton+set}" = set; then | |
4014 | enableval="$enable_bmpbutton" | |
4015 | ||
4016 | if test "$enableval" = yes; then | |
4017 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4018 | else | |
4019 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4020 | fi | |
4021 | ||
4022 | else | |
4023 | ||
4024 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4025 | if test "x$LINE" != x ; then | |
4026 | eval "DEFAULT_$LINE" | |
4027 | else | |
4028 | no_cache=1 | |
4029 | fi | |
4030 | ||
4031 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4032 | ||
4033 | fi | |
4034 | ||
4035 | ||
4036 | eval "$ac_cv_use_bmpbutton" | |
4037 | if test "$no_cache" != 1; then | |
4038 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4039 | fi | |
4040 | ||
4041 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4042 | echo "$ac_t""yes" 1>&6 | |
4043 | else | |
4044 | echo "$ac_t""no" 1>&6 | |
4045 | fi | |
4046 | ||
4047 | ||
4048 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
ab9b9eab | 4049 | echo "configure:4050: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4050 | no_cache=0 |
4051 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4052 | if test "${enable_checkbox+set}" = set; then | |
4053 | enableval="$enable_checkbox" | |
4054 | ||
4055 | if test "$enableval" = yes; then | |
4056 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4057 | else | |
4058 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4059 | fi | |
4060 | ||
4061 | else | |
4062 | ||
4063 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4064 | if test "x$LINE" != x ; then | |
4065 | eval "DEFAULT_$LINE" | |
4066 | else | |
4067 | no_cache=1 | |
4068 | fi | |
4069 | ||
4070 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4071 | ||
4072 | fi | |
4073 | ||
4074 | ||
4075 | eval "$ac_cv_use_checkbox" | |
4076 | if test "$no_cache" != 1; then | |
4077 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4078 | fi | |
4079 | ||
4080 | if test "$wxUSE_CHECKBOX" = yes; then | |
4081 | echo "$ac_t""yes" 1>&6 | |
4082 | else | |
4083 | echo "$ac_t""no" 1>&6 | |
4084 | fi | |
4085 | ||
4086 | ||
4087 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
ab9b9eab | 4088 | echo "configure:4089: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4089 | no_cache=0 |
4090 | # Check whether --enable-checklst or --disable-checklst was given. | |
4091 | if test "${enable_checklst+set}" = set; then | |
4092 | enableval="$enable_checklst" | |
4093 | ||
4094 | if test "$enableval" = yes; then | |
4095 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4096 | else | |
4097 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4098 | fi | |
4099 | ||
4100 | else | |
4101 | ||
4102 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4103 | if test "x$LINE" != x ; then | |
4104 | eval "DEFAULT_$LINE" | |
4105 | else | |
4106 | no_cache=1 | |
4107 | fi | |
4108 | ||
4109 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4110 | ||
4111 | fi | |
4112 | ||
4113 | ||
4114 | eval "$ac_cv_use_checklst" | |
4115 | if test "$no_cache" != 1; then | |
4116 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4117 | fi | |
4118 | ||
4119 | if test "$wxUSE_CHECKLST" = yes; then | |
4120 | echo "$ac_t""yes" 1>&6 | |
4121 | else | |
4122 | echo "$ac_t""no" 1>&6 | |
4123 | fi | |
4124 | ||
4125 | ||
4126 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
ab9b9eab | 4127 | echo "configure:4128: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4128 | no_cache=0 |
4129 | # Check whether --enable-choice or --disable-choice was given. | |
4130 | if test "${enable_choice+set}" = set; then | |
4131 | enableval="$enable_choice" | |
4132 | ||
4133 | if test "$enableval" = yes; then | |
4134 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4135 | else | |
4136 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4137 | fi | |
4138 | ||
4139 | else | |
4140 | ||
4141 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4142 | if test "x$LINE" != x ; then | |
4143 | eval "DEFAULT_$LINE" | |
4144 | else | |
4145 | no_cache=1 | |
4146 | fi | |
4147 | ||
4148 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4149 | ||
4150 | fi | |
4151 | ||
4152 | ||
4153 | eval "$ac_cv_use_choice" | |
4154 | if test "$no_cache" != 1; then | |
4155 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4156 | fi | |
4157 | ||
4158 | if test "$wxUSE_CHOICE" = yes; then | |
4159 | echo "$ac_t""yes" 1>&6 | |
4160 | else | |
4161 | echo "$ac_t""no" 1>&6 | |
4162 | fi | |
4163 | ||
4164 | ||
4165 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
ab9b9eab | 4166 | echo "configure:4167: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4167 | no_cache=0 |
4168 | # Check whether --enable-combobox or --disable-combobox was given. | |
4169 | if test "${enable_combobox+set}" = set; then | |
4170 | enableval="$enable_combobox" | |
4171 | ||
4172 | if test "$enableval" = yes; then | |
4173 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4174 | else | |
4175 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4176 | fi | |
4177 | ||
4178 | else | |
4179 | ||
4180 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4181 | if test "x$LINE" != x ; then | |
4182 | eval "DEFAULT_$LINE" | |
4183 | else | |
4184 | no_cache=1 | |
4185 | fi | |
4186 | ||
4187 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4188 | ||
4189 | fi | |
4190 | ||
4191 | ||
4192 | eval "$ac_cv_use_combobox" | |
4193 | if test "$no_cache" != 1; then | |
4194 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4195 | fi | |
4196 | ||
4197 | if test "$wxUSE_COMBOBOX" = yes; then | |
4198 | echo "$ac_t""yes" 1>&6 | |
4199 | else | |
4200 | echo "$ac_t""no" 1>&6 | |
4201 | fi | |
4202 | ||
4203 | ||
4204 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
ab9b9eab | 4205 | echo "configure:4206: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4206 | no_cache=0 |
4207 | # Check whether --enable-gauge or --disable-gauge was given. | |
4208 | if test "${enable_gauge+set}" = set; then | |
4209 | enableval="$enable_gauge" | |
4210 | ||
4211 | if test "$enableval" = yes; then | |
4212 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4213 | else | |
4214 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4215 | fi | |
4216 | ||
4217 | else | |
4218 | ||
4219 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4220 | if test "x$LINE" != x ; then | |
4221 | eval "DEFAULT_$LINE" | |
4222 | else | |
4223 | no_cache=1 | |
4224 | fi | |
4225 | ||
4226 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4227 | ||
4228 | fi | |
4229 | ||
4230 | ||
4231 | eval "$ac_cv_use_gauge" | |
4232 | if test "$no_cache" != 1; then | |
4233 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4234 | fi | |
4235 | ||
4236 | if test "$wxUSE_GAUGE" = yes; then | |
4237 | echo "$ac_t""yes" 1>&6 | |
4238 | else | |
4239 | echo "$ac_t""no" 1>&6 | |
4240 | fi | |
4241 | ||
4242 | ||
4243 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
ab9b9eab | 4244 | echo "configure:4245: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4245 | no_cache=0 |
4246 | # Check whether --enable-grid or --disable-grid was given. | |
4247 | if test "${enable_grid+set}" = set; then | |
4248 | enableval="$enable_grid" | |
4249 | ||
4250 | if test "$enableval" = yes; then | |
4251 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4252 | else | |
4253 | ac_cv_use_grid='wxUSE_GRID=no' | |
4254 | fi | |
4255 | ||
4256 | else | |
4257 | ||
4258 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4259 | if test "x$LINE" != x ; then | |
4260 | eval "DEFAULT_$LINE" | |
4261 | else | |
4262 | no_cache=1 | |
4263 | fi | |
4264 | ||
4265 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4266 | ||
4267 | fi | |
4268 | ||
4269 | ||
4270 | eval "$ac_cv_use_grid" | |
4271 | if test "$no_cache" != 1; then | |
4272 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4273 | fi | |
4274 | ||
4275 | if test "$wxUSE_GRID" = yes; then | |
4276 | echo "$ac_t""yes" 1>&6 | |
4277 | else | |
4278 | echo "$ac_t""no" 1>&6 | |
4279 | fi | |
4280 | ||
4281 | ||
4282 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
ab9b9eab | 4283 | echo "configure:4284: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4284 | no_cache=0 |
4285 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4286 | if test "${enable_newgrid+set}" = set; then | |
4287 | enableval="$enable_newgrid" | |
4288 | ||
4289 | if test "$enableval" = yes; then | |
4290 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4291 | else | |
4292 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4293 | fi | |
4294 | ||
4295 | else | |
4296 | ||
4297 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4298 | if test "x$LINE" != x ; then | |
4299 | eval "DEFAULT_$LINE" | |
4300 | else | |
4301 | no_cache=1 | |
4302 | fi | |
4303 | ||
4304 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4305 | ||
4306 | fi | |
4307 | ||
4308 | ||
4309 | eval "$ac_cv_use_newgrid" | |
4310 | if test "$no_cache" != 1; then | |
4311 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4312 | fi | |
4313 | ||
4314 | if test "$wxUSE_NEW_GRID" = yes; then | |
4315 | echo "$ac_t""yes" 1>&6 | |
4316 | else | |
4317 | echo "$ac_t""no" 1>&6 | |
4318 | fi | |
4319 | ||
4320 | ||
4321 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
ab9b9eab | 4322 | echo "configure:4323: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4323 | no_cache=0 |
4324 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4325 | if test "${enable_imaglist+set}" = set; then | |
4326 | enableval="$enable_imaglist" | |
4327 | ||
4328 | if test "$enableval" = yes; then | |
4329 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4330 | else | |
4331 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4332 | fi | |
4333 | ||
4334 | else | |
4335 | ||
4336 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4337 | if test "x$LINE" != x ; then | |
4338 | eval "DEFAULT_$LINE" | |
4339 | else | |
4340 | no_cache=1 | |
4341 | fi | |
4342 | ||
4343 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4344 | ||
4345 | fi | |
4346 | ||
4347 | ||
4348 | eval "$ac_cv_use_imaglist" | |
4349 | if test "$no_cache" != 1; then | |
4350 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4351 | fi | |
4352 | ||
4353 | if test "$wxUSE_IMAGLIST" = yes; then | |
4354 | echo "$ac_t""yes" 1>&6 | |
4355 | else | |
4356 | echo "$ac_t""no" 1>&6 | |
4357 | fi | |
4358 | ||
4359 | ||
4360 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
ab9b9eab | 4361 | echo "configure:4362: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4362 | no_cache=0 |
4363 | # Check whether --enable-listbox or --disable-listbox was given. | |
4364 | if test "${enable_listbox+set}" = set; then | |
4365 | enableval="$enable_listbox" | |
4366 | ||
4367 | if test "$enableval" = yes; then | |
4368 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4369 | else | |
4370 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4371 | fi | |
4372 | ||
4373 | else | |
4374 | ||
4375 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4376 | if test "x$LINE" != x ; then | |
4377 | eval "DEFAULT_$LINE" | |
4378 | else | |
4379 | no_cache=1 | |
4380 | fi | |
4381 | ||
4382 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4383 | ||
4384 | fi | |
4385 | ||
4386 | ||
4387 | eval "$ac_cv_use_listbox" | |
4388 | if test "$no_cache" != 1; then | |
4389 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4390 | fi | |
4391 | ||
4392 | if test "$wxUSE_LISTBOX" = yes; then | |
4393 | echo "$ac_t""yes" 1>&6 | |
4394 | else | |
4395 | echo "$ac_t""no" 1>&6 | |
4396 | fi | |
4397 | ||
4398 | ||
4399 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
ab9b9eab | 4400 | echo "configure:4401: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4401 | no_cache=0 |
4402 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4403 | if test "${enable_listctrl+set}" = set; then | |
4404 | enableval="$enable_listctrl" | |
4405 | ||
4406 | if test "$enableval" = yes; then | |
4407 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4408 | else | |
4409 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4410 | fi | |
4411 | ||
4412 | else | |
4413 | ||
4414 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4415 | if test "x$LINE" != x ; then | |
4416 | eval "DEFAULT_$LINE" | |
4417 | else | |
4418 | no_cache=1 | |
4419 | fi | |
4420 | ||
4421 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4422 | ||
4423 | fi | |
4424 | ||
4425 | ||
4426 | eval "$ac_cv_use_listctrl" | |
4427 | if test "$no_cache" != 1; then | |
4428 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4429 | fi | |
4430 | ||
4431 | if test "$wxUSE_LISTCTRL" = yes; then | |
4432 | echo "$ac_t""yes" 1>&6 | |
4433 | else | |
4434 | echo "$ac_t""no" 1>&6 | |
4435 | fi | |
4436 | ||
4437 | ||
4438 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
ab9b9eab | 4439 | echo "configure:4440: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4440 | no_cache=0 |
4441 | # Check whether --enable-notebook or --disable-notebook was given. | |
4442 | if test "${enable_notebook+set}" = set; then | |
4443 | enableval="$enable_notebook" | |
4444 | ||
4445 | if test "$enableval" = yes; then | |
4446 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4447 | else | |
4448 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4449 | fi | |
4450 | ||
4451 | else | |
4452 | ||
4453 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4454 | if test "x$LINE" != x ; then | |
4455 | eval "DEFAULT_$LINE" | |
4456 | else | |
4457 | no_cache=1 | |
4458 | fi | |
4459 | ||
4460 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4461 | ||
4462 | fi | |
4463 | ||
4464 | ||
4465 | eval "$ac_cv_use_notebook" | |
4466 | if test "$no_cache" != 1; then | |
4467 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4468 | fi | |
4469 | ||
4470 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4471 | echo "$ac_t""yes" 1>&6 | |
4472 | else | |
4473 | echo "$ac_t""no" 1>&6 | |
4474 | fi | |
4475 | ||
4476 | ||
4477 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
ab9b9eab | 4478 | echo "configure:4479: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4479 | no_cache=0 |
4480 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4481 | if test "${enable_radiobox+set}" = set; then | |
4482 | enableval="$enable_radiobox" | |
4483 | ||
4484 | if test "$enableval" = yes; then | |
4485 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4486 | else | |
4487 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4488 | fi | |
4489 | ||
4490 | else | |
4491 | ||
4492 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4493 | if test "x$LINE" != x ; then | |
4494 | eval "DEFAULT_$LINE" | |
4495 | else | |
4496 | no_cache=1 | |
4497 | fi | |
4498 | ||
4499 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4500 | ||
4501 | fi | |
4502 | ||
4503 | ||
4504 | eval "$ac_cv_use_radiobox" | |
4505 | if test "$no_cache" != 1; then | |
4506 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4507 | fi | |
4508 | ||
4509 | if test "$wxUSE_RADIOBOX" = yes; then | |
4510 | echo "$ac_t""yes" 1>&6 | |
4511 | else | |
4512 | echo "$ac_t""no" 1>&6 | |
4513 | fi | |
4514 | ||
4515 | ||
4516 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
ab9b9eab | 4517 | echo "configure:4518: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4518 | no_cache=0 |
4519 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4520 | if test "${enable_radiobtn+set}" = set; then | |
4521 | enableval="$enable_radiobtn" | |
4522 | ||
4523 | if test "$enableval" = yes; then | |
4524 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4525 | else | |
4526 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4527 | fi | |
4528 | ||
4529 | else | |
4530 | ||
4531 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4532 | if test "x$LINE" != x ; then | |
4533 | eval "DEFAULT_$LINE" | |
4534 | else | |
4535 | no_cache=1 | |
4536 | fi | |
4537 | ||
4538 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4539 | ||
4540 | fi | |
4541 | ||
4542 | ||
4543 | eval "$ac_cv_use_radiobtn" | |
4544 | if test "$no_cache" != 1; then | |
4545 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4546 | fi | |
4547 | ||
4548 | if test "$wxUSE_RADIOBTN" = yes; then | |
4549 | echo "$ac_t""yes" 1>&6 | |
4550 | else | |
4551 | echo "$ac_t""no" 1>&6 | |
4552 | fi | |
4553 | ||
4554 | ||
4555 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
ab9b9eab | 4556 | echo "configure:4557: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4557 | no_cache=0 |
4558 | # Check whether --enable-sash or --disable-sash was given. | |
4559 | if test "${enable_sash+set}" = set; then | |
4560 | enableval="$enable_sash" | |
4561 | ||
4562 | if test "$enableval" = yes; then | |
4563 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4564 | else | |
4565 | ac_cv_use_sash='wxUSE_SASH=no' | |
4566 | fi | |
4567 | ||
4568 | else | |
4569 | ||
4570 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4571 | if test "x$LINE" != x ; then | |
4572 | eval "DEFAULT_$LINE" | |
4573 | else | |
4574 | no_cache=1 | |
4575 | fi | |
4576 | ||
4577 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4578 | ||
4579 | fi | |
4580 | ||
4581 | ||
4582 | eval "$ac_cv_use_sash" | |
4583 | if test "$no_cache" != 1; then | |
4584 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4585 | fi | |
4586 | ||
4587 | if test "$wxUSE_SASH" = yes; then | |
4588 | echo "$ac_t""yes" 1>&6 | |
4589 | else | |
4590 | echo "$ac_t""no" 1>&6 | |
4591 | fi | |
4592 | ||
4593 | ||
4594 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
ab9b9eab | 4595 | echo "configure:4596: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4596 | no_cache=0 |
4597 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4598 | if test "${enable_scrollbar+set}" = set; then | |
4599 | enableval="$enable_scrollbar" | |
4600 | ||
4601 | if test "$enableval" = yes; then | |
4602 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4603 | else | |
4604 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4605 | fi | |
4606 | ||
4607 | else | |
4608 | ||
4609 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4610 | if test "x$LINE" != x ; then | |
4611 | eval "DEFAULT_$LINE" | |
4612 | else | |
4613 | no_cache=1 | |
4614 | fi | |
4615 | ||
4616 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4617 | ||
4618 | fi | |
4619 | ||
4620 | ||
4621 | eval "$ac_cv_use_scrollbar" | |
4622 | if test "$no_cache" != 1; then | |
4623 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4624 | fi | |
4625 | ||
4626 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4627 | echo "$ac_t""yes" 1>&6 | |
4628 | else | |
4629 | echo "$ac_t""no" 1>&6 | |
4630 | fi | |
4631 | ||
4632 | ||
4633 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
ab9b9eab | 4634 | echo "configure:4635: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4635 | no_cache=0 |
4636 | # Check whether --enable-slider or --disable-slider was given. | |
4637 | if test "${enable_slider+set}" = set; then | |
4638 | enableval="$enable_slider" | |
4639 | ||
4640 | if test "$enableval" = yes; then | |
4641 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4642 | else | |
4643 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4644 | fi | |
4645 | ||
4646 | else | |
4647 | ||
4648 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4649 | if test "x$LINE" != x ; then | |
4650 | eval "DEFAULT_$LINE" | |
4651 | else | |
4652 | no_cache=1 | |
4653 | fi | |
4654 | ||
4655 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4656 | ||
4657 | fi | |
4658 | ||
4659 | ||
4660 | eval "$ac_cv_use_slider" | |
4661 | if test "$no_cache" != 1; then | |
4662 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4663 | fi | |
4664 | ||
4665 | if test "$wxUSE_SLIDER" = yes; then | |
4666 | echo "$ac_t""yes" 1>&6 | |
4667 | else | |
4668 | echo "$ac_t""no" 1>&6 | |
4669 | fi | |
4670 | ||
4671 | ||
4672 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
ab9b9eab | 4673 | echo "configure:4674: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4674 | no_cache=0 |
4675 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4676 | if test "${enable_spinbtn+set}" = set; then | |
4677 | enableval="$enable_spinbtn" | |
4678 | ||
4679 | if test "$enableval" = yes; then | |
4680 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4681 | else | |
4682 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4683 | fi | |
4684 | ||
4685 | else | |
4686 | ||
4687 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4688 | if test "x$LINE" != x ; then | |
4689 | eval "DEFAULT_$LINE" | |
4690 | else | |
4691 | no_cache=1 | |
4692 | fi | |
4693 | ||
4694 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4695 | ||
4696 | fi | |
4697 | ||
4698 | ||
4699 | eval "$ac_cv_use_spinbtn" | |
4700 | if test "$no_cache" != 1; then | |
4701 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4702 | fi | |
4703 | ||
4704 | if test "$wxUSE_SPINBTN" = yes; then | |
4705 | echo "$ac_t""yes" 1>&6 | |
4706 | else | |
4707 | echo "$ac_t""no" 1>&6 | |
4708 | fi | |
4709 | ||
4710 | ||
4711 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 | |
ab9b9eab | 4712 | echo "configure:4713: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
4713 | no_cache=0 |
4714 | # Check whether --enable-splitter or --disable-splitter was given. | |
4715 | if test "${enable_splitter+set}" = set; then | |
4716 | enableval="$enable_splitter" | |
4717 | ||
4718 | if test "$enableval" = yes; then | |
4719 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4720 | else | |
4721 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4722 | fi | |
4723 | ||
4724 | else | |
4725 | ||
4726 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4727 | if test "x$LINE" != x ; then | |
4728 | eval "DEFAULT_$LINE" | |
4729 | else | |
4730 | no_cache=1 | |
4731 | fi | |
4732 | ||
4733 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4734 | ||
4735 | fi | |
4736 | ||
4737 | ||
4738 | eval "$ac_cv_use_splitter" | |
4739 | if test "$no_cache" != 1; then | |
4740 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4741 | fi | |
4742 | ||
4743 | if test "$wxUSE_SPLITTER" = yes; then | |
4744 | echo "$ac_t""yes" 1>&6 | |
4745 | else | |
4746 | echo "$ac_t""no" 1>&6 | |
4747 | fi | |
4748 | ||
4749 | ||
4750 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
ab9b9eab | 4751 | echo "configure:4752: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
4752 | no_cache=0 |
4753 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4754 | if test "${enable_statbmp+set}" = set; then | |
4755 | enableval="$enable_statbmp" | |
4756 | ||
4757 | if test "$enableval" = yes; then | |
4758 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4759 | else | |
4760 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4761 | fi | |
4762 | ||
4763 | else | |
4764 | ||
4765 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4766 | if test "x$LINE" != x ; then | |
4767 | eval "DEFAULT_$LINE" | |
4768 | else | |
4769 | no_cache=1 | |
4770 | fi | |
4771 | ||
4772 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4773 | ||
4774 | fi | |
4775 | ||
4776 | ||
4777 | eval "$ac_cv_use_statbmp" | |
4778 | if test "$no_cache" != 1; then | |
4779 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4780 | fi | |
4781 | ||
4782 | if test "$wxUSE_STATBMP" = yes; then | |
4783 | echo "$ac_t""yes" 1>&6 | |
4784 | else | |
4785 | echo "$ac_t""no" 1>&6 | |
4786 | fi | |
4787 | ||
4788 | ||
4789 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
ab9b9eab | 4790 | echo "configure:4791: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
4791 | no_cache=0 |
4792 | # Check whether --enable-statbox or --disable-statbox was given. | |
4793 | if test "${enable_statbox+set}" = set; then | |
4794 | enableval="$enable_statbox" | |
4795 | ||
4796 | if test "$enableval" = yes; then | |
4797 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4798 | else | |
4799 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4800 | fi | |
4801 | ||
4802 | else | |
4803 | ||
4804 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4805 | if test "x$LINE" != x ; then | |
4806 | eval "DEFAULT_$LINE" | |
4807 | else | |
4808 | no_cache=1 | |
4809 | fi | |
4810 | ||
4811 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4812 | ||
4813 | fi | |
4814 | ||
4815 | ||
4816 | eval "$ac_cv_use_statbox" | |
4817 | if test "$no_cache" != 1; then | |
4818 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4819 | fi | |
4820 | ||
4821 | if test "$wxUSE_STATBOX" = yes; then | |
4822 | echo "$ac_t""yes" 1>&6 | |
4823 | else | |
4824 | echo "$ac_t""no" 1>&6 | |
4825 | fi | |
4826 | ||
4827 | ||
4828 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
ab9b9eab | 4829 | echo "configure:4830: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
4830 | no_cache=0 |
4831 | # Check whether --enable-statline or --disable-statline was given. | |
4832 | if test "${enable_statline+set}" = set; then | |
4833 | enableval="$enable_statline" | |
4834 | ||
4835 | if test "$enableval" = yes; then | |
4836 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4837 | else | |
4838 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4839 | fi | |
4840 | ||
4841 | else | |
4842 | ||
4843 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4844 | if test "x$LINE" != x ; then | |
4845 | eval "DEFAULT_$LINE" | |
4846 | else | |
4847 | no_cache=1 | |
4848 | fi | |
4849 | ||
4850 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4851 | ||
4852 | fi | |
4853 | ||
4854 | ||
4855 | eval "$ac_cv_use_statline" | |
4856 | if test "$no_cache" != 1; then | |
4857 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4858 | fi | |
4859 | ||
4860 | if test "$wxUSE_STATLINE" = yes; then | |
4861 | echo "$ac_t""yes" 1>&6 | |
4862 | else | |
4863 | echo "$ac_t""no" 1>&6 | |
4864 | fi | |
4865 | ||
4866 | ||
4867 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
ab9b9eab | 4868 | echo "configure:4869: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
4869 | no_cache=0 |
4870 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4871 | if test "${enable_statusbar+set}" = set; then | |
4872 | enableval="$enable_statusbar" | |
4873 | ||
4874 | if test "$enableval" = yes; then | |
4875 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4876 | else | |
4877 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4878 | fi | |
4879 | ||
4880 | else | |
4881 | ||
4882 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4883 | if test "x$LINE" != x ; then | |
4884 | eval "DEFAULT_$LINE" | |
4885 | else | |
4886 | no_cache=1 | |
4887 | fi | |
4888 | ||
4889 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4890 | ||
4891 | fi | |
4892 | ||
4893 | ||
4894 | eval "$ac_cv_use_statusbar" | |
4895 | if test "$no_cache" != 1; then | |
4896 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4897 | fi | |
4898 | ||
4899 | if test "$wxUSE_STATUSBAR" = yes; then | |
4900 | echo "$ac_t""yes" 1>&6 | |
4901 | else | |
4902 | echo "$ac_t""no" 1>&6 | |
4903 | fi | |
4904 | ||
4905 | ||
4906 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
ab9b9eab | 4907 | echo "configure:4908: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
4908 | no_cache=0 |
4909 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4910 | if test "${enable_tabdialog+set}" = set; then | |
4911 | enableval="$enable_tabdialog" | |
4912 | ||
4913 | if test "$enableval" = yes; then | |
4914 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4915 | else | |
4916 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4917 | fi | |
4918 | ||
4919 | else | |
4920 | ||
4921 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4922 | if test "x$LINE" != x ; then | |
4923 | eval "DEFAULT_$LINE" | |
4924 | else | |
4925 | no_cache=1 | |
4926 | fi | |
4927 | ||
4928 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
4929 | ||
4930 | fi | |
4931 | ||
4932 | ||
4933 | eval "$ac_cv_use_tabdialog" | |
4934 | if test "$no_cache" != 1; then | |
4935 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
4936 | fi | |
4937 | ||
4938 | if test "$wxUSE_TABDIALOG" = yes; then | |
4939 | echo "$ac_t""yes" 1>&6 | |
4940 | else | |
4941 | echo "$ac_t""no" 1>&6 | |
4942 | fi | |
4943 | ||
4944 | ||
4945 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
ab9b9eab | 4946 | echo "configure:4947: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
4947 | no_cache=0 |
4948 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
4949 | if test "${enable_toolbar+set}" = set; then | |
4950 | enableval="$enable_toolbar" | |
4951 | ||
4952 | if test "$enableval" = yes; then | |
4953 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
4954 | else | |
4955 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
4956 | fi | |
4957 | ||
4958 | else | |
4959 | ||
4960 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
4961 | if test "x$LINE" != x ; then | |
4962 | eval "DEFAULT_$LINE" | |
4963 | else | |
4964 | no_cache=1 | |
4965 | fi | |
4966 | ||
4967 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
4968 | ||
4969 | fi | |
4970 | ||
4971 | ||
4972 | eval "$ac_cv_use_toolbar" | |
4973 | if test "$no_cache" != 1; then | |
4974 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
4975 | fi | |
4976 | ||
4977 | if test "$wxUSE_TOOLBAR" = yes; then | |
4978 | echo "$ac_t""yes" 1>&6 | |
4979 | else | |
4980 | echo "$ac_t""no" 1>&6 | |
4981 | fi | |
4982 | ||
4983 | ||
4984 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 | |
ab9b9eab | 4985 | echo "configure:4986: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
4986 | no_cache=0 |
4987 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
4988 | if test "${enable_treectrl+set}" = set; then | |
4989 | enableval="$enable_treectrl" | |
4990 | ||
4991 | if test "$enableval" = yes; then | |
4992 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
4993 | else | |
4994 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
4995 | fi | |
4996 | ||
4997 | else | |
4998 | ||
4999 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5000 | if test "x$LINE" != x ; then | |
5001 | eval "DEFAULT_$LINE" | |
5002 | else | |
5003 | no_cache=1 | |
5004 | fi | |
5005 | ||
5006 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5007 | ||
5008 | fi | |
5009 | ||
5010 | ||
5011 | eval "$ac_cv_use_treectrl" | |
5012 | if test "$no_cache" != 1; then | |
5013 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5014 | fi | |
5015 | ||
5016 | if test "$wxUSE_TREECTRL" = yes; then | |
5017 | echo "$ac_t""yes" 1>&6 | |
5018 | else | |
5019 | echo "$ac_t""no" 1>&6 | |
5020 | fi | |
5021 | ||
5022 | ||
5023 | ||
5024 | ||
5025 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
ab9b9eab | 5026 | echo "configure:5027: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5027 | no_cache=0 |
5028 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5029 | if test "${enable_commondlg+set}" = set; then | |
5030 | enableval="$enable_commondlg" | |
5031 | ||
5032 | if test "$enableval" = yes; then | |
5033 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5034 | else | |
5035 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5036 | fi | |
5037 | ||
5038 | else | |
5039 | ||
5040 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5041 | if test "x$LINE" != x ; then | |
5042 | eval "DEFAULT_$LINE" | |
5043 | else | |
5044 | no_cache=1 | |
5045 | fi | |
5046 | ||
5047 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5048 | ||
5049 | fi | |
5050 | ||
5051 | ||
5052 | eval "$ac_cv_use_commondlg" | |
5053 | if test "$no_cache" != 1; then | |
5054 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5055 | fi | |
5056 | ||
5057 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5058 | echo "$ac_t""yes" 1>&6 | |
5059 | else | |
5060 | echo "$ac_t""no" 1>&6 | |
5061 | fi | |
5062 | ||
5063 | ||
5064 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
ab9b9eab | 5065 | echo "configure:5066: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5066 | no_cache=0 |
5067 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5068 | if test "${enable_dirdlg+set}" = set; then | |
5069 | enableval="$enable_dirdlg" | |
5070 | ||
5071 | if test "$enableval" = yes; then | |
5072 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5073 | else | |
5074 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5075 | fi | |
5076 | ||
5077 | else | |
5078 | ||
5079 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5080 | if test "x$LINE" != x ; then | |
5081 | eval "DEFAULT_$LINE" | |
5082 | else | |
5083 | no_cache=1 | |
5084 | fi | |
5085 | ||
5086 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5087 | ||
5088 | fi | |
5089 | ||
5090 | ||
5091 | eval "$ac_cv_use_dirdlg" | |
5092 | if test "$no_cache" != 1; then | |
5093 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5094 | fi | |
5095 | ||
5096 | if test "$wxUSE_DIRDLG" = yes; then | |
5097 | echo "$ac_t""yes" 1>&6 | |
5098 | else | |
5099 | echo "$ac_t""no" 1>&6 | |
5100 | fi | |
5101 | ||
5102 | ||
5103 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
ab9b9eab | 5104 | echo "configure:5105: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5105 | no_cache=0 |
5106 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5107 | if test "${enable_textdlg+set}" = set; then | |
5108 | enableval="$enable_textdlg" | |
5109 | ||
5110 | if test "$enableval" = yes; then | |
5111 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5112 | else | |
5113 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5114 | fi | |
5115 | ||
5116 | else | |
5117 | ||
5118 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5119 | if test "x$LINE" != x ; then | |
5120 | eval "DEFAULT_$LINE" | |
5121 | else | |
5122 | no_cache=1 | |
5123 | fi | |
5124 | ||
5125 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5126 | ||
5127 | fi | |
5128 | ||
5129 | ||
5130 | eval "$ac_cv_use_textdlg" | |
5131 | if test "$no_cache" != 1; then | |
5132 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5133 | fi | |
5134 | ||
5135 | if test "$wxUSE_TEXTDLG" = yes; then | |
5136 | echo "$ac_t""yes" 1>&6 | |
5137 | else | |
5138 | echo "$ac_t""no" 1>&6 | |
5139 | fi | |
5140 | ||
5141 | ||
5142 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
ab9b9eab | 5143 | echo "configure:5144: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5144 | no_cache=0 |
5145 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5146 | if test "${enable_tipdlg+set}" = set; then | |
5147 | enableval="$enable_tipdlg" | |
5148 | ||
5149 | if test "$enableval" = yes; then | |
5150 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5151 | else | |
5152 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5153 | fi | |
5154 | ||
5155 | else | |
5156 | ||
5157 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5158 | if test "x$LINE" != x ; then | |
5159 | eval "DEFAULT_$LINE" | |
5160 | else | |
5161 | no_cache=1 | |
5162 | fi | |
5163 | ||
5164 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5165 | ||
5166 | fi | |
5167 | ||
5168 | ||
5169 | eval "$ac_cv_use_tipdlg" | |
5170 | if test "$no_cache" != 1; then | |
5171 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5172 | fi | |
5173 | ||
5174 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5175 | echo "$ac_t""yes" 1>&6 | |
5176 | else | |
5177 | echo "$ac_t""no" 1>&6 | |
5178 | fi | |
5179 | ||
5180 | ||
5181 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
ab9b9eab | 5182 | echo "configure:5183: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5183 | no_cache=0 |
5184 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5185 | if test "${enable_progressdlg+set}" = set; then | |
5186 | enableval="$enable_progressdlg" | |
5187 | ||
5188 | if test "$enableval" = yes; then | |
5189 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5190 | else | |
5191 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5192 | fi | |
5193 | ||
5194 | else | |
5195 | ||
5196 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5197 | if test "x$LINE" != x ; then | |
5198 | eval "DEFAULT_$LINE" | |
5199 | else | |
5200 | no_cache=1 | |
5201 | fi | |
5202 | ||
5203 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5204 | ||
5205 | fi | |
5206 | ||
5207 | ||
5208 | eval "$ac_cv_use_progressdlg" | |
5209 | if test "$no_cache" != 1; then | |
5210 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5211 | fi | |
5212 | ||
5213 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5214 | echo "$ac_t""yes" 1>&6 | |
5215 | else | |
5216 | echo "$ac_t""no" 1>&6 | |
5217 | fi | |
5218 | ||
5219 | ||
5220 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
ab9b9eab | 5221 | echo "configure:5222: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5222 | no_cache=0 |
5223 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5224 | if test "${enable_miniframe+set}" = set; then | |
5225 | enableval="$enable_miniframe" | |
5226 | ||
5227 | if test "$enableval" = yes; then | |
5228 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5229 | else | |
5230 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5231 | fi | |
5232 | ||
5233 | else | |
5234 | ||
5235 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5236 | if test "x$LINE" != x ; then | |
5237 | eval "DEFAULT_$LINE" | |
5238 | else | |
5239 | no_cache=1 | |
5240 | fi | |
5241 | ||
5242 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5243 | ||
5244 | fi | |
5245 | ||
5246 | ||
5247 | eval "$ac_cv_use_miniframe" | |
5248 | if test "$no_cache" != 1; then | |
5249 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5250 | fi | |
5251 | ||
5252 | if test "$wxUSE_MINIFRAME" = yes; then | |
5253 | echo "$ac_t""yes" 1>&6 | |
5254 | else | |
5255 | echo "$ac_t""no" 1>&6 | |
5256 | fi | |
5257 | ||
5258 | ||
5259 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
ab9b9eab | 5260 | echo "configure:5261: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5261 | no_cache=0 |
5262 | # Check whether --enable-html or --disable-html was given. | |
5263 | if test "${enable_html+set}" = set; then | |
5264 | enableval="$enable_html" | |
5265 | ||
5266 | if test "$enableval" = yes; then | |
5267 | ac_cv_use_html='wxUSE_HTML=yes' | |
5268 | else | |
5269 | ac_cv_use_html='wxUSE_HTML=no' | |
5270 | fi | |
5271 | ||
5272 | else | |
5273 | ||
5274 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5275 | if test "x$LINE" != x ; then | |
5276 | eval "DEFAULT_$LINE" | |
5277 | else | |
5278 | no_cache=1 | |
5279 | fi | |
5280 | ||
5281 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5282 | ||
5283 | fi | |
5284 | ||
5285 | ||
5286 | eval "$ac_cv_use_html" | |
5287 | if test "$no_cache" != 1; then | |
5288 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5289 | fi | |
5290 | ||
5291 | if test "$wxUSE_HTML" = yes; then | |
5292 | echo "$ac_t""yes" 1>&6 | |
5293 | else | |
5294 | echo "$ac_t""no" 1>&6 | |
5295 | fi | |
5296 | ||
5297 | ||
5298 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
ab9b9eab | 5299 | echo "configure:5300: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5300 | no_cache=0 |
5301 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5302 | if test "${enable_tooltips+set}" = set; then | |
5303 | enableval="$enable_tooltips" | |
5304 | ||
5305 | if test "$enableval" = yes; then | |
5306 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5307 | else | |
5308 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5309 | fi | |
5310 | ||
5311 | else | |
5312 | ||
5313 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5314 | if test "x$LINE" != x ; then | |
5315 | eval "DEFAULT_$LINE" | |
5316 | else | |
5317 | no_cache=1 | |
5318 | fi | |
5319 | ||
5320 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5321 | ||
5322 | fi | |
5323 | ||
5324 | ||
5325 | eval "$ac_cv_use_tooltips" | |
5326 | if test "$no_cache" != 1; then | |
5327 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5328 | fi | |
5329 | ||
5330 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5331 | echo "$ac_t""yes" 1>&6 | |
5332 | else | |
5333 | echo "$ac_t""no" 1>&6 | |
5334 | fi | |
5335 | ||
5336 | ||
5337 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
ab9b9eab | 5338 | echo "configure:5339: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5339 | no_cache=0 |
5340 | # Check whether --enable-splines or --disable-splines was given. | |
5341 | if test "${enable_splines+set}" = set; then | |
5342 | enableval="$enable_splines" | |
5343 | ||
5344 | if test "$enableval" = yes; then | |
5345 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5346 | else | |
5347 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5348 | fi | |
5349 | ||
5350 | else | |
5351 | ||
5352 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5353 | if test "x$LINE" != x ; then | |
5354 | eval "DEFAULT_$LINE" | |
5355 | else | |
5356 | no_cache=1 | |
5357 | fi | |
5358 | ||
5359 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5360 | ||
5361 | fi | |
5362 | ||
5363 | ||
5364 | eval "$ac_cv_use_splines" | |
5365 | if test "$no_cache" != 1; then | |
5366 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5367 | fi | |
5368 | ||
5369 | if test "$wxUSE_SPLINES" = yes; then | |
5370 | echo "$ac_t""yes" 1>&6 | |
5371 | else | |
5372 | echo "$ac_t""no" 1>&6 | |
5373 | fi | |
5374 | ||
5375 | ||
5376 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
ab9b9eab | 5377 | echo "configure:5378: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5378 | no_cache=0 |
5379 | # Check whether --enable-validators or --disable-validators was given. | |
5380 | if test "${enable_validators+set}" = set; then | |
5381 | enableval="$enable_validators" | |
5382 | ||
5383 | if test "$enableval" = yes; then | |
5384 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5385 | else | |
5386 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5387 | fi | |
5388 | ||
5389 | else | |
5390 | ||
5391 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5392 | if test "x$LINE" != x ; then | |
5393 | eval "DEFAULT_$LINE" | |
5394 | else | |
5395 | no_cache=1 | |
5396 | fi | |
5397 | ||
5398 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5399 | ||
5400 | fi | |
5401 | ||
5402 | ||
5403 | eval "$ac_cv_use_validators" | |
5404 | if test "$no_cache" != 1; then | |
5405 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5406 | fi | |
5407 | ||
5408 | if test "$wxUSE_VALIDATORS" = yes; then | |
5409 | echo "$ac_t""yes" 1>&6 | |
5410 | else | |
5411 | echo "$ac_t""no" 1>&6 | |
5412 | fi | |
5413 | ||
5414 | ||
5415 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
ab9b9eab | 5416 | echo "configure:5417: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5417 | no_cache=0 |
5418 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5419 | if test "${enable_busyinfo+set}" = set; then | |
5420 | enableval="$enable_busyinfo" | |
5421 | ||
5422 | if test "$enableval" = yes; then | |
5423 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5424 | else | |
5425 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5426 | fi | |
5427 | ||
5428 | else | |
5429 | ||
5430 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5431 | if test "x$LINE" != x ; then | |
5432 | eval "DEFAULT_$LINE" | |
5433 | else | |
5434 | no_cache=1 | |
5435 | fi | |
5436 | ||
5437 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5438 | ||
5439 | fi | |
5440 | ||
5441 | ||
5442 | eval "$ac_cv_use_busyinfo" | |
5443 | if test "$no_cache" != 1; then | |
5444 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5445 | fi | |
5446 | ||
5447 | if test "$wxUSE_BUSYINFO" = yes; then | |
5448 | echo "$ac_t""yes" 1>&6 | |
5449 | else | |
5450 | echo "$ac_t""no" 1>&6 | |
5451 | fi | |
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
ab9b9eab | 5457 | echo "configure:5458: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5458 | no_cache=0 |
5459 | # Check whether --enable-gif or --disable-gif was given. | |
5460 | if test "${enable_gif+set}" = set; then | |
5461 | enableval="$enable_gif" | |
5462 | ||
5463 | if test "$enableval" = yes; then | |
5464 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5465 | else | |
5466 | ac_cv_use_gif='wxUSE_GIF=no' | |
5467 | fi | |
5468 | ||
5469 | else | |
5470 | ||
5471 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5472 | if test "x$LINE" != x ; then | |
5473 | eval "DEFAULT_$LINE" | |
5474 | else | |
5475 | no_cache=1 | |
5476 | fi | |
5477 | ||
5478 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5479 | ||
5480 | fi | |
5481 | ||
5482 | ||
5483 | eval "$ac_cv_use_gif" | |
5484 | if test "$no_cache" != 1; then | |
5485 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5486 | fi | |
5487 | ||
5488 | if test "$wxUSE_GIF" = yes; then | |
5489 | echo "$ac_t""yes" 1>&6 | |
5490 | else | |
5491 | echo "$ac_t""no" 1>&6 | |
5492 | fi | |
5493 | ||
5494 | ||
5495 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
ab9b9eab | 5496 | echo "configure:5497: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
5497 | no_cache=0 |
5498 | # Check whether --enable-pcx or --disable-pcx was given. | |
5499 | if test "${enable_pcx+set}" = set; then | |
5500 | enableval="$enable_pcx" | |
5501 | ||
5502 | if test "$enableval" = yes; then | |
5503 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5504 | else | |
5505 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5506 | fi | |
5507 | ||
5508 | else | |
5509 | ||
5510 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5511 | if test "x$LINE" != x ; then | |
5512 | eval "DEFAULT_$LINE" | |
5513 | else | |
5514 | no_cache=1 | |
5515 | fi | |
5516 | ||
5517 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5518 | ||
5519 | fi | |
5520 | ||
5521 | ||
5522 | eval "$ac_cv_use_pcx" | |
5523 | if test "$no_cache" != 1; then | |
5524 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5525 | fi | |
5526 | ||
5527 | if test "$wxUSE_PCX" = yes; then | |
5528 | echo "$ac_t""yes" 1>&6 | |
5529 | else | |
5530 | echo "$ac_t""no" 1>&6 | |
5531 | fi | |
5532 | ||
5533 | ||
5534 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
ab9b9eab | 5535 | echo "configure:5536: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
5536 | no_cache=0 |
5537 | # Check whether --enable-pnm or --disable-pnm was given. | |
5538 | if test "${enable_pnm+set}" = set; then | |
5539 | enableval="$enable_pnm" | |
5540 | ||
5541 | if test "$enableval" = yes; then | |
5542 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5543 | else | |
5544 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5545 | fi | |
5546 | ||
5547 | else | |
5548 | ||
5549 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5550 | if test "x$LINE" != x ; then | |
5551 | eval "DEFAULT_$LINE" | |
5552 | else | |
5553 | no_cache=1 | |
5554 | fi | |
5555 | ||
5556 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5557 | ||
5558 | fi | |
5559 | ||
5560 | ||
5561 | eval "$ac_cv_use_pnm" | |
5562 | if test "$no_cache" != 1; then | |
5563 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5564 | fi | |
5565 | ||
5566 | if test "$wxUSE_PNM" = yes; then | |
5567 | echo "$ac_t""yes" 1>&6 | |
5568 | else | |
5569 | echo "$ac_t""no" 1>&6 | |
5570 | fi | |
5571 | ||
5572 | ||
5573 | ||
5574 | echo "saving argument cache $wx_arg_cache_file" | |
5575 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5576 | ||
5577 | ||
5578 | ||
5579 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
ab9b9eab | 5580 | echo "configure:5581: checking for toolkit" >&5 |
10f2d63a VZ |
5581 | |
5582 | if test "$wxUSE_GUI" = "yes"; then | |
5583 | ||
5584 | if test "$TOOLKIT_GIVEN" = 1; then | |
5585 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5586 | var=wxUSE_$toolkit | |
5587 | eval "value=\$${var}" | |
5588 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5589 | done | |
5590 | else | |
5591 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5592 | if test "$has_toolkit_in_cache" != 1; then | |
5593 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5594 | else | |
5595 | var=DEFAULT_wxUSE_$toolkit | |
5596 | fi | |
5597 | eval "wxUSE_$toolkit=\$${var}" | |
5598 | done | |
5599 | fi | |
5600 | ||
5601 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` | |
5602 | ||
5603 | case "$NUM_TOOLKITS" in | |
5604 | 1) | |
5605 | ;; | |
5606 | 0) | |
5607 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5608 | ;; | |
5609 | *) | |
5610 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5611 | esac | |
5612 | ||
5613 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5614 | var=wxUSE_$toolkit | |
5615 | eval "value=\$${var}" | |
5616 | if test "x$value" != x; then | |
5617 | cache_var=CACHE_$toolkit | |
5618 | eval "cache=\$${cache_var}" | |
5619 | if test "$cache" = 1; then | |
5620 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5621 | fi | |
5622 | if test "$value" = 1; then | |
5623 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5624 | fi | |
5625 | fi | |
5626 | done | |
5627 | ||
5628 | else | |
5629 | echo "$ac_t""base only" 1>&6 | |
5630 | fi | |
5631 | ||
5632 | ||
5633 | cat > confcache <<\EOF | |
5634 | # This file is a shell script that caches the results of configure | |
5635 | # tests run on this system so they can be shared between configure | |
5636 | # scripts and configure runs. It is not useful on other systems. | |
5637 | # If it contains results you don't want to keep, you may remove or edit it. | |
5638 | # | |
5639 | # By default, configure uses ./config.cache as the cache file, | |
5640 | # creating it if it does not exist already. You can give configure | |
5641 | # the --cache-file=FILE option to use a different cache file; that is | |
5642 | # what configure does when it calls configure scripts in | |
5643 | # subdirectories, so they share the cache. | |
5644 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5645 | # config.status only pays attention to the cache file if you give it the | |
5646 | # --recheck option to rerun configure. | |
5647 | # | |
5648 | EOF | |
5649 | # The following way of writing the cache mishandles newlines in values, | |
5650 | # but we know of no workaround that is simple, portable, and efficient. | |
5651 | # So, don't put newlines in cache variables' values. | |
5652 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5653 | # and sets the high bit in the cache file unless we assign to the vars. | |
5654 | (set) 2>&1 | | |
5655 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5656 | *ac_space=\ *) | |
5657 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5658 | # turns \\\\ into \\, and sed turns \\ into \). | |
5659 | sed -n \ | |
5660 | -e "s/'/'\\\\''/g" \ | |
5661 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5662 | ;; | |
5663 | *) | |
5664 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5665 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5666 | ;; | |
5667 | esac >> confcache | |
5668 | if cmp -s $cache_file confcache; then | |
5669 | : | |
5670 | else | |
5671 | if test -w $cache_file; then | |
5672 | echo "updating cache $cache_file" | |
5673 | cat confcache > $cache_file | |
5674 | else | |
5675 | echo "not updating unwritable cache $cache_file" | |
5676 | fi | |
5677 | fi | |
5678 | rm -f confcache | |
5679 | ||
5680 | ||
5681 | if eval "test $host != $build"; then | |
5682 | if eval "test $host_alias != NONE"; then | |
5683 | CC=$host_alias-gcc | |
5684 | CXX=$host_alias-c++ | |
5685 | AR=$host_alias-ar | |
5686 | RANLIB=$host_alias-ranlib | |
5687 | DLLTOOL=$host_alias-dlltool | |
5688 | LD=$host_alias-ld | |
5689 | NM=$host_alias-nm | |
5690 | STRIP=$host_alias-strip | |
5691 | fi | |
5692 | fi | |
5693 | ||
5694 | # Extract the first word of "gcc", so it can be a program name with args. | |
5695 | set dummy gcc; ac_word=$2 | |
5696 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 5697 | echo "configure:5698: checking for $ac_word" >&5 |
10f2d63a VZ |
5698 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5700 | else | |
5701 | if test -n "$CC"; then | |
5702 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5703 | else | |
5704 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5705 | ac_dummy="$PATH" | |
5706 | for ac_dir in $ac_dummy; do | |
5707 | test -z "$ac_dir" && ac_dir=. | |
5708 | if test -f $ac_dir/$ac_word; then | |
5709 | ac_cv_prog_CC="gcc" | |
5710 | break | |
5711 | fi | |
5712 | done | |
5713 | IFS="$ac_save_ifs" | |
5714 | fi | |
5715 | fi | |
5716 | CC="$ac_cv_prog_CC" | |
5717 | if test -n "$CC"; then | |
5718 | echo "$ac_t""$CC" 1>&6 | |
5719 | else | |
5720 | echo "$ac_t""no" 1>&6 | |
5721 | fi | |
5722 | ||
5723 | if test -z "$CC"; then | |
5724 | # Extract the first word of "cc", so it can be a program name with args. | |
5725 | set dummy cc; ac_word=$2 | |
5726 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 5727 | echo "configure:5728: checking for $ac_word" >&5 |
10f2d63a VZ |
5728 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5730 | else | |
5731 | if test -n "$CC"; then | |
5732 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5733 | else | |
5734 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5735 | ac_prog_rejected=no | |
5736 | ac_dummy="$PATH" | |
5737 | for ac_dir in $ac_dummy; do | |
5738 | test -z "$ac_dir" && ac_dir=. | |
5739 | if test -f $ac_dir/$ac_word; then | |
5740 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5741 | ac_prog_rejected=yes | |
5742 | continue | |
5743 | fi | |
5744 | ac_cv_prog_CC="cc" | |
5745 | break | |
5746 | fi | |
5747 | done | |
5748 | IFS="$ac_save_ifs" | |
5749 | if test $ac_prog_rejected = yes; then | |
5750 | # We found a bogon in the path, so make sure we never use it. | |
5751 | set dummy $ac_cv_prog_CC | |
5752 | shift | |
5753 | if test $# -gt 0; then | |
5754 | # We chose a different compiler from the bogus one. | |
5755 | # However, it has the same basename, so the bogon will be chosen | |
5756 | # first if we set CC to just the basename; use the full file name. | |
5757 | shift | |
5758 | set dummy "$ac_dir/$ac_word" "$@" | |
5759 | shift | |
5760 | ac_cv_prog_CC="$@" | |
5761 | fi | |
5762 | fi | |
5763 | fi | |
5764 | fi | |
5765 | CC="$ac_cv_prog_CC" | |
5766 | if test -n "$CC"; then | |
5767 | echo "$ac_t""$CC" 1>&6 | |
5768 | else | |
5769 | echo "$ac_t""no" 1>&6 | |
5770 | fi | |
5771 | ||
5772 | if test -z "$CC"; then | |
5773 | case "`uname -s`" in | |
5774 | *win32* | *WIN32*) | |
5775 | # Extract the first word of "cl", so it can be a program name with args. | |
5776 | set dummy cl; ac_word=$2 | |
5777 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 5778 | echo "configure:5779: checking for $ac_word" >&5 |
10f2d63a VZ |
5779 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5781 | else | |
5782 | if test -n "$CC"; then | |
5783 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5784 | else | |
5785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5786 | ac_dummy="$PATH" | |
5787 | for ac_dir in $ac_dummy; do | |
5788 | test -z "$ac_dir" && ac_dir=. | |
5789 | if test -f $ac_dir/$ac_word; then | |
5790 | ac_cv_prog_CC="cl" | |
5791 | break | |
5792 | fi | |
5793 | done | |
5794 | IFS="$ac_save_ifs" | |
5795 | fi | |
5796 | fi | |
5797 | CC="$ac_cv_prog_CC" | |
5798 | if test -n "$CC"; then | |
5799 | echo "$ac_t""$CC" 1>&6 | |
5800 | else | |
5801 | echo "$ac_t""no" 1>&6 | |
5802 | fi | |
5803 | ;; | |
5804 | esac | |
5805 | fi | |
5806 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
5807 | fi | |
5808 | ||
5809 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
ab9b9eab | 5810 | echo "configure:5811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
5811 | |
5812 | ac_ext=c | |
5813 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5814 | ac_cpp='$CPP $CPPFLAGS' | |
5815 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5816 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5817 | cross_compiling=$ac_cv_prog_cc_cross | |
5818 | ||
5819 | cat > conftest.$ac_ext << EOF | |
5820 | ||
ab9b9eab | 5821 | #line 5822 "configure" |
10f2d63a VZ |
5822 | #include "confdefs.h" |
5823 | ||
5824 | main(){return(0);} | |
5825 | EOF | |
ab9b9eab | 5826 | if { (eval echo configure:5827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
5827 | ac_cv_prog_cc_works=yes |
5828 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5829 | if (./conftest; exit) 2>/dev/null; then | |
5830 | ac_cv_prog_cc_cross=no | |
5831 | else | |
5832 | ac_cv_prog_cc_cross=yes | |
5833 | fi | |
5834 | else | |
5835 | echo "configure: failed program was:" >&5 | |
5836 | cat conftest.$ac_ext >&5 | |
5837 | ac_cv_prog_cc_works=no | |
5838 | fi | |
5839 | rm -fr conftest* | |
5840 | ac_ext=c | |
5841 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5842 | ac_cpp='$CPP $CPPFLAGS' | |
5843 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5844 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5845 | cross_compiling=$ac_cv_prog_cc_cross | |
5846 | ||
5847 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
5848 | if test $ac_cv_prog_cc_works = no; then | |
5849 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
5850 | fi | |
5851 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
ab9b9eab | 5852 | echo "configure:5853: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
5853 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
5854 | cross_compiling=$ac_cv_prog_cc_cross | |
5855 | ||
5856 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
ab9b9eab | 5857 | echo "configure:5858: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
5858 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
5859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5860 | else | |
5861 | cat > conftest.c <<EOF | |
5862 | #ifdef __GNUC__ | |
5863 | yes; | |
5864 | #endif | |
5865 | EOF | |
ab9b9eab | 5866 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
5867 | ac_cv_prog_gcc=yes |
5868 | else | |
5869 | ac_cv_prog_gcc=no | |
5870 | fi | |
5871 | fi | |
5872 | ||
5873 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
5874 | ||
5875 | if test $ac_cv_prog_gcc = yes; then | |
5876 | GCC=yes | |
5877 | else | |
5878 | GCC= | |
5879 | fi | |
5880 | ||
5881 | ac_test_CFLAGS="${CFLAGS+set}" | |
5882 | ac_save_CFLAGS="$CFLAGS" | |
5883 | CFLAGS= | |
5884 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
ab9b9eab | 5885 | echo "configure:5886: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
5886 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
5887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5888 | else | |
5889 | echo 'void f(){}' > conftest.c | |
5890 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
5891 | ac_cv_prog_cc_g=yes | |
5892 | else | |
5893 | ac_cv_prog_cc_g=no | |
5894 | fi | |
5895 | rm -f conftest* | |
5896 | ||
5897 | fi | |
5898 | ||
5899 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
5900 | if test "$ac_test_CFLAGS" = set; then | |
5901 | CFLAGS="$ac_save_CFLAGS" | |
5902 | elif test $ac_cv_prog_cc_g = yes; then | |
5903 | if test "$GCC" = yes; then | |
5904 | CFLAGS="-g -O2" | |
5905 | else | |
5906 | CFLAGS="-g" | |
5907 | fi | |
5908 | else | |
5909 | if test "$GCC" = yes; then | |
5910 | CFLAGS="-O2" | |
5911 | else | |
5912 | CFLAGS= | |
5913 | fi | |
5914 | fi | |
5915 | ||
5916 | ||
5917 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
5918 | ||
5919 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
ab9b9eab | 5920 | echo "configure:5921: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
5921 | # On Suns, sometimes $CPP names a directory. |
5922 | if test -n "$CPP" && test -d "$CPP"; then | |
5923 | CPP= | |
5924 | fi | |
5925 | if test -z "$CPP"; then | |
5926 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
5927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5928 | else | |
5929 | # This must be in double quotes, not single quotes, because CPP may get | |
5930 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
5931 | CPP="${CC-cc} -E" | |
5932 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5933 | # not just through cpp. | |
5934 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 5935 | #line 5936 "configure" |
10f2d63a VZ |
5936 | #include "confdefs.h" |
5937 | #include <assert.h> | |
5938 | Syntax Error | |
5939 | EOF | |
5940 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab9b9eab | 5941 | { (eval echo configure:5942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
5942 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5943 | if test -z "$ac_err"; then | |
5944 | : | |
5945 | else | |
5946 | echo "$ac_err" >&5 | |
5947 | echo "configure: failed program was:" >&5 | |
5948 | cat conftest.$ac_ext >&5 | |
5949 | rm -rf conftest* | |
5950 | CPP="${CC-cc} -E -traditional-cpp" | |
5951 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 5952 | #line 5953 "configure" |
10f2d63a VZ |
5953 | #include "confdefs.h" |
5954 | #include <assert.h> | |
5955 | Syntax Error | |
5956 | EOF | |
5957 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab9b9eab | 5958 | { (eval echo configure:5959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
5959 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5960 | if test -z "$ac_err"; then | |
5961 | : | |
5962 | else | |
5963 | echo "$ac_err" >&5 | |
5964 | echo "configure: failed program was:" >&5 | |
5965 | cat conftest.$ac_ext >&5 | |
5966 | rm -rf conftest* | |
5967 | CPP="${CC-cc} -nologo -E" | |
5968 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 5969 | #line 5970 "configure" |
10f2d63a VZ |
5970 | #include "confdefs.h" |
5971 | #include <assert.h> | |
5972 | Syntax Error | |
5973 | EOF | |
5974 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab9b9eab | 5975 | { (eval echo configure:5976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
5976 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5977 | if test -z "$ac_err"; then | |
5978 | : | |
5979 | else | |
5980 | echo "$ac_err" >&5 | |
5981 | echo "configure: failed program was:" >&5 | |
5982 | cat conftest.$ac_ext >&5 | |
5983 | rm -rf conftest* | |
5984 | CPP=/lib/cpp | |
5985 | fi | |
5986 | rm -f conftest* | |
5987 | fi | |
5988 | rm -f conftest* | |
5989 | fi | |
5990 | rm -f conftest* | |
5991 | ac_cv_prog_CPP="$CPP" | |
5992 | fi | |
5993 | CPP="$ac_cv_prog_CPP" | |
5994 | else | |
5995 | ac_cv_prog_CPP="$CPP" | |
5996 | fi | |
5997 | echo "$ac_t""$CPP" 1>&6 | |
5998 | ||
5999 | ||
6000 | if test $ac_cv_prog_gcc = yes; then | |
6001 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
ab9b9eab | 6002 | echo "configure:6003: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6003 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6005 | else | |
6006 | ac_pattern="Autoconf.*'x'" | |
6007 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 6008 | #line 6009 "configure" |
10f2d63a VZ |
6009 | #include "confdefs.h" |
6010 | #include <sgtty.h> | |
6011 | Autoconf TIOCGETP | |
6012 | EOF | |
6013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6014 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6015 | rm -rf conftest* | |
6016 | ac_cv_prog_gcc_traditional=yes | |
6017 | else | |
6018 | rm -rf conftest* | |
6019 | ac_cv_prog_gcc_traditional=no | |
6020 | fi | |
6021 | rm -f conftest* | |
6022 | ||
6023 | ||
6024 | if test $ac_cv_prog_gcc_traditional = no; then | |
6025 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 6026 | #line 6027 "configure" |
10f2d63a VZ |
6027 | #include "confdefs.h" |
6028 | #include <termio.h> | |
6029 | Autoconf TCGETA | |
6030 | EOF | |
6031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6032 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6033 | rm -rf conftest* | |
6034 | ac_cv_prog_gcc_traditional=yes | |
6035 | fi | |
6036 | rm -f conftest* | |
6037 | ||
6038 | fi | |
6039 | fi | |
6040 | ||
6041 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6042 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6043 | CC="$CC -traditional" | |
6044 | fi | |
6045 | fi | |
6046 | ||
6047 | ||
6048 | ||
6049 | ac_ext=C | |
6050 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6051 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6052 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6053 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6054 | cross_compiling=$ac_cv_prog_cxx_cross | |
6055 | ||
6056 | ||
6057 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6058 | do | |
6059 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6060 | set dummy $ac_prog; ac_word=$2 | |
6061 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 6062 | echo "configure:6063: checking for $ac_word" >&5 |
10f2d63a VZ |
6063 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6065 | else | |
6066 | if test -n "$CXX"; then | |
6067 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6068 | else | |
6069 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6070 | ac_dummy="$PATH" | |
6071 | for ac_dir in $ac_dummy; do | |
6072 | test -z "$ac_dir" && ac_dir=. | |
6073 | if test -f $ac_dir/$ac_word; then | |
6074 | ac_cv_prog_CXX="$ac_prog" | |
6075 | break | |
6076 | fi | |
6077 | done | |
6078 | IFS="$ac_save_ifs" | |
6079 | fi | |
6080 | fi | |
6081 | CXX="$ac_cv_prog_CXX" | |
6082 | if test -n "$CXX"; then | |
6083 | echo "$ac_t""$CXX" 1>&6 | |
6084 | else | |
6085 | echo "$ac_t""no" 1>&6 | |
6086 | fi | |
6087 | ||
6088 | test -n "$CXX" && break | |
6089 | done | |
6090 | test -n "$CXX" || CXX="gcc" | |
6091 | ||
6092 | ||
6093 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
ab9b9eab | 6094 | echo "configure:6095: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6095 | |
6096 | ac_ext=C | |
6097 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6099 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6100 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6101 | cross_compiling=$ac_cv_prog_cxx_cross | |
6102 | ||
6103 | cat > conftest.$ac_ext << EOF | |
6104 | ||
ab9b9eab | 6105 | #line 6106 "configure" |
10f2d63a VZ |
6106 | #include "confdefs.h" |
6107 | ||
6108 | int main(){return(0);} | |
6109 | EOF | |
ab9b9eab | 6110 | if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6111 | ac_cv_prog_cxx_works=yes |
6112 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6113 | if (./conftest; exit) 2>/dev/null; then | |
6114 | ac_cv_prog_cxx_cross=no | |
6115 | else | |
6116 | ac_cv_prog_cxx_cross=yes | |
6117 | fi | |
6118 | else | |
6119 | echo "configure: failed program was:" >&5 | |
6120 | cat conftest.$ac_ext >&5 | |
6121 | ac_cv_prog_cxx_works=no | |
6122 | fi | |
6123 | rm -fr conftest* | |
6124 | ac_ext=C | |
6125 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6126 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6127 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6128 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6129 | cross_compiling=$ac_cv_prog_cxx_cross | |
6130 | ||
6131 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6132 | if test $ac_cv_prog_cxx_works = no; then | |
6133 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6134 | fi | |
6135 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
ab9b9eab | 6136 | echo "configure:6137: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6137 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6138 | cross_compiling=$ac_cv_prog_cxx_cross | |
6139 | ||
6140 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
ab9b9eab | 6141 | echo "configure:6142: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6142 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6144 | else | |
6145 | cat > conftest.C <<EOF | |
6146 | #ifdef __GNUC__ | |
6147 | yes; | |
6148 | #endif | |
6149 | EOF | |
ab9b9eab | 6150 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6151 | ac_cv_prog_gxx=yes |
6152 | else | |
6153 | ac_cv_prog_gxx=no | |
6154 | fi | |
6155 | fi | |
6156 | ||
6157 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6158 | ||
6159 | if test $ac_cv_prog_gxx = yes; then | |
6160 | GXX=yes | |
6161 | else | |
6162 | GXX= | |
6163 | fi | |
6164 | ||
6165 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6166 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6167 | CXXFLAGS= | |
6168 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
ab9b9eab | 6169 | echo "configure:6170: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6170 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6172 | else | |
6173 | echo 'void f(){}' > conftest.cc | |
6174 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6175 | ac_cv_prog_cxx_g=yes | |
6176 | else | |
6177 | ac_cv_prog_cxx_g=no | |
6178 | fi | |
6179 | rm -f conftest* | |
6180 | ||
6181 | fi | |
6182 | ||
6183 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6184 | if test "$ac_test_CXXFLAGS" = set; then | |
6185 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6186 | elif test $ac_cv_prog_cxx_g = yes; then | |
6187 | if test "$GXX" = yes; then | |
6188 | CXXFLAGS="-g -O2" | |
6189 | else | |
6190 | CXXFLAGS="-g" | |
6191 | fi | |
6192 | else | |
6193 | if test "$GXX" = yes; then | |
6194 | CXXFLAGS="-O2" | |
6195 | else | |
6196 | CXXFLAGS= | |
6197 | fi | |
6198 | fi | |
6199 | ||
6200 | ||
6201 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
ab9b9eab | 6202 | echo "configure:6203: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6203 | if test -z "$CXXCPP"; then |
6204 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6206 | else | |
6207 | ac_ext=C | |
6208 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6209 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6210 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6211 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6212 | cross_compiling=$ac_cv_prog_cxx_cross | |
6213 | CXXCPP="${CXX-g++} -E" | |
6214 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 6215 | #line 6216 "configure" |
10f2d63a VZ |
6216 | #include "confdefs.h" |
6217 | #include <stdlib.h> | |
6218 | EOF | |
6219 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab9b9eab | 6220 | { (eval echo configure:6221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6221 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6222 | if test -z "$ac_err"; then | |
6223 | : | |
6224 | else | |
6225 | echo "$ac_err" >&5 | |
6226 | echo "configure: failed program was:" >&5 | |
6227 | cat conftest.$ac_ext >&5 | |
6228 | rm -rf conftest* | |
6229 | CXXCPP=/lib/cpp | |
6230 | fi | |
6231 | rm -f conftest* | |
6232 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6233 | ac_ext=C | |
6234 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6235 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6236 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6237 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6238 | cross_compiling=$ac_cv_prog_cxx_cross | |
6239 | fi | |
6240 | fi | |
6241 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6242 | echo "$ac_t""$CXXCPP" 1>&6 | |
6243 | ||
6244 | ||
6245 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6246 | ||
6247 | ac_ext=c | |
6248 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6249 | ac_cpp='$CPP $CPPFLAGS' | |
6250 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6251 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6252 | cross_compiling=$ac_cv_prog_cc_cross | |
6253 | ||
6254 | ||
6255 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6256 | set dummy ranlib; ac_word=$2 | |
6257 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 6258 | echo "configure:6259: checking for $ac_word" >&5 |
10f2d63a VZ |
6259 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6261 | else | |
6262 | if test -n "$RANLIB"; then | |
6263 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6264 | else | |
6265 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6266 | ac_dummy="$PATH" | |
6267 | for ac_dir in $ac_dummy; do | |
6268 | test -z "$ac_dir" && ac_dir=. | |
6269 | if test -f $ac_dir/$ac_word; then | |
6270 | ac_cv_prog_RANLIB="ranlib" | |
6271 | break | |
6272 | fi | |
6273 | done | |
6274 | IFS="$ac_save_ifs" | |
6275 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6276 | fi | |
6277 | fi | |
6278 | RANLIB="$ac_cv_prog_RANLIB" | |
6279 | if test -n "$RANLIB"; then | |
6280 | echo "$ac_t""$RANLIB" 1>&6 | |
6281 | else | |
6282 | echo "$ac_t""no" 1>&6 | |
6283 | fi | |
6284 | ||
6285 | ||
6286 | # Extract the first word of "ar", so it can be a program name with args. | |
6287 | set dummy ar; ac_word=$2 | |
6288 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 6289 | echo "configure:6290: checking for $ac_word" >&5 |
10f2d63a VZ |
6290 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6292 | else | |
6293 | if test -n "$AR"; then | |
6294 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6295 | else | |
6296 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6297 | ac_dummy="$PATH" | |
6298 | for ac_dir in $ac_dummy; do | |
6299 | test -z "$ac_dir" && ac_dir=. | |
6300 | if test -f $ac_dir/$ac_word; then | |
6301 | ac_cv_prog_AR="ar" | |
6302 | break | |
6303 | fi | |
6304 | done | |
6305 | IFS="$ac_save_ifs" | |
6306 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6307 | fi | |
6308 | fi | |
6309 | AR="$ac_cv_prog_AR" | |
6310 | if test -n "$AR"; then | |
6311 | echo "$ac_t""$AR" 1>&6 | |
6312 | else | |
6313 | echo "$ac_t""no" 1>&6 | |
6314 | fi | |
6315 | ||
6316 | ||
6317 | # Find a good install program. We prefer a C program (faster), | |
6318 | # so one script is as good as another. But avoid the broken or | |
6319 | # incompatible versions: | |
6320 | # SysV /etc/install, /usr/sbin/install | |
6321 | # SunOS /usr/etc/install | |
6322 | # IRIX /sbin/install | |
6323 | # AIX /bin/install | |
6324 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6325 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6326 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6327 | # ./install, which can be erroneously created by make from ./install.sh. | |
6328 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
ab9b9eab | 6329 | echo "configure:6330: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6330 | if test -z "$INSTALL"; then |
6331 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6333 | else | |
6334 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6335 | for ac_dir in $PATH; do | |
6336 | # Account for people who put trailing slashes in PATH elements. | |
6337 | case "$ac_dir/" in | |
6338 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6339 | *) | |
6340 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6341 | # Don't use installbsd from OSF since it installs stuff as root | |
6342 | # by default. | |
6343 | for ac_prog in ginstall scoinst install; do | |
6344 | if test -f $ac_dir/$ac_prog; then | |
6345 | if test $ac_prog = install && | |
6346 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6347 | # AIX install. It has an incompatible calling convention. | |
6348 | : | |
6349 | else | |
6350 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6351 | break 2 | |
6352 | fi | |
6353 | fi | |
6354 | done | |
6355 | ;; | |
6356 | esac | |
6357 | done | |
6358 | IFS="$ac_save_IFS" | |
6359 | ||
6360 | fi | |
6361 | if test "${ac_cv_path_install+set}" = set; then | |
6362 | INSTALL="$ac_cv_path_install" | |
6363 | else | |
6364 | # As a last resort, use the slow shell script. We don't cache a | |
6365 | # path for INSTALL within a source directory, because that will | |
6366 | # break other packages using the cache if that directory is | |
6367 | # removed, or if the path is relative. | |
6368 | INSTALL="$ac_install_sh" | |
6369 | fi | |
6370 | fi | |
6371 | echo "$ac_t""$INSTALL" 1>&6 | |
6372 | ||
6373 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6374 | # It thinks the first close brace ends the variable substitution. | |
6375 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6376 | ||
6377 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6378 | ||
6379 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6380 | ||
6381 | ||
6382 | # Extract the first word of "strip", so it can be a program name with args. | |
6383 | set dummy strip; ac_word=$2 | |
6384 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 6385 | echo "configure:6386: checking for $ac_word" >&5 |
10f2d63a VZ |
6386 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6388 | else | |
6389 | if test -n "$STRIP"; then | |
6390 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6391 | else | |
6392 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6393 | ac_dummy="$PATH" | |
6394 | for ac_dir in $ac_dummy; do | |
6395 | test -z "$ac_dir" && ac_dir=. | |
6396 | if test -f $ac_dir/$ac_word; then | |
6397 | ac_cv_prog_STRIP="strip" | |
6398 | break | |
6399 | fi | |
6400 | done | |
6401 | IFS="$ac_save_ifs" | |
6402 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6403 | fi | |
6404 | fi | |
6405 | STRIP="$ac_cv_prog_STRIP" | |
6406 | if test -n "$STRIP"; then | |
6407 | echo "$ac_t""$STRIP" 1>&6 | |
6408 | else | |
6409 | echo "$ac_t""no" 1>&6 | |
6410 | fi | |
6411 | ||
6412 | ||
6413 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
ab9b9eab | 6414 | echo "configure:6415: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6415 | cat - << EOF > confMake |
6416 | check : file | |
6417 | cp \$? \$@ | |
6418 | cp \$? final_file | |
6419 | EOF | |
6420 | ||
6421 | if test ! -d sub ; then | |
6422 | mkdir sub | |
6423 | fi | |
6424 | echo dummy > sub/file | |
6425 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6426 | RESULT=$? | |
6427 | rm -f sub/file check final_file confMake | |
6428 | rmdir sub | |
6429 | if test "$RESULT" = 0; then | |
6430 | echo "$ac_t""yes" 1>&6 | |
6431 | else | |
6432 | echo "$ac_t""no" 1>&6 | |
6433 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6434 | VPATH correctly. | |
6435 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6436 | fi | |
6437 | ||
6438 | for ac_prog in 'bison -y' byacc | |
6439 | do | |
6440 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6441 | set dummy $ac_prog; ac_word=$2 | |
6442 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 6443 | echo "configure:6444: checking for $ac_word" >&5 |
10f2d63a VZ |
6444 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6446 | else | |
6447 | if test -n "$YACC"; then | |
6448 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6449 | else | |
6450 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6451 | ac_dummy="$PATH" | |
6452 | for ac_dir in $ac_dummy; do | |
6453 | test -z "$ac_dir" && ac_dir=. | |
6454 | if test -f $ac_dir/$ac_word; then | |
6455 | ac_cv_prog_YACC="$ac_prog" | |
6456 | break | |
6457 | fi | |
6458 | done | |
6459 | IFS="$ac_save_ifs" | |
6460 | fi | |
6461 | fi | |
6462 | YACC="$ac_cv_prog_YACC" | |
6463 | if test -n "$YACC"; then | |
6464 | echo "$ac_t""$YACC" 1>&6 | |
6465 | else | |
6466 | echo "$ac_t""no" 1>&6 | |
6467 | fi | |
6468 | ||
6469 | test -n "$YACC" && break | |
6470 | done | |
6471 | test -n "$YACC" || YACC="yacc" | |
6472 | ||
6473 | ||
6474 | # Extract the first word of "flex", so it can be a program name with args. | |
6475 | set dummy flex; ac_word=$2 | |
6476 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 6477 | echo "configure:6478: checking for $ac_word" >&5 |
10f2d63a VZ |
6478 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6480 | else | |
6481 | if test -n "$LEX"; then | |
6482 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6483 | else | |
6484 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6485 | ac_dummy="$PATH" | |
6486 | for ac_dir in $ac_dummy; do | |
6487 | test -z "$ac_dir" && ac_dir=. | |
6488 | if test -f $ac_dir/$ac_word; then | |
6489 | ac_cv_prog_LEX="flex" | |
6490 | break | |
6491 | fi | |
6492 | done | |
6493 | IFS="$ac_save_ifs" | |
6494 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6495 | fi | |
6496 | fi | |
6497 | LEX="$ac_cv_prog_LEX" | |
6498 | if test -n "$LEX"; then | |
6499 | echo "$ac_t""$LEX" 1>&6 | |
6500 | else | |
6501 | echo "$ac_t""no" 1>&6 | |
6502 | fi | |
6503 | ||
6504 | if test -z "$LEXLIB" | |
6505 | then | |
6506 | case "$LEX" in | |
6507 | flex*) ac_lib=fl ;; | |
6508 | *) ac_lib=l ;; | |
6509 | esac | |
6510 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
ab9b9eab | 6511 | echo "configure:6512: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
6512 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6513 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6515 | else | |
6516 | ac_save_LIBS="$LIBS" | |
6517 | LIBS="-l$ac_lib $LIBS" | |
6518 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 6519 | #line 6520 "configure" |
10f2d63a VZ |
6520 | #include "confdefs.h" |
6521 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6522 | /* We use char because int might match the return type of a gcc2 | |
6523 | builtin and then its argument prototype would still apply. */ | |
6524 | char yywrap(); | |
6525 | ||
6526 | int main() { | |
6527 | yywrap() | |
6528 | ; return 0; } | |
6529 | EOF | |
ab9b9eab | 6530 | if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6531 | rm -rf conftest* |
6532 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6533 | else | |
6534 | echo "configure: failed program was:" >&5 | |
6535 | cat conftest.$ac_ext >&5 | |
6536 | rm -rf conftest* | |
6537 | eval "ac_cv_lib_$ac_lib_var=no" | |
6538 | fi | |
6539 | rm -f conftest* | |
6540 | LIBS="$ac_save_LIBS" | |
6541 | ||
6542 | fi | |
6543 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6544 | echo "$ac_t""yes" 1>&6 | |
6545 | LEXLIB="-l$ac_lib" | |
6546 | else | |
6547 | echo "$ac_t""no" 1>&6 | |
6548 | fi | |
6549 | ||
6550 | fi | |
6551 | ||
6552 | ||
6553 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
ab9b9eab | 6554 | echo "configure:6555: checking whether ln -s works" >&5 |
10f2d63a VZ |
6555 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6557 | else | |
6558 | rm -f conftestdata | |
6559 | if ln -s X conftestdata 2>/dev/null | |
6560 | then | |
6561 | rm -f conftestdata | |
6562 | ac_cv_prog_LN_S="ln -s" | |
6563 | else | |
6564 | ac_cv_prog_LN_S=ln | |
6565 | fi | |
6566 | fi | |
6567 | LN_S="$ac_cv_prog_LN_S" | |
6568 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6569 | echo "$ac_t""yes" 1>&6 | |
6570 | else | |
6571 | echo "$ac_t""no" 1>&6 | |
6572 | fi | |
6573 | ||
6574 | ||
6575 | ||
6576 | SEARCH_INCLUDE="\ | |
6577 | /usr/local/include \ | |
6578 | \ | |
6579 | /usr/Motif-1.2/include \ | |
6580 | /usr/Motif-2.1/include \ | |
6581 | \ | |
6582 | /usr/include/Motif1.2 \ | |
6583 | /opt/xpm/include/X11 \ | |
6584 | /opt/GBxpm/include/ \ | |
6585 | /opt/GBxpm/X11/include/ \ | |
6586 | \ | |
6587 | /usr/Motif1.2/include \ | |
6588 | /usr/dt/include \ | |
afc31813 VZ |
6589 | /usr/openwin/include \ |
6590 | \ | |
10f2d63a VZ |
6591 | /usr/include/Xm \ |
6592 | \ | |
6593 | /usr/X11R6/include \ | |
afc31813 | 6594 | /usr/X11R6.4/include \ |
10f2d63a VZ |
6595 | /usr/X11R5/include \ |
6596 | /usr/X11R4/include \ | |
6597 | \ | |
10f2d63a VZ |
6598 | /usr/include/X11R6 \ |
6599 | /usr/include/X11R5 \ | |
6600 | /usr/include/X11R4 \ | |
6601 | \ | |
6602 | /usr/local/X11R6/include \ | |
6603 | /usr/local/X11R5/include \ | |
6604 | /usr/local/X11R4/include \ | |
6605 | \ | |
6606 | /usr/local/include/X11R6 \ | |
6607 | /usr/local/include/X11R5 \ | |
6608 | /usr/local/include/X11R4 \ | |
6609 | \ | |
6610 | /usr/X11/include \ | |
6611 | /usr/include/X11 \ | |
6612 | /usr/local/X11/include \ | |
6613 | /usr/local/include/X11 \ | |
6614 | \ | |
6615 | /usr/X386/include \ | |
6616 | /usr/x386/include \ | |
6617 | /usr/XFree86/include/X11 \ | |
6618 | \ | |
6619 | /usr/include/gtk \ | |
6620 | /usr/local/include/gtk \ | |
6621 | /usr/include/glib \ | |
6622 | /usr/local/include/glib \ | |
6623 | \ | |
6624 | /usr/include/qt \ | |
6625 | /usr/local/include/qt \ | |
6626 | \ | |
6627 | /usr/include/windows \ | |
6628 | /usr/include/wine \ | |
6629 | /usr/local/include/wine \ | |
6630 | \ | |
6631 | /usr/unsupported/include \ | |
6632 | /usr/athena/include \ | |
6633 | /usr/local/x11r5/include \ | |
6634 | /usr/lpp/Xamples/include \ | |
6635 | \ | |
10f2d63a | 6636 | /usr/openwin/share/include \ |
928b5c08 VZ |
6637 | \ |
6638 | /usr/include" | |
10f2d63a VZ |
6639 | |
6640 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6641 | ||
6642 | ||
6643 | cat > confcache <<\EOF | |
6644 | # This file is a shell script that caches the results of configure | |
6645 | # tests run on this system so they can be shared between configure | |
6646 | # scripts and configure runs. It is not useful on other systems. | |
6647 | # If it contains results you don't want to keep, you may remove or edit it. | |
6648 | # | |
6649 | # By default, configure uses ./config.cache as the cache file, | |
6650 | # creating it if it does not exist already. You can give configure | |
6651 | # the --cache-file=FILE option to use a different cache file; that is | |
6652 | # what configure does when it calls configure scripts in | |
6653 | # subdirectories, so they share the cache. | |
6654 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6655 | # config.status only pays attention to the cache file if you give it the | |
6656 | # --recheck option to rerun configure. | |
6657 | # | |
6658 | EOF | |
6659 | # The following way of writing the cache mishandles newlines in values, | |
6660 | # but we know of no workaround that is simple, portable, and efficient. | |
6661 | # So, don't put newlines in cache variables' values. | |
6662 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6663 | # and sets the high bit in the cache file unless we assign to the vars. | |
6664 | (set) 2>&1 | | |
6665 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6666 | *ac_space=\ *) | |
6667 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6668 | # turns \\\\ into \\, and sed turns \\ into \). | |
6669 | sed -n \ | |
6670 | -e "s/'/'\\\\''/g" \ | |
6671 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6672 | ;; | |
6673 | *) | |
6674 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6675 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6676 | ;; | |
6677 | esac >> confcache | |
6678 | if cmp -s $cache_file confcache; then | |
6679 | : | |
6680 | else | |
6681 | if test -w $cache_file; then | |
6682 | echo "updating cache $cache_file" | |
6683 | cat confcache > $cache_file | |
6684 | else | |
6685 | echo "not updating unwritable cache $cache_file" | |
6686 | fi | |
6687 | fi | |
6688 | rm -f confcache | |
6689 | ||
6690 | ||
6691 | ||
6692 | if test "$wxUSE_GUI" = "yes"; then | |
6693 | ||
6694 | TOOLKIT= | |
6695 | TOOLKIT_INCLUDE= | |
6696 | ||
6697 | GUIOBJS= | |
6698 | COMMONOBJS= | |
6699 | GENERICOBJS= | |
6700 | ||
6701 | GUI_TK_LIBRARY= | |
6702 | GUI_TK_LINK= | |
6703 | ||
6704 | WXGTK12= | |
6705 | ||
6706 | WXWINE= | |
6707 | ||
6708 | PROGRAM_EXT= | |
6709 | ||
6710 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
6711 | if test "$cross_compiling" = "yes" ; then | |
6712 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 | |
6713 | else | |
6714 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
ab9b9eab | 6715 | echo "configure:6716: checking for Windows headers" >&5 |
10f2d63a VZ |
6716 | |
6717 | ac_find_includes= | |
6718 | for ac_dir in $SEARCH_INCLUDE; | |
6719 | do | |
6720 | if test -f "$ac_dir/windows.h"; then | |
6721 | ac_find_includes=$ac_dir | |
6722 | break | |
6723 | fi | |
6724 | done | |
6725 | ||
6726 | if test "$ac_find_includes" != "" ; then | |
6727 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6728 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6729 | else | |
6730 | echo "$ac_t""no" 1>&6 | |
6731 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6732 | fi | |
6733 | fi | |
6734 | ||
6735 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
6736 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6737 | ||
6738 | if test "$wxUSE_MINGW" = 1; then | |
6739 | LDFLAGS="$LDFLAGS -mwindows" | |
6740 | fi | |
6741 | ||
6742 | TOOLKIT=MSW | |
6743 | ||
6744 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6745 | GUIHEADERS="\$(MSW_HEADERS)" | |
6746 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6747 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6748 | UNIXOBJS= | |
6749 | GUIDIST=MSW_DIST | |
6750 | PROGRAM_EXT=.exe | |
6751 | fi | |
6752 | ||
6753 | if test "$wxUSE_GTK" = 1; then | |
6754 | ||
6755 | if test x$gtk_config_exec_prefix != x ; then | |
6756 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6757 | if test x${GTK_CONFIG+set} != xset ; then | |
6758 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6759 | fi | |
6760 | fi | |
6761 | if test x$gtk_config_prefix != x ; then | |
6762 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6763 | if test x${GTK_CONFIG+set} != xset ; then | |
6764 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6765 | fi | |
6766 | fi | |
6767 | ||
6768 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6769 | set dummy gtk-config; ac_word=$2 | |
6770 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab9b9eab | 6771 | echo "configure:6772: checking for $ac_word" >&5 |
10f2d63a VZ |
6772 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6774 | else | |
6775 | case "$GTK_CONFIG" in | |
6776 | /*) | |
6777 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6778 | ;; | |
6779 | ?:/*) | |
6780 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
6781 | ;; | |
6782 | *) | |
6783 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6784 | ac_dummy="$PATH" | |
6785 | for ac_dir in $ac_dummy; do | |
6786 | test -z "$ac_dir" && ac_dir=. | |
6787 | if test -f $ac_dir/$ac_word; then | |
6788 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6789 | break | |
6790 | fi | |
6791 | done | |
6792 | IFS="$ac_save_ifs" | |
6793 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6794 | ;; | |
6795 | esac | |
6796 | fi | |
6797 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6798 | if test -n "$GTK_CONFIG"; then | |
6799 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6800 | else | |
6801 | echo "$ac_t""no" 1>&6 | |
6802 | fi | |
6803 | ||
6804 | min_gtk_version=1.2.1 | |
6805 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
ab9b9eab | 6806 | echo "configure:6807: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
6807 | no_gtk="" |
6808 | if test "$GTK_CONFIG" != "no" ; then | |
6809 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6810 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6811 | ac_save_CFLAGS="$CFLAGS" | |
6812 | ac_save_LIBS="$LIBS" | |
6813 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6814 | LIBS="$LIBS $GTK_LIBS" | |
6815 | if test "$cross_compiling" = yes; then | |
6816 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6817 | else | |
6818 | cat > conftest.$ac_ext <<EOF | |
ab9b9eab | 6819 | #line 6820 "configure" |
10f2d63a VZ |
6820 | #include "confdefs.h" |
6821 | ||
6822 | #include <gtk/gtk.h> | |
6823 | #include <stdio.h> | |
6824 | ||
6825 | int | |
6826 | main () | |
6827 | { | |
6828 | int major, minor, micro; | |
6829 | ||
6830 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6831 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6832 | exit(1); | |
6833 | } | |
6834 | ||
6835 | if (gtk_minor_version == 1) return FALSE; | |
6836 | ||
6837 | return !((gtk_major_version > major) || | |
6838 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6839 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6840 | } | |
6841 | ||
6842 | EOF | |
ab9b9eab | 6843 | if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
6844 | then |
6845 | : | |
6846 | else | |
6847 | echo "configure: failed program was:" >&5 | |
6848 | cat conftest.$ac_ext >&5 | |
6849 | rm -fr conftest* | |
6850 | no_gtk=yes | |
6851 | fi | |
6852 | rm -fr conftest* | |
6853 | fi | |
6854 | ||
6855 | CFLAGS="$ac_save_CFLAGS" | |
6856 | LIBS="$ac_save_LIBS" | |
6857 | else | |
6858 | no_gtk=yes | |
6859 | fi | |
6860 | if test "x$no_gtk" = x ; then | |
6861 | echo "$ac_t""yes" 1>&6 | |
6862 | WXGTK12=1 | |
6863 | else | |
6864 | echo "$ac_t""no" 1>&6 | |
6865 | GTK_CFLAGS="" | |
6866 | GTK_LIBS="" | |
6867 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; } | |
6868 | fi | |
6869 | ||
6870 | ||
6871 | ||
6872 | ||
6873 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
6874 | GUI_TK_LIBRARY="$GTK_LIBS" | |
6875 | TOOLKIT=GTK | |
6876 | ||
6877 | GUIOBJS="\$(GTK_GUIOBJS)" | |
6878 | GUIHEADERS="\$(GTK_HEADERS)" | |
6879 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
6880 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
6881 | GUIDEPS="\$(GTK_GUIDEPS)" | |
6882 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
6883 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
6884 | UNIXOBJS="\$(UNIX_OBJS)" | |
6885 | GUIDIST=GTK_DIST | |
6886 | fi | |
6887 | ||
6888 | if test "$wxUSE_WINE" = 1; then | |
6889 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
ab9b9eab | 6890 | echo "configure:6891: checking for WINE includes" >&5 |
10f2d63a VZ |
6891 | |
6892 | ac_find_includes= | |
6893 | for ac_dir in $SEARCH_INCLUDE; | |
6894 | do | |
6895 | if test -f "$ac_dir/windows.h"; then | |
6896 | ac_find_includes=$ac_dir | |
6897 | break | |
6898 | fi | |
6899 | done | |
6900 | ||
6901 | if test "$ac_find_includes" != "" ; then | |
6902 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6903 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6904 | else | |
6905 | echo "$ac_t""no" 1>&6 | |
6906 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6907 | fi | |
6908 | ||
6909 | XPM_LINK="" | |
6910 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
ab9b9eab | 6911 | echo "configure:6912: checking for Xpm library" >&5 |
10f2d63a VZ |
6912 | |
6913 | ac_find_libraries= | |
6914 | for ac_dir in $SEARCH_LIB; | |
6915 | do | |
6916 | for ac_extension in a so sl; do | |
6917 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
6918 | ac_find_libraries=$ac_dir | |
6919 | break 2 | |
6920 | fi | |
6921 | done | |
6922 | done | |
6923 | ||
6924 | if test "$ac_find_libraries" != "" ; then | |
6925 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
6926 | XPM_LINK="-lXpm" | |
6927 | cat >> confdefs.h <<\EOF | |
6928 | #define wxHAVE_LIB_XPM 1 | |
6929 | EOF | |
6930 | ||
6931 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6932 | else | |
6933 | echo "$ac_t""no" 1>&6 | |
6934 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
6935 | fi | |
6936 | ||
6937 | MESA_LINK="" | |
6938 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
ab9b9eab | 6939 | echo "configure:6940: checking for Mesa library" >&5 |
10f2d63a VZ |
6940 | |
6941 | ac_find_libraries= | |
6942 | for ac_dir in $SEARCH_LIB; | |
6943 | do | |
6944 | for ac_extension in a so sl; do | |
6945 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
6946 | ac_find_libraries=$ac_dir | |
6947 | break 2 | |
6948 | fi | |
6949 | done | |
6950 | done | |
6951 | ||
6952 | if test "$ac_find_libraries" != "" ; then | |
6953 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
6954 | MESA_LINK="-lMesaGL" | |
6955 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6956 | else | |
6957 | { echo "configure: error: no" 1>&2; exit 1; } | |
6958 | fi | |
6959 | ||
6960 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" | |
6961 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
6962 | WXWINE=1 | |
6963 | TOOLKIT=MSW | |
6964 | ||
6965 | GUIHEADERS="\$(MSW_HEADERS)" | |
6966 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6967 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6968 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6969 | GUIDEPS="\$(MSW_GUIDEPS)" | |
6970 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
6971 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
6972 | UNIXOBJS="\$(UNIX_OBJS)" | |
6973 | GUIDIST=MSW_DIST | |
6974 | fi | |
6975 | ||
6976 | if test "$wxUSE_MOTIF" = 1; then | |
ab9b9eab VZ |
6977 | # If we find X, set shell vars x_includes and x_libraries to the |
6978 | # paths, otherwise set no_x=yes. | |
6979 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
6980 | # --without-x overrides everything else, but does not touch the cache. | |
6981 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
6982 | echo "configure:6983: checking for X" >&5 | |
6983 | ||
6984 | # Check whether --with-x or --without-x was given. | |
6985 | if test "${with_x+set}" = set; then | |
6986 | withval="$with_x" | |
6987 | : | |
6988 | fi | |
ba337fe7 | 6989 | |
ab9b9eab VZ |
6990 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
6991 | if test "x$with_x" = xno; then | |
6992 | # The user explicitly disabled X. | |
6993 | have_x=disabled | |
6994 | else | |
6995 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
6996 | # Both variables are already set. | |
6997 | have_x=yes | |
6998 | else | |
6999 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7001 | else | |
7002 | # One or both of the vars are not set, and there is no cached value. | |
7003 | ac_x_includes=NO ac_x_libraries=NO | |
7004 | rm -fr conftestdir | |
7005 | if mkdir conftestdir; then | |
7006 | cd conftestdir | |
7007 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7008 | cat > Imakefile <<'EOF' | |
7009 | acfindx: | |
7010 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7011 | EOF | |
7012 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7013 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7014 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7015 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 7016 | for ac_extension in a so sl; do |
ab9b9eab VZ |
7017 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
7018 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7019 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
7020 | fi |
7021 | done | |
ab9b9eab VZ |
7022 | # Screen out bogus values from the imake configuration. They are |
7023 | # bogus both because they are the default anyway, and because | |
7024 | # using them would break gcc on systems where it needs fixed includes. | |
7025 | case "$ac_im_incroot" in | |
7026 | /usr/include) ;; | |
7027 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7028 | esac | |
7029 | case "$ac_im_usrlibdir" in | |
7030 | /usr/lib | /lib) ;; | |
7031 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7032 | esac | |
ba337fe7 | 7033 | fi |
ab9b9eab VZ |
7034 | cd .. |
7035 | rm -fr conftestdir | |
7036 | fi | |
10f2d63a | 7037 | |
ab9b9eab VZ |
7038 | if test "$ac_x_includes" = NO; then |
7039 | # Guess where to find include files, by looking for this one X11 .h file. | |
7040 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 7041 | |
ab9b9eab VZ |
7042 | # First, try using that file with no special directory specified. |
7043 | cat > conftest.$ac_ext <<EOF | |
7044 | #line 7045 "configure" | |
7045 | #include "confdefs.h" | |
7046 | #include <$x_direct_test_include> | |
7047 | EOF | |
7048 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7049 | { (eval echo configure:7050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7050 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7051 | if test -z "$ac_err"; then | |
7052 | rm -rf conftest* | |
7053 | # We can compile using X headers with no special include directory. | |
7054 | ac_x_includes= | |
7055 | else | |
7056 | echo "$ac_err" >&5 | |
7057 | echo "configure: failed program was:" >&5 | |
7058 | cat conftest.$ac_ext >&5 | |
7059 | rm -rf conftest* | |
7060 | # Look for the header file in a standard set of common directories. | |
7061 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7062 | for ac_dir in \ | |
7063 | /usr/X11/include \ | |
7064 | /usr/X11R6/include \ | |
7065 | /usr/X11R5/include \ | |
7066 | /usr/X11R4/include \ | |
7067 | \ | |
7068 | /usr/include/X11 \ | |
7069 | /usr/include/X11R6 \ | |
7070 | /usr/include/X11R5 \ | |
7071 | /usr/include/X11R4 \ | |
7072 | \ | |
7073 | /usr/local/X11/include \ | |
7074 | /usr/local/X11R6/include \ | |
7075 | /usr/local/X11R5/include \ | |
7076 | /usr/local/X11R4/include \ | |
7077 | \ | |
7078 | /usr/local/include/X11 \ | |
7079 | /usr/local/include/X11R6 \ | |
7080 | /usr/local/include/X11R5 \ | |
7081 | /usr/local/include/X11R4 \ | |
7082 | \ | |
7083 | /usr/X386/include \ | |
7084 | /usr/x386/include \ | |
7085 | /usr/XFree86/include/X11 \ | |
7086 | \ | |
7087 | /usr/include \ | |
7088 | /usr/local/include \ | |
7089 | /usr/unsupported/include \ | |
7090 | /usr/athena/include \ | |
7091 | /usr/local/x11r5/include \ | |
7092 | /usr/lpp/Xamples/include \ | |
7093 | \ | |
7094 | /usr/openwin/include \ | |
7095 | /usr/openwin/share/include \ | |
7096 | ; \ | |
10f2d63a | 7097 | do |
ab9b9eab VZ |
7098 | if test -r "$ac_dir/$x_direct_test_include"; then |
7099 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
7100 | break |
7101 | fi | |
7102 | done | |
ab9b9eab VZ |
7103 | fi |
7104 | rm -f conftest* | |
7105 | fi # $ac_x_includes = NO | |
10f2d63a | 7106 | |
ab9b9eab VZ |
7107 | if test "$ac_x_libraries" = NO; then |
7108 | # Check for the libraries. | |
10f2d63a | 7109 | |
ab9b9eab VZ |
7110 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
7111 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 7112 | |
ab9b9eab VZ |
7113 | # See if we find them without any special options. |
7114 | # Don't add to $LIBS permanently. | |
7115 | ac_save_LIBS="$LIBS" | |
7116 | LIBS="-l$x_direct_test_library $LIBS" | |
7117 | cat > conftest.$ac_ext <<EOF | |
7118 | #line 7119 "configure" | |
7119 | #include "confdefs.h" | |
10f2d63a | 7120 | |
ab9b9eab VZ |
7121 | int main() { |
7122 | ${x_direct_test_function}() | |
7123 | ; return 0; } | |
7124 | EOF | |
7125 | if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7126 | rm -rf conftest* | |
7127 | LIBS="$ac_save_LIBS" | |
7128 | # We can link X programs with no special library path. | |
7129 | ac_x_libraries= | |
7130 | else | |
7131 | echo "configure: failed program was:" >&5 | |
7132 | cat conftest.$ac_ext >&5 | |
7133 | rm -rf conftest* | |
7134 | LIBS="$ac_save_LIBS" | |
7135 | # First see if replacing the include by lib works. | |
7136 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7137 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7138 | /usr/X11/lib \ | |
7139 | /usr/X11R6/lib \ | |
7140 | /usr/X11R5/lib \ | |
7141 | /usr/X11R4/lib \ | |
7142 | \ | |
7143 | /usr/lib/X11 \ | |
7144 | /usr/lib/X11R6 \ | |
7145 | /usr/lib/X11R5 \ | |
7146 | /usr/lib/X11R4 \ | |
7147 | \ | |
7148 | /usr/local/X11/lib \ | |
7149 | /usr/local/X11R6/lib \ | |
7150 | /usr/local/X11R5/lib \ | |
7151 | /usr/local/X11R4/lib \ | |
7152 | \ | |
7153 | /usr/local/lib/X11 \ | |
7154 | /usr/local/lib/X11R6 \ | |
7155 | /usr/local/lib/X11R5 \ | |
7156 | /usr/local/lib/X11R4 \ | |
7157 | \ | |
7158 | /usr/X386/lib \ | |
7159 | /usr/x386/lib \ | |
7160 | /usr/XFree86/lib/X11 \ | |
7161 | \ | |
7162 | /usr/lib \ | |
7163 | /usr/local/lib \ | |
7164 | /usr/unsupported/lib \ | |
7165 | /usr/athena/lib \ | |
7166 | /usr/local/x11r5/lib \ | |
7167 | /usr/lpp/Xamples/lib \ | |
7168 | /lib/usr/lib/X11 \ | |
7169 | \ | |
7170 | /usr/openwin/lib \ | |
7171 | /usr/openwin/share/lib \ | |
7172 | ; \ | |
7173 | do | |
7174 | for ac_extension in a so sl; do | |
7175 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7176 | ac_x_libraries=$ac_dir | |
7177 | break 2 | |
10f2d63a | 7178 | fi |
10f2d63a | 7179 | done |
ab9b9eab VZ |
7180 | done |
7181 | fi | |
7182 | rm -f conftest* | |
7183 | fi # $ac_x_libraries = NO | |
10f2d63a | 7184 | |
ab9b9eab VZ |
7185 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
7186 | # Didn't find X anywhere. Cache the known absence of X. | |
7187 | ac_cv_have_x="have_x=no" | |
7188 | else | |
7189 | # Record where we found X for the cache. | |
7190 | ac_cv_have_x="have_x=yes \ | |
7191 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7192 | fi | |
7193 | fi | |
10f2d63a | 7194 | fi |
ab9b9eab VZ |
7195 | eval "$ac_cv_have_x" |
7196 | fi # $with_x != no | |
10f2d63a | 7197 | |
ab9b9eab VZ |
7198 | if test "$have_x" != yes; then |
7199 | echo "$ac_t""$have_x" 1>&6 | |
7200 | no_x=yes | |
7201 | else | |
7202 | # If each of the values was on the command line, it overrides each guess. | |
7203 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7204 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7205 | # Update the cache value to reflect the command line values. | |
7206 | ac_cv_have_x="have_x=yes \ | |
7207 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7208 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7209 | fi | |
10f2d63a | 7210 | |
ab9b9eab VZ |
7211 | if test "$no_x" = yes; then |
7212 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7213 | cat >> confdefs.h <<\EOF | |
7214 | #define X_DISPLAY_MISSING 1 | |
7215 | EOF | |
10f2d63a | 7216 | |
ab9b9eab VZ |
7217 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
7218 | else | |
7219 | if test -n "$x_includes"; then | |
7220 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
7221 | fi |
7222 | ||
ab9b9eab VZ |
7223 | # It would also be nice to do this for all -L options, not just this one. |
7224 | if test -n "$x_libraries"; then | |
7225 | X_LIBS="$X_LIBS -L$x_libraries" | |
7226 | # For Solaris; some versions of Sun CC require a space after -R and | |
7227 | # others require no space. Words are not sufficient . . . . | |
7228 | case "`(uname -sr) 2>/dev/null`" in | |
7229 | "SunOS 5"*) | |
7230 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
7231 | echo "configure:7232: checking whether -R must be followed by a space" >&5 | |
7232 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
7233 | cat > conftest.$ac_ext <<EOF | |
7234 | #line 7235 "configure" | |
7235 | #include "confdefs.h" | |
10f2d63a | 7236 | |
ab9b9eab | 7237 | int main() { |
788deba1 | 7238 | |
ab9b9eab VZ |
7239 | ; return 0; } |
7240 | EOF | |
7241 | if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7242 | rm -rf conftest* | |
7243 | ac_R_nospace=yes | |
7244 | else | |
7245 | echo "configure: failed program was:" >&5 | |
7246 | cat conftest.$ac_ext >&5 | |
7247 | rm -rf conftest* | |
7248 | ac_R_nospace=no | |
7249 | fi | |
7250 | rm -f conftest* | |
7251 | if test $ac_R_nospace = yes; then | |
7252 | echo "$ac_t""no" 1>&6 | |
7253 | X_LIBS="$X_LIBS -R$x_libraries" | |
7254 | else | |
7255 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7256 | cat > conftest.$ac_ext <<EOF | |
7257 | #line 7258 "configure" | |
7258 | #include "confdefs.h" | |
788deba1 | 7259 | |
ab9b9eab VZ |
7260 | int main() { |
7261 | ||
7262 | ; return 0; } | |
7263 | EOF | |
7264 | if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7265 | rm -rf conftest* | |
7266 | ac_R_space=yes | |
7267 | else | |
7268 | echo "configure: failed program was:" >&5 | |
7269 | cat conftest.$ac_ext >&5 | |
7270 | rm -rf conftest* | |
7271 | ac_R_space=no | |
7272 | fi | |
7273 | rm -f conftest* | |
7274 | if test $ac_R_space = yes; then | |
7275 | echo "$ac_t""yes" 1>&6 | |
7276 | X_LIBS="$X_LIBS -R $x_libraries" | |
7277 | else | |
7278 | echo "$ac_t""neither works" 1>&6 | |
7279 | fi | |
7280 | fi | |
7281 | LIBS="$ac_xsave_LIBS" | |
7282 | esac | |
7283 | fi | |
7284 | ||
7285 | # Check for system-dependent libraries X programs must link with. | |
7286 | # Do this before checking for the system-independent R6 libraries | |
7287 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7288 | ||
7289 | if test "$ISC" = yes; then | |
7290 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7291 | else | |
7292 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7293 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7294 | # the Alpha needs dnet_stub (dnet does not exist). | |
7295 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
7296 | echo "configure:7297: checking for dnet_ntoa in -ldnet" >&5 | |
7297 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
7298 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7300 | else | |
7301 | ac_save_LIBS="$LIBS" | |
7302 | LIBS="-ldnet $LIBS" | |
7303 | cat > conftest.$ac_ext <<EOF | |
7304 | #line 7305 "configure" | |
7305 | #include "confdefs.h" | |
7306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7307 | /* We use char because int might match the return type of a gcc2 | |
7308 | builtin and then its argument prototype would still apply. */ | |
7309 | char dnet_ntoa(); | |
7310 | ||
7311 | int main() { | |
7312 | dnet_ntoa() | |
7313 | ; return 0; } | |
7314 | EOF | |
7315 | if { (eval echo configure:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7316 | rm -rf conftest* | |
7317 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7318 | else | |
7319 | echo "configure: failed program was:" >&5 | |
7320 | cat conftest.$ac_ext >&5 | |
7321 | rm -rf conftest* | |
7322 | eval "ac_cv_lib_$ac_lib_var=no" | |
7323 | fi | |
7324 | rm -f conftest* | |
7325 | LIBS="$ac_save_LIBS" | |
7326 | ||
7327 | fi | |
7328 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7329 | echo "$ac_t""yes" 1>&6 | |
7330 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7331 | else | |
7332 | echo "$ac_t""no" 1>&6 | |
7333 | fi | |
7334 | ||
7335 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7336 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
7337 | echo "configure:7338: checking for dnet_ntoa in -ldnet_stub" >&5 | |
7338 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
7339 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7341 | else | |
7342 | ac_save_LIBS="$LIBS" | |
7343 | LIBS="-ldnet_stub $LIBS" | |
7344 | cat > conftest.$ac_ext <<EOF | |
7345 | #line 7346 "configure" | |
7346 | #include "confdefs.h" | |
7347 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7348 | /* We use char because int might match the return type of a gcc2 | |
7349 | builtin and then its argument prototype would still apply. */ | |
7350 | char dnet_ntoa(); | |
7351 | ||
7352 | int main() { | |
7353 | dnet_ntoa() | |
7354 | ; return 0; } | |
7355 | EOF | |
7356 | if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7357 | rm -rf conftest* | |
7358 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7359 | else | |
7360 | echo "configure: failed program was:" >&5 | |
7361 | cat conftest.$ac_ext >&5 | |
7362 | rm -rf conftest* | |
7363 | eval "ac_cv_lib_$ac_lib_var=no" | |
7364 | fi | |
7365 | rm -f conftest* | |
7366 | LIBS="$ac_save_LIBS" | |
7367 | ||
7368 | fi | |
7369 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7370 | echo "$ac_t""yes" 1>&6 | |
7371 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7372 | else | |
7373 | echo "$ac_t""no" 1>&6 | |
7374 | fi | |
7375 | ||
7376 | fi | |
7377 | ||
7378 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7379 | # to get the SysV transport functions. | |
7380 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7381 | # needs -lnsl. | |
7382 | # The nsl library prevents programs from opening the X display | |
7383 | # on Irix 5.2, according to dickey@clark.net. | |
7384 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
7385 | echo "configure:7386: checking for gethostbyname" >&5 | |
7386 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
7387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7388 | else | |
7389 | cat > conftest.$ac_ext <<EOF | |
7390 | #line 7391 "configure" | |
7391 | #include "confdefs.h" | |
7392 | /* System header to define __stub macros and hopefully few prototypes, | |
7393 | which can conflict with char gethostbyname(); below. */ | |
7394 | #include <assert.h> | |
7395 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7396 | /* We use char because int might match the return type of a gcc2 | |
7397 | builtin and then its argument prototype would still apply. */ | |
7398 | char gethostbyname(); | |
69ffe1d2 | 7399 | char (*f)(); |
ab9b9eab VZ |
7400 | |
7401 | int main() { | |
7402 | ||
7403 | /* The GNU C library defines this for functions which it implements | |
7404 | to always fail with ENOSYS. Some functions are actually named | |
7405 | something starting with __ and the normal name is an alias. */ | |
7406 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7407 | choke me | |
7408 | #else | |
69ffe1d2 | 7409 | f = gethostbyname; |
ab9b9eab VZ |
7410 | #endif |
7411 | ||
7412 | ; return 0; } | |
7413 | EOF | |
69ffe1d2 | 7414 | if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7415 | rm -rf conftest* |
7416 | eval "ac_cv_func_gethostbyname=yes" | |
7417 | else | |
7418 | echo "configure: failed program was:" >&5 | |
7419 | cat conftest.$ac_ext >&5 | |
7420 | rm -rf conftest* | |
7421 | eval "ac_cv_func_gethostbyname=no" | |
7422 | fi | |
7423 | rm -f conftest* | |
7424 | fi | |
7425 | ||
7426 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7427 | echo "$ac_t""yes" 1>&6 | |
7428 | : | |
7429 | else | |
7430 | echo "$ac_t""no" 1>&6 | |
7431 | fi | |
7432 | ||
7433 | if test $ac_cv_func_gethostbyname = no; then | |
7434 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
69ffe1d2 | 7435 | echo "configure:7436: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
7436 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
7437 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7439 | else | |
7440 | ac_save_LIBS="$LIBS" | |
7441 | LIBS="-lnsl $LIBS" | |
7442 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 7443 | #line 7444 "configure" |
ab9b9eab VZ |
7444 | #include "confdefs.h" |
7445 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7446 | /* We use char because int might match the return type of a gcc2 | |
7447 | builtin and then its argument prototype would still apply. */ | |
7448 | char gethostbyname(); | |
7449 | ||
7450 | int main() { | |
7451 | gethostbyname() | |
7452 | ; return 0; } | |
7453 | EOF | |
69ffe1d2 | 7454 | if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7455 | rm -rf conftest* |
7456 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7457 | else | |
7458 | echo "configure: failed program was:" >&5 | |
7459 | cat conftest.$ac_ext >&5 | |
7460 | rm -rf conftest* | |
7461 | eval "ac_cv_lib_$ac_lib_var=no" | |
7462 | fi | |
7463 | rm -f conftest* | |
7464 | LIBS="$ac_save_LIBS" | |
7465 | ||
7466 | fi | |
7467 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7468 | echo "$ac_t""yes" 1>&6 | |
7469 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7470 | else | |
7471 | echo "$ac_t""no" 1>&6 | |
7472 | fi | |
7473 | ||
7474 | fi | |
7475 | ||
7476 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7477 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7478 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7479 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7480 | # gethostby* variants that don't use the nameserver (or something). | |
7481 | # -lsocket must be given before -lnsl if both are needed. | |
7482 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7483 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
69ffe1d2 | 7484 | echo "configure:7485: checking for connect" >&5 |
ab9b9eab VZ |
7485 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
7486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7487 | else | |
7488 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 7489 | #line 7490 "configure" |
ab9b9eab VZ |
7490 | #include "confdefs.h" |
7491 | /* System header to define __stub macros and hopefully few prototypes, | |
7492 | which can conflict with char connect(); below. */ | |
7493 | #include <assert.h> | |
7494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7495 | /* We use char because int might match the return type of a gcc2 | |
7496 | builtin and then its argument prototype would still apply. */ | |
7497 | char connect(); | |
69ffe1d2 | 7498 | char (*f)(); |
ab9b9eab VZ |
7499 | |
7500 | int main() { | |
7501 | ||
7502 | /* The GNU C library defines this for functions which it implements | |
7503 | to always fail with ENOSYS. Some functions are actually named | |
7504 | something starting with __ and the normal name is an alias. */ | |
7505 | #if defined (__stub_connect) || defined (__stub___connect) | |
7506 | choke me | |
7507 | #else | |
69ffe1d2 | 7508 | f = connect; |
ab9b9eab VZ |
7509 | #endif |
7510 | ||
7511 | ; return 0; } | |
7512 | EOF | |
69ffe1d2 | 7513 | if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7514 | rm -rf conftest* |
7515 | eval "ac_cv_func_connect=yes" | |
7516 | else | |
7517 | echo "configure: failed program was:" >&5 | |
7518 | cat conftest.$ac_ext >&5 | |
7519 | rm -rf conftest* | |
7520 | eval "ac_cv_func_connect=no" | |
7521 | fi | |
7522 | rm -f conftest* | |
7523 | fi | |
7524 | ||
7525 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7526 | echo "$ac_t""yes" 1>&6 | |
7527 | : | |
7528 | else | |
7529 | echo "$ac_t""no" 1>&6 | |
7530 | fi | |
7531 | ||
7532 | if test $ac_cv_func_connect = no; then | |
7533 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
69ffe1d2 | 7534 | echo "configure:7535: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
7535 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
7536 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7538 | else | |
7539 | ac_save_LIBS="$LIBS" | |
7540 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7541 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 7542 | #line 7543 "configure" |
ab9b9eab VZ |
7543 | #include "confdefs.h" |
7544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7545 | /* We use char because int might match the return type of a gcc2 | |
7546 | builtin and then its argument prototype would still apply. */ | |
7547 | char connect(); | |
7548 | ||
7549 | int main() { | |
7550 | connect() | |
7551 | ; return 0; } | |
7552 | EOF | |
69ffe1d2 | 7553 | if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7554 | rm -rf conftest* |
7555 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7556 | else | |
7557 | echo "configure: failed program was:" >&5 | |
7558 | cat conftest.$ac_ext >&5 | |
7559 | rm -rf conftest* | |
7560 | eval "ac_cv_lib_$ac_lib_var=no" | |
7561 | fi | |
7562 | rm -f conftest* | |
7563 | LIBS="$ac_save_LIBS" | |
7564 | ||
7565 | fi | |
7566 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7567 | echo "$ac_t""yes" 1>&6 | |
7568 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7569 | else | |
7570 | echo "$ac_t""no" 1>&6 | |
7571 | fi | |
7572 | ||
7573 | fi | |
7574 | ||
7575 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7576 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
69ffe1d2 | 7577 | echo "configure:7578: checking for remove" >&5 |
ab9b9eab VZ |
7578 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
7579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7580 | else | |
7581 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 7582 | #line 7583 "configure" |
ab9b9eab VZ |
7583 | #include "confdefs.h" |
7584 | /* System header to define __stub macros and hopefully few prototypes, | |
7585 | which can conflict with char remove(); below. */ | |
7586 | #include <assert.h> | |
7587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7588 | /* We use char because int might match the return type of a gcc2 | |
7589 | builtin and then its argument prototype would still apply. */ | |
7590 | char remove(); | |
69ffe1d2 | 7591 | char (*f)(); |
ab9b9eab VZ |
7592 | |
7593 | int main() { | |
7594 | ||
7595 | /* The GNU C library defines this for functions which it implements | |
7596 | to always fail with ENOSYS. Some functions are actually named | |
7597 | something starting with __ and the normal name is an alias. */ | |
7598 | #if defined (__stub_remove) || defined (__stub___remove) | |
7599 | choke me | |
7600 | #else | |
69ffe1d2 | 7601 | f = remove; |
ab9b9eab VZ |
7602 | #endif |
7603 | ||
7604 | ; return 0; } | |
7605 | EOF | |
69ffe1d2 | 7606 | if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7607 | rm -rf conftest* |
7608 | eval "ac_cv_func_remove=yes" | |
7609 | else | |
7610 | echo "configure: failed program was:" >&5 | |
7611 | cat conftest.$ac_ext >&5 | |
7612 | rm -rf conftest* | |
7613 | eval "ac_cv_func_remove=no" | |
7614 | fi | |
7615 | rm -f conftest* | |
7616 | fi | |
7617 | ||
7618 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
7619 | echo "$ac_t""yes" 1>&6 | |
7620 | : | |
7621 | else | |
7622 | echo "$ac_t""no" 1>&6 | |
7623 | fi | |
7624 | ||
7625 | if test $ac_cv_func_remove = no; then | |
7626 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
69ffe1d2 | 7627 | echo "configure:7628: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
7628 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
7629 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7631 | else | |
7632 | ac_save_LIBS="$LIBS" | |
7633 | LIBS="-lposix $LIBS" | |
7634 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 7635 | #line 7636 "configure" |
ab9b9eab VZ |
7636 | #include "confdefs.h" |
7637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7638 | /* We use char because int might match the return type of a gcc2 | |
7639 | builtin and then its argument prototype would still apply. */ | |
7640 | char remove(); | |
7641 | ||
7642 | int main() { | |
7643 | remove() | |
7644 | ; return 0; } | |
7645 | EOF | |
69ffe1d2 | 7646 | if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7647 | rm -rf conftest* |
7648 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7649 | else | |
7650 | echo "configure: failed program was:" >&5 | |
7651 | cat conftest.$ac_ext >&5 | |
7652 | rm -rf conftest* | |
7653 | eval "ac_cv_lib_$ac_lib_var=no" | |
7654 | fi | |
7655 | rm -f conftest* | |
7656 | LIBS="$ac_save_LIBS" | |
7657 | ||
7658 | fi | |
7659 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7660 | echo "$ac_t""yes" 1>&6 | |
7661 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
7662 | else | |
7663 | echo "$ac_t""no" 1>&6 | |
7664 | fi | |
7665 | ||
7666 | fi | |
7667 | ||
7668 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
7669 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
69ffe1d2 | 7670 | echo "configure:7671: checking for shmat" >&5 |
ab9b9eab VZ |
7671 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
7672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7673 | else | |
7674 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 7675 | #line 7676 "configure" |
ab9b9eab VZ |
7676 | #include "confdefs.h" |
7677 | /* System header to define __stub macros and hopefully few prototypes, | |
7678 | which can conflict with char shmat(); below. */ | |
7679 | #include <assert.h> | |
7680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7681 | /* We use char because int might match the return type of a gcc2 | |
7682 | builtin and then its argument prototype would still apply. */ | |
7683 | char shmat(); | |
69ffe1d2 | 7684 | char (*f)(); |
ab9b9eab VZ |
7685 | |
7686 | int main() { | |
7687 | ||
7688 | /* The GNU C library defines this for functions which it implements | |
7689 | to always fail with ENOSYS. Some functions are actually named | |
7690 | something starting with __ and the normal name is an alias. */ | |
7691 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
7692 | choke me | |
7693 | #else | |
69ffe1d2 | 7694 | f = shmat; |
ab9b9eab VZ |
7695 | #endif |
7696 | ||
7697 | ; return 0; } | |
7698 | EOF | |
69ffe1d2 | 7699 | if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7700 | rm -rf conftest* |
7701 | eval "ac_cv_func_shmat=yes" | |
7702 | else | |
7703 | echo "configure: failed program was:" >&5 | |
7704 | cat conftest.$ac_ext >&5 | |
7705 | rm -rf conftest* | |
7706 | eval "ac_cv_func_shmat=no" | |
7707 | fi | |
7708 | rm -f conftest* | |
7709 | fi | |
7710 | ||
7711 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
7712 | echo "$ac_t""yes" 1>&6 | |
7713 | : | |
7714 | else | |
7715 | echo "$ac_t""no" 1>&6 | |
7716 | fi | |
7717 | ||
7718 | if test $ac_cv_func_shmat = no; then | |
7719 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
69ffe1d2 | 7720 | echo "configure:7721: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
7721 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
7722 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7724 | else | |
7725 | ac_save_LIBS="$LIBS" | |
7726 | LIBS="-lipc $LIBS" | |
7727 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 7728 | #line 7729 "configure" |
ab9b9eab VZ |
7729 | #include "confdefs.h" |
7730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7731 | /* We use char because int might match the return type of a gcc2 | |
7732 | builtin and then its argument prototype would still apply. */ | |
7733 | char shmat(); | |
7734 | ||
7735 | int main() { | |
7736 | shmat() | |
7737 | ; return 0; } | |
7738 | EOF | |
69ffe1d2 | 7739 | if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7740 | rm -rf conftest* |
7741 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7742 | else | |
7743 | echo "configure: failed program was:" >&5 | |
7744 | cat conftest.$ac_ext >&5 | |
7745 | rm -rf conftest* | |
7746 | eval "ac_cv_lib_$ac_lib_var=no" | |
7747 | fi | |
7748 | rm -f conftest* | |
7749 | LIBS="$ac_save_LIBS" | |
7750 | ||
7751 | fi | |
7752 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7753 | echo "$ac_t""yes" 1>&6 | |
7754 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
7755 | else | |
7756 | echo "$ac_t""no" 1>&6 | |
7757 | fi | |
7758 | ||
7759 | fi | |
7760 | fi | |
7761 | ||
7762 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
7763 | ac_save_LDFLAGS="$LDFLAGS" | |
7764 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
7765 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
7766 | # check for ICE first), but we must link in the order -lSM -lICE or | |
7767 | # we get undefined symbols. So assume we have SM if we have ICE. | |
7768 | # These have to be linked with before -lX11, unlike the other | |
7769 | # libraries we check for below, so use a different variable. | |
7770 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
7771 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
69ffe1d2 | 7772 | echo "configure:7773: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
7773 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
7774 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7776 | else | |
7777 | ac_save_LIBS="$LIBS" | |
7778 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
7779 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 7780 | #line 7781 "configure" |
ab9b9eab VZ |
7781 | #include "confdefs.h" |
7782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7783 | /* We use char because int might match the return type of a gcc2 | |
7784 | builtin and then its argument prototype would still apply. */ | |
7785 | char IceConnectionNumber(); | |
7786 | ||
7787 | int main() { | |
7788 | IceConnectionNumber() | |
7789 | ; return 0; } | |
7790 | EOF | |
69ffe1d2 | 7791 | if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7792 | rm -rf conftest* |
7793 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7794 | else | |
7795 | echo "configure: failed program was:" >&5 | |
7796 | cat conftest.$ac_ext >&5 | |
7797 | rm -rf conftest* | |
7798 | eval "ac_cv_lib_$ac_lib_var=no" | |
7799 | fi | |
7800 | rm -f conftest* | |
7801 | LIBS="$ac_save_LIBS" | |
7802 | ||
7803 | fi | |
7804 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7805 | echo "$ac_t""yes" 1>&6 | |
7806 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
7807 | else | |
7808 | echo "$ac_t""no" 1>&6 | |
7809 | fi | |
7810 | ||
7811 | LDFLAGS="$ac_save_LDFLAGS" | |
7812 | ||
7813 | fi | |
7814 | ||
7815 | ||
7816 | if test "$no_x" = "yes"; then | |
7817 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
7818 | fi | |
7819 | ||
7820 | GUI_TK_LIBRARY="$X_LIBS" | |
7821 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
7822 | ||
7823 | ||
7824 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
69ffe1d2 | 7825 | echo "configure:7826: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
7826 | |
7827 | ac_find_includes= | |
7828 | for ac_dir in $SEARCH_INCLUDE; | |
7829 | do | |
7830 | if test -f "$ac_dir/Xm/Xm.h"; then | |
7831 | ac_find_includes=$ac_dir | |
7832 | break | |
7833 | fi | |
7834 | done | |
7835 | ||
7836 | if test "$ac_find_includes" != "" ; then | |
7837 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7838 | else | |
7839 | echo "$ac_t""no" 1>&6 | |
7840 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
7841 | fi | |
7842 | ||
7843 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
69ffe1d2 | 7844 | echo "configure:7845: checking for Motif/Lesstif library" >&5 |
ab9b9eab VZ |
7845 | |
7846 | ac_find_libraries= | |
7847 | for ac_dir in $SEARCH_LIB; | |
7848 | do | |
7849 | for ac_extension in a so sl; do | |
7850 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
7851 | ac_find_libraries=$ac_dir | |
7852 | break 2 | |
7853 | fi | |
7854 | done | |
7855 | done | |
7856 | ||
7857 | if test "$ac_find_libraries" != "" ; then | |
7858 | ||
7859 | ac_path_to_include=$ac_find_includes | |
7860 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
7861 | result=$? | |
7862 | if test $result = 0; then | |
7863 | ac_path_to_include="" | |
7864 | else | |
7865 | ac_path_to_include="-I$ac_find_includes" | |
7866 | fi | |
7867 | ||
7868 | ||
7869 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7870 | result=$? | |
7871 | if test $result = 0; then | |
7872 | ac_path_to_link="" | |
7873 | else | |
7874 | ac_path_to_link="-L$ac_find_libraries" | |
7875 | fi | |
7876 | ||
7877 | ||
7878 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7879 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
7880 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7881 | else | |
7882 | echo "$ac_t""no" 1>&6 | |
7883 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
7884 | fi | |
7885 | ||
7886 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
69ffe1d2 | 7887 | echo "configure:7888: checking for Xt library" >&5 |
ab9b9eab VZ |
7888 | |
7889 | ac_find_libraries= | |
7890 | for ac_dir in $SEARCH_LIB; | |
7891 | do | |
7892 | for ac_extension in a so sl; do | |
7893 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
7894 | ac_find_libraries=$ac_dir | |
7895 | break 2 | |
7896 | fi | |
7897 | done | |
7898 | done | |
7899 | ||
7900 | if test "$ac_find_libraries" != "" ; then | |
7901 | ||
7902 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7903 | result=$? | |
7904 | if test $result = 0; then | |
7905 | ac_path_to_link="" | |
7906 | else | |
7907 | ac_path_to_link="-L$ac_find_libraries" | |
7908 | fi | |
7909 | ||
7910 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7911 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7912 | else | |
7913 | echo "$ac_t""no" 1>&6 | |
7914 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
7915 | fi | |
7916 | ||
7917 | XPM_LINK="" | |
7918 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
69ffe1d2 | 7919 | echo "configure:7920: checking for Xpm library" >&5 |
ab9b9eab VZ |
7920 | |
7921 | ac_find_libraries= | |
7922 | for ac_dir in $SEARCH_LIB; | |
7923 | do | |
7924 | for ac_extension in a so sl; do | |
7925 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7926 | ac_find_libraries=$ac_dir | |
7927 | break 2 | |
7928 | fi | |
7929 | done | |
7930 | done | |
7931 | ||
7932 | if test "$ac_find_libraries" != "" ; then | |
7933 | ||
7934 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7935 | result=$? | |
7936 | if test $result = 0; then | |
7937 | ac_path_to_link="" | |
7938 | else | |
7939 | ac_path_to_link="-L$ac_find_libraries" | |
7940 | fi | |
7941 | ||
7942 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7943 | XPM_LINK="-lXpm " | |
7944 | cat >> confdefs.h <<\EOF | |
7945 | #define wxHAVE_LIB_XPM 1 | |
7946 | EOF | |
7947 | ||
7948 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7949 | else | |
7950 | echo "$ac_t""no" 1>&6 | |
7951 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7952 | fi | |
7953 | ||
7954 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm" | |
7955 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7956 | TOOLKIT=MOTIF | |
7957 | ||
7958 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
7959 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
7960 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
788deba1 VZ |
7961 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" |
7962 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
7963 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
10f2d63a VZ |
7964 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" |
7965 | UNIXOBJS="\$(UNIX_OBJS)" | |
7966 | GUIDIST=MOTIF_DIST | |
7967 | fi | |
7968 | ||
7969 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
7970 | ||
7971 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
7972 | ||
7973 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
7974 | ||
7975 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)" | |
7976 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" | |
7977 | ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)" | |
7978 | else | |
7979 | ||
7980 | ALL_OBJECTS="\$(BASE_OBJS)" | |
7981 | ALL_DEPFILES="\${BASE_DEPS}" | |
7982 | ALL_HEADERS="\${BASE_HEADERS}" | |
7983 | ||
7984 | WX_LIBRARY="wxbase" | |
7985 | fi | |
7986 | ||
7987 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
7988 | ||
7989 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
7990 | ||
7991 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
7992 | ||
7993 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
7994 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
7995 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
7996 | ||
7997 | SHARED_LD= | |
7998 | PIC_FLAG= | |
7999 | WX_ALL= | |
8000 | WX_ALL_INSTALLED= | |
8001 | ||
8002 | if test "$wxUSE_SHARED" = "yes"; then | |
8003 | case "${host}" in | |
8004 | *-hp-hpux* ) | |
8005 | if test "$GCC" = yes ; then | |
69ffe1d2 | 8006 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
8007 | PIC_FLAG="-fPIC" |
8008 | else | |
8009 | SHARED_LD="${CXX} -b -o" | |
8010 | PIC_FLAG="+Z" | |
8011 | fi | |
8012 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
8013 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8014 | ;; | |
8015 | *-*-linux* ) | |
8016 | SHARED_LD="${CC} -shared -o" | |
8017 | PIC_FLAG="-fPIC" | |
8018 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8019 | WX_ALL="CREATE_LINKS" | |
8020 | ;; | |
8021 | *-*-irix5* | *-*-irix6* ) | |
8022 | if test "$GCC" = yes ; then | |
8023 | SHARED_LD="${CC} -shared -o" | |
8024 | PIC_FLAG="-fPIC" | |
8025 | else | |
8026 | SHARED_LD="${CXX} -shared -o" | |
8027 | fi | |
8028 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8029 | WX_ALL="CREATE_LINKS" | |
8030 | ;; | |
8031 | *-*-solaris2* ) | |
8032 | if test "$GCC" = yes ; then | |
8033 | SHARED_LD="${CC} -shared -o" | |
8034 | PIC_FLAG="-fPIC" | |
8035 | else | |
8036 | SHARED_LD="${CXX} -G -o" | |
8037 | PIC_FLAG="-KPIC" | |
8038 | fi | |
8039 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8040 | WX_ALL="CREATE_LINKS" | |
8041 | ;; | |
8042 | *-*-sunos4* ) | |
8043 | SHARED_LD="${CC} -shared -o" | |
8044 | PIC_FLAG="-fPIC" | |
8045 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8046 | WX_ALL="CREATE_LINKS" | |
8047 | ;; | |
8048 | *-*-freebsd* | *-*-netbsd*) | |
8049 | SHARED_LD="${CC} -shared -o" | |
8050 | PIC_FLAG="-fPIC" | |
8051 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8052 | WX_ALL="CREATE_LINKS" | |
8053 | ;; | |
8054 | *-*-osf* ) | |
8055 | SHARED_LD="${CXX} -shared -o" | |
8056 | PIC_FLAG="-fPIC" | |
8057 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8058 | WX_ALL="CREATE_LINKS" | |
8059 | ;; | |
8060 | *-*-dgux5* ) | |
8061 | SHARED_LD="${CXX} -shared -o" | |
8062 | PIC_FLAG="-fPIC" | |
8063 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8064 | WX_ALL="CREATE_LINKS" | |
8065 | ;; | |
8066 | *-*-sysv5* ) | |
8067 | SHARED_LD="${CC} -shared -o" | |
8068 | PIC_FLAG="-fPIC" | |
8069 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8070 | WX_ALL="CREATE_LINKS" | |
8071 | ;; | |
8072 | *-*-aix* ) | |
8073 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8074 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8075 | ;; | |
8076 | *-*-cygwin32* ) | |
8077 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8078 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8079 | ;; | |
8080 | *-*-mingw32* ) | |
8081 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8082 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8083 | ;; | |
8084 | *-pc-os2_emx ) | |
8085 | ;; | |
8086 | *) | |
8087 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8088 | esac | |
8089 | ||
8090 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
8091 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
8092 | fi | |
8093 | else | |
8094 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8095 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8096 | fi | |
8097 | ||
8098 | ||
8099 | for ac_hdr in strings.h | |
8100 | do | |
8101 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8102 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 8103 | echo "configure:8104: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8104 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8106 | else | |
8107 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8108 | #line 8109 "configure" |
10f2d63a VZ |
8109 | #include "confdefs.h" |
8110 | #include <$ac_hdr> | |
8111 | EOF | |
8112 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 8113 | { (eval echo configure:8114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8114 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8115 | if test -z "$ac_err"; then | |
8116 | rm -rf conftest* | |
8117 | eval "ac_cv_header_$ac_safe=yes" | |
8118 | else | |
8119 | echo "$ac_err" >&5 | |
8120 | echo "configure: failed program was:" >&5 | |
8121 | cat conftest.$ac_ext >&5 | |
8122 | rm -rf conftest* | |
8123 | eval "ac_cv_header_$ac_safe=no" | |
8124 | fi | |
8125 | rm -f conftest* | |
8126 | fi | |
8127 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8128 | echo "$ac_t""yes" 1>&6 | |
8129 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8130 | cat >> confdefs.h <<EOF | |
8131 | #define $ac_tr_hdr 1 | |
8132 | EOF | |
8133 | ||
8134 | else | |
8135 | echo "$ac_t""no" 1>&6 | |
8136 | fi | |
8137 | done | |
8138 | ||
8139 | for ac_hdr in unistd.h | |
8140 | do | |
8141 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8142 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 8143 | echo "configure:8144: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8144 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8146 | else | |
8147 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8148 | #line 8149 "configure" |
10f2d63a VZ |
8149 | #include "confdefs.h" |
8150 | #include <$ac_hdr> | |
8151 | EOF | |
8152 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 8153 | { (eval echo configure:8154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8154 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8155 | if test -z "$ac_err"; then | |
8156 | rm -rf conftest* | |
8157 | eval "ac_cv_header_$ac_safe=yes" | |
8158 | else | |
8159 | echo "$ac_err" >&5 | |
8160 | echo "configure: failed program was:" >&5 | |
8161 | cat conftest.$ac_ext >&5 | |
8162 | rm -rf conftest* | |
8163 | eval "ac_cv_header_$ac_safe=no" | |
8164 | fi | |
8165 | rm -f conftest* | |
8166 | fi | |
8167 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8168 | echo "$ac_t""yes" 1>&6 | |
8169 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8170 | cat >> confdefs.h <<EOF | |
8171 | #define $ac_tr_hdr 1 | |
8172 | EOF | |
8173 | ||
8174 | else | |
8175 | echo "$ac_t""no" 1>&6 | |
8176 | fi | |
8177 | done | |
8178 | ||
8179 | for ac_hdr in wchar.h | |
8180 | do | |
8181 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8182 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 8183 | echo "configure:8184: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8184 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8185 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8186 | else | |
8187 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8188 | #line 8189 "configure" |
10f2d63a VZ |
8189 | #include "confdefs.h" |
8190 | #include <$ac_hdr> | |
8191 | EOF | |
8192 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 8193 | { (eval echo configure:8194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8194 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8195 | if test -z "$ac_err"; then | |
8196 | rm -rf conftest* | |
8197 | eval "ac_cv_header_$ac_safe=yes" | |
8198 | else | |
8199 | echo "$ac_err" >&5 | |
8200 | echo "configure: failed program was:" >&5 | |
8201 | cat conftest.$ac_ext >&5 | |
8202 | rm -rf conftest* | |
8203 | eval "ac_cv_header_$ac_safe=no" | |
8204 | fi | |
8205 | rm -f conftest* | |
8206 | fi | |
8207 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8208 | echo "$ac_t""yes" 1>&6 | |
8209 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8210 | cat >> confdefs.h <<EOF | |
8211 | #define $ac_tr_hdr 1 | |
8212 | EOF | |
8213 | ||
8214 | else | |
8215 | echo "$ac_t""no" 1>&6 | |
8216 | fi | |
8217 | done | |
8218 | ||
8219 | for ac_hdr in wcstr.h | |
8220 | do | |
8221 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8222 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 8223 | echo "configure:8224: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8224 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8226 | else | |
8227 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8228 | #line 8229 "configure" |
10f2d63a VZ |
8229 | #include "confdefs.h" |
8230 | #include <$ac_hdr> | |
8231 | EOF | |
8232 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 8233 | { (eval echo configure:8234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8235 | if test -z "$ac_err"; then | |
8236 | rm -rf conftest* | |
8237 | eval "ac_cv_header_$ac_safe=yes" | |
8238 | else | |
8239 | echo "$ac_err" >&5 | |
8240 | echo "configure: failed program was:" >&5 | |
8241 | cat conftest.$ac_ext >&5 | |
8242 | rm -rf conftest* | |
8243 | eval "ac_cv_header_$ac_safe=no" | |
8244 | fi | |
8245 | rm -f conftest* | |
8246 | fi | |
8247 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8248 | echo "$ac_t""yes" 1>&6 | |
8249 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8250 | cat >> confdefs.h <<EOF | |
8251 | #define $ac_tr_hdr 1 | |
8252 | EOF | |
8253 | ||
8254 | else | |
8255 | echo "$ac_t""no" 1>&6 | |
8256 | fi | |
8257 | done | |
8258 | ||
8259 | for ac_hdr in fnmatch.h | |
8260 | do | |
8261 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8262 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 8263 | echo "configure:8264: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8264 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8266 | else | |
8267 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8268 | #line 8269 "configure" |
10f2d63a VZ |
8269 | #include "confdefs.h" |
8270 | #include <$ac_hdr> | |
8271 | EOF | |
8272 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 8273 | { (eval echo configure:8274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8274 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8275 | if test -z "$ac_err"; then | |
8276 | rm -rf conftest* | |
8277 | eval "ac_cv_header_$ac_safe=yes" | |
8278 | else | |
8279 | echo "$ac_err" >&5 | |
8280 | echo "configure: failed program was:" >&5 | |
8281 | cat conftest.$ac_ext >&5 | |
8282 | rm -rf conftest* | |
8283 | eval "ac_cv_header_$ac_safe=no" | |
8284 | fi | |
8285 | rm -f conftest* | |
8286 | fi | |
8287 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8288 | echo "$ac_t""yes" 1>&6 | |
8289 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8290 | cat >> confdefs.h <<EOF | |
8291 | #define $ac_tr_hdr 1 | |
8292 | EOF | |
8293 | ||
8294 | else | |
8295 | echo "$ac_t""no" 1>&6 | |
8296 | fi | |
8297 | done | |
8298 | ||
8299 | ||
8300 | if test "$wxUSE_GUI" = "yes"; then | |
8301 | for ac_hdr in X11/XKBlib.h | |
8302 | do | |
8303 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8304 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 8305 | echo "configure:8306: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8306 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8308 | else | |
8309 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8310 | #line 8311 "configure" |
10f2d63a VZ |
8311 | #include "confdefs.h" |
8312 | #include <$ac_hdr> | |
8313 | EOF | |
8314 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 8315 | { (eval echo configure:8316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8316 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8317 | if test -z "$ac_err"; then | |
8318 | rm -rf conftest* | |
8319 | eval "ac_cv_header_$ac_safe=yes" | |
8320 | else | |
8321 | echo "$ac_err" >&5 | |
8322 | echo "configure: failed program was:" >&5 | |
8323 | cat conftest.$ac_ext >&5 | |
8324 | rm -rf conftest* | |
8325 | eval "ac_cv_header_$ac_safe=no" | |
8326 | fi | |
8327 | rm -f conftest* | |
8328 | fi | |
8329 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8330 | echo "$ac_t""yes" 1>&6 | |
8331 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8332 | cat >> confdefs.h <<EOF | |
8333 | #define $ac_tr_hdr 1 | |
8334 | EOF | |
8335 | ||
8336 | else | |
8337 | echo "$ac_t""no" 1>&6 | |
8338 | fi | |
8339 | done | |
8340 | ||
8341 | fi | |
8342 | ||
8343 | ||
8344 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
69ffe1d2 | 8345 | echo "configure:8346: checking for ANSI C header files" >&5 |
10f2d63a VZ |
8346 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
8347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8348 | else | |
8349 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8350 | #line 8351 "configure" |
10f2d63a VZ |
8351 | #include "confdefs.h" |
8352 | #include <stdlib.h> | |
8353 | #include <stdarg.h> | |
8354 | #include <string.h> | |
8355 | #include <float.h> | |
8356 | EOF | |
8357 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 8358 | { (eval echo configure:8359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8359 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8360 | if test -z "$ac_err"; then | |
8361 | rm -rf conftest* | |
8362 | ac_cv_header_stdc=yes | |
8363 | else | |
8364 | echo "$ac_err" >&5 | |
8365 | echo "configure: failed program was:" >&5 | |
8366 | cat conftest.$ac_ext >&5 | |
8367 | rm -rf conftest* | |
8368 | ac_cv_header_stdc=no | |
8369 | fi | |
8370 | rm -f conftest* | |
8371 | ||
8372 | if test $ac_cv_header_stdc = yes; then | |
8373 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8374 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8375 | #line 8376 "configure" |
10f2d63a VZ |
8376 | #include "confdefs.h" |
8377 | #include <string.h> | |
8378 | EOF | |
8379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8380 | egrep "memchr" >/dev/null 2>&1; then | |
8381 | : | |
8382 | else | |
8383 | rm -rf conftest* | |
8384 | ac_cv_header_stdc=no | |
8385 | fi | |
8386 | rm -f conftest* | |
8387 | ||
8388 | fi | |
8389 | ||
8390 | if test $ac_cv_header_stdc = yes; then | |
8391 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8392 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8393 | #line 8394 "configure" |
10f2d63a VZ |
8394 | #include "confdefs.h" |
8395 | #include <stdlib.h> | |
8396 | EOF | |
8397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8398 | egrep "free" >/dev/null 2>&1; then | |
8399 | : | |
8400 | else | |
8401 | rm -rf conftest* | |
8402 | ac_cv_header_stdc=no | |
8403 | fi | |
8404 | rm -f conftest* | |
8405 | ||
8406 | fi | |
8407 | ||
8408 | if test $ac_cv_header_stdc = yes; then | |
8409 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8410 | if test "$cross_compiling" = yes; then | |
8411 | : | |
8412 | else | |
8413 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8414 | #line 8415 "configure" |
10f2d63a VZ |
8415 | #include "confdefs.h" |
8416 | #include <ctype.h> | |
8417 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8418 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8419 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8420 | int main () { int i; for (i = 0; i < 256; i++) | |
8421 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8422 | exit (0); } | |
8423 | ||
8424 | EOF | |
69ffe1d2 | 8425 | if { (eval echo configure:8426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8426 | then |
8427 | : | |
8428 | else | |
8429 | echo "configure: failed program was:" >&5 | |
8430 | cat conftest.$ac_ext >&5 | |
8431 | rm -fr conftest* | |
8432 | ac_cv_header_stdc=no | |
8433 | fi | |
8434 | rm -fr conftest* | |
8435 | fi | |
8436 | ||
8437 | fi | |
8438 | fi | |
8439 | ||
8440 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
8441 | if test $ac_cv_header_stdc = yes; then | |
8442 | cat >> confdefs.h <<\EOF | |
8443 | #define STDC_HEADERS 1 | |
8444 | EOF | |
8445 | ||
8446 | fi | |
8447 | ||
8448 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
69ffe1d2 | 8449 | echo "configure:8450: checking for mode_t" >&5 |
10f2d63a VZ |
8450 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
8451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8452 | else | |
8453 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8454 | #line 8455 "configure" |
10f2d63a VZ |
8455 | #include "confdefs.h" |
8456 | #include <sys/types.h> | |
8457 | #if STDC_HEADERS | |
8458 | #include <stdlib.h> | |
8459 | #include <stddef.h> | |
8460 | #endif | |
8461 | EOF | |
8462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8463 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8464 | rm -rf conftest* | |
8465 | ac_cv_type_mode_t=yes | |
8466 | else | |
8467 | rm -rf conftest* | |
8468 | ac_cv_type_mode_t=no | |
8469 | fi | |
8470 | rm -f conftest* | |
8471 | ||
8472 | fi | |
8473 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
8474 | if test $ac_cv_type_mode_t = no; then | |
8475 | cat >> confdefs.h <<\EOF | |
8476 | #define mode_t int | |
8477 | EOF | |
8478 | ||
8479 | fi | |
8480 | ||
8481 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
69ffe1d2 | 8482 | echo "configure:8483: checking for off_t" >&5 |
10f2d63a VZ |
8483 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
8484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8485 | else | |
8486 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8487 | #line 8488 "configure" |
10f2d63a VZ |
8488 | #include "confdefs.h" |
8489 | #include <sys/types.h> | |
8490 | #if STDC_HEADERS | |
8491 | #include <stdlib.h> | |
8492 | #include <stddef.h> | |
8493 | #endif | |
8494 | EOF | |
8495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8496 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8497 | rm -rf conftest* | |
8498 | ac_cv_type_off_t=yes | |
8499 | else | |
8500 | rm -rf conftest* | |
8501 | ac_cv_type_off_t=no | |
8502 | fi | |
8503 | rm -f conftest* | |
8504 | ||
8505 | fi | |
8506 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
8507 | if test $ac_cv_type_off_t = no; then | |
8508 | cat >> confdefs.h <<\EOF | |
8509 | #define off_t long | |
8510 | EOF | |
8511 | ||
8512 | fi | |
8513 | ||
8514 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
69ffe1d2 | 8515 | echo "configure:8516: checking for pid_t" >&5 |
10f2d63a VZ |
8516 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8518 | else | |
8519 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8520 | #line 8521 "configure" |
10f2d63a VZ |
8521 | #include "confdefs.h" |
8522 | #include <sys/types.h> | |
8523 | #if STDC_HEADERS | |
8524 | #include <stdlib.h> | |
8525 | #include <stddef.h> | |
8526 | #endif | |
8527 | EOF | |
8528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8529 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8530 | rm -rf conftest* | |
8531 | ac_cv_type_pid_t=yes | |
8532 | else | |
8533 | rm -rf conftest* | |
8534 | ac_cv_type_pid_t=no | |
8535 | fi | |
8536 | rm -f conftest* | |
8537 | ||
8538 | fi | |
8539 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8540 | if test $ac_cv_type_pid_t = no; then | |
8541 | cat >> confdefs.h <<\EOF | |
8542 | #define pid_t int | |
8543 | EOF | |
8544 | ||
8545 | fi | |
8546 | ||
8547 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
69ffe1d2 | 8548 | echo "configure:8549: checking for size_t" >&5 |
10f2d63a VZ |
8549 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8551 | else | |
8552 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8553 | #line 8554 "configure" |
10f2d63a VZ |
8554 | #include "confdefs.h" |
8555 | #include <sys/types.h> | |
8556 | #if STDC_HEADERS | |
8557 | #include <stdlib.h> | |
8558 | #include <stddef.h> | |
8559 | #endif | |
8560 | EOF | |
8561 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8562 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8563 | rm -rf conftest* | |
8564 | ac_cv_type_size_t=yes | |
8565 | else | |
8566 | rm -rf conftest* | |
8567 | ac_cv_type_size_t=no | |
8568 | fi | |
8569 | rm -f conftest* | |
8570 | ||
8571 | fi | |
8572 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
8573 | if test $ac_cv_type_size_t = no; then | |
8574 | cat >> confdefs.h <<\EOF | |
8575 | #define size_t unsigned | |
8576 | EOF | |
8577 | ||
8578 | fi | |
8579 | ||
8580 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
69ffe1d2 | 8581 | echo "configure:8582: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
8582 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
8583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8584 | else | |
8585 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8586 | #line 8587 "configure" |
10f2d63a VZ |
8587 | #include "confdefs.h" |
8588 | #include <sys/types.h> | |
8589 | EOF | |
8590 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8591 | egrep "uid_t" >/dev/null 2>&1; then | |
8592 | rm -rf conftest* | |
8593 | ac_cv_type_uid_t=yes | |
8594 | else | |
8595 | rm -rf conftest* | |
8596 | ac_cv_type_uid_t=no | |
8597 | fi | |
8598 | rm -f conftest* | |
8599 | ||
8600 | fi | |
8601 | ||
8602 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
8603 | if test $ac_cv_type_uid_t = no; then | |
8604 | cat >> confdefs.h <<\EOF | |
8605 | #define uid_t int | |
8606 | EOF | |
8607 | ||
8608 | cat >> confdefs.h <<\EOF | |
8609 | #define gid_t int | |
8610 | EOF | |
8611 | ||
8612 | fi | |
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
69ffe1d2 | 8618 | echo "configure:8619: checking for working const" >&5 |
10f2d63a VZ |
8619 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8621 | else | |
8622 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8623 | #line 8624 "configure" |
10f2d63a VZ |
8624 | #include "confdefs.h" |
8625 | ||
8626 | int main() { | |
8627 | ||
8628 | /* Ultrix mips cc rejects this. */ | |
8629 | typedef int charset[2]; const charset x; | |
8630 | /* SunOS 4.1.1 cc rejects this. */ | |
8631 | char const *const *ccp; | |
8632 | char **p; | |
8633 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8634 | struct point {int x, y;}; | |
8635 | static struct point const zero = {0,0}; | |
8636 | /* AIX XL C 1.02.0.0 rejects this. | |
8637 | It does not let you subtract one const X* pointer from another in an arm | |
8638 | of an if-expression whose if-part is not a constant expression */ | |
8639 | const char *g = "string"; | |
8640 | ccp = &g + (g ? g-g : 0); | |
8641 | /* HPUX 7.0 cc rejects these. */ | |
8642 | ++ccp; | |
8643 | p = (char**) ccp; | |
8644 | ccp = (char const *const *) p; | |
8645 | { /* SCO 3.2v4 cc rejects this. */ | |
8646 | char *t; | |
8647 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8648 | ||
8649 | *t++ = 0; | |
8650 | } | |
8651 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8652 | int x[] = {25, 17}; | |
8653 | const int *foo = &x[0]; | |
8654 | ++foo; | |
8655 | } | |
8656 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8657 | typedef const int *iptr; | |
8658 | iptr p = 0; | |
8659 | ++p; | |
8660 | } | |
8661 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8662 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8663 | struct s { int j; const int *ap[3]; }; | |
8664 | struct s *b; b->j = 5; | |
8665 | } | |
8666 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8667 | const int foo = 10; | |
8668 | } | |
8669 | ||
8670 | ; return 0; } | |
8671 | EOF | |
69ffe1d2 | 8672 | if { (eval echo configure:8673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8673 | rm -rf conftest* |
8674 | ac_cv_c_const=yes | |
8675 | else | |
8676 | echo "configure: failed program was:" >&5 | |
8677 | cat conftest.$ac_ext >&5 | |
8678 | rm -rf conftest* | |
8679 | ac_cv_c_const=no | |
8680 | fi | |
8681 | rm -f conftest* | |
8682 | fi | |
8683 | ||
8684 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
8685 | if test $ac_cv_c_const = no; then | |
8686 | cat >> confdefs.h <<\EOF | |
8687 | #define const | |
8688 | EOF | |
8689 | ||
8690 | fi | |
8691 | ||
8692 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
69ffe1d2 | 8693 | echo "configure:8694: checking for inline" >&5 |
10f2d63a VZ |
8694 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
8695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8696 | else | |
8697 | ac_cv_c_inline=no | |
8698 | for ac_kw in inline __inline__ __inline; do | |
8699 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8700 | #line 8701 "configure" |
10f2d63a VZ |
8701 | #include "confdefs.h" |
8702 | ||
8703 | int main() { | |
8704 | } $ac_kw foo() { | |
8705 | ; return 0; } | |
8706 | EOF | |
69ffe1d2 | 8707 | if { (eval echo configure:8708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8708 | rm -rf conftest* |
8709 | ac_cv_c_inline=$ac_kw; break | |
8710 | else | |
8711 | echo "configure: failed program was:" >&5 | |
8712 | cat conftest.$ac_ext >&5 | |
8713 | fi | |
8714 | rm -f conftest* | |
8715 | done | |
8716 | ||
8717 | fi | |
8718 | ||
8719 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
8720 | case "$ac_cv_c_inline" in | |
8721 | inline | yes) ;; | |
8722 | no) cat >> confdefs.h <<\EOF | |
8723 | #define inline | |
8724 | EOF | |
8725 | ;; | |
8726 | *) cat >> confdefs.h <<EOF | |
8727 | #define inline $ac_cv_c_inline | |
8728 | EOF | |
8729 | ;; | |
8730 | esac | |
8731 | ||
8732 | ||
8733 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
69ffe1d2 | 8734 | echo "configure:8735: checking size of char" >&5 |
10f2d63a VZ |
8735 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
8736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8737 | else | |
8738 | if test "$cross_compiling" = yes; then | |
8739 | ac_cv_sizeof_char=1 | |
8740 | else | |
8741 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8742 | #line 8743 "configure" |
10f2d63a VZ |
8743 | #include "confdefs.h" |
8744 | #include <stdio.h> | |
8745 | main() | |
8746 | { | |
8747 | FILE *f=fopen("conftestval", "w"); | |
8748 | if (!f) exit(1); | |
8749 | fprintf(f, "%d\n", sizeof(char)); | |
8750 | exit(0); | |
8751 | } | |
8752 | EOF | |
69ffe1d2 | 8753 | if { (eval echo configure:8754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8754 | then |
8755 | ac_cv_sizeof_char=`cat conftestval` | |
8756 | else | |
8757 | echo "configure: failed program was:" >&5 | |
8758 | cat conftest.$ac_ext >&5 | |
8759 | rm -fr conftest* | |
8760 | ac_cv_sizeof_char=0 | |
8761 | fi | |
8762 | rm -fr conftest* | |
8763 | fi | |
8764 | ||
8765 | fi | |
8766 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
8767 | cat >> confdefs.h <<EOF | |
8768 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
8769 | EOF | |
8770 | ||
8771 | ||
8772 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
69ffe1d2 | 8773 | echo "configure:8774: checking size of short" >&5 |
10f2d63a VZ |
8774 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
8775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8776 | else | |
8777 | if test "$cross_compiling" = yes; then | |
8778 | ac_cv_sizeof_short=2 | |
8779 | else | |
8780 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8781 | #line 8782 "configure" |
10f2d63a VZ |
8782 | #include "confdefs.h" |
8783 | #include <stdio.h> | |
8784 | main() | |
8785 | { | |
8786 | FILE *f=fopen("conftestval", "w"); | |
8787 | if (!f) exit(1); | |
8788 | fprintf(f, "%d\n", sizeof(short)); | |
8789 | exit(0); | |
8790 | } | |
8791 | EOF | |
69ffe1d2 | 8792 | if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8793 | then |
8794 | ac_cv_sizeof_short=`cat conftestval` | |
8795 | else | |
8796 | echo "configure: failed program was:" >&5 | |
8797 | cat conftest.$ac_ext >&5 | |
8798 | rm -fr conftest* | |
8799 | ac_cv_sizeof_short=0 | |
8800 | fi | |
8801 | rm -fr conftest* | |
8802 | fi | |
8803 | ||
8804 | fi | |
8805 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
8806 | cat >> confdefs.h <<EOF | |
8807 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
8808 | EOF | |
8809 | ||
8810 | ||
8811 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
69ffe1d2 | 8812 | echo "configure:8813: checking size of int *" >&5 |
10f2d63a VZ |
8813 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
8814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8815 | else | |
8816 | if test "$cross_compiling" = yes; then | |
8817 | ac_cv_sizeof_int_p=4 | |
8818 | else | |
8819 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8820 | #line 8821 "configure" |
10f2d63a VZ |
8821 | #include "confdefs.h" |
8822 | #include <stdio.h> | |
8823 | main() | |
8824 | { | |
8825 | FILE *f=fopen("conftestval", "w"); | |
8826 | if (!f) exit(1); | |
8827 | fprintf(f, "%d\n", sizeof(int *)); | |
8828 | exit(0); | |
8829 | } | |
8830 | EOF | |
69ffe1d2 | 8831 | if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8832 | then |
8833 | ac_cv_sizeof_int_p=`cat conftestval` | |
8834 | else | |
8835 | echo "configure: failed program was:" >&5 | |
8836 | cat conftest.$ac_ext >&5 | |
8837 | rm -fr conftest* | |
8838 | ac_cv_sizeof_int_p=0 | |
8839 | fi | |
8840 | rm -fr conftest* | |
8841 | fi | |
8842 | ||
8843 | fi | |
8844 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
8845 | cat >> confdefs.h <<EOF | |
8846 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
8847 | EOF | |
8848 | ||
8849 | ||
8850 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
69ffe1d2 | 8851 | echo "configure:8852: checking size of int" >&5 |
10f2d63a VZ |
8852 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
8853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8854 | else | |
8855 | if test "$cross_compiling" = yes; then | |
8856 | ac_cv_sizeof_int=4 | |
8857 | else | |
8858 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8859 | #line 8860 "configure" |
10f2d63a VZ |
8860 | #include "confdefs.h" |
8861 | #include <stdio.h> | |
8862 | main() | |
8863 | { | |
8864 | FILE *f=fopen("conftestval", "w"); | |
8865 | if (!f) exit(1); | |
8866 | fprintf(f, "%d\n", sizeof(int)); | |
8867 | exit(0); | |
8868 | } | |
8869 | EOF | |
69ffe1d2 | 8870 | if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8871 | then |
8872 | ac_cv_sizeof_int=`cat conftestval` | |
8873 | else | |
8874 | echo "configure: failed program was:" >&5 | |
8875 | cat conftest.$ac_ext >&5 | |
8876 | rm -fr conftest* | |
8877 | ac_cv_sizeof_int=0 | |
8878 | fi | |
8879 | rm -fr conftest* | |
8880 | fi | |
8881 | ||
8882 | fi | |
8883 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
8884 | cat >> confdefs.h <<EOF | |
8885 | #define SIZEOF_INT $ac_cv_sizeof_int | |
8886 | EOF | |
8887 | ||
8888 | ||
8889 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
69ffe1d2 | 8890 | echo "configure:8891: checking size of long" >&5 |
10f2d63a VZ |
8891 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
8892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8893 | else | |
8894 | if test "$cross_compiling" = yes; then | |
8895 | ac_cv_sizeof_long=4 | |
8896 | else | |
8897 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8898 | #line 8899 "configure" |
10f2d63a VZ |
8899 | #include "confdefs.h" |
8900 | #include <stdio.h> | |
8901 | main() | |
8902 | { | |
8903 | FILE *f=fopen("conftestval", "w"); | |
8904 | if (!f) exit(1); | |
8905 | fprintf(f, "%d\n", sizeof(long)); | |
8906 | exit(0); | |
8907 | } | |
8908 | EOF | |
69ffe1d2 | 8909 | if { (eval echo configure:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8910 | then |
8911 | ac_cv_sizeof_long=`cat conftestval` | |
8912 | else | |
8913 | echo "configure: failed program was:" >&5 | |
8914 | cat conftest.$ac_ext >&5 | |
8915 | rm -fr conftest* | |
8916 | ac_cv_sizeof_long=0 | |
8917 | fi | |
8918 | rm -fr conftest* | |
8919 | fi | |
8920 | ||
8921 | fi | |
8922 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
8923 | cat >> confdefs.h <<EOF | |
8924 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
8925 | EOF | |
8926 | ||
8927 | ||
8928 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
69ffe1d2 | 8929 | echo "configure:8930: checking size of long long" >&5 |
10f2d63a VZ |
8930 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
8931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8932 | else | |
8933 | if test "$cross_compiling" = yes; then | |
8934 | ac_cv_sizeof_long_long=0 | |
8935 | else | |
8936 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8937 | #line 8938 "configure" |
10f2d63a VZ |
8938 | #include "confdefs.h" |
8939 | #include <stdio.h> | |
8940 | main() | |
8941 | { | |
8942 | FILE *f=fopen("conftestval", "w"); | |
8943 | if (!f) exit(1); | |
8944 | fprintf(f, "%d\n", sizeof(long long)); | |
8945 | exit(0); | |
8946 | } | |
8947 | EOF | |
69ffe1d2 | 8948 | if { (eval echo configure:8949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8949 | then |
8950 | ac_cv_sizeof_long_long=`cat conftestval` | |
8951 | else | |
8952 | echo "configure: failed program was:" >&5 | |
8953 | cat conftest.$ac_ext >&5 | |
8954 | rm -fr conftest* | |
8955 | ac_cv_sizeof_long_long=0 | |
8956 | fi | |
8957 | rm -fr conftest* | |
8958 | fi | |
8959 | ||
8960 | fi | |
8961 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
8962 | cat >> confdefs.h <<EOF | |
8963 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
8964 | EOF | |
8965 | ||
8966 | ||
8967 | ||
8968 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
69ffe1d2 | 8969 | echo "configure:8970: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
8970 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
8971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8972 | else | |
8973 | ac_cv_c_bigendian=unknown | |
8974 | # See if sys/param.h defines the BYTE_ORDER macro. | |
8975 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8976 | #line 8977 "configure" |
10f2d63a VZ |
8977 | #include "confdefs.h" |
8978 | #include <sys/types.h> | |
8979 | #include <sys/param.h> | |
8980 | int main() { | |
8981 | ||
8982 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
8983 | bogus endian macros | |
8984 | #endif | |
8985 | ; return 0; } | |
8986 | EOF | |
69ffe1d2 | 8987 | if { (eval echo configure:8988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8988 | rm -rf conftest* |
8989 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
8990 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 8991 | #line 8992 "configure" |
10f2d63a VZ |
8992 | #include "confdefs.h" |
8993 | #include <sys/types.h> | |
8994 | #include <sys/param.h> | |
8995 | int main() { | |
8996 | ||
8997 | #if BYTE_ORDER != BIG_ENDIAN | |
8998 | not big endian | |
8999 | #endif | |
9000 | ; return 0; } | |
9001 | EOF | |
69ffe1d2 | 9002 | if { (eval echo configure:9003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9003 | rm -rf conftest* |
9004 | ac_cv_c_bigendian=yes | |
9005 | else | |
9006 | echo "configure: failed program was:" >&5 | |
9007 | cat conftest.$ac_ext >&5 | |
9008 | rm -rf conftest* | |
9009 | ac_cv_c_bigendian=no | |
9010 | fi | |
9011 | rm -f conftest* | |
9012 | else | |
9013 | echo "configure: failed program was:" >&5 | |
9014 | cat conftest.$ac_ext >&5 | |
9015 | fi | |
9016 | rm -f conftest* | |
9017 | if test $ac_cv_c_bigendian = unknown; then | |
9018 | if test "$cross_compiling" = yes; then | |
9019 | ac_cv_c_bigendian=unknown | |
9020 | else | |
9021 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9022 | #line 9023 "configure" |
10f2d63a VZ |
9023 | #include "confdefs.h" |
9024 | main () { | |
9025 | /* Are we little or big endian? From Harbison&Steele. */ | |
9026 | union | |
9027 | { | |
9028 | long l; | |
9029 | char c[sizeof (long)]; | |
9030 | } u; | |
9031 | u.l = 1; | |
9032 | exit (u.c[sizeof (long) - 1] == 1); | |
9033 | } | |
9034 | EOF | |
69ffe1d2 | 9035 | if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9036 | then |
9037 | ac_cv_c_bigendian=no | |
9038 | else | |
9039 | echo "configure: failed program was:" >&5 | |
9040 | cat conftest.$ac_ext >&5 | |
9041 | rm -fr conftest* | |
9042 | ac_cv_c_bigendian=yes | |
9043 | fi | |
9044 | rm -fr conftest* | |
9045 | fi | |
9046 | ||
9047 | fi | |
9048 | fi | |
9049 | ||
9050 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9051 | if test $ac_cv_c_bigendian = unknown; then | |
9052 | 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 | |
9053 | fi | |
9054 | if test $ac_cv_c_bigendian = yes; then | |
9055 | cat >> confdefs.h <<\EOF | |
9056 | #define WORDS_BIGENDIAN 1 | |
9057 | EOF | |
9058 | ||
9059 | fi | |
9060 | ||
9061 | ||
9062 | ||
9063 | if test "$cross_compiling" = "yes"; then | |
9064 | cat >> confdefs.h <<\EOF | |
9065 | #define wxUSE_IOSTREAMH 1 | |
9066 | EOF | |
9067 | ||
9068 | else | |
9069 | ||
9070 | ac_ext=C | |
9071 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9072 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9073 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9074 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9075 | cross_compiling=$ac_cv_prog_cxx_cross | |
9076 | ||
9077 | ||
9078 | for ac_hdr in iostream | |
9079 | do | |
9080 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9081 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 9082 | echo "configure:9083: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9083 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9085 | else | |
9086 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9087 | #line 9088 "configure" |
10f2d63a VZ |
9088 | #include "confdefs.h" |
9089 | #include <$ac_hdr> | |
9090 | EOF | |
9091 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 9092 | { (eval echo configure:9093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9093 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9094 | if test -z "$ac_err"; then | |
9095 | rm -rf conftest* | |
9096 | eval "ac_cv_header_$ac_safe=yes" | |
9097 | else | |
9098 | echo "$ac_err" >&5 | |
9099 | echo "configure: failed program was:" >&5 | |
9100 | cat conftest.$ac_ext >&5 | |
9101 | rm -rf conftest* | |
9102 | eval "ac_cv_header_$ac_safe=no" | |
9103 | fi | |
9104 | rm -f conftest* | |
9105 | fi | |
9106 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9107 | echo "$ac_t""yes" 1>&6 | |
9108 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9109 | cat >> confdefs.h <<EOF | |
9110 | #define $ac_tr_hdr 1 | |
9111 | EOF | |
9112 | ||
9113 | else | |
9114 | echo "$ac_t""no" 1>&6 | |
9115 | fi | |
9116 | done | |
9117 | ||
9118 | ||
9119 | if test "x$HAVE_IOSTREAM" = x ; then | |
9120 | cat >> confdefs.h <<\EOF | |
9121 | #define wxUSE_IOSTREAMH 1 | |
9122 | EOF | |
9123 | ||
9124 | else | |
9125 | : | |
9126 | fi | |
9127 | ||
9128 | ac_ext=c | |
9129 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9130 | ac_cpp='$CPP $CPPFLAGS' | |
9131 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9132 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9133 | cross_compiling=$ac_cv_prog_cc_cross | |
9134 | ||
9135 | fi | |
9136 | ||
9137 | ||
9138 | ||
9139 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
69ffe1d2 | 9140 | echo "configure:9141: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
9141 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
9142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9143 | else | |
9144 | ||
9145 | ||
9146 | ac_ext=C | |
9147 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9148 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9149 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9150 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9151 | cross_compiling=$ac_cv_prog_cxx_cross | |
9152 | ||
9153 | ||
9154 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9155 | #line 9156 "configure" |
10f2d63a VZ |
9156 | #include "confdefs.h" |
9157 | ||
9158 | ||
9159 | int main() { | |
9160 | ||
9161 | bool b = true; | |
9162 | ||
9163 | return 0; | |
9164 | ||
9165 | ; return 0; } | |
9166 | EOF | |
69ffe1d2 | 9167 | if { (eval echo configure:9168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9168 | rm -rf conftest* |
9169 | ||
9170 | cat >> confdefs.h <<\EOF | |
9171 | #define HAVE_BOOL 1 | |
9172 | EOF | |
9173 | ||
9174 | wx_cv_cpp_bool=yes | |
9175 | ||
9176 | else | |
9177 | echo "configure: failed program was:" >&5 | |
9178 | cat conftest.$ac_ext >&5 | |
9179 | rm -rf conftest* | |
9180 | ||
9181 | wx_cv_cpp_bool=no | |
9182 | ||
9183 | ||
9184 | fi | |
9185 | rm -f conftest* | |
9186 | ||
9187 | ac_ext=c | |
9188 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9189 | ac_cpp='$CPP $CPPFLAGS' | |
9190 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9191 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9192 | cross_compiling=$ac_cv_prog_cc_cross | |
9193 | ||
9194 | ||
9195 | fi | |
9196 | ||
9197 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9198 | ||
9199 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9200 | cat >> confdefs.h <<\EOF | |
9201 | #define HAVE_BOOL 1 | |
9202 | EOF | |
9203 | ||
9204 | fi | |
9205 | ||
9206 | ||
9207 | ||
10f2d63a | 9208 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
69ffe1d2 | 9209 | echo "configure:9210: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
9210 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
9211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9212 | else | |
9213 | ||
9214 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9215 | #line 9216 "configure" |
10f2d63a VZ |
9216 | #include "confdefs.h" |
9217 | #include <features.h> | |
9218 | int main() { | |
9219 | ||
9220 | ||
9221 | #ifndef __GNU_LIBRARY__ | |
9222 | Compile error wanted | |
9223 | #endif | |
9224 | ||
9225 | ||
9226 | ; return 0; } | |
9227 | EOF | |
69ffe1d2 | 9228 | if { (eval echo configure:9229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9229 | rm -rf conftest* |
9230 | wx_cv_gnu_extensions=yes | |
9231 | else | |
9232 | echo "configure: failed program was:" >&5 | |
9233 | cat conftest.$ac_ext >&5 | |
9234 | rm -rf conftest* | |
9235 | wx_cv_gnu_extensions=no | |
9236 | fi | |
9237 | rm -f conftest* | |
9238 | ||
9239 | fi | |
9240 | ||
9241 | ||
9242 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9243 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9244 | cat >> confdefs.h <<EOF | |
9245 | #define _GNU_SOURCE 1 | |
9246 | EOF | |
9247 | ||
9248 | fi | |
9249 | ||
9250 | ||
9251 | ||
9252 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
69ffe1d2 | 9253 | echo "configure:9254: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
9254 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
9255 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9257 | else | |
9258 | ac_save_LIBS="$LIBS" | |
9259 | LIBS="-lc $LIBS" | |
9260 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9261 | #line 9262 "configure" |
10f2d63a VZ |
9262 | #include "confdefs.h" |
9263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9264 | /* We use char because int might match the return type of a gcc2 | |
9265 | builtin and then its argument prototype would still apply. */ | |
9266 | char wcslen(); | |
9267 | ||
9268 | int main() { | |
9269 | wcslen() | |
9270 | ; return 0; } | |
9271 | EOF | |
69ffe1d2 | 9272 | if { (eval echo configure:9273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9273 | rm -rf conftest* |
9274 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9275 | else | |
9276 | echo "configure: failed program was:" >&5 | |
9277 | cat conftest.$ac_ext >&5 | |
9278 | rm -rf conftest* | |
9279 | eval "ac_cv_lib_$ac_lib_var=no" | |
9280 | fi | |
9281 | rm -f conftest* | |
9282 | LIBS="$ac_save_LIBS" | |
9283 | ||
9284 | fi | |
9285 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9286 | echo "$ac_t""yes" 1>&6 | |
9287 | ||
9288 | cat >> confdefs.h <<\EOF | |
9289 | #define HAVE_WCSLEN 1 | |
9290 | EOF | |
9291 | ||
9292 | WCHAR_LINK="" | |
9293 | ||
9294 | else | |
9295 | echo "$ac_t""no" 1>&6 | |
9296 | ||
9297 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
69ffe1d2 | 9298 | echo "configure:9299: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
9299 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
9300 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9302 | else | |
9303 | ac_save_LIBS="$LIBS" | |
9304 | LIBS="-lw $LIBS" | |
9305 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9306 | #line 9307 "configure" |
10f2d63a VZ |
9307 | #include "confdefs.h" |
9308 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9309 | /* We use char because int might match the return type of a gcc2 | |
9310 | builtin and then its argument prototype would still apply. */ | |
9311 | char wcslen(); | |
9312 | ||
9313 | int main() { | |
9314 | wcslen() | |
9315 | ; return 0; } | |
9316 | EOF | |
69ffe1d2 | 9317 | if { (eval echo configure:9318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9318 | rm -rf conftest* |
9319 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9320 | else | |
9321 | echo "configure: failed program was:" >&5 | |
9322 | cat conftest.$ac_ext >&5 | |
9323 | rm -rf conftest* | |
9324 | eval "ac_cv_lib_$ac_lib_var=no" | |
9325 | fi | |
9326 | rm -f conftest* | |
9327 | LIBS="$ac_save_LIBS" | |
9328 | ||
9329 | fi | |
9330 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9331 | echo "$ac_t""yes" 1>&6 | |
9332 | ||
9333 | cat >> confdefs.h <<\EOF | |
9334 | #define HAVE_WCSLEN 1 | |
9335 | EOF | |
9336 | ||
9337 | WCHAR_LINK="-lw" | |
9338 | ||
9339 | else | |
9340 | echo "$ac_t""no" 1>&6 | |
9341 | fi | |
9342 | ||
9343 | ||
9344 | fi | |
9345 | ||
9346 | ||
9347 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
69ffe1d2 | 9348 | echo "configure:9349: checking for vprintf" >&5 |
10f2d63a VZ |
9349 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
9350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9351 | else | |
9352 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9353 | #line 9354 "configure" |
10f2d63a VZ |
9354 | #include "confdefs.h" |
9355 | /* System header to define __stub macros and hopefully few prototypes, | |
9356 | which can conflict with char vprintf(); below. */ | |
9357 | #include <assert.h> | |
9358 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9359 | /* We use char because int might match the return type of a gcc2 | |
9360 | builtin and then its argument prototype would still apply. */ | |
9361 | char vprintf(); | |
69ffe1d2 | 9362 | char (*f)(); |
10f2d63a VZ |
9363 | |
9364 | int main() { | |
9365 | ||
9366 | /* The GNU C library defines this for functions which it implements | |
9367 | to always fail with ENOSYS. Some functions are actually named | |
9368 | something starting with __ and the normal name is an alias. */ | |
9369 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9370 | choke me | |
9371 | #else | |
69ffe1d2 | 9372 | f = vprintf; |
10f2d63a VZ |
9373 | #endif |
9374 | ||
9375 | ; return 0; } | |
9376 | EOF | |
69ffe1d2 | 9377 | if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9378 | rm -rf conftest* |
9379 | eval "ac_cv_func_vprintf=yes" | |
9380 | else | |
9381 | echo "configure: failed program was:" >&5 | |
9382 | cat conftest.$ac_ext >&5 | |
9383 | rm -rf conftest* | |
9384 | eval "ac_cv_func_vprintf=no" | |
9385 | fi | |
9386 | rm -f conftest* | |
9387 | fi | |
9388 | ||
9389 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9390 | echo "$ac_t""yes" 1>&6 | |
9391 | cat >> confdefs.h <<\EOF | |
9392 | #define HAVE_VPRINTF 1 | |
9393 | EOF | |
9394 | ||
9395 | else | |
9396 | echo "$ac_t""no" 1>&6 | |
9397 | fi | |
9398 | ||
9399 | if test "$ac_cv_func_vprintf" != yes; then | |
9400 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
69ffe1d2 | 9401 | echo "configure:9402: checking for _doprnt" >&5 |
10f2d63a VZ |
9402 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
9403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9404 | else | |
9405 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9406 | #line 9407 "configure" |
10f2d63a VZ |
9407 | #include "confdefs.h" |
9408 | /* System header to define __stub macros and hopefully few prototypes, | |
9409 | which can conflict with char _doprnt(); below. */ | |
9410 | #include <assert.h> | |
9411 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9412 | /* We use char because int might match the return type of a gcc2 | |
9413 | builtin and then its argument prototype would still apply. */ | |
9414 | char _doprnt(); | |
69ffe1d2 | 9415 | char (*f)(); |
10f2d63a VZ |
9416 | |
9417 | int main() { | |
9418 | ||
9419 | /* The GNU C library defines this for functions which it implements | |
9420 | to always fail with ENOSYS. Some functions are actually named | |
9421 | something starting with __ and the normal name is an alias. */ | |
9422 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
9423 | choke me | |
9424 | #else | |
69ffe1d2 | 9425 | f = _doprnt; |
10f2d63a VZ |
9426 | #endif |
9427 | ||
9428 | ; return 0; } | |
9429 | EOF | |
69ffe1d2 | 9430 | if { (eval echo configure:9431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9431 | rm -rf conftest* |
9432 | eval "ac_cv_func__doprnt=yes" | |
9433 | else | |
9434 | echo "configure: failed program was:" >&5 | |
9435 | cat conftest.$ac_ext >&5 | |
9436 | rm -rf conftest* | |
9437 | eval "ac_cv_func__doprnt=no" | |
9438 | fi | |
9439 | rm -f conftest* | |
9440 | fi | |
9441 | ||
9442 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
9443 | echo "$ac_t""yes" 1>&6 | |
9444 | cat >> confdefs.h <<\EOF | |
9445 | #define HAVE_DOPRNT 1 | |
9446 | EOF | |
9447 | ||
9448 | else | |
9449 | echo "$ac_t""no" 1>&6 | |
9450 | fi | |
9451 | ||
9452 | fi | |
9453 | ||
9454 | ||
9455 | for ac_func in vsnprintf | |
9456 | do | |
9457 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 9458 | echo "configure:9459: checking for $ac_func" >&5 |
10f2d63a VZ |
9459 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9461 | else | |
9462 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9463 | #line 9464 "configure" |
10f2d63a VZ |
9464 | #include "confdefs.h" |
9465 | /* System header to define __stub macros and hopefully few prototypes, | |
9466 | which can conflict with char $ac_func(); below. */ | |
9467 | #include <assert.h> | |
9468 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9469 | /* We use char because int might match the return type of a gcc2 | |
9470 | builtin and then its argument prototype would still apply. */ | |
9471 | char $ac_func(); | |
69ffe1d2 | 9472 | char (*f)(); |
10f2d63a VZ |
9473 | |
9474 | int main() { | |
9475 | ||
9476 | /* The GNU C library defines this for functions which it implements | |
9477 | to always fail with ENOSYS. Some functions are actually named | |
9478 | something starting with __ and the normal name is an alias. */ | |
9479 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9480 | choke me | |
9481 | #else | |
69ffe1d2 | 9482 | f = $ac_func; |
10f2d63a VZ |
9483 | #endif |
9484 | ||
9485 | ; return 0; } | |
9486 | EOF | |
69ffe1d2 | 9487 | if { (eval echo configure:9488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9488 | rm -rf conftest* |
9489 | eval "ac_cv_func_$ac_func=yes" | |
9490 | else | |
9491 | echo "configure: failed program was:" >&5 | |
9492 | cat conftest.$ac_ext >&5 | |
9493 | rm -rf conftest* | |
9494 | eval "ac_cv_func_$ac_func=no" | |
9495 | fi | |
9496 | rm -f conftest* | |
9497 | fi | |
9498 | ||
9499 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9500 | echo "$ac_t""yes" 1>&6 | |
9501 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9502 | cat >> confdefs.h <<EOF | |
9503 | #define $ac_tr_func 1 | |
9504 | EOF | |
9505 | cat >> confdefs.h <<\EOF | |
9506 | #define HAVE_VSNPRINTF 1 | |
9507 | EOF | |
9508 | ||
9509 | else | |
9510 | echo "$ac_t""no" 1>&6 | |
9511 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
9512 | ||
9513 | fi | |
9514 | done | |
9515 | ||
9516 | ||
9517 | ||
9518 | ac_ext=C | |
9519 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9520 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9521 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9522 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9523 | cross_compiling=$ac_cv_prog_cxx_cross | |
9524 | ||
9525 | ||
9526 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
69ffe1d2 | 9527 | echo "configure:9528: checking for vsscanf" >&5 |
10f2d63a VZ |
9528 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
9529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9530 | else | |
9531 | ||
9532 | if test "$cross_compiling" = yes; then | |
9533 | wx_cv_func_vsscanf=no | |
9534 | ||
9535 | else | |
9536 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9537 | #line 9538 "configure" |
10f2d63a VZ |
9538 | #include "confdefs.h" |
9539 | #ifdef __cplusplus | |
9540 | extern "C" void exit(int); | |
9541 | #endif | |
9542 | ||
9543 | #include <stdio.h> | |
9544 | #include <stdarg.h> | |
9545 | ||
9546 | int try_vsscanf(const char *format, ...) | |
9547 | { | |
9548 | va_list ap; | |
9549 | va_start(ap, format); | |
9550 | ||
9551 | vsscanf("17", format, ap); | |
9552 | ||
9553 | va_end(ap); | |
9554 | } | |
9555 | ||
9556 | int main() | |
9557 | { | |
9558 | int i; | |
9559 | try_vsscanf("%d", &i); | |
9560 | return i == 17 ? 0 : 1; | |
9561 | } | |
9562 | ||
9563 | EOF | |
69ffe1d2 | 9564 | if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9565 | then |
9566 | ||
9567 | cat >> confdefs.h <<\EOF | |
9568 | #define HAVE_VSSCANF 1 | |
9569 | EOF | |
9570 | ||
9571 | wx_cv_func_vsscanf=yes | |
9572 | ||
9573 | else | |
9574 | echo "configure: failed program was:" >&5 | |
9575 | cat conftest.$ac_ext >&5 | |
9576 | rm -fr conftest* | |
9577 | wx_cv_func_vsscanf=no | |
9578 | fi | |
9579 | rm -fr conftest* | |
9580 | fi | |
9581 | ||
9582 | ||
9583 | fi | |
9584 | ||
9585 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
9586 | ||
9587 | ac_ext=c | |
9588 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9589 | ac_cpp='$CPP $CPPFLAGS' | |
9590 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9591 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9592 | cross_compiling=$ac_cv_prog_cc_cross | |
9593 | ||
9594 | ||
9595 | if test "$USE_UNIX" = 1; then | |
9596 | ||
9597 | for ac_func in vfork | |
9598 | do | |
9599 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 9600 | echo "configure:9601: checking for $ac_func" >&5 |
10f2d63a VZ |
9601 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9603 | else | |
9604 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9605 | #line 9606 "configure" |
10f2d63a VZ |
9606 | #include "confdefs.h" |
9607 | /* System header to define __stub macros and hopefully few prototypes, | |
9608 | which can conflict with char $ac_func(); below. */ | |
9609 | #include <assert.h> | |
9610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9611 | /* We use char because int might match the return type of a gcc2 | |
9612 | builtin and then its argument prototype would still apply. */ | |
9613 | char $ac_func(); | |
69ffe1d2 | 9614 | char (*f)(); |
10f2d63a VZ |
9615 | |
9616 | int main() { | |
9617 | ||
9618 | /* The GNU C library defines this for functions which it implements | |
9619 | to always fail with ENOSYS. Some functions are actually named | |
9620 | something starting with __ and the normal name is an alias. */ | |
9621 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9622 | choke me | |
9623 | #else | |
69ffe1d2 | 9624 | f = $ac_func; |
10f2d63a VZ |
9625 | #endif |
9626 | ||
9627 | ; return 0; } | |
9628 | EOF | |
69ffe1d2 | 9629 | if { (eval echo configure:9630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9630 | rm -rf conftest* |
9631 | eval "ac_cv_func_$ac_func=yes" | |
9632 | else | |
9633 | echo "configure: failed program was:" >&5 | |
9634 | cat conftest.$ac_ext >&5 | |
9635 | rm -rf conftest* | |
9636 | eval "ac_cv_func_$ac_func=no" | |
9637 | fi | |
9638 | rm -f conftest* | |
9639 | fi | |
9640 | ||
9641 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9642 | echo "$ac_t""yes" 1>&6 | |
9643 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9644 | cat >> confdefs.h <<EOF | |
9645 | #define $ac_tr_func 1 | |
9646 | EOF | |
9647 | ||
9648 | else | |
9649 | echo "$ac_t""no" 1>&6 | |
9650 | fi | |
9651 | done | |
9652 | ||
9653 | ||
9654 | POSIX4_LINK= | |
9655 | for ac_func in nanosleep | |
9656 | do | |
9657 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 9658 | echo "configure:9659: checking for $ac_func" >&5 |
10f2d63a VZ |
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 | |
69ffe1d2 | 9663 | #line 9664 "configure" |
10f2d63a VZ |
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(); | |
69ffe1d2 | 9672 | char (*f)(); |
10f2d63a VZ |
9673 | |
9674 | int main() { | |
9675 | ||
9676 | /* The GNU C library defines this for functions which it implements | |
9677 | to always fail with ENOSYS. Some functions are actually named | |
9678 | something starting with __ and the normal name is an alias. */ | |
9679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9680 | choke me | |
9681 | #else | |
69ffe1d2 | 9682 | f = $ac_func; |
10f2d63a VZ |
9683 | #endif |
9684 | ||
9685 | ; return 0; } | |
9686 | EOF | |
69ffe1d2 | 9687 | if { (eval echo configure:9688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9688 | rm -rf conftest* |
9689 | eval "ac_cv_func_$ac_func=yes" | |
9690 | else | |
9691 | echo "configure: failed program was:" >&5 | |
9692 | cat conftest.$ac_ext >&5 | |
9693 | rm -rf conftest* | |
9694 | eval "ac_cv_func_$ac_func=no" | |
9695 | fi | |
9696 | rm -f conftest* | |
9697 | fi | |
9698 | ||
9699 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9700 | echo "$ac_t""yes" 1>&6 | |
9701 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9702 | cat >> confdefs.h <<EOF | |
9703 | #define $ac_tr_func 1 | |
9704 | EOF | |
9705 | cat >> confdefs.h <<\EOF | |
9706 | #define HAVE_NANOSLEEP 1 | |
9707 | EOF | |
9708 | ||
9709 | else | |
9710 | echo "$ac_t""no" 1>&6 | |
9711 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
69ffe1d2 | 9712 | echo "configure:9713: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
9713 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
9714 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9715 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9716 | else | |
9717 | ac_save_LIBS="$LIBS" | |
9718 | LIBS="-lposix4 $LIBS" | |
9719 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9720 | #line 9721 "configure" |
10f2d63a VZ |
9721 | #include "confdefs.h" |
9722 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9723 | /* We use char because int might match the return type of a gcc2 | |
9724 | builtin and then its argument prototype would still apply. */ | |
9725 | char nanosleep(); | |
9726 | ||
9727 | int main() { | |
9728 | nanosleep() | |
9729 | ; return 0; } | |
9730 | EOF | |
69ffe1d2 | 9731 | if { (eval echo configure:9732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9732 | rm -rf conftest* |
9733 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9734 | else | |
9735 | echo "configure: failed program was:" >&5 | |
9736 | cat conftest.$ac_ext >&5 | |
9737 | rm -rf conftest* | |
9738 | eval "ac_cv_lib_$ac_lib_var=no" | |
9739 | fi | |
9740 | rm -f conftest* | |
9741 | LIBS="$ac_save_LIBS" | |
9742 | ||
9743 | fi | |
9744 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9745 | echo "$ac_t""yes" 1>&6 | |
9746 | ||
9747 | cat >> confdefs.h <<\EOF | |
9748 | #define HAVE_NANOSLEEP 1 | |
9749 | EOF | |
9750 | ||
9751 | POSIX4_LINK="-lposix4" | |
9752 | ||
9753 | else | |
9754 | echo "$ac_t""no" 1>&6 | |
9755 | ||
9756 | for ac_func in usleep | |
9757 | do | |
9758 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 9759 | echo "configure:9760: checking for $ac_func" >&5 |
10f2d63a VZ |
9760 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9762 | else | |
9763 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9764 | #line 9765 "configure" |
10f2d63a VZ |
9765 | #include "confdefs.h" |
9766 | /* System header to define __stub macros and hopefully few prototypes, | |
9767 | which can conflict with char $ac_func(); below. */ | |
9768 | #include <assert.h> | |
9769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9770 | /* We use char because int might match the return type of a gcc2 | |
9771 | builtin and then its argument prototype would still apply. */ | |
9772 | char $ac_func(); | |
69ffe1d2 | 9773 | char (*f)(); |
10f2d63a VZ |
9774 | |
9775 | int main() { | |
9776 | ||
9777 | /* The GNU C library defines this for functions which it implements | |
9778 | to always fail with ENOSYS. Some functions are actually named | |
9779 | something starting with __ and the normal name is an alias. */ | |
9780 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9781 | choke me | |
9782 | #else | |
69ffe1d2 | 9783 | f = $ac_func; |
10f2d63a VZ |
9784 | #endif |
9785 | ||
9786 | ; return 0; } | |
9787 | EOF | |
69ffe1d2 | 9788 | if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9789 | rm -rf conftest* |
9790 | eval "ac_cv_func_$ac_func=yes" | |
9791 | else | |
9792 | echo "configure: failed program was:" >&5 | |
9793 | cat conftest.$ac_ext >&5 | |
9794 | rm -rf conftest* | |
9795 | eval "ac_cv_func_$ac_func=no" | |
9796 | fi | |
9797 | rm -f conftest* | |
9798 | fi | |
9799 | ||
9800 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9801 | echo "$ac_t""yes" 1>&6 | |
9802 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9803 | cat >> confdefs.h <<EOF | |
9804 | #define $ac_tr_func 1 | |
9805 | EOF | |
9806 | cat >> confdefs.h <<\EOF | |
9807 | #define HAVE_USLEEP 1 | |
9808 | EOF | |
9809 | ||
9810 | else | |
9811 | echo "$ac_t""no" 1>&6 | |
9812 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
9813 | fi | |
9814 | done | |
9815 | ||
9816 | ||
9817 | fi | |
9818 | ||
9819 | ||
9820 | fi | |
9821 | done | |
9822 | ||
9823 | ||
9824 | for ac_func in uname gethostname | |
9825 | do | |
9826 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 9827 | echo "configure:9828: checking for $ac_func" >&5 |
10f2d63a VZ |
9828 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9830 | else | |
9831 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9832 | #line 9833 "configure" |
10f2d63a VZ |
9833 | #include "confdefs.h" |
9834 | /* System header to define __stub macros and hopefully few prototypes, | |
9835 | which can conflict with char $ac_func(); below. */ | |
9836 | #include <assert.h> | |
9837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9838 | /* We use char because int might match the return type of a gcc2 | |
9839 | builtin and then its argument prototype would still apply. */ | |
9840 | char $ac_func(); | |
69ffe1d2 | 9841 | char (*f)(); |
10f2d63a VZ |
9842 | |
9843 | int main() { | |
9844 | ||
9845 | /* The GNU C library defines this for functions which it implements | |
9846 | to always fail with ENOSYS. Some functions are actually named | |
9847 | something starting with __ and the normal name is an alias. */ | |
9848 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9849 | choke me | |
9850 | #else | |
69ffe1d2 | 9851 | f = $ac_func; |
10f2d63a VZ |
9852 | #endif |
9853 | ||
9854 | ; return 0; } | |
9855 | EOF | |
69ffe1d2 | 9856 | if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9857 | rm -rf conftest* |
9858 | eval "ac_cv_func_$ac_func=yes" | |
9859 | else | |
9860 | echo "configure: failed program was:" >&5 | |
9861 | cat conftest.$ac_ext >&5 | |
9862 | rm -rf conftest* | |
9863 | eval "ac_cv_func_$ac_func=no" | |
9864 | fi | |
9865 | rm -f conftest* | |
9866 | fi | |
9867 | ||
9868 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9869 | echo "$ac_t""yes" 1>&6 | |
9870 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9871 | cat >> confdefs.h <<EOF | |
9872 | #define $ac_tr_func 1 | |
9873 | EOF | |
9874 | break | |
9875 | else | |
9876 | echo "$ac_t""no" 1>&6 | |
9877 | fi | |
9878 | done | |
9879 | ||
9880 | ||
9881 | for ac_func in strtok_r | |
9882 | do | |
9883 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 9884 | echo "configure:9885: checking for $ac_func" >&5 |
10f2d63a VZ |
9885 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9887 | else | |
9888 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9889 | #line 9890 "configure" |
10f2d63a VZ |
9890 | #include "confdefs.h" |
9891 | /* System header to define __stub macros and hopefully few prototypes, | |
9892 | which can conflict with char $ac_func(); below. */ | |
9893 | #include <assert.h> | |
9894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9895 | /* We use char because int might match the return type of a gcc2 | |
9896 | builtin and then its argument prototype would still apply. */ | |
9897 | char $ac_func(); | |
69ffe1d2 | 9898 | char (*f)(); |
10f2d63a VZ |
9899 | |
9900 | int main() { | |
9901 | ||
9902 | /* The GNU C library defines this for functions which it implements | |
9903 | to always fail with ENOSYS. Some functions are actually named | |
9904 | something starting with __ and the normal name is an alias. */ | |
9905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9906 | choke me | |
9907 | #else | |
69ffe1d2 | 9908 | f = $ac_func; |
10f2d63a VZ |
9909 | #endif |
9910 | ||
9911 | ; return 0; } | |
9912 | EOF | |
69ffe1d2 | 9913 | if { (eval echo configure:9914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9914 | rm -rf conftest* |
9915 | eval "ac_cv_func_$ac_func=yes" | |
9916 | else | |
9917 | echo "configure: failed program was:" >&5 | |
9918 | cat conftest.$ac_ext >&5 | |
9919 | rm -rf conftest* | |
9920 | eval "ac_cv_func_$ac_func=no" | |
9921 | fi | |
9922 | rm -f conftest* | |
9923 | fi | |
9924 | ||
9925 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9926 | echo "$ac_t""yes" 1>&6 | |
9927 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9928 | cat >> confdefs.h <<EOF | |
9929 | #define $ac_tr_func 1 | |
9930 | EOF | |
9931 | ||
9932 | else | |
9933 | echo "$ac_t""no" 1>&6 | |
9934 | fi | |
9935 | done | |
9936 | ||
9937 | ||
c63c7106 | 9938 | INET_LINK= |
10f2d63a VZ |
9939 | for ac_func in inet_addr |
9940 | do | |
9941 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 9942 | echo "configure:9943: checking for $ac_func" >&5 |
10f2d63a VZ |
9943 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9945 | else | |
9946 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 9947 | #line 9948 "configure" |
10f2d63a VZ |
9948 | #include "confdefs.h" |
9949 | /* System header to define __stub macros and hopefully few prototypes, | |
9950 | which can conflict with char $ac_func(); below. */ | |
9951 | #include <assert.h> | |
9952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9953 | /* We use char because int might match the return type of a gcc2 | |
9954 | builtin and then its argument prototype would still apply. */ | |
9955 | char $ac_func(); | |
69ffe1d2 | 9956 | char (*f)(); |
10f2d63a VZ |
9957 | |
9958 | int main() { | |
9959 | ||
9960 | /* The GNU C library defines this for functions which it implements | |
9961 | to always fail with ENOSYS. Some functions are actually named | |
9962 | something starting with __ and the normal name is an alias. */ | |
9963 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9964 | choke me | |
9965 | #else | |
69ffe1d2 | 9966 | f = $ac_func; |
10f2d63a VZ |
9967 | #endif |
9968 | ||
9969 | ; return 0; } | |
9970 | EOF | |
69ffe1d2 | 9971 | if { (eval echo configure:9972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9972 | rm -rf conftest* |
9973 | eval "ac_cv_func_$ac_func=yes" | |
9974 | else | |
9975 | echo "configure: failed program was:" >&5 | |
9976 | cat conftest.$ac_ext >&5 | |
9977 | rm -rf conftest* | |
9978 | eval "ac_cv_func_$ac_func=no" | |
9979 | fi | |
9980 | rm -f conftest* | |
9981 | fi | |
9982 | ||
9983 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9984 | echo "$ac_t""yes" 1>&6 | |
9985 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9986 | cat >> confdefs.h <<EOF | |
9987 | #define $ac_tr_func 1 | |
9988 | EOF | |
c63c7106 VZ |
9989 | cat >> confdefs.h <<\EOF |
9990 | #define HAVE_INET_ADDR 1 | |
9991 | EOF | |
9992 | ||
10f2d63a VZ |
9993 | else |
9994 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 9995 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
69ffe1d2 | 9996 | echo "configure:9997: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
9997 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
9998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10000 | else | |
10001 | ac_save_LIBS="$LIBS" | |
10002 | LIBS="-lnsl $LIBS" | |
10003 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10004 | #line 10005 "configure" |
c63c7106 VZ |
10005 | #include "confdefs.h" |
10006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10007 | /* We use char because int might match the return type of a gcc2 | |
10008 | builtin and then its argument prototype would still apply. */ | |
10009 | char inet_addr(); | |
10010 | ||
10011 | int main() { | |
10012 | inet_addr() | |
10013 | ; return 0; } | |
10014 | EOF | |
69ffe1d2 | 10015 | if { (eval echo configure:10016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10016 | rm -rf conftest* |
10017 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10018 | else | |
10019 | echo "configure: failed program was:" >&5 | |
10020 | cat conftest.$ac_ext >&5 | |
10021 | rm -rf conftest* | |
10022 | eval "ac_cv_lib_$ac_lib_var=no" | |
10023 | fi | |
10024 | rm -f conftest* | |
10025 | LIBS="$ac_save_LIBS" | |
10026 | ||
10027 | fi | |
10028 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10029 | echo "$ac_t""yes" 1>&6 | |
10030 | INET_LINK="nsl" | |
10031 | else | |
10032 | echo "$ac_t""no" 1>&6 | |
10033 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
69ffe1d2 | 10034 | echo "configure:10035: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
10035 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
10036 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10038 | else | |
10039 | ac_save_LIBS="$LIBS" | |
10040 | LIBS="-lresolv $LIBS" | |
10041 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10042 | #line 10043 "configure" |
c63c7106 VZ |
10043 | #include "confdefs.h" |
10044 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10045 | /* We use char because int might match the return type of a gcc2 | |
10046 | builtin and then its argument prototype would still apply. */ | |
10047 | char inet_addr(); | |
10048 | ||
10049 | int main() { | |
10050 | inet_addr() | |
10051 | ; return 0; } | |
10052 | EOF | |
69ffe1d2 | 10053 | if { (eval echo configure:10054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10054 | rm -rf conftest* |
10055 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10056 | else | |
10057 | echo "configure: failed program was:" >&5 | |
10058 | cat conftest.$ac_ext >&5 | |
10059 | rm -rf conftest* | |
10060 | eval "ac_cv_lib_$ac_lib_var=no" | |
10061 | fi | |
10062 | rm -f conftest* | |
10063 | LIBS="$ac_save_LIBS" | |
10064 | ||
10065 | fi | |
10066 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10067 | echo "$ac_t""yes" 1>&6 | |
10068 | INET_LINK="resolv" | |
10069 | ||
10070 | else | |
10071 | echo "$ac_t""no" 1>&6 | |
10072 | fi | |
10073 | ||
10074 | ||
10075 | fi | |
10076 | ||
10077 | ||
10078 | ||
10f2d63a VZ |
10079 | fi |
10080 | done | |
10081 | ||
c63c7106 | 10082 | |
10f2d63a VZ |
10083 | for ac_func in inet_aton |
10084 | do | |
10085 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 10086 | echo "configure:10087: checking for $ac_func" >&5 |
10f2d63a VZ |
10087 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10089 | else | |
10090 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10091 | #line 10092 "configure" |
10f2d63a VZ |
10092 | #include "confdefs.h" |
10093 | /* System header to define __stub macros and hopefully few prototypes, | |
10094 | which can conflict with char $ac_func(); below. */ | |
10095 | #include <assert.h> | |
10096 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10097 | /* We use char because int might match the return type of a gcc2 | |
10098 | builtin and then its argument prototype would still apply. */ | |
10099 | char $ac_func(); | |
69ffe1d2 | 10100 | char (*f)(); |
10f2d63a VZ |
10101 | |
10102 | int main() { | |
10103 | ||
10104 | /* The GNU C library defines this for functions which it implements | |
10105 | to always fail with ENOSYS. Some functions are actually named | |
10106 | something starting with __ and the normal name is an alias. */ | |
10107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10108 | choke me | |
10109 | #else | |
69ffe1d2 | 10110 | f = $ac_func; |
10f2d63a VZ |
10111 | #endif |
10112 | ||
10113 | ; return 0; } | |
10114 | EOF | |
69ffe1d2 | 10115 | if { (eval echo configure:10116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10116 | rm -rf conftest* |
10117 | eval "ac_cv_func_$ac_func=yes" | |
10118 | else | |
10119 | echo "configure: failed program was:" >&5 | |
10120 | cat conftest.$ac_ext >&5 | |
10121 | rm -rf conftest* | |
10122 | eval "ac_cv_func_$ac_func=no" | |
10123 | fi | |
10124 | rm -f conftest* | |
10125 | fi | |
10126 | ||
10127 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10128 | echo "$ac_t""yes" 1>&6 | |
10129 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10130 | cat >> confdefs.h <<EOF | |
10131 | #define $ac_tr_func 1 | |
10132 | EOF | |
c63c7106 VZ |
10133 | cat >> confdefs.h <<\EOF |
10134 | #define HAVE_INET_ATON 1 | |
10135 | EOF | |
10136 | ||
10f2d63a VZ |
10137 | else |
10138 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10139 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
69ffe1d2 | 10140 | echo "configure:10141: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 10141 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
10142 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
10143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10144 | else | |
10145 | ac_save_LIBS="$LIBS" | |
c63c7106 | 10146 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 10147 | cat > conftest.$ac_ext <<EOF |
69ffe1d2 | 10148 | #line 10149 "configure" |
10f2d63a VZ |
10149 | #include "confdefs.h" |
10150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10151 | /* We use char because int might match the return type of a gcc2 | |
10152 | builtin and then its argument prototype would still apply. */ | |
10153 | char inet_aton(); | |
10154 | ||
10155 | int main() { | |
10156 | inet_aton() | |
10157 | ; return 0; } | |
10158 | EOF | |
69ffe1d2 | 10159 | if { (eval echo configure:10160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10160 | rm -rf conftest* |
10161 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10162 | else | |
10163 | echo "configure: failed program was:" >&5 | |
10164 | cat conftest.$ac_ext >&5 | |
10165 | rm -rf conftest* | |
10166 | eval "ac_cv_lib_$ac_lib_var=no" | |
10167 | fi | |
10168 | rm -f conftest* | |
10169 | LIBS="$ac_save_LIBS" | |
10170 | ||
10171 | fi | |
10172 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10173 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
10174 | cat >> confdefs.h <<\EOF |
10175 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
10176 | EOF |
10177 | ||
10f2d63a VZ |
10178 | else |
10179 | echo "$ac_t""no" 1>&6 | |
10180 | fi | |
10181 | ||
c63c7106 VZ |
10182 | |
10183 | fi | |
10184 | done | |
10185 | ||
10186 | ||
10187 | if test "x$INET_LINK" != "x"; then | |
10188 | cat >> confdefs.h <<\EOF | |
10189 | #define HAVE_INET_ADDR 1 | |
10190 | EOF | |
10191 | ||
10192 | INET_LINK="-l$INET_LINK" | |
10193 | fi | |
10f2d63a VZ |
10194 | |
10195 | fi | |
10196 | ||
10197 | ||
10198 | cat > confcache <<\EOF | |
10199 | # This file is a shell script that caches the results of configure | |
10200 | # tests run on this system so they can be shared between configure | |
10201 | # scripts and configure runs. It is not useful on other systems. | |
10202 | # If it contains results you don't want to keep, you may remove or edit it. | |
10203 | # | |
10204 | # By default, configure uses ./config.cache as the cache file, | |
10205 | # creating it if it does not exist already. You can give configure | |
10206 | # the --cache-file=FILE option to use a different cache file; that is | |
10207 | # what configure does when it calls configure scripts in | |
10208 | # subdirectories, so they share the cache. | |
10209 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10210 | # config.status only pays attention to the cache file if you give it the | |
10211 | # --recheck option to rerun configure. | |
10212 | # | |
10213 | EOF | |
10214 | # The following way of writing the cache mishandles newlines in values, | |
10215 | # but we know of no workaround that is simple, portable, and efficient. | |
10216 | # So, don't put newlines in cache variables' values. | |
10217 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10218 | # and sets the high bit in the cache file unless we assign to the vars. | |
10219 | (set) 2>&1 | | |
10220 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10221 | *ac_space=\ *) | |
10222 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10223 | # turns \\\\ into \\, and sed turns \\ into \). | |
10224 | sed -n \ | |
10225 | -e "s/'/'\\\\''/g" \ | |
10226 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10227 | ;; | |
10228 | *) | |
10229 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10230 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10231 | ;; | |
10232 | esac >> confcache | |
10233 | if cmp -s $cache_file confcache; then | |
10234 | : | |
10235 | else | |
10236 | if test -w $cache_file; then | |
10237 | echo "updating cache $cache_file" | |
10238 | cat confcache > $cache_file | |
10239 | else | |
10240 | echo "not updating unwritable cache $cache_file" | |
10241 | fi | |
10242 | fi | |
10243 | rm -f confcache | |
10244 | ||
10245 | ||
10246 | ||
10247 | if test "$USE_UNIX" = 1; then | |
10248 | ||
10249 | ||
10250 | THREADS_LINK="" | |
10251 | THREADS_OBJ="" | |
10252 | ||
10253 | if test "$wxUSE_THREADS" = "yes" ; then | |
10254 | if test "$wxUSE_WINE" = 1 ; then | |
10255 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
10256 | wxUSE_THREADS="no" | |
10257 | fi | |
10258 | fi | |
10259 | ||
10260 | if test "$wxUSE_THREADS" = "yes" ; then | |
10261 | ||
10262 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
69ffe1d2 | 10263 | echo "configure:10264: checking for pthread_create in -lpthread" >&5 |
10f2d63a VZ |
10264 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
10265 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10267 | else | |
10268 | ac_save_LIBS="$LIBS" | |
10269 | LIBS="-lpthread $LIBS" | |
10270 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10271 | #line 10272 "configure" |
10f2d63a VZ |
10272 | #include "confdefs.h" |
10273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10274 | /* We use char because int might match the return type of a gcc2 | |
10275 | builtin and then its argument prototype would still apply. */ | |
10276 | char pthread_create(); | |
10277 | ||
10278 | int main() { | |
10279 | pthread_create() | |
10280 | ; return 0; } | |
10281 | EOF | |
69ffe1d2 | 10282 | if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10283 | rm -rf conftest* |
10284 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10285 | else | |
10286 | echo "configure: failed program was:" >&5 | |
10287 | cat conftest.$ac_ext >&5 | |
10288 | rm -rf conftest* | |
10289 | eval "ac_cv_lib_$ac_lib_var=no" | |
10290 | fi | |
10291 | rm -f conftest* | |
10292 | LIBS="$ac_save_LIBS" | |
10293 | ||
10294 | fi | |
10295 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10296 | echo "$ac_t""yes" 1>&6 | |
10297 | ||
10298 | THREADS_OBJ="threadpsx.lo" | |
10299 | THREADS_LINK="pthread" | |
10300 | ||
10301 | else | |
10302 | echo "$ac_t""no" 1>&6 | |
10303 | ||
10304 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
69ffe1d2 | 10305 | echo "configure:10306: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
10306 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
10307 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10309 | else | |
10310 | ac_save_LIBS="$LIBS" | |
10311 | LIBS="-lc_r $LIBS" | |
10312 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10313 | #line 10314 "configure" |
10f2d63a VZ |
10314 | #include "confdefs.h" |
10315 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10316 | /* We use char because int might match the return type of a gcc2 | |
10317 | builtin and then its argument prototype would still apply. */ | |
10318 | char pthread_create(); | |
10319 | ||
10320 | int main() { | |
10321 | pthread_create() | |
10322 | ; return 0; } | |
10323 | EOF | |
69ffe1d2 | 10324 | if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10325 | rm -rf conftest* |
10326 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10327 | else | |
10328 | echo "configure: failed program was:" >&5 | |
10329 | cat conftest.$ac_ext >&5 | |
10330 | rm -rf conftest* | |
10331 | eval "ac_cv_lib_$ac_lib_var=no" | |
10332 | fi | |
10333 | rm -f conftest* | |
10334 | LIBS="$ac_save_LIBS" | |
10335 | ||
10336 | fi | |
10337 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10338 | echo "$ac_t""yes" 1>&6 | |
10339 | ||
10340 | THREADS_OBJ="threadpsx.lo" | |
10341 | THREADS_LINK="c_r" | |
10342 | ||
10343 | else | |
10344 | echo "$ac_t""no" 1>&6 | |
10345 | ||
10346 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10347 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
69ffe1d2 | 10348 | echo "configure:10349: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
10349 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10351 | else | |
10352 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10353 | #line 10354 "configure" |
10f2d63a VZ |
10354 | #include "confdefs.h" |
10355 | #include <sys/prctl.h> | |
10356 | EOF | |
10357 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 10358 | { (eval echo configure:10359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10359 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10360 | if test -z "$ac_err"; then | |
10361 | rm -rf conftest* | |
10362 | eval "ac_cv_header_$ac_safe=yes" | |
10363 | else | |
10364 | echo "$ac_err" >&5 | |
10365 | echo "configure: failed program was:" >&5 | |
10366 | cat conftest.$ac_ext >&5 | |
10367 | rm -rf conftest* | |
10368 | eval "ac_cv_header_$ac_safe=no" | |
10369 | fi | |
10370 | rm -f conftest* | |
10371 | fi | |
10372 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10373 | echo "$ac_t""yes" 1>&6 | |
10374 | ||
10375 | THREADS_OBJ="threadsgi.lo" | |
10376 | ||
10377 | else | |
10378 | echo "$ac_t""no" 1>&6 | |
10379 | fi | |
10380 | ||
10381 | ||
10382 | fi | |
10383 | ||
10384 | ||
10385 | fi | |
10386 | ||
10387 | ||
10388 | if test -z "$THREADS_OBJ" ; then | |
10389 | wxUSE_THREADS=no | |
10390 | echo "configure: warning: No thread support on this system" 1>&2 | |
10391 | fi | |
10392 | fi | |
10393 | ||
10394 | if test "$wxUSE_THREADS" = "yes" ; then | |
10395 | ||
10396 | for ac_hdr in sched.h | |
10397 | do | |
10398 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10399 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 10400 | echo "configure:10401: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10401 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10403 | else | |
10404 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10405 | #line 10406 "configure" |
10f2d63a VZ |
10406 | #include "confdefs.h" |
10407 | #include <$ac_hdr> | |
10408 | EOF | |
10409 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 10410 | { (eval echo configure:10411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10411 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10412 | if test -z "$ac_err"; then | |
10413 | rm -rf conftest* | |
10414 | eval "ac_cv_header_$ac_safe=yes" | |
10415 | else | |
10416 | echo "$ac_err" >&5 | |
10417 | echo "configure: failed program was:" >&5 | |
10418 | cat conftest.$ac_ext >&5 | |
10419 | rm -rf conftest* | |
10420 | eval "ac_cv_header_$ac_safe=no" | |
10421 | fi | |
10422 | rm -f conftest* | |
10423 | fi | |
10424 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10425 | echo "$ac_t""yes" 1>&6 | |
10426 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10427 | cat >> confdefs.h <<EOF | |
10428 | #define $ac_tr_hdr 1 | |
10429 | EOF | |
10430 | ||
10431 | else | |
10432 | echo "$ac_t""no" 1>&6 | |
10433 | fi | |
10434 | done | |
10435 | ||
10436 | ||
10437 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
69ffe1d2 | 10438 | echo "configure:10439: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10439 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
10440 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10442 | else | |
10443 | ac_save_LIBS="$LIBS" | |
10444 | LIBS="-l$THREADS_LINK $LIBS" | |
10445 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10446 | #line 10447 "configure" |
10f2d63a VZ |
10447 | #include "confdefs.h" |
10448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10449 | /* We use char because int might match the return type of a gcc2 | |
10450 | builtin and then its argument prototype would still apply. */ | |
10451 | char sched_yield(); | |
10452 | ||
10453 | int main() { | |
10454 | sched_yield() | |
10455 | ; return 0; } | |
10456 | EOF | |
69ffe1d2 | 10457 | if { (eval echo configure:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10458 | rm -rf conftest* |
10459 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10460 | else | |
10461 | echo "configure: failed program was:" >&5 | |
10462 | cat conftest.$ac_ext >&5 | |
10463 | rm -rf conftest* | |
10464 | eval "ac_cv_lib_$ac_lib_var=no" | |
10465 | fi | |
10466 | rm -f conftest* | |
10467 | LIBS="$ac_save_LIBS" | |
10468 | ||
10469 | fi | |
10470 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10471 | echo "$ac_t""yes" 1>&6 | |
10472 | cat >> confdefs.h <<\EOF | |
10473 | #define HAVE_SCHED_YIELD 1 | |
10474 | EOF | |
10475 | ||
10476 | else | |
10477 | echo "$ac_t""no" 1>&6 | |
10478 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
69ffe1d2 | 10479 | echo "configure:10480: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
10480 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
10481 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10482 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10483 | else | |
10484 | ac_save_LIBS="$LIBS" | |
10485 | LIBS="-l"posix4" $LIBS" | |
10486 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10487 | #line 10488 "configure" |
10f2d63a VZ |
10488 | #include "confdefs.h" |
10489 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10490 | /* We use char because int might match the return type of a gcc2 | |
10491 | builtin and then its argument prototype would still apply. */ | |
10492 | char sched_yield(); | |
10493 | ||
10494 | int main() { | |
10495 | sched_yield() | |
10496 | ; return 0; } | |
10497 | EOF | |
69ffe1d2 | 10498 | if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10499 | rm -rf conftest* |
10500 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10501 | else | |
10502 | echo "configure: failed program was:" >&5 | |
10503 | cat conftest.$ac_ext >&5 | |
10504 | rm -rf conftest* | |
10505 | eval "ac_cv_lib_$ac_lib_var=no" | |
10506 | fi | |
10507 | rm -f conftest* | |
10508 | LIBS="$ac_save_LIBS" | |
10509 | ||
10510 | fi | |
10511 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10512 | echo "$ac_t""yes" 1>&6 | |
10513 | cat >> confdefs.h <<\EOF | |
10514 | #define HAVE_SCHED_YIELD 1 | |
10515 | EOF | |
10516 | POSIX4_LINK="-lposix4" | |
10517 | else | |
10518 | echo "$ac_t""no" 1>&6 | |
10519 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
10520 | ||
10521 | fi | |
10522 | ||
10523 | ||
10524 | fi | |
10525 | ||
10526 | ||
10527 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
69ffe1d2 | 10528 | echo "configure:10529: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10529 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10530 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10532 | else | |
10533 | ac_save_LIBS="$LIBS" | |
10534 | LIBS="-l$THREADS_LINK $LIBS" | |
10535 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10536 | #line 10537 "configure" |
10f2d63a VZ |
10537 | #include "confdefs.h" |
10538 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10539 | /* We use char because int might match the return type of a gcc2 | |
10540 | builtin and then its argument prototype would still apply. */ | |
10541 | char pthread_attr_getschedpolicy(); | |
10542 | ||
10543 | int main() { | |
10544 | pthread_attr_getschedpolicy() | |
10545 | ; return 0; } | |
10546 | EOF | |
69ffe1d2 | 10547 | if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10548 | rm -rf conftest* |
10549 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10550 | else | |
10551 | echo "configure: failed program was:" >&5 | |
10552 | cat conftest.$ac_ext >&5 | |
10553 | rm -rf conftest* | |
10554 | eval "ac_cv_lib_$ac_lib_var=no" | |
10555 | fi | |
10556 | rm -f conftest* | |
10557 | LIBS="$ac_save_LIBS" | |
10558 | ||
10559 | fi | |
10560 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10561 | echo "$ac_t""yes" 1>&6 | |
10562 | cat >> confdefs.h <<\EOF | |
10563 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10564 | EOF | |
10565 | ||
10566 | else | |
10567 | echo "$ac_t""no" 1>&6 | |
10568 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
69ffe1d2 | 10569 | echo "configure:10570: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
10f2d63a VZ |
10570 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10571 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10572 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10573 | else | |
10574 | ac_save_LIBS="$LIBS" | |
10575 | LIBS="-l"posix4" $LIBS" | |
10576 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10577 | #line 10578 "configure" |
10f2d63a VZ |
10578 | #include "confdefs.h" |
10579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10580 | /* We use char because int might match the return type of a gcc2 | |
10581 | builtin and then its argument prototype would still apply. */ | |
10582 | char pthread_attr_getschedpolicy(); | |
10583 | ||
10584 | int main() { | |
10585 | pthread_attr_getschedpolicy() | |
10586 | ; return 0; } | |
10587 | EOF | |
69ffe1d2 | 10588 | if { (eval echo configure:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10589 | rm -rf conftest* |
10590 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10591 | else | |
10592 | echo "configure: failed program was:" >&5 | |
10593 | cat conftest.$ac_ext >&5 | |
10594 | rm -rf conftest* | |
10595 | eval "ac_cv_lib_$ac_lib_var=no" | |
10596 | fi | |
10597 | rm -f conftest* | |
10598 | LIBS="$ac_save_LIBS" | |
10599 | ||
10600 | fi | |
10601 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10602 | echo "$ac_t""yes" 1>&6 | |
10603 | cat >> confdefs.h <<\EOF | |
10604 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10605 | EOF | |
10606 | POSIX4_LINK="-lposix4" | |
10607 | else | |
10608 | echo "$ac_t""no" 1>&6 | |
10609 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
10610 | ||
10611 | fi | |
10612 | ||
10613 | ||
10614 | fi | |
10615 | ||
10616 | ||
10617 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
69ffe1d2 | 10618 | echo "configure:10619: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10619 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
10620 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10622 | else | |
10623 | ac_save_LIBS="$LIBS" | |
10624 | LIBS="-l$THREADS_LINK $LIBS" | |
10625 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10626 | #line 10627 "configure" |
10f2d63a VZ |
10627 | #include "confdefs.h" |
10628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10629 | /* We use char because int might match the return type of a gcc2 | |
10630 | builtin and then its argument prototype would still apply. */ | |
10631 | char pthread_cancel(); | |
10632 | ||
10633 | int main() { | |
10634 | pthread_cancel() | |
10635 | ; return 0; } | |
10636 | EOF | |
69ffe1d2 | 10637 | if { (eval echo configure:10638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10638 | rm -rf conftest* |
10639 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10640 | else | |
10641 | echo "configure: failed program was:" >&5 | |
10642 | cat conftest.$ac_ext >&5 | |
10643 | rm -rf conftest* | |
10644 | eval "ac_cv_lib_$ac_lib_var=no" | |
10645 | fi | |
10646 | rm -f conftest* | |
10647 | LIBS="$ac_save_LIBS" | |
10648 | ||
10649 | fi | |
10650 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10651 | echo "$ac_t""yes" 1>&6 | |
10652 | cat >> confdefs.h <<\EOF | |
10653 | #define HAVE_PTHREAD_CANCEL 1 | |
10654 | EOF | |
10655 | ||
10656 | else | |
10657 | echo "$ac_t""no" 1>&6 | |
10658 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10659 | fi | |
10660 | ||
10661 | ||
10662 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
69ffe1d2 | 10663 | echo "configure:10664: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
10664 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
10665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10666 | else | |
10667 | ||
10668 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10669 | #line 10670 "configure" |
10f2d63a VZ |
10670 | #include "confdefs.h" |
10671 | #include <pthread.h> | |
10672 | int main() { | |
10673 | ||
10674 | pthread_cleanup_push(NULL, NULL); | |
10675 | pthread_cleanup_pop(0); | |
10676 | ||
10677 | ; return 0; } | |
10678 | EOF | |
69ffe1d2 | 10679 | if { (eval echo configure:10680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10680 | rm -rf conftest* |
10681 | ||
10682 | wx_cv_func_pthread_cleanup_push=yes | |
10683 | cat >> confdefs.h <<\EOF | |
10684 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
10685 | EOF | |
10686 | ||
10687 | ||
10688 | else | |
10689 | echo "configure: failed program was:" >&5 | |
10690 | cat conftest.$ac_ext >&5 | |
10691 | rm -rf conftest* | |
10692 | ||
10693 | wx_cv_func_pthread_cleanup_push=no | |
10694 | ||
10695 | fi | |
10696 | rm -f conftest* | |
10697 | ||
10698 | fi | |
10699 | ||
10700 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10701 | ||
10702 | THREADS_LINK="-l$THREADS_LINK" | |
10703 | fi | |
10704 | ||
10705 | fi | |
10706 | ||
10707 | if test "$wxUSE_THREADS" = "yes"; then | |
10708 | cat >> confdefs.h <<\EOF | |
10709 | #define wxUSE_THREADS 1 | |
10710 | EOF | |
10711 | ||
10712 | ||
10713 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
10714 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
10715 | ||
10716 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
10717 | else | |
10718 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 10719 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
69ffe1d2 | 10720 | echo "configure:10721: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
10721 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
10722 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
10723 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
10724 | echo "$ac_t""yes" 1>&6 | |
10725 | else | |
10726 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10727 | fi |
10728 | fi | |
10729 | fi | |
10730 | ||
10731 | if test "$WXGTK12" = 1 ; then | |
10732 | cat >> confdefs.h <<EOF | |
10733 | #define __WXGTK12__ $WXGTK12 | |
10734 | EOF | |
10735 | ||
10736 | fi | |
10737 | ||
10738 | if test "$WXWINE" = 1 ; then | |
10739 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
10740 | fi | |
10741 | ||
10742 | if test "$wxUSE_CYGWIN" = 1 ; then | |
10743 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
10744 | fi | |
10745 | ||
10746 | WXDEBUG= | |
10747 | ||
10748 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
10749 | WXDEBUG="-g" | |
10750 | wxUSE_OPTIMISE=no | |
10751 | fi | |
10752 | ||
10753 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
10754 | wxUSE_DEBUG_INFO=yes | |
10755 | WXDEBUG="-ggdb" | |
10756 | fi | |
10757 | ||
10758 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
10759 | cat >> confdefs.h <<\EOF | |
10760 | #define WXDEBUG 1 | |
10761 | EOF | |
10762 | ||
10763 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10764 | else | |
10765 | if test "$wxUSE_GTK" = 1 ; then | |
10766 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
10767 | fi | |
10768 | fi | |
10769 | ||
10770 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
10771 | cat >> confdefs.h <<\EOF | |
10772 | #define wxUSE_MEMORY_TRACING 1 | |
10773 | EOF | |
10774 | ||
10775 | cat >> confdefs.h <<\EOF | |
10776 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
10777 | EOF | |
10778 | ||
10779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
10780 | fi | |
10781 | ||
10782 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
10783 | DMALLOC_LINK="-ldmalloc" | |
10784 | fi | |
10785 | ||
10786 | PROFILE= | |
10787 | if test "$wxUSE_PROFILE" = "yes" ; then | |
10788 | PROFILE="-pg" | |
10789 | fi | |
10790 | ||
10791 | DEP_INFO_FLAGS= | |
10792 | if test "$GCC" = yes ; then | |
10793 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
10794 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" | |
10795 | fi | |
10796 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
10797 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" | |
10798 | fi | |
10799 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
10800 | CFLAGS="${CFLAGS} -fpermissive" | |
10801 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
10802 | fi | |
10803 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
10804 | DEP_INFO_FLAGS="-MMD" | |
10805 | fi | |
10806 | fi | |
10807 | ||
10808 | ||
10809 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
10810 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
10811 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
10812 | OPTIMISE= | |
10813 | else | |
10814 | if test "$GCC" = yes ; then | |
10815 | OPTIMISE="-O2" | |
10816 | case "${host}" in | |
10817 | i586-*-*|i686-*-* ) | |
10818 | OPTIMISE="${OPTIMISE} " | |
10819 | ;; | |
10820 | esac | |
10821 | else | |
10822 | OPTIMISE="-O" | |
10823 | fi | |
10824 | fi | |
10825 | ||
10826 | ||
10827 | ZLIB_INCLUDE= | |
10828 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10829 | cat >> confdefs.h <<\EOF | |
10830 | #define wxUSE_ZLIB 1 | |
10831 | EOF | |
10832 | ||
10833 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
10834 | fi | |
10835 | ||
10836 | PNG_INCLUDE= | |
10837 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10838 | cat >> confdefs.h <<\EOF | |
10839 | #define wxUSE_LIBPNG 1 | |
10840 | EOF | |
10841 | ||
10842 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
10843 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
10844 | fi | |
10845 | ||
10846 | JPEG_INCLUDE= | |
10847 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
10848 | cat >> confdefs.h <<\EOF | |
10849 | #define wxUSE_LIBJPEG 1 | |
10850 | EOF | |
10851 | ||
10852 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10853 | fi | |
10854 | ||
10855 | if test "$wxUSE_OPENGL" = "yes"; then | |
10856 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
10857 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
69ffe1d2 | 10858 | echo "configure:10859: checking for GL/gl.h" >&5 |
10f2d63a VZ |
10859 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10861 | else | |
10862 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10863 | #line 10864 "configure" |
10f2d63a VZ |
10864 | #include "confdefs.h" |
10865 | #include <GL/gl.h> | |
10866 | EOF | |
10867 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 10868 | { (eval echo configure:10869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10869 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10870 | if test -z "$ac_err"; then | |
10871 | rm -rf conftest* | |
10872 | eval "ac_cv_header_$ac_safe=yes" | |
10873 | else | |
10874 | echo "$ac_err" >&5 | |
10875 | echo "configure: failed program was:" >&5 | |
10876 | cat conftest.$ac_ext >&5 | |
10877 | rm -rf conftest* | |
10878 | eval "ac_cv_header_$ac_safe=no" | |
10879 | fi | |
10880 | rm -f conftest* | |
10881 | fi | |
10882 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10883 | echo "$ac_t""yes" 1>&6 | |
10884 | ||
10885 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
69ffe1d2 | 10886 | echo "configure:10887: checking for glInitNames in -lGL" >&5 |
10f2d63a VZ |
10887 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` |
10888 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10890 | else | |
10891 | ac_save_LIBS="$LIBS" | |
10892 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
10893 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10894 | #line 10895 "configure" |
10f2d63a VZ |
10895 | #include "confdefs.h" |
10896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10897 | /* We use char because int might match the return type of a gcc2 | |
10898 | builtin and then its argument prototype would still apply. */ | |
10899 | char glInitNames(); | |
10900 | ||
10901 | int main() { | |
10902 | glInitNames() | |
10903 | ; return 0; } | |
10904 | EOF | |
69ffe1d2 | 10905 | if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10906 | rm -rf conftest* |
10907 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10908 | else | |
10909 | echo "configure: failed program was:" >&5 | |
10910 | cat conftest.$ac_ext >&5 | |
10911 | rm -rf conftest* | |
10912 | eval "ac_cv_lib_$ac_lib_var=no" | |
10913 | fi | |
10914 | rm -f conftest* | |
10915 | LIBS="$ac_save_LIBS" | |
10916 | ||
10917 | fi | |
10918 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10919 | echo "$ac_t""yes" 1>&6 | |
10920 | ||
10921 | OPENGL_LINK="-lGL" | |
10922 | cat >> confdefs.h <<\EOF | |
10923 | #define wxUSE_OPENGL 1 | |
10924 | EOF | |
10925 | ||
10926 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10927 | ||
10928 | else | |
10929 | echo "$ac_t""no" 1>&6 | |
10930 | ||
10931 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
69ffe1d2 | 10932 | echo "configure:10933: checking for glInitNames in -lMesaGL" >&5 |
10f2d63a VZ |
10933 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` |
10934 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10936 | else | |
10937 | ac_save_LIBS="$LIBS" | |
10938 | LIBS="-lMesaGL $LIBS" | |
10939 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 10940 | #line 10941 "configure" |
10f2d63a VZ |
10941 | #include "confdefs.h" |
10942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10943 | /* We use char because int might match the return type of a gcc2 | |
10944 | builtin and then its argument prototype would still apply. */ | |
10945 | char glInitNames(); | |
10946 | ||
10947 | int main() { | |
10948 | glInitNames() | |
10949 | ; return 0; } | |
10950 | EOF | |
69ffe1d2 | 10951 | if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10952 | rm -rf conftest* |
10953 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10954 | else | |
10955 | echo "configure: failed program was:" >&5 | |
10956 | cat conftest.$ac_ext >&5 | |
10957 | rm -rf conftest* | |
10958 | eval "ac_cv_lib_$ac_lib_var=no" | |
10959 | fi | |
10960 | rm -f conftest* | |
10961 | LIBS="$ac_save_LIBS" | |
10962 | ||
10963 | fi | |
10964 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10965 | echo "$ac_t""yes" 1>&6 | |
10966 | ||
10967 | OPENGL_LINK="-lMesaGL" | |
10968 | cat >> confdefs.h <<\EOF | |
10969 | #define wxUSE_OPENGL 1 | |
10970 | EOF | |
10971 | ||
10972 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10973 | ||
10974 | else | |
10975 | echo "$ac_t""no" 1>&6 | |
10976 | wxUSE_OPENGL=0 | |
10977 | fi | |
10978 | ||
10979 | ||
10980 | fi | |
10981 | ||
10982 | ||
10983 | else | |
10984 | echo "$ac_t""no" 1>&6 | |
10985 | wxUSE_OPENGL=0 | |
10986 | fi | |
10987 | ||
10988 | fi | |
10989 | ||
10990 | ||
10991 | if test "$wxUSE_GUI" = "yes"; then | |
10992 | cat >> confdefs.h <<\EOF | |
10993 | #define wxUSE_GUI 1 | |
10994 | EOF | |
10995 | ||
10996 | ||
10997 | else | |
10998 | cat >> confdefs.h <<\EOF | |
10999 | #define wxUSE_NOGUI 1 | |
11000 | EOF | |
11001 | ||
11002 | fi | |
11003 | ||
11004 | ||
11005 | if test "$wxUSE_UNIX" = "yes"; then | |
11006 | cat >> confdefs.h <<\EOF | |
11007 | #define wxUSE_UNIX 1 | |
11008 | EOF | |
11009 | ||
11010 | fi | |
11011 | ||
11012 | ||
11013 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
11014 | cat >> confdefs.h <<\EOF | |
11015 | #define wxUSE_APPLE_IEEE 1 | |
11016 | EOF | |
11017 | ||
11018 | fi | |
11019 | ||
10f2d63a VZ |
11020 | if test "$wxUSE_WAVE" = "yes"; then |
11021 | cat >> confdefs.h <<\EOF | |
11022 | #define wxUSE_WAVE 1 | |
11023 | EOF | |
11024 | ||
11025 | fi | |
11026 | ||
11027 | if test "$wxUSE_FILE" = "yes"; then | |
11028 | cat >> confdefs.h <<\EOF | |
11029 | #define wxUSE_FILE 1 | |
11030 | EOF | |
11031 | ||
11032 | fi | |
11033 | ||
11034 | if test "$wxUSE_FS_INET" = "yes"; then | |
11035 | cat >> confdefs.h <<\EOF | |
11036 | #define wxUSE_FS_INET 1 | |
11037 | EOF | |
11038 | ||
11039 | fi | |
11040 | ||
11041 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
11042 | cat >> confdefs.h <<\EOF | |
11043 | #define wxUSE_FS_ZIP 1 | |
11044 | EOF | |
11045 | ||
11046 | fi | |
11047 | ||
11048 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
11049 | cat >> confdefs.h <<\EOF | |
11050 | #define wxUSE_ZIPSTREAM 1 | |
11051 | EOF | |
11052 | ||
11053 | fi | |
11054 | ||
11055 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
11056 | cat >> confdefs.h <<\EOF | |
11057 | #define wxUSE_BUSYINFO 1 | |
11058 | EOF | |
11059 | ||
11060 | fi | |
11061 | ||
11062 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
11063 | cat >> confdefs.h <<\EOF | |
11064 | #define wxUSE_STD_IOSTREAM 1 | |
11065 | EOF | |
11066 | ||
11067 | fi | |
11068 | ||
11069 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
11070 | if test "$wxUSE_FILE" != "yes"; then | |
11071 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
11072 | else | |
11073 | cat >> confdefs.h <<\EOF | |
11074 | #define wxUSE_TEXTFILE 1 | |
11075 | EOF | |
11076 | ||
11077 | fi | |
11078 | fi | |
11079 | ||
11080 | if test "$wxUSE_CONFIG" = "yes" ; then | |
11081 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
11082 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
11083 | else | |
11084 | cat >> confdefs.h <<\EOF | |
11085 | #define wxUSE_CONFIG 1 | |
11086 | EOF | |
11087 | ||
11088 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
11089 | fi | |
11090 | fi | |
11091 | ||
11092 | if test "$wxUSE_INTL" = "yes" ; then | |
11093 | if test "$wxUSE_FILE" != "yes"; then | |
11094 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
11095 | else | |
11096 | cat >> confdefs.h <<\EOF | |
11097 | #define wxUSE_INTL 1 | |
11098 | EOF | |
11099 | ||
11100 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
11101 | fi | |
11102 | fi | |
11103 | ||
11104 | if test "$wxUSE_LOG" = "yes"; then | |
11105 | cat >> confdefs.h <<\EOF | |
11106 | #define wxUSE_LOG 1 | |
11107 | EOF | |
11108 | ||
11109 | fi | |
11110 | ||
11111 | if test "$wxUSE_LONGLONG" = "yes"; then | |
11112 | cat >> confdefs.h <<\EOF | |
11113 | #define wxUSE_LONGLONG 1 | |
11114 | EOF | |
11115 | ||
11116 | fi | |
11117 | ||
10f2d63a VZ |
11118 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
11119 | cat >> confdefs.h <<\EOF | |
11120 | #define wxUSE_DIALUP_MANAGER 1 | |
11121 | EOF | |
11122 | ||
678b92a9 | 11123 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest" |
10f2d63a VZ |
11124 | fi |
11125 | ||
11126 | if test "$wxUSE_STREAMS" = "yes" ; then | |
11127 | cat >> confdefs.h <<\EOF | |
11128 | #define wxUSE_STREAMS 1 | |
11129 | EOF | |
11130 | ||
11131 | fi | |
11132 | ||
11133 | if test "$wxUSE_SERIAL" = "yes" ; then | |
11134 | cat >> confdefs.h <<\EOF | |
11135 | #define wxUSE_SERIAL 1 | |
11136 | EOF | |
11137 | ||
11138 | fi | |
11139 | ||
11140 | ||
afc31813 | 11141 | if test "$wxUSE_TIMEDATE" = "yes"; then |
0470b1e6 | 11142 | for ac_func in localtime gettimeofday ftime |
afc31813 VZ |
11143 | do |
11144 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 11145 | echo "configure:11146: checking for $ac_func" >&5 |
afc31813 VZ |
11146 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11148 | else | |
11149 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11150 | #line 11151 "configure" |
10f2d63a | 11151 | #include "confdefs.h" |
afc31813 VZ |
11152 | /* System header to define __stub macros and hopefully few prototypes, |
11153 | which can conflict with char $ac_func(); below. */ | |
11154 | #include <assert.h> | |
11155 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11156 | /* We use char because int might match the return type of a gcc2 | |
11157 | builtin and then its argument prototype would still apply. */ | |
11158 | char $ac_func(); | |
69ffe1d2 | 11159 | char (*f)(); |
afc31813 | 11160 | |
10f2d63a | 11161 | int main() { |
afc31813 VZ |
11162 | |
11163 | /* The GNU C library defines this for functions which it implements | |
11164 | to always fail with ENOSYS. Some functions are actually named | |
11165 | something starting with __ and the normal name is an alias. */ | |
11166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11167 | choke me | |
11168 | #else | |
69ffe1d2 | 11169 | f = $ac_func; |
afc31813 VZ |
11170 | #endif |
11171 | ||
10f2d63a VZ |
11172 | ; return 0; } |
11173 | EOF | |
69ffe1d2 | 11174 | if { (eval echo configure:11175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 11175 | rm -rf conftest* |
afc31813 | 11176 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
11177 | else |
11178 | echo "configure: failed program was:" >&5 | |
11179 | cat conftest.$ac_ext >&5 | |
11180 | rm -rf conftest* | |
afc31813 VZ |
11181 | eval "ac_cv_func_$ac_func=no" |
11182 | fi | |
11183 | rm -f conftest* | |
11184 | fi | |
11185 | ||
11186 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11187 | echo "$ac_t""yes" 1>&6 | |
11188 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11189 | cat >> confdefs.h <<EOF | |
11190 | #define $ac_tr_func 1 | |
11191 | EOF | |
0470b1e6 | 11192 | break |
afc31813 VZ |
11193 | else |
11194 | echo "$ac_t""no" 1>&6 | |
11195 | fi | |
11196 | done | |
11197 | ||
11198 | ||
0470b1e6 VZ |
11199 | if test "$ac_cv_func_localtime" = "yes"; then |
11200 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
69ffe1d2 | 11201 | echo "configure:11202: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
11202 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
11203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11204 | else | |
11205 | ||
11206 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11207 | #line 11208 "configure" |
0470b1e6 VZ |
11208 | #include "confdefs.h" |
11209 | ||
11210 | #include <time.h> | |
11211 | ||
11212 | int main() { | |
11213 | ||
11214 | struct tm tm; | |
11215 | tm.tm_gmtoff++; | |
11216 | ||
11217 | ; return 0; } | |
11218 | EOF | |
69ffe1d2 | 11219 | if { (eval echo configure:11220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
11220 | rm -rf conftest* |
11221 | ||
f03a98d8 | 11222 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
11223 | cat >> confdefs.h <<\EOF |
11224 | #define WX_GMTOFF_IN_TM 1 | |
11225 | EOF | |
11226 | ||
11227 | ||
11228 | else | |
11229 | echo "configure: failed program was:" >&5 | |
11230 | cat conftest.$ac_ext >&5 | |
11231 | rm -rf conftest* | |
11232 | wx_cv_struct_tm_has_gmtoff=no | |
11233 | ||
11234 | fi | |
11235 | rm -f conftest* | |
11236 | ||
11237 | fi | |
11238 | ||
11239 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
11240 | elif test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 11241 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
69ffe1d2 | 11242 | echo "configure:11243: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
11243 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
11244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11245 | else | |
11246 | ||
11247 | ||
11248 | ac_ext=C | |
11249 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11250 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11251 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11252 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11253 | cross_compiling=$ac_cv_prog_cxx_cross | |
11254 | ||
11255 | ||
11256 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11257 | #line 11258 "configure" |
10f2d63a | 11258 | #include "confdefs.h" |
afc31813 VZ |
11259 | |
11260 | #include <sys/time.h> | |
11261 | #include <unistd.h> | |
11262 | ||
10f2d63a | 11263 | int main() { |
afc31813 VZ |
11264 | |
11265 | struct timeval tv; | |
11266 | struct timezone tz; | |
11267 | gettimeofday(&tv, &tz); | |
11268 | ||
10f2d63a VZ |
11269 | ; return 0; } |
11270 | EOF | |
69ffe1d2 | 11271 | if { (eval echo configure:11272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 11272 | rm -rf conftest* |
afc31813 | 11273 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
11274 | else |
11275 | echo "configure: failed program was:" >&5 | |
11276 | cat conftest.$ac_ext >&5 | |
11277 | rm -rf conftest* | |
11278 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11279 | #line 11280 "configure" |
10f2d63a | 11280 | #include "confdefs.h" |
afc31813 VZ |
11281 | |
11282 | #include <sys/time.h> | |
11283 | #include <unistd.h> | |
11284 | ||
10f2d63a | 11285 | int main() { |
afc31813 VZ |
11286 | |
11287 | struct timeval tv; | |
11288 | gettimeofday(&tv); | |
11289 | ||
10f2d63a VZ |
11290 | ; return 0; } |
11291 | EOF | |
69ffe1d2 | 11292 | if { (eval echo configure:11293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 11293 | rm -rf conftest* |
afc31813 | 11294 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
11295 | else |
11296 | echo "configure: failed program was:" >&5 | |
11297 | cat conftest.$ac_ext >&5 | |
11298 | rm -rf conftest* | |
afc31813 VZ |
11299 | wx_cv_func_gettimeofday_has_2_args=unknown |
11300 | ||
10f2d63a VZ |
11301 | fi |
11302 | rm -f conftest* | |
afc31813 | 11303 | |
10f2d63a VZ |
11304 | fi |
11305 | rm -f conftest* | |
afc31813 | 11306 | ac_ext=c |
10f2d63a VZ |
11307 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11308 | ac_cpp='$CPP $CPPFLAGS' | |
11309 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11310 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11311 | cross_compiling=$ac_cv_prog_cc_cross | |
11312 | ||
afc31813 VZ |
11313 | |
11314 | fi | |
11315 | ||
11316 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 11317 | |
afc31813 VZ |
11318 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
11319 | cat >> confdefs.h <<\EOF | |
11320 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
11321 | EOF | |
11322 | ||
11323 | fi | |
11324 | fi | |
11325 | ||
11326 | cat >> confdefs.h <<\EOF | |
11327 | #define wxUSE_TIMEDATE 1 | |
11328 | EOF | |
11329 | ||
11330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
11331 | fi | |
11332 | ||
11333 | ||
11334 | if test "$wxUSE_SOCKETS" = "yes"; then | |
c63c7106 | 11335 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
69ffe1d2 | 11336 | echo "configure:11337: checking for socket" >&5 |
c63c7106 VZ |
11337 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
11338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11339 | else | |
11340 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11341 | #line 11342 "configure" |
c63c7106 VZ |
11342 | #include "confdefs.h" |
11343 | /* System header to define __stub macros and hopefully few prototypes, | |
11344 | which can conflict with char socket(); below. */ | |
11345 | #include <assert.h> | |
11346 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11347 | /* We use char because int might match the return type of a gcc2 | |
11348 | builtin and then its argument prototype would still apply. */ | |
11349 | char socket(); | |
69ffe1d2 | 11350 | char (*f)(); |
c63c7106 VZ |
11351 | |
11352 | int main() { | |
11353 | ||
11354 | /* The GNU C library defines this for functions which it implements | |
11355 | to always fail with ENOSYS. Some functions are actually named | |
11356 | something starting with __ and the normal name is an alias. */ | |
11357 | #if defined (__stub_socket) || defined (__stub___socket) | |
11358 | choke me | |
11359 | #else | |
69ffe1d2 | 11360 | f = socket; |
c63c7106 VZ |
11361 | #endif |
11362 | ||
11363 | ; return 0; } | |
11364 | EOF | |
69ffe1d2 | 11365 | if { (eval echo configure:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11366 | rm -rf conftest* |
11367 | eval "ac_cv_func_socket=yes" | |
11368 | else | |
11369 | echo "configure: failed program was:" >&5 | |
11370 | cat conftest.$ac_ext >&5 | |
11371 | rm -rf conftest* | |
11372 | eval "ac_cv_func_socket=no" | |
11373 | fi | |
11374 | rm -f conftest* | |
11375 | fi | |
11376 | ||
11377 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
11378 | echo "$ac_t""yes" 1>&6 | |
11379 | : | |
11380 | else | |
11381 | echo "$ac_t""no" 1>&6 | |
11382 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
69ffe1d2 | 11383 | echo "configure:11384: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
11384 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
11385 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11387 | else | |
11388 | ac_save_LIBS="$LIBS" | |
11389 | LIBS="-lsocket $LIBS" | |
11390 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11391 | #line 11392 "configure" |
c63c7106 VZ |
11392 | #include "confdefs.h" |
11393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11394 | /* We use char because int might match the return type of a gcc2 | |
11395 | builtin and then its argument prototype would still apply. */ | |
11396 | char socket(); | |
11397 | ||
11398 | int main() { | |
11399 | socket() | |
11400 | ; return 0; } | |
11401 | EOF | |
69ffe1d2 | 11402 | if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11403 | rm -rf conftest* |
11404 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11405 | else | |
11406 | echo "configure: failed program was:" >&5 | |
11407 | cat conftest.$ac_ext >&5 | |
11408 | rm -rf conftest* | |
11409 | eval "ac_cv_lib_$ac_lib_var=no" | |
11410 | fi | |
11411 | rm -f conftest* | |
11412 | LIBS="$ac_save_LIBS" | |
11413 | ||
11414 | fi | |
11415 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11416 | echo "$ac_t""yes" 1>&6 | |
11417 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
11418 | else |
11419 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
11420 | |
11421 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
11422 | wxUSE_SOCKETS=no | |
11423 | ||
11424 | ||
c63c7106 VZ |
11425 | fi |
11426 | ||
11427 | ||
11428 | fi | |
11429 | ||
10f2d63a VZ |
11430 | fi |
11431 | ||
afc31813 VZ |
11432 | if test "$wxUSE_SOCKETS" = "yes" ; then |
11433 | ||
11434 | ac_ext=C | |
11435 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11436 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11437 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11438 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11439 | cross_compiling=$ac_cv_prog_cxx_cross | |
11440 | ||
11441 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
69ffe1d2 | 11442 | echo "configure:11443: checking the type of the third argument of getsockname" >&5 |
afc31813 | 11443 | cat > conftest.$ac_ext <<EOF |
69ffe1d2 | 11444 | #line 11445 "configure" |
afc31813 VZ |
11445 | #include "confdefs.h" |
11446 | #include <sys/socket.h> | |
11447 | int main() { | |
11448 | socklen_t len; getsockname(0, 0, &len); | |
11449 | ; return 0; } | |
11450 | EOF | |
69ffe1d2 | 11451 | if { (eval echo configure:11452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11452 | rm -rf conftest* |
11453 | cat >> confdefs.h <<\EOF | |
11454 | #define SOCKLEN_T socklen_t | |
11455 | EOF | |
11456 | echo "$ac_t""socklen_t" 1>&6 | |
11457 | else | |
11458 | echo "configure: failed program was:" >&5 | |
11459 | cat conftest.$ac_ext >&5 | |
11460 | rm -rf conftest* | |
11461 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11462 | #line 11463 "configure" |
afc31813 VZ |
11463 | #include "confdefs.h" |
11464 | #include <sys/socket.h> | |
11465 | int main() { | |
11466 | size_t len; getsockname(0, 0, &len); | |
11467 | ; return 0; } | |
11468 | EOF | |
69ffe1d2 | 11469 | if { (eval echo configure:11470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11470 | rm -rf conftest* |
11471 | cat >> confdefs.h <<\EOF | |
11472 | #define SOCKLEN_T size_t | |
11473 | EOF | |
11474 | echo "$ac_t""size_t" 1>&6 | |
11475 | else | |
11476 | echo "configure: failed program was:" >&5 | |
11477 | cat conftest.$ac_ext >&5 | |
11478 | rm -rf conftest* | |
11479 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11480 | #line 11481 "configure" |
afc31813 VZ |
11481 | #include "confdefs.h" |
11482 | #include <sys/socket.h> | |
11483 | int main() { | |
11484 | int len; getsockname(0, 0, &len); | |
11485 | ; return 0; } | |
11486 | EOF | |
69ffe1d2 | 11487 | if { (eval echo configure:11488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11488 | rm -rf conftest* |
11489 | cat >> confdefs.h <<\EOF | |
11490 | #define SOCKLEN_T int | |
11491 | EOF | |
11492 | echo "$ac_t""int" 1>&6 | |
11493 | else | |
11494 | echo "configure: failed program was:" >&5 | |
11495 | cat conftest.$ac_ext >&5 | |
11496 | rm -rf conftest* | |
11497 | echo "$ac_t""unknown" 1>&6 | |
11498 | ||
11499 | fi | |
11500 | rm -f conftest* | |
11501 | ||
11502 | fi | |
11503 | rm -f conftest* | |
11504 | ||
11505 | fi | |
11506 | rm -f conftest* | |
11507 | ac_ext=c | |
11508 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11509 | ac_cpp='$CPP $CPPFLAGS' | |
11510 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11511 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11512 | cross_compiling=$ac_cv_prog_cc_cross | |
11513 | ||
11514 | ||
11515 | cat >> confdefs.h <<\EOF | |
11516 | #define wxUSE_SOCKETS 1 | |
11517 | EOF | |
11518 | ||
11519 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" | |
11520 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
11521 | fi | |
11522 | ||
10f2d63a VZ |
11523 | |
11524 | if test "$wxUSE_JOYSTICK" = 1; then | |
11525 | for ac_hdr in linux/joystick.h | |
11526 | do | |
11527 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11528 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 11529 | echo "configure:11530: checking for $ac_hdr" >&5 |
10f2d63a VZ |
11530 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11532 | else | |
11533 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11534 | #line 11535 "configure" |
10f2d63a VZ |
11535 | #include "confdefs.h" |
11536 | #include <$ac_hdr> | |
11537 | EOF | |
11538 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 11539 | { (eval echo configure:11540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11540 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11541 | if test -z "$ac_err"; then | |
11542 | rm -rf conftest* | |
11543 | eval "ac_cv_header_$ac_safe=yes" | |
11544 | else | |
11545 | echo "$ac_err" >&5 | |
11546 | echo "configure: failed program was:" >&5 | |
11547 | cat conftest.$ac_ext >&5 | |
11548 | rm -rf conftest* | |
11549 | eval "ac_cv_header_$ac_safe=no" | |
11550 | fi | |
11551 | rm -f conftest* | |
11552 | fi | |
11553 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11554 | echo "$ac_t""yes" 1>&6 | |
11555 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11556 | cat >> confdefs.h <<EOF | |
11557 | #define $ac_tr_hdr 1 | |
11558 | EOF | |
11559 | ||
11560 | else | |
11561 | echo "$ac_t""no" 1>&6 | |
11562 | fi | |
11563 | done | |
11564 | ||
11565 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
11566 | cat >> confdefs.h <<\EOF | |
11567 | #define wxUSE_JOYSTICK 1 | |
11568 | EOF | |
11569 | ||
11570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
11571 | fi | |
11572 | fi | |
11573 | ||
11574 | ||
11575 | HAVE_DL_FUNCS=0 | |
11576 | HAVE_SHL_FUNCS=0 | |
11577 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
11578 | for ac_func in dlopen | |
11579 | do | |
11580 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 11581 | echo "configure:11582: checking for $ac_func" >&5 |
10f2d63a VZ |
11582 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11584 | else | |
11585 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11586 | #line 11587 "configure" |
10f2d63a VZ |
11587 | #include "confdefs.h" |
11588 | /* System header to define __stub macros and hopefully few prototypes, | |
11589 | which can conflict with char $ac_func(); below. */ | |
11590 | #include <assert.h> | |
11591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11592 | /* We use char because int might match the return type of a gcc2 | |
11593 | builtin and then its argument prototype would still apply. */ | |
11594 | char $ac_func(); | |
69ffe1d2 | 11595 | char (*f)(); |
10f2d63a VZ |
11596 | |
11597 | int main() { | |
11598 | ||
11599 | /* The GNU C library defines this for functions which it implements | |
11600 | to always fail with ENOSYS. Some functions are actually named | |
11601 | something starting with __ and the normal name is an alias. */ | |
11602 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11603 | choke me | |
11604 | #else | |
69ffe1d2 | 11605 | f = $ac_func; |
10f2d63a VZ |
11606 | #endif |
11607 | ||
11608 | ; return 0; } | |
11609 | EOF | |
69ffe1d2 | 11610 | if { (eval echo configure:11611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11611 | rm -rf conftest* |
11612 | eval "ac_cv_func_$ac_func=yes" | |
11613 | else | |
11614 | echo "configure: failed program was:" >&5 | |
11615 | cat conftest.$ac_ext >&5 | |
11616 | rm -rf conftest* | |
11617 | eval "ac_cv_func_$ac_func=no" | |
11618 | fi | |
11619 | rm -f conftest* | |
11620 | fi | |
11621 | ||
11622 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11623 | echo "$ac_t""yes" 1>&6 | |
11624 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11625 | cat >> confdefs.h <<EOF | |
11626 | #define $ac_tr_func 1 | |
11627 | EOF | |
11628 | ||
11629 | cat >> confdefs.h <<\EOF | |
11630 | #define HAVE_DLOPEN 1 | |
11631 | EOF | |
11632 | ||
11633 | HAVE_DL_FUNCS=1 | |
11634 | ||
11635 | else | |
11636 | echo "$ac_t""no" 1>&6 | |
11637 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
69ffe1d2 | 11638 | echo "configure:11639: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
11639 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
11640 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11642 | else | |
11643 | ac_save_LIBS="$LIBS" | |
11644 | LIBS="-ldl $LIBS" | |
11645 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11646 | #line 11647 "configure" |
10f2d63a VZ |
11647 | #include "confdefs.h" |
11648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11649 | /* We use char because int might match the return type of a gcc2 | |
11650 | builtin and then its argument prototype would still apply. */ | |
11651 | char dlopen(); | |
11652 | ||
11653 | int main() { | |
11654 | dlopen() | |
11655 | ; return 0; } | |
11656 | EOF | |
69ffe1d2 | 11657 | if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11658 | rm -rf conftest* |
11659 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11660 | else | |
11661 | echo "configure: failed program was:" >&5 | |
11662 | cat conftest.$ac_ext >&5 | |
11663 | rm -rf conftest* | |
11664 | eval "ac_cv_lib_$ac_lib_var=no" | |
11665 | fi | |
11666 | rm -f conftest* | |
11667 | LIBS="$ac_save_LIBS" | |
11668 | ||
11669 | fi | |
11670 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11671 | echo "$ac_t""yes" 1>&6 | |
11672 | ||
11673 | cat >> confdefs.h <<\EOF | |
11674 | #define HAVE_DLOPEN 1 | |
11675 | EOF | |
11676 | ||
11677 | HAVE_DL_FUNCS=1 | |
11678 | LIBS="$LIBS -ldl" | |
11679 | ||
11680 | else | |
11681 | echo "$ac_t""no" 1>&6 | |
11682 | ||
11683 | for ac_func in shl_load | |
11684 | do | |
11685 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
69ffe1d2 | 11686 | echo "configure:11687: checking for $ac_func" >&5 |
10f2d63a VZ |
11687 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11689 | else | |
11690 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11691 | #line 11692 "configure" |
10f2d63a VZ |
11692 | #include "confdefs.h" |
11693 | /* System header to define __stub macros and hopefully few prototypes, | |
11694 | which can conflict with char $ac_func(); below. */ | |
11695 | #include <assert.h> | |
11696 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11697 | /* We use char because int might match the return type of a gcc2 | |
11698 | builtin and then its argument prototype would still apply. */ | |
11699 | char $ac_func(); | |
69ffe1d2 | 11700 | char (*f)(); |
10f2d63a VZ |
11701 | |
11702 | int main() { | |
11703 | ||
11704 | /* The GNU C library defines this for functions which it implements | |
11705 | to always fail with ENOSYS. Some functions are actually named | |
11706 | something starting with __ and the normal name is an alias. */ | |
11707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11708 | choke me | |
11709 | #else | |
69ffe1d2 | 11710 | f = $ac_func; |
10f2d63a VZ |
11711 | #endif |
11712 | ||
11713 | ; return 0; } | |
11714 | EOF | |
69ffe1d2 | 11715 | if { (eval echo configure:11716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11716 | rm -rf conftest* |
11717 | eval "ac_cv_func_$ac_func=yes" | |
11718 | else | |
11719 | echo "configure: failed program was:" >&5 | |
11720 | cat conftest.$ac_ext >&5 | |
11721 | rm -rf conftest* | |
11722 | eval "ac_cv_func_$ac_func=no" | |
11723 | fi | |
11724 | rm -f conftest* | |
11725 | fi | |
11726 | ||
11727 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11728 | echo "$ac_t""yes" 1>&6 | |
11729 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11730 | cat >> confdefs.h <<EOF | |
11731 | #define $ac_tr_func 1 | |
11732 | EOF | |
11733 | ||
11734 | cat >> confdefs.h <<\EOF | |
11735 | #define HAVE_SHL_LOAD 1 | |
11736 | EOF | |
11737 | ||
11738 | HAVE_SHL_FUNCS=1 | |
11739 | ||
11740 | else | |
11741 | echo "$ac_t""no" 1>&6 | |
11742 | fi | |
11743 | done | |
11744 | ||
11745 | ||
11746 | fi | |
11747 | ||
11748 | ||
11749 | fi | |
11750 | done | |
11751 | ||
11752 | ||
11753 | if test "$HAVE_DL_FUNCS" = 0; then | |
11754 | if test "$HAVE_SHL_FUNCS" = 0; then | |
11755 | if test "$USE_UNIX" = 1; then | |
11756 | echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2 | |
11757 | wxUSE_ODBC=no | |
11758 | wxUSE_DYNLIB_CLASS=no | |
11759 | else | |
11760 | echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2 | |
11761 | fi | |
11762 | fi | |
11763 | fi | |
11764 | fi | |
11765 | ||
11766 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
11767 | cat >> confdefs.h <<\EOF | |
11768 | #define wxUSE_DYNLIB_CLASS 1 | |
11769 | EOF | |
11770 | ||
11771 | fi | |
11772 | ||
11773 | ||
11774 | if test "$wxUSE_UNICODE" = "yes" ; then | |
11775 | cat >> confdefs.h <<\EOF | |
11776 | #define wxUSE_UNICODE 1 | |
11777 | EOF | |
11778 | ||
11779 | fi | |
11780 | ||
11781 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
11782 | cat >> confdefs.h <<\EOF | |
11783 | #define wxUSE_WCSRTOMBS 1 | |
11784 | EOF | |
11785 | ||
11786 | fi | |
11787 | ||
11788 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
11789 | cat >> confdefs.h <<\EOF | |
11790 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
11791 | EOF | |
11792 | ||
11793 | fi | |
11794 | ||
11795 | ||
11796 | IODBC_C_SRC="" | |
11797 | if test "$wxUSE_ODBC" = "yes" ; then | |
11798 | cat >> confdefs.h <<\EOF | |
11799 | #define wxUSE_ODBC 1 | |
11800 | EOF | |
11801 | ||
11802 | WXODBCFLAG="-D_IODBC_" | |
11803 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
11804 | IODBCOBJS="\$(IODBC_OBJS)" | |
11805 | else | |
11806 | IODBCOBJS= | |
11807 | fi | |
11808 | ||
11809 | ||
11810 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
11811 | cat >> confdefs.h <<\EOF | |
11812 | #define wxUSE_POSTSCRIPT 1 | |
11813 | EOF | |
11814 | ||
11815 | fi | |
11816 | ||
11817 | cat >> confdefs.h <<\EOF | |
11818 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
11819 | EOF | |
11820 | ||
11821 | ||
11822 | cat >> confdefs.h <<\EOF | |
11823 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
11824 | EOF | |
11825 | ||
11826 | ||
11827 | ||
11828 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
11829 | cat >> confdefs.h <<\EOF | |
11830 | #define wxUSE_CONSTRAINTS 1 | |
11831 | EOF | |
11832 | ||
11833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
11834 | fi | |
11835 | ||
11836 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
11837 | cat >> confdefs.h <<\EOF | |
11838 | #define wxUSE_MDI_ARCHITECTURE 1 | |
11839 | EOF | |
11840 | ||
11841 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
11842 | fi | |
11843 | ||
11844 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
11845 | cat >> confdefs.h <<\EOF | |
11846 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
11847 | EOF | |
11848 | ||
11849 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
11850 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
11851 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
11852 | fi | |
11853 | fi | |
11854 | ||
11855 | if test "$wxUSE_HELP" = "yes"; then | |
11856 | cat >> confdefs.h <<\EOF | |
11857 | #define wxUSE_HELP 1 | |
11858 | EOF | |
11859 | ||
11860 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
11861 | fi | |
11862 | ||
11863 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
11864 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11865 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
11866 | else | |
11867 | cat >> confdefs.h <<\EOF | |
11868 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
11869 | EOF | |
11870 | ||
11871 | fi | |
11872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
11873 | fi | |
11874 | ||
11875 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
11876 | cat >> confdefs.h <<\EOF | |
11877 | #define wxUSE_PROLOGIO 1 | |
11878 | EOF | |
11879 | ||
11880 | fi | |
11881 | ||
11882 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
11883 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
11884 | cat >> confdefs.h <<\EOF | |
11885 | #define wxUSE_RESOURCES 1 | |
11886 | EOF | |
11887 | ||
11888 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
11889 | else | |
11890 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
11891 | fi | |
11892 | fi | |
11893 | ||
11894 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
11895 | cat >> confdefs.h <<\EOF | |
11896 | #define wxUSE_X_RESOURCES 1 | |
11897 | EOF | |
11898 | ||
11899 | fi | |
11900 | ||
11901 | ||
11902 | if test "$wxUSE_IPC" = "yes"; then | |
11903 | cat >> confdefs.h <<\EOF | |
11904 | #define wxUSE_IPC 1 | |
11905 | EOF | |
11906 | ||
11907 | fi | |
11908 | ||
11909 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
11910 | cat >> confdefs.h <<\EOF | |
11911 | #define wxUSE_CLIPBOARD 1 | |
11912 | EOF | |
11913 | ||
11914 | fi | |
11915 | ||
11916 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
11917 | if test "$wxUSE_GTK" = 1; then | |
11918 | if test "$WXGTK12" != 1; then | |
11919 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
11920 | wxUSE_DRAG_AND_DROP=no | |
11921 | fi | |
11922 | fi | |
11923 | ||
11924 | if test "$wxUSE_MOTIF" = 1; then | |
11925 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
11926 | wxUSE_DRAG_AND_DROP=no | |
11927 | fi | |
11928 | ||
11929 | if test "$USE_WIN32" = 1; then | |
11930 | for ac_hdr in ole2.h | |
11931 | do | |
11932 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11933 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
69ffe1d2 | 11934 | echo "configure:11935: checking for $ac_hdr" >&5 |
10f2d63a VZ |
11935 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11937 | else | |
11938 | cat > conftest.$ac_ext <<EOF | |
69ffe1d2 | 11939 | #line 11940 "configure" |
10f2d63a VZ |
11940 | #include "confdefs.h" |
11941 | #include <$ac_hdr> | |
11942 | EOF | |
11943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
69ffe1d2 | 11944 | { (eval echo configure:11945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11946 | if test -z "$ac_err"; then | |
11947 | rm -rf conftest* | |
11948 | eval "ac_cv_header_$ac_safe=yes" | |
11949 | else | |
11950 | echo "$ac_err" >&5 | |
11951 | echo "configure: failed program was:" >&5 | |
11952 | cat conftest.$ac_ext >&5 | |
11953 | rm -rf conftest* | |
11954 | eval "ac_cv_header_$ac_safe=no" | |
11955 | fi | |
11956 | rm -f conftest* | |
11957 | fi | |
11958 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11959 | echo "$ac_t""yes" 1>&6 | |
11960 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11961 | cat >> confdefs.h <<EOF | |
11962 | #define $ac_tr_hdr 1 | |
11963 | EOF | |
11964 | ||
11965 | else | |
11966 | echo "$ac_t""no" 1>&6 | |
11967 | fi | |
11968 | done | |
11969 | ||
11970 | if test "x$HAVE_OLE2_H" = x ; then | |
11971 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
11972 | wxUSE_DRAG_AND_DROP=no | |
11973 | fi | |
11974 | fi | |
11975 | ||
11976 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
11977 | cat >> confdefs.h <<\EOF | |
11978 | #define wxUSE_DRAG_AND_DROP 1 | |
11979 | EOF | |
11980 | ||
11981 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
11982 | fi | |
11983 | ||
11984 | fi | |
11985 | ||
11986 | if test "$wxUSE_SPLINES" = "yes" ; then | |
11987 | cat >> confdefs.h <<\EOF | |
11988 | #define wxUSE_SPLINES 1 | |
11989 | EOF | |
11990 | ||
11991 | fi | |
11992 | ||
11993 | ||
11994 | if test "$wxUSE_ACCEL" = "yes"; then | |
11995 | cat >> confdefs.h <<\EOF | |
11996 | #define wxUSE_ACCEL 1 | |
11997 | EOF | |
11998 | ||
11999 | fi | |
12000 | ||
12001 | if test "$wxUSE_CARET" = "yes"; then | |
12002 | cat >> confdefs.h <<\EOF | |
12003 | #define wxUSE_CARET 1 | |
12004 | EOF | |
12005 | ||
12006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
12007 | fi | |
12008 | ||
12009 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
12010 | cat >> confdefs.h <<\EOF | |
12011 | #define wxUSE_COMBOBOX 1 | |
12012 | EOF | |
12013 | ||
12014 | fi | |
12015 | ||
12016 | if test "$wxUSE_CHOICE" = "yes"; then | |
12017 | cat >> confdefs.h <<\EOF | |
12018 | #define wxUSE_CHOICE 1 | |
12019 | EOF | |
12020 | ||
12021 | fi | |
12022 | ||
12023 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
12024 | cat >> confdefs.h <<\EOF | |
12025 | #define wxUSE_BMPBUTTON 1 | |
12026 | EOF | |
12027 | ||
12028 | fi | |
12029 | ||
12030 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
12031 | cat >> confdefs.h <<\EOF | |
12032 | #define wxUSE_CHECKBOX 1 | |
12033 | EOF | |
12034 | ||
12035 | fi | |
12036 | ||
12037 | if test "$wxUSE_CHECKLST" = "yes"; then | |
12038 | cat >> confdefs.h <<\EOF | |
12039 | #define wxUSE_CHECKLISTBOX 1 | |
12040 | EOF | |
12041 | ||
12042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
12043 | fi | |
12044 | ||
12045 | if test "$wxUSE_GAUGE" = "yes"; then | |
12046 | cat >> confdefs.h <<\EOF | |
12047 | #define wxUSE_GAUGE 1 | |
12048 | EOF | |
12049 | ||
12050 | fi | |
12051 | ||
12052 | if test "$wxUSE_GRID" = "yes"; then | |
12053 | cat >> confdefs.h <<\EOF | |
12054 | #define wxUSE_GRID 1 | |
12055 | EOF | |
12056 | ||
12057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
12058 | fi | |
12059 | ||
12060 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
12061 | cat >> confdefs.h <<\EOF | |
12062 | #define wxUSE_NEW_GRID 1 | |
12063 | EOF | |
12064 | ||
12065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
12066 | fi | |
12067 | ||
12068 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12069 | cat >> confdefs.h <<\EOF | |
12070 | #define wxUSE_IMAGLIST 1 | |
12071 | EOF | |
12072 | ||
12073 | fi | |
12074 | ||
12075 | if test "$wxUSE_LISTBOX" = "yes"; then | |
12076 | cat >> confdefs.h <<\EOF | |
12077 | #define wxUSE_LISTBOX 1 | |
12078 | EOF | |
12079 | ||
12080 | fi | |
12081 | ||
12082 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
12083 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12084 | cat >> confdefs.h <<\EOF | |
12085 | #define wxUSE_LISTCTRL 1 | |
12086 | EOF | |
12087 | ||
12088 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
12089 | else | |
12090 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12091 | fi | |
12092 | fi | |
12093 | ||
12094 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
12095 | cat >> confdefs.h <<\EOF | |
12096 | #define wxUSE_NOTEBOOK 1 | |
12097 | EOF | |
12098 | ||
12099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
12100 | fi | |
12101 | ||
12102 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
12103 | cat >> confdefs.h <<\EOF | |
12104 | #define wxUSE_RADIOBOX 1 | |
12105 | EOF | |
12106 | ||
12107 | fi | |
12108 | ||
12109 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
12110 | cat >> confdefs.h <<\EOF | |
12111 | #define wxUSE_RADIOBTN 1 | |
12112 | EOF | |
12113 | ||
12114 | fi | |
12115 | ||
12116 | if test "$wxUSE_SASH" = "yes"; then | |
12117 | cat >> confdefs.h <<\EOF | |
12118 | #define wxUSE_SASH 1 | |
12119 | EOF | |
12120 | ||
12121 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
12122 | fi | |
12123 | ||
12124 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
12125 | cat >> confdefs.h <<\EOF | |
12126 | #define wxUSE_SCROLLBAR 1 | |
12127 | EOF | |
12128 | ||
741a9306 | 12129 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
12130 | fi |
12131 | ||
12132 | if test "$wxUSE_SLIDER" = "yes"; then | |
12133 | cat >> confdefs.h <<\EOF | |
12134 | #define wxUSE_SLIDER 1 | |
12135 | EOF | |
12136 | ||
12137 | fi | |
12138 | ||
12139 | if test "$wxUSE_SPINBTN" = "yes"; then | |
12140 | cat >> confdefs.h <<\EOF | |
12141 | #define wxUSE_SPINBTN 1 | |
12142 | EOF | |
12143 | ||
12144 | fi | |
12145 | ||
12146 | if test "$wxUSE_SPLITTER" = "yes"; then | |
12147 | cat >> confdefs.h <<\EOF | |
12148 | #define wxUSE_SPLITTER 1 | |
12149 | EOF | |
12150 | ||
12151 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
12152 | fi | |
12153 | ||
12154 | if test "$wxUSE_STATBMP" = "yes"; then | |
12155 | cat >> confdefs.h <<\EOF | |
12156 | #define wxUSE_STATBMP 1 | |
12157 | EOF | |
12158 | ||
12159 | fi | |
12160 | ||
12161 | if test "$wxUSE_STATBOX" = "yes"; then | |
12162 | cat >> confdefs.h <<\EOF | |
12163 | #define wxUSE_STATBOX 1 | |
12164 | EOF | |
12165 | ||
12166 | fi | |
12167 | ||
12168 | if test "$wxUSE_STATLINE" = "yes"; then | |
12169 | if test "$wxUSE_WINE" = 1 ; then | |
12170 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
12171 | else | |
12172 | cat >> confdefs.h <<\EOF | |
12173 | #define wxUSE_STATLINE 1 | |
12174 | EOF | |
12175 | ||
12176 | fi | |
12177 | fi | |
12178 | ||
12179 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
12180 | cat >> confdefs.h <<\EOF | |
12181 | #define wxUSE_STATUSBAR 1 | |
12182 | EOF | |
12183 | ||
12184 | fi | |
12185 | ||
12186 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
12187 | cat >> confdefs.h <<\EOF | |
12188 | #define wxUSE_TAB_DIALOG 1 | |
12189 | EOF | |
12190 | ||
12191 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
12192 | fi | |
12193 | ||
12194 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
12195 | cat >> confdefs.h <<\EOF | |
12196 | #define wxUSE_TOOLBAR 1 | |
12197 | EOF | |
12198 | ||
12199 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
12200 | fi | |
12201 | ||
12202 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
12203 | if test "$wxUSE_MOTIF" = 1; then | |
12204 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
12205 | else | |
12206 | if test "$wxUSE_WINE" = 1; then | |
12207 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
12208 | else | |
12209 | cat >> confdefs.h <<\EOF | |
12210 | #define wxUSE_TOOLTIPS 1 | |
12211 | EOF | |
12212 | ||
12213 | fi | |
12214 | fi | |
12215 | fi | |
12216 | ||
12217 | if test "$wxUSE_TREECTRL" = "yes"; then | |
12218 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12219 | cat >> confdefs.h <<\EOF | |
12220 | #define wxUSE_TREECTRL 1 | |
12221 | EOF | |
12222 | ||
12223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
12224 | else | |
12225 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12226 | fi | |
12227 | fi | |
12228 | ||
12229 | ||
12230 | ||
12231 | if test "$wxUSE_METAFILE" = "yes"; then | |
12232 | cat >> confdefs.h <<\EOF | |
12233 | #define wxUSE_METAFILE 1 | |
12234 | EOF | |
12235 | ||
12236 | fi | |
12237 | ||
12238 | if test "$wxUSE_DIRDLG" = "yes"; then | |
12239 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12240 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
12241 | else | |
12242 | if test "$wxUSE_TREECTRL" != "yes"; then | |
12243 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
12244 | else | |
12245 | cat >> confdefs.h <<\EOF | |
12246 | #define wxUSE_DIRDLG 1 | |
12247 | EOF | |
12248 | ||
12249 | fi | |
12250 | fi | |
12251 | fi | |
12252 | ||
12253 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
12254 | cat >> confdefs.h <<\EOF | |
12255 | #define wxUSE_TEXTDLG 1 | |
12256 | EOF | |
12257 | ||
12258 | fi | |
12259 | ||
12260 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
12261 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12262 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
12263 | else | |
12264 | cat >> confdefs.h <<\EOF | |
12265 | #define wxUSE_STARTUP_TIPS 1 | |
12266 | EOF | |
12267 | ||
12268 | fi | |
12269 | fi | |
12270 | ||
12271 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
12272 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12273 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
12274 | else | |
12275 | cat >> confdefs.h <<\EOF | |
12276 | #define wxUSE_PROGRESSDLG 1 | |
12277 | EOF | |
12278 | ||
12279 | fi | |
12280 | fi | |
12281 | ||
12282 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
12283 | cat >> confdefs.h <<\EOF | |
12284 | #define wxUSE_MINIFRAME 1 | |
12285 | EOF | |
12286 | ||
12287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
12288 | fi | |
12289 | ||
12290 | if test "$wxUSE_HTML" = "yes"; then | |
12291 | cat >> confdefs.h <<\EOF | |
12292 | #define wxUSE_HTML 1 | |
12293 | EOF | |
12294 | ||
12295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
12296 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
12297 | fi | |
12298 | ||
12299 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
12300 | cat >> confdefs.h <<\EOF | |
12301 | #define wxUSE_VALIDATORS 1 | |
12302 | EOF | |
12303 | ||
12304 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
12305 | fi | |
12306 | ||
12307 | if test "$wxUSE_GIF" = "yes" ; then | |
12308 | cat >> confdefs.h <<\EOF | |
12309 | #define wxUSE_GIF 1 | |
12310 | EOF | |
12311 | ||
12312 | fi | |
12313 | ||
12314 | if test "$wxUSE_PCX" = "yes" ; then | |
12315 | cat >> confdefs.h <<\EOF | |
12316 | #define wxUSE_PCX 1 | |
12317 | EOF | |
12318 | ||
12319 | fi | |
12320 | ||
12321 | if test "$wxUSE_PNM" = "yes" ; then | |
12322 | cat >> confdefs.h <<\EOF | |
12323 | #define wxUSE_PNM 1 | |
12324 | EOF | |
12325 | ||
12326 | fi | |
12327 | ||
12328 | ||
12329 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" | |
12330 | ||
c63c7106 | 12331 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" |
10f2d63a VZ |
12332 | if test "$wxUSE_GUI" = "yes"; then |
12333 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
12334 | fi | |
12335 | ||
12336 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
12337 | ||
12338 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE" | |
12339 | ||
12340 | if test "$GXX" = yes ; then | |
12341 | CXXWARNINGS="-Wall" | |
12342 | fi | |
12343 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
12344 | ||
12345 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'` | |
12346 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
12347 | ||
12348 | if test "$wxUSE_GUI" = "yes"; then | |
12349 | ||
12350 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
741a9306 | 12351 | font forty fractal image minimal richedit wxpoem" |
10f2d63a VZ |
12352 | else |
12353 | SAMPLES_SUBDIRS="" | |
12354 | fi | |
12355 | ||
12356 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
12357 | ||
12358 | ||
12359 | ||
12360 | ||
12361 | ||
12362 | ||
12363 | ||
12364 | ||
12365 | ||
12366 | ||
12367 | ||
12368 | ||
12369 | ||
12370 | ||
12371 | ||
12372 | ||
12373 | ||
12374 | ||
12375 | ||
12376 | ||
12377 | ||
12378 | ||
12379 | ||
12380 | ||
12381 | ||
12382 | ||
12383 | ||
12384 | ||
12385 | ||
12386 | ||
12387 | ||
12388 | ||
12389 | ||
12390 | ||
12391 | ||
12392 | ||
12393 | ||
12394 | ||
12395 | ||
12396 | ||
12397 | ||
12398 | ||
12399 | ||
12400 | ||
12401 | ||
12402 | ||
12403 | ||
12404 | ||
12405 | ||
12406 | ||
12407 | ||
12408 | ||
12409 | ||
12410 | ||
12411 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
69ffe1d2 | 12412 | echo "configure:12413: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
12413 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
12414 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
12415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12416 | else | |
12417 | cat > conftestmake <<\EOF | |
12418 | all: | |
12419 | @echo 'ac_maketemp="${MAKE}"' | |
12420 | EOF | |
12421 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12422 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
12423 | if test -n "$ac_maketemp"; then | |
12424 | eval ac_cv_prog_make_${ac_make}_set=yes | |
12425 | else | |
12426 | eval ac_cv_prog_make_${ac_make}_set=no | |
12427 | fi | |
12428 | rm -f conftestmake | |
12429 | fi | |
12430 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
12431 | echo "$ac_t""yes" 1>&6 | |
12432 | SET_MAKE= | |
12433 | else | |
12434 | echo "$ac_t""no" 1>&6 | |
12435 | SET_MAKE="MAKE=${MAKE-make}" | |
12436 | fi | |
12437 | ||
12438 | ||
12439 | ||
12440 | ||
12441 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
12442 | GL_TOOLKIT_DIR="win" | |
12443 | else | |
12444 | GL_TOOLKIT_DIR="${TOOLKIT_DIR}" | |
12445 | fi | |
12446 | ||
12447 | ||
12448 | trap '' 1 2 15 | |
12449 | cat > confcache <<\EOF | |
12450 | # This file is a shell script that caches the results of configure | |
12451 | # tests run on this system so they can be shared between configure | |
12452 | # scripts and configure runs. It is not useful on other systems. | |
12453 | # If it contains results you don't want to keep, you may remove or edit it. | |
12454 | # | |
12455 | # By default, configure uses ./config.cache as the cache file, | |
12456 | # creating it if it does not exist already. You can give configure | |
12457 | # the --cache-file=FILE option to use a different cache file; that is | |
12458 | # what configure does when it calls configure scripts in | |
12459 | # subdirectories, so they share the cache. | |
12460 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
12461 | # config.status only pays attention to the cache file if you give it the | |
12462 | # --recheck option to rerun configure. | |
12463 | # | |
12464 | EOF | |
12465 | # The following way of writing the cache mishandles newlines in values, | |
12466 | # but we know of no workaround that is simple, portable, and efficient. | |
12467 | # So, don't put newlines in cache variables' values. | |
12468 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12469 | # and sets the high bit in the cache file unless we assign to the vars. | |
12470 | (set) 2>&1 | | |
12471 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12472 | *ac_space=\ *) | |
12473 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
12474 | # turns \\\\ into \\, and sed turns \\ into \). | |
12475 | sed -n \ | |
12476 | -e "s/'/'\\\\''/g" \ | |
12477 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
12478 | ;; | |
12479 | *) | |
12480 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12481 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
12482 | ;; | |
12483 | esac >> confcache | |
12484 | if cmp -s $cache_file confcache; then | |
12485 | : | |
12486 | else | |
12487 | if test -w $cache_file; then | |
12488 | echo "updating cache $cache_file" | |
12489 | cat confcache > $cache_file | |
12490 | else | |
12491 | echo "not updating unwritable cache $cache_file" | |
12492 | fi | |
12493 | fi | |
12494 | rm -f confcache | |
12495 | ||
12496 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
12497 | ||
12498 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12499 | # Let make expand exec_prefix. | |
12500 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12501 | ||
12502 | # Any assignment to VPATH causes Sun make to only execute | |
12503 | # the first set of double-colon rules, so remove it if not needed. | |
12504 | # If there is a colon in the path, we need to keep it. | |
12505 | if test "x$srcdir" = x.; then | |
12506 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
12507 | fi | |
12508 | ||
12509 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
12510 | ||
12511 | DEFS=-DHAVE_CONFIG_H | |
12512 | ||
12513 | # Without the "./", some shells look in PATH for config.status. | |
12514 | : ${CONFIG_STATUS=./config.status} | |
12515 | ||
12516 | echo creating $CONFIG_STATUS | |
12517 | rm -f $CONFIG_STATUS | |
12518 | cat > $CONFIG_STATUS <<EOF | |
12519 | #! /bin/sh | |
12520 | # Generated automatically by configure. | |
12521 | # Run this file to recreate the current configuration. | |
12522 | # This directory was configured as follows, | |
12523 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12524 | # | |
12525 | # $0 $ac_configure_args | |
12526 | # | |
12527 | # Compiler output produced by configure, useful for debugging | |
12528 | # configure, is in ./config.log if it exists. | |
12529 | ||
12530 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
12531 | for ac_option | |
12532 | do | |
12533 | case "\$ac_option" in | |
12534 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12535 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
12536 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
12537 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
69ffe1d2 | 12538 | echo "$CONFIG_STATUS generated by autoconf version 2.14" |
10f2d63a VZ |
12539 | exit 0 ;; |
12540 | -help | --help | --hel | --he | --h) | |
12541 | echo "\$ac_cs_usage"; exit 0 ;; | |
12542 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
12543 | esac | |
12544 | done | |
12545 | ||
12546 | ac_given_srcdir=$srcdir | |
12547 | ac_given_INSTALL="$INSTALL" | |
12548 | ||
12549 | trap 'rm -fr `echo " | |
12550 | wx-config | |
12551 | src/make.env | |
12552 | src/makeprog.env | |
12553 | src/makelib.env | |
12554 | Makefile | |
12555 | samples/Makefile | |
12556 | samples/bombs/Makefile | |
12557 | samples/caret/Makefile | |
12558 | samples/checklst/Makefile | |
12559 | samples/config/Makefile | |
12560 | samples/controls/Makefile | |
12561 | samples/db/Makefile | |
12562 | samples/dialogs/Makefile | |
12563 | samples/docview/Makefile | |
12564 | samples/docvwmdi/Makefile | |
12565 | samples/dnd/Makefile | |
12566 | samples/drawing/Makefile | |
12567 | samples/forty/Makefile | |
678b92a9 | 12568 | samples/font/Makefile |
10f2d63a VZ |
12569 | samples/fractal/Makefile |
12570 | samples/image/Makefile | |
12571 | samples/internat/Makefile | |
12572 | samples/layout/Makefile | |
12573 | samples/listctrl/Makefile | |
12574 | samples/mdi/Makefile | |
12575 | samples/minifram/Makefile | |
12576 | samples/minimal/Makefile | |
12577 | samples/nettest/Makefile | |
12578 | samples/newgrid/Makefile | |
12579 | samples/notebook/Makefile | |
12580 | samples/png/Makefile | |
12581 | samples/printing/Makefile | |
12582 | samples/proplist/Makefile | |
12583 | samples/richedit/Makefile | |
12584 | samples/resource/Makefile | |
12585 | samples/sashtest/Makefile | |
12586 | samples/scroll/Makefile | |
12587 | samples/scrollsub/Makefile | |
12588 | samples/splitter/Makefile | |
12589 | samples/text/Makefile | |
12590 | samples/thread/Makefile | |
12591 | samples/toolbar/Makefile | |
12592 | samples/treectrl/Makefile | |
12593 | samples/typetest/Makefile | |
12594 | samples/validate/Makefile | |
12595 | samples/wxpoem/Makefile | |
12596 | samples/wxsocket/Makefile | |
12597 | samples/wizard/Makefile | |
12598 | samples/html/Makefile | |
12599 | samples/html/about/Makefile | |
12600 | samples/html/help/Makefile | |
12601 | samples/html/printing/Makefile | |
fc9c7c09 | 12602 | samples/html/helpview/Makefile |
10f2d63a VZ |
12603 | samples/html/test/Makefile |
12604 | samples/html/zip/Makefile | |
12605 | samples/html/virtual/Makefile | |
12606 | samples/html/widget/Makefile | |
12607 | utils/Makefile | |
12608 | utils/wxMMedia2/Makefile | |
12609 | utils/wxMMedia2/lib/Makefile | |
12610 | utils/wxMMedia2/sample/Makefile | |
12611 | utils/glcanvas/Makefile | |
12612 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
12613 | utils/ogl/Makefile | |
12614 | utils/ogl/src/Makefile | |
12615 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
12616 | EOF | |
12617 | cat >> $CONFIG_STATUS <<EOF | |
12618 | ||
12619 | # Protect against being on the right side of a sed subst in config.status. | |
12620 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
12621 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
12622 | $ac_vpsub | |
12623 | $extrasub | |
12624 | s%@SHELL@%$SHELL%g | |
12625 | s%@CFLAGS@%$CFLAGS%g | |
12626 | s%@CPPFLAGS@%$CPPFLAGS%g | |
12627 | s%@CXXFLAGS@%$CXXFLAGS%g | |
12628 | s%@FFLAGS@%$FFLAGS%g | |
12629 | s%@DEFS@%$DEFS%g | |
12630 | s%@LDFLAGS@%$LDFLAGS%g | |
12631 | s%@LIBS@%$LIBS%g | |
12632 | s%@exec_prefix@%$exec_prefix%g | |
12633 | s%@prefix@%$prefix%g | |
12634 | s%@program_transform_name@%$program_transform_name%g | |
12635 | s%@bindir@%$bindir%g | |
12636 | s%@sbindir@%$sbindir%g | |
12637 | s%@libexecdir@%$libexecdir%g | |
12638 | s%@datadir@%$datadir%g | |
12639 | s%@sysconfdir@%$sysconfdir%g | |
12640 | s%@sharedstatedir@%$sharedstatedir%g | |
12641 | s%@localstatedir@%$localstatedir%g | |
12642 | s%@libdir@%$libdir%g | |
12643 | s%@includedir@%$includedir%g | |
12644 | s%@oldincludedir@%$oldincludedir%g | |
12645 | s%@infodir@%$infodir%g | |
12646 | s%@mandir@%$mandir%g | |
12647 | s%@host@%$host%g | |
12648 | s%@host_alias@%$host_alias%g | |
12649 | s%@host_cpu@%$host_cpu%g | |
12650 | s%@host_vendor@%$host_vendor%g | |
12651 | s%@host_os@%$host_os%g | |
12652 | s%@target@%$target%g | |
12653 | s%@target_alias@%$target_alias%g | |
12654 | s%@target_cpu@%$target_cpu%g | |
12655 | s%@target_vendor@%$target_vendor%g | |
12656 | s%@target_os@%$target_os%g | |
12657 | s%@build@%$build%g | |
12658 | s%@build_alias@%$build_alias%g | |
12659 | s%@build_cpu@%$build_cpu%g | |
12660 | s%@build_vendor@%$build_vendor%g | |
12661 | s%@build_os@%$build_os%g | |
12662 | s%@CC@%$CC%g | |
12663 | s%@CPP@%$CPP%g | |
12664 | s%@CXX@%$CXX%g | |
12665 | s%@CXXCPP@%$CXXCPP%g | |
12666 | s%@RANLIB@%$RANLIB%g | |
12667 | s%@AR@%$AR%g | |
12668 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
12669 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
12670 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
12671 | s%@STRIP@%$STRIP%g | |
12672 | s%@YACC@%$YACC%g | |
12673 | s%@LEX@%$LEX%g | |
12674 | s%@LEXLIB@%$LEXLIB%g | |
12675 | s%@LN_S@%$LN_S%g | |
12676 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
12677 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
12678 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
12679 | s%@X_CFLAGS@%$X_CFLAGS%g |
12680 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
12681 | s%@X_LIBS@%$X_LIBS%g | |
12682 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
10f2d63a VZ |
12683 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
12684 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
12685 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
12686 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
12687 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
12688 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
12689 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
12690 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
12691 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
12692 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
12693 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
12694 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
12695 | s%@WX_ALL@%$WX_ALL%g | |
12696 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
12697 | s%@SHARED_LD@%$SHARED_LD%g | |
12698 | s%@PIC_FLAG@%$PIC_FLAG%g | |
12699 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
12700 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
12701 | s%@TOOLKIT@%$TOOLKIT%g | |
12702 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
12703 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
12704 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
12705 | s%@GUIHEADERS@%$GUIHEADERS%g | |
12706 | s%@GUIOBJS@%$GUIOBJS%g | |
12707 | s%@COMMONOBJS@%$COMMONOBJS%g | |
12708 | s%@GENERICOBJS@%$GENERICOBJS%g | |
12709 | s%@GUIDEPS@%$GUIDEPS%g | |
12710 | s%@COMMONDEPS@%$COMMONDEPS%g | |
12711 | s%@GENERICDEPS@%$GENERICDEPS%g | |
12712 | s%@IODBCOBJS@%$IODBCOBJS%g | |
12713 | s%@UNIXOBJS@%$UNIXOBJS%g | |
12714 | s%@UNIXDEPS@%$UNIXDEPS%g | |
12715 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
12716 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
12717 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
12718 | s%@GUIDIST@%$GUIDIST%g | |
12719 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
12720 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
12721 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
12722 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
12723 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
12724 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
12725 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
12726 | s%@LD_LIBS@%$LD_LIBS%g | |
12727 | s%@SET_MAKE@%$SET_MAKE%g | |
12728 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
12729 | ||
12730 | CEOF | |
12731 | EOF | |
12732 | ||
12733 | cat >> $CONFIG_STATUS <<\EOF | |
12734 | ||
12735 | # Split the substitutions into bite-sized pieces for seds with | |
12736 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
12737 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
12738 | ac_file=1 # Number of current file. | |
12739 | ac_beg=1 # First line for current file. | |
12740 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
12741 | ac_more_lines=: | |
12742 | ac_sed_cmds="" | |
12743 | while $ac_more_lines; do | |
12744 | if test $ac_beg -gt 1; then | |
12745 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
12746 | else | |
12747 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
12748 | fi | |
12749 | if test ! -s conftest.s$ac_file; then | |
12750 | ac_more_lines=false | |
12751 | rm -f conftest.s$ac_file | |
12752 | else | |
12753 | if test -z "$ac_sed_cmds"; then | |
12754 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
12755 | else | |
12756 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
12757 | fi | |
12758 | ac_file=`expr $ac_file + 1` | |
12759 | ac_beg=$ac_end | |
12760 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
12761 | fi | |
12762 | done | |
12763 | if test -z "$ac_sed_cmds"; then | |
12764 | ac_sed_cmds=cat | |
12765 | fi | |
12766 | EOF | |
12767 | ||
12768 | cat >> $CONFIG_STATUS <<EOF | |
12769 | ||
12770 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
12771 | src/make.env | |
12772 | src/makeprog.env | |
12773 | src/makelib.env | |
12774 | Makefile | |
12775 | samples/Makefile | |
12776 | samples/bombs/Makefile | |
12777 | samples/caret/Makefile | |
12778 | samples/checklst/Makefile | |
12779 | samples/config/Makefile | |
12780 | samples/controls/Makefile | |
12781 | samples/db/Makefile | |
12782 | samples/dialogs/Makefile | |
12783 | samples/docview/Makefile | |
12784 | samples/docvwmdi/Makefile | |
12785 | samples/dnd/Makefile | |
12786 | samples/drawing/Makefile | |
12787 | samples/forty/Makefile | |
678b92a9 | 12788 | samples/font/Makefile |
10f2d63a VZ |
12789 | samples/fractal/Makefile |
12790 | samples/image/Makefile | |
12791 | samples/internat/Makefile | |
12792 | samples/layout/Makefile | |
12793 | samples/listctrl/Makefile | |
12794 | samples/mdi/Makefile | |
12795 | samples/minifram/Makefile | |
12796 | samples/minimal/Makefile | |
12797 | samples/nettest/Makefile | |
12798 | samples/newgrid/Makefile | |
12799 | samples/notebook/Makefile | |
12800 | samples/png/Makefile | |
12801 | samples/printing/Makefile | |
12802 | samples/proplist/Makefile | |
12803 | samples/richedit/Makefile | |
12804 | samples/resource/Makefile | |
12805 | samples/sashtest/Makefile | |
12806 | samples/scroll/Makefile | |
12807 | samples/scrollsub/Makefile | |
12808 | samples/splitter/Makefile | |
12809 | samples/text/Makefile | |
12810 | samples/thread/Makefile | |
12811 | samples/toolbar/Makefile | |
12812 | samples/treectrl/Makefile | |
12813 | samples/typetest/Makefile | |
12814 | samples/validate/Makefile | |
12815 | samples/wxpoem/Makefile | |
12816 | samples/wxsocket/Makefile | |
12817 | samples/wizard/Makefile | |
12818 | samples/html/Makefile | |
12819 | samples/html/about/Makefile | |
12820 | samples/html/help/Makefile | |
12821 | samples/html/printing/Makefile | |
fc9c7c09 | 12822 | samples/html/helpview/Makefile |
10f2d63a VZ |
12823 | samples/html/test/Makefile |
12824 | samples/html/zip/Makefile | |
12825 | samples/html/virtual/Makefile | |
12826 | samples/html/widget/Makefile | |
12827 | utils/Makefile | |
12828 | utils/wxMMedia2/Makefile | |
12829 | utils/wxMMedia2/lib/Makefile | |
12830 | utils/wxMMedia2/sample/Makefile | |
12831 | utils/glcanvas/Makefile | |
12832 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
12833 | utils/ogl/Makefile | |
12834 | utils/ogl/src/Makefile | |
12835 | "} | |
12836 | EOF | |
12837 | cat >> $CONFIG_STATUS <<\EOF | |
12838 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
12839 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12840 | case "$ac_file" in | |
12841 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
12842 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
12843 | *) ac_file_in="${ac_file}.in" ;; | |
12844 | esac | |
12845 | ||
12846 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
12847 | ||
12848 | # Remove last slash and all that follows it. Not all systems have dirname. | |
12849 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
12850 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
12851 | # The file is in a subdirectory. | |
12852 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
12853 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
12854 | # A "../" for each directory in $ac_dir_suffix. | |
12855 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
12856 | else | |
12857 | ac_dir_suffix= ac_dots= | |
12858 | fi | |
12859 | ||
12860 | case "$ac_given_srcdir" in | |
12861 | .) srcdir=. | |
12862 | if test -z "$ac_dots"; then top_srcdir=. | |
12863 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
12864 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
12865 | *) # Relative path. | |
12866 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
12867 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
12868 | esac | |
12869 | ||
12870 | case "$ac_given_INSTALL" in | |
12871 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
12872 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
12873 | esac | |
12874 | ||
12875 | echo creating "$ac_file" | |
12876 | rm -f "$ac_file" | |
12877 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
12878 | case "$ac_file" in | |
12879 | *Makefile*) ac_comsub="1i\\ | |
12880 | # $configure_input" ;; | |
12881 | *) ac_comsub= ;; | |
12882 | esac | |
12883 | ||
12884 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
12885 | sed -e "$ac_comsub | |
12886 | s%@configure_input@%$configure_input%g | |
12887 | s%@srcdir@%$srcdir%g | |
12888 | s%@top_srcdir@%$top_srcdir%g | |
12889 | s%@INSTALL@%$INSTALL%g | |
12890 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
12891 | fi; done | |
12892 | rm -f conftest.s* | |
12893 | ||
12894 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12895 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12896 | # | |
12897 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12898 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12899 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
12900 | ac_dC='\3' | |
12901 | ac_dD='%g' | |
12902 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
12903 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12904 | ac_uB='\([ ]\)%\1#\2define\3' | |
12905 | ac_uC=' ' | |
12906 | ac_uD='\4%g' | |
12907 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12908 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12909 | ac_eB='$%\1#\2define\3' | |
12910 | ac_eC=' ' | |
12911 | ac_eD='%g' | |
12912 | ||
12913 | if test "${CONFIG_HEADERS+set}" != set; then | |
12914 | EOF | |
12915 | cat >> $CONFIG_STATUS <<EOF | |
12916 | CONFIG_HEADERS="setup.h:setup.h.in" | |
12917 | EOF | |
12918 | cat >> $CONFIG_STATUS <<\EOF | |
12919 | fi | |
12920 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
12921 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12922 | case "$ac_file" in | |
12923 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
12924 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
12925 | *) ac_file_in="${ac_file}.in" ;; | |
12926 | esac | |
12927 | ||
12928 | echo creating $ac_file | |
12929 | ||
12930 | rm -f conftest.frag conftest.in conftest.out | |
12931 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
12932 | cat $ac_file_inputs > conftest.in | |
12933 | ||
12934 | EOF | |
12935 | ||
12936 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
12937 | # the proper values into config.h.in to produce config.h. And first: | |
12938 | # Protect against being on the right side of a sed subst in config.status. | |
12939 | # Protect against being in an unquoted here document in config.status. | |
12940 | rm -f conftest.vals | |
12941 | cat > conftest.hdr <<\EOF | |
12942 | s/[\\&%]/\\&/g | |
12943 | s%[\\$`]%\\&%g | |
12944 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
12945 | s%ac_d%ac_u%gp | |
12946 | s%ac_u%ac_e%gp | |
12947 | EOF | |
12948 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
12949 | rm -f conftest.hdr | |
12950 | ||
12951 | # This sed command replaces #undef with comments. This is necessary, for | |
12952 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12953 | # on some systems where configure will not decide to define it. | |
12954 | cat >> conftest.vals <<\EOF | |
12955 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
12956 | EOF | |
12957 | ||
12958 | # Break up conftest.vals because some shells have a limit on | |
12959 | # the size of here documents, and old seds have small limits too. | |
12960 | ||
12961 | rm -f conftest.tail | |
12962 | while : | |
12963 | do | |
12964 | ac_lines=`grep -c . conftest.vals` | |
12965 | # grep -c gives empty output for an empty file on some AIX systems. | |
12966 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
12967 | # Write a limited-size here document to conftest.frag. | |
12968 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
12969 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
12970 | echo 'CEOF | |
12971 | sed -f conftest.frag conftest.in > conftest.out | |
12972 | rm -f conftest.in | |
12973 | mv conftest.out conftest.in | |
12974 | ' >> $CONFIG_STATUS | |
12975 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
12976 | rm -f conftest.vals | |
12977 | mv conftest.tail conftest.vals | |
12978 | done | |
12979 | rm -f conftest.vals | |
12980 | ||
12981 | cat >> $CONFIG_STATUS <<\EOF | |
12982 | rm -f conftest.frag conftest.h | |
12983 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
12984 | cat conftest.in >> conftest.h | |
12985 | rm -f conftest.in | |
12986 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
12987 | echo "$ac_file is unchanged" | |
12988 | rm -f conftest.h | |
12989 | else | |
12990 | # Remove last slash and all that follows it. Not all systems have dirname. | |
12991 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
12992 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
12993 | # The file is in a subdirectory. | |
12994 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
12995 | fi | |
12996 | rm -f $ac_file | |
12997 | mv conftest.h $ac_file | |
12998 | fi | |
12999 | fi; done | |
13000 | ||
13001 | EOF | |
13002 | cat >> $CONFIG_STATUS <<EOF | |
13003 | ||
13004 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
13005 | ||
13006 | ||
13007 | EOF | |
13008 | cat >> $CONFIG_STATUS <<\EOF | |
13009 | ||
13010 | chmod +x wx-config | |
13011 | if test ! -d include; then | |
13012 | mkdir include | |
13013 | fi | |
13014 | if test ! -d include/wx; then | |
13015 | mkdir include/wx | |
13016 | fi | |
13017 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
13018 | mkdir include/wx/${TOOLKIT_DIR} | |
13019 | fi | |
afc31813 VZ |
13020 | if test -f setup.h; then |
13021 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
13022 | fi | |
10f2d63a VZ |
13023 | |
13024 | exit 0 | |
13025 | EOF | |
13026 | chmod +x $CONFIG_STATUS | |
13027 | rm -fr confdefs* $ac_clean_files | |
13028 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
13029 | ||
13030 |