]>
Commit | Line | Data |
---|---|---|
10f2d63a | 1 | #! /bin/sh |
1e487827 VS |
2 | # From configure.in Id: configure.in. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by Autoconf 2.50. | |
5 | # | |
6 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
7 | # Free Software Foundation, Inc. | |
8 | # This configure script is free software; the Free Software Foundation | |
9 | # gives unlimited permission to copy, distribute and modify it. | |
10f2d63a | 10 | |
1e487827 VS |
11 | # Be Bourne compatible |
12 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
13 | emulate sh | |
14 | NULLCMD=: | |
15 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
16 | set -o posix | |
17 | fi | |
703e0a69 | 18 | |
1e487827 VS |
19 | # Name of the executable. |
20 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
703e0a69 | 21 | |
1e487827 VS |
22 | if expr a : '\(a\)' >/dev/null 2>&1; then |
23 | as_expr=expr | |
24 | else | |
25 | as_expr=false | |
26 | fi | |
703e0a69 | 27 | |
1e487827 VS |
28 | rm -f conf$$ conf$$.exe conf$$.file |
29 | echo >conf$$.file | |
30 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
31 | # We could just check for DJGPP; but this test a) works b) is more generic | |
32 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
33 | if test -f conf$$.exe; then | |
34 | # Don't use ln at all; we don't have any links | |
35 | as_ln_s='cp -p' | |
36 | else | |
37 | as_ln_s='ln -s' | |
38 | fi | |
39 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
40 | as_ln_s=ln | |
41 | else | |
42 | as_ln_s='cp -p' | |
43 | fi | |
44 | rm -f conf$$ conf$$.exe conf$$.file | |
703e0a69 | 45 | |
1e487827 | 46 | as_executable_p="test -f" |
703e0a69 | 47 | |
1e487827 VS |
48 | # Support unset when possible. |
49 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
50 | as_unset=unset | |
51 | else | |
52 | as_unset=false | |
53 | fi | |
703e0a69 | 54 | |
1e487827 VS |
55 | # NLS nuisances. |
56 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
57 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
58 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
59 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
60 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
61 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
62 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
63 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
64 | ||
65 | # IFS | |
66 | # We need space, tab and new line, in precisely that order. | |
67 | as_nl=' | |
68 | ' | |
69 | IFS=" $as_nl" | |
70 | ||
71 | # CDPATH. | |
72 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
73 | ||
74 | # Name of the host. | |
75 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
76 | # so uname gets run too. | |
77 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
78 | ||
79 | exec 6>&1 | |
703e0a69 | 80 | |
703e0a69 | 81 | # |
1e487827 VS |
82 | # Initializations. |
83 | # | |
703e0a69 | 84 | ac_default_prefix=/usr/local |
1e487827 VS |
85 | cross_compiling=no |
86 | subdirs= | |
87 | MFLAGS= MAKEFLAGS= | |
88 | SHELL=${CONFIG_SHELL-/bin/sh} | |
89 | ||
90 | # Maximum number of lines to put in a shell here document. | |
91 | # This variable seems obsolete. It should probably be removed, and | |
92 | # only ac_max_sed_lines should be used. | |
93 | : ${ac_max_here_lines=38} | |
94 | ||
95 | # Avoid depending upon Character Ranges. | |
96 | ac_cr_az='abcdefghijklmnopqrstuvwxyz' | |
97 | ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
98 | ac_cr_09='0123456789' | |
99 | ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 | |
100 | ||
101 | # Sed expression to map a string onto a valid sh and CPP variable names. | |
102 | ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" | |
103 | ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" | |
104 | ||
105 | ac_unique_file="wx-config.in" | |
106 | # Factoring default headers for most tests. | |
107 | ac_includes_default="\ | |
108 | #include <stdio.h> | |
109 | #include <sys/types.h> | |
110 | #include <sys/stat.h> | |
111 | #if STDC_HEADERS | |
112 | # include <stdlib.h> | |
113 | # include <stddef.h> | |
114 | #else | |
115 | # if HAVE_STDLIB_H | |
116 | # include <stdlib.h> | |
117 | # endif | |
118 | #endif | |
119 | #if HAVE_STRING_H | |
120 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
121 | # include <memory.h> | |
122 | # endif | |
123 | # include <string.h> | |
124 | #else | |
125 | # if HAVE_STRINGS_H | |
126 | # include <strings.h> | |
127 | # endif | |
128 | #endif | |
129 | #if HAVE_INTTYPES_H | |
130 | # include <inttypes.h> | |
131 | #endif | |
132 | #if HAVE_UNISTD_H | |
133 | # include <unistd.h> | |
134 | #endif" | |
135 | ||
136 | ac_subdirs_all="$ac_subdirs_all demos samples utils contrib" | |
10f2d63a VZ |
137 | |
138 | # Initialize some variables set by options. | |
1e487827 VS |
139 | ac_init_help= |
140 | ac_init_version=false | |
10f2d63a VZ |
141 | # The variables have the same names as the options, with |
142 | # dashes changed to underlines. | |
1e487827 | 143 | cache_file=/dev/null |
10f2d63a | 144 | exec_prefix=NONE |
10f2d63a | 145 | no_create= |
10f2d63a VZ |
146 | no_recursion= |
147 | prefix=NONE | |
148 | program_prefix=NONE | |
149 | program_suffix=NONE | |
150 | program_transform_name=s,x,x, | |
151 | silent= | |
152 | site= | |
153 | srcdir= | |
10f2d63a VZ |
154 | verbose= |
155 | x_includes=NONE | |
156 | x_libraries=NONE | |
1e487827 VS |
157 | |
158 | # Installation directory options. | |
159 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
160 | # and all the variables that are supposed to be based on exec_prefix | |
161 | # by default will actually change. | |
162 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
163 | bindir='${exec_prefix}/bin' |
164 | sbindir='${exec_prefix}/sbin' | |
165 | libexecdir='${exec_prefix}/libexec' | |
166 | datadir='${prefix}/share' | |
167 | sysconfdir='${prefix}/etc' | |
168 | sharedstatedir='${prefix}/com' | |
169 | localstatedir='${prefix}/var' | |
170 | libdir='${exec_prefix}/lib' | |
171 | includedir='${prefix}/include' | |
172 | oldincludedir='/usr/include' | |
173 | infodir='${prefix}/info' | |
174 | mandir='${prefix}/man' | |
175 | ||
1e487827 VS |
176 | # Identity of this package. |
177 | PACKAGE_NAME= | |
178 | PACKAGE_TARNAME= | |
179 | PACKAGE_VERSION= | |
180 | PACKAGE_STRING= | |
181 | PACKAGE_BUGREPORT= | |
10f2d63a VZ |
182 | |
183 | ac_prev= | |
184 | for ac_option | |
185 | do | |
10f2d63a VZ |
186 | # If the previous option needs an argument, assign it. |
187 | if test -n "$ac_prev"; then | |
188 | eval "$ac_prev=\$ac_option" | |
189 | ac_prev= | |
190 | continue | |
191 | fi | |
192 | ||
1e487827 | 193 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
194 | |
195 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
196 | ||
1e487827 | 197 | case $ac_option in |
10f2d63a VZ |
198 | |
199 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
200 | ac_prev=bindir ;; | |
201 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1e487827 | 202 | bindir=$ac_optarg ;; |
10f2d63a VZ |
203 | |
204 | -build | --build | --buil | --bui | --bu) | |
1e487827 | 205 | ac_prev=build_alias ;; |
10f2d63a | 206 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1e487827 | 207 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
208 | |
209 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
210 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
211 | ac_prev=cache_file ;; | |
212 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
213 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1e487827 VS |
214 | cache_file=$ac_optarg ;; |
215 | ||
216 | --config-cache | -C) | |
217 | cache_file=config.cache ;; | |
10f2d63a VZ |
218 | |
219 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
220 | ac_prev=datadir ;; | |
221 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
222 | | --da=*) | |
1e487827 | 223 | datadir=$ac_optarg ;; |
10f2d63a VZ |
224 | |
225 | -disable-* | --disable-*) | |
1e487827 | 226 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 227 | # Reject names that are not valid shell variable names. |
1e487827 VS |
228 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
229 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
230 | { (exit 1); exit 1; }; } | |
231 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
232 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
233 | |
234 | -enable-* | --enable-*) | |
1e487827 | 235 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 236 | # Reject names that are not valid shell variable names. |
1e487827 VS |
237 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
238 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
239 | { (exit 1); exit 1; }; } | |
240 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
241 | case $ac_option in | |
242 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
243 | *) ac_optarg=yes ;; |
244 | esac | |
1e487827 | 245 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
246 | |
247 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
248 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
249 | | --exec | --exe | --ex) | |
250 | ac_prev=exec_prefix ;; | |
251 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
252 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
253 | | --exec=* | --exe=* | --ex=*) | |
1e487827 | 254 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
255 | |
256 | -gas | --gas | --ga | --g) | |
257 | # Obsolete; use --with-gas. | |
258 | with_gas=yes ;; | |
259 | ||
1e487827 VS |
260 | -help | --help | --hel | --he | -h) |
261 | ac_init_help=long ;; | |
262 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
263 | ac_init_help=recursive ;; | |
264 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
265 | ac_init_help=short ;; | |
10f2d63a VZ |
266 | |
267 | -host | --host | --hos | --ho) | |
1e487827 | 268 | ac_prev=host_alias ;; |
10f2d63a | 269 | -host=* | --host=* | --hos=* | --ho=*) |
1e487827 | 270 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
271 | |
272 | -includedir | --includedir | --includedi | --included | --include \ | |
273 | | --includ | --inclu | --incl | --inc) | |
274 | ac_prev=includedir ;; | |
275 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
276 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1e487827 | 277 | includedir=$ac_optarg ;; |
10f2d63a VZ |
278 | |
279 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
280 | ac_prev=infodir ;; | |
281 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1e487827 | 282 | infodir=$ac_optarg ;; |
10f2d63a VZ |
283 | |
284 | -libdir | --libdir | --libdi | --libd) | |
285 | ac_prev=libdir ;; | |
286 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1e487827 | 287 | libdir=$ac_optarg ;; |
10f2d63a VZ |
288 | |
289 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
290 | | --libexe | --libex | --libe) | |
291 | ac_prev=libexecdir ;; | |
292 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
293 | | --libexe=* | --libex=* | --libe=*) | |
1e487827 | 294 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
295 | |
296 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
297 | | --localstate | --localstat | --localsta | --localst \ | |
298 | | --locals | --local | --loca | --loc | --lo) | |
299 | ac_prev=localstatedir ;; | |
300 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
301 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
302 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
1e487827 | 303 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
304 | |
305 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
306 | ac_prev=mandir ;; | |
307 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1e487827 | 308 | mandir=$ac_optarg ;; |
10f2d63a VZ |
309 | |
310 | -nfp | --nfp | --nf) | |
311 | # Obsolete; use --without-fp. | |
312 | with_fp=no ;; | |
313 | ||
314 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
315 | | --no-cr | --no-c) | |
316 | no_create=yes ;; | |
317 | ||
318 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
319 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
320 | no_recursion=yes ;; | |
321 | ||
322 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
323 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
324 | | --oldin | --oldi | --old | --ol | --o) | |
325 | ac_prev=oldincludedir ;; | |
326 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
327 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
328 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1e487827 | 329 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
330 | |
331 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
332 | ac_prev=prefix ;; | |
333 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1e487827 | 334 | prefix=$ac_optarg ;; |
10f2d63a VZ |
335 | |
336 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
337 | | --program-pre | --program-pr | --program-p) | |
338 | ac_prev=program_prefix ;; | |
339 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
340 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1e487827 | 341 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
342 | |
343 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
344 | | --program-suf | --program-su | --program-s) | |
345 | ac_prev=program_suffix ;; | |
346 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
347 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1e487827 | 348 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
349 | |
350 | -program-transform-name | --program-transform-name \ | |
351 | | --program-transform-nam | --program-transform-na \ | |
352 | | --program-transform-n | --program-transform- \ | |
353 | | --program-transform | --program-transfor \ | |
354 | | --program-transfo | --program-transf \ | |
355 | | --program-trans | --program-tran \ | |
356 | | --progr-tra | --program-tr | --program-t) | |
357 | ac_prev=program_transform_name ;; | |
358 | -program-transform-name=* | --program-transform-name=* \ | |
359 | | --program-transform-nam=* | --program-transform-na=* \ | |
360 | | --program-transform-n=* | --program-transform-=* \ | |
361 | | --program-transform=* | --program-transfor=* \ | |
362 | | --program-transfo=* | --program-transf=* \ | |
363 | | --program-trans=* | --program-tran=* \ | |
364 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1e487827 | 365 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
366 | |
367 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
368 | | -silent | --silent | --silen | --sile | --sil) | |
369 | silent=yes ;; | |
370 | ||
371 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
372 | ac_prev=sbindir ;; | |
373 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
374 | | --sbi=* | --sb=*) | |
1e487827 | 375 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
376 | |
377 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
378 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
379 | | --sharedst | --shareds | --shared | --share | --shar \ | |
380 | | --sha | --sh) | |
381 | ac_prev=sharedstatedir ;; | |
382 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
383 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
384 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
385 | | --sha=* | --sh=*) | |
1e487827 | 386 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
387 | |
388 | -site | --site | --sit) | |
389 | ac_prev=site ;; | |
390 | -site=* | --site=* | --sit=*) | |
1e487827 | 391 | site=$ac_optarg ;; |
10f2d63a VZ |
392 | |
393 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
394 | ac_prev=srcdir ;; | |
395 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1e487827 | 396 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
397 | |
398 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
399 | | --syscon | --sysco | --sysc | --sys | --sy) | |
400 | ac_prev=sysconfdir ;; | |
401 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
402 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1e487827 | 403 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
404 | |
405 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1e487827 | 406 | ac_prev=target_alias ;; |
10f2d63a | 407 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1e487827 | 408 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
409 | |
410 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
411 | verbose=yes ;; | |
412 | ||
1e487827 VS |
413 | -version | --version | --versio | --versi | --vers | -V) |
414 | ac_init_version=: ;; | |
10f2d63a VZ |
415 | |
416 | -with-* | --with-*) | |
1e487827 | 417 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 418 | # Reject names that are not valid shell variable names. |
1e487827 VS |
419 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
420 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
421 | { (exit 1); exit 1; }; } | |
10f2d63a | 422 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
1e487827 VS |
423 | case $ac_option in |
424 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
425 | *) ac_optarg=yes ;; |
426 | esac | |
1e487827 | 427 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
428 | |
429 | -without-* | --without-*) | |
1e487827 | 430 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 431 | # Reject names that are not valid shell variable names. |
1e487827 VS |
432 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
433 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
434 | { (exit 1); exit 1; }; } | |
435 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
436 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
437 | |
438 | --x) | |
439 | # Obsolete; use --with-x. | |
440 | with_x=yes ;; | |
441 | ||
442 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
443 | | --x-incl | --x-inc | --x-in | --x-i) | |
444 | ac_prev=x_includes ;; | |
445 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
446 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1e487827 | 447 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
448 | |
449 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
450 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
451 | ac_prev=x_libraries ;; | |
452 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
453 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1e487827 | 454 | x_libraries=$ac_optarg ;; |
10f2d63a | 455 | |
1e487827 VS |
456 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
457 | Try \`$0 --help' for more information." >&2 | |
458 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
459 | ;; |
460 | ||
1e487827 VS |
461 | *=*) |
462 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
463 | # Reject names that are not valid shell variable names. | |
464 | expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && | |
465 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
466 | { (exit 1); exit 1; }; } | |
467 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
468 | eval "$ac_envvar='$ac_optarg'" | |
469 | export $ac_envvar ;; | |
470 | ||
10f2d63a | 471 | *) |
1e487827 VS |
472 | # FIXME: should be removed in autoconf 3.0. |
473 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
474 | expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && | |
475 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
476 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
477 | ;; |
478 | ||
479 | esac | |
480 | done | |
481 | ||
482 | if test -n "$ac_prev"; then | |
1e487827 VS |
483 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
484 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
485 | { (exit 1); exit 1; }; } | |
10f2d63a | 486 | fi |
10f2d63a | 487 | |
1e487827 VS |
488 | # Be sure to have absolute paths. |
489 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
490 | localstatedir libdir includedir oldincludedir infodir mandir \ | |
491 | exec_prefix prefix | |
10f2d63a | 492 | do |
1e487827 VS |
493 | eval ac_val=$`echo $ac_var` |
494 | case $ac_val in | |
495 | [\\/$]* | ?:[\\/]* ) ;; | |
496 | NONE ) ;; | |
497 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
498 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
499 | esac |
500 | done | |
501 | ||
1e487827 VS |
502 | # There might be people who depend on the old broken behavior: `$host' |
503 | # used to hold the argument of --host etc. | |
504 | build=$build_alias | |
505 | host=$host_alias | |
506 | target=$target_alias | |
507 | ||
508 | # FIXME: should be removed in autoconf 3.0. | |
509 | if test "x$host_alias" != x; then | |
510 | if test "x$build_alias" = x; then | |
511 | cross_compiling=maybe | |
512 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
513 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
514 | elif test "x$build_alias" != "x$host_alias"; then | |
515 | cross_compiling=yes | |
516 | fi | |
517 | fi | |
10f2d63a | 518 | |
1e487827 VS |
519 | ac_tool_prefix= |
520 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
10f2d63a | 521 | |
1e487827 | 522 | test "$silent" = yes && exec 6>/dev/null |
10f2d63a VZ |
523 | |
524 | # Find the source files, if location was not specified. | |
525 | if test -z "$srcdir"; then | |
526 | ac_srcdir_defaulted=yes | |
527 | # Try the directory containing this script, then its parent. | |
528 | ac_prog=$0 | |
1e487827 | 529 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
10f2d63a VZ |
530 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
531 | srcdir=$ac_confdir | |
532 | if test ! -r $srcdir/$ac_unique_file; then | |
533 | srcdir=.. | |
534 | fi | |
535 | else | |
536 | ac_srcdir_defaulted=no | |
537 | fi | |
538 | if test ! -r $srcdir/$ac_unique_file; then | |
539 | if test "$ac_srcdir_defaulted" = yes; then | |
1e487827 VS |
540 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
541 | { (exit 1); exit 1; }; } | |
10f2d63a | 542 | else |
1e487827 VS |
543 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
544 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
545 | fi |
546 | fi | |
1e487827 VS |
547 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
548 | ac_env_build_alias_set=${build_alias+set} | |
549 | ac_env_build_alias_value=$build_alias | |
550 | ac_cv_env_build_alias_set=${build_alias+set} | |
551 | ac_cv_env_build_alias_value=$build_alias | |
552 | ac_env_host_alias_set=${host_alias+set} | |
553 | ac_env_host_alias_value=$host_alias | |
554 | ac_cv_env_host_alias_set=${host_alias+set} | |
555 | ac_cv_env_host_alias_value=$host_alias | |
556 | ac_env_target_alias_set=${target_alias+set} | |
557 | ac_env_target_alias_value=$target_alias | |
558 | ac_cv_env_target_alias_set=${target_alias+set} | |
559 | ac_cv_env_target_alias_value=$target_alias | |
560 | ac_env_CC_set=${CC+set} | |
561 | ac_env_CC_value=$CC | |
562 | ac_cv_env_CC_set=${CC+set} | |
563 | ac_cv_env_CC_value=$CC | |
564 | ac_env_CFLAGS_set=${CFLAGS+set} | |
565 | ac_env_CFLAGS_value=$CFLAGS | |
566 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
567 | ac_cv_env_CFLAGS_value=$CFLAGS | |
568 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
569 | ac_env_LDFLAGS_value=$LDFLAGS | |
570 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
571 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
572 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
573 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
574 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
575 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
576 | ac_env_CPP_set=${CPP+set} | |
577 | ac_env_CPP_value=$CPP | |
578 | ac_cv_env_CPP_set=${CPP+set} | |
579 | ac_cv_env_CPP_value=$CPP | |
580 | ac_env_CXX_set=${CXX+set} | |
581 | ac_env_CXX_value=$CXX | |
582 | ac_cv_env_CXX_set=${CXX+set} | |
583 | ac_cv_env_CXX_value=$CXX | |
584 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
585 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
586 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
587 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
588 | ac_env_CXXCPP_set=${CXXCPP+set} | |
589 | ac_env_CXXCPP_value=$CXXCPP | |
590 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
591 | ac_cv_env_CXXCPP_value=$CXXCPP | |
592 | ||
593 | # | |
594 | # Report the --help message. | |
595 | # | |
596 | if test "$ac_init_help" = "long"; then | |
597 | # Omit some internal or obsolete options to make the list less imposing. | |
598 | # This message is too long to be a string in the A/UX 3.1 sh. | |
599 | cat <<EOF | |
600 | \`configure' configures this package to adapt to many kinds of systems. | |
601 | ||
602 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
603 | ||
604 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
605 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
606 | ||
607 | Defaults for the options are specified in brackets. | |
608 | ||
609 | Configuration: | |
610 | -h, --help display this help and exit | |
611 | --help=short display options specific to this package | |
612 | --help=recursive display the short help of all the included packages | |
613 | -V, --version display version information and exit | |
614 | -q, --quiet, --silent do not print \`checking...' messages | |
615 | --cache-file=FILE cache test results in FILE [disabled] | |
616 | -C, --config-cache alias for \`--cache-file=config.cache' | |
617 | -n, --no-create do not create output files | |
618 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
619 | ||
620 | EOF | |
621 | ||
622 | cat <<EOF | |
623 | Installation directories: | |
624 | --prefix=PREFIX install architecture-independent files in PREFIX | |
625 | [$ac_default_prefix] | |
626 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
627 | [PREFIX] | |
628 | ||
629 | By default, \`make install' will install all the files in | |
630 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
631 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
632 | for instance \`--prefix=\$HOME'. | |
633 | ||
634 | For better control, use the options below. | |
635 | ||
636 | Fine tuning of the installation directories: | |
637 | --bindir=DIR user executables [EPREFIX/bin] | |
638 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
639 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
640 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
641 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
642 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
643 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
644 | --libdir=DIR object code libraries [EPREFIX/lib] | |
645 | --includedir=DIR C header files [PREFIX/include] | |
646 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
647 | --infodir=DIR info documentation [PREFIX/info] | |
648 | --mandir=DIR man documentation [PREFIX/man] | |
649 | EOF | |
650 | ||
651 | cat <<\EOF | |
652 | ||
653 | X features: | |
654 | --x-includes=DIR X include files are in DIR | |
655 | --x-libraries=DIR X library files are in DIR | |
656 | ||
657 | System types: | |
658 | --build=BUILD configure for building on BUILD [guessed] | |
659 | --host=HOST build programs to run on HOST [BUILD] | |
660 | --target=TARGET configure for building compilers for TARGET [HOST] | |
661 | EOF | |
662 | fi | |
663 | ||
664 | if test -n "$ac_init_help"; then | |
665 | ||
666 | cat <<\EOF | |
667 | ||
668 | Optional Features: | |
669 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
670 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
671 | --enable-gui use GUI classes | |
672 | --enable-shared create shared library code | |
673 | --enable-burnt_name create set name in shared library | |
674 | --enable-optimise create optimised code | |
675 | --enable-debug same as debug_flag and debug_info | |
676 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
677 | --enable-debug_info create code with debugging information | |
678 | --enable-debug_gdb create code with extra GDB debugging information | |
679 | --enable-debug_cntxt use wxDebugContext | |
680 | --enable-mem_tracing create code with memory tracing | |
681 | --enable-profile create code with profiling information | |
682 | --enable-no_rtti create code without RTTI information | |
683 | --enable-no_exceptions create code without exceptions information | |
684 | --enable-permissive compile code disregarding strict ANSI | |
685 | --enable-no_deps create code without dependency information | |
686 | --enable-intl use internationalization system | |
687 | --enable-config use wxConfig (and derived) classes | |
688 | --enable-sockets use socket/network classes | |
689 | --enable-ipc use interprocess communication (wxSocket etc.) | |
690 | --enable-dialupman use dialup network classes | |
691 | --enable-apple_ieee use the Apple IEEE codec | |
692 | --enable-timedate use date/time classes | |
693 | --enable-wave use wxWave class | |
694 | --enable-fraction use wxFraction class | |
695 | --enable-dynlib use wxLibrary class for DLL loading | |
696 | --enable-longlong use wxLongLong class | |
697 | --enable-geometry use geometry class | |
698 | --enable-log use logging system | |
699 | --enable-streams use wxStream etc classes | |
700 | --enable-file use wxFile classes | |
701 | --enable-textfile use wxTextFile classes | |
702 | --enable-unicode compile wxString with Unicode support | |
703 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs | |
704 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
705 | --enable-std_iostreams use standard C++ stream classes | |
706 | --enable-filesystem use virtual file systems classes | |
707 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
708 | --enable-fs_zip use virtual ZIP filesystems | |
709 | --enable-zipstream use wxZipInputStream | |
710 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
711 | --enable-snglinst use wxSingleInstanceChecker class | |
712 | --enable-threads use threads | |
713 | --enable-serial use class serialization | |
714 | --enable-docview use document view architecture | |
715 | --enable-help use help (using external browser at present) | |
716 | --enable-constraints use layout-constraints system | |
717 | --enable-printarch use printing architecture | |
718 | --enable-mdi use multiple document interface architecture | |
719 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
720 | --enable-prologio use Prolog IO library | |
721 | --enable-resources use wxWindows resources | |
722 | --enable-xresources use X resources for save (default for gtk+) | |
723 | --enable-clipboard use wxClipboard classes | |
724 | --enable-dnd use Drag'n'Drop classes | |
725 | --enable-metafile use win32 metafiles | |
726 | --enable-wxtree make wxTree library | |
727 | --enable-controls use all usual controls | |
728 | --enable-accel use accelerators | |
729 | --enable-caret use wxCaret class | |
730 | --enable-bmpbutton use wxBitmapButton class | |
731 | --enable-checkbox use wxCheckBox class | |
732 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
733 | --enable-choice use wxChoice class | |
734 | --enable-combobox use wxComboBox classes | |
735 | --enable-gauge use wxGauge class | |
736 | --enable-grid use wxGrid class | |
737 | --enable-newgrid use new wxGrid class | |
738 | --enable-imaglist use wxImageList class | |
739 | --enable-listbox use wxListBox class | |
740 | --enable-listctrl use wxListCtrl class | |
741 | --enable-notebook use wxNotebook class | |
742 | --enable-radiobox use wxRadioBox class | |
743 | --enable-radiobtn use wxRadioButton class | |
744 | --enable-sash use wxSashWindow class | |
745 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
746 | --enable-slider use wxSlider class | |
747 | --enable-spinbtn use wxSpinButton class | |
748 | --enable-spinctrl use wxSpinCtrl class | |
749 | --enable-splitter use wxSplitterWindow class | |
750 | --enable-statbmp use wxStaticBitmap class | |
751 | --enable-statbox use wxStaticBox class | |
752 | --enable-statline use wxStaticLine class | |
753 | --enable-statusbar use wxStatusBar class | |
754 | --enable-tabdialog use wxTabControl class | |
755 | --enable-togglebtn use wxToggleButton class | |
756 | --enable-toolbar use wxToolBar class | |
757 | --enable-tbarnative use native wxToolBar class | |
758 | --enable-tbarsmpl use wxToolBarSimple class | |
759 | --enable-treectrl use wxTreeCtrl class | |
760 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...) | |
761 | --enable-dirdlg use wxDirDialog | |
762 | --enable-textdlg use wxTextDialog | |
763 | --enable-tipdlg use startup tips | |
764 | --enable-progressdlg use wxProgressDialog | |
765 | --enable-miniframe use wxMiniFrame class | |
766 | --enable-html use wxHTML sub-library | |
767 | --enable-tooltips use wxToolTip class | |
768 | --enable-splines use spline drawing code | |
769 | --enable-validators use wxValidator and derived classes | |
770 | --enable-busyinfo use wxBusyInfo | |
771 | --enable-joystick compile in joystick support (Linux only) | |
772 | --enable-image use wxImage class | |
773 | --enable-gif use gif images (GIF file format) | |
774 | --enable-pcx use pcx images (PCX file format) | |
775 | --enable-pnm use pnm images (PNM file format) | |
776 | --enable-xpm use xpm images (XPM file format) | |
777 | --disable-gtktest Do not try to compile and run a test GTK program | |
778 | ||
779 | Optional Packages: | |
780 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
781 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
782 | --with-gtk use GTK+ | |
783 | --with-motif use Motif/Lesstif | |
784 | --with-mac use Mac OS X | |
785 | --with-wine use WINE | |
786 | --with-cygwin use Cygwin for MS-Windows | |
787 | --with-mingw use GCC Minimal MS-Windows | |
788 | --with-pm use OS/2 Presentation Manager | |
789 | --with-gtk-prefix=PFX Prefix where GTK is installed | |
790 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed | |
791 | --with-libpng use libpng (PNG image format) | |
792 | --with-libjpeg use libjpeg (JPEG file format) | |
793 | --with-libtiff use libtiff (TIFF file format) | |
794 | --with-freetype use freetype (font rasterizer) | |
795 | --with-opengl use OpenGL (or Mesa) | |
796 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc) | |
797 | --with-zlib use zlib for LZW compression | |
798 | --with-odbc use the IODBC and wxODBC classes | |
799 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
800 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
801 | --with-x use the X Window System | |
802 | ||
803 | Some influential environment variables: | |
804 | CC C compiler command | |
805 | CFLAGS C compiler flags | |
806 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
807 | nonstandard directory <lib dir> | |
808 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
809 | headers in a nonstandard directory <include dir> | |
810 | CPP C preprocessor | |
811 | CXX C++ compiler command | |
812 | CXXFLAGS C++ compiler flags | |
813 | CXXCPP C++ preprocessor | |
814 | ||
815 | Use these variables to override the choices made by `configure' or to help | |
816 | it to find libraries and programs with nonstandard names/locations. | |
817 | ||
818 | EOF | |
819 | fi | |
820 | ||
821 | if test "$ac_init_help" = "recursive"; then | |
822 | # If there are subdirs, report their specific --help. | |
823 | ac_popdir=`pwd` | |
824 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
825 | cd $ac_subdir | |
826 | # A "../" for each directory in /$ac_subdir. | |
827 | ac_dots=`echo $ac_subdir | | |
828 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
829 | ||
830 | case $srcdir in | |
831 | .) # No --srcdir option. We are building in place. | |
832 | ac_sub_srcdir=$srcdir ;; | |
833 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
834 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
835 | *) # Relative path. | |
836 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
837 | esac | |
838 | ||
839 | # Check for guested configure; otherwise get Cygnus style configure. | |
840 | if test -f $ac_sub_srcdir/configure.gnu; then | |
841 | echo | |
842 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
843 | elif test -f $ac_sub_srcdir/configure; then | |
844 | echo | |
845 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
846 | elif test -f $ac_sub_srcdir/configure.ac || | |
847 | test -f $ac_sub_srcdir/configure.in; then | |
848 | echo | |
849 | $ac_configure --help | |
850 | else | |
851 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
852 | fi | |
853 | cd $ac_popdir | |
854 | done | |
855 | fi | |
856 | ||
857 | test -n "$ac_init_help" && exit 0 | |
858 | if $ac_init_version; then | |
859 | cat <<\EOF | |
860 | ||
861 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
862 | Free Software Foundation, Inc. | |
863 | This configure script is free software; the Free Software Foundation | |
864 | gives unlimited permission to copy, distribute and modify it. | |
865 | EOF | |
866 | exit 0 | |
867 | fi | |
868 | exec 5>config.log | |
869 | cat >&5 <<EOF | |
870 | This file contains any messages produced by compilers while | |
871 | running configure, to aid debugging if configure makes a mistake. | |
872 | ||
873 | It was created by $as_me, which was | |
874 | generated by GNU Autoconf 2.50. Invocation command line was | |
875 | ||
876 | $ $0 $@ | |
877 | ||
878 | EOF | |
879 | { | |
880 | cat <<_ASUNAME | |
881 | ## ---------- ## | |
882 | ## Platform. ## | |
883 | ## ---------- ## | |
884 | ||
885 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
886 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
887 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
888 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
889 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
890 | ||
891 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
892 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
893 | ||
894 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
895 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
896 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
897 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
898 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
899 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
900 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
901 | ||
902 | PATH = $PATH | |
903 | ||
904 | _ASUNAME | |
905 | } >&5 | |
906 | ||
907 | cat >&5 <<EOF | |
908 | ## ------------ ## | |
909 | ## Core tests. ## | |
910 | ## ------------ ## | |
911 | ||
912 | EOF | |
913 | ||
914 | # Keep a trace of the command line. | |
915 | # Strip out --no-create and --no-recursion so they do not pile up. | |
916 | # Also quote any args containing shell meta-characters. | |
917 | ac_configure_args= | |
918 | ac_sep= | |
919 | for ac_arg | |
920 | do | |
921 | case $ac_arg in | |
922 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
923 | | --no-cr | --no-c) ;; | |
924 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
925 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
926 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
927 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
928 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
929 | ac_sep=" " ;; | |
930 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
931 | ac_sep=" " ;; | |
932 | esac | |
933 | # Get rid of the leading space. | |
934 | done | |
935 | ||
936 | # When interrupted or exit'd, cleanup temporary files, and complete | |
937 | # config.log. We remove comments because anyway the quotes in there | |
938 | # would cause problems or look ugly. | |
939 | trap 'exit_status=$? | |
940 | # Save into config.log some information that might help in debugging. | |
941 | echo >&5 | |
942 | echo "## ----------------- ##" >&5 | |
943 | echo "## Cache variables. ##" >&5 | |
944 | echo "## ----------------- ##" >&5 | |
945 | echo >&5 | |
946 | # The following way of writing the cache mishandles newlines in values, | |
947 | { | |
948 | (set) 2>&1 | | |
949 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
950 | *ac_space=\ *) | |
951 | sed -n \ | |
952 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
953 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
954 | ;; | |
955 | *) | |
956 | sed -n \ | |
957 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
958 | ;; | |
959 | esac; | |
960 | } >&5 | |
961 | sed "/^$/d" confdefs.h >conftest.log | |
962 | if test -s conftest.log; then | |
963 | echo >&5 | |
964 | echo "## ------------ ##" >&5 | |
965 | echo "## confdefs.h. ##" >&5 | |
966 | echo "## ------------ ##" >&5 | |
967 | echo >&5 | |
968 | cat conftest.log >&5 | |
969 | fi | |
970 | (echo; echo) >&5 | |
971 | test "$ac_signal" != 0 && | |
972 | echo "$as_me: caught signal $ac_signal" >&5 | |
973 | echo "$as_me: exit $exit_status" >&5 | |
974 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
975 | exit $exit_status | |
976 | ' 0 | |
977 | for ac_signal in 1 2 13 15; do | |
978 | trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal | |
979 | done | |
980 | ac_signal=0 | |
981 | ||
982 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
983 | rm -rf conftest* confdefs.h | |
984 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
985 | echo >confdefs.h | |
10f2d63a | 986 | |
1e487827 | 987 | # Let the site file select an alternate cache file if it wants to. |
10f2d63a VZ |
988 | # Prefer explicitly selected file to automatically selected ones. |
989 | if test -z "$CONFIG_SITE"; then | |
990 | if test "x$prefix" != xNONE; then | |
991 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
992 | else | |
993 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
994 | fi | |
995 | fi | |
996 | for ac_site_file in $CONFIG_SITE; do | |
997 | if test -r "$ac_site_file"; then | |
1e487827 VS |
998 | { echo "$as_me:998: loading site script $ac_site_file" >&5 |
999 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1000 | cat "$ac_site_file" >&5 | |
10f2d63a VZ |
1001 | . "$ac_site_file" |
1002 | fi | |
1003 | done | |
1004 | ||
1005 | if test -r "$cache_file"; then | |
1e487827 VS |
1006 | # Some versions of bash will fail to source /dev/null (special |
1007 | # files actually), so we avoid doing that. | |
1008 | if test -f "$cache_file"; then | |
1009 | { echo "$as_me:1009: loading cache $cache_file" >&5 | |
1010 | echo "$as_me: loading cache $cache_file" >&6;} | |
1011 | case $cache_file in | |
1012 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1013 | *) . ./$cache_file;; | |
1014 | esac | |
1015 | fi | |
10f2d63a | 1016 | else |
1e487827 VS |
1017 | { echo "$as_me:1017: creating cache $cache_file" >&5 |
1018 | echo "$as_me: creating cache $cache_file" >&6;} | |
1019 | >$cache_file | |
1020 | fi | |
1021 | ||
1022 | # Check that the precious variables saved in the cache have kept the same | |
1023 | # value. | |
1024 | ac_suggest_removing_cache=false | |
1025 | for ac_var in `(set) 2>&1 | | |
1026 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1027 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1028 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1029 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1030 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1031 | case $ac_old_set,$ac_new_set in | |
1032 | set,) | |
1033 | { echo "$as_me:1033: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1034 | echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1035 | ac_suggest_removing_cache=: ;; | |
1036 | ,set) | |
1037 | { echo "$as_me:1037: WARNING: \`$ac_var' was not set in the previous run" >&5 | |
1038 | echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} | |
1039 | ac_suggest_removing_cache=: ;; | |
1040 | ,);; | |
1041 | *) | |
1042 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1043 | { echo "$as_me:1043: WARNING: \`$ac_var' has changed since the previous run:" >&5 | |
1044 | echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} | |
1045 | { echo "$as_me:1045: WARNING: former value: $ac_old_val" >&5 | |
1046 | echo "$as_me: WARNING: former value: $ac_old_val" >&2;} | |
1047 | { echo "$as_me:1047: WARNING: current value: $ac_new_val" >&5 | |
1048 | echo "$as_me: WARNING: current value: $ac_new_val" >&2;} | |
1049 | ac_suggest_removing_cache=: | |
1050 | fi;; | |
1051 | esac | |
1052 | done | |
1053 | if $ac_suggest_removing_cache; then | |
1054 | { echo "$as_me:1054: WARNING: changes in the environment can compromise the build" >&5 | |
1055 | echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} | |
1056 | { echo "$as_me:1056: WARNING: consider removing $cache_file and starting over" >&5 | |
1057 | echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} | |
10f2d63a VZ |
1058 | fi |
1059 | ||
1060 | ac_ext=c | |
10f2d63a | 1061 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
1062 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1063 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1064 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1065 | ||
1066 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
1067 | *c*,-n*) ECHO_N= ECHO_C=' | |
1068 | ' ECHO_T=' ' ;; | |
1069 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
1070 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
1071 | esac | |
1072 | echo "#! $SHELL" >conftest.sh | |
1073 | echo "exit 0" >>conftest.sh | |
1074 | chmod +x conftest.sh | |
1075 | if { (echo "$as_me:1075: PATH=\".;.\"; conftest.sh") >&5 | |
1076 | (PATH=".;."; conftest.sh) 2>&5 | |
1077 | ac_status=$? | |
1078 | echo "$as_me:1078: \$? = $ac_status" >&5 | |
1079 | (exit $ac_status); }; then | |
1080 | ac_path_separator=';' | |
10f2d63a | 1081 | else |
1e487827 | 1082 | ac_path_separator=: |
10f2d63a | 1083 | fi |
1e487827 VS |
1084 | PATH_SEPARATOR="$ac_path_separator" |
1085 | rm -f conftest.sh | |
10f2d63a | 1086 | |
7c66a493 VZ |
1087 | ac_aux_dir= |
1088 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1089 | if test -f $ac_dir/install-sh; then | |
1090 | ac_aux_dir=$ac_dir | |
1091 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1092 | break | |
1093 | elif test -f $ac_dir/install.sh; then | |
1094 | ac_aux_dir=$ac_dir | |
1095 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1096 | break | |
1e487827 VS |
1097 | elif test -f $ac_dir/shtool; then |
1098 | ac_aux_dir=$ac_dir | |
1099 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1100 | break | |
7c66a493 VZ |
1101 | fi |
1102 | done | |
1103 | if test -z "$ac_aux_dir"; then | |
1e487827 VS |
1104 | { { echo "$as_me:1104: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1105 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1106 | { (exit 1); exit 1; }; } | |
7c66a493 | 1107 | fi |
1e487827 VS |
1108 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1109 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1110 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
703e0a69 | 1111 | |
1e487827 VS |
1112 | # Make sure we can run config.sub. |
1113 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1114 | { { echo "$as_me:1114: error: cannot run $ac_config_sub" >&5 | |
1115 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1116 | { (exit 1); exit 1; }; } | |
1117 | ||
1118 | echo "$as_me:1118: checking build system type" >&5 | |
1119 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1120 | if test "${ac_cv_build+set}" = set; then | |
1121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1122 | else | |
1123 | ac_cv_build_alias=$build_alias | |
1124 | test -z "$ac_cv_build_alias" && | |
1125 | ac_cv_build_alias=`$ac_config_guess` | |
1126 | test -z "$ac_cv_build_alias" && | |
1127 | { { echo "$as_me:1127: error: cannot guess build type; you must specify one" >&5 | |
1128 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1129 | { (exit 1); exit 1; }; } | |
1130 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1131 | { { echo "$as_me:1131: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | |
1132 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
1133 | { (exit 1); exit 1; }; } | |
1134 | ||
1135 | fi | |
1136 | echo "$as_me:1136: result: $ac_cv_build" >&5 | |
1137 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1138 | build=$ac_cv_build | |
1139 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1140 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1141 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1142 | ||
1143 | echo "$as_me:1143: checking host system type" >&5 | |
1144 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1145 | if test "${ac_cv_host+set}" = set; then | |
1146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1147 | else | |
1148 | ac_cv_host_alias=$host_alias | |
1149 | test -z "$ac_cv_host_alias" && | |
1150 | ac_cv_host_alias=$ac_cv_build_alias | |
1151 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1152 | { { echo "$as_me:1152: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1153 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1154 | { (exit 1); exit 1; }; } | |
1155 | ||
1156 | fi | |
1157 | echo "$as_me:1157: result: $ac_cv_host" >&5 | |
1158 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1159 | host=$ac_cv_host | |
1160 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1161 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1162 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1163 | ||
1164 | echo "$as_me:1164: checking target system type" >&5 | |
1165 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1166 | if test "${ac_cv_target+set}" = set; then | |
1167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1168 | else | |
1169 | ac_cv_target_alias=$target_alias | |
1170 | test "x$ac_cv_target_alias" = "x" && | |
1171 | ac_cv_target_alias=$ac_cv_host_alias | |
1172 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1173 | { { echo "$as_me:1173: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1174 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1175 | { (exit 1); exit 1; }; } | |
1176 | ||
1177 | fi | |
1178 | echo "$as_me:1178: result: $ac_cv_target" >&5 | |
1179 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1180 | target=$ac_cv_target | |
1181 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1182 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1183 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
7c66a493 VZ |
1184 | |
1185 | # The aliases save the names the user supplied, while $host etc. | |
1186 | # will get canonicalized. | |
1e487827 | 1187 | test -n "$target_alias" && |
7c66a493 VZ |
1188 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1189 | NONENONEs,x,x, && | |
1190 | program_prefix=${target_alias}- | |
1191 | ||
10f2d63a | 1192 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1193 | WX_MINOR_VERSION_NUMBER=3 |
665bbe97 | 1194 | WX_RELEASE_NUMBER=1 |
10f2d63a | 1195 | |
10f2d63a | 1196 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1197 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c RL |
1198 | |
1199 | WX_CURRENT=0 | |
1200 | WX_REVISION=0 | |
1201 | WX_AGE=0 | |
1202 | ||
10f2d63a VZ |
1203 | USE_UNIX=1 |
1204 | USE_WIN32=0 | |
b12915c1 | 1205 | USE_BEOS=0 |
1216f52d | 1206 | USE_MAC=0 |
b12915c1 | 1207 | |
10f2d63a VZ |
1208 | USE_LINUX= |
1209 | USE_SGI= | |
1210 | USE_HPUX= | |
1211 | USE_SYSV= | |
1212 | USE_SVR4= | |
1213 | USE_AIX= | |
1214 | USE_SUN= | |
1215 | USE_SOLARIS= | |
1216 | USE_SUNOS= | |
1217 | USE_ALPHA= | |
1218 | USE_OSF= | |
1219 | USE_BSD= | |
1220 | USE_FREEBSD= | |
95c8801c | 1221 | USE_OPENBSD= |
f6bcfd97 | 1222 | USE_NETBSD= |
10f2d63a VZ |
1223 | USE_VMS= |
1224 | USE_ULTRIX= | |
1225 | USE_CYGWIN= | |
1226 | USE_MINGW= | |
1227 | USE_DATA_GENERAL= | |
1228 | ||
ab9b9eab VZ |
1229 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1230 | ||
b4085ce6 | 1231 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM" |
10f2d63a VZ |
1232 | |
1233 | DEFAULT_wxUSE_GTK=0 | |
1234 | DEFAULT_wxUSE_MOTIF=0 | |
1235 | DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 1236 | DEFAULT_wxUSE_MAC=0 |
10f2d63a | 1237 | DEFAULT_wxUSE_WINE=0 |
e07802fc | 1238 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
1239 | |
1240 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1241 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1242 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 1243 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
10f2d63a | 1244 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
e07802fc | 1245 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 1246 | |
d6a55c4b VZ |
1247 | PROGRAM_EXT= |
1248 | ||
10f2d63a VZ |
1249 | case "${host}" in |
1250 | *-hp-hpux* ) | |
1251 | USE_HPUX=1 | |
1252 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1253 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
1e487827 | 1254 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1255 | #define __HPUX__ 1 |
1256 | EOF | |
1257 | ||
1258 | ;; | |
1259 | *-*-linux* ) | |
1260 | USE_LINUX=1 | |
1e487827 | 1261 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define __LINUX__ 1 |
1263 | EOF | |
1264 | ||
1265 | TMP=`uname -m` | |
1266 | if test "x$TMP" = "xalpha"; then | |
1267 | USE_ALPHA=1 | |
1e487827 | 1268 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1269 | #define __ALPHA__ 1 |
1270 | EOF | |
1271 | ||
1272 | fi | |
1273 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1274 | ;; | |
1275 | *-*-irix5* | *-*-irix6* ) | |
1276 | USE_SGI=1 | |
1277 | USE_SVR4=1 | |
1e487827 | 1278 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1279 | #define __SGI__ 1 |
1280 | EOF | |
1281 | ||
1e487827 | 1282 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1283 | #define __SVR4__ 1 |
1284 | EOF | |
1285 | ||
1286 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1287 | ;; | |
1288 | *-*-solaris2* ) | |
1289 | USE_SUN=1 | |
1290 | USE_SOLARIS=1 | |
1291 | USE_SVR4=1 | |
1e487827 | 1292 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1293 | #define __SUN__ 1 |
1294 | EOF | |
1295 | ||
1e487827 | 1296 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1297 | #define __SOLARIS__ 1 |
1298 | EOF | |
1299 | ||
1e487827 | 1300 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1301 | #define __SVR4__ 1 |
1302 | EOF | |
1303 | ||
1304 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1305 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1306 | ;; |
1307 | *-*-sunos4* ) | |
1308 | USE_SUN=1 | |
1309 | USE_SUNOS=1 | |
1310 | USE_BSD=1 | |
1e487827 | 1311 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1312 | #define __SUN__ 1 |
1313 | EOF | |
1314 | ||
1e487827 | 1315 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1316 | #define __SUNOS__ 1 |
1317 | EOF | |
1318 | ||
1e487827 | 1319 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1320 | #define __BSD__ 1 |
1321 | EOF | |
1322 | ||
1323 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1324 | ;; | |
f6bcfd97 | 1325 | *-*-freebsd*) |
10f2d63a VZ |
1326 | USE_BSD=1 |
1327 | USE_FREEBSD=1 | |
1e487827 | 1328 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1329 | #define __FREEBSD__ 1 |
1330 | EOF | |
1331 | ||
1e487827 | 1332 | cat >>confdefs.h <<\EOF |
10f2d63a | 1333 | #define __BSD__ 1 |
95c8801c VS |
1334 | EOF |
1335 | ||
1336 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1337 | ;; | |
1338 | *-*-openbsd*) | |
1339 | USE_BSD=1 | |
1340 | USE_OPENBSD=1 | |
1e487827 | 1341 | cat >>confdefs.h <<\EOF |
95c8801c VS |
1342 | #define __FREEBSD__ 1 |
1343 | EOF | |
1344 | ||
1e487827 | 1345 | cat >>confdefs.h <<\EOF |
95c8801c | 1346 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1347 | EOF |
1348 | ||
1349 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1350 | ;; | |
1351 | *-*-netbsd*) | |
1352 | USE_BSD=1 | |
1353 | USE_NETBSD=1 | |
1e487827 | 1354 | cat >>confdefs.h <<\EOF |
f6bcfd97 BP |
1355 | #define __FREEBSD__ 1 |
1356 | EOF | |
1357 | ||
1e487827 | 1358 | cat >>confdefs.h <<\EOF |
f6bcfd97 | 1359 | #define __NETBSD__ 1 |
10f2d63a VZ |
1360 | EOF |
1361 | ||
1362 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1363 | ;; | |
1364 | *-*-osf* ) | |
1365 | USE_ALPHA=1 | |
1366 | USE_OSF=1 | |
1e487827 | 1367 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1368 | #define __ALPHA__ 1 |
1369 | EOF | |
1370 | ||
1e487827 | 1371 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1372 | #define __OSF__ 1 |
1373 | EOF | |
1374 | ||
1375 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1376 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1377 | ;; |
1378 | *-*-dgux5* ) | |
1379 | USE_ALPHA=1 | |
1380 | USE_SVR4=1 | |
1e487827 | 1381 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1382 | #define __ALPHA__ 1 |
1383 | EOF | |
1384 | ||
1e487827 | 1385 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1386 | #define __SVR4__ 1 |
1387 | EOF | |
1388 | ||
1389 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1390 | ;; | |
1391 | *-*-sysv5* ) | |
1392 | USE_SYSV=1 | |
1393 | USE_SVR4=1 | |
1e487827 | 1394 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1395 | #define __SYSV__ 1 |
1396 | EOF | |
1397 | ||
1e487827 | 1398 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1399 | #define __SVR4__ 1 |
1400 | EOF | |
1401 | ||
1402 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1403 | ;; | |
1404 | *-*-aix* ) | |
1405 | USE_AIX=1 | |
1406 | USE_SYSV=1 | |
1407 | USE_SVR4=1 | |
1e487827 | 1408 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1409 | #define __AIX__ 1 |
1410 | EOF | |
1411 | ||
1e487827 | 1412 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1413 | #define __SYSV__ 1 |
1414 | EOF | |
1415 | ||
1e487827 | 1416 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1417 | #define __SVR4__ 1 |
1418 | EOF | |
1419 | ||
1420 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1421 | ;; | |
1422 | ||
1c8183e2 | 1423 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1424 | USE_UNIX=0 |
1425 | USE_WIN32=1 | |
1e487827 | 1426 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1427 | #define __WIN32__ 1 |
1428 | EOF | |
1429 | ||
1e487827 | 1430 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1431 | #define __WIN95__ 1 |
1432 | EOF | |
1433 | ||
1e487827 | 1434 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1435 | #define __WINDOWS__ 1 |
1436 | EOF | |
1437 | ||
1e487827 | 1438 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1439 | #define __GNUWIN32__ 1 |
1440 | EOF | |
1441 | ||
1e487827 | 1442 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1443 | #define STRICT 1 |
1444 | EOF | |
1445 | ||
1e487827 | 1446 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1447 | #define WINVER 0x0400 |
1448 | EOF | |
1449 | ||
cf27ef00 | 1450 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1451 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1452 | ;; | |
1453 | ||
1454 | *-pc-os2_emx ) | |
1e487827 | 1455 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1456 | #define __EMX__ 1 |
1457 | EOF | |
1458 | ||
cf27ef00 | 1459 | PROGRAM_EXT=".exe" |
e07802fc | 1460 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1461 | ;; |
1462 | ||
b4085ce6 GD |
1463 | *-*-darwin* ) |
1464 | USE_BSD=1 | |
1465 | USE_MAC=1 | |
1e487827 | 1466 | cat >>confdefs.h <<\EOF |
b4085ce6 GD |
1467 | #define __MAC__ 1 |
1468 | EOF | |
1469 | ||
1e487827 | 1470 | cat >>confdefs.h <<\EOF |
b4085ce6 GD |
1471 | #define __BSD__ 1 |
1472 | EOF | |
1473 | ||
1e487827 | 1474 | cat >>confdefs.h <<\EOF |
b4085ce6 GD |
1475 | #define __UNIX__ 1 |
1476 | EOF | |
1477 | ||
1478 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1479 | ;; | |
1480 | ||
b12915c1 VZ |
1481 | *-*-beos* ) |
1482 | USE_BEOS=1 | |
1e487827 | 1483 | cat >>confdefs.h <<\EOF |
b12915c1 VZ |
1484 | #define __BEOS__ 1 |
1485 | EOF | |
1486 | ||
1487 | ;; | |
1488 | ||
10f2d63a | 1489 | *) |
1e487827 VS |
1490 | { { echo "$as_me:1490: error: unknown system type ${host}." >&5 |
1491 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1492 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1493 | esac |
1494 | ||
1495 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1496 | wxUSE_UNIX=yes |
1e487827 | 1497 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
1498 | #define __UNIX__ 1 |
1499 | EOF | |
1500 | ||
b12915c1 VZ |
1501 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1502 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1503 | fi | |
1504 | ||
1505 | if test "$USE_BEOS" = 1; then | |
1506 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1507 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1508 | fi |
1509 | ||
1510 | if test "$USE_LINUX" = 1; then | |
1e487827 VS |
1511 | ac_ext=c |
1512 | ac_cpp='$CPP $CPPFLAGS' | |
1513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1516 | if test -n "$ac_tool_prefix"; then | |
1517 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1518 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1519 | echo "$as_me:1519: checking for $ac_word" >&5 | |
1520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1521 | if test "${ac_cv_prog_CC+set}" = set; then | |
1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b | 1523 | else |
1e487827 VS |
1524 | if test -n "$CC"; then |
1525 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1526 | else | |
1527 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1528 | ac_dummy="$PATH" | |
1529 | for ac_dir in $ac_dummy; do | |
1530 | IFS=$ac_save_IFS | |
1531 | test -z "$ac_dir" && ac_dir=. | |
1532 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1533 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1534 | echo "$as_me:1534: found $ac_dir/$ac_word" >&5 | |
1535 | break | |
1536 | done | |
10f2d63a | 1537 | |
1e487827 VS |
1538 | fi |
1539 | fi | |
1540 | CC=$ac_cv_prog_CC | |
1541 | if test -n "$CC"; then | |
1542 | echo "$as_me:1542: result: $CC" >&5 | |
1543 | echo "${ECHO_T}$CC" >&6 | |
10f2d63a | 1544 | else |
1e487827 VS |
1545 | echo "$as_me:1545: result: no" >&5 |
1546 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 1547 | fi |
10f2d63a VZ |
1548 | |
1549 | fi | |
1e487827 VS |
1550 | if test -z "$ac_cv_prog_CC"; then |
1551 | ac_ct_CC=$CC | |
1552 | # Extract the first word of "gcc", so it can be a program name with args. | |
1553 | set dummy gcc; ac_word=$2 | |
1554 | echo "$as_me:1554: checking for $ac_word" >&5 | |
1555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1556 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1558 | else | |
1559 | if test -n "$ac_ct_CC"; then | |
1560 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1561 | else | |
1562 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1563 | ac_dummy="$PATH" | |
1564 | for ac_dir in $ac_dummy; do | |
1565 | IFS=$ac_save_IFS | |
1566 | test -z "$ac_dir" && ac_dir=. | |
1567 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1568 | ac_cv_prog_ac_ct_CC="gcc" | |
1569 | echo "$as_me:1569: found $ac_dir/$ac_word" >&5 | |
1570 | break | |
1571 | done | |
10f2d63a | 1572 | |
1e487827 VS |
1573 | fi |
1574 | fi | |
1575 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1576 | if test -n "$ac_ct_CC"; then | |
1577 | echo "$as_me:1577: result: $ac_ct_CC" >&5 | |
1578 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10f2d63a | 1579 | else |
1e487827 VS |
1580 | echo "$as_me:1580: result: no" >&5 |
1581 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
1582 | fi |
1583 | ||
1e487827 VS |
1584 | CC=$ac_ct_CC |
1585 | else | |
1586 | CC="$ac_cv_prog_CC" | |
10f2d63a VZ |
1587 | fi |
1588 | ||
1e487827 VS |
1589 | if test -z "$CC"; then |
1590 | if test -n "$ac_tool_prefix"; then | |
1591 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1592 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1593 | echo "$as_me:1593: checking for $ac_word" >&5 | |
1594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1595 | if test "${ac_cv_prog_CC+set}" = set; then | |
1596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1597 | else | |
1598 | if test -n "$CC"; then | |
1599 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1600 | else | |
1601 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1602 | ac_dummy="$PATH" | |
1603 | for ac_dir in $ac_dummy; do | |
1604 | IFS=$ac_save_IFS | |
1605 | test -z "$ac_dir" && ac_dir=. | |
1606 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1607 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1608 | echo "$as_me:1608: found $ac_dir/$ac_word" >&5 | |
1609 | break | |
1610 | done | |
1611 | ||
1612 | fi | |
1613 | fi | |
1614 | CC=$ac_cv_prog_CC | |
1615 | if test -n "$CC"; then | |
1616 | echo "$as_me:1616: result: $CC" >&5 | |
1617 | echo "${ECHO_T}$CC" >&6 | |
1618 | else | |
1619 | echo "$as_me:1619: result: no" >&5 | |
1620 | echo "${ECHO_T}no" >&6 | |
1621 | fi | |
1622 | ||
1623 | fi | |
1624 | if test -z "$ac_cv_prog_CC"; then | |
1625 | ac_ct_CC=$CC | |
1626 | # Extract the first word of "cc", so it can be a program name with args. | |
1627 | set dummy cc; ac_word=$2 | |
1628 | echo "$as_me:1628: checking for $ac_word" >&5 | |
1629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1630 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1632 | else | |
1633 | if test -n "$ac_ct_CC"; then | |
1634 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1635 | else | |
1636 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1637 | ac_dummy="$PATH" | |
1638 | for ac_dir in $ac_dummy; do | |
1639 | IFS=$ac_save_IFS | |
1640 | test -z "$ac_dir" && ac_dir=. | |
1641 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1642 | ac_cv_prog_ac_ct_CC="cc" | |
1643 | echo "$as_me:1643: found $ac_dir/$ac_word" >&5 | |
1644 | break | |
1645 | done | |
1646 | ||
1647 | fi | |
1648 | fi | |
1649 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1650 | if test -n "$ac_ct_CC"; then | |
1651 | echo "$as_me:1651: result: $ac_ct_CC" >&5 | |
1652 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1653 | else | |
1654 | echo "$as_me:1654: result: no" >&5 | |
1655 | echo "${ECHO_T}no" >&6 | |
1656 | fi | |
1657 | ||
1658 | CC=$ac_ct_CC | |
1659 | else | |
1660 | CC="$ac_cv_prog_CC" | |
1661 | fi | |
1662 | ||
1663 | fi | |
1664 | if test -z "$CC"; then | |
1665 | # Extract the first word of "cc", so it can be a program name with args. | |
1666 | set dummy cc; ac_word=$2 | |
1667 | echo "$as_me:1667: checking for $ac_word" >&5 | |
1668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1669 | if test "${ac_cv_prog_CC+set}" = set; then | |
1670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1671 | else | |
1672 | if test -n "$CC"; then | |
1673 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1674 | else | |
1675 | ac_prog_rejected=no | |
1676 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1677 | ac_dummy="$PATH" | |
1678 | for ac_dir in $ac_dummy; do | |
1679 | IFS=$ac_save_IFS | |
1680 | test -z "$ac_dir" && ac_dir=. | |
1681 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1682 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1683 | ac_prog_rejected=yes | |
1684 | continue | |
1685 | fi | |
1686 | ac_cv_prog_CC="cc" | |
1687 | echo "$as_me:1687: found $ac_dir/$ac_word" >&5 | |
1688 | break | |
1689 | done | |
1690 | ||
1691 | if test $ac_prog_rejected = yes; then | |
1692 | # We found a bogon in the path, so make sure we never use it. | |
1693 | set dummy $ac_cv_prog_CC | |
1694 | shift | |
1695 | if test $# != 0; then | |
1696 | # We chose a different compiler from the bogus one. | |
1697 | # However, it has the same basename, so the bogon will be chosen | |
1698 | # first if we set CC to just the basename; use the full file name. | |
1699 | shift | |
1700 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1701 | shift | |
1702 | ac_cv_prog_CC="$@" | |
1703 | fi | |
1704 | fi | |
1705 | fi | |
1706 | fi | |
1707 | CC=$ac_cv_prog_CC | |
1708 | if test -n "$CC"; then | |
1709 | echo "$as_me:1709: result: $CC" >&5 | |
1710 | echo "${ECHO_T}$CC" >&6 | |
1711 | else | |
1712 | echo "$as_me:1712: result: no" >&5 | |
1713 | echo "${ECHO_T}no" >&6 | |
1714 | fi | |
1715 | ||
1716 | fi | |
1717 | if test -z "$CC"; then | |
1718 | if test -n "$ac_tool_prefix"; then | |
1719 | for ac_prog in cl | |
1720 | do | |
1721 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1722 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1723 | echo "$as_me:1723: checking for $ac_word" >&5 | |
1724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1725 | if test "${ac_cv_prog_CC+set}" = set; then | |
1726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1727 | else | |
1728 | if test -n "$CC"; then | |
1729 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1730 | else | |
1731 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1732 | ac_dummy="$PATH" | |
1733 | for ac_dir in $ac_dummy; do | |
1734 | IFS=$ac_save_IFS | |
1735 | test -z "$ac_dir" && ac_dir=. | |
1736 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1737 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1738 | echo "$as_me:1738: found $ac_dir/$ac_word" >&5 | |
1739 | break | |
1740 | done | |
1741 | ||
1742 | fi | |
1743 | fi | |
1744 | CC=$ac_cv_prog_CC | |
1745 | if test -n "$CC"; then | |
1746 | echo "$as_me:1746: result: $CC" >&5 | |
1747 | echo "${ECHO_T}$CC" >&6 | |
1748 | else | |
1749 | echo "$as_me:1749: result: no" >&5 | |
1750 | echo "${ECHO_T}no" >&6 | |
1751 | fi | |
1752 | ||
1753 | test -n "$CC" && break | |
1754 | done | |
1755 | fi | |
1756 | if test -z "$CC"; then | |
1757 | ac_ct_CC=$CC | |
1758 | for ac_prog in cl | |
1759 | do | |
1760 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1761 | set dummy $ac_prog; ac_word=$2 | |
1762 | echo "$as_me:1762: checking for $ac_word" >&5 | |
1763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1764 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1766 | else | |
1767 | if test -n "$ac_ct_CC"; then | |
1768 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1769 | else | |
1770 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1771 | ac_dummy="$PATH" | |
1772 | for ac_dir in $ac_dummy; do | |
1773 | IFS=$ac_save_IFS | |
1774 | test -z "$ac_dir" && ac_dir=. | |
1775 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1776 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1777 | echo "$as_me:1777: found $ac_dir/$ac_word" >&5 | |
1778 | break | |
1779 | done | |
1780 | ||
1781 | fi | |
1782 | fi | |
1783 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1784 | if test -n "$ac_ct_CC"; then | |
1785 | echo "$as_me:1785: result: $ac_ct_CC" >&5 | |
1786 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1787 | else | |
1788 | echo "$as_me:1788: result: no" >&5 | |
1789 | echo "${ECHO_T}no" >&6 | |
1790 | fi | |
1791 | ||
1792 | test -n "$ac_ct_CC" && break | |
1793 | done | |
1794 | ||
1795 | CC=$ac_ct_CC | |
1796 | fi | |
1797 | ||
1798 | fi | |
1799 | ||
1800 | test -z "$CC" && { { echo "$as_me:1800: error: no acceptable cc found in \$PATH" >&5 | |
1801 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
1802 | { (exit 1); exit 1; }; } | |
1803 | ||
1804 | cat >conftest.$ac_ext <<_ACEOF | |
1805 | #line 1805 "configure" | |
1806 | #include "confdefs.h" | |
1807 | ||
1808 | int | |
1809 | main () | |
1810 | { | |
1811 | ||
1812 | ; | |
1813 | return 0; | |
1814 | } | |
1815 | _ACEOF | |
1816 | ac_clean_files_save=$ac_clean_files | |
1817 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1818 | # Try to create an executable without -o first, disregard a.out. | |
1819 | # It will help us diagnose broken compiler, and finding out an intuition | |
1820 | # of exeext. | |
1821 | echo "$as_me:1821: checking for C compiler default output" >&5 | |
1822 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
1823 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1824 | if { (eval echo "$as_me:1824: \"$ac_link_default\"") >&5 | |
1825 | (eval $ac_link_default) 2>&5 | |
1826 | ac_status=$? | |
1827 | echo "$as_me:1827: \$? = $ac_status" >&5 | |
1828 | (exit $ac_status); }; then | |
1829 | for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do | |
1830 | case $ac_file in | |
1831 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1832 | a.out ) # We found the default executable, but exeext='' is most | |
1833 | # certainly right. | |
1834 | break;; | |
1835 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1836 | export ac_cv_exeext | |
1837 | break;; | |
1838 | * ) break;; | |
1839 | esac | |
1840 | done | |
1841 | else | |
1842 | echo "$as_me: failed program was:" >&5 | |
1843 | cat conftest.$ac_ext >&5 | |
1844 | { { echo "$as_me:1844: error: C compiler cannot create executables" >&5 | |
1845 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
1846 | { (exit 77); exit 77; }; } | |
1847 | fi | |
1848 | ||
1849 | ac_exeext=$ac_cv_exeext | |
1850 | echo "$as_me:1850: result: $ac_file" >&5 | |
1851 | echo "${ECHO_T}$ac_file" >&6 | |
1852 | ||
1853 | # Check the compiler produces executables we can run. If not, either | |
1854 | # the compiler is broken, or we cross compile. | |
1855 | echo "$as_me:1855: checking whether the C compiler works" >&5 | |
1856 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1857 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1858 | # If not cross compiling, check that we can run a simple program. | |
1859 | if test "$cross_compiling" != yes; then | |
1860 | if { ac_try='./$ac_file' | |
1861 | { (eval echo "$as_me:1861: \"$ac_try\"") >&5 | |
1862 | (eval $ac_try) 2>&5 | |
1863 | ac_status=$? | |
1864 | echo "$as_me:1864: \$? = $ac_status" >&5 | |
1865 | (exit $ac_status); }; }; then | |
1866 | cross_compiling=no | |
1867 | else | |
1868 | if test "$cross_compiling" = maybe; then | |
1869 | cross_compiling=yes | |
1870 | else | |
1871 | { { echo "$as_me:1871: error: cannot run C compiled programs. | |
1872 | If you meant to cross compile, use \`--host'." >&5 | |
1873 | echo "$as_me: error: cannot run C compiled programs. | |
1874 | If you meant to cross compile, use \`--host'." >&2;} | |
1875 | { (exit 1); exit 1; }; } | |
1876 | fi | |
1877 | fi | |
1878 | fi | |
1879 | echo "$as_me:1879: result: yes" >&5 | |
1880 | echo "${ECHO_T}yes" >&6 | |
1881 | ||
1882 | rm -f a.out a.exe conftest$ac_cv_exeext | |
1883 | ac_clean_files=$ac_clean_files_save | |
1884 | # Check the compiler produces executables we can run. If not, either | |
1885 | # the compiler is broken, or we cross compile. | |
1886 | echo "$as_me:1886: checking whether we are cross compiling" >&5 | |
1887 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1888 | echo "$as_me:1888: result: $cross_compiling" >&5 | |
1889 | echo "${ECHO_T}$cross_compiling" >&6 | |
1890 | ||
1891 | echo "$as_me:1891: checking for executable suffix" >&5 | |
1892 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | |
1893 | if { (eval echo "$as_me:1893: \"$ac_link\"") >&5 | |
1894 | (eval $ac_link) 2>&5 | |
1895 | ac_status=$? | |
1896 | echo "$as_me:1896: \$? = $ac_status" >&5 | |
1897 | (exit $ac_status); }; then | |
1898 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1899 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1900 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1901 | # `rm'. | |
1902 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1903 | case $ac_file in | |
1904 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1905 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1906 | export ac_cv_exeext | |
1907 | break;; | |
1908 | * ) break;; | |
1909 | esac | |
1910 | done | |
1911 | else | |
1912 | { { echo "$as_me:1912: error: cannot compute EXEEXT: cannot compile and link" >&5 | |
1913 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | |
1914 | { (exit 1); exit 1; }; } | |
1915 | fi | |
1916 | ||
1917 | rm -f conftest$ac_cv_exeext | |
1918 | echo "$as_me:1918: result: $ac_cv_exeext" >&5 | |
1919 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1920 | ||
1921 | rm -f conftest.$ac_ext | |
1922 | EXEEXT=$ac_cv_exeext | |
1923 | ac_exeext=$EXEEXT | |
1924 | echo "$as_me:1924: checking for object suffix" >&5 | |
1925 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | |
1926 | if test "${ac_cv_objext+set}" = set; then | |
1927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1928 | else | |
1929 | cat >conftest.$ac_ext <<_ACEOF | |
1930 | #line 1930 "configure" | |
1931 | #include "confdefs.h" | |
1932 | ||
1933 | int | |
1934 | main () | |
1935 | { | |
1936 | ||
1937 | ; | |
1938 | return 0; | |
1939 | } | |
1940 | _ACEOF | |
1941 | rm -f conftest.o conftest.obj | |
1942 | if { (eval echo "$as_me:1942: \"$ac_compile\"") >&5 | |
1943 | (eval $ac_compile) 2>&5 | |
1944 | ac_status=$? | |
1945 | echo "$as_me:1945: \$? = $ac_status" >&5 | |
1946 | (exit $ac_status); }; then | |
1947 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1948 | case $ac_file in | |
1949 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1950 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1951 | break;; | |
1952 | esac | |
1953 | done | |
1954 | else | |
1955 | echo "$as_me: failed program was:" >&5 | |
1956 | cat conftest.$ac_ext >&5 | |
1957 | { { echo "$as_me:1957: error: cannot compute OBJEXT: cannot compile" >&5 | |
1958 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | |
1959 | { (exit 1); exit 1; }; } | |
1960 | fi | |
1961 | ||
1962 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1963 | fi | |
1964 | echo "$as_me:1964: result: $ac_cv_objext" >&5 | |
1965 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1966 | OBJEXT=$ac_cv_objext | |
1967 | ac_objext=$OBJEXT | |
1968 | echo "$as_me:1968: checking whether we are using the GNU C compiler" >&5 | |
1969 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1970 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1972 | else | |
1973 | cat >conftest.$ac_ext <<_ACEOF | |
1974 | #line 1974 "configure" | |
1975 | #include "confdefs.h" | |
1976 | ||
1977 | int | |
1978 | main () | |
1979 | { | |
1980 | #ifndef __GNUC__ | |
1981 | choke me | |
1982 | #endif | |
1983 | ||
1984 | ; | |
1985 | return 0; | |
1986 | } | |
1987 | _ACEOF | |
1988 | rm -f conftest.$ac_objext | |
1989 | if { (eval echo "$as_me:1989: \"$ac_compile\"") >&5 | |
1990 | (eval $ac_compile) 2>&5 | |
1991 | ac_status=$? | |
1992 | echo "$as_me:1992: \$? = $ac_status" >&5 | |
1993 | (exit $ac_status); } && | |
1994 | { ac_try='test -s conftest.$ac_objext' | |
1995 | { (eval echo "$as_me:1995: \"$ac_try\"") >&5 | |
1996 | (eval $ac_try) 2>&5 | |
1997 | ac_status=$? | |
1998 | echo "$as_me:1998: \$? = $ac_status" >&5 | |
1999 | (exit $ac_status); }; }; then | |
2000 | ac_compiler_gnu=yes | |
2001 | else | |
2002 | echo "$as_me: failed program was:" >&5 | |
2003 | cat conftest.$ac_ext >&5 | |
2004 | ac_compiler_gnu=no | |
2005 | fi | |
2006 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2007 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2008 | ||
2009 | fi | |
2010 | echo "$as_me:2010: result: $ac_cv_c_compiler_gnu" >&5 | |
2011 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2012 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2013 | ac_test_CFLAGS=${CFLAGS+set} | |
2014 | ac_save_CFLAGS=$CFLAGS | |
2015 | CFLAGS="-g" | |
2016 | echo "$as_me:2016: checking whether $CC accepts -g" >&5 | |
2017 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2018 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2020 | else | |
2021 | cat >conftest.$ac_ext <<_ACEOF | |
2022 | #line 2022 "configure" | |
2023 | #include "confdefs.h" | |
2024 | ||
2025 | int | |
2026 | main () | |
2027 | { | |
2028 | ||
2029 | ; | |
2030 | return 0; | |
2031 | } | |
2032 | _ACEOF | |
2033 | rm -f conftest.$ac_objext | |
2034 | if { (eval echo "$as_me:2034: \"$ac_compile\"") >&5 | |
2035 | (eval $ac_compile) 2>&5 | |
2036 | ac_status=$? | |
2037 | echo "$as_me:2037: \$? = $ac_status" >&5 | |
2038 | (exit $ac_status); } && | |
2039 | { ac_try='test -s conftest.$ac_objext' | |
2040 | { (eval echo "$as_me:2040: \"$ac_try\"") >&5 | |
2041 | (eval $ac_try) 2>&5 | |
2042 | ac_status=$? | |
2043 | echo "$as_me:2043: \$? = $ac_status" >&5 | |
2044 | (exit $ac_status); }; }; then | |
2045 | ac_cv_prog_cc_g=yes | |
2046 | else | |
2047 | echo "$as_me: failed program was:" >&5 | |
2048 | cat conftest.$ac_ext >&5 | |
2049 | ac_cv_prog_cc_g=no | |
2050 | fi | |
2051 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2052 | fi | |
2053 | echo "$as_me:2053: result: $ac_cv_prog_cc_g" >&5 | |
2054 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2055 | if test "$ac_test_CFLAGS" = set; then | |
2056 | CFLAGS=$ac_save_CFLAGS | |
2057 | elif test $ac_cv_prog_cc_g = yes; then | |
2058 | if test "$GCC" = yes; then | |
2059 | CFLAGS="-g -O2" | |
2060 | else | |
2061 | CFLAGS="-g" | |
2062 | fi | |
2063 | else | |
2064 | if test "$GCC" = yes; then | |
2065 | CFLAGS="-O2" | |
2066 | else | |
2067 | CFLAGS= | |
2068 | fi | |
2069 | fi | |
2070 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2071 | # in C++ we need to declare it. In case someone uses the same compiler | |
2072 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2073 | # the declaration of exit, since it's the most demanding environment. | |
2074 | cat >conftest.$ac_ext <<_ACEOF | |
2075 | #ifndef __cplusplus | |
2076 | choke me | |
2077 | #endif | |
2078 | _ACEOF | |
2079 | rm -f conftest.$ac_objext | |
2080 | if { (eval echo "$as_me:2080: \"$ac_compile\"") >&5 | |
2081 | (eval $ac_compile) 2>&5 | |
2082 | ac_status=$? | |
2083 | echo "$as_me:2083: \$? = $ac_status" >&5 | |
2084 | (exit $ac_status); } && | |
2085 | { ac_try='test -s conftest.$ac_objext' | |
2086 | { (eval echo "$as_me:2086: \"$ac_try\"") >&5 | |
2087 | (eval $ac_try) 2>&5 | |
2088 | ac_status=$? | |
2089 | echo "$as_me:2089: \$? = $ac_status" >&5 | |
2090 | (exit $ac_status); }; }; then | |
2091 | for ac_declaration in \ | |
2092 | ''\ | |
2093 | '#include <stdlib.h>' \ | |
2094 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2095 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2096 | 'extern "C" void exit (int) throw ();' \ | |
2097 | 'extern "C" void exit (int);' \ | |
2098 | 'void exit (int);' | |
2099 | do | |
2100 | cat >conftest.$ac_ext <<_ACEOF | |
2101 | #line 2101 "configure" | |
2102 | #include "confdefs.h" | |
2103 | #include <stdlib.h> | |
2104 | $ac_declaration | |
2105 | int | |
2106 | main () | |
2107 | { | |
2108 | exit (42); | |
2109 | ; | |
2110 | return 0; | |
2111 | } | |
2112 | _ACEOF | |
2113 | rm -f conftest.$ac_objext | |
2114 | if { (eval echo "$as_me:2114: \"$ac_compile\"") >&5 | |
2115 | (eval $ac_compile) 2>&5 | |
2116 | ac_status=$? | |
2117 | echo "$as_me:2117: \$? = $ac_status" >&5 | |
2118 | (exit $ac_status); } && | |
2119 | { ac_try='test -s conftest.$ac_objext' | |
2120 | { (eval echo "$as_me:2120: \"$ac_try\"") >&5 | |
2121 | (eval $ac_try) 2>&5 | |
2122 | ac_status=$? | |
2123 | echo "$as_me:2123: \$? = $ac_status" >&5 | |
2124 | (exit $ac_status); }; }; then | |
2125 | : | |
2126 | else | |
2127 | echo "$as_me: failed program was:" >&5 | |
2128 | cat conftest.$ac_ext >&5 | |
2129 | continue | |
2130 | fi | |
2131 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2132 | cat >conftest.$ac_ext <<_ACEOF | |
2133 | #line 2133 "configure" | |
2134 | #include "confdefs.h" | |
2135 | $ac_declaration | |
2136 | int | |
2137 | main () | |
2138 | { | |
2139 | exit (42); | |
2140 | ; | |
2141 | return 0; | |
2142 | } | |
2143 | _ACEOF | |
2144 | rm -f conftest.$ac_objext | |
2145 | if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5 | |
2146 | (eval $ac_compile) 2>&5 | |
2147 | ac_status=$? | |
2148 | echo "$as_me:2148: \$? = $ac_status" >&5 | |
2149 | (exit $ac_status); } && | |
2150 | { ac_try='test -s conftest.$ac_objext' | |
2151 | { (eval echo "$as_me:2151: \"$ac_try\"") >&5 | |
2152 | (eval $ac_try) 2>&5 | |
2153 | ac_status=$? | |
2154 | echo "$as_me:2154: \$? = $ac_status" >&5 | |
2155 | (exit $ac_status); }; }; then | |
2156 | break | |
2157 | else | |
2158 | echo "$as_me: failed program was:" >&5 | |
2159 | cat conftest.$ac_ext >&5 | |
2160 | fi | |
2161 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2162 | done | |
2163 | echo '#ifdef __cplusplus' >>confdefs.h | |
2164 | echo $ac_declaration >>confdefs.h | |
2165 | echo '#endif' >>confdefs.h | |
2166 | ||
2167 | else | |
2168 | echo "$as_me: failed program was:" >&5 | |
2169 | cat conftest.$ac_ext >&5 | |
2170 | fi | |
2171 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2172 | ac_ext=c | |
2173 | ac_cpp='$CPP $CPPFLAGS' | |
2174 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2175 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2177 | ||
2178 | echo "$as_me:2178: checking for gettext in -lc" >&5 | |
2179 | echo $ECHO_N "checking for gettext in -lc... $ECHO_C" >&6 | |
2180 | if test "${ac_cv_lib_c_gettext+set}" = set; then | |
2181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2182 | else | |
2183 | ac_check_lib_save_LIBS=$LIBS | |
2184 | LIBS="-lc $LIBS" | |
2185 | cat >conftest.$ac_ext <<_ACEOF | |
2186 | #line 2186 "configure" | |
2187 | #include "confdefs.h" | |
2188 | ||
2189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2190 | #ifdef __cplusplus | |
2191 | extern "C" | |
2192 | #endif | |
2193 | /* We use char because int might match the return type of a gcc2 | |
2194 | builtin and then its argument prototype would still apply. */ | |
2195 | char gettext (); | |
2196 | int | |
2197 | main () | |
2198 | { | |
2199 | gettext (); | |
2200 | ; | |
2201 | return 0; | |
2202 | } | |
2203 | _ACEOF | |
2204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2205 | if { (eval echo "$as_me:2205: \"$ac_link\"") >&5 | |
2206 | (eval $ac_link) 2>&5 | |
2207 | ac_status=$? | |
2208 | echo "$as_me:2208: \$? = $ac_status" >&5 | |
2209 | (exit $ac_status); } && | |
2210 | { ac_try='test -s conftest$ac_exeext' | |
2211 | { (eval echo "$as_me:2211: \"$ac_try\"") >&5 | |
2212 | (eval $ac_try) 2>&5 | |
2213 | ac_status=$? | |
2214 | echo "$as_me:2214: \$? = $ac_status" >&5 | |
2215 | (exit $ac_status); }; }; then | |
2216 | ac_cv_lib_c_gettext=yes | |
2217 | else | |
2218 | echo "$as_me: failed program was:" >&5 | |
2219 | cat conftest.$ac_ext >&5 | |
2220 | ac_cv_lib_c_gettext=no | |
2221 | fi | |
2222 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2223 | LIBS=$ac_check_lib_save_LIBS | |
2224 | fi | |
2225 | echo "$as_me:2225: result: $ac_cv_lib_c_gettext" >&5 | |
2226 | echo "${ECHO_T}$ac_cv_lib_c_gettext" >&6 | |
2227 | if test $ac_cv_lib_c_gettext = yes; then | |
2228 | cat >>confdefs.h <<\EOF | |
2229 | #define wxHAVE_GLIBC2 1 | |
2230 | EOF | |
2231 | ||
2232 | fi | |
2233 | ||
2234 | fi | |
6232543b | 2235 | |
10f2d63a VZ |
2236 | wx_arg_cache_file="configarg.cache" |
2237 | echo "loading argument cache $wx_arg_cache_file" | |
2238 | rm -f ${wx_arg_cache_file}.tmp | |
2239 | touch ${wx_arg_cache_file}.tmp | |
2240 | touch ${wx_arg_cache_file} | |
10f2d63a VZ |
2241 | |
2242 | DEBUG_CONFIGURE=0 | |
2243 | if test $DEBUG_CONFIGURE = 1; then | |
2244 | DEFAULT_wxUSE_THREADS=yes | |
2245 | ||
2246 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 2247 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
2248 | DEFAULT_wxUSE_OPTIMISE=yes |
2249 | DEFAULT_wxUSE_PROFILE=no | |
2250 | DEFAULT_wxUSE_NO_DEPS=no | |
2251 | DEFAULT_wxUSE_NO_RTTI=no | |
2252 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2253 | DEFAULT_wxUSE_PERMISSIVE=no | |
2254 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2255 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2256 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2257 | DEFAULT_wxUSE_MEM_TRACING=no | |
2258 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2259 | DEFAULT_wxUSE_DMALLOC=no | |
2260 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2261 | ||
2262 | DEFAULT_wxUSE_LOG=yes | |
2263 | ||
2264 | DEFAULT_wxUSE_GUI=yes | |
2265 | ||
2266 | DEFAULT_wxUSE_ZLIB=no | |
2267 | DEFAULT_wxUSE_LIBPNG=no | |
2268 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2269 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 2270 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 2271 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 2272 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2273 | |
eb4efbdc | 2274 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2275 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a VZ |
2276 | DEFAULT_wxUSE_STD_IOSTREAM=no |
2277 | DEFAULT_wxUSE_FILE=no | |
2278 | DEFAULT_wxUSE_TEXTFILE=no | |
2279 | DEFAULT_wxUSE_TIMEDATE=no | |
2280 | DEFAULT_wxUSE_WAVE=no | |
2281 | DEFAULT_wxUSE_INTL=no | |
2282 | DEFAULT_wxUSE_CONFIG=no | |
2283 | DEFAULT_wxUSE_STREAMS=no | |
2284 | DEFAULT_wxUSE_SOCKETS=no | |
2285 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2286 | DEFAULT_wxUSE_SERIAL=no | |
2287 | DEFAULT_wxUSE_JOYSTICK=no | |
2288 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2289 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 2290 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2291 | |
2292 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2293 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2294 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2295 | ||
2296 | DEFAULT_wxUSE_X_RESOURCES=no | |
2297 | DEFAULT_wxUSE_CLIPBOARD=no | |
2298 | DEFAULT_wxUSE_TOOLTIPS=no | |
2299 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2300 | DEFAULT_wxUSE_SPLINES=no | |
2301 | ||
2302 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2303 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2304 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2305 | ||
2306 | DEFAULT_wxUSE_PROLOGIO=no | |
2307 | DEFAULT_wxUSE_RESOURCES=no | |
2308 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2309 | DEFAULT_wxUSE_IPC=no | |
2310 | DEFAULT_wxUSE_HELP=no | |
2311 | DEFAULT_wxUSE_WXTREE=no | |
2312 | DEFAULT_wxUSE_METAFILE=no | |
2313 | ||
2314 | DEFAULT_wxUSE_COMMONDLGS=no | |
2315 | DEFAULT_wxUSE_DIRDLG=no | |
2316 | DEFAULT_wxUSE_TEXTDLG=no | |
2317 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2318 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2319 | DEFAULT_wxUSE_MINIFRAME=no | |
2320 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2321 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2322 | DEFAULT_wxUSE_FS_INET=no |
2323 | DEFAULT_wxUSE_FS_ZIP=no | |
2324 | DEFAULT_wxUSE_BUSYINFO=no | |
2325 | DEFAULT_wxUSE_ZIPSTREAM=no | |
2326 | DEFAULT_wxUSE_VALIDATORS=yes | |
2327 | ||
2328 | DEFAULT_wxUSE_ACCEL=no | |
2329 | DEFAULT_wxUSE_CARET=no | |
2330 | DEFAULT_wxUSE_BMPBUTTON=no | |
2331 | DEFAULT_wxUSE_CHECKBOX=no | |
2332 | DEFAULT_wxUSE_CHECKLST=no | |
2333 | DEFAULT_wxUSE_CHOICE=yes | |
2334 | DEFAULT_wxUSE_COMBOBOX=no | |
2335 | DEFAULT_wxUSE_GAUGE=no | |
2336 | DEFAULT_wxUSE_GRID=no | |
2337 | DEFAULT_wxUSE_NEW_GRID=no | |
2338 | DEFAULT_wxUSE_IMAGLIST=no | |
2339 | DEFAULT_wxUSE_LISTBOX=no | |
2340 | DEFAULT_wxUSE_LISTCTRL=no | |
2341 | DEFAULT_wxUSE_NOTEBOOK=no | |
2342 | DEFAULT_wxUSE_RADIOBOX=no | |
2343 | DEFAULT_wxUSE_RADIOBTN=no | |
2344 | DEFAULT_wxUSE_SASH=no | |
2345 | DEFAULT_wxUSE_SCROLLBAR=no | |
2346 | DEFAULT_wxUSE_SLIDER=no | |
2347 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2348 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2349 | DEFAULT_wxUSE_SPLITTER=no |
2350 | DEFAULT_wxUSE_STATBMP=no | |
2351 | DEFAULT_wxUSE_STATBOX=no | |
2352 | DEFAULT_wxUSE_STATLINE=no | |
2353 | DEFAULT_wxUSE_STATUSBAR=yes | |
2354 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 2355 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2356 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2357 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2358 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
2359 | DEFAULT_wxUSE_TREECTRL=no |
2360 | ||
2361 | DEFAULT_wxUSE_UNICODE=no | |
2362 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2363 | ||
0046ff7c | 2364 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2365 | DEFAULT_wxUSE_GIF=no |
2366 | DEFAULT_wxUSE_PCX=no | |
2367 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 2368 | DEFAULT_wxUSE_XPM=no |
10f2d63a VZ |
2369 | else |
2370 | DEFAULT_wxUSE_THREADS=yes | |
2371 | ||
2372 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 2373 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
2374 | DEFAULT_wxUSE_OPTIMISE=yes |
2375 | DEFAULT_wxUSE_PROFILE=no | |
2376 | DEFAULT_wxUSE_NO_DEPS=no | |
2377 | DEFAULT_wxUSE_NO_RTTI=no | |
2378 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2379 | DEFAULT_wxUSE_PERMISSIVE=no | |
2380 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2381 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2382 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2383 | DEFAULT_wxUSE_MEM_TRACING=no | |
2384 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2385 | DEFAULT_wxUSE_DMALLOC=no | |
2386 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2387 | ||
2388 | DEFAULT_wxUSE_LOG=yes | |
2389 | ||
2390 | DEFAULT_wxUSE_GUI=yes | |
2391 | ||
2392 | DEFAULT_wxUSE_ZLIB=yes | |
2393 | DEFAULT_wxUSE_LIBPNG=yes | |
2394 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2395 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2396 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 2397 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 2398 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2399 | |
eb4efbdc | 2400 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2401 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a VZ |
2402 | DEFAULT_wxUSE_STD_IOSTREAM=no |
2403 | DEFAULT_wxUSE_FILE=yes | |
2404 | DEFAULT_wxUSE_TEXTFILE=yes | |
2405 | DEFAULT_wxUSE_TIMEDATE=yes | |
2406 | DEFAULT_wxUSE_WAVE=no | |
2407 | DEFAULT_wxUSE_INTL=yes | |
2408 | DEFAULT_wxUSE_CONFIG=yes | |
2409 | DEFAULT_wxUSE_STREAMS=yes | |
2410 | DEFAULT_wxUSE_SOCKETS=yes | |
2411 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2412 | DEFAULT_wxUSE_SERIAL=yes | |
2413 | DEFAULT_wxUSE_JOYSTICK=yes | |
2414 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 2415 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2416 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2417 | |
2418 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2419 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2420 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2421 | ||
2422 | DEFAULT_wxUSE_X_RESOURCES=no | |
2423 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2424 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2425 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2426 | DEFAULT_wxUSE_SPLINES=yes | |
2427 | ||
2428 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2429 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2430 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2431 | ||
2432 | DEFAULT_wxUSE_PROLOGIO=yes | |
2433 | DEFAULT_wxUSE_RESOURCES=yes | |
2434 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2435 | DEFAULT_wxUSE_IPC=yes | |
2436 | DEFAULT_wxUSE_HELP=yes | |
2437 | DEFAULT_wxUSE_WXTREE=yes | |
2438 | DEFAULT_wxUSE_METAFILE=yes | |
2439 | ||
2440 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2441 | DEFAULT_wxUSE_DIRDLG=yes | |
2442 | DEFAULT_wxUSE_TEXTDLG=yes | |
2443 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2444 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2445 | DEFAULT_wxUSE_MINIFRAME=yes | |
2446 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2447 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2448 | DEFAULT_wxUSE_FS_INET=yes |
2449 | DEFAULT_wxUSE_FS_ZIP=yes | |
2450 | DEFAULT_wxUSE_BUSYINFO=yes | |
2451 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2452 | DEFAULT_wxUSE_VALIDATORS=yes | |
2453 | ||
2454 | DEFAULT_wxUSE_ACCEL=yes | |
2455 | DEFAULT_wxUSE_CARET=yes | |
2456 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2457 | DEFAULT_wxUSE_CHECKBOX=yes | |
2458 | DEFAULT_wxUSE_CHECKLST=yes | |
2459 | DEFAULT_wxUSE_CHOICE=yes | |
2460 | DEFAULT_wxUSE_COMBOBOX=yes | |
2461 | DEFAULT_wxUSE_GAUGE=yes | |
2462 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 2463 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
2464 | DEFAULT_wxUSE_IMAGLIST=yes |
2465 | DEFAULT_wxUSE_LISTBOX=yes | |
2466 | DEFAULT_wxUSE_LISTCTRL=yes | |
2467 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2468 | DEFAULT_wxUSE_RADIOBOX=yes | |
2469 | DEFAULT_wxUSE_RADIOBTN=yes | |
2470 | DEFAULT_wxUSE_SASH=yes | |
2471 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2472 | DEFAULT_wxUSE_SLIDER=yes | |
2473 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2474 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2475 | DEFAULT_wxUSE_SPLITTER=yes |
2476 | DEFAULT_wxUSE_STATBMP=yes | |
2477 | DEFAULT_wxUSE_STATBOX=yes | |
2478 | DEFAULT_wxUSE_STATLINE=yes | |
2479 | DEFAULT_wxUSE_STATUSBAR=yes | |
2480 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 2481 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2482 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2483 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2484 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
2485 | DEFAULT_wxUSE_TREECTRL=yes |
2486 | ||
2487 | DEFAULT_wxUSE_UNICODE=no | |
2488 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2489 | ||
0046ff7c | 2490 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2491 | DEFAULT_wxUSE_GIF=yes |
2492 | DEFAULT_wxUSE_PCX=yes | |
2493 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 2494 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
2495 | fi |
2496 | ||
10f2d63a VZ |
2497 | for toolkit in `echo $ALL_TOOLKITS`; do |
2498 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
2499 | if test "x$LINE" != x ; then | |
2500 | has_toolkit_in_cache=1 | |
2501 | eval "DEFAULT_$LINE" | |
2502 | eval "CACHE_$toolkit=1" | |
2503 | fi | |
2504 | done | |
2505 | ||
1e487827 VS |
2506 | echo "$as_me:2506: checking for --enable-gui" >&5 |
2507 | echo $ECHO_N "checking for --enable-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2508 | no_cache=0 |
2509 | # Check whether --enable-gui or --disable-gui was given. | |
2510 | if test "${enable_gui+set}" = set; then | |
2511 | enableval="$enable_gui" | |
1e487827 | 2512 | |
10f2d63a VZ |
2513 | if test "$enableval" = yes; then |
2514 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2515 | else | |
2516 | ac_cv_use_gui='wxUSE_GUI=no' | |
2517 | fi | |
1e487827 | 2518 | |
10f2d63a | 2519 | else |
1e487827 | 2520 | |
10f2d63a VZ |
2521 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2522 | if test "x$LINE" != x ; then | |
2523 | eval "DEFAULT_$LINE" | |
2524 | else | |
2525 | no_cache=1 | |
2526 | fi | |
2527 | ||
2528 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2529 | |
1e487827 | 2530 | fi; |
10f2d63a VZ |
2531 | |
2532 | eval "$ac_cv_use_gui" | |
2533 | if test "$no_cache" != 1; then | |
2534 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2535 | fi | |
2536 | ||
2537 | if test "$wxUSE_GUI" = yes; then | |
1e487827 VS |
2538 | echo "$as_me:2538: result: yes" >&5 |
2539 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2540 | else |
1e487827 VS |
2541 | echo "$as_me:2541: result: no" >&5 |
2542 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2543 | fi |
10f2d63a | 2544 | |
b12915c1 | 2545 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
2546 | |
2547 | # Check whether --with-gtk or --without-gtk was given. | |
2548 | if test "${with_gtk+set}" = set; then | |
2549 | withval="$with_gtk" | |
2550 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1e487827 | 2551 | fi; |
10f2d63a VZ |
2552 | |
2553 | # Check whether --with-motif or --without-motif was given. | |
2554 | if test "${with_motif+set}" = set; then | |
2555 | withval="$with_motif" | |
2556 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1e487827 | 2557 | fi; |
10f2d63a | 2558 | |
b4085ce6 GD |
2559 | # Check whether --with-mac or --without-mac was given. |
2560 | if test "${with_mac+set}" = set; then | |
2561 | withval="$with_mac" | |
2562 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1e487827 | 2563 | fi; |
b4085ce6 | 2564 | |
10f2d63a VZ |
2565 | # Check whether --with-wine or --without-wine was given. |
2566 | if test "${with_wine+set}" = set; then | |
2567 | withval="$with_wine" | |
2568 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1e487827 | 2569 | fi; |
10f2d63a VZ |
2570 | |
2571 | # Check whether --with-cygwin or --without-cygwin was given. | |
2572 | if test "${with_cygwin+set}" = set; then | |
2573 | withval="$with_cygwin" | |
2574 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1e487827 | 2575 | fi; |
10f2d63a VZ |
2576 | |
2577 | # Check whether --with-mingw or --without-mingw was given. | |
2578 | if test "${with_mingw+set}" = set; then | |
2579 | withval="$with_mingw" | |
2580 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1e487827 | 2581 | fi; |
10f2d63a | 2582 | |
e07802fc VZ |
2583 | # Check whether --with-pm or --without-pm was given. |
2584 | if test "${with_pm+set}" = set; then | |
2585 | withval="$with_pm" | |
2586 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1e487827 | 2587 | fi; |
10f2d63a VZ |
2588 | |
2589 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
2590 | if test "${with_gtk_prefix+set}" = set; then | |
2591 | withval="$with_gtk_prefix" | |
2592 | gtk_config_prefix="$withval" | |
2593 | else | |
2594 | gtk_config_prefix="" | |
1e487827 | 2595 | fi; |
10f2d63a VZ |
2596 | |
2597 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
2598 | if test "${with_gtk_exec_prefix+set}" = set; then | |
2599 | withval="$with_gtk_exec_prefix" | |
2600 | gtk_config_exec_prefix="$withval" | |
2601 | else | |
2602 | gtk_config_exec_prefix="" | |
1e487827 | 2603 | fi; |
703e0a69 | 2604 | |
1e487827 VS |
2605 | echo "$as_me:2605: checking for --with-libpng" >&5 |
2606 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
703e0a69 | 2607 | no_cache=0 |
1e487827 VS |
2608 | |
2609 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2610 | if test "${with_libpng+set}" = set; then |
2611 | withval="$with_libpng" | |
1e487827 | 2612 | |
10f2d63a | 2613 | if test "$withval" = yes; then |
b12915c1 | 2614 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2615 | elif test "$withval" = no; then |
b12915c1 | 2616 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2617 | elif test "$withval" = sys; then |
2618 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2619 | else | |
1e487827 VS |
2620 | { { echo "$as_me:2620: error: Invalid value for --with-libpng: should be yes, no or sys" >&5 |
2621 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no or sys" >&2;} | |
2622 | { (exit 1); exit 1; }; } | |
10f2d63a | 2623 | fi |
1e487827 | 2624 | |
10f2d63a | 2625 | else |
1e487827 | 2626 | |
b12915c1 | 2627 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2628 | if test "x$LINE" != x ; then |
2629 | eval "DEFAULT_$LINE" | |
2630 | else | |
2631 | no_cache=1 | |
2632 | fi | |
2633 | ||
b12915c1 | 2634 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2635 | |
1e487827 | 2636 | fi; |
10f2d63a | 2637 | |
b12915c1 | 2638 | eval "$ac_cv_use_libpng" |
10f2d63a | 2639 | if test "$no_cache" != 1; then |
b12915c1 | 2640 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2641 | fi |
2642 | ||
b12915c1 | 2643 | if test "$wxUSE_LIBPNG" = yes; then |
1e487827 VS |
2644 | echo "$as_me:2644: result: yes" >&5 |
2645 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2646 | elif test "$wxUSE_LIBPNG" = no; then |
1e487827 VS |
2647 | echo "$as_me:2647: result: no" >&5 |
2648 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2649 | elif test "$wxUSE_LIBPNG" = sys; then |
1e487827 VS |
2650 | echo "$as_me:2650: result: system version" >&5 |
2651 | echo "${ECHO_T}system version" >&6 | |
422107f9 | 2652 | else |
1e487827 VS |
2653 | { { echo "$as_me:2653: error: Invalid value for --with-libpng: should be yes, no or sys" >&5 |
2654 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no or sys" >&2;} | |
2655 | { (exit 1); exit 1; }; } | |
10f2d63a | 2656 | fi |
10f2d63a | 2657 | |
1e487827 VS |
2658 | echo "$as_me:2658: checking for --with-libjpeg" >&5 |
2659 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2660 | no_cache=0 |
1e487827 VS |
2661 | |
2662 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2663 | if test "${with_libjpeg+set}" = set; then |
2664 | withval="$with_libjpeg" | |
1e487827 | 2665 | |
10f2d63a | 2666 | if test "$withval" = yes; then |
b12915c1 | 2667 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2668 | elif test "$withval" = no; then |
b12915c1 | 2669 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2670 | elif test "$withval" = sys; then |
2671 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2672 | else | |
1e487827 VS |
2673 | { { echo "$as_me:2673: error: Invalid value for --with-libjpeg: should be yes, no or sys" >&5 |
2674 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no or sys" >&2;} | |
2675 | { (exit 1); exit 1; }; } | |
10f2d63a | 2676 | fi |
1e487827 | 2677 | |
10f2d63a | 2678 | else |
1e487827 | 2679 | |
b12915c1 | 2680 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2681 | if test "x$LINE" != x ; then |
2682 | eval "DEFAULT_$LINE" | |
2683 | else | |
2684 | no_cache=1 | |
2685 | fi | |
2686 | ||
b12915c1 | 2687 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2688 | |
1e487827 | 2689 | fi; |
10f2d63a | 2690 | |
b12915c1 | 2691 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2692 | if test "$no_cache" != 1; then |
b12915c1 | 2693 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2694 | fi |
2695 | ||
b12915c1 | 2696 | if test "$wxUSE_LIBJPEG" = yes; then |
1e487827 VS |
2697 | echo "$as_me:2697: result: yes" >&5 |
2698 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2699 | elif test "$wxUSE_LIBJPEG" = no; then |
1e487827 VS |
2700 | echo "$as_me:2700: result: no" >&5 |
2701 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2702 | elif test "$wxUSE_LIBJPEG" = sys; then |
1e487827 VS |
2703 | echo "$as_me:2703: result: system version" >&5 |
2704 | echo "${ECHO_T}system version" >&6 | |
422107f9 | 2705 | else |
1e487827 VS |
2706 | { { echo "$as_me:2706: error: Invalid value for --with-libjpeg: should be yes, no or sys" >&5 |
2707 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no or sys" >&2;} | |
2708 | { (exit 1); exit 1; }; } | |
10f2d63a | 2709 | fi |
10f2d63a | 2710 | |
1e487827 VS |
2711 | echo "$as_me:2711: checking for --with-libtiff" >&5 |
2712 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2713 | no_cache=0 |
1e487827 VS |
2714 | |
2715 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2716 | if test "${with_libtiff+set}" = set; then |
2717 | withval="$with_libtiff" | |
1e487827 | 2718 | |
10f2d63a | 2719 | if test "$withval" = yes; then |
b12915c1 | 2720 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2721 | elif test "$withval" = no; then |
b12915c1 | 2722 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2723 | elif test "$withval" = sys; then |
2724 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2725 | else | |
1e487827 VS |
2726 | { { echo "$as_me:2726: error: Invalid value for --with-libtiff: should be yes, no or sys" >&5 |
2727 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no or sys" >&2;} | |
2728 | { (exit 1); exit 1; }; } | |
10f2d63a | 2729 | fi |
1e487827 | 2730 | |
10f2d63a | 2731 | else |
1e487827 | 2732 | |
b12915c1 | 2733 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2734 | if test "x$LINE" != x ; then |
2735 | eval "DEFAULT_$LINE" | |
2736 | else | |
2737 | no_cache=1 | |
2738 | fi | |
2739 | ||
b12915c1 | 2740 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2741 | |
1e487827 | 2742 | fi; |
10f2d63a | 2743 | |
b12915c1 | 2744 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2745 | if test "$no_cache" != 1; then |
b12915c1 | 2746 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2747 | fi |
2748 | ||
b12915c1 | 2749 | if test "$wxUSE_LIBTIFF" = yes; then |
1e487827 VS |
2750 | echo "$as_me:2750: result: yes" >&5 |
2751 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2752 | elif test "$wxUSE_LIBTIFF" = no; then |
1e487827 VS |
2753 | echo "$as_me:2753: result: no" >&5 |
2754 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2755 | elif test "$wxUSE_LIBTIFF" = sys; then |
1e487827 VS |
2756 | echo "$as_me:2756: result: system version" >&5 |
2757 | echo "${ECHO_T}system version" >&6 | |
0dcf9893 | 2758 | else |
1e487827 VS |
2759 | { { echo "$as_me:2759: error: Invalid value for --with-libtiff: should be yes, no or sys" >&5 |
2760 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no or sys" >&2;} | |
2761 | { (exit 1); exit 1; }; } | |
10f2d63a | 2762 | fi |
10f2d63a | 2763 | |
1e487827 VS |
2764 | echo "$as_me:2764: checking for --with-freetype" >&5 |
2765 | echo $ECHO_N "checking for --with-freetype... $ECHO_C" >&6 | |
3fed1840 | 2766 | no_cache=0 |
1e487827 VS |
2767 | |
2768 | # Check whether --with-freetype or --without-freetype was given. | |
3fed1840 RR |
2769 | if test "${with_freetype+set}" = set; then |
2770 | withval="$with_freetype" | |
1e487827 | 2771 | |
3fed1840 RR |
2772 | if test "$withval" = yes; then |
2773 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2774 | elif test "$withval" = no; then | |
2775 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2776 | elif test "$withval" = sys; then | |
2777 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
2778 | else | |
1e487827 VS |
2779 | { { echo "$as_me:2779: error: Invalid value for --with-freetype: should be yes, no or sys" >&5 |
2780 | echo "$as_me: error: Invalid value for --with-freetype: should be yes, no or sys" >&2;} | |
2781 | { (exit 1); exit 1; }; } | |
3fed1840 | 2782 | fi |
1e487827 | 2783 | |
3fed1840 | 2784 | else |
1e487827 | 2785 | |
3fed1840 RR |
2786 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2787 | if test "x$LINE" != x ; then | |
2788 | eval "DEFAULT_$LINE" | |
2789 | else | |
2790 | no_cache=1 | |
2791 | fi | |
2792 | ||
2793 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
3fed1840 | 2794 | |
1e487827 | 2795 | fi; |
3fed1840 RR |
2796 | |
2797 | eval "$ac_cv_use_freetype" | |
2798 | if test "$no_cache" != 1; then | |
2799 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2800 | fi | |
2801 | ||
2802 | if test "$wxUSE_FREETYPE" = yes; then | |
1e487827 VS |
2803 | echo "$as_me:2803: result: yes" >&5 |
2804 | echo "${ECHO_T}yes" >&6 | |
3fed1840 | 2805 | elif test "$wxUSE_FREETYPE" = no; then |
1e487827 VS |
2806 | echo "$as_me:2806: result: no" >&5 |
2807 | echo "${ECHO_T}no" >&6 | |
3fed1840 | 2808 | elif test "$wxUSE_FREETYPE" = sys; then |
1e487827 VS |
2809 | echo "$as_me:2809: result: system version" >&5 |
2810 | echo "${ECHO_T}system version" >&6 | |
3fed1840 | 2811 | else |
1e487827 VS |
2812 | { { echo "$as_me:2812: error: Invalid value for --with-freetype: should be yes, no or sys" >&5 |
2813 | echo "$as_me: error: Invalid value for --with-freetype: should be yes, no or sys" >&2;} | |
2814 | { (exit 1); exit 1; }; } | |
3fed1840 | 2815 | fi |
3fed1840 | 2816 | |
1e487827 VS |
2817 | echo "$as_me:2817: checking for --with-opengl" >&5 |
2818 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2819 | no_cache=0 |
1e487827 VS |
2820 | |
2821 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2822 | if test "${with_opengl+set}" = set; then |
2823 | withval="$with_opengl" | |
1e487827 | 2824 | |
10f2d63a | 2825 | if test "$withval" = yes; then |
b12915c1 | 2826 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2827 | else |
b12915c1 | 2828 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2829 | fi |
1e487827 | 2830 | |
10f2d63a | 2831 | else |
1e487827 | 2832 | |
b12915c1 | 2833 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2834 | if test "x$LINE" != x ; then |
2835 | eval "DEFAULT_$LINE" | |
2836 | else | |
2837 | no_cache=1 | |
2838 | fi | |
2839 | ||
b12915c1 | 2840 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2841 | |
1e487827 | 2842 | fi; |
10f2d63a | 2843 | |
b12915c1 | 2844 | eval "$ac_cv_use_opengl" |
10f2d63a | 2845 | if test "$no_cache" != 1; then |
b12915c1 | 2846 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2847 | fi |
2848 | ||
b12915c1 | 2849 | if test "$wxUSE_OPENGL" = yes; then |
1e487827 VS |
2850 | echo "$as_me:2850: result: yes" >&5 |
2851 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2852 | else |
1e487827 VS |
2853 | echo "$as_me:2853: result: no" >&5 |
2854 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2855 | fi |
10f2d63a | 2856 | |
b12915c1 VZ |
2857 | fi |
2858 | ||
1e487827 VS |
2859 | echo "$as_me:2859: checking for --with-dmalloc" >&5 |
2860 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
703e0a69 | 2861 | no_cache=0 |
1e487827 VS |
2862 | |
2863 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2864 | if test "${with_dmalloc+set}" = set; then |
2865 | withval="$with_dmalloc" | |
1e487827 | 2866 | |
c7a2bf27 | 2867 | if test "$withval" = yes; then |
b12915c1 | 2868 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2869 | else |
b12915c1 | 2870 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2871 | fi |
1e487827 | 2872 | |
c7a2bf27 | 2873 | else |
1e487827 | 2874 | |
b12915c1 | 2875 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2876 | if test "x$LINE" != x ; then |
2877 | eval "DEFAULT_$LINE" | |
2878 | else | |
2879 | no_cache=1 | |
2880 | fi | |
2881 | ||
b12915c1 | 2882 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2883 | |
1e487827 | 2884 | fi; |
c7a2bf27 | 2885 | |
b12915c1 | 2886 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2887 | if test "$no_cache" != 1; then |
b12915c1 | 2888 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2889 | fi |
2890 | ||
b12915c1 | 2891 | if test "$wxUSE_DMALLOC" = yes; then |
1e487827 VS |
2892 | echo "$as_me:2892: result: yes" >&5 |
2893 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2894 | else |
1e487827 VS |
2895 | echo "$as_me:2895: result: no" >&5 |
2896 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2897 | fi |
c7a2bf27 | 2898 | |
1e487827 VS |
2899 | echo "$as_me:2899: checking for --with-zlib" >&5 |
2900 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2901 | no_cache=0 |
1e487827 VS |
2902 | |
2903 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2904 | if test "${with_zlib+set}" = set; then |
2905 | withval="$with_zlib" | |
1e487827 | 2906 | |
10f2d63a | 2907 | if test "$withval" = yes; then |
b12915c1 | 2908 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2909 | elif test "$withval" = no; then |
b12915c1 | 2910 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2911 | elif test "$withval" = sys; then |
2912 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2913 | else | |
1e487827 VS |
2914 | { { echo "$as_me:2914: error: Invalid value for --with-zlib: should be yes, no or sys" >&5 |
2915 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no or sys" >&2;} | |
2916 | { (exit 1); exit 1; }; } | |
10f2d63a | 2917 | fi |
1e487827 | 2918 | |
10f2d63a | 2919 | else |
1e487827 | 2920 | |
b12915c1 | 2921 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2922 | if test "x$LINE" != x ; then |
2923 | eval "DEFAULT_$LINE" | |
2924 | else | |
2925 | no_cache=1 | |
2926 | fi | |
2927 | ||
b12915c1 | 2928 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2929 | |
1e487827 | 2930 | fi; |
10f2d63a | 2931 | |
b12915c1 | 2932 | eval "$ac_cv_use_zlib" |
10f2d63a | 2933 | if test "$no_cache" != 1; then |
b12915c1 | 2934 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2935 | fi |
2936 | ||
b12915c1 | 2937 | if test "$wxUSE_ZLIB" = yes; then |
1e487827 VS |
2938 | echo "$as_me:2938: result: yes" >&5 |
2939 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2940 | elif test "$wxUSE_ZLIB" = no; then |
1e487827 VS |
2941 | echo "$as_me:2941: result: no" >&5 |
2942 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2943 | elif test "$wxUSE_ZLIB" = sys; then |
1e487827 VS |
2944 | echo "$as_me:2944: result: system version" >&5 |
2945 | echo "${ECHO_T}system version" >&6 | |
422107f9 | 2946 | else |
1e487827 VS |
2947 | { { echo "$as_me:2947: error: Invalid value for --with-zlib: should be yes, no or sys" >&5 |
2948 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no or sys" >&2;} | |
2949 | { (exit 1); exit 1; }; } | |
10f2d63a | 2950 | fi |
10f2d63a | 2951 | |
1e487827 VS |
2952 | echo "$as_me:2952: checking for --with-odbc" >&5 |
2953 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2954 | no_cache=0 |
1e487827 VS |
2955 | |
2956 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2957 | if test "${with_odbc+set}" = set; then |
2958 | withval="$with_odbc" | |
1e487827 | 2959 | |
10f2d63a VZ |
2960 | if test "$withval" = yes; then |
2961 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2962 | else | |
2963 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2964 | fi | |
1e487827 | 2965 | |
10f2d63a | 2966 | else |
1e487827 | 2967 | |
10f2d63a VZ |
2968 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2969 | if test "x$LINE" != x ; then | |
2970 | eval "DEFAULT_$LINE" | |
2971 | else | |
2972 | no_cache=1 | |
2973 | fi | |
2974 | ||
2975 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 2976 | |
1e487827 | 2977 | fi; |
10f2d63a VZ |
2978 | |
2979 | eval "$ac_cv_use_odbc" | |
2980 | if test "$no_cache" != 1; then | |
2981 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2982 | fi | |
2983 | ||
2984 | if test "$wxUSE_ODBC" = yes; then | |
1e487827 VS |
2985 | echo "$as_me:2985: result: yes" >&5 |
2986 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2987 | else |
1e487827 VS |
2988 | echo "$as_me:2988: result: no" >&5 |
2989 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2990 | fi |
10f2d63a | 2991 | |
1e487827 VS |
2992 | echo "$as_me:2992: checking for --enable-shared" >&5 |
2993 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
2994 | no_cache=0 |
2995 | # Check whether --enable-shared or --disable-shared was given. | |
2996 | if test "${enable_shared+set}" = set; then | |
2997 | enableval="$enable_shared" | |
1e487827 | 2998 | |
10f2d63a VZ |
2999 | if test "$enableval" = yes; then |
3000 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3001 | else | |
3002 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3003 | fi | |
1e487827 | 3004 | |
10f2d63a | 3005 | else |
1e487827 | 3006 | |
10f2d63a VZ |
3007 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3008 | if test "x$LINE" != x ; then | |
3009 | eval "DEFAULT_$LINE" | |
3010 | else | |
3011 | no_cache=1 | |
3012 | fi | |
3013 | ||
3014 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3015 | |
1e487827 | 3016 | fi; |
10f2d63a VZ |
3017 | |
3018 | eval "$ac_cv_use_shared" | |
3019 | if test "$no_cache" != 1; then | |
3020 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3021 | fi | |
3022 | ||
3023 | if test "$wxUSE_SHARED" = yes; then | |
1e487827 VS |
3024 | echo "$as_me:3024: result: yes" >&5 |
3025 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3026 | else |
1e487827 VS |
3027 | echo "$as_me:3027: result: no" >&5 |
3028 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3029 | fi |
10f2d63a | 3030 | |
1e487827 VS |
3031 | echo "$as_me:3031: checking for --enable-burnt_name" >&5 |
3032 | echo $ECHO_N "checking for --enable-burnt_name... $ECHO_C" >&6 | |
00cf1208 RR |
3033 | no_cache=0 |
3034 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
3035 | if test "${enable_burnt_name+set}" = set; then | |
3036 | enableval="$enable_burnt_name" | |
1e487827 | 3037 | |
00cf1208 RR |
3038 | if test "$enableval" = yes; then |
3039 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
3040 | else | |
3041 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
3042 | fi | |
1e487827 | 3043 | |
00cf1208 | 3044 | else |
1e487827 | 3045 | |
00cf1208 RR |
3046 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
3047 | if test "x$LINE" != x ; then | |
3048 | eval "DEFAULT_$LINE" | |
3049 | else | |
3050 | no_cache=1 | |
3051 | fi | |
3052 | ||
3053 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
00cf1208 | 3054 | |
1e487827 | 3055 | fi; |
00cf1208 RR |
3056 | |
3057 | eval "$ac_cv_use_burnt_name" | |
3058 | if test "$no_cache" != 1; then | |
3059 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
3060 | fi | |
3061 | ||
3062 | if test "$wxUSE_BURNT_NAME" = yes; then | |
1e487827 VS |
3063 | echo "$as_me:3063: result: yes" >&5 |
3064 | echo "${ECHO_T}yes" >&6 | |
00cf1208 | 3065 | else |
1e487827 VS |
3066 | echo "$as_me:3066: result: no" >&5 |
3067 | echo "${ECHO_T}no" >&6 | |
00cf1208 | 3068 | fi |
00cf1208 | 3069 | |
1e487827 VS |
3070 | echo "$as_me:3070: checking for --enable-optimise" >&5 |
3071 | echo $ECHO_N "checking for --enable-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3072 | no_cache=0 |
3073 | # Check whether --enable-optimise or --disable-optimise was given. | |
3074 | if test "${enable_optimise+set}" = set; then | |
3075 | enableval="$enable_optimise" | |
1e487827 | 3076 | |
10f2d63a VZ |
3077 | if test "$enableval" = yes; then |
3078 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3079 | else | |
3080 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3081 | fi | |
1e487827 | 3082 | |
10f2d63a | 3083 | else |
1e487827 | 3084 | |
10f2d63a VZ |
3085 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3086 | if test "x$LINE" != x ; then | |
3087 | eval "DEFAULT_$LINE" | |
3088 | else | |
3089 | no_cache=1 | |
3090 | fi | |
3091 | ||
3092 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3093 | |
1e487827 | 3094 | fi; |
10f2d63a VZ |
3095 | |
3096 | eval "$ac_cv_use_optimise" | |
3097 | if test "$no_cache" != 1; then | |
3098 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3099 | fi | |
3100 | ||
3101 | if test "$wxUSE_OPTIMISE" = yes; then | |
1e487827 VS |
3102 | echo "$as_me:3102: result: yes" >&5 |
3103 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3104 | else |
1e487827 VS |
3105 | echo "$as_me:3105: result: no" >&5 |
3106 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3107 | fi |
10f2d63a | 3108 | |
1e487827 VS |
3109 | echo "$as_me:3109: checking for --enable-debug" >&5 |
3110 | echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3111 | no_cache=0 |
3112 | # Check whether --enable-debug or --disable-debug was given. | |
3113 | if test "${enable_debug+set}" = set; then | |
3114 | enableval="$enable_debug" | |
1e487827 | 3115 | |
10f2d63a VZ |
3116 | if test "$enableval" = yes; then |
3117 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3118 | else | |
3119 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3120 | fi | |
1e487827 | 3121 | |
10f2d63a | 3122 | else |
1e487827 | 3123 | |
10f2d63a VZ |
3124 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3125 | if test "x$LINE" != x ; then | |
3126 | eval "DEFAULT_$LINE" | |
3127 | else | |
3128 | no_cache=1 | |
3129 | fi | |
3130 | ||
3131 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3132 | |
1e487827 | 3133 | fi; |
10f2d63a VZ |
3134 | |
3135 | eval "$ac_cv_use_debug" | |
3136 | if test "$no_cache" != 1; then | |
3137 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3138 | fi | |
3139 | ||
3140 | if test "$wxUSE_DEBUG" = yes; then | |
1e487827 VS |
3141 | echo "$as_me:3141: result: yes" >&5 |
3142 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3143 | else |
1e487827 VS |
3144 | echo "$as_me:3144: result: no" >&5 |
3145 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3146 | fi |
10f2d63a VZ |
3147 | |
3148 | if test "$wxUSE_DEBUG" = "yes"; then | |
3149 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3150 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3151 | elif test "$wxUSE_DEBUG" = "no"; then | |
3152 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3153 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3154 | fi | |
3155 | ||
1e487827 VS |
3156 | echo "$as_me:3156: checking for --enable-debug_flag" >&5 |
3157 | echo $ECHO_N "checking for --enable-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3158 | no_cache=0 |
3159 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3160 | if test "${enable_debug_flag+set}" = set; then | |
3161 | enableval="$enable_debug_flag" | |
1e487827 | 3162 | |
10f2d63a VZ |
3163 | if test "$enableval" = yes; then |
3164 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3165 | else | |
3166 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3167 | fi | |
1e487827 | 3168 | |
10f2d63a | 3169 | else |
1e487827 | 3170 | |
10f2d63a VZ |
3171 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3172 | if test "x$LINE" != x ; then | |
3173 | eval "DEFAULT_$LINE" | |
3174 | else | |
3175 | no_cache=1 | |
3176 | fi | |
3177 | ||
3178 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3179 | |
1e487827 | 3180 | fi; |
10f2d63a VZ |
3181 | |
3182 | eval "$ac_cv_use_debug_flag" | |
3183 | if test "$no_cache" != 1; then | |
3184 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3185 | fi | |
3186 | ||
3187 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
1e487827 VS |
3188 | echo "$as_me:3188: result: yes" >&5 |
3189 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3190 | else |
1e487827 VS |
3191 | echo "$as_me:3191: result: no" >&5 |
3192 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3193 | fi |
10f2d63a | 3194 | |
1e487827 VS |
3195 | echo "$as_me:3195: checking for --enable-debug_info" >&5 |
3196 | echo $ECHO_N "checking for --enable-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3197 | no_cache=0 |
3198 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3199 | if test "${enable_debug_info+set}" = set; then | |
3200 | enableval="$enable_debug_info" | |
1e487827 | 3201 | |
10f2d63a VZ |
3202 | if test "$enableval" = yes; then |
3203 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3204 | else | |
3205 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3206 | fi | |
1e487827 | 3207 | |
10f2d63a | 3208 | else |
1e487827 | 3209 | |
10f2d63a VZ |
3210 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3211 | if test "x$LINE" != x ; then | |
3212 | eval "DEFAULT_$LINE" | |
3213 | else | |
3214 | no_cache=1 | |
3215 | fi | |
3216 | ||
3217 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3218 | |
1e487827 | 3219 | fi; |
10f2d63a VZ |
3220 | |
3221 | eval "$ac_cv_use_debug_info" | |
3222 | if test "$no_cache" != 1; then | |
3223 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3224 | fi | |
3225 | ||
3226 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
1e487827 VS |
3227 | echo "$as_me:3227: result: yes" >&5 |
3228 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3229 | else |
1e487827 VS |
3230 | echo "$as_me:3230: result: no" >&5 |
3231 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3232 | fi |
10f2d63a | 3233 | |
1e487827 VS |
3234 | echo "$as_me:3234: checking for --enable-debug_gdb" >&5 |
3235 | echo $ECHO_N "checking for --enable-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3236 | no_cache=0 |
3237 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3238 | if test "${enable_debug_gdb+set}" = set; then | |
3239 | enableval="$enable_debug_gdb" | |
1e487827 | 3240 | |
10f2d63a VZ |
3241 | if test "$enableval" = yes; then |
3242 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3243 | else | |
3244 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3245 | fi | |
1e487827 | 3246 | |
10f2d63a | 3247 | else |
1e487827 | 3248 | |
10f2d63a VZ |
3249 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3250 | if test "x$LINE" != x ; then | |
3251 | eval "DEFAULT_$LINE" | |
3252 | else | |
3253 | no_cache=1 | |
3254 | fi | |
3255 | ||
3256 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3257 | |
1e487827 | 3258 | fi; |
10f2d63a VZ |
3259 | |
3260 | eval "$ac_cv_use_debug_gdb" | |
3261 | if test "$no_cache" != 1; then | |
3262 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3263 | fi | |
3264 | ||
3265 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
1e487827 VS |
3266 | echo "$as_me:3266: result: yes" >&5 |
3267 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3268 | else |
1e487827 VS |
3269 | echo "$as_me:3269: result: no" >&5 |
3270 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3271 | fi |
10f2d63a | 3272 | |
1e487827 VS |
3273 | echo "$as_me:3273: checking for --enable-debug_cntxt" >&5 |
3274 | echo $ECHO_N "checking for --enable-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3275 | no_cache=0 |
3276 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3277 | if test "${enable_debug_cntxt+set}" = set; then | |
3278 | enableval="$enable_debug_cntxt" | |
1e487827 | 3279 | |
10f2d63a VZ |
3280 | if test "$enableval" = yes; then |
3281 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3282 | else | |
3283 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3284 | fi | |
1e487827 | 3285 | |
10f2d63a | 3286 | else |
1e487827 | 3287 | |
10f2d63a VZ |
3288 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3296 | |
1e487827 | 3297 | fi; |
10f2d63a VZ |
3298 | |
3299 | eval "$ac_cv_use_debug_cntxt" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
1e487827 VS |
3305 | echo "$as_me:3305: result: yes" >&5 |
3306 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3307 | else |
1e487827 VS |
3308 | echo "$as_me:3308: result: no" >&5 |
3309 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3310 | fi |
10f2d63a | 3311 | |
1e487827 VS |
3312 | echo "$as_me:3312: checking for --enable-mem_tracing" >&5 |
3313 | echo $ECHO_N "checking for --enable-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3314 | no_cache=0 |
3315 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3316 | if test "${enable_mem_tracing+set}" = set; then | |
3317 | enableval="$enable_mem_tracing" | |
1e487827 | 3318 | |
10f2d63a VZ |
3319 | if test "$enableval" = yes; then |
3320 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3321 | else | |
3322 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3323 | fi | |
1e487827 | 3324 | |
10f2d63a | 3325 | else |
1e487827 | 3326 | |
10f2d63a VZ |
3327 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3328 | if test "x$LINE" != x ; then | |
3329 | eval "DEFAULT_$LINE" | |
3330 | else | |
3331 | no_cache=1 | |
3332 | fi | |
3333 | ||
3334 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3335 | |
1e487827 | 3336 | fi; |
10f2d63a VZ |
3337 | |
3338 | eval "$ac_cv_use_mem_tracing" | |
3339 | if test "$no_cache" != 1; then | |
3340 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3341 | fi | |
3342 | ||
3343 | if test "$wxUSE_MEM_TRACING" = yes; then | |
1e487827 VS |
3344 | echo "$as_me:3344: result: yes" >&5 |
3345 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3346 | else |
1e487827 VS |
3347 | echo "$as_me:3347: result: no" >&5 |
3348 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3349 | fi |
10f2d63a | 3350 | |
1e487827 VS |
3351 | echo "$as_me:3351: checking for --enable-profile" >&5 |
3352 | echo $ECHO_N "checking for --enable-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3353 | no_cache=0 |
3354 | # Check whether --enable-profile or --disable-profile was given. | |
3355 | if test "${enable_profile+set}" = set; then | |
3356 | enableval="$enable_profile" | |
1e487827 | 3357 | |
10f2d63a VZ |
3358 | if test "$enableval" = yes; then |
3359 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3360 | else | |
3361 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3362 | fi | |
1e487827 | 3363 | |
10f2d63a | 3364 | else |
1e487827 | 3365 | |
10f2d63a VZ |
3366 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3367 | if test "x$LINE" != x ; then | |
3368 | eval "DEFAULT_$LINE" | |
3369 | else | |
3370 | no_cache=1 | |
3371 | fi | |
3372 | ||
3373 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3374 | |
1e487827 | 3375 | fi; |
10f2d63a VZ |
3376 | |
3377 | eval "$ac_cv_use_profile" | |
3378 | if test "$no_cache" != 1; then | |
3379 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3380 | fi | |
3381 | ||
3382 | if test "$wxUSE_PROFILE" = yes; then | |
1e487827 VS |
3383 | echo "$as_me:3383: result: yes" >&5 |
3384 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3385 | else |
1e487827 VS |
3386 | echo "$as_me:3386: result: no" >&5 |
3387 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3388 | fi |
10f2d63a | 3389 | |
1e487827 VS |
3390 | echo "$as_me:3390: checking for --enable-no_rtti" >&5 |
3391 | echo $ECHO_N "checking for --enable-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3392 | no_cache=0 |
3393 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3394 | if test "${enable_no_rtti+set}" = set; then | |
3395 | enableval="$enable_no_rtti" | |
1e487827 | 3396 | |
10f2d63a VZ |
3397 | if test "$enableval" = yes; then |
3398 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3399 | else | |
3400 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3401 | fi | |
1e487827 | 3402 | |
10f2d63a | 3403 | else |
1e487827 | 3404 | |
10f2d63a VZ |
3405 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3406 | if test "x$LINE" != x ; then | |
3407 | eval "DEFAULT_$LINE" | |
3408 | else | |
3409 | no_cache=1 | |
3410 | fi | |
3411 | ||
3412 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3413 | |
1e487827 | 3414 | fi; |
10f2d63a VZ |
3415 | |
3416 | eval "$ac_cv_use_no_rtti" | |
3417 | if test "$no_cache" != 1; then | |
3418 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3419 | fi | |
3420 | ||
3421 | if test "$wxUSE_NO_RTTI" = yes; then | |
1e487827 VS |
3422 | echo "$as_me:3422: result: yes" >&5 |
3423 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3424 | else |
1e487827 VS |
3425 | echo "$as_me:3425: result: no" >&5 |
3426 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3427 | fi |
10f2d63a | 3428 | |
1e487827 VS |
3429 | echo "$as_me:3429: checking for --enable-no_exceptions" >&5 |
3430 | echo $ECHO_N "checking for --enable-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3431 | no_cache=0 |
3432 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3433 | if test "${enable_no_exceptions+set}" = set; then | |
3434 | enableval="$enable_no_exceptions" | |
1e487827 | 3435 | |
10f2d63a VZ |
3436 | if test "$enableval" = yes; then |
3437 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3438 | else | |
3439 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3440 | fi | |
1e487827 | 3441 | |
10f2d63a | 3442 | else |
1e487827 | 3443 | |
10f2d63a VZ |
3444 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3445 | if test "x$LINE" != x ; then | |
3446 | eval "DEFAULT_$LINE" | |
3447 | else | |
3448 | no_cache=1 | |
3449 | fi | |
3450 | ||
3451 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3452 | |
1e487827 | 3453 | fi; |
10f2d63a VZ |
3454 | |
3455 | eval "$ac_cv_use_no_exceptions" | |
3456 | if test "$no_cache" != 1; then | |
3457 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3458 | fi | |
3459 | ||
3460 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
1e487827 VS |
3461 | echo "$as_me:3461: result: yes" >&5 |
3462 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3463 | else |
1e487827 VS |
3464 | echo "$as_me:3464: result: no" >&5 |
3465 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3466 | fi |
10f2d63a | 3467 | |
1e487827 VS |
3468 | echo "$as_me:3468: checking for --enable-permissive" >&5 |
3469 | echo $ECHO_N "checking for --enable-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3470 | no_cache=0 |
3471 | # Check whether --enable-permissive or --disable-permissive was given. | |
3472 | if test "${enable_permissive+set}" = set; then | |
3473 | enableval="$enable_permissive" | |
1e487827 | 3474 | |
10f2d63a VZ |
3475 | if test "$enableval" = yes; then |
3476 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3477 | else | |
3478 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3479 | fi | |
1e487827 | 3480 | |
10f2d63a | 3481 | else |
1e487827 | 3482 | |
10f2d63a VZ |
3483 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3484 | if test "x$LINE" != x ; then | |
3485 | eval "DEFAULT_$LINE" | |
3486 | else | |
3487 | no_cache=1 | |
3488 | fi | |
3489 | ||
3490 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3491 | |
1e487827 | 3492 | fi; |
10f2d63a VZ |
3493 | |
3494 | eval "$ac_cv_use_permissive" | |
3495 | if test "$no_cache" != 1; then | |
3496 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3497 | fi | |
3498 | ||
3499 | if test "$wxUSE_PERMISSIVE" = yes; then | |
1e487827 VS |
3500 | echo "$as_me:3500: result: yes" >&5 |
3501 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3502 | else |
1e487827 VS |
3503 | echo "$as_me:3503: result: no" >&5 |
3504 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3505 | fi |
10f2d63a | 3506 | |
1e487827 VS |
3507 | echo "$as_me:3507: checking for --enable-no_deps" >&5 |
3508 | echo $ECHO_N "checking for --enable-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3509 | no_cache=0 |
3510 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3511 | if test "${enable_no_deps+set}" = set; then | |
3512 | enableval="$enable_no_deps" | |
1e487827 | 3513 | |
10f2d63a VZ |
3514 | if test "$enableval" = yes; then |
3515 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3516 | else | |
3517 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3518 | fi | |
1e487827 | 3519 | |
10f2d63a | 3520 | else |
1e487827 | 3521 | |
10f2d63a VZ |
3522 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3523 | if test "x$LINE" != x ; then | |
3524 | eval "DEFAULT_$LINE" | |
3525 | else | |
3526 | no_cache=1 | |
3527 | fi | |
3528 | ||
3529 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3530 | |
1e487827 | 3531 | fi; |
10f2d63a VZ |
3532 | |
3533 | eval "$ac_cv_use_no_deps" | |
3534 | if test "$no_cache" != 1; then | |
3535 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3536 | fi | |
3537 | ||
3538 | if test "$wxUSE_NO_DEPS" = yes; then | |
1e487827 VS |
3539 | echo "$as_me:3539: result: yes" >&5 |
3540 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3541 | else |
1e487827 VS |
3542 | echo "$as_me:3542: result: no" >&5 |
3543 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3544 | fi |
10f2d63a | 3545 | |
1e487827 VS |
3546 | echo "$as_me:3546: checking for --enable-intl" >&5 |
3547 | echo $ECHO_N "checking for --enable-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3548 | no_cache=0 |
3549 | # Check whether --enable-intl or --disable-intl was given. | |
3550 | if test "${enable_intl+set}" = set; then | |
3551 | enableval="$enable_intl" | |
1e487827 | 3552 | |
10f2d63a VZ |
3553 | if test "$enableval" = yes; then |
3554 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3555 | else | |
3556 | ac_cv_use_intl='wxUSE_INTL=no' | |
3557 | fi | |
1e487827 | 3558 | |
10f2d63a | 3559 | else |
1e487827 | 3560 | |
10f2d63a VZ |
3561 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3562 | if test "x$LINE" != x ; then | |
3563 | eval "DEFAULT_$LINE" | |
3564 | else | |
3565 | no_cache=1 | |
3566 | fi | |
3567 | ||
3568 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3569 | |
1e487827 | 3570 | fi; |
10f2d63a VZ |
3571 | |
3572 | eval "$ac_cv_use_intl" | |
3573 | if test "$no_cache" != 1; then | |
3574 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3575 | fi | |
3576 | ||
3577 | if test "$wxUSE_INTL" = yes; then | |
1e487827 VS |
3578 | echo "$as_me:3578: result: yes" >&5 |
3579 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3580 | else |
1e487827 VS |
3581 | echo "$as_me:3581: result: no" >&5 |
3582 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3583 | fi |
10f2d63a | 3584 | |
1e487827 VS |
3585 | echo "$as_me:3585: checking for --enable-config" >&5 |
3586 | echo $ECHO_N "checking for --enable-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3587 | no_cache=0 |
3588 | # Check whether --enable-config or --disable-config was given. | |
3589 | if test "${enable_config+set}" = set; then | |
3590 | enableval="$enable_config" | |
1e487827 | 3591 | |
10f2d63a VZ |
3592 | if test "$enableval" = yes; then |
3593 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3594 | else | |
3595 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3596 | fi | |
1e487827 | 3597 | |
10f2d63a | 3598 | else |
1e487827 | 3599 | |
10f2d63a VZ |
3600 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3601 | if test "x$LINE" != x ; then | |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
3607 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3608 | |
1e487827 | 3609 | fi; |
10f2d63a VZ |
3610 | |
3611 | eval "$ac_cv_use_config" | |
3612 | if test "$no_cache" != 1; then | |
3613 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3614 | fi | |
3615 | ||
3616 | if test "$wxUSE_CONFIG" = yes; then | |
1e487827 VS |
3617 | echo "$as_me:3617: result: yes" >&5 |
3618 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3619 | else |
1e487827 VS |
3620 | echo "$as_me:3620: result: no" >&5 |
3621 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3622 | fi |
b12915c1 | 3623 | |
1e487827 VS |
3624 | echo "$as_me:3624: checking for --enable-sockets" >&5 |
3625 | echo $ECHO_N "checking for --enable-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
3626 | no_cache=0 |
3627 | # Check whether --enable-sockets or --disable-sockets was given. | |
3628 | if test "${enable_sockets+set}" = set; then | |
3629 | enableval="$enable_sockets" | |
1e487827 | 3630 | |
10f2d63a VZ |
3631 | if test "$enableval" = yes; then |
3632 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3633 | else | |
3634 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3635 | fi | |
1e487827 | 3636 | |
10f2d63a | 3637 | else |
1e487827 | 3638 | |
10f2d63a VZ |
3639 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3640 | if test "x$LINE" != x ; then | |
3641 | eval "DEFAULT_$LINE" | |
3642 | else | |
3643 | no_cache=1 | |
3644 | fi | |
3645 | ||
3646 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 3647 | |
1e487827 | 3648 | fi; |
10f2d63a VZ |
3649 | |
3650 | eval "$ac_cv_use_sockets" | |
3651 | if test "$no_cache" != 1; then | |
3652 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3653 | fi | |
3654 | ||
3655 | if test "$wxUSE_SOCKETS" = yes; then | |
1e487827 VS |
3656 | echo "$as_me:3656: result: yes" >&5 |
3657 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3658 | else |
1e487827 VS |
3659 | echo "$as_me:3659: result: no" >&5 |
3660 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3661 | fi |
b12915c1 | 3662 | |
1e487827 VS |
3663 | echo "$as_me:3663: checking for --enable-ipc" >&5 |
3664 | echo $ECHO_N "checking for --enable-ipc... $ECHO_C" >&6 | |
10f2d63a | 3665 | no_cache=0 |
eb4efbdc VZ |
3666 | # Check whether --enable-ipc or --disable-ipc was given. |
3667 | if test "${enable_ipc+set}" = set; then | |
3668 | enableval="$enable_ipc" | |
1e487827 | 3669 | |
10f2d63a | 3670 | if test "$enableval" = yes; then |
eb4efbdc | 3671 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3672 | else |
eb4efbdc | 3673 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3674 | fi |
1e487827 | 3675 | |
10f2d63a | 3676 | else |
1e487827 | 3677 | |
eb4efbdc | 3678 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3679 | if test "x$LINE" != x ; then |
3680 | eval "DEFAULT_$LINE" | |
3681 | else | |
3682 | no_cache=1 | |
3683 | fi | |
3684 | ||
eb4efbdc | 3685 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 3686 | |
1e487827 | 3687 | fi; |
10f2d63a | 3688 | |
eb4efbdc | 3689 | eval "$ac_cv_use_ipc" |
10f2d63a | 3690 | if test "$no_cache" != 1; then |
eb4efbdc | 3691 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3692 | fi |
3693 | ||
eb4efbdc | 3694 | if test "$wxUSE_IPC" = yes; then |
1e487827 VS |
3695 | echo "$as_me:3695: result: yes" >&5 |
3696 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3697 | else |
1e487827 VS |
3698 | echo "$as_me:3698: result: no" >&5 |
3699 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3700 | fi |
eb4efbdc | 3701 | |
1e487827 VS |
3702 | echo "$as_me:3702: checking for --enable-dialupman" >&5 |
3703 | echo $ECHO_N "checking for --enable-dialupman... $ECHO_C" >&6 | |
10f2d63a | 3704 | no_cache=0 |
eb4efbdc VZ |
3705 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3706 | if test "${enable_dialupman+set}" = set; then | |
3707 | enableval="$enable_dialupman" | |
1e487827 | 3708 | |
10f2d63a | 3709 | if test "$enableval" = yes; then |
eb4efbdc | 3710 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3711 | else |
eb4efbdc | 3712 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3713 | fi |
1e487827 | 3714 | |
10f2d63a | 3715 | else |
1e487827 | 3716 | |
eb4efbdc | 3717 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3718 | if test "x$LINE" != x ; then |
3719 | eval "DEFAULT_$LINE" | |
3720 | else | |
3721 | no_cache=1 | |
3722 | fi | |
3723 | ||
eb4efbdc | 3724 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 3725 | |
1e487827 | 3726 | fi; |
10f2d63a | 3727 | |
eb4efbdc | 3728 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3729 | if test "$no_cache" != 1; then |
eb4efbdc | 3730 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3731 | fi |
3732 | ||
eb4efbdc | 3733 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
1e487827 VS |
3734 | echo "$as_me:3734: result: yes" >&5 |
3735 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3736 | else |
1e487827 VS |
3737 | echo "$as_me:3737: result: no" >&5 |
3738 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3739 | fi |
10f2d63a | 3740 | |
1e487827 VS |
3741 | echo "$as_me:3741: checking for --enable-apple_ieee" >&5 |
3742 | echo $ECHO_N "checking for --enable-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
3743 | no_cache=0 |
3744 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3745 | if test "${enable_apple_ieee+set}" = set; then | |
3746 | enableval="$enable_apple_ieee" | |
1e487827 | 3747 | |
10f2d63a VZ |
3748 | if test "$enableval" = yes; then |
3749 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3750 | else | |
3751 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3752 | fi | |
1e487827 | 3753 | |
10f2d63a | 3754 | else |
1e487827 | 3755 | |
10f2d63a VZ |
3756 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3757 | if test "x$LINE" != x ; then | |
3758 | eval "DEFAULT_$LINE" | |
3759 | else | |
3760 | no_cache=1 | |
3761 | fi | |
3762 | ||
3763 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 3764 | |
1e487827 | 3765 | fi; |
10f2d63a VZ |
3766 | |
3767 | eval "$ac_cv_use_apple_ieee" | |
3768 | if test "$no_cache" != 1; then | |
3769 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3770 | fi | |
3771 | ||
3772 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
1e487827 VS |
3773 | echo "$as_me:3773: result: yes" >&5 |
3774 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3775 | else |
1e487827 VS |
3776 | echo "$as_me:3776: result: no" >&5 |
3777 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3778 | fi |
10f2d63a | 3779 | |
1e487827 VS |
3780 | echo "$as_me:3780: checking for --enable-timedate" >&5 |
3781 | echo $ECHO_N "checking for --enable-timedate... $ECHO_C" >&6 | |
10f2d63a VZ |
3782 | no_cache=0 |
3783 | # Check whether --enable-timedate or --disable-timedate was given. | |
3784 | if test "${enable_timedate+set}" = set; then | |
3785 | enableval="$enable_timedate" | |
1e487827 | 3786 | |
10f2d63a VZ |
3787 | if test "$enableval" = yes; then |
3788 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3789 | else | |
3790 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3791 | fi | |
1e487827 | 3792 | |
10f2d63a | 3793 | else |
1e487827 | 3794 | |
10f2d63a VZ |
3795 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3796 | if test "x$LINE" != x ; then | |
3797 | eval "DEFAULT_$LINE" | |
3798 | else | |
3799 | no_cache=1 | |
3800 | fi | |
3801 | ||
3802 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
10f2d63a | 3803 | |
1e487827 | 3804 | fi; |
10f2d63a VZ |
3805 | |
3806 | eval "$ac_cv_use_timedate" | |
3807 | if test "$no_cache" != 1; then | |
3808 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3809 | fi | |
3810 | ||
3811 | if test "$wxUSE_TIMEDATE" = yes; then | |
1e487827 VS |
3812 | echo "$as_me:3812: result: yes" >&5 |
3813 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3814 | else |
1e487827 VS |
3815 | echo "$as_me:3815: result: no" >&5 |
3816 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3817 | fi |
10f2d63a | 3818 | |
1e487827 VS |
3819 | echo "$as_me:3819: checking for --enable-wave" >&5 |
3820 | echo $ECHO_N "checking for --enable-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
3821 | no_cache=0 |
3822 | # Check whether --enable-wave or --disable-wave was given. | |
3823 | if test "${enable_wave+set}" = set; then | |
3824 | enableval="$enable_wave" | |
1e487827 | 3825 | |
10f2d63a VZ |
3826 | if test "$enableval" = yes; then |
3827 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3828 | else | |
3829 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3830 | fi | |
1e487827 | 3831 | |
10f2d63a | 3832 | else |
1e487827 | 3833 | |
10f2d63a VZ |
3834 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3835 | if test "x$LINE" != x ; then | |
3836 | eval "DEFAULT_$LINE" | |
3837 | else | |
3838 | no_cache=1 | |
3839 | fi | |
3840 | ||
3841 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 3842 | |
1e487827 | 3843 | fi; |
10f2d63a VZ |
3844 | |
3845 | eval "$ac_cv_use_wave" | |
3846 | if test "$no_cache" != 1; then | |
3847 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3848 | fi | |
3849 | ||
3850 | if test "$wxUSE_WAVE" = yes; then | |
1e487827 VS |
3851 | echo "$as_me:3851: result: yes" >&5 |
3852 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3853 | else |
1e487827 VS |
3854 | echo "$as_me:3854: result: no" >&5 |
3855 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3856 | fi |
10f2d63a | 3857 | |
1e487827 VS |
3858 | echo "$as_me:3858: checking for --enable-fraction" >&5 |
3859 | echo $ECHO_N "checking for --enable-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
3860 | no_cache=0 |
3861 | # Check whether --enable-fraction or --disable-fraction was given. | |
3862 | if test "${enable_fraction+set}" = set; then | |
3863 | enableval="$enable_fraction" | |
1e487827 | 3864 | |
10f2d63a VZ |
3865 | if test "$enableval" = yes; then |
3866 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3867 | else | |
3868 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3869 | fi | |
1e487827 | 3870 | |
10f2d63a | 3871 | else |
1e487827 | 3872 | |
10f2d63a VZ |
3873 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3874 | if test "x$LINE" != x ; then | |
3875 | eval "DEFAULT_$LINE" | |
3876 | else | |
3877 | no_cache=1 | |
3878 | fi | |
3879 | ||
3880 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 3881 | |
1e487827 | 3882 | fi; |
10f2d63a VZ |
3883 | |
3884 | eval "$ac_cv_use_fraction" | |
3885 | if test "$no_cache" != 1; then | |
3886 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3887 | fi | |
3888 | ||
3889 | if test "$wxUSE_FRACTION" = yes; then | |
1e487827 VS |
3890 | echo "$as_me:3890: result: yes" >&5 |
3891 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3892 | else |
1e487827 VS |
3893 | echo "$as_me:3893: result: no" >&5 |
3894 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3895 | fi |
10f2d63a | 3896 | |
1e487827 VS |
3897 | echo "$as_me:3897: checking for --enable-dynlib" >&5 |
3898 | echo $ECHO_N "checking for --enable-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
3899 | no_cache=0 |
3900 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3901 | if test "${enable_dynlib+set}" = set; then | |
3902 | enableval="$enable_dynlib" | |
1e487827 | 3903 | |
10f2d63a VZ |
3904 | if test "$enableval" = yes; then |
3905 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3906 | else | |
3907 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3908 | fi | |
1e487827 | 3909 | |
10f2d63a | 3910 | else |
1e487827 | 3911 | |
10f2d63a VZ |
3912 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3913 | if test "x$LINE" != x ; then | |
3914 | eval "DEFAULT_$LINE" | |
3915 | else | |
3916 | no_cache=1 | |
3917 | fi | |
3918 | ||
3919 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 3920 | |
1e487827 | 3921 | fi; |
10f2d63a VZ |
3922 | |
3923 | eval "$ac_cv_use_dynlib" | |
3924 | if test "$no_cache" != 1; then | |
3925 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3926 | fi | |
3927 | ||
3928 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
1e487827 VS |
3929 | echo "$as_me:3929: result: yes" >&5 |
3930 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3931 | else |
1e487827 VS |
3932 | echo "$as_me:3932: result: no" >&5 |
3933 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3934 | fi |
10f2d63a | 3935 | |
1e487827 VS |
3936 | echo "$as_me:3936: checking for --enable-longlong" >&5 |
3937 | echo $ECHO_N "checking for --enable-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
3938 | no_cache=0 |
3939 | # Check whether --enable-longlong or --disable-longlong was given. | |
3940 | if test "${enable_longlong+set}" = set; then | |
3941 | enableval="$enable_longlong" | |
1e487827 | 3942 | |
10f2d63a VZ |
3943 | if test "$enableval" = yes; then |
3944 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3945 | else | |
3946 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3947 | fi | |
1e487827 | 3948 | |
10f2d63a | 3949 | else |
1e487827 | 3950 | |
10f2d63a VZ |
3951 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3952 | if test "x$LINE" != x ; then | |
3953 | eval "DEFAULT_$LINE" | |
3954 | else | |
3955 | no_cache=1 | |
3956 | fi | |
3957 | ||
3958 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 3959 | |
1e487827 | 3960 | fi; |
10f2d63a VZ |
3961 | |
3962 | eval "$ac_cv_use_longlong" | |
3963 | if test "$no_cache" != 1; then | |
3964 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3965 | fi | |
3966 | ||
3967 | if test "$wxUSE_LONGLONG" = yes; then | |
1e487827 VS |
3968 | echo "$as_me:3968: result: yes" >&5 |
3969 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3970 | else |
1e487827 VS |
3971 | echo "$as_me:3971: result: no" >&5 |
3972 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3973 | fi |
10f2d63a | 3974 | |
1e487827 VS |
3975 | echo "$as_me:3975: checking for --enable-geometry" >&5 |
3976 | echo $ECHO_N "checking for --enable-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
3977 | no_cache=0 |
3978 | # Check whether --enable-geometry or --disable-geometry was given. | |
3979 | if test "${enable_geometry+set}" = set; then | |
3980 | enableval="$enable_geometry" | |
1e487827 | 3981 | |
e8f65ba6 RR |
3982 | if test "$enableval" = yes; then |
3983 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3984 | else | |
3985 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3986 | fi | |
1e487827 | 3987 | |
e8f65ba6 | 3988 | else |
1e487827 | 3989 | |
e8f65ba6 RR |
3990 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3991 | if test "x$LINE" != x ; then | |
3992 | eval "DEFAULT_$LINE" | |
3993 | else | |
3994 | no_cache=1 | |
3995 | fi | |
3996 | ||
3997 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 3998 | |
1e487827 | 3999 | fi; |
e8f65ba6 RR |
4000 | |
4001 | eval "$ac_cv_use_geometry" | |
4002 | if test "$no_cache" != 1; then | |
4003 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4004 | fi | |
4005 | ||
4006 | if test "$wxUSE_GEOMETRY" = yes; then | |
1e487827 VS |
4007 | echo "$as_me:4007: result: yes" >&5 |
4008 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4009 | else |
1e487827 VS |
4010 | echo "$as_me:4010: result: no" >&5 |
4011 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4012 | fi |
e8f65ba6 | 4013 | |
1e487827 VS |
4014 | echo "$as_me:4014: checking for --enable-log" >&5 |
4015 | echo $ECHO_N "checking for --enable-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4016 | no_cache=0 |
4017 | # Check whether --enable-log or --disable-log was given. | |
4018 | if test "${enable_log+set}" = set; then | |
4019 | enableval="$enable_log" | |
1e487827 | 4020 | |
10f2d63a VZ |
4021 | if test "$enableval" = yes; then |
4022 | ac_cv_use_log='wxUSE_LOG=yes' | |
4023 | else | |
4024 | ac_cv_use_log='wxUSE_LOG=no' | |
4025 | fi | |
1e487827 | 4026 | |
10f2d63a | 4027 | else |
1e487827 | 4028 | |
10f2d63a VZ |
4029 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4030 | if test "x$LINE" != x ; then | |
4031 | eval "DEFAULT_$LINE" | |
4032 | else | |
4033 | no_cache=1 | |
4034 | fi | |
4035 | ||
4036 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4037 | |
1e487827 | 4038 | fi; |
10f2d63a VZ |
4039 | |
4040 | eval "$ac_cv_use_log" | |
4041 | if test "$no_cache" != 1; then | |
4042 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4043 | fi | |
4044 | ||
4045 | if test "$wxUSE_LOG" = yes; then | |
1e487827 VS |
4046 | echo "$as_me:4046: result: yes" >&5 |
4047 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4048 | else |
1e487827 VS |
4049 | echo "$as_me:4049: result: no" >&5 |
4050 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4051 | fi |
10f2d63a | 4052 | |
1e487827 VS |
4053 | echo "$as_me:4053: checking for --enable-streams" >&5 |
4054 | echo $ECHO_N "checking for --enable-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4055 | no_cache=0 |
4056 | # Check whether --enable-streams or --disable-streams was given. | |
4057 | if test "${enable_streams+set}" = set; then | |
4058 | enableval="$enable_streams" | |
1e487827 | 4059 | |
10f2d63a VZ |
4060 | if test "$enableval" = yes; then |
4061 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4062 | else | |
4063 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4064 | fi | |
1e487827 | 4065 | |
10f2d63a | 4066 | else |
1e487827 | 4067 | |
10f2d63a VZ |
4068 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4069 | if test "x$LINE" != x ; then | |
4070 | eval "DEFAULT_$LINE" | |
4071 | else | |
4072 | no_cache=1 | |
4073 | fi | |
4074 | ||
4075 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4076 | |
1e487827 | 4077 | fi; |
10f2d63a VZ |
4078 | |
4079 | eval "$ac_cv_use_streams" | |
4080 | if test "$no_cache" != 1; then | |
4081 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4082 | fi | |
4083 | ||
4084 | if test "$wxUSE_STREAMS" = yes; then | |
1e487827 VS |
4085 | echo "$as_me:4085: result: yes" >&5 |
4086 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4087 | else |
1e487827 VS |
4088 | echo "$as_me:4088: result: no" >&5 |
4089 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4090 | fi |
10f2d63a | 4091 | |
1e487827 VS |
4092 | echo "$as_me:4092: checking for --enable-file" >&5 |
4093 | echo $ECHO_N "checking for --enable-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4094 | no_cache=0 |
4095 | # Check whether --enable-file or --disable-file was given. | |
4096 | if test "${enable_file+set}" = set; then | |
4097 | enableval="$enable_file" | |
1e487827 | 4098 | |
10f2d63a VZ |
4099 | if test "$enableval" = yes; then |
4100 | ac_cv_use_file='wxUSE_FILE=yes' | |
4101 | else | |
4102 | ac_cv_use_file='wxUSE_FILE=no' | |
4103 | fi | |
1e487827 | 4104 | |
10f2d63a | 4105 | else |
1e487827 | 4106 | |
10f2d63a VZ |
4107 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4108 | if test "x$LINE" != x ; then | |
4109 | eval "DEFAULT_$LINE" | |
4110 | else | |
4111 | no_cache=1 | |
4112 | fi | |
4113 | ||
4114 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4115 | |
1e487827 | 4116 | fi; |
10f2d63a VZ |
4117 | |
4118 | eval "$ac_cv_use_file" | |
4119 | if test "$no_cache" != 1; then | |
4120 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4121 | fi | |
4122 | ||
4123 | if test "$wxUSE_FILE" = yes; then | |
1e487827 VS |
4124 | echo "$as_me:4124: result: yes" >&5 |
4125 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4126 | else |
1e487827 VS |
4127 | echo "$as_me:4127: result: no" >&5 |
4128 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4129 | fi |
10f2d63a | 4130 | |
1e487827 VS |
4131 | echo "$as_me:4131: checking for --enable-textfile" >&5 |
4132 | echo $ECHO_N "checking for --enable-textfile... $ECHO_C" >&6 | |
10f2d63a VZ |
4133 | no_cache=0 |
4134 | # Check whether --enable-textfile or --disable-textfile was given. | |
4135 | if test "${enable_textfile+set}" = set; then | |
4136 | enableval="$enable_textfile" | |
1e487827 | 4137 | |
10f2d63a VZ |
4138 | if test "$enableval" = yes; then |
4139 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
4140 | else | |
4141 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
4142 | fi | |
1e487827 | 4143 | |
10f2d63a | 4144 | else |
1e487827 | 4145 | |
10f2d63a VZ |
4146 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
4147 | if test "x$LINE" != x ; then | |
4148 | eval "DEFAULT_$LINE" | |
4149 | else | |
4150 | no_cache=1 | |
4151 | fi | |
4152 | ||
4153 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
10f2d63a | 4154 | |
1e487827 | 4155 | fi; |
10f2d63a VZ |
4156 | |
4157 | eval "$ac_cv_use_textfile" | |
4158 | if test "$no_cache" != 1; then | |
4159 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
4160 | fi | |
4161 | ||
4162 | if test "$wxUSE_TEXTFILE" = yes; then | |
1e487827 VS |
4163 | echo "$as_me:4163: result: yes" >&5 |
4164 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4165 | else |
1e487827 VS |
4166 | echo "$as_me:4166: result: no" >&5 |
4167 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4168 | fi |
10f2d63a | 4169 | |
1e487827 VS |
4170 | echo "$as_me:4170: checking for --enable-unicode" >&5 |
4171 | echo $ECHO_N "checking for --enable-unicode... $ECHO_C" >&6 | |
10f2d63a VZ |
4172 | no_cache=0 |
4173 | # Check whether --enable-unicode or --disable-unicode was given. | |
4174 | if test "${enable_unicode+set}" = set; then | |
4175 | enableval="$enable_unicode" | |
1e487827 | 4176 | |
10f2d63a VZ |
4177 | if test "$enableval" = yes; then |
4178 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4179 | else | |
4180 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4181 | fi | |
1e487827 | 4182 | |
10f2d63a | 4183 | else |
1e487827 | 4184 | |
10f2d63a VZ |
4185 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4186 | if test "x$LINE" != x ; then | |
4187 | eval "DEFAULT_$LINE" | |
4188 | else | |
4189 | no_cache=1 | |
4190 | fi | |
4191 | ||
4192 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
10f2d63a | 4193 | |
1e487827 | 4194 | fi; |
10f2d63a VZ |
4195 | |
4196 | eval "$ac_cv_use_unicode" | |
4197 | if test "$no_cache" != 1; then | |
4198 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4199 | fi | |
4200 | ||
4201 | if test "$wxUSE_UNICODE" = yes; then | |
1e487827 VS |
4202 | echo "$as_me:4202: result: yes" >&5 |
4203 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4204 | else |
1e487827 VS |
4205 | echo "$as_me:4205: result: no" >&5 |
4206 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4207 | fi |
10f2d63a | 4208 | |
1e487827 VS |
4209 | echo "$as_me:4209: checking for --enable-wcsrtombs" >&5 |
4210 | echo $ECHO_N "checking for --enable-wcsrtombs... $ECHO_C" >&6 | |
10f2d63a VZ |
4211 | no_cache=0 |
4212 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
4213 | if test "${enable_wcsrtombs+set}" = set; then | |
4214 | enableval="$enable_wcsrtombs" | |
1e487827 | 4215 | |
10f2d63a VZ |
4216 | if test "$enableval" = yes; then |
4217 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
4218 | else | |
4219 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
4220 | fi | |
1e487827 | 4221 | |
10f2d63a | 4222 | else |
1e487827 | 4223 | |
10f2d63a VZ |
4224 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` |
4225 | if test "x$LINE" != x ; then | |
4226 | eval "DEFAULT_$LINE" | |
4227 | else | |
4228 | no_cache=1 | |
4229 | fi | |
4230 | ||
4231 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
10f2d63a | 4232 | |
1e487827 | 4233 | fi; |
10f2d63a VZ |
4234 | |
4235 | eval "$ac_cv_use_wcsrtombs" | |
4236 | if test "$no_cache" != 1; then | |
4237 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
4238 | fi | |
4239 | ||
4240 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
1e487827 VS |
4241 | echo "$as_me:4241: result: yes" >&5 |
4242 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4243 | else |
1e487827 VS |
4244 | echo "$as_me:4244: result: no" >&5 |
4245 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4246 | fi |
10f2d63a | 4247 | |
1e487827 VS |
4248 | echo "$as_me:4248: checking for --enable-wxprintfv" >&5 |
4249 | echo $ECHO_N "checking for --enable-wxprintfv... $ECHO_C" >&6 | |
10f2d63a VZ |
4250 | no_cache=0 |
4251 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4252 | if test "${enable_wxprintfv+set}" = set; then | |
4253 | enableval="$enable_wxprintfv" | |
1e487827 | 4254 | |
10f2d63a VZ |
4255 | if test "$enableval" = yes; then |
4256 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
4257 | else | |
4258 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4259 | fi | |
1e487827 | 4260 | |
10f2d63a | 4261 | else |
1e487827 | 4262 | |
10f2d63a VZ |
4263 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4264 | if test "x$LINE" != x ; then | |
4265 | eval "DEFAULT_$LINE" | |
4266 | else | |
4267 | no_cache=1 | |
4268 | fi | |
4269 | ||
4270 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 4271 | |
1e487827 | 4272 | fi; |
10f2d63a VZ |
4273 | |
4274 | eval "$ac_cv_use_wxprintfv" | |
4275 | if test "$no_cache" != 1; then | |
4276 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4277 | fi | |
4278 | ||
4279 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
1e487827 VS |
4280 | echo "$as_me:4280: result: yes" >&5 |
4281 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4282 | else |
1e487827 VS |
4283 | echo "$as_me:4283: result: no" >&5 |
4284 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4285 | fi |
10f2d63a | 4286 | |
1e487827 VS |
4287 | echo "$as_me:4287: checking for --enable-std_iostreams" >&5 |
4288 | echo $ECHO_N "checking for --enable-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
4289 | no_cache=0 |
4290 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4291 | if test "${enable_std_iostreams+set}" = set; then | |
4292 | enableval="$enable_std_iostreams" | |
1e487827 | 4293 | |
10f2d63a VZ |
4294 | if test "$enableval" = yes; then |
4295 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4296 | else | |
4297 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4298 | fi | |
1e487827 | 4299 | |
10f2d63a | 4300 | else |
1e487827 | 4301 | |
10f2d63a VZ |
4302 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4303 | if test "x$LINE" != x ; then | |
4304 | eval "DEFAULT_$LINE" | |
4305 | else | |
4306 | no_cache=1 | |
4307 | fi | |
4308 | ||
4309 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 4310 | |
1e487827 | 4311 | fi; |
10f2d63a VZ |
4312 | |
4313 | eval "$ac_cv_use_std_iostreams" | |
4314 | if test "$no_cache" != 1; then | |
4315 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4316 | fi | |
4317 | ||
4318 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
1e487827 VS |
4319 | echo "$as_me:4319: result: yes" >&5 |
4320 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4321 | else |
1e487827 VS |
4322 | echo "$as_me:4322: result: no" >&5 |
4323 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4324 | fi |
10f2d63a | 4325 | |
1e487827 VS |
4326 | echo "$as_me:4326: checking for --enable-filesystem" >&5 |
4327 | echo $ECHO_N "checking for --enable-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
4328 | no_cache=0 |
4329 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4330 | if test "${enable_filesystem+set}" = set; then | |
4331 | enableval="$enable_filesystem" | |
1e487827 | 4332 | |
24528b0c VS |
4333 | if test "$enableval" = yes; then |
4334 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4335 | else | |
4336 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4337 | fi | |
1e487827 | 4338 | |
24528b0c | 4339 | else |
1e487827 | 4340 | |
24528b0c VS |
4341 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4342 | if test "x$LINE" != x ; then | |
4343 | eval "DEFAULT_$LINE" | |
4344 | else | |
4345 | no_cache=1 | |
4346 | fi | |
4347 | ||
4348 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 4349 | |
1e487827 | 4350 | fi; |
24528b0c VS |
4351 | |
4352 | eval "$ac_cv_use_filesystem" | |
4353 | if test "$no_cache" != 1; then | |
4354 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4355 | fi | |
4356 | ||
4357 | if test "$wxUSE_FILESYSTEM" = yes; then | |
1e487827 VS |
4358 | echo "$as_me:4358: result: yes" >&5 |
4359 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 4360 | else |
1e487827 VS |
4361 | echo "$as_me:4361: result: no" >&5 |
4362 | echo "${ECHO_T}no" >&6 | |
24528b0c | 4363 | fi |
24528b0c | 4364 | |
1e487827 VS |
4365 | echo "$as_me:4365: checking for --enable-fs_inet" >&5 |
4366 | echo $ECHO_N "checking for --enable-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
4367 | no_cache=0 |
4368 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4369 | if test "${enable_fs_inet+set}" = set; then | |
4370 | enableval="$enable_fs_inet" | |
1e487827 | 4371 | |
10f2d63a VZ |
4372 | if test "$enableval" = yes; then |
4373 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4374 | else | |
4375 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4376 | fi | |
1e487827 | 4377 | |
10f2d63a | 4378 | else |
1e487827 | 4379 | |
10f2d63a VZ |
4380 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4381 | if test "x$LINE" != x ; then | |
4382 | eval "DEFAULT_$LINE" | |
4383 | else | |
4384 | no_cache=1 | |
4385 | fi | |
4386 | ||
4387 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 4388 | |
1e487827 | 4389 | fi; |
10f2d63a VZ |
4390 | |
4391 | eval "$ac_cv_use_fs_inet" | |
4392 | if test "$no_cache" != 1; then | |
4393 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4394 | fi | |
4395 | ||
4396 | if test "$wxUSE_FS_INET" = yes; then | |
1e487827 VS |
4397 | echo "$as_me:4397: result: yes" >&5 |
4398 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4399 | else |
1e487827 VS |
4400 | echo "$as_me:4400: result: no" >&5 |
4401 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4402 | fi |
10f2d63a | 4403 | |
1e487827 VS |
4404 | echo "$as_me:4404: checking for --enable-fs_zip" >&5 |
4405 | echo $ECHO_N "checking for --enable-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
4406 | no_cache=0 |
4407 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4408 | if test "${enable_fs_zip+set}" = set; then | |
4409 | enableval="$enable_fs_zip" | |
1e487827 | 4410 | |
10f2d63a VZ |
4411 | if test "$enableval" = yes; then |
4412 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4413 | else | |
4414 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4415 | fi | |
1e487827 | 4416 | |
10f2d63a | 4417 | else |
1e487827 | 4418 | |
10f2d63a VZ |
4419 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4420 | if test "x$LINE" != x ; then | |
4421 | eval "DEFAULT_$LINE" | |
4422 | else | |
4423 | no_cache=1 | |
4424 | fi | |
4425 | ||
4426 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 4427 | |
1e487827 | 4428 | fi; |
10f2d63a VZ |
4429 | |
4430 | eval "$ac_cv_use_fs_zip" | |
4431 | if test "$no_cache" != 1; then | |
4432 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4433 | fi | |
4434 | ||
4435 | if test "$wxUSE_FS_ZIP" = yes; then | |
1e487827 VS |
4436 | echo "$as_me:4436: result: yes" >&5 |
4437 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4438 | else |
1e487827 VS |
4439 | echo "$as_me:4439: result: no" >&5 |
4440 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4441 | fi |
10f2d63a | 4442 | |
1e487827 VS |
4443 | echo "$as_me:4443: checking for --enable-zipstream" >&5 |
4444 | echo $ECHO_N "checking for --enable-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
4445 | no_cache=0 |
4446 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4447 | if test "${enable_zipstream+set}" = set; then | |
4448 | enableval="$enable_zipstream" | |
1e487827 | 4449 | |
10f2d63a VZ |
4450 | if test "$enableval" = yes; then |
4451 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4452 | else | |
4453 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4454 | fi | |
1e487827 | 4455 | |
10f2d63a | 4456 | else |
1e487827 | 4457 | |
10f2d63a VZ |
4458 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4459 | if test "x$LINE" != x ; then | |
4460 | eval "DEFAULT_$LINE" | |
4461 | else | |
4462 | no_cache=1 | |
4463 | fi | |
4464 | ||
4465 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 4466 | |
1e487827 | 4467 | fi; |
10f2d63a VZ |
4468 | |
4469 | eval "$ac_cv_use_zipstream" | |
4470 | if test "$no_cache" != 1; then | |
4471 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4472 | fi | |
4473 | ||
4474 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
1e487827 VS |
4475 | echo "$as_me:4475: result: yes" >&5 |
4476 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4477 | else |
1e487827 VS |
4478 | echo "$as_me:4478: result: no" >&5 |
4479 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4480 | fi |
10f2d63a | 4481 | |
1e487827 VS |
4482 | echo "$as_me:4482: checking for --enable-catch_segvs" >&5 |
4483 | echo $ECHO_N "checking for --enable-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
4484 | no_cache=0 |
4485 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4486 | if test "${enable_catch_segvs+set}" = set; then | |
4487 | enableval="$enable_catch_segvs" | |
1e487827 | 4488 | |
eb4efbdc VZ |
4489 | if test "$enableval" = yes; then |
4490 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4491 | else | |
4492 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4493 | fi | |
1e487827 | 4494 | |
eb4efbdc | 4495 | else |
1e487827 | 4496 | |
eb4efbdc VZ |
4497 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4498 | if test "x$LINE" != x ; then | |
4499 | eval "DEFAULT_$LINE" | |
4500 | else | |
4501 | no_cache=1 | |
4502 | fi | |
4503 | ||
4504 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 4505 | |
1e487827 | 4506 | fi; |
eb4efbdc VZ |
4507 | |
4508 | eval "$ac_cv_use_catch_segvs" | |
4509 | if test "$no_cache" != 1; then | |
4510 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4511 | fi | |
4512 | ||
4513 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
1e487827 VS |
4514 | echo "$as_me:4514: result: yes" >&5 |
4515 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 4516 | else |
1e487827 VS |
4517 | echo "$as_me:4517: result: no" >&5 |
4518 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 4519 | fi |
eb4efbdc | 4520 | |
1e487827 VS |
4521 | echo "$as_me:4521: checking for --enable-snglinst" >&5 |
4522 | echo $ECHO_N "checking for --enable-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
4523 | no_cache=0 |
4524 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4525 | if test "${enable_snglinst+set}" = set; then | |
4526 | enableval="$enable_snglinst" | |
1e487827 | 4527 | |
4f3c5f06 VZ |
4528 | if test "$enableval" = yes; then |
4529 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4530 | else | |
4531 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4532 | fi | |
1e487827 | 4533 | |
4f3c5f06 | 4534 | else |
1e487827 | 4535 | |
4f3c5f06 VZ |
4536 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4537 | if test "x$LINE" != x ; then | |
4538 | eval "DEFAULT_$LINE" | |
4539 | else | |
4540 | no_cache=1 | |
4541 | fi | |
4542 | ||
4543 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 4544 | |
1e487827 | 4545 | fi; |
4f3c5f06 VZ |
4546 | |
4547 | eval "$ac_cv_use_snglinst" | |
4548 | if test "$no_cache" != 1; then | |
4549 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4550 | fi | |
4551 | ||
4552 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
1e487827 VS |
4553 | echo "$as_me:4553: result: yes" >&5 |
4554 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 4555 | else |
1e487827 VS |
4556 | echo "$as_me:4556: result: no" >&5 |
4557 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 4558 | fi |
eb4efbdc | 4559 | |
1e487827 VS |
4560 | echo "$as_me:4560: checking for --enable-threads" >&5 |
4561 | echo $ECHO_N "checking for --enable-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
4562 | no_cache=0 |
4563 | # Check whether --enable-threads or --disable-threads was given. | |
4564 | if test "${enable_threads+set}" = set; then | |
4565 | enableval="$enable_threads" | |
1e487827 | 4566 | |
10f2d63a VZ |
4567 | if test "$enableval" = yes; then |
4568 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4569 | else | |
4570 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4571 | fi | |
1e487827 | 4572 | |
10f2d63a | 4573 | else |
1e487827 | 4574 | |
10f2d63a VZ |
4575 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4576 | if test "x$LINE" != x ; then | |
4577 | eval "DEFAULT_$LINE" | |
4578 | else | |
4579 | no_cache=1 | |
4580 | fi | |
4581 | ||
4582 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 4583 | |
1e487827 | 4584 | fi; |
10f2d63a VZ |
4585 | |
4586 | eval "$ac_cv_use_threads" | |
4587 | if test "$no_cache" != 1; then | |
4588 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4589 | fi | |
4590 | ||
4591 | if test "$wxUSE_THREADS" = yes; then | |
1e487827 VS |
4592 | echo "$as_me:4592: result: yes" >&5 |
4593 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4594 | else |
1e487827 VS |
4595 | echo "$as_me:4595: result: no" >&5 |
4596 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4597 | fi |
10f2d63a | 4598 | |
1e487827 VS |
4599 | echo "$as_me:4599: checking for --enable-serial" >&5 |
4600 | echo $ECHO_N "checking for --enable-serial... $ECHO_C" >&6 | |
10f2d63a VZ |
4601 | no_cache=0 |
4602 | # Check whether --enable-serial or --disable-serial was given. | |
4603 | if test "${enable_serial+set}" = set; then | |
4604 | enableval="$enable_serial" | |
1e487827 | 4605 | |
10f2d63a VZ |
4606 | if test "$enableval" = yes; then |
4607 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4608 | else | |
4609 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4610 | fi | |
1e487827 | 4611 | |
10f2d63a | 4612 | else |
1e487827 | 4613 | |
10f2d63a VZ |
4614 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4615 | if test "x$LINE" != x ; then | |
4616 | eval "DEFAULT_$LINE" | |
4617 | else | |
4618 | no_cache=1 | |
4619 | fi | |
4620 | ||
4621 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
10f2d63a | 4622 | |
1e487827 | 4623 | fi; |
10f2d63a VZ |
4624 | |
4625 | eval "$ac_cv_use_serial" | |
4626 | if test "$no_cache" != 1; then | |
4627 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4628 | fi | |
4629 | ||
4630 | if test "$wxUSE_SERIAL" = yes; then | |
1e487827 VS |
4631 | echo "$as_me:4631: result: yes" >&5 |
4632 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4633 | else |
1e487827 VS |
4634 | echo "$as_me:4634: result: no" >&5 |
4635 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4636 | fi |
10f2d63a | 4637 | |
b12915c1 VZ |
4638 | if test "$wxUSE_GUI" = "yes"; then |
4639 | ||
1e487827 VS |
4640 | echo "$as_me:4640: checking for --enable-docview" >&5 |
4641 | echo $ECHO_N "checking for --enable-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
4642 | no_cache=0 |
4643 | # Check whether --enable-docview or --disable-docview was given. | |
4644 | if test "${enable_docview+set}" = set; then | |
4645 | enableval="$enable_docview" | |
1e487827 | 4646 | |
10f2d63a VZ |
4647 | if test "$enableval" = yes; then |
4648 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4649 | else | |
4650 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4651 | fi | |
1e487827 | 4652 | |
10f2d63a | 4653 | else |
1e487827 | 4654 | |
10f2d63a VZ |
4655 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4656 | if test "x$LINE" != x ; then | |
4657 | eval "DEFAULT_$LINE" | |
4658 | else | |
4659 | no_cache=1 | |
4660 | fi | |
4661 | ||
4662 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 4663 | |
1e487827 | 4664 | fi; |
10f2d63a VZ |
4665 | |
4666 | eval "$ac_cv_use_docview" | |
4667 | if test "$no_cache" != 1; then | |
4668 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4669 | fi | |
4670 | ||
4671 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
1e487827 VS |
4672 | echo "$as_me:4672: result: yes" >&5 |
4673 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4674 | else |
1e487827 VS |
4675 | echo "$as_me:4675: result: no" >&5 |
4676 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4677 | fi |
10f2d63a | 4678 | |
1e487827 VS |
4679 | echo "$as_me:4679: checking for --enable-help" >&5 |
4680 | echo $ECHO_N "checking for --enable-help... $ECHO_C" >&6 | |
10f2d63a VZ |
4681 | no_cache=0 |
4682 | # Check whether --enable-help or --disable-help was given. | |
4683 | if test "${enable_help+set}" = set; then | |
4684 | enableval="$enable_help" | |
1e487827 | 4685 | |
10f2d63a VZ |
4686 | if test "$enableval" = yes; then |
4687 | ac_cv_use_help='wxUSE_HELP=yes' | |
4688 | else | |
4689 | ac_cv_use_help='wxUSE_HELP=no' | |
4690 | fi | |
1e487827 | 4691 | |
10f2d63a | 4692 | else |
1e487827 | 4693 | |
10f2d63a VZ |
4694 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4695 | if test "x$LINE" != x ; then | |
4696 | eval "DEFAULT_$LINE" | |
4697 | else | |
4698 | no_cache=1 | |
4699 | fi | |
4700 | ||
4701 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 4702 | |
1e487827 | 4703 | fi; |
10f2d63a VZ |
4704 | |
4705 | eval "$ac_cv_use_help" | |
4706 | if test "$no_cache" != 1; then | |
4707 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4708 | fi | |
4709 | ||
4710 | if test "$wxUSE_HELP" = yes; then | |
1e487827 VS |
4711 | echo "$as_me:4711: result: yes" >&5 |
4712 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4713 | else |
1e487827 VS |
4714 | echo "$as_me:4714: result: no" >&5 |
4715 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4716 | fi |
10f2d63a | 4717 | |
1e487827 VS |
4718 | echo "$as_me:4718: checking for --enable-constraints" >&5 |
4719 | echo $ECHO_N "checking for --enable-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
4720 | no_cache=0 |
4721 | # Check whether --enable-constraints or --disable-constraints was given. | |
4722 | if test "${enable_constraints+set}" = set; then | |
4723 | enableval="$enable_constraints" | |
1e487827 | 4724 | |
10f2d63a VZ |
4725 | if test "$enableval" = yes; then |
4726 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4727 | else | |
4728 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4729 | fi | |
1e487827 | 4730 | |
10f2d63a | 4731 | else |
1e487827 | 4732 | |
10f2d63a VZ |
4733 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4734 | if test "x$LINE" != x ; then | |
4735 | eval "DEFAULT_$LINE" | |
4736 | else | |
4737 | no_cache=1 | |
4738 | fi | |
4739 | ||
4740 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 4741 | |
1e487827 | 4742 | fi; |
10f2d63a VZ |
4743 | |
4744 | eval "$ac_cv_use_constraints" | |
4745 | if test "$no_cache" != 1; then | |
4746 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4747 | fi | |
4748 | ||
4749 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
1e487827 VS |
4750 | echo "$as_me:4750: result: yes" >&5 |
4751 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4752 | else |
1e487827 VS |
4753 | echo "$as_me:4753: result: no" >&5 |
4754 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4755 | fi |
10f2d63a | 4756 | |
1e487827 VS |
4757 | echo "$as_me:4757: checking for --enable-printarch" >&5 |
4758 | echo $ECHO_N "checking for --enable-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
4759 | no_cache=0 |
4760 | # Check whether --enable-printarch or --disable-printarch was given. | |
4761 | if test "${enable_printarch+set}" = set; then | |
4762 | enableval="$enable_printarch" | |
1e487827 | 4763 | |
10f2d63a VZ |
4764 | if test "$enableval" = yes; then |
4765 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4766 | else | |
4767 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4768 | fi | |
1e487827 | 4769 | |
10f2d63a | 4770 | else |
1e487827 | 4771 | |
10f2d63a VZ |
4772 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4773 | if test "x$LINE" != x ; then | |
4774 | eval "DEFAULT_$LINE" | |
4775 | else | |
4776 | no_cache=1 | |
4777 | fi | |
4778 | ||
4779 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 4780 | |
1e487827 | 4781 | fi; |
10f2d63a VZ |
4782 | |
4783 | eval "$ac_cv_use_printarch" | |
4784 | if test "$no_cache" != 1; then | |
4785 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4786 | fi | |
4787 | ||
4788 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
1e487827 VS |
4789 | echo "$as_me:4789: result: yes" >&5 |
4790 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4791 | else |
1e487827 VS |
4792 | echo "$as_me:4792: result: no" >&5 |
4793 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4794 | fi |
10f2d63a | 4795 | |
1e487827 VS |
4796 | echo "$as_me:4796: checking for --enable-mdi" >&5 |
4797 | echo $ECHO_N "checking for --enable-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
4798 | no_cache=0 |
4799 | # Check whether --enable-mdi or --disable-mdi was given. | |
4800 | if test "${enable_mdi+set}" = set; then | |
4801 | enableval="$enable_mdi" | |
1e487827 | 4802 | |
10f2d63a VZ |
4803 | if test "$enableval" = yes; then |
4804 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4805 | else | |
4806 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4807 | fi | |
1e487827 | 4808 | |
10f2d63a | 4809 | else |
1e487827 | 4810 | |
10f2d63a VZ |
4811 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4812 | if test "x$LINE" != x ; then | |
4813 | eval "DEFAULT_$LINE" | |
4814 | else | |
4815 | no_cache=1 | |
4816 | fi | |
4817 | ||
4818 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 4819 | |
1e487827 | 4820 | fi; |
10f2d63a VZ |
4821 | |
4822 | eval "$ac_cv_use_mdi" | |
4823 | if test "$no_cache" != 1; then | |
4824 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4825 | fi | |
4826 | ||
4827 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
1e487827 VS |
4828 | echo "$as_me:4828: result: yes" >&5 |
4829 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4830 | else |
1e487827 VS |
4831 | echo "$as_me:4831: result: no" >&5 |
4832 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4833 | fi |
10f2d63a | 4834 | |
1e487827 VS |
4835 | echo "$as_me:4835: checking for --enable-postscript" >&5 |
4836 | echo $ECHO_N "checking for --enable-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
4837 | no_cache=0 |
4838 | # Check whether --enable-postscript or --disable-postscript was given. | |
4839 | if test "${enable_postscript+set}" = set; then | |
4840 | enableval="$enable_postscript" | |
1e487827 | 4841 | |
10f2d63a VZ |
4842 | if test "$enableval" = yes; then |
4843 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4844 | else | |
4845 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4846 | fi | |
1e487827 | 4847 | |
10f2d63a | 4848 | else |
1e487827 | 4849 | |
10f2d63a VZ |
4850 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4851 | if test "x$LINE" != x ; then | |
4852 | eval "DEFAULT_$LINE" | |
4853 | else | |
4854 | no_cache=1 | |
4855 | fi | |
4856 | ||
4857 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 4858 | |
1e487827 | 4859 | fi; |
10f2d63a VZ |
4860 | |
4861 | eval "$ac_cv_use_postscript" | |
4862 | if test "$no_cache" != 1; then | |
4863 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4864 | fi | |
4865 | ||
4866 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
1e487827 VS |
4867 | echo "$as_me:4867: result: yes" >&5 |
4868 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4869 | else |
1e487827 VS |
4870 | echo "$as_me:4870: result: no" >&5 |
4871 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4872 | fi |
10f2d63a | 4873 | |
1e487827 VS |
4874 | echo "$as_me:4874: checking for --enable-prologio" >&5 |
4875 | echo $ECHO_N "checking for --enable-prologio... $ECHO_C" >&6 | |
10f2d63a VZ |
4876 | no_cache=0 |
4877 | # Check whether --enable-prologio or --disable-prologio was given. | |
4878 | if test "${enable_prologio+set}" = set; then | |
4879 | enableval="$enable_prologio" | |
1e487827 | 4880 | |
10f2d63a VZ |
4881 | if test "$enableval" = yes; then |
4882 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4883 | else | |
4884 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4885 | fi | |
1e487827 | 4886 | |
10f2d63a | 4887 | else |
1e487827 | 4888 | |
10f2d63a VZ |
4889 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4890 | if test "x$LINE" != x ; then | |
4891 | eval "DEFAULT_$LINE" | |
4892 | else | |
4893 | no_cache=1 | |
4894 | fi | |
4895 | ||
4896 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
10f2d63a | 4897 | |
1e487827 | 4898 | fi; |
10f2d63a VZ |
4899 | |
4900 | eval "$ac_cv_use_prologio" | |
4901 | if test "$no_cache" != 1; then | |
4902 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4903 | fi | |
4904 | ||
4905 | if test "$wxUSE_PROLOGIO" = yes; then | |
1e487827 VS |
4906 | echo "$as_me:4906: result: yes" >&5 |
4907 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4908 | else |
1e487827 VS |
4909 | echo "$as_me:4909: result: no" >&5 |
4910 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4911 | fi |
10f2d63a | 4912 | |
1e487827 VS |
4913 | echo "$as_me:4913: checking for --enable-resources" >&5 |
4914 | echo $ECHO_N "checking for --enable-resources... $ECHO_C" >&6 | |
10f2d63a VZ |
4915 | no_cache=0 |
4916 | # Check whether --enable-resources or --disable-resources was given. | |
4917 | if test "${enable_resources+set}" = set; then | |
4918 | enableval="$enable_resources" | |
1e487827 | 4919 | |
10f2d63a VZ |
4920 | if test "$enableval" = yes; then |
4921 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4922 | else | |
4923 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4924 | fi | |
1e487827 | 4925 | |
10f2d63a | 4926 | else |
1e487827 | 4927 | |
10f2d63a VZ |
4928 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4929 | if test "x$LINE" != x ; then | |
4930 | eval "DEFAULT_$LINE" | |
4931 | else | |
4932 | no_cache=1 | |
4933 | fi | |
4934 | ||
4935 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
10f2d63a | 4936 | |
1e487827 | 4937 | fi; |
10f2d63a VZ |
4938 | |
4939 | eval "$ac_cv_use_resources" | |
4940 | if test "$no_cache" != 1; then | |
4941 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4942 | fi | |
4943 | ||
4944 | if test "$wxUSE_RESOURCES" = yes; then | |
1e487827 VS |
4945 | echo "$as_me:4945: result: yes" >&5 |
4946 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4947 | else |
1e487827 VS |
4948 | echo "$as_me:4948: result: no" >&5 |
4949 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4950 | fi |
10f2d63a | 4951 | |
1e487827 VS |
4952 | echo "$as_me:4952: checking for --enable-xresources" >&5 |
4953 | echo $ECHO_N "checking for --enable-xresources... $ECHO_C" >&6 | |
10f2d63a VZ |
4954 | no_cache=0 |
4955 | # Check whether --enable-xresources or --disable-xresources was given. | |
4956 | if test "${enable_xresources+set}" = set; then | |
4957 | enableval="$enable_xresources" | |
1e487827 | 4958 | |
10f2d63a VZ |
4959 | if test "$enableval" = yes; then |
4960 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4961 | else | |
4962 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4963 | fi | |
1e487827 | 4964 | |
10f2d63a | 4965 | else |
1e487827 | 4966 | |
10f2d63a VZ |
4967 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4968 | if test "x$LINE" != x ; then | |
4969 | eval "DEFAULT_$LINE" | |
4970 | else | |
4971 | no_cache=1 | |
4972 | fi | |
4973 | ||
4974 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
10f2d63a | 4975 | |
1e487827 | 4976 | fi; |
10f2d63a VZ |
4977 | |
4978 | eval "$ac_cv_use_xresources" | |
4979 | if test "$no_cache" != 1; then | |
4980 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4981 | fi | |
4982 | ||
4983 | if test "$wxUSE_X_RESOURCES" = yes; then | |
1e487827 VS |
4984 | echo "$as_me:4984: result: yes" >&5 |
4985 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4986 | else |
1e487827 VS |
4987 | echo "$as_me:4987: result: no" >&5 |
4988 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4989 | fi |
10f2d63a | 4990 | |
1e487827 VS |
4991 | echo "$as_me:4991: checking for --enable-clipboard" >&5 |
4992 | echo $ECHO_N "checking for --enable-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
4993 | no_cache=0 |
4994 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4995 | if test "${enable_clipboard+set}" = set; then | |
4996 | enableval="$enable_clipboard" | |
1e487827 | 4997 | |
10f2d63a VZ |
4998 | if test "$enableval" = yes; then |
4999 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5000 | else | |
5001 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5002 | fi | |
1e487827 | 5003 | |
10f2d63a | 5004 | else |
1e487827 | 5005 | |
10f2d63a VZ |
5006 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5007 | if test "x$LINE" != x ; then | |
5008 | eval "DEFAULT_$LINE" | |
5009 | else | |
5010 | no_cache=1 | |
5011 | fi | |
5012 | ||
5013 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 5014 | |
1e487827 | 5015 | fi; |
10f2d63a VZ |
5016 | |
5017 | eval "$ac_cv_use_clipboard" | |
5018 | if test "$no_cache" != 1; then | |
5019 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5020 | fi | |
5021 | ||
5022 | if test "$wxUSE_CLIPBOARD" = yes; then | |
1e487827 VS |
5023 | echo "$as_me:5023: result: yes" >&5 |
5024 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5025 | else |
1e487827 VS |
5026 | echo "$as_me:5026: result: no" >&5 |
5027 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5028 | fi |
10f2d63a | 5029 | |
1e487827 VS |
5030 | echo "$as_me:5030: checking for --enable-dnd" >&5 |
5031 | echo $ECHO_N "checking for --enable-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
5032 | no_cache=0 |
5033 | # Check whether --enable-dnd or --disable-dnd was given. | |
5034 | if test "${enable_dnd+set}" = set; then | |
5035 | enableval="$enable_dnd" | |
1e487827 | 5036 | |
10f2d63a VZ |
5037 | if test "$enableval" = yes; then |
5038 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5039 | else | |
5040 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5041 | fi | |
1e487827 | 5042 | |
10f2d63a | 5043 | else |
1e487827 | 5044 | |
10f2d63a VZ |
5045 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5046 | if test "x$LINE" != x ; then | |
5047 | eval "DEFAULT_$LINE" | |
5048 | else | |
5049 | no_cache=1 | |
5050 | fi | |
5051 | ||
5052 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 5053 | |
1e487827 | 5054 | fi; |
10f2d63a VZ |
5055 | |
5056 | eval "$ac_cv_use_dnd" | |
5057 | if test "$no_cache" != 1; then | |
5058 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5059 | fi | |
5060 | ||
5061 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
1e487827 VS |
5062 | echo "$as_me:5062: result: yes" >&5 |
5063 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5064 | else |
1e487827 VS |
5065 | echo "$as_me:5065: result: no" >&5 |
5066 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5067 | fi |
10f2d63a | 5068 | |
1e487827 VS |
5069 | echo "$as_me:5069: checking for --enable-metafile" >&5 |
5070 | echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
5071 | no_cache=0 |
5072 | # Check whether --enable-metafile or --disable-metafile was given. | |
5073 | if test "${enable_metafile+set}" = set; then | |
5074 | enableval="$enable_metafile" | |
1e487827 | 5075 | |
b64f0a5f RL |
5076 | if test "$enableval" = yes; then |
5077 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5078 | else | |
5079 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5080 | fi | |
1e487827 | 5081 | |
b64f0a5f | 5082 | else |
1e487827 | 5083 | |
b64f0a5f RL |
5084 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5085 | if test "x$LINE" != x ; then | |
5086 | eval "DEFAULT_$LINE" | |
5087 | else | |
5088 | no_cache=1 | |
5089 | fi | |
5090 | ||
5091 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 5092 | |
1e487827 | 5093 | fi; |
b64f0a5f RL |
5094 | |
5095 | eval "$ac_cv_use_metafile" | |
5096 | if test "$no_cache" != 1; then | |
5097 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5098 | fi | |
5099 | ||
5100 | if test "$wxUSE_METAFILE" = yes; then | |
1e487827 VS |
5101 | echo "$as_me:5101: result: yes" >&5 |
5102 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 5103 | else |
1e487827 VS |
5104 | echo "$as_me:5104: result: no" >&5 |
5105 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 5106 | fi |
10f2d63a | 5107 | |
1e487827 VS |
5108 | echo "$as_me:5108: checking for --enable-wxtree" >&5 |
5109 | echo $ECHO_N "checking for --enable-wxtree... $ECHO_C" >&6 | |
10f2d63a VZ |
5110 | no_cache=0 |
5111 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
5112 | if test "${enable_wxtree+set}" = set; then | |
5113 | enableval="$enable_wxtree" | |
1e487827 | 5114 | |
10f2d63a VZ |
5115 | if test "$enableval" = yes; then |
5116 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
5117 | else | |
5118 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
5119 | fi | |
1e487827 | 5120 | |
10f2d63a | 5121 | else |
1e487827 | 5122 | |
10f2d63a VZ |
5123 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
5124 | if test "x$LINE" != x ; then | |
5125 | eval "DEFAULT_$LINE" | |
5126 | else | |
5127 | no_cache=1 | |
5128 | fi | |
5129 | ||
5130 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
10f2d63a | 5131 | |
1e487827 | 5132 | fi; |
10f2d63a VZ |
5133 | |
5134 | eval "$ac_cv_use_wxtree" | |
5135 | if test "$no_cache" != 1; then | |
5136 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
5137 | fi | |
5138 | ||
5139 | if test "$wxUSE_WXTREE" = yes; then | |
1e487827 VS |
5140 | echo "$as_me:5140: result: yes" >&5 |
5141 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5142 | else |
1e487827 VS |
5143 | echo "$as_me:5143: result: no" >&5 |
5144 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5145 | fi |
10f2d63a | 5146 | |
1e487827 VS |
5147 | echo "$as_me:5147: checking for --enable-controls" >&5 |
5148 | echo $ECHO_N "checking for --enable-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
5149 | no_cache=0 |
5150 | # Check whether --enable-controls or --disable-controls was given. | |
5151 | if test "${enable_controls+set}" = set; then | |
5152 | enableval="$enable_controls" | |
1e487827 | 5153 | |
10f2d63a VZ |
5154 | if test "$enableval" = yes; then |
5155 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5156 | else | |
5157 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5158 | fi | |
1e487827 | 5159 | |
10f2d63a | 5160 | else |
1e487827 | 5161 | |
10f2d63a VZ |
5162 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5163 | if test "x$LINE" != x ; then | |
5164 | eval "DEFAULT_$LINE" | |
5165 | else | |
5166 | no_cache=1 | |
5167 | fi | |
5168 | ||
5169 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 5170 | |
1e487827 | 5171 | fi; |
10f2d63a VZ |
5172 | |
5173 | eval "$ac_cv_use_controls" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_CONTROLS" = yes; then | |
1e487827 VS |
5179 | echo "$as_me:5179: result: yes" >&5 |
5180 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5181 | else |
1e487827 VS |
5182 | echo "$as_me:5182: result: no" >&5 |
5183 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5184 | fi |
10f2d63a VZ |
5185 | |
5186 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5187 | DEFAULT_wxUSE_ACCEL=yes | |
5188 | DEFAULT_wxUSE_CARET=yes | |
5189 | DEFAULT_wxUSE_COMBOBOX=yes | |
5190 | DEFAULT_wxUSE_BMPBUTTON=yes | |
5191 | DEFAULT_wxUSE_CHECKBOX=yes | |
5192 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5193 | DEFAULT_wxUSE_CHOICE=yes | |
5194 | DEFAULT_wxUSE_GAUGE=yes | |
5195 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5196 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5197 | DEFAULT_wxUSE_IMAGLIST=yes |
5198 | DEFAULT_wxUSE_LISTBOX=yes | |
5199 | DEFAULT_wxUSE_LISTCTRL=yes | |
5200 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5201 | DEFAULT_wxUSE_RADIOBOX=yes | |
5202 | DEFAULT_wxUSE_RADIOBTN=yes | |
5203 | DEFAULT_wxUSE_SASH=yes | |
5204 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5205 | DEFAULT_wxUSE_SLIDER=yes | |
5206 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5207 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5208 | DEFAULT_wxUSE_SPLITTER=yes |
5209 | DEFAULT_wxUSE_STATBMP=yes | |
5210 | DEFAULT_wxUSE_STATBOX=yes | |
5211 | DEFAULT_wxUSE_STATLINE=yes | |
5212 | DEFAULT_wxUSE_STATUSBAR=yes | |
5213 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5214 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5215 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5216 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5217 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5218 | DEFAULT_wxUSE_TOOLTIPS=yes |
5219 | DEFAULT_wxUSE_TREECTRL=yes | |
5220 | elif test "$wxUSE_CONTROLS" = "no"; then | |
5221 | DEFAULT_wxUSE_ACCEL=no | |
5222 | DEFAULT_wxUSE_CARET=no | |
5223 | DEFAULT_wxUSE_COMBOBOX=no | |
5224 | DEFAULT_wxUSE_BMPBUTTON=no | |
5225 | DEFAULT_wxUSE_CHECKBOX=no | |
5226 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5227 | DEFAULT_wxUSE_CHOICE=no | |
5228 | DEFAULT_wxUSE_GAUGE=no | |
5229 | DEFAULT_wxUSE_GRID=no | |
5230 | DEFAULT_wxUSE_NEW_GRID=no | |
5231 | DEFAULT_wxUSE_IMAGLIST=no | |
5232 | DEFAULT_wxUSE_LISTBOX=no | |
5233 | DEFAULT_wxUSE_LISTCTRL=no | |
5234 | DEFAULT_wxUSE_NOTEBOOK=no | |
5235 | DEFAULT_wxUSE_RADIOBOX=no | |
5236 | DEFAULT_wxUSE_RADIOBTN=no | |
5237 | DEFAULT_wxUSE_SASH=no | |
5238 | DEFAULT_wxUSE_SCROLLBAR=no | |
5239 | DEFAULT_wxUSE_SLIDER=no | |
5240 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5241 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5242 | DEFAULT_wxUSE_SPLITTER=no |
5243 | DEFAULT_wxUSE_STATBMP=no | |
5244 | DEFAULT_wxUSE_STATBOX=no | |
5245 | DEFAULT_wxUSE_STATLINE=no | |
5246 | DEFAULT_wxUSE_STATUSBAR=no | |
5247 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5248 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5249 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5250 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5251 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5252 | DEFAULT_wxUSE_TOOLTIPS=no |
5253 | DEFAULT_wxUSE_TREECTRL=no | |
5254 | fi | |
5255 | ||
1e487827 VS |
5256 | echo "$as_me:5256: checking for --enable-accel" >&5 |
5257 | echo $ECHO_N "checking for --enable-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
5258 | no_cache=0 |
5259 | # Check whether --enable-accel or --disable-accel was given. | |
5260 | if test "${enable_accel+set}" = set; then | |
5261 | enableval="$enable_accel" | |
1e487827 | 5262 | |
10f2d63a VZ |
5263 | if test "$enableval" = yes; then |
5264 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5265 | else | |
5266 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5267 | fi | |
1e487827 | 5268 | |
10f2d63a | 5269 | else |
1e487827 | 5270 | |
10f2d63a VZ |
5271 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5272 | if test "x$LINE" != x ; then | |
5273 | eval "DEFAULT_$LINE" | |
5274 | else | |
5275 | no_cache=1 | |
5276 | fi | |
5277 | ||
5278 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 5279 | |
1e487827 | 5280 | fi; |
10f2d63a VZ |
5281 | |
5282 | eval "$ac_cv_use_accel" | |
5283 | if test "$no_cache" != 1; then | |
5284 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5285 | fi | |
5286 | ||
5287 | if test "$wxUSE_ACCEL" = yes; then | |
1e487827 VS |
5288 | echo "$as_me:5288: result: yes" >&5 |
5289 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5290 | else |
1e487827 VS |
5291 | echo "$as_me:5291: result: no" >&5 |
5292 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5293 | fi |
10f2d63a | 5294 | |
1e487827 VS |
5295 | echo "$as_me:5295: checking for --enable-caret" >&5 |
5296 | echo $ECHO_N "checking for --enable-caret... $ECHO_C" >&6 | |
10f2d63a VZ |
5297 | no_cache=0 |
5298 | # Check whether --enable-caret or --disable-caret was given. | |
5299 | if test "${enable_caret+set}" = set; then | |
5300 | enableval="$enable_caret" | |
1e487827 | 5301 | |
10f2d63a VZ |
5302 | if test "$enableval" = yes; then |
5303 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5304 | else | |
5305 | ac_cv_use_caret='wxUSE_CARET=no' | |
5306 | fi | |
1e487827 | 5307 | |
10f2d63a | 5308 | else |
1e487827 | 5309 | |
10f2d63a VZ |
5310 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
10f2d63a | 5318 | |
1e487827 | 5319 | fi; |
10f2d63a VZ |
5320 | |
5321 | eval "$ac_cv_use_caret" | |
5322 | if test "$no_cache" != 1; then | |
5323 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5324 | fi | |
5325 | ||
5326 | if test "$wxUSE_CARET" = yes; then | |
1e487827 VS |
5327 | echo "$as_me:5327: result: yes" >&5 |
5328 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5329 | else |
1e487827 VS |
5330 | echo "$as_me:5330: result: no" >&5 |
5331 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5332 | fi |
10f2d63a | 5333 | |
1e487827 VS |
5334 | echo "$as_me:5334: checking for --enable-bmpbutton" >&5 |
5335 | echo $ECHO_N "checking for --enable-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
5336 | no_cache=0 |
5337 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5338 | if test "${enable_bmpbutton+set}" = set; then | |
5339 | enableval="$enable_bmpbutton" | |
1e487827 | 5340 | |
10f2d63a VZ |
5341 | if test "$enableval" = yes; then |
5342 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5343 | else | |
5344 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5345 | fi | |
1e487827 | 5346 | |
10f2d63a | 5347 | else |
1e487827 | 5348 | |
10f2d63a VZ |
5349 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5350 | if test "x$LINE" != x ; then | |
5351 | eval "DEFAULT_$LINE" | |
5352 | else | |
5353 | no_cache=1 | |
5354 | fi | |
5355 | ||
5356 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 5357 | |
1e487827 | 5358 | fi; |
10f2d63a VZ |
5359 | |
5360 | eval "$ac_cv_use_bmpbutton" | |
5361 | if test "$no_cache" != 1; then | |
5362 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5363 | fi | |
5364 | ||
5365 | if test "$wxUSE_BMPBUTTON" = yes; then | |
1e487827 VS |
5366 | echo "$as_me:5366: result: yes" >&5 |
5367 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5368 | else |
1e487827 VS |
5369 | echo "$as_me:5369: result: no" >&5 |
5370 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5371 | fi |
10f2d63a | 5372 | |
1e487827 VS |
5373 | echo "$as_me:5373: checking for --enable-checkbox" >&5 |
5374 | echo $ECHO_N "checking for --enable-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
5375 | no_cache=0 |
5376 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5377 | if test "${enable_checkbox+set}" = set; then | |
5378 | enableval="$enable_checkbox" | |
1e487827 | 5379 | |
10f2d63a VZ |
5380 | if test "$enableval" = yes; then |
5381 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5382 | else | |
5383 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5384 | fi | |
1e487827 | 5385 | |
10f2d63a | 5386 | else |
1e487827 | 5387 | |
10f2d63a VZ |
5388 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 5396 | |
1e487827 | 5397 | fi; |
10f2d63a VZ |
5398 | |
5399 | eval "$ac_cv_use_checkbox" | |
5400 | if test "$no_cache" != 1; then | |
5401 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5402 | fi | |
5403 | ||
5404 | if test "$wxUSE_CHECKBOX" = yes; then | |
1e487827 VS |
5405 | echo "$as_me:5405: result: yes" >&5 |
5406 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5407 | else |
1e487827 VS |
5408 | echo "$as_me:5408: result: no" >&5 |
5409 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5410 | fi |
10f2d63a | 5411 | |
1e487827 VS |
5412 | echo "$as_me:5412: checking for --enable-checklst" >&5 |
5413 | echo $ECHO_N "checking for --enable-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
5414 | no_cache=0 |
5415 | # Check whether --enable-checklst or --disable-checklst was given. | |
5416 | if test "${enable_checklst+set}" = set; then | |
5417 | enableval="$enable_checklst" | |
1e487827 | 5418 | |
10f2d63a VZ |
5419 | if test "$enableval" = yes; then |
5420 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5421 | else | |
5422 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5423 | fi | |
1e487827 | 5424 | |
10f2d63a | 5425 | else |
1e487827 | 5426 | |
10f2d63a VZ |
5427 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5428 | if test "x$LINE" != x ; then | |
5429 | eval "DEFAULT_$LINE" | |
5430 | else | |
5431 | no_cache=1 | |
5432 | fi | |
5433 | ||
5434 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 5435 | |
1e487827 | 5436 | fi; |
10f2d63a VZ |
5437 | |
5438 | eval "$ac_cv_use_checklst" | |
5439 | if test "$no_cache" != 1; then | |
5440 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5441 | fi | |
5442 | ||
5443 | if test "$wxUSE_CHECKLST" = yes; then | |
1e487827 VS |
5444 | echo "$as_me:5444: result: yes" >&5 |
5445 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5446 | else |
1e487827 VS |
5447 | echo "$as_me:5447: result: no" >&5 |
5448 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5449 | fi |
10f2d63a | 5450 | |
1e487827 VS |
5451 | echo "$as_me:5451: checking for --enable-choice" >&5 |
5452 | echo $ECHO_N "checking for --enable-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
5453 | no_cache=0 |
5454 | # Check whether --enable-choice or --disable-choice was given. | |
5455 | if test "${enable_choice+set}" = set; then | |
5456 | enableval="$enable_choice" | |
1e487827 | 5457 | |
10f2d63a VZ |
5458 | if test "$enableval" = yes; then |
5459 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5460 | else | |
5461 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5462 | fi | |
1e487827 | 5463 | |
10f2d63a | 5464 | else |
1e487827 | 5465 | |
10f2d63a VZ |
5466 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5467 | if test "x$LINE" != x ; then | |
5468 | eval "DEFAULT_$LINE" | |
5469 | else | |
5470 | no_cache=1 | |
5471 | fi | |
5472 | ||
5473 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 5474 | |
1e487827 | 5475 | fi; |
10f2d63a VZ |
5476 | |
5477 | eval "$ac_cv_use_choice" | |
5478 | if test "$no_cache" != 1; then | |
5479 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5480 | fi | |
5481 | ||
5482 | if test "$wxUSE_CHOICE" = yes; then | |
1e487827 VS |
5483 | echo "$as_me:5483: result: yes" >&5 |
5484 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5485 | else |
1e487827 VS |
5486 | echo "$as_me:5486: result: no" >&5 |
5487 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5488 | fi |
10f2d63a | 5489 | |
1e487827 VS |
5490 | echo "$as_me:5490: checking for --enable-combobox" >&5 |
5491 | echo $ECHO_N "checking for --enable-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
5492 | no_cache=0 |
5493 | # Check whether --enable-combobox or --disable-combobox was given. | |
5494 | if test "${enable_combobox+set}" = set; then | |
5495 | enableval="$enable_combobox" | |
1e487827 | 5496 | |
10f2d63a VZ |
5497 | if test "$enableval" = yes; then |
5498 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5499 | else | |
5500 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5501 | fi | |
1e487827 | 5502 | |
10f2d63a | 5503 | else |
1e487827 | 5504 | |
10f2d63a VZ |
5505 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5506 | if test "x$LINE" != x ; then | |
5507 | eval "DEFAULT_$LINE" | |
5508 | else | |
5509 | no_cache=1 | |
5510 | fi | |
5511 | ||
5512 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 5513 | |
1e487827 | 5514 | fi; |
10f2d63a VZ |
5515 | |
5516 | eval "$ac_cv_use_combobox" | |
5517 | if test "$no_cache" != 1; then | |
5518 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5519 | fi | |
5520 | ||
5521 | if test "$wxUSE_COMBOBOX" = yes; then | |
1e487827 VS |
5522 | echo "$as_me:5522: result: yes" >&5 |
5523 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5524 | else |
1e487827 VS |
5525 | echo "$as_me:5525: result: no" >&5 |
5526 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5527 | fi |
10f2d63a | 5528 | |
1e487827 VS |
5529 | echo "$as_me:5529: checking for --enable-gauge" >&5 |
5530 | echo $ECHO_N "checking for --enable-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
5531 | no_cache=0 |
5532 | # Check whether --enable-gauge or --disable-gauge was given. | |
5533 | if test "${enable_gauge+set}" = set; then | |
5534 | enableval="$enable_gauge" | |
1e487827 | 5535 | |
10f2d63a VZ |
5536 | if test "$enableval" = yes; then |
5537 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5538 | else | |
5539 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5540 | fi | |
1e487827 | 5541 | |
10f2d63a | 5542 | else |
1e487827 | 5543 | |
10f2d63a VZ |
5544 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5545 | if test "x$LINE" != x ; then | |
5546 | eval "DEFAULT_$LINE" | |
5547 | else | |
5548 | no_cache=1 | |
5549 | fi | |
5550 | ||
5551 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 5552 | |
1e487827 | 5553 | fi; |
10f2d63a VZ |
5554 | |
5555 | eval "$ac_cv_use_gauge" | |
5556 | if test "$no_cache" != 1; then | |
5557 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5558 | fi | |
5559 | ||
5560 | if test "$wxUSE_GAUGE" = yes; then | |
1e487827 VS |
5561 | echo "$as_me:5561: result: yes" >&5 |
5562 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5563 | else |
1e487827 VS |
5564 | echo "$as_me:5564: result: no" >&5 |
5565 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5566 | fi |
10f2d63a | 5567 | |
1e487827 VS |
5568 | echo "$as_me:5568: checking for --enable-grid" >&5 |
5569 | echo $ECHO_N "checking for --enable-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
5570 | no_cache=0 |
5571 | # Check whether --enable-grid or --disable-grid was given. | |
5572 | if test "${enable_grid+set}" = set; then | |
5573 | enableval="$enable_grid" | |
1e487827 | 5574 | |
10f2d63a VZ |
5575 | if test "$enableval" = yes; then |
5576 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5577 | else | |
5578 | ac_cv_use_grid='wxUSE_GRID=no' | |
5579 | fi | |
1e487827 | 5580 | |
10f2d63a | 5581 | else |
1e487827 | 5582 | |
10f2d63a VZ |
5583 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5584 | if test "x$LINE" != x ; then | |
5585 | eval "DEFAULT_$LINE" | |
5586 | else | |
5587 | no_cache=1 | |
5588 | fi | |
5589 | ||
5590 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 5591 | |
1e487827 | 5592 | fi; |
10f2d63a VZ |
5593 | |
5594 | eval "$ac_cv_use_grid" | |
5595 | if test "$no_cache" != 1; then | |
5596 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5597 | fi | |
5598 | ||
5599 | if test "$wxUSE_GRID" = yes; then | |
1e487827 VS |
5600 | echo "$as_me:5600: result: yes" >&5 |
5601 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5602 | else |
1e487827 VS |
5603 | echo "$as_me:5603: result: no" >&5 |
5604 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5605 | fi |
10f2d63a | 5606 | |
1e487827 VS |
5607 | echo "$as_me:5607: checking for --enable-newgrid" >&5 |
5608 | echo $ECHO_N "checking for --enable-newgrid... $ECHO_C" >&6 | |
10f2d63a VZ |
5609 | no_cache=0 |
5610 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5611 | if test "${enable_newgrid+set}" = set; then | |
5612 | enableval="$enable_newgrid" | |
1e487827 | 5613 | |
10f2d63a VZ |
5614 | if test "$enableval" = yes; then |
5615 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5616 | else | |
5617 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5618 | fi | |
1e487827 | 5619 | |
10f2d63a | 5620 | else |
1e487827 | 5621 | |
10f2d63a VZ |
5622 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5623 | if test "x$LINE" != x ; then | |
5624 | eval "DEFAULT_$LINE" | |
5625 | else | |
5626 | no_cache=1 | |
5627 | fi | |
5628 | ||
5629 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
10f2d63a | 5630 | |
1e487827 | 5631 | fi; |
10f2d63a VZ |
5632 | |
5633 | eval "$ac_cv_use_newgrid" | |
5634 | if test "$no_cache" != 1; then | |
5635 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5636 | fi | |
5637 | ||
5638 | if test "$wxUSE_NEW_GRID" = yes; then | |
1e487827 VS |
5639 | echo "$as_me:5639: result: yes" >&5 |
5640 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5641 | else |
1e487827 VS |
5642 | echo "$as_me:5642: result: no" >&5 |
5643 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5644 | fi |
10f2d63a | 5645 | |
1e487827 VS |
5646 | echo "$as_me:5646: checking for --enable-imaglist" >&5 |
5647 | echo $ECHO_N "checking for --enable-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
5648 | no_cache=0 |
5649 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5650 | if test "${enable_imaglist+set}" = set; then | |
5651 | enableval="$enable_imaglist" | |
1e487827 | 5652 | |
10f2d63a VZ |
5653 | if test "$enableval" = yes; then |
5654 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5655 | else | |
5656 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5657 | fi | |
1e487827 | 5658 | |
10f2d63a | 5659 | else |
1e487827 | 5660 | |
10f2d63a VZ |
5661 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5662 | if test "x$LINE" != x ; then | |
5663 | eval "DEFAULT_$LINE" | |
5664 | else | |
5665 | no_cache=1 | |
5666 | fi | |
5667 | ||
5668 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 5669 | |
1e487827 | 5670 | fi; |
10f2d63a VZ |
5671 | |
5672 | eval "$ac_cv_use_imaglist" | |
5673 | if test "$no_cache" != 1; then | |
5674 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5675 | fi | |
5676 | ||
5677 | if test "$wxUSE_IMAGLIST" = yes; then | |
1e487827 VS |
5678 | echo "$as_me:5678: result: yes" >&5 |
5679 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5680 | else |
1e487827 VS |
5681 | echo "$as_me:5681: result: no" >&5 |
5682 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5683 | fi |
10f2d63a | 5684 | |
1e487827 VS |
5685 | echo "$as_me:5685: checking for --enable-listbox" >&5 |
5686 | echo $ECHO_N "checking for --enable-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
5687 | no_cache=0 |
5688 | # Check whether --enable-listbox or --disable-listbox was given. | |
5689 | if test "${enable_listbox+set}" = set; then | |
5690 | enableval="$enable_listbox" | |
1e487827 | 5691 | |
10f2d63a VZ |
5692 | if test "$enableval" = yes; then |
5693 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5694 | else | |
5695 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5696 | fi | |
1e487827 | 5697 | |
10f2d63a | 5698 | else |
1e487827 | 5699 | |
10f2d63a VZ |
5700 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5701 | if test "x$LINE" != x ; then | |
5702 | eval "DEFAULT_$LINE" | |
5703 | else | |
5704 | no_cache=1 | |
5705 | fi | |
5706 | ||
5707 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 5708 | |
1e487827 | 5709 | fi; |
10f2d63a VZ |
5710 | |
5711 | eval "$ac_cv_use_listbox" | |
5712 | if test "$no_cache" != 1; then | |
5713 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5714 | fi | |
5715 | ||
5716 | if test "$wxUSE_LISTBOX" = yes; then | |
1e487827 VS |
5717 | echo "$as_me:5717: result: yes" >&5 |
5718 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5719 | else |
1e487827 VS |
5720 | echo "$as_me:5720: result: no" >&5 |
5721 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5722 | fi |
10f2d63a | 5723 | |
1e487827 VS |
5724 | echo "$as_me:5724: checking for --enable-listctrl" >&5 |
5725 | echo $ECHO_N "checking for --enable-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
5726 | no_cache=0 |
5727 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5728 | if test "${enable_listctrl+set}" = set; then | |
5729 | enableval="$enable_listctrl" | |
1e487827 | 5730 | |
10f2d63a VZ |
5731 | if test "$enableval" = yes; then |
5732 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5733 | else | |
5734 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5735 | fi | |
1e487827 | 5736 | |
10f2d63a | 5737 | else |
1e487827 | 5738 | |
10f2d63a VZ |
5739 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5740 | if test "x$LINE" != x ; then | |
5741 | eval "DEFAULT_$LINE" | |
5742 | else | |
5743 | no_cache=1 | |
5744 | fi | |
5745 | ||
5746 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 5747 | |
1e487827 | 5748 | fi; |
10f2d63a VZ |
5749 | |
5750 | eval "$ac_cv_use_listctrl" | |
5751 | if test "$no_cache" != 1; then | |
5752 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5753 | fi | |
5754 | ||
5755 | if test "$wxUSE_LISTCTRL" = yes; then | |
1e487827 VS |
5756 | echo "$as_me:5756: result: yes" >&5 |
5757 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5758 | else |
1e487827 VS |
5759 | echo "$as_me:5759: result: no" >&5 |
5760 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5761 | fi |
10f2d63a | 5762 | |
1e487827 VS |
5763 | echo "$as_me:5763: checking for --enable-notebook" >&5 |
5764 | echo $ECHO_N "checking for --enable-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
5765 | no_cache=0 |
5766 | # Check whether --enable-notebook or --disable-notebook was given. | |
5767 | if test "${enable_notebook+set}" = set; then | |
5768 | enableval="$enable_notebook" | |
1e487827 | 5769 | |
10f2d63a VZ |
5770 | if test "$enableval" = yes; then |
5771 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5772 | else | |
5773 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5774 | fi | |
1e487827 | 5775 | |
10f2d63a | 5776 | else |
1e487827 | 5777 | |
10f2d63a VZ |
5778 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5779 | if test "x$LINE" != x ; then | |
5780 | eval "DEFAULT_$LINE" | |
5781 | else | |
5782 | no_cache=1 | |
5783 | fi | |
5784 | ||
5785 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 5786 | |
1e487827 | 5787 | fi; |
10f2d63a VZ |
5788 | |
5789 | eval "$ac_cv_use_notebook" | |
5790 | if test "$no_cache" != 1; then | |
5791 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5792 | fi | |
5793 | ||
5794 | if test "$wxUSE_NOTEBOOK" = yes; then | |
1e487827 VS |
5795 | echo "$as_me:5795: result: yes" >&5 |
5796 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5797 | else |
1e487827 VS |
5798 | echo "$as_me:5798: result: no" >&5 |
5799 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5800 | fi |
10f2d63a | 5801 | |
1e487827 VS |
5802 | echo "$as_me:5802: checking for --enable-radiobox" >&5 |
5803 | echo $ECHO_N "checking for --enable-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
5804 | no_cache=0 |
5805 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5806 | if test "${enable_radiobox+set}" = set; then | |
5807 | enableval="$enable_radiobox" | |
1e487827 | 5808 | |
10f2d63a VZ |
5809 | if test "$enableval" = yes; then |
5810 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5811 | else | |
5812 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5813 | fi | |
1e487827 | 5814 | |
10f2d63a | 5815 | else |
1e487827 | 5816 | |
10f2d63a VZ |
5817 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5818 | if test "x$LINE" != x ; then | |
5819 | eval "DEFAULT_$LINE" | |
5820 | else | |
5821 | no_cache=1 | |
5822 | fi | |
5823 | ||
5824 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 5825 | |
1e487827 | 5826 | fi; |
10f2d63a VZ |
5827 | |
5828 | eval "$ac_cv_use_radiobox" | |
5829 | if test "$no_cache" != 1; then | |
5830 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5831 | fi | |
5832 | ||
5833 | if test "$wxUSE_RADIOBOX" = yes; then | |
1e487827 VS |
5834 | echo "$as_me:5834: result: yes" >&5 |
5835 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5836 | else |
1e487827 VS |
5837 | echo "$as_me:5837: result: no" >&5 |
5838 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5839 | fi |
10f2d63a | 5840 | |
1e487827 VS |
5841 | echo "$as_me:5841: checking for --enable-radiobtn" >&5 |
5842 | echo $ECHO_N "checking for --enable-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
5843 | no_cache=0 |
5844 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5845 | if test "${enable_radiobtn+set}" = set; then | |
5846 | enableval="$enable_radiobtn" | |
1e487827 | 5847 | |
10f2d63a VZ |
5848 | if test "$enableval" = yes; then |
5849 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5850 | else | |
5851 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5852 | fi | |
1e487827 | 5853 | |
10f2d63a | 5854 | else |
1e487827 | 5855 | |
10f2d63a VZ |
5856 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5857 | if test "x$LINE" != x ; then | |
5858 | eval "DEFAULT_$LINE" | |
5859 | else | |
5860 | no_cache=1 | |
5861 | fi | |
5862 | ||
5863 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 5864 | |
1e487827 | 5865 | fi; |
10f2d63a VZ |
5866 | |
5867 | eval "$ac_cv_use_radiobtn" | |
5868 | if test "$no_cache" != 1; then | |
5869 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5870 | fi | |
5871 | ||
5872 | if test "$wxUSE_RADIOBTN" = yes; then | |
1e487827 VS |
5873 | echo "$as_me:5873: result: yes" >&5 |
5874 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5875 | else |
1e487827 VS |
5876 | echo "$as_me:5876: result: no" >&5 |
5877 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5878 | fi |
10f2d63a | 5879 | |
1e487827 VS |
5880 | echo "$as_me:5880: checking for --enable-sash" >&5 |
5881 | echo $ECHO_N "checking for --enable-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
5882 | no_cache=0 |
5883 | # Check whether --enable-sash or --disable-sash was given. | |
5884 | if test "${enable_sash+set}" = set; then | |
5885 | enableval="$enable_sash" | |
1e487827 | 5886 | |
10f2d63a VZ |
5887 | if test "$enableval" = yes; then |
5888 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5889 | else | |
5890 | ac_cv_use_sash='wxUSE_SASH=no' | |
5891 | fi | |
1e487827 | 5892 | |
10f2d63a | 5893 | else |
1e487827 | 5894 | |
10f2d63a VZ |
5895 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5896 | if test "x$LINE" != x ; then | |
5897 | eval "DEFAULT_$LINE" | |
5898 | else | |
5899 | no_cache=1 | |
5900 | fi | |
5901 | ||
5902 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 5903 | |
1e487827 | 5904 | fi; |
10f2d63a VZ |
5905 | |
5906 | eval "$ac_cv_use_sash" | |
5907 | if test "$no_cache" != 1; then | |
5908 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5909 | fi | |
5910 | ||
5911 | if test "$wxUSE_SASH" = yes; then | |
1e487827 VS |
5912 | echo "$as_me:5912: result: yes" >&5 |
5913 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5914 | else |
1e487827 VS |
5915 | echo "$as_me:5915: result: no" >&5 |
5916 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5917 | fi |
10f2d63a | 5918 | |
1e487827 VS |
5919 | echo "$as_me:5919: checking for --enable-scrollbar" >&5 |
5920 | echo $ECHO_N "checking for --enable-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
5921 | no_cache=0 |
5922 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5923 | if test "${enable_scrollbar+set}" = set; then | |
5924 | enableval="$enable_scrollbar" | |
1e487827 | 5925 | |
10f2d63a VZ |
5926 | if test "$enableval" = yes; then |
5927 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5928 | else | |
5929 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5930 | fi | |
1e487827 | 5931 | |
10f2d63a | 5932 | else |
1e487827 | 5933 | |
10f2d63a VZ |
5934 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5935 | if test "x$LINE" != x ; then | |
5936 | eval "DEFAULT_$LINE" | |
5937 | else | |
5938 | no_cache=1 | |
5939 | fi | |
5940 | ||
5941 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 5942 | |
1e487827 | 5943 | fi; |
10f2d63a VZ |
5944 | |
5945 | eval "$ac_cv_use_scrollbar" | |
5946 | if test "$no_cache" != 1; then | |
5947 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5948 | fi | |
5949 | ||
5950 | if test "$wxUSE_SCROLLBAR" = yes; then | |
1e487827 VS |
5951 | echo "$as_me:5951: result: yes" >&5 |
5952 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5953 | else |
1e487827 VS |
5954 | echo "$as_me:5954: result: no" >&5 |
5955 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5956 | fi |
10f2d63a | 5957 | |
1e487827 VS |
5958 | echo "$as_me:5958: checking for --enable-slider" >&5 |
5959 | echo $ECHO_N "checking for --enable-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
5960 | no_cache=0 |
5961 | # Check whether --enable-slider or --disable-slider was given. | |
5962 | if test "${enable_slider+set}" = set; then | |
5963 | enableval="$enable_slider" | |
1e487827 | 5964 | |
10f2d63a VZ |
5965 | if test "$enableval" = yes; then |
5966 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5967 | else | |
5968 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5969 | fi | |
1e487827 | 5970 | |
10f2d63a | 5971 | else |
1e487827 | 5972 | |
10f2d63a VZ |
5973 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5974 | if test "x$LINE" != x ; then | |
5975 | eval "DEFAULT_$LINE" | |
5976 | else | |
5977 | no_cache=1 | |
5978 | fi | |
5979 | ||
5980 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 5981 | |
1e487827 | 5982 | fi; |
10f2d63a VZ |
5983 | |
5984 | eval "$ac_cv_use_slider" | |
5985 | if test "$no_cache" != 1; then | |
5986 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5987 | fi | |
5988 | ||
5989 | if test "$wxUSE_SLIDER" = yes; then | |
1e487827 VS |
5990 | echo "$as_me:5990: result: yes" >&5 |
5991 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5992 | else |
1e487827 VS |
5993 | echo "$as_me:5993: result: no" >&5 |
5994 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5995 | fi |
10f2d63a | 5996 | |
1e487827 VS |
5997 | echo "$as_me:5997: checking for --enable-spinbtn" >&5 |
5998 | echo $ECHO_N "checking for --enable-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
5999 | no_cache=0 |
6000 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6001 | if test "${enable_spinbtn+set}" = set; then | |
6002 | enableval="$enable_spinbtn" | |
1e487827 | 6003 | |
10f2d63a VZ |
6004 | if test "$enableval" = yes; then |
6005 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6006 | else | |
6007 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6008 | fi | |
1e487827 | 6009 | |
10f2d63a | 6010 | else |
1e487827 | 6011 | |
10f2d63a VZ |
6012 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6013 | if test "x$LINE" != x ; then | |
6014 | eval "DEFAULT_$LINE" | |
6015 | else | |
6016 | no_cache=1 | |
6017 | fi | |
6018 | ||
6019 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 6020 | |
1e487827 | 6021 | fi; |
10f2d63a VZ |
6022 | |
6023 | eval "$ac_cv_use_spinbtn" | |
6024 | if test "$no_cache" != 1; then | |
6025 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6026 | fi | |
6027 | ||
6028 | if test "$wxUSE_SPINBTN" = yes; then | |
1e487827 VS |
6029 | echo "$as_me:6029: result: yes" >&5 |
6030 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6031 | else |
1e487827 VS |
6032 | echo "$as_me:6032: result: no" >&5 |
6033 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6034 | fi |
10f2d63a | 6035 | |
1e487827 VS |
6036 | echo "$as_me:6036: checking for --enable-spinctrl" >&5 |
6037 | echo $ECHO_N "checking for --enable-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
6038 | no_cache=0 |
6039 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6040 | if test "${enable_spinctrl+set}" = set; then | |
6041 | enableval="$enable_spinctrl" | |
1e487827 | 6042 | |
56cfaa52 RR |
6043 | if test "$enableval" = yes; then |
6044 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6045 | else | |
6046 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6047 | fi | |
1e487827 | 6048 | |
56cfaa52 | 6049 | else |
1e487827 | 6050 | |
56cfaa52 RR |
6051 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6052 | if test "x$LINE" != x ; then | |
6053 | eval "DEFAULT_$LINE" | |
6054 | else | |
6055 | no_cache=1 | |
6056 | fi | |
6057 | ||
6058 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 6059 | |
1e487827 | 6060 | fi; |
56cfaa52 RR |
6061 | |
6062 | eval "$ac_cv_use_spinctrl" | |
6063 | if test "$no_cache" != 1; then | |
6064 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6065 | fi | |
6066 | ||
6067 | if test "$wxUSE_SPINCTRL" = yes; then | |
1e487827 VS |
6068 | echo "$as_me:6068: result: yes" >&5 |
6069 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 6070 | else |
1e487827 VS |
6071 | echo "$as_me:6071: result: no" >&5 |
6072 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 6073 | fi |
56cfaa52 | 6074 | |
1e487827 VS |
6075 | echo "$as_me:6075: checking for --enable-splitter" >&5 |
6076 | echo $ECHO_N "checking for --enable-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
6077 | no_cache=0 |
6078 | # Check whether --enable-splitter or --disable-splitter was given. | |
6079 | if test "${enable_splitter+set}" = set; then | |
6080 | enableval="$enable_splitter" | |
1e487827 | 6081 | |
10f2d63a VZ |
6082 | if test "$enableval" = yes; then |
6083 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6084 | else | |
6085 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6086 | fi | |
1e487827 | 6087 | |
10f2d63a | 6088 | else |
1e487827 | 6089 | |
10f2d63a VZ |
6090 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6091 | if test "x$LINE" != x ; then | |
6092 | eval "DEFAULT_$LINE" | |
6093 | else | |
6094 | no_cache=1 | |
6095 | fi | |
6096 | ||
6097 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 6098 | |
1e487827 | 6099 | fi; |
10f2d63a VZ |
6100 | |
6101 | eval "$ac_cv_use_splitter" | |
6102 | if test "$no_cache" != 1; then | |
6103 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6104 | fi | |
6105 | ||
6106 | if test "$wxUSE_SPLITTER" = yes; then | |
1e487827 VS |
6107 | echo "$as_me:6107: result: yes" >&5 |
6108 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6109 | else |
1e487827 VS |
6110 | echo "$as_me:6110: result: no" >&5 |
6111 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6112 | fi |
10f2d63a | 6113 | |
1e487827 VS |
6114 | echo "$as_me:6114: checking for --enable-statbmp" >&5 |
6115 | echo $ECHO_N "checking for --enable-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
6116 | no_cache=0 |
6117 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6118 | if test "${enable_statbmp+set}" = set; then | |
6119 | enableval="$enable_statbmp" | |
1e487827 | 6120 | |
10f2d63a VZ |
6121 | if test "$enableval" = yes; then |
6122 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6123 | else | |
6124 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6125 | fi | |
1e487827 | 6126 | |
10f2d63a | 6127 | else |
1e487827 | 6128 | |
10f2d63a VZ |
6129 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6130 | if test "x$LINE" != x ; then | |
6131 | eval "DEFAULT_$LINE" | |
6132 | else | |
6133 | no_cache=1 | |
6134 | fi | |
6135 | ||
6136 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 6137 | |
1e487827 | 6138 | fi; |
10f2d63a VZ |
6139 | |
6140 | eval "$ac_cv_use_statbmp" | |
6141 | if test "$no_cache" != 1; then | |
6142 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6143 | fi | |
6144 | ||
6145 | if test "$wxUSE_STATBMP" = yes; then | |
1e487827 VS |
6146 | echo "$as_me:6146: result: yes" >&5 |
6147 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6148 | else |
1e487827 VS |
6149 | echo "$as_me:6149: result: no" >&5 |
6150 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6151 | fi |
10f2d63a | 6152 | |
1e487827 VS |
6153 | echo "$as_me:6153: checking for --enable-statbox" >&5 |
6154 | echo $ECHO_N "checking for --enable-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6155 | no_cache=0 |
6156 | # Check whether --enable-statbox or --disable-statbox was given. | |
6157 | if test "${enable_statbox+set}" = set; then | |
6158 | enableval="$enable_statbox" | |
1e487827 | 6159 | |
10f2d63a VZ |
6160 | if test "$enableval" = yes; then |
6161 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6162 | else | |
6163 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6164 | fi | |
1e487827 | 6165 | |
10f2d63a | 6166 | else |
1e487827 | 6167 | |
10f2d63a VZ |
6168 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6169 | if test "x$LINE" != x ; then | |
6170 | eval "DEFAULT_$LINE" | |
6171 | else | |
6172 | no_cache=1 | |
6173 | fi | |
6174 | ||
6175 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 6176 | |
1e487827 | 6177 | fi; |
10f2d63a VZ |
6178 | |
6179 | eval "$ac_cv_use_statbox" | |
6180 | if test "$no_cache" != 1; then | |
6181 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6182 | fi | |
6183 | ||
6184 | if test "$wxUSE_STATBOX" = yes; then | |
1e487827 VS |
6185 | echo "$as_me:6185: result: yes" >&5 |
6186 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6187 | else |
1e487827 VS |
6188 | echo "$as_me:6188: result: no" >&5 |
6189 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6190 | fi |
10f2d63a | 6191 | |
1e487827 VS |
6192 | echo "$as_me:6192: checking for --enable-statline" >&5 |
6193 | echo $ECHO_N "checking for --enable-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
6194 | no_cache=0 |
6195 | # Check whether --enable-statline or --disable-statline was given. | |
6196 | if test "${enable_statline+set}" = set; then | |
6197 | enableval="$enable_statline" | |
1e487827 | 6198 | |
10f2d63a VZ |
6199 | if test "$enableval" = yes; then |
6200 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6201 | else | |
6202 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6203 | fi | |
1e487827 | 6204 | |
10f2d63a | 6205 | else |
1e487827 | 6206 | |
10f2d63a VZ |
6207 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6208 | if test "x$LINE" != x ; then | |
6209 | eval "DEFAULT_$LINE" | |
6210 | else | |
6211 | no_cache=1 | |
6212 | fi | |
6213 | ||
6214 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 6215 | |
1e487827 | 6216 | fi; |
10f2d63a VZ |
6217 | |
6218 | eval "$ac_cv_use_statline" | |
6219 | if test "$no_cache" != 1; then | |
6220 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6221 | fi | |
6222 | ||
6223 | if test "$wxUSE_STATLINE" = yes; then | |
1e487827 VS |
6224 | echo "$as_me:6224: result: yes" >&5 |
6225 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6226 | else |
1e487827 VS |
6227 | echo "$as_me:6227: result: no" >&5 |
6228 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6229 | fi |
10f2d63a | 6230 | |
1e487827 VS |
6231 | echo "$as_me:6231: checking for --enable-statusbar" >&5 |
6232 | echo $ECHO_N "checking for --enable-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
6233 | no_cache=0 |
6234 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6235 | if test "${enable_statusbar+set}" = set; then | |
6236 | enableval="$enable_statusbar" | |
1e487827 | 6237 | |
10f2d63a VZ |
6238 | if test "$enableval" = yes; then |
6239 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6240 | else | |
6241 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6242 | fi | |
1e487827 | 6243 | |
10f2d63a | 6244 | else |
1e487827 | 6245 | |
10f2d63a VZ |
6246 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6247 | if test "x$LINE" != x ; then | |
6248 | eval "DEFAULT_$LINE" | |
6249 | else | |
6250 | no_cache=1 | |
6251 | fi | |
6252 | ||
6253 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 6254 | |
1e487827 | 6255 | fi; |
10f2d63a VZ |
6256 | |
6257 | eval "$ac_cv_use_statusbar" | |
6258 | if test "$no_cache" != 1; then | |
6259 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6260 | fi | |
6261 | ||
6262 | if test "$wxUSE_STATUSBAR" = yes; then | |
1e487827 VS |
6263 | echo "$as_me:6263: result: yes" >&5 |
6264 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6265 | else |
1e487827 VS |
6266 | echo "$as_me:6266: result: no" >&5 |
6267 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6268 | fi |
10f2d63a | 6269 | |
1e487827 VS |
6270 | echo "$as_me:6270: checking for --enable-tabdialog" >&5 |
6271 | echo $ECHO_N "checking for --enable-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
6272 | no_cache=0 |
6273 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6274 | if test "${enable_tabdialog+set}" = set; then | |
6275 | enableval="$enable_tabdialog" | |
1e487827 | 6276 | |
10f2d63a VZ |
6277 | if test "$enableval" = yes; then |
6278 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6279 | else | |
6280 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6281 | fi | |
1e487827 | 6282 | |
10f2d63a | 6283 | else |
1e487827 | 6284 | |
10f2d63a VZ |
6285 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6286 | if test "x$LINE" != x ; then | |
6287 | eval "DEFAULT_$LINE" | |
6288 | else | |
6289 | no_cache=1 | |
6290 | fi | |
6291 | ||
6292 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 6293 | |
1e487827 | 6294 | fi; |
10f2d63a VZ |
6295 | |
6296 | eval "$ac_cv_use_tabdialog" | |
6297 | if test "$no_cache" != 1; then | |
6298 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6299 | fi | |
6300 | ||
6301 | if test "$wxUSE_TABDIALOG" = yes; then | |
1e487827 VS |
6302 | echo "$as_me:6302: result: yes" >&5 |
6303 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6304 | else |
1e487827 VS |
6305 | echo "$as_me:6305: result: no" >&5 |
6306 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6307 | fi |
10f2d63a | 6308 | |
1e487827 VS |
6309 | echo "$as_me:6309: checking for --enable-togglebtn" >&5 |
6310 | echo $ECHO_N "checking for --enable-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
6311 | no_cache=0 |
6312 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6313 | if test "${enable_togglebtn+set}" = set; then | |
6314 | enableval="$enable_togglebtn" | |
1e487827 | 6315 | |
1db8dc4a VZ |
6316 | if test "$enableval" = yes; then |
6317 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6318 | else | |
6319 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6320 | fi | |
1e487827 | 6321 | |
1db8dc4a | 6322 | else |
1e487827 | 6323 | |
1db8dc4a VZ |
6324 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6325 | if test "x$LINE" != x ; then | |
6326 | eval "DEFAULT_$LINE" | |
6327 | else | |
6328 | no_cache=1 | |
6329 | fi | |
6330 | ||
6331 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 6332 | |
1e487827 | 6333 | fi; |
1db8dc4a VZ |
6334 | |
6335 | eval "$ac_cv_use_togglebtn" | |
6336 | if test "$no_cache" != 1; then | |
6337 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6338 | fi | |
6339 | ||
6340 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
1e487827 VS |
6341 | echo "$as_me:6341: result: yes" >&5 |
6342 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 6343 | else |
1e487827 VS |
6344 | echo "$as_me:6344: result: no" >&5 |
6345 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 6346 | fi |
1db8dc4a | 6347 | |
1e487827 VS |
6348 | echo "$as_me:6348: checking for --enable-toolbar" >&5 |
6349 | echo $ECHO_N "checking for --enable-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
6350 | no_cache=0 |
6351 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6352 | if test "${enable_toolbar+set}" = set; then | |
6353 | enableval="$enable_toolbar" | |
1e487827 | 6354 | |
10f2d63a VZ |
6355 | if test "$enableval" = yes; then |
6356 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6357 | else | |
6358 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6359 | fi | |
1e487827 | 6360 | |
10f2d63a | 6361 | else |
1e487827 | 6362 | |
10f2d63a VZ |
6363 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6364 | if test "x$LINE" != x ; then | |
6365 | eval "DEFAULT_$LINE" | |
6366 | else | |
6367 | no_cache=1 | |
6368 | fi | |
6369 | ||
6370 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 6371 | |
1e487827 | 6372 | fi; |
10f2d63a VZ |
6373 | |
6374 | eval "$ac_cv_use_toolbar" | |
6375 | if test "$no_cache" != 1; then | |
6376 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6377 | fi | |
6378 | ||
6379 | if test "$wxUSE_TOOLBAR" = yes; then | |
1e487827 VS |
6380 | echo "$as_me:6380: result: yes" >&5 |
6381 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6382 | else |
1e487827 VS |
6383 | echo "$as_me:6383: result: no" >&5 |
6384 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6385 | fi |
10f2d63a | 6386 | |
1e487827 VS |
6387 | echo "$as_me:6387: checking for --enable-tbarnative" >&5 |
6388 | echo $ECHO_N "checking for --enable-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
6389 | no_cache=0 |
6390 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6391 | if test "${enable_tbarnative+set}" = set; then | |
6392 | enableval="$enable_tbarnative" | |
1e487827 | 6393 | |
360d6699 VZ |
6394 | if test "$enableval" = yes; then |
6395 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6396 | else | |
6397 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6398 | fi | |
1e487827 | 6399 | |
360d6699 | 6400 | else |
1e487827 | 6401 | |
360d6699 VZ |
6402 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6403 | if test "x$LINE" != x ; then | |
6404 | eval "DEFAULT_$LINE" | |
6405 | else | |
6406 | no_cache=1 | |
6407 | fi | |
6408 | ||
6409 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 6410 | |
1e487827 | 6411 | fi; |
360d6699 VZ |
6412 | |
6413 | eval "$ac_cv_use_tbarnative" | |
6414 | if test "$no_cache" != 1; then | |
6415 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6416 | fi | |
6417 | ||
6418 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
1e487827 VS |
6419 | echo "$as_me:6419: result: yes" >&5 |
6420 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 6421 | else |
1e487827 VS |
6422 | echo "$as_me:6422: result: no" >&5 |
6423 | echo "${ECHO_T}no" >&6 | |
360d6699 | 6424 | fi |
360d6699 | 6425 | |
1e487827 VS |
6426 | echo "$as_me:6426: checking for --enable-tbarsmpl" >&5 |
6427 | echo $ECHO_N "checking for --enable-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
6428 | no_cache=0 |
6429 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6430 | if test "${enable_tbarsmpl+set}" = set; then | |
6431 | enableval="$enable_tbarsmpl" | |
1e487827 | 6432 | |
360d6699 VZ |
6433 | if test "$enableval" = yes; then |
6434 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6435 | else | |
6436 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6437 | fi | |
1e487827 | 6438 | |
360d6699 | 6439 | else |
1e487827 | 6440 | |
360d6699 VZ |
6441 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 6449 | |
1e487827 | 6450 | fi; |
360d6699 VZ |
6451 | |
6452 | eval "$ac_cv_use_tbarsmpl" | |
6453 | if test "$no_cache" != 1; then | |
6454 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6455 | fi | |
6456 | ||
6457 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
1e487827 VS |
6458 | echo "$as_me:6458: result: yes" >&5 |
6459 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 6460 | else |
1e487827 VS |
6461 | echo "$as_me:6461: result: no" >&5 |
6462 | echo "${ECHO_T}no" >&6 | |
360d6699 | 6463 | fi |
360d6699 | 6464 | |
1e487827 VS |
6465 | echo "$as_me:6465: checking for --enable-treectrl" >&5 |
6466 | echo $ECHO_N "checking for --enable-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
6467 | no_cache=0 |
6468 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6469 | if test "${enable_treectrl+set}" = set; then | |
6470 | enableval="$enable_treectrl" | |
1e487827 | 6471 | |
10f2d63a VZ |
6472 | if test "$enableval" = yes; then |
6473 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6474 | else | |
6475 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6476 | fi | |
1e487827 | 6477 | |
10f2d63a | 6478 | else |
1e487827 | 6479 | |
10f2d63a VZ |
6480 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6481 | if test "x$LINE" != x ; then | |
6482 | eval "DEFAULT_$LINE" | |
6483 | else | |
6484 | no_cache=1 | |
6485 | fi | |
6486 | ||
6487 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 6488 | |
1e487827 | 6489 | fi; |
10f2d63a VZ |
6490 | |
6491 | eval "$ac_cv_use_treectrl" | |
6492 | if test "$no_cache" != 1; then | |
6493 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6494 | fi | |
6495 | ||
6496 | if test "$wxUSE_TREECTRL" = yes; then | |
1e487827 VS |
6497 | echo "$as_me:6497: result: yes" >&5 |
6498 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6499 | else |
1e487827 VS |
6500 | echo "$as_me:6500: result: no" >&5 |
6501 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6502 | fi |
10f2d63a | 6503 | |
1e487827 VS |
6504 | echo "$as_me:6504: checking for --enable-commondlg" >&5 |
6505 | echo $ECHO_N "checking for --enable-commondlg... $ECHO_C" >&6 | |
10f2d63a VZ |
6506 | no_cache=0 |
6507 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6508 | if test "${enable_commondlg+set}" = set; then | |
6509 | enableval="$enable_commondlg" | |
1e487827 | 6510 | |
10f2d63a VZ |
6511 | if test "$enableval" = yes; then |
6512 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6513 | else | |
6514 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6515 | fi | |
1e487827 | 6516 | |
10f2d63a | 6517 | else |
1e487827 | 6518 | |
10f2d63a VZ |
6519 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
6520 | if test "x$LINE" != x ; then | |
6521 | eval "DEFAULT_$LINE" | |
6522 | else | |
6523 | no_cache=1 | |
6524 | fi | |
6525 | ||
6526 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
10f2d63a | 6527 | |
1e487827 | 6528 | fi; |
10f2d63a VZ |
6529 | |
6530 | eval "$ac_cv_use_commondlg" | |
6531 | if test "$no_cache" != 1; then | |
6532 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6533 | fi | |
6534 | ||
6535 | if test "$wxUSE_COMMONDLGS" = yes; then | |
1e487827 VS |
6536 | echo "$as_me:6536: result: yes" >&5 |
6537 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6538 | else |
1e487827 VS |
6539 | echo "$as_me:6539: result: no" >&5 |
6540 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6541 | fi |
10f2d63a | 6542 | |
1e487827 VS |
6543 | echo "$as_me:6543: checking for --enable-dirdlg" >&5 |
6544 | echo $ECHO_N "checking for --enable-dirdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
6545 | no_cache=0 |
6546 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6547 | if test "${enable_dirdlg+set}" = set; then | |
6548 | enableval="$enable_dirdlg" | |
1e487827 | 6549 | |
10f2d63a VZ |
6550 | if test "$enableval" = yes; then |
6551 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6552 | else | |
6553 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6554 | fi | |
1e487827 | 6555 | |
10f2d63a | 6556 | else |
1e487827 | 6557 | |
10f2d63a VZ |
6558 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
6559 | if test "x$LINE" != x ; then | |
6560 | eval "DEFAULT_$LINE" | |
6561 | else | |
6562 | no_cache=1 | |
6563 | fi | |
6564 | ||
6565 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
10f2d63a | 6566 | |
1e487827 | 6567 | fi; |
10f2d63a VZ |
6568 | |
6569 | eval "$ac_cv_use_dirdlg" | |
6570 | if test "$no_cache" != 1; then | |
6571 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
6572 | fi | |
6573 | ||
6574 | if test "$wxUSE_DIRDLG" = yes; then | |
1e487827 VS |
6575 | echo "$as_me:6575: result: yes" >&5 |
6576 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6577 | else |
1e487827 VS |
6578 | echo "$as_me:6578: result: no" >&5 |
6579 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6580 | fi |
10f2d63a | 6581 | |
1e487827 VS |
6582 | echo "$as_me:6582: checking for --enable-textdlg" >&5 |
6583 | echo $ECHO_N "checking for --enable-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
6584 | no_cache=0 |
6585 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6586 | if test "${enable_textdlg+set}" = set; then | |
6587 | enableval="$enable_textdlg" | |
1e487827 | 6588 | |
10f2d63a VZ |
6589 | if test "$enableval" = yes; then |
6590 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6591 | else | |
6592 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6593 | fi | |
1e487827 | 6594 | |
10f2d63a | 6595 | else |
1e487827 | 6596 | |
10f2d63a VZ |
6597 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6598 | if test "x$LINE" != x ; then | |
6599 | eval "DEFAULT_$LINE" | |
6600 | else | |
6601 | no_cache=1 | |
6602 | fi | |
6603 | ||
6604 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 6605 | |
1e487827 | 6606 | fi; |
10f2d63a VZ |
6607 | |
6608 | eval "$ac_cv_use_textdlg" | |
6609 | if test "$no_cache" != 1; then | |
6610 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6611 | fi | |
6612 | ||
6613 | if test "$wxUSE_TEXTDLG" = yes; then | |
1e487827 VS |
6614 | echo "$as_me:6614: result: yes" >&5 |
6615 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6616 | else |
1e487827 VS |
6617 | echo "$as_me:6617: result: no" >&5 |
6618 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6619 | fi |
10f2d63a | 6620 | |
1e487827 VS |
6621 | echo "$as_me:6621: checking for --enable-tipdlg" >&5 |
6622 | echo $ECHO_N "checking for --enable-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
6623 | no_cache=0 |
6624 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6625 | if test "${enable_tipdlg+set}" = set; then | |
6626 | enableval="$enable_tipdlg" | |
1e487827 | 6627 | |
10f2d63a VZ |
6628 | if test "$enableval" = yes; then |
6629 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6630 | else | |
6631 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6632 | fi | |
1e487827 | 6633 | |
10f2d63a | 6634 | else |
1e487827 | 6635 | |
10f2d63a VZ |
6636 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6637 | if test "x$LINE" != x ; then | |
6638 | eval "DEFAULT_$LINE" | |
6639 | else | |
6640 | no_cache=1 | |
6641 | fi | |
6642 | ||
6643 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 6644 | |
1e487827 | 6645 | fi; |
10f2d63a VZ |
6646 | |
6647 | eval "$ac_cv_use_tipdlg" | |
6648 | if test "$no_cache" != 1; then | |
6649 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6650 | fi | |
6651 | ||
6652 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
1e487827 VS |
6653 | echo "$as_me:6653: result: yes" >&5 |
6654 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6655 | else |
1e487827 VS |
6656 | echo "$as_me:6656: result: no" >&5 |
6657 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6658 | fi |
10f2d63a | 6659 | |
1e487827 VS |
6660 | echo "$as_me:6660: checking for --enable-progressdlg" >&5 |
6661 | echo $ECHO_N "checking for --enable-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
6662 | no_cache=0 |
6663 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6664 | if test "${enable_progressdlg+set}" = set; then | |
6665 | enableval="$enable_progressdlg" | |
1e487827 | 6666 | |
10f2d63a VZ |
6667 | if test "$enableval" = yes; then |
6668 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6669 | else | |
6670 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6671 | fi | |
1e487827 | 6672 | |
10f2d63a | 6673 | else |
1e487827 | 6674 | |
10f2d63a VZ |
6675 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6676 | if test "x$LINE" != x ; then | |
6677 | eval "DEFAULT_$LINE" | |
6678 | else | |
6679 | no_cache=1 | |
6680 | fi | |
6681 | ||
6682 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 6683 | |
1e487827 | 6684 | fi; |
10f2d63a VZ |
6685 | |
6686 | eval "$ac_cv_use_progressdlg" | |
6687 | if test "$no_cache" != 1; then | |
6688 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6689 | fi | |
6690 | ||
6691 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
1e487827 VS |
6692 | echo "$as_me:6692: result: yes" >&5 |
6693 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6694 | else |
1e487827 VS |
6695 | echo "$as_me:6695: result: no" >&5 |
6696 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6697 | fi |
10f2d63a | 6698 | |
1e487827 VS |
6699 | echo "$as_me:6699: checking for --enable-miniframe" >&5 |
6700 | echo $ECHO_N "checking for --enable-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
6701 | no_cache=0 |
6702 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6703 | if test "${enable_miniframe+set}" = set; then | |
6704 | enableval="$enable_miniframe" | |
1e487827 | 6705 | |
10f2d63a VZ |
6706 | if test "$enableval" = yes; then |
6707 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6708 | else | |
6709 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6710 | fi | |
1e487827 | 6711 | |
10f2d63a | 6712 | else |
1e487827 | 6713 | |
10f2d63a VZ |
6714 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
6715 | if test "x$LINE" != x ; then | |
6716 | eval "DEFAULT_$LINE" | |
6717 | else | |
6718 | no_cache=1 | |
6719 | fi | |
6720 | ||
6721 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 6722 | |
1e487827 | 6723 | fi; |
10f2d63a VZ |
6724 | |
6725 | eval "$ac_cv_use_miniframe" | |
6726 | if test "$no_cache" != 1; then | |
6727 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6728 | fi | |
6729 | ||
6730 | if test "$wxUSE_MINIFRAME" = yes; then | |
1e487827 VS |
6731 | echo "$as_me:6731: result: yes" >&5 |
6732 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6733 | else |
1e487827 VS |
6734 | echo "$as_me:6734: result: no" >&5 |
6735 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6736 | fi |
10f2d63a | 6737 | |
1e487827 VS |
6738 | echo "$as_me:6738: checking for --enable-html" >&5 |
6739 | echo $ECHO_N "checking for --enable-html... $ECHO_C" >&6 | |
10f2d63a VZ |
6740 | no_cache=0 |
6741 | # Check whether --enable-html or --disable-html was given. | |
6742 | if test "${enable_html+set}" = set; then | |
6743 | enableval="$enable_html" | |
1e487827 | 6744 | |
10f2d63a VZ |
6745 | if test "$enableval" = yes; then |
6746 | ac_cv_use_html='wxUSE_HTML=yes' | |
6747 | else | |
6748 | ac_cv_use_html='wxUSE_HTML=no' | |
6749 | fi | |
1e487827 | 6750 | |
10f2d63a | 6751 | else |
1e487827 | 6752 | |
10f2d63a VZ |
6753 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6754 | if test "x$LINE" != x ; then | |
6755 | eval "DEFAULT_$LINE" | |
6756 | else | |
6757 | no_cache=1 | |
6758 | fi | |
6759 | ||
6760 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
10f2d63a | 6761 | |
1e487827 | 6762 | fi; |
10f2d63a VZ |
6763 | |
6764 | eval "$ac_cv_use_html" | |
6765 | if test "$no_cache" != 1; then | |
6766 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6767 | fi | |
6768 | ||
6769 | if test "$wxUSE_HTML" = yes; then | |
1e487827 VS |
6770 | echo "$as_me:6770: result: yes" >&5 |
6771 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6772 | else |
1e487827 VS |
6773 | echo "$as_me:6773: result: no" >&5 |
6774 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6775 | fi |
10f2d63a | 6776 | |
1e487827 VS |
6777 | echo "$as_me:6777: checking for --enable-tooltips" >&5 |
6778 | echo $ECHO_N "checking for --enable-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
6779 | no_cache=0 |
6780 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6781 | if test "${enable_tooltips+set}" = set; then | |
6782 | enableval="$enable_tooltips" | |
1e487827 | 6783 | |
10f2d63a VZ |
6784 | if test "$enableval" = yes; then |
6785 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6786 | else | |
6787 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6788 | fi | |
1e487827 | 6789 | |
10f2d63a | 6790 | else |
1e487827 | 6791 | |
10f2d63a VZ |
6792 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
6793 | if test "x$LINE" != x ; then | |
6794 | eval "DEFAULT_$LINE" | |
6795 | else | |
6796 | no_cache=1 | |
6797 | fi | |
6798 | ||
6799 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 6800 | |
1e487827 | 6801 | fi; |
10f2d63a VZ |
6802 | |
6803 | eval "$ac_cv_use_tooltips" | |
6804 | if test "$no_cache" != 1; then | |
6805 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
6806 | fi | |
6807 | ||
6808 | if test "$wxUSE_TOOLTIPS" = yes; then | |
1e487827 VS |
6809 | echo "$as_me:6809: result: yes" >&5 |
6810 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6811 | else |
1e487827 VS |
6812 | echo "$as_me:6812: result: no" >&5 |
6813 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6814 | fi |
10f2d63a | 6815 | |
1e487827 VS |
6816 | echo "$as_me:6816: checking for --enable-splines" >&5 |
6817 | echo $ECHO_N "checking for --enable-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
6818 | no_cache=0 |
6819 | # Check whether --enable-splines or --disable-splines was given. | |
6820 | if test "${enable_splines+set}" = set; then | |
6821 | enableval="$enable_splines" | |
1e487827 | 6822 | |
10f2d63a VZ |
6823 | if test "$enableval" = yes; then |
6824 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
6825 | else | |
6826 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
6827 | fi | |
1e487827 | 6828 | |
10f2d63a | 6829 | else |
1e487827 | 6830 | |
10f2d63a VZ |
6831 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
6832 | if test "x$LINE" != x ; then | |
6833 | eval "DEFAULT_$LINE" | |
6834 | else | |
6835 | no_cache=1 | |
6836 | fi | |
6837 | ||
6838 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 6839 | |
1e487827 | 6840 | fi; |
10f2d63a VZ |
6841 | |
6842 | eval "$ac_cv_use_splines" | |
6843 | if test "$no_cache" != 1; then | |
6844 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
6845 | fi | |
6846 | ||
6847 | if test "$wxUSE_SPLINES" = yes; then | |
1e487827 VS |
6848 | echo "$as_me:6848: result: yes" >&5 |
6849 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6850 | else |
1e487827 VS |
6851 | echo "$as_me:6851: result: no" >&5 |
6852 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6853 | fi |
10f2d63a | 6854 | |
1e487827 VS |
6855 | echo "$as_me:6855: checking for --enable-validators" >&5 |
6856 | echo $ECHO_N "checking for --enable-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
6857 | no_cache=0 |
6858 | # Check whether --enable-validators or --disable-validators was given. | |
6859 | if test "${enable_validators+set}" = set; then | |
6860 | enableval="$enable_validators" | |
1e487827 | 6861 | |
10f2d63a VZ |
6862 | if test "$enableval" = yes; then |
6863 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
6864 | else | |
6865 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
6866 | fi | |
1e487827 | 6867 | |
10f2d63a | 6868 | else |
1e487827 | 6869 | |
10f2d63a VZ |
6870 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
6871 | if test "x$LINE" != x ; then | |
6872 | eval "DEFAULT_$LINE" | |
6873 | else | |
6874 | no_cache=1 | |
6875 | fi | |
6876 | ||
6877 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 6878 | |
1e487827 | 6879 | fi; |
10f2d63a VZ |
6880 | |
6881 | eval "$ac_cv_use_validators" | |
6882 | if test "$no_cache" != 1; then | |
6883 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
6884 | fi | |
6885 | ||
6886 | if test "$wxUSE_VALIDATORS" = yes; then | |
1e487827 VS |
6887 | echo "$as_me:6887: result: yes" >&5 |
6888 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6889 | else |
1e487827 VS |
6890 | echo "$as_me:6890: result: no" >&5 |
6891 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6892 | fi |
10f2d63a | 6893 | |
1e487827 VS |
6894 | echo "$as_me:6894: checking for --enable-busyinfo" >&5 |
6895 | echo $ECHO_N "checking for --enable-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
6896 | no_cache=0 |
6897 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
6898 | if test "${enable_busyinfo+set}" = set; then | |
6899 | enableval="$enable_busyinfo" | |
1e487827 | 6900 | |
10f2d63a VZ |
6901 | if test "$enableval" = yes; then |
6902 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
6903 | else | |
6904 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
6905 | fi | |
1e487827 | 6906 | |
10f2d63a | 6907 | else |
1e487827 | 6908 | |
10f2d63a VZ |
6909 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
6910 | if test "x$LINE" != x ; then | |
6911 | eval "DEFAULT_$LINE" | |
6912 | else | |
6913 | no_cache=1 | |
6914 | fi | |
6915 | ||
6916 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 6917 | |
1e487827 | 6918 | fi; |
10f2d63a VZ |
6919 | |
6920 | eval "$ac_cv_use_busyinfo" | |
6921 | if test "$no_cache" != 1; then | |
6922 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
6923 | fi | |
6924 | ||
6925 | if test "$wxUSE_BUSYINFO" = yes; then | |
1e487827 VS |
6926 | echo "$as_me:6926: result: yes" >&5 |
6927 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6928 | else |
1e487827 VS |
6929 | echo "$as_me:6929: result: no" >&5 |
6930 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6931 | fi |
10f2d63a | 6932 | |
1e487827 VS |
6933 | echo "$as_me:6933: checking for --enable-joystick" >&5 |
6934 | echo $ECHO_N "checking for --enable-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
6935 | no_cache=0 |
6936 | # Check whether --enable-joystick or --disable-joystick was given. | |
6937 | if test "${enable_joystick+set}" = set; then | |
6938 | enableval="$enable_joystick" | |
1e487827 | 6939 | |
f6bcfd97 BP |
6940 | if test "$enableval" = yes; then |
6941 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
6942 | else | |
6943 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
6944 | fi | |
1e487827 | 6945 | |
f6bcfd97 | 6946 | else |
1e487827 | 6947 | |
f6bcfd97 BP |
6948 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
6949 | if test "x$LINE" != x ; then | |
6950 | eval "DEFAULT_$LINE" | |
6951 | else | |
6952 | no_cache=1 | |
6953 | fi | |
6954 | ||
6955 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 6956 | |
1e487827 | 6957 | fi; |
f6bcfd97 BP |
6958 | |
6959 | eval "$ac_cv_use_joystick" | |
6960 | if test "$no_cache" != 1; then | |
6961 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
6962 | fi | |
6963 | ||
6964 | if test "$wxUSE_JOYSTICK" = yes; then | |
1e487827 VS |
6965 | echo "$as_me:6965: result: yes" >&5 |
6966 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 6967 | else |
1e487827 VS |
6968 | echo "$as_me:6968: result: no" >&5 |
6969 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 6970 | fi |
10f2d63a | 6971 | |
1e487827 VS |
6972 | echo "$as_me:6972: checking for --enable-image" >&5 |
6973 | echo $ECHO_N "checking for --enable-image... $ECHO_C" >&6 | |
0046ff7c VS |
6974 | no_cache=0 |
6975 | # Check whether --enable-image or --disable-image was given. | |
6976 | if test "${enable_image+set}" = set; then | |
6977 | enableval="$enable_image" | |
1e487827 | 6978 | |
0046ff7c VS |
6979 | if test "$enableval" = yes; then |
6980 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
6981 | else | |
6982 | ac_cv_use_image='wxUSE_IMAGE=no' | |
6983 | fi | |
1e487827 | 6984 | |
0046ff7c | 6985 | else |
1e487827 | 6986 | |
0046ff7c VS |
6987 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
6988 | if test "x$LINE" != x ; then | |
6989 | eval "DEFAULT_$LINE" | |
6990 | else | |
6991 | no_cache=1 | |
6992 | fi | |
6993 | ||
6994 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 6995 | |
1e487827 | 6996 | fi; |
0046ff7c VS |
6997 | |
6998 | eval "$ac_cv_use_image" | |
6999 | if test "$no_cache" != 1; then | |
7000 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7001 | fi | |
7002 | ||
7003 | if test "$wxUSE_IMAGE" = yes; then | |
1e487827 VS |
7004 | echo "$as_me:7004: result: yes" >&5 |
7005 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 7006 | else |
1e487827 VS |
7007 | echo "$as_me:7007: result: no" >&5 |
7008 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 7009 | fi |
0046ff7c | 7010 | |
1e487827 VS |
7011 | echo "$as_me:7011: checking for --enable-gif" >&5 |
7012 | echo $ECHO_N "checking for --enable-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
7013 | no_cache=0 |
7014 | # Check whether --enable-gif or --disable-gif was given. | |
7015 | if test "${enable_gif+set}" = set; then | |
7016 | enableval="$enable_gif" | |
1e487827 | 7017 | |
10f2d63a VZ |
7018 | if test "$enableval" = yes; then |
7019 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7020 | else | |
7021 | ac_cv_use_gif='wxUSE_GIF=no' | |
7022 | fi | |
1e487827 | 7023 | |
10f2d63a | 7024 | else |
1e487827 | 7025 | |
10f2d63a VZ |
7026 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7027 | if test "x$LINE" != x ; then | |
7028 | eval "DEFAULT_$LINE" | |
7029 | else | |
7030 | no_cache=1 | |
7031 | fi | |
7032 | ||
7033 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 7034 | |
1e487827 | 7035 | fi; |
10f2d63a VZ |
7036 | |
7037 | eval "$ac_cv_use_gif" | |
7038 | if test "$no_cache" != 1; then | |
7039 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7040 | fi | |
7041 | ||
7042 | if test "$wxUSE_GIF" = yes; then | |
1e487827 VS |
7043 | echo "$as_me:7043: result: yes" >&5 |
7044 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7045 | else |
1e487827 VS |
7046 | echo "$as_me:7046: result: no" >&5 |
7047 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7048 | fi |
10f2d63a | 7049 | |
1e487827 VS |
7050 | echo "$as_me:7050: checking for --enable-pcx" >&5 |
7051 | echo $ECHO_N "checking for --enable-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
7052 | no_cache=0 |
7053 | # Check whether --enable-pcx or --disable-pcx was given. | |
7054 | if test "${enable_pcx+set}" = set; then | |
7055 | enableval="$enable_pcx" | |
1e487827 | 7056 | |
10f2d63a VZ |
7057 | if test "$enableval" = yes; then |
7058 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7059 | else | |
7060 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7061 | fi | |
1e487827 | 7062 | |
10f2d63a | 7063 | else |
1e487827 | 7064 | |
10f2d63a VZ |
7065 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7066 | if test "x$LINE" != x ; then | |
7067 | eval "DEFAULT_$LINE" | |
7068 | else | |
7069 | no_cache=1 | |
7070 | fi | |
7071 | ||
7072 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 7073 | |
1e487827 | 7074 | fi; |
10f2d63a VZ |
7075 | |
7076 | eval "$ac_cv_use_pcx" | |
7077 | if test "$no_cache" != 1; then | |
7078 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7079 | fi | |
7080 | ||
7081 | if test "$wxUSE_PCX" = yes; then | |
1e487827 VS |
7082 | echo "$as_me:7082: result: yes" >&5 |
7083 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7084 | else |
1e487827 VS |
7085 | echo "$as_me:7085: result: no" >&5 |
7086 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7087 | fi |
10f2d63a | 7088 | |
1e487827 VS |
7089 | echo "$as_me:7089: checking for --enable-pnm" >&5 |
7090 | echo $ECHO_N "checking for --enable-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
7091 | no_cache=0 |
7092 | # Check whether --enable-pnm or --disable-pnm was given. | |
7093 | if test "${enable_pnm+set}" = set; then | |
7094 | enableval="$enable_pnm" | |
1e487827 | 7095 | |
10f2d63a VZ |
7096 | if test "$enableval" = yes; then |
7097 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7098 | else | |
7099 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7100 | fi | |
1e487827 | 7101 | |
10f2d63a | 7102 | else |
1e487827 | 7103 | |
10f2d63a VZ |
7104 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7105 | if test "x$LINE" != x ; then | |
7106 | eval "DEFAULT_$LINE" | |
7107 | else | |
7108 | no_cache=1 | |
7109 | fi | |
7110 | ||
7111 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 7112 | |
1e487827 | 7113 | fi; |
10f2d63a VZ |
7114 | |
7115 | eval "$ac_cv_use_pnm" | |
7116 | if test "$no_cache" != 1; then | |
7117 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7118 | fi | |
7119 | ||
7120 | if test "$wxUSE_PNM" = yes; then | |
1e487827 VS |
7121 | echo "$as_me:7121: result: yes" >&5 |
7122 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7123 | else |
1e487827 VS |
7124 | echo "$as_me:7124: result: no" >&5 |
7125 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7126 | fi |
10f2d63a | 7127 | |
1e487827 VS |
7128 | echo "$as_me:7128: checking for --enable-pnm" >&5 |
7129 | echo $ECHO_N "checking for --enable-pnm... $ECHO_C" >&6 | |
0046ff7c VS |
7130 | no_cache=0 |
7131 | # Check whether --enable-pnm or --disable-pnm was given. | |
7132 | if test "${enable_pnm+set}" = set; then | |
7133 | enableval="$enable_pnm" | |
1e487827 | 7134 | |
0046ff7c VS |
7135 | if test "$enableval" = yes; then |
7136 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7137 | else | |
7138 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7139 | fi | |
1e487827 | 7140 | |
0046ff7c | 7141 | else |
1e487827 | 7142 | |
0046ff7c VS |
7143 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7144 | if test "x$LINE" != x ; then | |
7145 | eval "DEFAULT_$LINE" | |
7146 | else | |
7147 | no_cache=1 | |
7148 | fi | |
7149 | ||
7150 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
0046ff7c | 7151 | |
1e487827 | 7152 | fi; |
0046ff7c VS |
7153 | |
7154 | eval "$ac_cv_use_pnm" | |
7155 | if test "$no_cache" != 1; then | |
7156 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7157 | fi | |
7158 | ||
7159 | if test "$wxUSE_XPM" = yes; then | |
1e487827 VS |
7160 | echo "$as_me:7160: result: yes" >&5 |
7161 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 7162 | else |
1e487827 VS |
7163 | echo "$as_me:7163: result: no" >&5 |
7164 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 7165 | fi |
0046ff7c | 7166 | |
b12915c1 VZ |
7167 | fi |
7168 | ||
10f2d63a VZ |
7169 | echo "saving argument cache $wx_arg_cache_file" |
7170 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10f2d63a | 7171 | |
1e487827 VS |
7172 | echo "$as_me:7172: checking for toolkit" >&5 |
7173 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10f2d63a VZ |
7174 | |
7175 | if test "$wxUSE_GUI" = "yes"; then | |
7176 | ||
b12915c1 | 7177 | if test "$USE_BEOS" = 1; then |
1e487827 VS |
7178 | { { echo "$as_me:7178: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
7179 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
7180 | { (exit 1); exit 1; }; } | |
b12915c1 VZ |
7181 | fi |
7182 | ||
10f2d63a VZ |
7183 | if test "$TOOLKIT_GIVEN" = 1; then |
7184 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7185 | var=wxUSE_$toolkit | |
7186 | eval "value=\$${var}" | |
7187 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7188 | done | |
7189 | else | |
7190 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7191 | if test "$has_toolkit_in_cache" != 1; then | |
7192 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7193 | else | |
7194 | var=DEFAULT_wxUSE_$toolkit | |
7195 | fi | |
7196 | eval "wxUSE_$toolkit=\$${var}" | |
7197 | done | |
7198 | fi | |
7199 | ||
b4085ce6 | 7200 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 7201 | |
ec14dd32 VZ |
7202 | case "${host}" in |
7203 | *-pc-os2_emx ) | |
7204 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7205 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7206 | LEX_STEM="lexyy" | |
7207 | ;; | |
7208 | *) | |
7209 | PATH_IFS=':' | |
7210 | LEX_STEM="lex.yy" | |
7211 | ;; | |
7212 | esac | |
10f2d63a VZ |
7213 | |
7214 | case "$NUM_TOOLKITS" in | |
7215 | 1) | |
7216 | ;; | |
7217 | 0) | |
1e487827 VS |
7218 | { { echo "$as_me:7218: error: Please specify a toolkit - cannot determine the default for ${host}" >&5 |
7219 | echo "$as_me: error: Please specify a toolkit - cannot determine the default for ${host}" >&2;} | |
7220 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
7221 | ;; |
7222 | *) | |
1e487827 VS |
7223 | { { echo "$as_me:7223: error: Please specify at most one toolkit (may be some are cached?)" >&5 |
7224 | echo "$as_me: error: Please specify at most one toolkit (may be some are cached?)" >&2;} | |
7225 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
7226 | esac |
7227 | ||
7228 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7229 | var=wxUSE_$toolkit | |
7230 | eval "value=\$${var}" | |
7231 | if test "x$value" != x; then | |
7232 | cache_var=CACHE_$toolkit | |
7233 | eval "cache=\$${cache_var}" | |
7234 | if test "$cache" = 1; then | |
7235 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7236 | fi | |
7237 | if test "$value" = 1; then | |
1e487827 VS |
7238 | echo "$as_me:7238: result: \`echo $toolkit | tr [A-Z] [a-z]\`" >&5 |
7239 | echo "${ECHO_T}\`echo $toolkit | tr [A-Z] [a-z]\`" >&6 | |
10f2d63a VZ |
7240 | fi |
7241 | fi | |
7242 | done | |
7243 | ||
7244 | else | |
cf27ef00 | 7245 | PATH_IFS=':' |
1e487827 VS |
7246 | echo "$as_me:7246: result: base only" >&5 |
7247 | echo "${ECHO_T}base only" >&6 | |
10f2d63a VZ |
7248 | fi |
7249 | ||
1e487827 | 7250 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
7251 | # This file is a shell script that caches the results of configure |
7252 | # tests run on this system so they can be shared between configure | |
1e487827 VS |
7253 | # scripts and configure runs, see configure's option --config-cache. |
7254 | # It is not useful on other systems. If it contains results you don't | |
7255 | # want to keep, you may remove or edit it. | |
10f2d63a | 7256 | # |
1e487827 VS |
7257 | # config.status only pays attention to the cache file if you give it |
7258 | # the --recheck option to rerun configure. | |
10f2d63a | 7259 | # |
1e487827 VS |
7260 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
7261 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7262 | # following values. | |
7263 | ||
7264 | _ACEOF | |
7265 | ||
10f2d63a VZ |
7266 | # The following way of writing the cache mishandles newlines in values, |
7267 | # but we know of no workaround that is simple, portable, and efficient. | |
7268 | # So, don't put newlines in cache variables' values. | |
7269 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7270 | # and sets the high bit in the cache file unless we assign to the vars. | |
1e487827 VS |
7271 | { |
7272 | (set) 2>&1 | | |
7273 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7274 | *ac_space=\ *) | |
7275 | # `set' does not quote correctly, so add quotes (double-quote | |
7276 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7277 | sed -n \ | |
7278 | "s/'/'\\\\''/g; | |
7279 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7280 | ;; | |
7281 | *) | |
7282 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7283 | sed -n \ | |
7284 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7285 | ;; | |
7286 | esac; | |
7287 | } | | |
7288 | sed ' | |
7289 | t clear | |
7290 | : clear | |
7291 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7292 | t end | |
7293 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7294 | : end' >>confcache | |
7295 | if cmp -s $cache_file confcache; then :; else | |
10f2d63a | 7296 | if test -w $cache_file; then |
1e487827 VS |
7297 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7298 | cat confcache >$cache_file | |
10f2d63a VZ |
7299 | else |
7300 | echo "not updating unwritable cache $cache_file" | |
7301 | fi | |
7302 | fi | |
7303 | rm -f confcache | |
7304 | ||
e59890c3 | 7305 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7306 | CC=$host_alias-gcc |
7307 | CXX=$host_alias-c++ | |
7308 | AR=$host_alias-ar | |
7309 | RANLIB=$host_alias-ranlib | |
7310 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7311 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7312 | LD=$host_alias-ld |
7313 | NM=$host_alias-nm | |
7314 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7315 | fi |
7316 | ||
1e487827 VS |
7317 | ac_ext=c |
7318 | ac_cpp='$CPP $CPPFLAGS' | |
7319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7322 | if test -n "$ac_tool_prefix"; then | |
7323 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
7324 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
7325 | echo "$as_me:7325: checking for $ac_word" >&5 | |
7326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7327 | if test "${ac_cv_prog_CC+set}" = set; then | |
7328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
7329 | else |
7330 | if test -n "$CC"; then | |
7331 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7332 | else | |
1e487827 VS |
7333 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
7334 | ac_dummy="$PATH" | |
7335 | for ac_dir in $ac_dummy; do | |
7336 | IFS=$ac_save_IFS | |
7337 | test -z "$ac_dir" && ac_dir=. | |
7338 | $as_executable_p "$ac_dir/$ac_word" || continue | |
7339 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
7340 | echo "$as_me:7340: found $ac_dir/$ac_word" >&5 | |
7341 | break | |
7342 | done | |
7343 | ||
10f2d63a VZ |
7344 | fi |
7345 | fi | |
1e487827 | 7346 | CC=$ac_cv_prog_CC |
10f2d63a | 7347 | if test -n "$CC"; then |
1e487827 VS |
7348 | echo "$as_me:7348: result: $CC" >&5 |
7349 | echo "${ECHO_T}$CC" >&6 | |
6232543b | 7350 | else |
1e487827 VS |
7351 | echo "$as_me:7351: result: no" >&5 |
7352 | echo "${ECHO_T}no" >&6 | |
6232543b | 7353 | fi |
10f2d63a | 7354 | |
1e487827 VS |
7355 | fi |
7356 | if test -z "$ac_cv_prog_CC"; then | |
7357 | ac_ct_CC=$CC | |
7358 | # Extract the first word of "gcc", so it can be a program name with args. | |
7359 | set dummy gcc; ac_word=$2 | |
7360 | echo "$as_me:7360: checking for $ac_word" >&5 | |
7361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7362 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
7363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7364 | else | |
7365 | if test -n "$ac_ct_CC"; then | |
7366 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
7367 | else | |
7368 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
7369 | ac_dummy="$PATH" | |
7370 | for ac_dir in $ac_dummy; do | |
7371 | IFS=$ac_save_IFS | |
7372 | test -z "$ac_dir" && ac_dir=. | |
7373 | $as_executable_p "$ac_dir/$ac_word" || continue | |
7374 | ac_cv_prog_ac_ct_CC="gcc" | |
7375 | echo "$as_me:7375: found $ac_dir/$ac_word" >&5 | |
7376 | break | |
7377 | done | |
7378 | ||
6232543b VS |
7379 | fi |
7380 | fi | |
1e487827 VS |
7381 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
7382 | if test -n "$ac_ct_CC"; then | |
7383 | echo "$as_me:7383: result: $ac_ct_CC" >&5 | |
7384 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
7385 | else | |
7386 | echo "$as_me:7386: result: no" >&5 | |
7387 | echo "${ECHO_T}no" >&6 | |
6232543b | 7388 | fi |
1e487827 VS |
7389 | |
7390 | CC=$ac_ct_CC | |
10f2d63a | 7391 | else |
1e487827 | 7392 | CC="$ac_cv_prog_CC" |
10f2d63a | 7393 | fi |
6232543b | 7394 | |
1e487827 VS |
7395 | if test -z "$CC"; then |
7396 | if test -n "$ac_tool_prefix"; then | |
7397 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
7398 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7399 | echo "$as_me:7399: checking for $ac_word" >&5 | |
7400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7401 | if test "${ac_cv_prog_CC+set}" = set; then | |
7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
7403 | else |
7404 | if test -n "$CC"; then | |
7405 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7406 | else |
1e487827 VS |
7407 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
7408 | ac_dummy="$PATH" | |
7409 | for ac_dir in $ac_dummy; do | |
7410 | IFS=$ac_save_IFS | |
7411 | test -z "$ac_dir" && ac_dir=. | |
7412 | $as_executable_p "$ac_dir/$ac_word" || continue | |
7413 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
7414 | echo "$as_me:7414: found $ac_dir/$ac_word" >&5 | |
7415 | break | |
7416 | done | |
7417 | ||
10f2d63a | 7418 | fi |
6232543b | 7419 | fi |
1e487827 | 7420 | CC=$ac_cv_prog_CC |
6232543b | 7421 | if test -n "$CC"; then |
1e487827 VS |
7422 | echo "$as_me:7422: result: $CC" >&5 |
7423 | echo "${ECHO_T}$CC" >&6 | |
6232543b | 7424 | else |
1e487827 VS |
7425 | echo "$as_me:7425: result: no" >&5 |
7426 | echo "${ECHO_T}no" >&6 | |
6232543b VS |
7427 | fi |
7428 | ||
1e487827 VS |
7429 | fi |
7430 | if test -z "$ac_cv_prog_CC"; then | |
7431 | ac_ct_CC=$CC | |
7432 | # Extract the first word of "cc", so it can be a program name with args. | |
7433 | set dummy cc; ac_word=$2 | |
7434 | echo "$as_me:7434: checking for $ac_word" >&5 | |
7435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7436 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
7437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7438 | else | |
7439 | if test -n "$ac_ct_CC"; then | |
7440 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
7441 | else | |
7442 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
7443 | ac_dummy="$PATH" | |
7444 | for ac_dir in $ac_dummy; do | |
7445 | IFS=$ac_save_IFS | |
7446 | test -z "$ac_dir" && ac_dir=. | |
7447 | $as_executable_p "$ac_dir/$ac_word" || continue | |
7448 | ac_cv_prog_ac_ct_CC="cc" | |
7449 | echo "$as_me:7449: found $ac_dir/$ac_word" >&5 | |
7450 | break | |
7451 | done | |
10f2d63a | 7452 | |
1e487827 VS |
7453 | fi |
7454 | fi | |
7455 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
7456 | if test -n "$ac_ct_CC"; then | |
7457 | echo "$as_me:7457: result: $ac_ct_CC" >&5 | |
7458 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
7459 | else | |
7460 | echo "$as_me:7460: result: no" >&5 | |
7461 | echo "${ECHO_T}no" >&6 | |
7462 | fi | |
6232543b | 7463 | |
1e487827 VS |
7464 | CC=$ac_ct_CC |
7465 | else | |
7466 | CC="$ac_cv_prog_CC" | |
7467 | fi | |
6232543b | 7468 | |
1e487827 VS |
7469 | fi |
7470 | if test -z "$CC"; then | |
7471 | # Extract the first word of "cc", so it can be a program name with args. | |
7472 | set dummy cc; ac_word=$2 | |
7473 | echo "$as_me:7473: checking for $ac_word" >&5 | |
7474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7475 | if test "${ac_cv_prog_CC+set}" = set; then | |
7476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7477 | else | |
7478 | if test -n "$CC"; then | |
7479 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7480 | else | |
7481 | ac_prog_rejected=no | |
7482 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
7483 | ac_dummy="$PATH" | |
7484 | for ac_dir in $ac_dummy; do | |
7485 | IFS=$ac_save_IFS | |
7486 | test -z "$ac_dir" && ac_dir=. | |
7487 | $as_executable_p "$ac_dir/$ac_word" || continue | |
7488 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7489 | ac_prog_rejected=yes | |
7490 | continue | |
7491 | fi | |
7492 | ac_cv_prog_CC="cc" | |
7493 | echo "$as_me:7493: found $ac_dir/$ac_word" >&5 | |
7494 | break | |
7495 | done | |
7496 | ||
7497 | if test $ac_prog_rejected = yes; then | |
7498 | # We found a bogon in the path, so make sure we never use it. | |
7499 | set dummy $ac_cv_prog_CC | |
7500 | shift | |
7501 | if test $# != 0; then | |
7502 | # We chose a different compiler from the bogus one. | |
7503 | # However, it has the same basename, so the bogon will be chosen | |
7504 | # first if we set CC to just the basename; use the full file name. | |
7505 | shift | |
7506 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
7507 | shift | |
7508 | ac_cv_prog_CC="$@" | |
703e0a69 | 7509 | fi |
1e487827 VS |
7510 | fi |
7511 | fi | |
7512 | fi | |
7513 | CC=$ac_cv_prog_CC | |
7514 | if test -n "$CC"; then | |
7515 | echo "$as_me:7515: result: $CC" >&5 | |
7516 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 7517 | else |
1e487827 VS |
7518 | echo "$as_me:7518: result: no" >&5 |
7519 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 7520 | fi |
1e487827 VS |
7521 | |
7522 | fi | |
7523 | if test -z "$CC"; then | |
7524 | if test -n "$ac_tool_prefix"; then | |
7525 | for ac_prog in cl | |
7526 | do | |
7527 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7528 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7529 | echo "$as_me:7529: checking for $ac_word" >&5 | |
7530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7531 | if test "${ac_cv_prog_CC+set}" = set; then | |
7532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7533 | else | |
7534 | if test -n "$CC"; then | |
7535 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7536 | else |
1e487827 VS |
7537 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
7538 | ac_dummy="$PATH" | |
7539 | for ac_dir in $ac_dummy; do | |
7540 | IFS=$ac_save_IFS | |
7541 | test -z "$ac_dir" && ac_dir=. | |
7542 | $as_executable_p "$ac_dir/$ac_word" || continue | |
7543 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
7544 | echo "$as_me:7544: found $ac_dir/$ac_word" >&5 | |
7545 | break | |
7546 | done | |
7547 | ||
703e0a69 | 7548 | fi |
1e487827 VS |
7549 | fi |
7550 | CC=$ac_cv_prog_CC | |
7551 | if test -n "$CC"; then | |
7552 | echo "$as_me:7552: result: $CC" >&5 | |
7553 | echo "${ECHO_T}$CC" >&6 | |
7554 | else | |
7555 | echo "$as_me:7555: result: no" >&5 | |
7556 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 7557 | fi |
6232543b | 7558 | |
1e487827 VS |
7559 | test -n "$CC" && break |
7560 | done | |
7561 | fi | |
7562 | if test -z "$CC"; then | |
7563 | ac_ct_CC=$CC | |
7564 | for ac_prog in cl | |
7565 | do | |
7566 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7567 | set dummy $ac_prog; ac_word=$2 | |
7568 | echo "$as_me:7568: checking for $ac_word" >&5 | |
7569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7570 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
7571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7572 | else | |
7573 | if test -n "$ac_ct_CC"; then | |
7574 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
7575 | else | |
7576 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
7577 | ac_dummy="$PATH" | |
7578 | for ac_dir in $ac_dummy; do | |
7579 | IFS=$ac_save_IFS | |
7580 | test -z "$ac_dir" && ac_dir=. | |
7581 | $as_executable_p "$ac_dir/$ac_word" || continue | |
7582 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
7583 | echo "$as_me:7583: found $ac_dir/$ac_word" >&5 | |
7584 | break | |
7585 | done | |
6232543b | 7586 | |
1e487827 VS |
7587 | fi |
7588 | fi | |
7589 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
7590 | if test -n "$ac_ct_CC"; then | |
7591 | echo "$as_me:7591: result: $ac_ct_CC" >&5 | |
7592 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
703e0a69 | 7593 | else |
1e487827 VS |
7594 | echo "$as_me:7594: result: no" >&5 |
7595 | echo "${ECHO_T}no" >&6 | |
7596 | fi | |
7597 | ||
7598 | test -n "$ac_ct_CC" && break | |
7599 | done | |
7600 | ||
7601 | CC=$ac_ct_CC | |
7602 | fi | |
7603 | ||
703e0a69 | 7604 | fi |
6232543b | 7605 | |
1e487827 VS |
7606 | test -z "$CC" && { { echo "$as_me:7606: error: no acceptable cc found in \$PATH" >&5 |
7607 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
7608 | { (exit 1); exit 1; }; } | |
7609 | ||
7610 | echo "$as_me:7610: checking whether we are using the GNU C compiler" >&5 | |
7611 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
7612 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
7613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 7614 | else |
1e487827 VS |
7615 | cat >conftest.$ac_ext <<_ACEOF |
7616 | #line 7616 "configure" | |
7617 | #include "confdefs.h" | |
7618 | ||
7619 | int | |
7620 | main () | |
7621 | { | |
7622 | #ifndef __GNUC__ | |
7623 | choke me | |
7624 | #endif | |
7625 | ||
7626 | ; | |
7627 | return 0; | |
7628 | } | |
7629 | _ACEOF | |
7630 | rm -f conftest.$ac_objext | |
7631 | if { (eval echo "$as_me:7631: \"$ac_compile\"") >&5 | |
7632 | (eval $ac_compile) 2>&5 | |
7633 | ac_status=$? | |
7634 | echo "$as_me:7634: \$? = $ac_status" >&5 | |
7635 | (exit $ac_status); } && | |
7636 | { ac_try='test -s conftest.$ac_objext' | |
7637 | { (eval echo "$as_me:7637: \"$ac_try\"") >&5 | |
7638 | (eval $ac_try) 2>&5 | |
7639 | ac_status=$? | |
7640 | echo "$as_me:7640: \$? = $ac_status" >&5 | |
7641 | (exit $ac_status); }; }; then | |
7642 | ac_compiler_gnu=yes | |
7643 | else | |
7644 | echo "$as_me: failed program was:" >&5 | |
7645 | cat conftest.$ac_ext >&5 | |
7646 | ac_compiler_gnu=no | |
7647 | fi | |
7648 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7649 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7650 | ||
7651 | fi | |
7652 | echo "$as_me:7652: result: $ac_cv_c_compiler_gnu" >&5 | |
7653 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
7654 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
7655 | ac_test_CFLAGS=${CFLAGS+set} | |
7656 | ac_save_CFLAGS=$CFLAGS | |
7657 | CFLAGS="-g" | |
7658 | echo "$as_me:7658: checking whether $CC accepts -g" >&5 | |
7659 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
7660 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
7661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7662 | else | |
7663 | cat >conftest.$ac_ext <<_ACEOF | |
7664 | #line 7664 "configure" | |
7665 | #include "confdefs.h" | |
7666 | ||
7667 | int | |
7668 | main () | |
7669 | { | |
7670 | ||
7671 | ; | |
7672 | return 0; | |
7673 | } | |
7674 | _ACEOF | |
7675 | rm -f conftest.$ac_objext | |
7676 | if { (eval echo "$as_me:7676: \"$ac_compile\"") >&5 | |
7677 | (eval $ac_compile) 2>&5 | |
7678 | ac_status=$? | |
7679 | echo "$as_me:7679: \$? = $ac_status" >&5 | |
7680 | (exit $ac_status); } && | |
7681 | { ac_try='test -s conftest.$ac_objext' | |
7682 | { (eval echo "$as_me:7682: \"$ac_try\"") >&5 | |
7683 | (eval $ac_try) 2>&5 | |
7684 | ac_status=$? | |
7685 | echo "$as_me:7685: \$? = $ac_status" >&5 | |
7686 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
7687 | ac_cv_prog_cc_g=yes |
7688 | else | |
1e487827 VS |
7689 | echo "$as_me: failed program was:" >&5 |
7690 | cat conftest.$ac_ext >&5 | |
7691 | ac_cv_prog_cc_g=no | |
10f2d63a | 7692 | fi |
1e487827 | 7693 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a | 7694 | fi |
1e487827 VS |
7695 | echo "$as_me:7695: result: $ac_cv_prog_cc_g" >&5 |
7696 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10f2d63a | 7697 | if test "$ac_test_CFLAGS" = set; then |
1e487827 | 7698 | CFLAGS=$ac_save_CFLAGS |
10f2d63a VZ |
7699 | elif test $ac_cv_prog_cc_g = yes; then |
7700 | if test "$GCC" = yes; then | |
7701 | CFLAGS="-g -O2" | |
7702 | else | |
7703 | CFLAGS="-g" | |
7704 | fi | |
7705 | else | |
7706 | if test "$GCC" = yes; then | |
7707 | CFLAGS="-O2" | |
7708 | else | |
7709 | CFLAGS= | |
7710 | fi | |
7711 | fi | |
1e487827 VS |
7712 | # Some people use a C++ compiler to compile C. Since we use `exit', |
7713 | # in C++ we need to declare it. In case someone uses the same compiler | |
7714 | # for both compiling C and C++ we need to have the C++ compiler decide | |
7715 | # the declaration of exit, since it's the most demanding environment. | |
7716 | cat >conftest.$ac_ext <<_ACEOF | |
7717 | #ifndef __cplusplus | |
7718 | choke me | |
7719 | #endif | |
7720 | _ACEOF | |
7721 | rm -f conftest.$ac_objext | |
7722 | if { (eval echo "$as_me:7722: \"$ac_compile\"") >&5 | |
7723 | (eval $ac_compile) 2>&5 | |
7724 | ac_status=$? | |
7725 | echo "$as_me:7725: \$? = $ac_status" >&5 | |
7726 | (exit $ac_status); } && | |
7727 | { ac_try='test -s conftest.$ac_objext' | |
7728 | { (eval echo "$as_me:7728: \"$ac_try\"") >&5 | |
7729 | (eval $ac_try) 2>&5 | |
7730 | ac_status=$? | |
7731 | echo "$as_me:7731: \$? = $ac_status" >&5 | |
7732 | (exit $ac_status); }; }; then | |
7733 | for ac_declaration in \ | |
7734 | ''\ | |
7735 | '#include <stdlib.h>' \ | |
7736 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
7737 | 'extern "C" void std::exit (int); using std::exit;' \ | |
7738 | 'extern "C" void exit (int) throw ();' \ | |
7739 | 'extern "C" void exit (int);' \ | |
7740 | 'void exit (int);' | |
7741 | do | |
7742 | cat >conftest.$ac_ext <<_ACEOF | |
7743 | #line 7743 "configure" | |
7744 | #include "confdefs.h" | |
7745 | #include <stdlib.h> | |
7746 | $ac_declaration | |
7747 | int | |
7748 | main () | |
7749 | { | |
7750 | exit (42); | |
7751 | ; | |
7752 | return 0; | |
7753 | } | |
7754 | _ACEOF | |
7755 | rm -f conftest.$ac_objext | |
7756 | if { (eval echo "$as_me:7756: \"$ac_compile\"") >&5 | |
7757 | (eval $ac_compile) 2>&5 | |
7758 | ac_status=$? | |
7759 | echo "$as_me:7759: \$? = $ac_status" >&5 | |
7760 | (exit $ac_status); } && | |
7761 | { ac_try='test -s conftest.$ac_objext' | |
7762 | { (eval echo "$as_me:7762: \"$ac_try\"") >&5 | |
7763 | (eval $ac_try) 2>&5 | |
7764 | ac_status=$? | |
7765 | echo "$as_me:7765: \$? = $ac_status" >&5 | |
7766 | (exit $ac_status); }; }; then | |
7767 | : | |
7768 | else | |
7769 | echo "$as_me: failed program was:" >&5 | |
7770 | cat conftest.$ac_ext >&5 | |
7771 | continue | |
7772 | fi | |
7773 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7774 | cat >conftest.$ac_ext <<_ACEOF | |
7775 | #line 7775 "configure" | |
7776 | #include "confdefs.h" | |
7777 | $ac_declaration | |
7778 | int | |
7779 | main () | |
7780 | { | |
7781 | exit (42); | |
7782 | ; | |
7783 | return 0; | |
7784 | } | |
7785 | _ACEOF | |
7786 | rm -f conftest.$ac_objext | |
7787 | if { (eval echo "$as_me:7787: \"$ac_compile\"") >&5 | |
7788 | (eval $ac_compile) 2>&5 | |
7789 | ac_status=$? | |
7790 | echo "$as_me:7790: \$? = $ac_status" >&5 | |
7791 | (exit $ac_status); } && | |
7792 | { ac_try='test -s conftest.$ac_objext' | |
7793 | { (eval echo "$as_me:7793: \"$ac_try\"") >&5 | |
7794 | (eval $ac_try) 2>&5 | |
7795 | ac_status=$? | |
7796 | echo "$as_me:7796: \$? = $ac_status" >&5 | |
7797 | (exit $ac_status); }; }; then | |
7798 | break | |
7799 | else | |
7800 | echo "$as_me: failed program was:" >&5 | |
7801 | cat conftest.$ac_ext >&5 | |
7802 | fi | |
7803 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7804 | done | |
7805 | echo '#ifdef __cplusplus' >>confdefs.h | |
7806 | echo $ac_declaration >>confdefs.h | |
7807 | echo '#endif' >>confdefs.h | |
10f2d63a | 7808 | |
1e487827 VS |
7809 | else |
7810 | echo "$as_me: failed program was:" >&5 | |
7811 | cat conftest.$ac_ext >&5 | |
7812 | fi | |
7813 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7814 | ac_ext=c | |
7815 | ac_cpp='$CPP $CPPFLAGS' | |
7816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
7819 | |
7820 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7821 | ||
1e487827 VS |
7822 | ac_ext=c |
7823 | ac_cpp='$CPP $CPPFLAGS' | |
7824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7827 | echo "$as_me:7827: checking how to run the C preprocessor" >&5 | |
7828 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
7829 | # On Suns, sometimes $CPP names a directory. |
7830 | if test -n "$CPP" && test -d "$CPP"; then | |
7831 | CPP= | |
7832 | fi | |
7833 | if test -z "$CPP"; then | |
1e487827 VS |
7834 | if test "${ac_cv_prog_CPP+set}" = set; then |
7835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7836 | else | |
7837 | # Double quotes because CPP needs to be expanded | |
7838 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7839 | do | |
7840 | # break 2 since there is a loop in there. | |
7841 | ac_preproc_ok=false | |
7842 | for ac_c_preproc_warn_flag in '' yes | |
7843 | do | |
7844 | # Use a header file that comes with gcc, so configuring glibc | |
7845 | # with a fresh cross-compiler works. | |
10f2d63a | 7846 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1e487827 VS |
7847 | # not just through cpp. "Syntax error" is here to catch this case. |
7848 | cat >conftest.$ac_ext <<_ACEOF | |
7849 | #line 7849 "configure" | |
10f2d63a VZ |
7850 | #include "confdefs.h" |
7851 | #include <assert.h> | |
1e487827 VS |
7852 | Syntax error |
7853 | _ACEOF | |
7854 | if { (eval echo "$as_me:7854: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7855 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7856 | ac_status=$? | |
7857 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7858 | rm -f conftest.er1 | |
7859 | cat conftest.err >&5 | |
7860 | echo "$as_me:7860: \$? = $ac_status" >&5 | |
7861 | (exit $ac_status); } >/dev/null; then | |
7862 | if test -s conftest.err; then | |
7863 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7864 | else | |
7865 | ac_cpp_err= | |
7866 | fi | |
7867 | else | |
7868 | ac_cpp_err=yes | |
7869 | fi | |
7870 | if test -z "$ac_cpp_err"; then | |
10f2d63a VZ |
7871 | : |
7872 | else | |
1e487827 | 7873 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 7874 | cat conftest.$ac_ext >&5 |
1e487827 VS |
7875 | # Broken: fails on valid input. |
7876 | continue | |
7877 | fi | |
7878 | rm -f conftest.err conftest.$ac_ext | |
7879 | ||
7880 | # OK, works on sane cases. Now check whether non-existent headers | |
7881 | # can be detected and how. | |
7882 | cat >conftest.$ac_ext <<_ACEOF | |
7883 | #line 7883 "configure" | |
10f2d63a | 7884 | #include "confdefs.h" |
1e487827 VS |
7885 | #include <ac_nonexistent.h> |
7886 | _ACEOF | |
7887 | if { (eval echo "$as_me:7887: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7888 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7889 | ac_status=$? | |
7890 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7891 | rm -f conftest.er1 | |
7892 | cat conftest.err >&5 | |
7893 | echo "$as_me:7893: \$? = $ac_status" >&5 | |
7894 | (exit $ac_status); } >/dev/null; then | |
7895 | if test -s conftest.err; then | |
7896 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7897 | else | |
7898 | ac_cpp_err= | |
7899 | fi | |
7900 | else | |
7901 | ac_cpp_err=yes | |
7902 | fi | |
7903 | if test -z "$ac_cpp_err"; then | |
7904 | # Broken: success on invalid input. | |
7905 | continue | |
10f2d63a | 7906 | else |
1e487827 | 7907 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 7908 | cat conftest.$ac_ext >&5 |
1e487827 VS |
7909 | # Passes both tests. |
7910 | ac_preproc_ok=: | |
7911 | break | |
7912 | fi | |
7913 | rm -f conftest.err conftest.$ac_ext | |
7914 | ||
7915 | done | |
7916 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7917 | rm -f conftest.err conftest.$ac_ext | |
7918 | if $ac_preproc_ok; then | |
7919 | break 2 | |
7920 | fi | |
7921 | ||
7922 | done | |
7923 | ac_cv_prog_CPP=$CPP | |
7924 | ||
7925 | fi | |
7926 | CPP=$ac_cv_prog_CPP | |
7927 | else | |
7928 | ac_cv_prog_CPP=$CPP | |
7929 | fi | |
7930 | echo "$as_me:7930: result: $CPP" >&5 | |
7931 | echo "${ECHO_T}$CPP" >&6 | |
7932 | ac_preproc_ok=false | |
7933 | for ac_c_preproc_warn_flag in '' yes | |
7934 | do | |
7935 | # Use a header file that comes with gcc, so configuring glibc | |
7936 | # with a fresh cross-compiler works. | |
7937 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7938 | # not just through cpp. "Syntax error" is here to catch this case. | |
7939 | cat >conftest.$ac_ext <<_ACEOF | |
7940 | #line 7940 "configure" | |
10f2d63a VZ |
7941 | #include "confdefs.h" |
7942 | #include <assert.h> | |
1e487827 VS |
7943 | Syntax error |
7944 | _ACEOF | |
7945 | if { (eval echo "$as_me:7945: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7946 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7947 | ac_status=$? | |
7948 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7949 | rm -f conftest.er1 | |
7950 | cat conftest.err >&5 | |
7951 | echo "$as_me:7951: \$? = $ac_status" >&5 | |
7952 | (exit $ac_status); } >/dev/null; then | |
7953 | if test -s conftest.err; then | |
7954 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7955 | else | |
7956 | ac_cpp_err= | |
7957 | fi | |
7958 | else | |
7959 | ac_cpp_err=yes | |
7960 | fi | |
7961 | if test -z "$ac_cpp_err"; then | |
10f2d63a VZ |
7962 | : |
7963 | else | |
1e487827 | 7964 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 7965 | cat conftest.$ac_ext >&5 |
1e487827 VS |
7966 | # Broken: fails on valid input. |
7967 | continue | |
10f2d63a | 7968 | fi |
1e487827 VS |
7969 | rm -f conftest.err conftest.$ac_ext |
7970 | ||
7971 | # OK, works on sane cases. Now check whether non-existent headers | |
7972 | # can be detected and how. | |
7973 | cat >conftest.$ac_ext <<_ACEOF | |
7974 | #line 7974 "configure" | |
7975 | #include "confdefs.h" | |
7976 | #include <ac_nonexistent.h> | |
7977 | _ACEOF | |
7978 | if { (eval echo "$as_me:7978: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7980 | ac_status=$? | |
7981 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7982 | rm -f conftest.er1 | |
7983 | cat conftest.err >&5 | |
7984 | echo "$as_me:7984: \$? = $ac_status" >&5 | |
7985 | (exit $ac_status); } >/dev/null; then | |
7986 | if test -s conftest.err; then | |
7987 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7988 | else | |
7989 | ac_cpp_err= | |
7990 | fi | |
7991 | else | |
7992 | ac_cpp_err=yes | |
10f2d63a | 7993 | fi |
1e487827 VS |
7994 | if test -z "$ac_cpp_err"; then |
7995 | # Broken: success on invalid input. | |
7996 | continue | |
7997 | else | |
7998 | echo "$as_me: failed program was:" >&5 | |
7999 | cat conftest.$ac_ext >&5 | |
8000 | # Passes both tests. | |
8001 | ac_preproc_ok=: | |
8002 | break | |
703e0a69 | 8003 | fi |
1e487827 VS |
8004 | rm -f conftest.err conftest.$ac_ext |
8005 | ||
8006 | done | |
8007 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8008 | rm -f conftest.err conftest.$ac_ext | |
8009 | if $ac_preproc_ok; then | |
8010 | : | |
10f2d63a | 8011 | else |
1e487827 VS |
8012 | { { echo "$as_me:8012: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
8013 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
8014 | { (exit 1); exit 1; }; } | |
10f2d63a | 8015 | fi |
10f2d63a | 8016 | |
1e487827 VS |
8017 | ac_ext=c |
8018 | ac_cpp='$CPP $CPPFLAGS' | |
8019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 8022 | |
1e487827 VS |
8023 | if test $ac_cv_c_compiler_gnu = yes; then |
8024 | echo "$as_me:8024: checking whether $CC needs -traditional" >&5 | |
8025 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
8026 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
8027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
8028 | else |
8029 | ac_pattern="Autoconf.*'x'" | |
1e487827 VS |
8030 | cat >conftest.$ac_ext <<_ACEOF |
8031 | #line 8031 "configure" | |
10f2d63a VZ |
8032 | #include "confdefs.h" |
8033 | #include <sgtty.h> | |
8034 | Autoconf TIOCGETP | |
1e487827 | 8035 | _ACEOF |
10f2d63a VZ |
8036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8037 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
10f2d63a VZ |
8038 | ac_cv_prog_gcc_traditional=yes |
8039 | else | |
10f2d63a VZ |
8040 | ac_cv_prog_gcc_traditional=no |
8041 | fi | |
8042 | rm -f conftest* | |
8043 | ||
10f2d63a | 8044 | if test $ac_cv_prog_gcc_traditional = no; then |
1e487827 VS |
8045 | cat >conftest.$ac_ext <<_ACEOF |
8046 | #line 8046 "configure" | |
10f2d63a VZ |
8047 | #include "confdefs.h" |
8048 | #include <termio.h> | |
8049 | Autoconf TCGETA | |
1e487827 | 8050 | _ACEOF |
10f2d63a VZ |
8051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8052 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
10f2d63a VZ |
8053 | ac_cv_prog_gcc_traditional=yes |
8054 | fi | |
8055 | rm -f conftest* | |
8056 | ||
8057 | fi | |
8058 | fi | |
1e487827 VS |
8059 | echo "$as_me:8059: result: $ac_cv_prog_gcc_traditional" >&5 |
8060 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
8061 | if test $ac_cv_prog_gcc_traditional = yes; then |
8062 | CC="$CC -traditional" | |
8063 | fi | |
8064 | fi | |
8065 | ||
1e487827 | 8066 | ac_ext=cc |
6232543b | 8067 | ac_cpp='$CXXCPP $CPPFLAGS' |
1e487827 VS |
8068 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8069 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8070 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
703e0a69 | 8071 | |
1e487827 VS |
8072 | ac_ext=cc |
8073 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8074 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8075 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8076 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8077 | if test -n "$ac_tool_prefix"; then | |
8078 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC | |
8079 | do | |
8080 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
8081 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8082 | echo "$as_me:8082: checking for $ac_word" >&5 | |
8083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8084 | if test "${ac_cv_prog_CXX+set}" = set; then | |
8085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
8086 | else |
8087 | if test -n "$CXX"; then | |
8088 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8089 | else | |
1e487827 VS |
8090 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
8091 | ac_dummy="$PATH" | |
8092 | for ac_dir in $ac_dummy; do | |
8093 | IFS=$ac_save_IFS | |
8094 | test -z "$ac_dir" && ac_dir=. | |
8095 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8096 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
8097 | echo "$as_me:8097: found $ac_dir/$ac_word" >&5 | |
8098 | break | |
8099 | done | |
8100 | ||
10f2d63a VZ |
8101 | fi |
8102 | fi | |
1e487827 | 8103 | CXX=$ac_cv_prog_CXX |
10f2d63a | 8104 | if test -n "$CXX"; then |
1e487827 VS |
8105 | echo "$as_me:8105: result: $CXX" >&5 |
8106 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 8107 | else |
1e487827 VS |
8108 | echo "$as_me:8108: result: no" >&5 |
8109 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
8110 | fi |
8111 | ||
1e487827 VS |
8112 | test -n "$CXX" && break |
8113 | done | |
8114 | fi | |
8115 | if test -z "$CXX"; then | |
8116 | ac_ct_CXX=$CXX | |
8117 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC | |
8118 | do | |
8119 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8120 | set dummy $ac_prog; ac_word=$2 | |
8121 | echo "$as_me:8121: checking for $ac_word" >&5 | |
8122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8123 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
8124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8125 | else | |
8126 | if test -n "$ac_ct_CXX"; then | |
8127 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
8128 | else | |
8129 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
8130 | ac_dummy="$PATH" | |
8131 | for ac_dir in $ac_dummy; do | |
8132 | IFS=$ac_save_IFS | |
8133 | test -z "$ac_dir" && ac_dir=. | |
8134 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8135 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
8136 | echo "$as_me:8136: found $ac_dir/$ac_word" >&5 | |
8137 | break | |
10f2d63a | 8138 | done |
10f2d63a | 8139 | |
1e487827 VS |
8140 | fi |
8141 | fi | |
8142 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
8143 | if test -n "$ac_ct_CXX"; then | |
8144 | echo "$as_me:8144: result: $ac_ct_CXX" >&5 | |
8145 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
8146 | else | |
8147 | echo "$as_me:8147: result: no" >&5 | |
8148 | echo "${ECHO_T}no" >&6 | |
8149 | fi | |
10f2d63a | 8150 | |
1e487827 VS |
8151 | test -n "$ac_ct_CXX" && break |
8152 | done | |
8153 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
10f2d63a | 8154 | |
1e487827 VS |
8155 | CXX=$ac_ct_CXX |
8156 | fi | |
703e0a69 | 8157 | |
1e487827 VS |
8158 | echo "$as_me:8158: checking whether we are using the GNU C++ compiler" >&5 |
8159 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
8160 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
8161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8162 | else | |
8163 | cat >conftest.$ac_ext <<_ACEOF | |
8164 | #line 8164 "configure" | |
10f2d63a VZ |
8165 | #include "confdefs.h" |
8166 | ||
1e487827 VS |
8167 | int |
8168 | main () | |
8169 | { | |
8170 | #ifndef __GNUC__ | |
8171 | choke me | |
10f2d63a | 8172 | #endif |
10f2d63a | 8173 | |
1e487827 VS |
8174 | ; |
8175 | return 0; | |
8176 | } | |
8177 | _ACEOF | |
8178 | rm -f conftest.$ac_objext | |
8179 | if { (eval echo "$as_me:8179: \"$ac_compile\"") >&5 | |
8180 | (eval $ac_compile) 2>&5 | |
8181 | ac_status=$? | |
8182 | echo "$as_me:8182: \$? = $ac_status" >&5 | |
8183 | (exit $ac_status); } && | |
8184 | { ac_try='test -s conftest.$ac_objext' | |
8185 | { (eval echo "$as_me:8185: \"$ac_try\"") >&5 | |
8186 | (eval $ac_try) 2>&5 | |
8187 | ac_status=$? | |
8188 | echo "$as_me:8188: \$? = $ac_status" >&5 | |
8189 | (exit $ac_status); }; }; then | |
8190 | ac_compiler_gnu=yes | |
8191 | else | |
8192 | echo "$as_me: failed program was:" >&5 | |
8193 | cat conftest.$ac_ext >&5 | |
8194 | ac_compiler_gnu=no | |
8195 | fi | |
8196 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8197 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
8198 | ||
8199 | fi | |
8200 | echo "$as_me:8200: result: $ac_cv_cxx_compiler_gnu" >&5 | |
8201 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
8202 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
8203 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
8204 | ac_save_CXXFLAGS=$CXXFLAGS | |
8205 | CXXFLAGS="-g" | |
8206 | echo "$as_me:8206: checking whether $CXX accepts -g" >&5 | |
8207 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
8208 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
8209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8210 | else | |
8211 | cat >conftest.$ac_ext <<_ACEOF | |
8212 | #line 8212 "configure" | |
8213 | #include "confdefs.h" | |
10f2d63a | 8214 | |
1e487827 VS |
8215 | int |
8216 | main () | |
8217 | { | |
10f2d63a | 8218 | |
1e487827 VS |
8219 | ; |
8220 | return 0; | |
8221 | } | |
8222 | _ACEOF | |
8223 | rm -f conftest.$ac_objext | |
8224 | if { (eval echo "$as_me:8224: \"$ac_compile\"") >&5 | |
8225 | (eval $ac_compile) 2>&5 | |
8226 | ac_status=$? | |
8227 | echo "$as_me:8227: \$? = $ac_status" >&5 | |
8228 | (exit $ac_status); } && | |
8229 | { ac_try='test -s conftest.$ac_objext' | |
8230 | { (eval echo "$as_me:8230: \"$ac_try\"") >&5 | |
8231 | (eval $ac_try) 2>&5 | |
8232 | ac_status=$? | |
8233 | echo "$as_me:8233: \$? = $ac_status" >&5 | |
8234 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
8235 | ac_cv_prog_cxx_g=yes |
8236 | else | |
1e487827 VS |
8237 | echo "$as_me: failed program was:" >&5 |
8238 | cat conftest.$ac_ext >&5 | |
8239 | ac_cv_prog_cxx_g=no | |
10f2d63a | 8240 | fi |
1e487827 | 8241 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a | 8242 | fi |
1e487827 VS |
8243 | echo "$as_me:8243: result: $ac_cv_prog_cxx_g" >&5 |
8244 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
10f2d63a | 8245 | if test "$ac_test_CXXFLAGS" = set; then |
1e487827 | 8246 | CXXFLAGS=$ac_save_CXXFLAGS |
10f2d63a VZ |
8247 | elif test $ac_cv_prog_cxx_g = yes; then |
8248 | if test "$GXX" = yes; then | |
8249 | CXXFLAGS="-g -O2" | |
8250 | else | |
8251 | CXXFLAGS="-g" | |
8252 | fi | |
8253 | else | |
8254 | if test "$GXX" = yes; then | |
8255 | CXXFLAGS="-O2" | |
8256 | else | |
8257 | CXXFLAGS= | |
8258 | fi | |
8259 | fi | |
1e487827 VS |
8260 | for ac_declaration in \ |
8261 | ''\ | |
8262 | '#include <stdlib.h>' \ | |
8263 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
8264 | 'extern "C" void std::exit (int); using std::exit;' \ | |
8265 | 'extern "C" void exit (int) throw ();' \ | |
8266 | 'extern "C" void exit (int);' \ | |
8267 | 'void exit (int);' | |
8268 | do | |
8269 | cat >conftest.$ac_ext <<_ACEOF | |
8270 | #line 8270 "configure" | |
8271 | #include "confdefs.h" | |
8272 | #include <stdlib.h> | |
8273 | $ac_declaration | |
8274 | int | |
8275 | main () | |
8276 | { | |
8277 | exit (42); | |
8278 | ; | |
8279 | return 0; | |
8280 | } | |
8281 | _ACEOF | |
8282 | rm -f conftest.$ac_objext | |
8283 | if { (eval echo "$as_me:8283: \"$ac_compile\"") >&5 | |
8284 | (eval $ac_compile) 2>&5 | |
8285 | ac_status=$? | |
8286 | echo "$as_me:8286: \$? = $ac_status" >&5 | |
8287 | (exit $ac_status); } && | |
8288 | { ac_try='test -s conftest.$ac_objext' | |
8289 | { (eval echo "$as_me:8289: \"$ac_try\"") >&5 | |
8290 | (eval $ac_try) 2>&5 | |
8291 | ac_status=$? | |
8292 | echo "$as_me:8292: \$? = $ac_status" >&5 | |
8293 | (exit $ac_status); }; }; then | |
8294 | : | |
8295 | else | |
8296 | echo "$as_me: failed program was:" >&5 | |
8297 | cat conftest.$ac_ext >&5 | |
8298 | continue | |
8299 | fi | |
8300 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8301 | cat >conftest.$ac_ext <<_ACEOF | |
8302 | #line 8302 "configure" | |
8303 | #include "confdefs.h" | |
8304 | $ac_declaration | |
8305 | int | |
8306 | main () | |
8307 | { | |
8308 | exit (42); | |
8309 | ; | |
8310 | return 0; | |
8311 | } | |
8312 | _ACEOF | |
8313 | rm -f conftest.$ac_objext | |
8314 | if { (eval echo "$as_me:8314: \"$ac_compile\"") >&5 | |
8315 | (eval $ac_compile) 2>&5 | |
8316 | ac_status=$? | |
8317 | echo "$as_me:8317: \$? = $ac_status" >&5 | |
8318 | (exit $ac_status); } && | |
8319 | { ac_try='test -s conftest.$ac_objext' | |
8320 | { (eval echo "$as_me:8320: \"$ac_try\"") >&5 | |
8321 | (eval $ac_try) 2>&5 | |
8322 | ac_status=$? | |
8323 | echo "$as_me:8323: \$? = $ac_status" >&5 | |
8324 | (exit $ac_status); }; }; then | |
8325 | break | |
8326 | else | |
8327 | echo "$as_me: failed program was:" >&5 | |
8328 | cat conftest.$ac_ext >&5 | |
8329 | fi | |
8330 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8331 | done | |
8332 | echo '#ifdef __cplusplus' >>confdefs.h | |
8333 | echo $ac_declaration >>confdefs.h | |
8334 | echo '#endif' >>confdefs.h | |
10f2d63a | 8335 | |
1e487827 VS |
8336 | ac_ext=cc |
8337 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8338 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8339 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8340 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a | 8341 | |
1e487827 | 8342 | ac_ext=cc |
703e0a69 | 8343 | ac_cpp='$CXXCPP $CPPFLAGS' |
1e487827 VS |
8344 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8345 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8346 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8347 | echo "$as_me:8347: checking how to run the C++ preprocessor" >&5 | |
8348 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
8349 | if test -z "$CXXCPP"; then | |
8350 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
8351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8352 | else | |
8353 | # Double quotes because CXXCPP needs to be expanded | |
8354 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
8355 | do | |
8356 | # break 2 since there is a loop in there. | |
8357 | ac_preproc_ok=false | |
8358 | for ac_cxx_preproc_warn_flag in '' yes | |
8359 | do | |
8360 | # Use a header file that comes with gcc, so configuring glibc | |
8361 | # with a fresh cross-compiler works. | |
8362 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8363 | # not just through cpp. "Syntax error" is here to catch this case. | |
8364 | cat >conftest.$ac_ext <<_ACEOF | |
8365 | #line 8365 "configure" | |
6232543b | 8366 | #include "confdefs.h" |
1e487827 VS |
8367 | #include <assert.h> |
8368 | Syntax error | |
8369 | _ACEOF | |
8370 | if { (eval echo "$as_me:8370: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8371 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8372 | ac_status=$? | |
8373 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8374 | rm -f conftest.er1 | |
8375 | cat conftest.err >&5 | |
8376 | echo "$as_me:8376: \$? = $ac_status" >&5 | |
8377 | (exit $ac_status); } >/dev/null; then | |
8378 | if test -s conftest.err; then | |
8379 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
8380 | else | |
8381 | ac_cpp_err= | |
8382 | fi | |
8383 | else | |
8384 | ac_cpp_err=yes | |
8385 | fi | |
8386 | if test -z "$ac_cpp_err"; then | |
6232543b VS |
8387 | : |
8388 | else | |
1e487827 | 8389 | echo "$as_me: failed program was:" >&5 |
6232543b | 8390 | cat conftest.$ac_ext >&5 |
1e487827 VS |
8391 | # Broken: fails on valid input. |
8392 | continue | |
6232543b | 8393 | fi |
1e487827 VS |
8394 | rm -f conftest.err conftest.$ac_ext |
8395 | ||
8396 | # OK, works on sane cases. Now check whether non-existent headers | |
8397 | # can be detected and how. | |
8398 | cat >conftest.$ac_ext <<_ACEOF | |
8399 | #line 8399 "configure" | |
8400 | #include "confdefs.h" | |
8401 | #include <ac_nonexistent.h> | |
8402 | _ACEOF | |
8403 | if { (eval echo "$as_me:8403: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8404 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8405 | ac_status=$? | |
8406 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8407 | rm -f conftest.er1 | |
8408 | cat conftest.err >&5 | |
8409 | echo "$as_me:8409: \$? = $ac_status" >&5 | |
8410 | (exit $ac_status); } >/dev/null; then | |
8411 | if test -s conftest.err; then | |
8412 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
8413 | else | |
8414 | ac_cpp_err= | |
8415 | fi | |
8416 | else | |
8417 | ac_cpp_err=yes | |
6232543b | 8418 | fi |
1e487827 VS |
8419 | if test -z "$ac_cpp_err"; then |
8420 | # Broken: success on invalid input. | |
8421 | continue | |
8422 | else | |
8423 | echo "$as_me: failed program was:" >&5 | |
8424 | cat conftest.$ac_ext >&5 | |
8425 | # Passes both tests. | |
8426 | ac_preproc_ok=: | |
8427 | break | |
6232543b | 8428 | fi |
1e487827 VS |
8429 | rm -f conftest.err conftest.$ac_ext |
8430 | ||
8431 | done | |
8432 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8433 | rm -f conftest.err conftest.$ac_ext | |
8434 | if $ac_preproc_ok; then | |
8435 | break 2 | |
8436 | fi | |
8437 | ||
8438 | done | |
8439 | ac_cv_prog_CXXCPP=$CXXCPP | |
8440 | ||
8441 | fi | |
8442 | CXXCPP=$ac_cv_prog_CXXCPP | |
8443 | else | |
8444 | ac_cv_prog_CXXCPP=$CXXCPP | |
8445 | fi | |
8446 | echo "$as_me:8446: result: $CXXCPP" >&5 | |
8447 | echo "${ECHO_T}$CXXCPP" >&6 | |
8448 | ac_preproc_ok=false | |
8449 | for ac_cxx_preproc_warn_flag in '' yes | |
8450 | do | |
8451 | # Use a header file that comes with gcc, so configuring glibc | |
8452 | # with a fresh cross-compiler works. | |
8453 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8454 | # not just through cpp. "Syntax error" is here to catch this case. | |
8455 | cat >conftest.$ac_ext <<_ACEOF | |
8456 | #line 8456 "configure" | |
8457 | #include "confdefs.h" | |
8458 | #include <assert.h> | |
8459 | Syntax error | |
8460 | _ACEOF | |
8461 | if { (eval echo "$as_me:8461: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8463 | ac_status=$? | |
8464 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8465 | rm -f conftest.er1 | |
8466 | cat conftest.err >&5 | |
8467 | echo "$as_me:8467: \$? = $ac_status" >&5 | |
8468 | (exit $ac_status); } >/dev/null; then | |
8469 | if test -s conftest.err; then | |
8470 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
8471 | else | |
8472 | ac_cpp_err= | |
8473 | fi | |
8474 | else | |
8475 | ac_cpp_err=yes | |
8476 | fi | |
8477 | if test -z "$ac_cpp_err"; then | |
8478 | : | |
8479 | else | |
8480 | echo "$as_me: failed program was:" >&5 | |
8481 | cat conftest.$ac_ext >&5 | |
8482 | # Broken: fails on valid input. | |
8483 | continue | |
8484 | fi | |
8485 | rm -f conftest.err conftest.$ac_ext | |
8486 | ||
8487 | # OK, works on sane cases. Now check whether non-existent headers | |
8488 | # can be detected and how. | |
8489 | cat >conftest.$ac_ext <<_ACEOF | |
8490 | #line 8490 "configure" | |
8491 | #include "confdefs.h" | |
8492 | #include <ac_nonexistent.h> | |
8493 | _ACEOF | |
8494 | if { (eval echo "$as_me:8494: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8496 | ac_status=$? | |
8497 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8498 | rm -f conftest.er1 | |
8499 | cat conftest.err >&5 | |
8500 | echo "$as_me:8500: \$? = $ac_status" >&5 | |
8501 | (exit $ac_status); } >/dev/null; then | |
8502 | if test -s conftest.err; then | |
8503 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
8504 | else | |
8505 | ac_cpp_err= | |
8506 | fi | |
8507 | else | |
8508 | ac_cpp_err=yes | |
8509 | fi | |
8510 | if test -z "$ac_cpp_err"; then | |
8511 | # Broken: success on invalid input. | |
8512 | continue | |
8513 | else | |
8514 | echo "$as_me: failed program was:" >&5 | |
8515 | cat conftest.$ac_ext >&5 | |
8516 | # Passes both tests. | |
8517 | ac_preproc_ok=: | |
8518 | break | |
8519 | fi | |
8520 | rm -f conftest.err conftest.$ac_ext | |
8521 | ||
8522 | done | |
8523 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8524 | rm -f conftest.err conftest.$ac_ext | |
8525 | if $ac_preproc_ok; then | |
8526 | : | |
8527 | else | |
8528 | { { echo "$as_me:8528: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 | |
8529 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} | |
8530 | { (exit 1); exit 1; }; } | |
8531 | fi | |
8532 | ||
8533 | ac_ext=cc | |
8534 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8535 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8536 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8537 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
8538 | |
8539 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8540 | ||
8541 | ac_ext=c | |
10f2d63a | 8542 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
8543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8546 | ||
8547 | if test -n "$ac_tool_prefix"; then | |
8548 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8549 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
8550 | echo "$as_me:8550: checking for $ac_word" >&5 | |
8551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8552 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
8553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
8554 | else |
8555 | if test -n "$RANLIB"; then | |
8556 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8557 | else | |
1e487827 VS |
8558 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
8559 | ac_dummy="$PATH" | |
8560 | for ac_dir in $ac_dummy; do | |
8561 | IFS=$ac_save_IFS | |
8562 | test -z "$ac_dir" && ac_dir=. | |
8563 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8564 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
8565 | echo "$as_me:8565: found $ac_dir/$ac_word" >&5 | |
8566 | break | |
8567 | done | |
8568 | ||
10f2d63a VZ |
8569 | fi |
8570 | fi | |
1e487827 | 8571 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 8572 | if test -n "$RANLIB"; then |
1e487827 VS |
8573 | echo "$as_me:8573: result: $RANLIB" >&5 |
8574 | echo "${ECHO_T}$RANLIB" >&6 | |
8575 | else | |
8576 | echo "$as_me:8576: result: no" >&5 | |
8577 | echo "${ECHO_T}no" >&6 | |
8578 | fi | |
8579 | ||
8580 | fi | |
8581 | if test -z "$ac_cv_prog_RANLIB"; then | |
8582 | ac_ct_RANLIB=$RANLIB | |
8583 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8584 | set dummy ranlib; ac_word=$2 | |
8585 | echo "$as_me:8585: checking for $ac_word" >&5 | |
8586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8587 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
8588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8589 | else | |
8590 | if test -n "$ac_ct_RANLIB"; then | |
8591 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8592 | else | |
8593 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
8594 | ac_dummy="$PATH" | |
8595 | for ac_dir in $ac_dummy; do | |
8596 | IFS=$ac_save_IFS | |
8597 | test -z "$ac_dir" && ac_dir=. | |
8598 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8599 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
8600 | echo "$as_me:8600: found $ac_dir/$ac_word" >&5 | |
8601 | break | |
8602 | done | |
8603 | ||
8604 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
8605 | fi | |
8606 | fi | |
8607 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8608 | if test -n "$ac_ct_RANLIB"; then | |
8609 | echo "$as_me:8609: result: $ac_ct_RANLIB" >&5 | |
8610 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 8611 | else |
1e487827 VS |
8612 | echo "$as_me:8612: result: no" >&5 |
8613 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
8614 | fi |
8615 | ||
1e487827 VS |
8616 | RANLIB=$ac_ct_RANLIB |
8617 | else | |
8618 | RANLIB="$ac_cv_prog_RANLIB" | |
8619 | fi | |
10f2d63a VZ |
8620 | |
8621 | # Extract the first word of "ar", so it can be a program name with args. | |
8622 | set dummy ar; ac_word=$2 | |
1e487827 VS |
8623 | echo "$as_me:8623: checking for $ac_word" >&5 |
8624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8625 | if test "${ac_cv_prog_AR+set}" = set; then | |
8626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
8627 | else |
8628 | if test -n "$AR"; then | |
8629 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8630 | else | |
1e487827 VS |
8631 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
8632 | ac_dummy="$PATH" | |
8633 | for ac_dir in $ac_dummy; do | |
8634 | IFS=$ac_save_IFS | |
8635 | test -z "$ac_dir" && ac_dir=. | |
8636 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8637 | ac_cv_prog_AR="ar" | |
8638 | echo "$as_me:8638: found $ac_dir/$ac_word" >&5 | |
8639 | break | |
8640 | done | |
8641 | ||
10f2d63a VZ |
8642 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8643 | fi | |
8644 | fi | |
1e487827 | 8645 | AR=$ac_cv_prog_AR |
10f2d63a | 8646 | if test -n "$AR"; then |
1e487827 VS |
8647 | echo "$as_me:8647: result: $AR" >&5 |
8648 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 8649 | else |
1e487827 VS |
8650 | echo "$as_me:8650: result: no" >&5 |
8651 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
8652 | fi |
8653 | ||
10f2d63a VZ |
8654 | # Find a good install program. We prefer a C program (faster), |
8655 | # so one script is as good as another. But avoid the broken or | |
8656 | # incompatible versions: | |
8657 | # SysV /etc/install, /usr/sbin/install | |
8658 | # SunOS /usr/etc/install | |
8659 | # IRIX /sbin/install | |
8660 | # AIX /bin/install | |
1e487827 | 8661 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
10f2d63a VZ |
8662 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8663 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8664 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8665 | # ./install, which can be erroneously created by make from ./install.sh. | |
1e487827 VS |
8666 | echo "$as_me:8666: checking for a BSD compatible install" >&5 |
8667 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
10f2d63a | 8668 | if test -z "$INSTALL"; then |
1e487827 VS |
8669 | if test "${ac_cv_path_install+set}" = set; then |
8670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 8671 | else |
1e487827 | 8672 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
10f2d63a | 8673 | for ac_dir in $PATH; do |
1e487827 | 8674 | IFS=$ac_save_IFS |
10f2d63a | 8675 | # Account for people who put trailing slashes in PATH elements. |
1e487827 VS |
8676 | case $ac_dir/ in |
8677 | / | ./ | .// | /cC/* \ | |
8678 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
8679 | | /usr/ucb/* ) ;; | |
10f2d63a VZ |
8680 | *) |
8681 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8682 | # Don't use installbsd from OSF since it installs stuff as root | |
8683 | # by default. | |
8684 | for ac_prog in ginstall scoinst install; do | |
1e487827 | 8685 | if $as_executable_p "$ac_dir/$ac_prog"; then |
10f2d63a | 8686 | if test $ac_prog = install && |
1e487827 | 8687 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
10f2d63a VZ |
8688 | # AIX install. It has an incompatible calling convention. |
8689 | : | |
1e487827 VS |
8690 | elif test $ac_prog = install && |
8691 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
8692 | # program-specific install script used by HP pwplus--don't use. | |
8693 | : | |
10f2d63a VZ |
8694 | else |
8695 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8696 | break 2 | |
8697 | fi | |
8698 | fi | |
8699 | done | |
8700 | ;; | |
8701 | esac | |
8702 | done | |
10f2d63a VZ |
8703 | |
8704 | fi | |
8705 | if test "${ac_cv_path_install+set}" = set; then | |
1e487827 | 8706 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
8707 | else |
8708 | # As a last resort, use the slow shell script. We don't cache a | |
8709 | # path for INSTALL within a source directory, because that will | |
8710 | # break other packages using the cache if that directory is | |
8711 | # removed, or if the path is relative. | |
1e487827 | 8712 | INSTALL=$ac_install_sh |
10f2d63a VZ |
8713 | fi |
8714 | fi | |
1e487827 VS |
8715 | echo "$as_me:8715: result: $INSTALL" >&5 |
8716 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
8717 | |
8718 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8719 | # It thinks the first close brace ends the variable substitution. | |
8720 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8721 | ||
1e487827 | 8722 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
10f2d63a VZ |
8723 | |
8724 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8725 | ||
10f2d63a VZ |
8726 | # Extract the first word of "strip", so it can be a program name with args. |
8727 | set dummy strip; ac_word=$2 | |
1e487827 VS |
8728 | echo "$as_me:8728: checking for $ac_word" >&5 |
8729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8730 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
8731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
8732 | else |
8733 | if test -n "$STRIP"; then | |
8734 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8735 | else | |
1e487827 VS |
8736 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
8737 | ac_dummy="$PATH" | |
8738 | for ac_dir in $ac_dummy; do | |
8739 | IFS=$ac_save_IFS | |
8740 | test -z "$ac_dir" && ac_dir=. | |
8741 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8742 | ac_cv_prog_STRIP="strip" | |
8743 | echo "$as_me:8743: found $ac_dir/$ac_word" >&5 | |
8744 | break | |
8745 | done | |
8746 | ||
10f2d63a VZ |
8747 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8748 | fi | |
8749 | fi | |
1e487827 | 8750 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 8751 | if test -n "$STRIP"; then |
1e487827 VS |
8752 | echo "$as_me:8752: result: $STRIP" >&5 |
8753 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 8754 | else |
1e487827 VS |
8755 | echo "$as_me:8755: result: no" >&5 |
8756 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
8757 | fi |
8758 | ||
1e487827 VS |
8759 | echo "$as_me:8759: checking make for VPATH support" >&5 |
8760 | echo $ECHO_N "checking make for VPATH support... $ECHO_C" >&6 | |
10f2d63a VZ |
8761 | cat - << EOF > confMake |
8762 | check : file | |
8763 | cp \$? \$@ | |
8764 | cp \$? final_file | |
8765 | EOF | |
8766 | ||
8767 | if test ! -d sub ; then | |
8768 | mkdir sub | |
8769 | fi | |
8770 | echo dummy > sub/file | |
f6bcfd97 | 8771 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8772 | RESULT=$? |
8773 | rm -f sub/file check final_file confMake | |
8774 | rmdir sub | |
8775 | if test "$RESULT" = 0; then | |
1e487827 VS |
8776 | echo "$as_me:8776: result: yes" >&5 |
8777 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8778 | else |
1e487827 VS |
8779 | echo "$as_me:8779: result: no" >&5 |
8780 | echo "${ECHO_T}no" >&6 | |
8781 | { { echo "$as_me:8781: error: | |
8782 | You need a make-utility that is able to use the variable | |
10f2d63a | 8783 | VPATH correctly. |
1e487827 VS |
8784 | If your version of make does not support VPATH correctly, |
8785 | please install GNU-make (possibly as gmake), and start | |
8786 | configure with the following command: | |
8787 | export MAKE=gmake; ./configure for sh-type shells | |
8788 | setenv MAKE gmake; ./configure for csh-type shells | |
8789 | Also please do remember to use gmake in this case every time | |
8790 | you are trying to compile. | |
8791 | " >&5 | |
8792 | echo "$as_me: error: | |
8793 | You need a make-utility that is able to use the variable | |
8794 | VPATH correctly. | |
8795 | If your version of make does not support VPATH correctly, | |
8796 | please install GNU-make (possibly as gmake), and start | |
8797 | configure with the following command: | |
8798 | export MAKE=gmake; ./configure for sh-type shells | |
8799 | setenv MAKE gmake; ./configure for csh-type shells | |
8800 | Also please do remember to use gmake in this case every time | |
8801 | you are trying to compile. | |
8802 | " >&2;} | |
8803 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
8804 | fi |
8805 | ||
8806 | for ac_prog in 'bison -y' byacc | |
8807 | do | |
1e487827 | 8808 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8809 | set dummy $ac_prog; ac_word=$2 |
1e487827 VS |
8810 | echo "$as_me:8810: checking for $ac_word" >&5 |
8811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8812 | if test "${ac_cv_prog_YACC+set}" = set; then | |
8813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
8814 | else |
8815 | if test -n "$YACC"; then | |
8816 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8817 | else | |
1e487827 VS |
8818 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
8819 | ac_dummy="$PATH" | |
8820 | for ac_dir in $ac_dummy; do | |
8821 | IFS=$ac_save_IFS | |
8822 | test -z "$ac_dir" && ac_dir=. | |
8823 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8824 | ac_cv_prog_YACC="$ac_prog" | |
8825 | echo "$as_me:8825: found $ac_dir/$ac_word" >&5 | |
8826 | break | |
8827 | done | |
8828 | ||
10f2d63a VZ |
8829 | fi |
8830 | fi | |
1e487827 | 8831 | YACC=$ac_cv_prog_YACC |
10f2d63a | 8832 | if test -n "$YACC"; then |
1e487827 VS |
8833 | echo "$as_me:8833: result: $YACC" >&5 |
8834 | echo "${ECHO_T}$YACC" >&6 | |
10f2d63a | 8835 | else |
1e487827 VS |
8836 | echo "$as_me:8836: result: no" >&5 |
8837 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
8838 | fi |
8839 | ||
1e487827 | 8840 | test -n "$YACC" && break |
10f2d63a VZ |
8841 | done |
8842 | test -n "$YACC" || YACC="yacc" | |
8843 | ||
1e487827 VS |
8844 | for ac_prog in flex lex |
8845 | do | |
8846 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8847 | set dummy $ac_prog; ac_word=$2 | |
8848 | echo "$as_me:8848: checking for $ac_word" >&5 | |
8849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8850 | if test "${ac_cv_prog_LEX+set}" = set; then | |
8851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
8852 | else |
8853 | if test -n "$LEX"; then | |
8854 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8855 | else | |
1e487827 VS |
8856 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
8857 | ac_dummy="$PATH" | |
8858 | for ac_dir in $ac_dummy; do | |
8859 | IFS=$ac_save_IFS | |
8860 | test -z "$ac_dir" && ac_dir=. | |
8861 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8862 | ac_cv_prog_LEX="$ac_prog" | |
8863 | echo "$as_me:8863: found $ac_dir/$ac_word" >&5 | |
8864 | break | |
8865 | done | |
8866 | ||
10f2d63a VZ |
8867 | fi |
8868 | fi | |
1e487827 | 8869 | LEX=$ac_cv_prog_LEX |
10f2d63a | 8870 | if test -n "$LEX"; then |
1e487827 VS |
8871 | echo "$as_me:8871: result: $LEX" >&5 |
8872 | echo "${ECHO_T}$LEX" >&6 | |
10f2d63a | 8873 | else |
1e487827 VS |
8874 | echo "$as_me:8874: result: no" >&5 |
8875 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
8876 | fi |
8877 | ||
1e487827 VS |
8878 | test -n "$LEX" && break |
8879 | done | |
8880 | test -n "$LEX" || LEX=":" | |
8881 | ||
10f2d63a VZ |
8882 | if test -z "$LEXLIB" |
8883 | then | |
1e487827 VS |
8884 | echo "$as_me:8884: checking for yywrap in -lfl" >&5 |
8885 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
8886 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
8887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8888 | else | |
8889 | ac_check_lib_save_LIBS=$LIBS | |
8890 | LIBS="-lfl $LIBS" | |
8891 | cat >conftest.$ac_ext <<_ACEOF | |
8892 | #line 8892 "configure" | |
10f2d63a | 8893 | #include "confdefs.h" |
1e487827 | 8894 | |
10f2d63a | 8895 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
8896 | #ifdef __cplusplus |
8897 | extern "C" | |
8898 | #endif | |
10f2d63a | 8899 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
8900 | builtin and then its argument prototype would still apply. */ |
8901 | char yywrap (); | |
8902 | int | |
8903 | main () | |
8904 | { | |
8905 | yywrap (); | |
8906 | ; | |
8907 | return 0; | |
8908 | } | |
8909 | _ACEOF | |
8910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8911 | if { (eval echo "$as_me:8911: \"$ac_link\"") >&5 | |
8912 | (eval $ac_link) 2>&5 | |
8913 | ac_status=$? | |
8914 | echo "$as_me:8914: \$? = $ac_status" >&5 | |
8915 | (exit $ac_status); } && | |
8916 | { ac_try='test -s conftest$ac_exeext' | |
8917 | { (eval echo "$as_me:8917: \"$ac_try\"") >&5 | |
8918 | (eval $ac_try) 2>&5 | |
8919 | ac_status=$? | |
8920 | echo "$as_me:8920: \$? = $ac_status" >&5 | |
8921 | (exit $ac_status); }; }; then | |
8922 | ac_cv_lib_fl_yywrap=yes | |
8923 | else | |
8924 | echo "$as_me: failed program was:" >&5 | |
8925 | cat conftest.$ac_ext >&5 | |
8926 | ac_cv_lib_fl_yywrap=no | |
8927 | fi | |
8928 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8929 | LIBS=$ac_check_lib_save_LIBS | |
8930 | fi | |
8931 | echo "$as_me:8931: result: $ac_cv_lib_fl_yywrap" >&5 | |
8932 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
8933 | if test $ac_cv_lib_fl_yywrap = yes; then | |
8934 | LEXLIB="-lfl" | |
8935 | else | |
8936 | echo "$as_me:8936: checking for yywrap in -ll" >&5 | |
8937 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
8938 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
8939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8940 | else | |
8941 | ac_check_lib_save_LIBS=$LIBS | |
8942 | LIBS="-ll $LIBS" | |
8943 | cat >conftest.$ac_ext <<_ACEOF | |
8944 | #line 8944 "configure" | |
8945 | #include "confdefs.h" | |
10f2d63a | 8946 | |
1e487827 VS |
8947 | /* Override any gcc2 internal prototype to avoid an error. */ |
8948 | #ifdef __cplusplus | |
8949 | extern "C" | |
8950 | #endif | |
8951 | /* We use char because int might match the return type of a gcc2 | |
8952 | builtin and then its argument prototype would still apply. */ | |
8953 | char yywrap (); | |
8954 | int | |
8955 | main () | |
8956 | { | |
8957 | yywrap (); | |
8958 | ; | |
8959 | return 0; | |
8960 | } | |
8961 | _ACEOF | |
8962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8963 | if { (eval echo "$as_me:8963: \"$ac_link\"") >&5 | |
8964 | (eval $ac_link) 2>&5 | |
8965 | ac_status=$? | |
8966 | echo "$as_me:8966: \$? = $ac_status" >&5 | |
8967 | (exit $ac_status); } && | |
8968 | { ac_try='test -s conftest$ac_exeext' | |
8969 | { (eval echo "$as_me:8969: \"$ac_try\"") >&5 | |
8970 | (eval $ac_try) 2>&5 | |
8971 | ac_status=$? | |
8972 | echo "$as_me:8972: \$? = $ac_status" >&5 | |
8973 | (exit $ac_status); }; }; then | |
8974 | ac_cv_lib_l_yywrap=yes | |
10f2d63a | 8975 | else |
1e487827 VS |
8976 | echo "$as_me: failed program was:" >&5 |
8977 | cat conftest.$ac_ext >&5 | |
8978 | ac_cv_lib_l_yywrap=no | |
10f2d63a | 8979 | fi |
1e487827 VS |
8980 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
8981 | LIBS=$ac_check_lib_save_LIBS | |
10f2d63a | 8982 | fi |
1e487827 VS |
8983 | echo "$as_me:8983: result: $ac_cv_lib_l_yywrap" >&5 |
8984 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
8985 | if test $ac_cv_lib_l_yywrap = yes; then | |
8986 | LEXLIB="-ll" | |
10f2d63a VZ |
8987 | fi |
8988 | ||
8989 | fi | |
8990 | ||
1e487827 | 8991 | fi |
10f2d63a | 8992 | |
1e487827 VS |
8993 | if test "x$LEX" != "x:"; then |
8994 | echo "$as_me:8994: checking lex output file root" >&5 | |
8995 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
8996 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
8997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 8998 | else |
1e487827 VS |
8999 | # The minimal lex program is just a single line: %%. But some broken lexes |
9000 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
9001 | echo '%% | |
9002 | %%' | $LEX | |
9003 | if test -f lex.yy.c; then | |
9004 | ac_cv_prog_lex_root=lex.yy | |
9005 | elif test -f lexyy.c; then | |
9006 | ac_cv_prog_lex_root=lexyy | |
10f2d63a | 9007 | else |
1e487827 VS |
9008 | { { echo "$as_me:9008: error: cannot find output from $LEX; giving up" >&5 |
9009 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
9010 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
9011 | fi |
9012 | fi | |
1e487827 VS |
9013 | echo "$as_me:9013: result: $ac_cv_prog_lex_root" >&5 |
9014 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
9015 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
9016 | ||
9017 | echo "$as_me:9017: checking whether yytext is a pointer" >&5 | |
9018 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
9019 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
9020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9021 | else | |
9022 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
9023 | # default is implementation-dependent. Figure out which it is, since | |
9024 | # not all implementations provide the %pointer and %array declarations. | |
9025 | ac_cv_prog_lex_yytext_pointer=no | |
9026 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
9027 | ac_save_LIBS=$LIBS | |
9028 | LIBS="$LIBS $LEXLIB" | |
9029 | cat >conftest.$ac_ext <<_ACEOF | |
9030 | `cat $LEX_OUTPUT_ROOT.c` | |
9031 | _ACEOF | |
9032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9033 | if { (eval echo "$as_me:9033: \"$ac_link\"") >&5 | |
9034 | (eval $ac_link) 2>&5 | |
9035 | ac_status=$? | |
9036 | echo "$as_me:9036: \$? = $ac_status" >&5 | |
9037 | (exit $ac_status); } && | |
9038 | { ac_try='test -s conftest$ac_exeext' | |
9039 | { (eval echo "$as_me:9039: \"$ac_try\"") >&5 | |
9040 | (eval $ac_try) 2>&5 | |
9041 | ac_status=$? | |
9042 | echo "$as_me:9042: \$? = $ac_status" >&5 | |
9043 | (exit $ac_status); }; }; then | |
9044 | ac_cv_prog_lex_yytext_pointer=yes | |
10f2d63a | 9045 | else |
1e487827 VS |
9046 | echo "$as_me: failed program was:" >&5 |
9047 | cat conftest.$ac_ext >&5 | |
9048 | fi | |
9049 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9050 | LIBS=$ac_save_LIBS | |
9051 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
9052 | ||
9053 | fi | |
9054 | echo "$as_me:9054: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
9055 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
9056 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
9057 | ||
9058 | cat >>confdefs.h <<\EOF | |
9059 | #define YYTEXT_POINTER 1 | |
9060 | EOF | |
9061 | ||
10f2d63a VZ |
9062 | fi |
9063 | ||
1e487827 | 9064 | fi |
10f2d63a | 9065 | |
1e487827 VS |
9066 | echo "$as_me:9066: checking whether ln -s works" >&5 |
9067 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
9068 | LN_S=$as_ln_s | |
9069 | if test "$LN_S" = "ln -s"; then | |
9070 | echo "$as_me:9070: result: yes" >&5 | |
9071 | echo "${ECHO_T}yes" >&6 | |
9072 | else | |
9073 | echo "$as_me:9073: result: no, using $LN_S" >&5 | |
9074 | echo "${ECHO_T}no, using $LN_S" >&6 | |
9075 | fi | |
10f2d63a VZ |
9076 | |
9077 | SEARCH_INCLUDE="\ | |
9078 | /usr/local/include \ | |
9079 | \ | |
9080 | /usr/Motif-1.2/include \ | |
9081 | /usr/Motif-2.1/include \ | |
9082 | \ | |
9083 | /usr/include/Motif1.2 \ | |
9084 | /opt/xpm/include/X11 \ | |
9085 | /opt/GBxpm/include/ \ | |
9086 | /opt/GBxpm/X11/include/ \ | |
9087 | \ | |
9088 | /usr/Motif1.2/include \ | |
9089 | /usr/dt/include \ | |
afc31813 VZ |
9090 | /usr/openwin/include \ |
9091 | \ | |
10f2d63a VZ |
9092 | /usr/include/Xm \ |
9093 | \ | |
9094 | /usr/X11R6/include \ | |
afc31813 | 9095 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9096 | /usr/X11R5/include \ |
9097 | /usr/X11R4/include \ | |
9098 | \ | |
10f2d63a VZ |
9099 | /usr/include/X11R6 \ |
9100 | /usr/include/X11R5 \ | |
9101 | /usr/include/X11R4 \ | |
9102 | \ | |
9103 | /usr/local/X11R6/include \ | |
9104 | /usr/local/X11R5/include \ | |
9105 | /usr/local/X11R4/include \ | |
9106 | \ | |
9107 | /usr/local/include/X11R6 \ | |
9108 | /usr/local/include/X11R5 \ | |
9109 | /usr/local/include/X11R4 \ | |
9110 | \ | |
9111 | /usr/X11/include \ | |
9112 | /usr/include/X11 \ | |
9113 | /usr/local/X11/include \ | |
9114 | /usr/local/include/X11 \ | |
9115 | \ | |
9116 | /usr/X386/include \ | |
9117 | /usr/x386/include \ | |
9118 | /usr/XFree86/include/X11 \ | |
9119 | \ | |
cf27ef00 | 9120 | X:/XFree86/include \ |
ec14dd32 VZ |
9121 | X:/XFree86/include/X11 \ |
9122 | \ | |
10f2d63a VZ |
9123 | /usr/include/gtk \ |
9124 | /usr/local/include/gtk \ | |
9125 | /usr/include/glib \ | |
9126 | /usr/local/include/glib \ | |
9127 | \ | |
9128 | /usr/include/qt \ | |
9129 | /usr/local/include/qt \ | |
9130 | \ | |
9131 | /usr/include/windows \ | |
9132 | /usr/include/wine \ | |
9133 | /usr/local/include/wine \ | |
9134 | \ | |
9135 | /usr/unsupported/include \ | |
9136 | /usr/athena/include \ | |
9137 | /usr/local/x11r5/include \ | |
9138 | /usr/lpp/Xamples/include \ | |
9139 | \ | |
10f2d63a | 9140 | /usr/openwin/share/include \ |
928b5c08 VZ |
9141 | \ |
9142 | /usr/include" | |
10f2d63a VZ |
9143 | |
9144 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9145 | ||
1e487827 | 9146 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9147 | # This file is a shell script that caches the results of configure |
9148 | # tests run on this system so they can be shared between configure | |
1e487827 VS |
9149 | # scripts and configure runs, see configure's option --config-cache. |
9150 | # It is not useful on other systems. If it contains results you don't | |
9151 | # want to keep, you may remove or edit it. | |
10f2d63a | 9152 | # |
1e487827 VS |
9153 | # config.status only pays attention to the cache file if you give it |
9154 | # the --recheck option to rerun configure. | |
10f2d63a | 9155 | # |
1e487827 VS |
9156 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
9157 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9158 | # following values. | |
9159 | ||
9160 | _ACEOF | |
9161 | ||
10f2d63a VZ |
9162 | # The following way of writing the cache mishandles newlines in values, |
9163 | # but we know of no workaround that is simple, portable, and efficient. | |
9164 | # So, don't put newlines in cache variables' values. | |
9165 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9166 | # and sets the high bit in the cache file unless we assign to the vars. | |
1e487827 VS |
9167 | { |
9168 | (set) 2>&1 | | |
9169 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9170 | *ac_space=\ *) | |
9171 | # `set' does not quote correctly, so add quotes (double-quote | |
9172 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9173 | sed -n \ | |
9174 | "s/'/'\\\\''/g; | |
9175 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9176 | ;; | |
9177 | *) | |
9178 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9179 | sed -n \ | |
9180 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9181 | ;; | |
9182 | esac; | |
9183 | } | | |
9184 | sed ' | |
9185 | t clear | |
9186 | : clear | |
9187 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9188 | t end | |
9189 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9190 | : end' >>confcache | |
9191 | if cmp -s $cache_file confcache; then :; else | |
10f2d63a | 9192 | if test -w $cache_file; then |
1e487827 VS |
9193 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9194 | cat confcache >$cache_file | |
10f2d63a VZ |
9195 | else |
9196 | echo "not updating unwritable cache $cache_file" | |
9197 | fi | |
9198 | fi | |
9199 | rm -f confcache | |
9200 | ||
dad6c0ea VZ |
9201 | AFMINSTALL= |
9202 | ||
10f2d63a VZ |
9203 | if test "$wxUSE_GUI" = "yes"; then |
9204 | ||
dad6c0ea VZ |
9205 | USE_GUI=1 |
9206 | ||
10f2d63a VZ |
9207 | TOOLKIT= |
9208 | TOOLKIT_INCLUDE= | |
9209 | ||
10f2d63a VZ |
9210 | GUI_TK_LIBRARY= |
9211 | GUI_TK_LINK= | |
9212 | ||
9213 | WXGTK12= | |
f6bcfd97 | 9214 | WXGTK127= |
6f72b082 | 9215 | WXGTK20= |
10f2d63a VZ |
9216 | |
9217 | WXWINE= | |
9218 | ||
10f2d63a VZ |
9219 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
9220 | if test "$cross_compiling" = "yes" ; then | |
1e487827 VS |
9221 | { echo "$as_me:9221: WARNING: skipping windows.h check for cross-compilation" >&5 |
9222 | echo "$as_me: WARNING: skipping windows.h check for cross-compilation" >&2;} | |
10f2d63a | 9223 | else |
1e487827 VS |
9224 | echo "$as_me:9224: checking for Windows headers" >&5 |
9225 | echo $ECHO_N "checking for Windows headers... $ECHO_C" >&6 | |
9226 | ||
10f2d63a VZ |
9227 | ac_find_includes= |
9228 | for ac_dir in $SEARCH_INCLUDE; | |
9229 | do | |
9230 | if test -f "$ac_dir/windows.h"; then | |
9231 | ac_find_includes=$ac_dir | |
9232 | break | |
9233 | fi | |
9234 | done | |
9235 | ||
9236 | if test "$ac_find_includes" != "" ; then | |
1e487827 VS |
9237 | echo "$as_me:9237: result: found $ac_find_includes" >&5 |
9238 | echo "${ECHO_T}found $ac_find_includes" >&6 | |
10f2d63a VZ |
9239 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" |
9240 | else | |
1e487827 VS |
9241 | echo "$as_me:9241: result: no" >&5 |
9242 | echo "${ECHO_T}no" >&6 | |
9243 | { { echo "$as_me:9243: error: please set CFLAGS to contain the location of windows.h" >&5 | |
9244 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
9245 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
9246 | fi |
9247 | fi | |
9248 | ||
9249 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
9250 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
9251 | ||
f6bcfd97 BP |
9252 | if test "$wxUSE_ODBC" = "yes" ; then |
9253 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
9254 | fi | |
9255 | ||
10f2d63a VZ |
9256 | if test "$wxUSE_MINGW" = 1; then |
9257 | LDFLAGS="$LDFLAGS -mwindows" | |
9258 | fi | |
9259 | ||
9260 | TOOLKIT=MSW | |
10f2d63a | 9261 | GUIDIST=MSW_DIST |
32832908 VZ |
9262 | |
9263 | RCINCSWITCH="--include-dir" | |
9264 | RCDEFSWITCH="--define" | |
9265 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
9266 | RCINPUTSWITCH="-i" | |
9267 | RCOUTPUTSWITCH="-o" | |
9268 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
9269 | ||
9270 | RESPROGRAM="\$(RES_PROGRAM)" | |
9271 | ||
10f2d63a VZ |
9272 | fi |
9273 | ||
9274 | if test "$wxUSE_GTK" = 1; then | |
1e487827 VS |
9275 | |
9276 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
9277 | if test "${with_gtk_prefix+set}" = set; then |
9278 | withval="$with_gtk_prefix" | |
9279 | gtk_config_prefix="$withval" | |
9280 | else | |
9281 | gtk_config_prefix="" | |
1e487827 | 9282 | fi; |
6f72b082 OK |
9283 | |
9284 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9285 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9286 | withval="$with_gtk_exec_prefix" | |
9287 | gtk_config_exec_prefix="$withval" | |
9288 | else | |
9289 | gtk_config_exec_prefix="" | |
1e487827 | 9290 | fi; |
6f72b082 OK |
9291 | # Check whether --enable-gtktest or --disable-gtktest was given. |
9292 | if test "${enable_gtktest+set}" = set; then | |
9293 | enableval="$enable_gtktest" | |
1e487827 | 9294 | |
6f72b082 OK |
9295 | else |
9296 | enable_gtktest=yes | |
1e487827 | 9297 | fi; |
6f72b082 OK |
9298 | |
9299 | for module in . gthread | |
9300 | do | |
9301 | case "$module" in | |
1e487827 | 9302 | gthread) |
6f72b082 OK |
9303 | gtk_config_args="$gtk_config_args gthread" |
9304 | ;; | |
9305 | esac | |
9306 | done | |
9307 | ||
9308 | if test x$gtk_config_exec_prefix != x ; then | |
9309 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9310 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9311 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9312 | fi | |
9313 | fi | |
9314 | if test x$gtk_config_prefix != x ; then | |
9315 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9316 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9317 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9318 | fi | |
9319 | fi | |
9320 | ||
9321 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9322 | set dummy gtk-config-2.0; ac_word=$2 | |
1e487827 VS |
9323 | echo "$as_me:9323: checking for $ac_word" >&5 |
9324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9325 | if test "${ac_cv_path_GTK_CONFIG_2_0+set}" = set; then | |
9326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6f72b082 | 9327 | else |
1e487827 VS |
9328 | case $GTK_CONFIG_2_0 in |
9329 | [\\/]* | ?:[\\/]*) | |
6f72b082 OK |
9330 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9331 | ;; | |
6f72b082 | 9332 | *) |
1e487827 VS |
9333 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
9334 | ac_dummy="$PATH" | |
9335 | for ac_dir in $ac_dummy; do | |
9336 | IFS=$ac_save_IFS | |
9337 | test -z "$ac_dir" && ac_dir=. | |
9338 | if $as_executable_p "$ac_dir/$ac_word"; then | |
9339 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9340 | echo "$as_me:9340: found $ac_dir/$ac_word" >&5 | |
9341 | break | |
9342 | fi | |
9343 | done | |
9344 | ||
6f72b082 OK |
9345 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9346 | ;; | |
9347 | esac | |
9348 | fi | |
1e487827 VS |
9349 | GTK_CONFIG_2_0=$ac_cv_path_GTK_CONFIG_2_0 |
9350 | ||
6f72b082 | 9351 | if test -n "$GTK_CONFIG_2_0"; then |
1e487827 VS |
9352 | echo "$as_me:9352: result: $GTK_CONFIG_2_0" >&5 |
9353 | echo "${ECHO_T}$GTK_CONFIG_2_0" >&6 | |
6f72b082 | 9354 | else |
1e487827 VS |
9355 | echo "$as_me:9355: result: no" >&5 |
9356 | echo "${ECHO_T}no" >&6 | |
6f72b082 OK |
9357 | fi |
9358 | ||
9359 | min_gtk_version=1.3.1 | |
1e487827 VS |
9360 | echo "$as_me:9360: checking for GTK - version >= $min_gtk_version" >&5 |
9361 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
6f72b082 OK |
9362 | no_gtk="" |
9363 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9364 | no_gtk=yes | |
9365 | else | |
9366 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9367 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9368 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9369 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9370 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9371 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9372 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9373 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9374 | if test "x$enable_gtktest" = "xyes" ; then | |
9375 | ac_save_CFLAGS="$CFLAGS" | |
9376 | ac_save_LIBS="$LIBS" | |
9377 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9378 | LIBS="$GTK_LIBS $LIBS" | |
9379 | rm -f conf.gtktest | |
9380 | if test "$cross_compiling" = yes; then | |
9381 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9382 | else | |
1e487827 VS |
9383 | cat >conftest.$ac_ext <<_ACEOF |
9384 | #line 9384 "configure" | |
6f72b082 OK |
9385 | #include "confdefs.h" |
9386 | ||
9387 | #include <gtk/gtk.h> | |
9388 | #include <stdio.h> | |
9389 | #include <stdlib.h> | |
9390 | ||
1e487827 | 9391 | int |
6f72b082 OK |
9392 | main () |
9393 | { | |
9394 | int major, minor, micro; | |
9395 | char *tmp_version; | |
9396 | ||
9397 | system ("touch conf.gtktest"); | |
9398 | ||
9399 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9400 | tmp_version = g_strdup("$min_gtk_version"); | |
9401 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9402 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9403 | exit(1); | |
9404 | } | |
9405 | ||
9406 | if ((gtk_major_version != $gtk_config_major_version) || | |
9407 | (gtk_minor_version != $gtk_config_minor_version) || | |
9408 | (gtk_micro_version != $gtk_config_micro_version)) | |
9409 | { | |
1e487827 | 9410 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9411 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9412 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9413 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9414 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9415 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9416 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9417 | printf("*** required on your system.\n"); | |
9418 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9419 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9420 | printf("*** before re-running configure\n"); | |
1e487827 | 9421 | } |
6f72b082 OK |
9422 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9423 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
9424 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
9425 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
9426 | { | |
9427 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
9428 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
9429 | printf("*** library (version %d.%d.%d)\n", | |
9430 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9431 | } | |
9432 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9433 | else | |
9434 | { | |
9435 | if ((gtk_major_version > major) || | |
9436 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9437 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9438 | { | |
9439 | return 0; | |
9440 | } | |
9441 | else | |
9442 | { | |
9443 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9444 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9445 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
9446 | major, minor, micro); | |
9447 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
9448 | printf("***\n"); | |
9449 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9450 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9451 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9452 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9453 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9454 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9455 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9456 | } | |
9457 | } | |
9458 | return 1; | |
9459 | } | |
9460 | ||
1e487827 VS |
9461 | _ACEOF |
9462 | rm -f conftest$ac_exeext | |
9463 | if { (eval echo "$as_me:9463: \"$ac_link\"") >&5 | |
9464 | (eval $ac_link) 2>&5 | |
9465 | ac_status=$? | |
9466 | echo "$as_me:9466: \$? = $ac_status" >&5 | |
9467 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9468 | { (eval echo "$as_me:9468: \"$ac_try\"") >&5 | |
9469 | (eval $ac_try) 2>&5 | |
9470 | ac_status=$? | |
9471 | echo "$as_me:9471: \$? = $ac_status" >&5 | |
9472 | (exit $ac_status); }; }; then | |
6f72b082 OK |
9473 | : |
9474 | else | |
1e487827 VS |
9475 | echo "$as_me: program exited with status $ac_status" >&5 |
9476 | echo "$as_me: failed program was:" >&5 | |
9477 | cat conftest.$ac_ext >&5 | |
9478 | no_gtk=yes | |
6f72b082 | 9479 | fi |
1e487827 | 9480 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
6f72b082 | 9481 | fi |
6f72b082 OK |
9482 | CFLAGS="$ac_save_CFLAGS" |
9483 | LIBS="$ac_save_LIBS" | |
9484 | fi | |
9485 | fi | |
9486 | if test "x$no_gtk" = x ; then | |
1e487827 VS |
9487 | echo "$as_me:9487: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
9488 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
9489 | WXGTK20=1 | |
6f72b082 | 9490 | else |
1e487827 VS |
9491 | echo "$as_me:9491: result: no" >&5 |
9492 | echo "${ECHO_T}no" >&6 | |
6f72b082 OK |
9493 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9494 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9495 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9496 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9497 | echo "*** full path to gtk-config-2.0." | |
9498 | else | |
9499 | if test -f conf.gtktest ; then | |
9500 | : | |
9501 | else | |
9502 | echo "*** Could not run GTK test program, checking why..." | |
9503 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9504 | LIBS="$LIBS $GTK_LIBS" | |
1e487827 VS |
9505 | cat >conftest.$ac_ext <<_ACEOF |
9506 | #line 9506 "configure" | |
6f72b082 OK |
9507 | #include "confdefs.h" |
9508 | ||
9509 | #include <gtk/gtk.h> | |
9510 | #include <stdio.h> | |
9511 | ||
1e487827 VS |
9512 | int |
9513 | main () | |
9514 | { | |
9515 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9516 | ; | |
9517 | return 0; | |
9518 | } | |
9519 | _ACEOF | |
9520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9521 | if { (eval echo "$as_me:9521: \"$ac_link\"") >&5 | |
9522 | (eval $ac_link) 2>&5 | |
9523 | ac_status=$? | |
9524 | echo "$as_me:9524: \$? = $ac_status" >&5 | |
9525 | (exit $ac_status); } && | |
9526 | { ac_try='test -s conftest$ac_exeext' | |
9527 | { (eval echo "$as_me:9527: \"$ac_try\"") >&5 | |
9528 | (eval $ac_try) 2>&5 | |
9529 | ac_status=$? | |
9530 | echo "$as_me:9530: \$? = $ac_status" >&5 | |
9531 | (exit $ac_status); }; }; then | |
6f72b082 OK |
9532 | echo "*** The test program compiled, but did not run. This usually means" |
9533 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9534 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9535 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9536 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9537 | echo "*** is required on your system" | |
9538 | echo "***" | |
9539 | echo "*** If you have an old version installed, it is best to remove it, although" | |
9540 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9541 | echo "***" | |
9542 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9543 | echo "*** came with the system with the command" | |
9544 | echo "***" | |
1e487827 | 9545 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9546 | else |
1e487827 VS |
9547 | echo "$as_me: failed program was:" >&5 |
9548 | cat conftest.$ac_ext >&5 | |
9549 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9550 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9551 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
1e487827 | 9552 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9553 | fi |
1e487827 | 9554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6f72b082 OK |
9555 | CFLAGS="$ac_save_CFLAGS" |
9556 | LIBS="$ac_save_LIBS" | |
9557 | fi | |
9558 | fi | |
9559 | GTK_CFLAGS="" | |
9560 | GTK_LIBS="" | |
1e487827 | 9561 | |
10f2d63a VZ |
9562 | if test x$gtk_config_exec_prefix != x ; then |
9563 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9564 | if test x${GTK_CONFIG+set} != xset ; then | |
9565 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9566 | fi | |
9567 | fi | |
9568 | if test x$gtk_config_prefix != x ; then | |
9569 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9570 | if test x${GTK_CONFIG+set} != xset ; then | |
9571 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9572 | fi | |
9573 | fi | |
9574 | ||
9575 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9576 | set dummy gtk-config; ac_word=$2 | |
1e487827 VS |
9577 | echo "$as_me:9577: checking for $ac_word" >&5 |
9578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9579 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
9580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 9581 | else |
1e487827 VS |
9582 | case $GTK_CONFIG in |
9583 | [\\/]* | ?:[\\/]*) | |
f6bcfd97 BP |
9584 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9585 | ;; | |
f6bcfd97 | 9586 | *) |
1e487827 VS |
9587 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
9588 | ac_dummy="$PATH" | |
9589 | for ac_dir in $ac_dummy; do | |
9590 | IFS=$ac_save_IFS | |
9591 | test -z "$ac_dir" && ac_dir=. | |
9592 | if $as_executable_p "$ac_dir/$ac_word"; then | |
9593 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9594 | echo "$as_me:9594: found $ac_dir/$ac_word" >&5 | |
9595 | break | |
9596 | fi | |
9597 | done | |
9598 | ||
f6bcfd97 BP |
9599 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9600 | ;; | |
9601 | esac | |
9602 | fi | |
1e487827 VS |
9603 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
9604 | ||
f6bcfd97 | 9605 | if test -n "$GTK_CONFIG"; then |
1e487827 VS |
9606 | echo "$as_me:9606: result: $GTK_CONFIG" >&5 |
9607 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
f6bcfd97 | 9608 | else |
1e487827 VS |
9609 | echo "$as_me:9609: result: no" >&5 |
9610 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 BP |
9611 | fi |
9612 | ||
9613 | min_gtk_version=1.2.7 | |
1e487827 VS |
9614 | echo "$as_me:9614: checking for GTK - version >= $min_gtk_version" >&5 |
9615 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
f6bcfd97 BP |
9616 | no_gtk="" |
9617 | if test "$GTK_CONFIG" != "no" ; then | |
9618 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9619 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9620 | ac_save_CFLAGS="$CFLAGS" | |
9621 | ac_save_LIBS="$LIBS" | |
9622 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9623 | LIBS="$LIBS $GTK_LIBS" | |
9624 | if test "$cross_compiling" = yes; then | |
9625 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9626 | else | |
1e487827 VS |
9627 | cat >conftest.$ac_ext <<_ACEOF |
9628 | #line 9628 "configure" | |
f6bcfd97 BP |
9629 | #include "confdefs.h" |
9630 | ||
9631 | #include <gtk/gtk.h> | |
9632 | #include <gtk/gtkfeatures.h> | |
9633 | #include <stdio.h> | |
9634 | #include <stdlib.h> | |
9635 | ||
9636 | int | |
9637 | main () | |
9638 | { | |
9639 | int major, minor, micro; | |
9640 | ||
9641 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9642 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9643 | exit(1); | |
9644 | } | |
9645 | ||
9646 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9647 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9648 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9649 | printf("Headers vs. library version mismatch!\n"); | |
9650 | exit(1); | |
9651 | } | |
9652 | ||
9653 | if (gtk_minor_version == 1) return FALSE; | |
9654 | ||
9655 | return !((gtk_major_version > major) || | |
9656 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9657 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9658 | } | |
9659 | ||
1e487827 VS |
9660 | _ACEOF |
9661 | rm -f conftest$ac_exeext | |
9662 | if { (eval echo "$as_me:9662: \"$ac_link\"") >&5 | |
9663 | (eval $ac_link) 2>&5 | |
9664 | ac_status=$? | |
9665 | echo "$as_me:9665: \$? = $ac_status" >&5 | |
9666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9667 | { (eval echo "$as_me:9667: \"$ac_try\"") >&5 | |
9668 | (eval $ac_try) 2>&5 | |
9669 | ac_status=$? | |
9670 | echo "$as_me:9670: \$? = $ac_status" >&5 | |
9671 | (exit $ac_status); }; }; then | |
f6bcfd97 BP |
9672 | : |
9673 | else | |
1e487827 VS |
9674 | echo "$as_me: program exited with status $ac_status" >&5 |
9675 | echo "$as_me: failed program was:" >&5 | |
9676 | cat conftest.$ac_ext >&5 | |
9677 | no_gtk=yes | |
f6bcfd97 | 9678 | fi |
1e487827 | 9679 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
f6bcfd97 | 9680 | fi |
f6bcfd97 BP |
9681 | CFLAGS="$ac_save_CFLAGS" |
9682 | LIBS="$ac_save_LIBS" | |
9683 | else | |
9684 | no_gtk=yes | |
9685 | fi | |
9686 | if test "x$no_gtk" = x ; then | |
1e487827 VS |
9687 | echo "$as_me:9687: result: yes" >&5 |
9688 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 BP |
9689 | WXGTK127=1 |
9690 | else | |
1e487827 VS |
9691 | echo "$as_me:9691: result: no" >&5 |
9692 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 BP |
9693 | GTK_CFLAGS="" |
9694 | GTK_LIBS="" | |
9695 | : | |
9696 | fi | |
f6bcfd97 | 9697 | |
f6bcfd97 BP |
9698 | if test x$gtk_config_exec_prefix != x ; then |
9699 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9700 | if test x${GTK_CONFIG+set} != xset ; then | |
9701 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9702 | fi | |
9703 | fi | |
9704 | if test x$gtk_config_prefix != x ; then | |
9705 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9706 | if test x${GTK_CONFIG+set} != xset ; then | |
9707 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9708 | fi | |
9709 | fi | |
9710 | ||
9711 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9712 | set dummy gtk-config; ac_word=$2 | |
1e487827 VS |
9713 | echo "$as_me:9713: checking for $ac_word" >&5 |
9714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9715 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
9716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 9717 | else |
1e487827 VS |
9718 | case $GTK_CONFIG in |
9719 | [\\/]* | ?:[\\/]*) | |
10f2d63a VZ |
9720 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9721 | ;; | |
10f2d63a | 9722 | *) |
1e487827 VS |
9723 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
9724 | ac_dummy="$PATH" | |
9725 | for ac_dir in $ac_dummy; do | |
9726 | IFS=$ac_save_IFS | |
9727 | test -z "$ac_dir" && ac_dir=. | |
9728 | if $as_executable_p "$ac_dir/$ac_word"; then | |
9729 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9730 | echo "$as_me:9730: found $ac_dir/$ac_word" >&5 | |
9731 | break | |
9732 | fi | |
9733 | done | |
9734 | ||
10f2d63a VZ |
9735 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9736 | ;; | |
9737 | esac | |
9738 | fi | |
1e487827 VS |
9739 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
9740 | ||
10f2d63a | 9741 | if test -n "$GTK_CONFIG"; then |
1e487827 VS |
9742 | echo "$as_me:9742: result: $GTK_CONFIG" >&5 |
9743 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
10f2d63a | 9744 | else |
1e487827 VS |
9745 | echo "$as_me:9745: result: no" >&5 |
9746 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
9747 | fi |
9748 | ||
04165bec | 9749 | min_gtk_version=1.2.3 |
1e487827 VS |
9750 | echo "$as_me:9750: checking for GTK - version >= $min_gtk_version" >&5 |
9751 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
10f2d63a VZ |
9752 | no_gtk="" |
9753 | if test "$GTK_CONFIG" != "no" ; then | |
9754 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9755 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9756 | ac_save_CFLAGS="$CFLAGS" |
9757 | ac_save_LIBS="$LIBS" | |
9758 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9759 | LIBS="$LIBS $GTK_LIBS" | |
9760 | if test "$cross_compiling" = yes; then | |
9761 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9762 | else | |
1e487827 VS |
9763 | cat >conftest.$ac_ext <<_ACEOF |
9764 | #line 9764 "configure" | |
10f2d63a VZ |
9765 | #include "confdefs.h" |
9766 | ||
9767 | #include <gtk/gtk.h> | |
f49f2b0c | 9768 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9769 | #include <stdio.h> |
32832908 | 9770 | #include <stdlib.h> |
10f2d63a VZ |
9771 | |
9772 | int | |
9773 | main () | |
9774 | { | |
9775 | int major, minor, micro; | |
9776 | ||
9777 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9778 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9779 | exit(1); | |
9780 | } | |
9781 | ||
f49f2b0c RR |
9782 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9783 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9784 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9785 | printf("Headers vs. library version mismatch!\n"); | |
9786 | exit(1); | |
9787 | } | |
9788 | ||
10f2d63a VZ |
9789 | if (gtk_minor_version == 1) return FALSE; |
9790 | ||
9791 | return !((gtk_major_version > major) || | |
9792 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9793 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9794 | } | |
9795 | ||
1e487827 VS |
9796 | _ACEOF |
9797 | rm -f conftest$ac_exeext | |
9798 | if { (eval echo "$as_me:9798: \"$ac_link\"") >&5 | |
9799 | (eval $ac_link) 2>&5 | |
9800 | ac_status=$? | |
9801 | echo "$as_me:9801: \$? = $ac_status" >&5 | |
9802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9803 | { (eval echo "$as_me:9803: \"$ac_try\"") >&5 | |
9804 | (eval $ac_try) 2>&5 | |
9805 | ac_status=$? | |
9806 | echo "$as_me:9806: \$? = $ac_status" >&5 | |
9807 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
9808 | : |
9809 | else | |
1e487827 VS |
9810 | echo "$as_me: program exited with status $ac_status" >&5 |
9811 | echo "$as_me: failed program was:" >&5 | |
9812 | cat conftest.$ac_ext >&5 | |
9813 | no_gtk=yes | |
10f2d63a | 9814 | fi |
1e487827 | 9815 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
10f2d63a | 9816 | fi |
10f2d63a VZ |
9817 | CFLAGS="$ac_save_CFLAGS" |
9818 | LIBS="$ac_save_LIBS" | |
9819 | else | |
9820 | no_gtk=yes | |
9821 | fi | |
9822 | if test "x$no_gtk" = x ; then | |
1e487827 VS |
9823 | echo "$as_me:9823: result: yes" >&5 |
9824 | echo "${ECHO_T}yes" >&6 | |
10f2d63a VZ |
9825 | WXGTK12=1 |
9826 | else | |
1e487827 VS |
9827 | echo "$as_me:9827: result: no" >&5 |
9828 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
9829 | GTK_CFLAGS="" |
9830 | GTK_LIBS="" | |
7e99ad86 | 9831 | : |
10f2d63a | 9832 | fi |
10f2d63a | 9833 | |
6f72b082 | 9834 | fi |
10f2d63a | 9835 | |
1e487827 | 9836 | rm -f conf.gtktest |
703e0a69 | 9837 | |
6f72b082 | 9838 | if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then |
1e487827 VS |
9839 | { { echo "$as_me:9839: error: |
9840 | Please check that gtk-config is in path, the directory | |
9841 | where GTK+ libraries are installed (returned by | |
9842 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9843 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9844 | " >&5 | |
9845 | echo "$as_me: error: | |
7e99ad86 VZ |
9846 | Please check that gtk-config is in path, the directory |
9847 | where GTK+ libraries are installed (returned by | |
9848 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9849 | equivalent variable and GTK+ is version 1.2.3 or above. | |
1e487827 VS |
9850 | " >&2;} |
9851 | { (exit 1); exit 1; }; } | |
7e99ad86 VZ |
9852 | fi |
9853 | ||
10f2d63a | 9854 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a | 9855 | |
2224580a VZ |
9856 | GUI_TK_LIBRARY="$GTK_LIBS" |
9857 | ||
dad6c0ea | 9858 | AFMINSTALL=afminstall |
9ad43c8b | 9859 | TOOLKIT=GTK |
10f2d63a | 9860 | GUIDIST=GTK_DIST |
7ec2881a | 9861 | |
1e487827 VS |
9862 | echo "$as_me:9862: checking for gdk_im_open in -lgdk" >&5 |
9863 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
9864 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
9865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ec2881a | 9866 | else |
1e487827 | 9867 | ac_check_lib_save_LIBS=$LIBS |
7ec2881a | 9868 | LIBS="-lgdk $LIBS" |
1e487827 VS |
9869 | cat >conftest.$ac_ext <<_ACEOF |
9870 | #line 9870 "configure" | |
7ec2881a | 9871 | #include "confdefs.h" |
1e487827 | 9872 | |
7ec2881a | 9873 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
9874 | #ifdef __cplusplus |
9875 | extern "C" | |
9876 | #endif | |
7ec2881a | 9877 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
9878 | builtin and then its argument prototype would still apply. */ |
9879 | char gdk_im_open (); | |
9880 | int | |
9881 | main () | |
9882 | { | |
9883 | gdk_im_open (); | |
9884 | ; | |
9885 | return 0; | |
9886 | } | |
9887 | _ACEOF | |
9888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9889 | if { (eval echo "$as_me:9889: \"$ac_link\"") >&5 | |
9890 | (eval $ac_link) 2>&5 | |
9891 | ac_status=$? | |
9892 | echo "$as_me:9892: \$? = $ac_status" >&5 | |
9893 | (exit $ac_status); } && | |
9894 | { ac_try='test -s conftest$ac_exeext' | |
9895 | { (eval echo "$as_me:9895: \"$ac_try\"") >&5 | |
9896 | (eval $ac_try) 2>&5 | |
9897 | ac_status=$? | |
9898 | echo "$as_me:9898: \$? = $ac_status" >&5 | |
9899 | (exit $ac_status); }; }; then | |
9900 | ac_cv_lib_gdk_gdk_im_open=yes | |
9901 | else | |
9902 | echo "$as_me: failed program was:" >&5 | |
9903 | cat conftest.$ac_ext >&5 | |
9904 | ac_cv_lib_gdk_gdk_im_open=no | |
9905 | fi | |
9906 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9907 | LIBS=$ac_check_lib_save_LIBS | |
9908 | fi | |
9909 | echo "$as_me:9909: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
9910 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
9911 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
9912 | cat >>confdefs.h <<\EOF | |
7ec2881a RR |
9913 | #define HAVE_XIM 1 |
9914 | EOF | |
9915 | ||
7ec2881a RR |
9916 | fi |
9917 | ||
10f2d63a VZ |
9918 | fi |
9919 | ||
9920 | if test "$wxUSE_WINE" = 1; then | |
1e487827 VS |
9921 | echo "$as_me:9921: checking for WINE includes" >&5 |
9922 | echo $ECHO_N "checking for WINE includes... $ECHO_C" >&6 | |
9923 | ||
10f2d63a VZ |
9924 | ac_find_includes= |
9925 | for ac_dir in $SEARCH_INCLUDE; | |
9926 | do | |
9927 | if test -f "$ac_dir/windows.h"; then | |
9928 | ac_find_includes=$ac_dir | |
9929 | break | |
9930 | fi | |
9931 | done | |
9932 | ||
9933 | if test "$ac_find_includes" != "" ; then | |
1e487827 VS |
9934 | echo "$as_me:9934: result: found $ac_find_includes" >&5 |
9935 | echo "${ECHO_T}found $ac_find_includes" >&6 | |
10f2d63a VZ |
9936 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" |
9937 | else | |
1e487827 VS |
9938 | echo "$as_me:9938: result: no" >&5 |
9939 | echo "${ECHO_T}no" >&6 | |
9940 | { { echo "$as_me:9940: error: please set CFLAGS to contain the location of windows.h" >&5 | |
9941 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
9942 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
9943 | fi |
9944 | ||
9945 | XPM_LINK="" | |
1e487827 VS |
9946 | echo "$as_me:9946: checking for Xpm library" >&5 |
9947 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
9948 | ||
10f2d63a VZ |
9949 | ac_find_libraries= |
9950 | for ac_dir in $SEARCH_LIB; | |
9951 | do | |
9952 | for ac_extension in a so sl; do | |
9953 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9954 | ac_find_libraries=$ac_dir | |
9955 | break 2 | |
9956 | fi | |
9957 | done | |
9958 | done | |
9959 | ||
9960 | if test "$ac_find_libraries" != "" ; then | |
9961 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9962 | XPM_LINK="-lXpm" | |
1e487827 | 9963 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
9964 | #define wxHAVE_LIB_XPM 1 |
9965 | EOF | |
9966 | ||
1e487827 VS |
9967 | echo "$as_me:9967: result: found at $ac_find_libraries" >&5 |
9968 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
10f2d63a | 9969 | else |
1e487827 VS |
9970 | echo "$as_me:9970: result: no" >&5 |
9971 | echo "${ECHO_T}no" >&6 | |
9972 | { echo "$as_me:9972: WARNING: library will be compiled without support for images in XPM format" >&5 | |
9973 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
10f2d63a VZ |
9974 | fi |
9975 | ||
9976 | MESA_LINK="" | |
1e487827 VS |
9977 | echo "$as_me:9977: checking for Mesa library" >&5 |
9978 | echo $ECHO_N "checking for Mesa library... $ECHO_C" >&6 | |
9979 | ||
10f2d63a VZ |
9980 | ac_find_libraries= |
9981 | for ac_dir in $SEARCH_LIB; | |
9982 | do | |
9983 | for ac_extension in a so sl; do | |
9984 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9985 | ac_find_libraries=$ac_dir | |
9986 | break 2 | |
9987 | fi | |
9988 | done | |
9989 | done | |
9990 | ||
9991 | if test "$ac_find_libraries" != "" ; then | |
9992 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9993 | MESA_LINK="-lMesaGL" | |
1e487827 VS |
9994 | echo "$as_me:9994: result: found at $ac_find_libraries" >&5 |
9995 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
10f2d63a | 9996 | else |
1e487827 VS |
9997 | { { echo "$as_me:9997: error: no" >&5 |
9998 | echo "$as_me: error: no" >&2;} | |
9999 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
10000 | fi |
10001 | ||
8916026b | 10002 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
10f2d63a VZ |
10003 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
10004 | WXWINE=1 | |
10005 | TOOLKIT=MSW | |
10f2d63a VZ |
10006 | GUIDIST=MSW_DIST |
10007 | fi | |
10008 | ||
1e487827 VS |
10009 | echo "$as_me:10009: checking for X" >&5 |
10010 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
ab9b9eab VZ |
10011 | |
10012 | # Check whether --with-x or --without-x was given. | |
10013 | if test "${with_x+set}" = set; then | |
10014 | withval="$with_x" | |
ba337fe7 | 10015 | |
1e487827 | 10016 | fi; |
ab9b9eab VZ |
10017 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
10018 | if test "x$with_x" = xno; then | |
10019 | # The user explicitly disabled X. | |
10020 | have_x=disabled | |
10021 | else | |
10022 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
10023 | # Both variables are already set. | |
10024 | have_x=yes | |
10025 | else | |
1e487827 VS |
10026 | if test "${ac_cv_have_x+set}" = set; then |
10027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab VZ |
10028 | else |
10029 | # One or both of the vars are not set, and there is no cached value. | |
1e487827 VS |
10030 | ac_x_includes=no ac_x_libraries=no |
10031 | rm -fr conftest.dir | |
10032 | if mkdir conftest.dir; then | |
10033 | cd conftest.dir | |
ab9b9eab | 10034 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
1e487827 | 10035 | cat >Imakefile <<'EOF' |
ab9b9eab VZ |
10036 | acfindx: |
10037 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
10038 | EOF | |
10039 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
10040 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
10041 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
10042 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 10043 | for ac_extension in a so sl; do |
ab9b9eab | 10044 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
1e487827 | 10045 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 10046 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
10047 | fi |
10048 | done | |
ab9b9eab VZ |
10049 | # Screen out bogus values from the imake configuration. They are |
10050 | # bogus both because they are the default anyway, and because | |
10051 | # using them would break gcc on systems where it needs fixed includes. | |
1e487827 | 10052 | case $ac_im_incroot in |
ab9b9eab | 10053 | /usr/include) ;; |
1e487827 | 10054 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
ab9b9eab | 10055 | esac |
1e487827 | 10056 | case $ac_im_usrlibdir in |
ab9b9eab | 10057 | /usr/lib | /lib) ;; |
1e487827 | 10058 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
ab9b9eab | 10059 | esac |
ba337fe7 | 10060 | fi |
ab9b9eab | 10061 | cd .. |
1e487827 | 10062 | rm -fr conftest.dir |
ab9b9eab | 10063 | fi |
10f2d63a | 10064 | |
1e487827 VS |
10065 | # Standard set of common directories for X headers. |
10066 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10067 | ac_x_header_dirs=' | |
10068 | /usr/X11/include | |
10069 | /usr/X11R6/include | |
10070 | /usr/X11R5/include | |
10071 | /usr/X11R4/include | |
10072 | ||
10073 | /usr/include/X11 | |
10074 | /usr/include/X11R6 | |
10075 | /usr/include/X11R5 | |
10076 | /usr/include/X11R4 | |
10077 | ||
10078 | /usr/local/X11/include | |
10079 | /usr/local/X11R6/include | |
10080 | /usr/local/X11R5/include | |
10081 | /usr/local/X11R4/include | |
10082 | ||
10083 | /usr/local/include/X11 | |
10084 | /usr/local/include/X11R6 | |
10085 | /usr/local/include/X11R5 | |
10086 | /usr/local/include/X11R4 | |
10087 | ||
10088 | /usr/X386/include | |
10089 | /usr/x386/include | |
10090 | /usr/XFree86/include/X11 | |
10091 | ||
10092 | /usr/include | |
10093 | /usr/local/include | |
10094 | /usr/unsupported/include | |
10095 | /usr/athena/include | |
10096 | /usr/local/x11r5/include | |
10097 | /usr/lpp/Xamples/include | |
10098 | ||
10099 | /usr/openwin/include | |
10100 | /usr/openwin/share/include' | |
10101 | ||
10102 | if test "$ac_x_includes" = no; then | |
10103 | # Guess where to find include files, by looking for Intrinsic.h. | |
ab9b9eab | 10104 | # First, try using that file with no special directory specified. |
1e487827 VS |
10105 | cat >conftest.$ac_ext <<_ACEOF |
10106 | #line 10106 "configure" | |
ab9b9eab | 10107 | #include "confdefs.h" |
1e487827 VS |
10108 | #include <X11/Intrinsic.h> |
10109 | _ACEOF | |
10110 | if { (eval echo "$as_me:10110: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10112 | ac_status=$? | |
10113 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10114 | rm -f conftest.er1 | |
10115 | cat conftest.err >&5 | |
10116 | echo "$as_me:10116: \$? = $ac_status" >&5 | |
10117 | (exit $ac_status); } >/dev/null; then | |
10118 | if test -s conftest.err; then | |
10119 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10120 | else | |
10121 | ac_cpp_err= | |
10122 | fi | |
10123 | else | |
10124 | ac_cpp_err=yes | |
10125 | fi | |
10126 | if test -z "$ac_cpp_err"; then | |
ab9b9eab VZ |
10127 | # We can compile using X headers with no special include directory. |
10128 | ac_x_includes= | |
10129 | else | |
1e487827 | 10130 | echo "$as_me: failed program was:" >&5 |
ab9b9eab | 10131 | cat conftest.$ac_ext >&5 |
1e487827 VS |
10132 | for ac_dir in $ac_x_header_dirs; do |
10133 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
10134 | ac_x_includes=$ac_dir | |
10135 | break | |
10136 | fi | |
10137 | done | |
ab9b9eab | 10138 | fi |
1e487827 VS |
10139 | rm -f conftest.err conftest.$ac_ext |
10140 | fi # $ac_x_includes = no | |
10f2d63a | 10141 | |
1e487827 | 10142 | if test "$ac_x_libraries" = no; then |
ab9b9eab | 10143 | # Check for the libraries. |
ab9b9eab VZ |
10144 | # See if we find them without any special options. |
10145 | # Don't add to $LIBS permanently. | |
1e487827 VS |
10146 | ac_save_LIBS=$LIBS |
10147 | LIBS="-lXt $LIBS" | |
10148 | cat >conftest.$ac_ext <<_ACEOF | |
10149 | #line 10149 "configure" | |
ab9b9eab | 10150 | #include "confdefs.h" |
1e487827 VS |
10151 | #include <X11/Intrinsic.h> |
10152 | int | |
10153 | main () | |
10154 | { | |
10155 | XtMalloc (0) | |
10156 | ; | |
10157 | return 0; | |
10158 | } | |
10159 | _ACEOF | |
10160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10161 | if { (eval echo "$as_me:10161: \"$ac_link\"") >&5 | |
10162 | (eval $ac_link) 2>&5 | |
10163 | ac_status=$? | |
10164 | echo "$as_me:10164: \$? = $ac_status" >&5 | |
10165 | (exit $ac_status); } && | |
10166 | { ac_try='test -s conftest$ac_exeext' | |
10167 | { (eval echo "$as_me:10167: \"$ac_try\"") >&5 | |
10168 | (eval $ac_try) 2>&5 | |
10169 | ac_status=$? | |
10170 | echo "$as_me:10170: \$? = $ac_status" >&5 | |
10171 | (exit $ac_status); }; }; then | |
10172 | LIBS=$ac_save_LIBS | |
ab9b9eab VZ |
10173 | # We can link X programs with no special library path. |
10174 | ac_x_libraries= | |
10175 | else | |
1e487827 VS |
10176 | echo "$as_me: failed program was:" >&5 |
10177 | cat conftest.$ac_ext >&5 | |
10178 | LIBS=$ac_save_LIBS | |
10179 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
ab9b9eab | 10180 | do |
1e487827 | 10181 | # Don't even attempt the hair of trying to link an X program! |
ab9b9eab | 10182 | for ac_extension in a so sl; do |
1e487827 | 10183 | if test -r $ac_dir/libXt.$ac_extension; then |
ab9b9eab VZ |
10184 | ac_x_libraries=$ac_dir |
10185 | break 2 | |
10f2d63a | 10186 | fi |
10f2d63a | 10187 | done |
ab9b9eab VZ |
10188 | done |
10189 | fi | |
1e487827 VS |
10190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
10191 | fi # $ac_x_libraries = no | |
10f2d63a | 10192 | |
1e487827 | 10193 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
ab9b9eab VZ |
10194 | # Didn't find X anywhere. Cache the known absence of X. |
10195 | ac_cv_have_x="have_x=no" | |
10196 | else | |
10197 | # Record where we found X for the cache. | |
10198 | ac_cv_have_x="have_x=yes \ | |
10199 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10200 | fi | |
10201 | fi | |
1e487827 | 10202 | |
10f2d63a | 10203 | fi |
ab9b9eab VZ |
10204 | eval "$ac_cv_have_x" |
10205 | fi # $with_x != no | |
10f2d63a | 10206 | |
ab9b9eab | 10207 | if test "$have_x" != yes; then |
1e487827 VS |
10208 | echo "$as_me:10208: result: $have_x" >&5 |
10209 | echo "${ECHO_T}$have_x" >&6 | |
ab9b9eab VZ |
10210 | no_x=yes |
10211 | else | |
10212 | # If each of the values was on the command line, it overrides each guess. | |
10213 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10214 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10215 | # Update the cache value to reflect the command line values. | |
10216 | ac_cv_have_x="have_x=yes \ | |
10217 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
1e487827 VS |
10218 | echo "$as_me:10218: result: libraries $x_libraries, headers $x_includes" >&5 |
10219 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
ab9b9eab | 10220 | fi |
10f2d63a | 10221 | |
ab9b9eab VZ |
10222 | if test "$no_x" = yes; then |
10223 | # Not all programs may use this symbol, but it does not hurt to define it. | |
1e487827 VS |
10224 | |
10225 | cat >>confdefs.h <<\EOF | |
ab9b9eab VZ |
10226 | #define X_DISPLAY_MISSING 1 |
10227 | EOF | |
10f2d63a | 10228 | |
ab9b9eab VZ |
10229 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10230 | else | |
10231 | if test -n "$x_includes"; then | |
10232 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10233 | fi |
10234 | ||
ab9b9eab VZ |
10235 | # It would also be nice to do this for all -L options, not just this one. |
10236 | if test -n "$x_libraries"; then | |
10237 | X_LIBS="$X_LIBS -L$x_libraries" | |
10238 | # For Solaris; some versions of Sun CC require a space after -R and | |
10239 | # others require no space. Words are not sufficient . . . . | |
1e487827 | 10240 | case `(uname -sr) 2>/dev/null` in |
ab9b9eab | 10241 | "SunOS 5"*) |
1e487827 VS |
10242 | echo "$as_me:10242: checking whether -R must be followed by a space" >&5 |
10243 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
10244 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
10245 | cat >conftest.$ac_ext <<_ACEOF | |
10246 | #line 10246 "configure" | |
ab9b9eab | 10247 | #include "confdefs.h" |
10f2d63a | 10248 | |
1e487827 VS |
10249 | int |
10250 | main () | |
10251 | { | |
788deba1 | 10252 | |
1e487827 VS |
10253 | ; |
10254 | return 0; | |
10255 | } | |
10256 | _ACEOF | |
10257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10258 | if { (eval echo "$as_me:10258: \"$ac_link\"") >&5 | |
10259 | (eval $ac_link) 2>&5 | |
10260 | ac_status=$? | |
10261 | echo "$as_me:10261: \$? = $ac_status" >&5 | |
10262 | (exit $ac_status); } && | |
10263 | { ac_try='test -s conftest$ac_exeext' | |
10264 | { (eval echo "$as_me:10264: \"$ac_try\"") >&5 | |
10265 | (eval $ac_try) 2>&5 | |
10266 | ac_status=$? | |
10267 | echo "$as_me:10267: \$? = $ac_status" >&5 | |
10268 | (exit $ac_status); }; }; then | |
ab9b9eab VZ |
10269 | ac_R_nospace=yes |
10270 | else | |
1e487827 VS |
10271 | echo "$as_me: failed program was:" >&5 |
10272 | cat conftest.$ac_ext >&5 | |
10273 | ac_R_nospace=no | |
ab9b9eab | 10274 | fi |
1e487827 | 10275 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ab9b9eab | 10276 | if test $ac_R_nospace = yes; then |
1e487827 VS |
10277 | echo "$as_me:10277: result: no" >&5 |
10278 | echo "${ECHO_T}no" >&6 | |
ab9b9eab VZ |
10279 | X_LIBS="$X_LIBS -R$x_libraries" |
10280 | else | |
10281 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
1e487827 VS |
10282 | cat >conftest.$ac_ext <<_ACEOF |
10283 | #line 10283 "configure" | |
ab9b9eab | 10284 | #include "confdefs.h" |
788deba1 | 10285 | |
1e487827 VS |
10286 | int |
10287 | main () | |
10288 | { | |
ab9b9eab | 10289 | |
1e487827 VS |
10290 | ; |
10291 | return 0; | |
10292 | } | |
10293 | _ACEOF | |
10294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10295 | if { (eval echo "$as_me:10295: \"$ac_link\"") >&5 | |
10296 | (eval $ac_link) 2>&5 | |
10297 | ac_status=$? | |
10298 | echo "$as_me:10298: \$? = $ac_status" >&5 | |
10299 | (exit $ac_status); } && | |
10300 | { ac_try='test -s conftest$ac_exeext' | |
10301 | { (eval echo "$as_me:10301: \"$ac_try\"") >&5 | |
10302 | (eval $ac_try) 2>&5 | |
10303 | ac_status=$? | |
10304 | echo "$as_me:10304: \$? = $ac_status" >&5 | |
10305 | (exit $ac_status); }; }; then | |
ab9b9eab VZ |
10306 | ac_R_space=yes |
10307 | else | |
1e487827 VS |
10308 | echo "$as_me: failed program was:" >&5 |
10309 | cat conftest.$ac_ext >&5 | |
10310 | ac_R_space=no | |
ab9b9eab | 10311 | fi |
1e487827 | 10312 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ab9b9eab | 10313 | if test $ac_R_space = yes; then |
1e487827 VS |
10314 | echo "$as_me:10314: result: yes" >&5 |
10315 | echo "${ECHO_T}yes" >&6 | |
ab9b9eab VZ |
10316 | X_LIBS="$X_LIBS -R $x_libraries" |
10317 | else | |
1e487827 VS |
10318 | echo "$as_me:10318: result: neither works" >&5 |
10319 | echo "${ECHO_T}neither works" >&6 | |
ab9b9eab VZ |
10320 | fi |
10321 | fi | |
1e487827 | 10322 | LIBS=$ac_xsave_LIBS |
ab9b9eab VZ |
10323 | esac |
10324 | fi | |
10325 | ||
10326 | # Check for system-dependent libraries X programs must link with. | |
10327 | # Do this before checking for the system-independent R6 libraries | |
10328 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10329 | ||
10330 | if test "$ISC" = yes; then | |
10331 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10332 | else | |
1e487827 VS |
10333 | # Martyn Johnson says this is needed for Ultrix, if the X |
10334 | # libraries were built with DECnet support. And Karl Berry says | |
ab9b9eab | 10335 | # the Alpha needs dnet_stub (dnet does not exist). |
1e487827 VS |
10336 | echo "$as_me:10336: checking for dnet_ntoa in -ldnet" >&5 |
10337 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
10338 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
10339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab | 10340 | else |
1e487827 | 10341 | ac_check_lib_save_LIBS=$LIBS |
ab9b9eab | 10342 | LIBS="-ldnet $LIBS" |
1e487827 VS |
10343 | cat >conftest.$ac_ext <<_ACEOF |
10344 | #line 10344 "configure" | |
ab9b9eab | 10345 | #include "confdefs.h" |
1e487827 | 10346 | |
ab9b9eab | 10347 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
10348 | #ifdef __cplusplus |
10349 | extern "C" | |
10350 | #endif | |
ab9b9eab | 10351 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10352 | builtin and then its argument prototype would still apply. */ |
10353 | char dnet_ntoa (); | |
10354 | int | |
10355 | main () | |
10356 | { | |
10357 | dnet_ntoa (); | |
10358 | ; | |
10359 | return 0; | |
10360 | } | |
10361 | _ACEOF | |
10362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10363 | if { (eval echo "$as_me:10363: \"$ac_link\"") >&5 | |
10364 | (eval $ac_link) 2>&5 | |
10365 | ac_status=$? | |
10366 | echo "$as_me:10366: \$? = $ac_status" >&5 | |
10367 | (exit $ac_status); } && | |
10368 | { ac_try='test -s conftest$ac_exeext' | |
10369 | { (eval echo "$as_me:10369: \"$ac_try\"") >&5 | |
10370 | (eval $ac_try) 2>&5 | |
10371 | ac_status=$? | |
10372 | echo "$as_me:10372: \$? = $ac_status" >&5 | |
10373 | (exit $ac_status); }; }; then | |
10374 | ac_cv_lib_dnet_dnet_ntoa=yes | |
10375 | else | |
10376 | echo "$as_me: failed program was:" >&5 | |
10377 | cat conftest.$ac_ext >&5 | |
10378 | ac_cv_lib_dnet_dnet_ntoa=no | |
10379 | fi | |
10380 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10381 | LIBS=$ac_check_lib_save_LIBS | |
10382 | fi | |
10383 | echo "$as_me:10383: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
10384 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
10385 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
ab9b9eab | 10386 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
ab9b9eab VZ |
10387 | fi |
10388 | ||
10389 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
1e487827 VS |
10390 | echo "$as_me:10390: checking for dnet_ntoa in -ldnet_stub" >&5 |
10391 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
10392 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
10393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab | 10394 | else |
1e487827 | 10395 | ac_check_lib_save_LIBS=$LIBS |
ab9b9eab | 10396 | LIBS="-ldnet_stub $LIBS" |
1e487827 VS |
10397 | cat >conftest.$ac_ext <<_ACEOF |
10398 | #line 10398 "configure" | |
ab9b9eab | 10399 | #include "confdefs.h" |
1e487827 | 10400 | |
ab9b9eab | 10401 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
10402 | #ifdef __cplusplus |
10403 | extern "C" | |
10404 | #endif | |
ab9b9eab | 10405 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10406 | builtin and then its argument prototype would still apply. */ |
10407 | char dnet_ntoa (); | |
10408 | int | |
10409 | main () | |
10410 | { | |
10411 | dnet_ntoa (); | |
10412 | ; | |
10413 | return 0; | |
10414 | } | |
10415 | _ACEOF | |
10416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10417 | if { (eval echo "$as_me:10417: \"$ac_link\"") >&5 | |
10418 | (eval $ac_link) 2>&5 | |
10419 | ac_status=$? | |
10420 | echo "$as_me:10420: \$? = $ac_status" >&5 | |
10421 | (exit $ac_status); } && | |
10422 | { ac_try='test -s conftest$ac_exeext' | |
10423 | { (eval echo "$as_me:10423: \"$ac_try\"") >&5 | |
10424 | (eval $ac_try) 2>&5 | |
10425 | ac_status=$? | |
10426 | echo "$as_me:10426: \$? = $ac_status" >&5 | |
10427 | (exit $ac_status); }; }; then | |
10428 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
10429 | else | |
10430 | echo "$as_me: failed program was:" >&5 | |
10431 | cat conftest.$ac_ext >&5 | |
10432 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
10433 | fi | |
10434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10435 | LIBS=$ac_check_lib_save_LIBS | |
10436 | fi | |
10437 | echo "$as_me:10437: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
10438 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
10439 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
ab9b9eab | 10440 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
ab9b9eab VZ |
10441 | fi |
10442 | ||
10443 | fi | |
10444 | ||
10445 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10446 | # to get the SysV transport functions. | |
1e487827 | 10447 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10448 | # needs -lnsl. |
10449 | # The nsl library prevents programs from opening the X display | |
1e487827 VS |
10450 | # on Irix 5.2, according to T.E. Dickey. |
10451 | # The functions gethostbyname, getservbyname, and inet_addr are | |
10452 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
10453 | echo "$as_me:10453: checking for gethostbyname" >&5 | |
10454 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
10455 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
10456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10457 | else | |
10458 | cat >conftest.$ac_ext <<_ACEOF | |
10459 | #line 10459 "configure" | |
ab9b9eab VZ |
10460 | #include "confdefs.h" |
10461 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 10462 | which can conflict with char gethostbyname (); below. */ |
ab9b9eab VZ |
10463 | #include <assert.h> |
10464 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
10465 | #ifdef __cplusplus |
10466 | extern "C" | |
10467 | #endif | |
ab9b9eab | 10468 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10469 | builtin and then its argument prototype would still apply. */ |
10470 | char gethostbyname (); | |
10471 | char (*f) (); | |
ab9b9eab | 10472 | |
1e487827 VS |
10473 | int |
10474 | main () | |
10475 | { | |
ab9b9eab VZ |
10476 | /* The GNU C library defines this for functions which it implements |
10477 | to always fail with ENOSYS. Some functions are actually named | |
10478 | something starting with __ and the normal name is an alias. */ | |
10479 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10480 | choke me | |
10481 | #else | |
1e487827 | 10482 | f = gethostbyname; |
ab9b9eab VZ |
10483 | #endif |
10484 | ||
1e487827 VS |
10485 | ; |
10486 | return 0; | |
10487 | } | |
10488 | _ACEOF | |
10489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10490 | if { (eval echo "$as_me:10490: \"$ac_link\"") >&5 | |
10491 | (eval $ac_link) 2>&5 | |
10492 | ac_status=$? | |
10493 | echo "$as_me:10493: \$? = $ac_status" >&5 | |
10494 | (exit $ac_status); } && | |
10495 | { ac_try='test -s conftest$ac_exeext' | |
10496 | { (eval echo "$as_me:10496: \"$ac_try\"") >&5 | |
10497 | (eval $ac_try) 2>&5 | |
10498 | ac_status=$? | |
10499 | echo "$as_me:10499: \$? = $ac_status" >&5 | |
10500 | (exit $ac_status); }; }; then | |
10501 | ac_cv_func_gethostbyname=yes | |
10502 | else | |
10503 | echo "$as_me: failed program was:" >&5 | |
10504 | cat conftest.$ac_ext >&5 | |
10505 | ac_cv_func_gethostbyname=no | |
10506 | fi | |
10507 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10508 | fi | |
10509 | echo "$as_me:10509: result: $ac_cv_func_gethostbyname" >&5 | |
10510 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
ab9b9eab VZ |
10511 | |
10512 | if test $ac_cv_func_gethostbyname = no; then | |
1e487827 VS |
10513 | echo "$as_me:10513: checking for gethostbyname in -lnsl" >&5 |
10514 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
10515 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
10516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab | 10517 | else |
1e487827 | 10518 | ac_check_lib_save_LIBS=$LIBS |
ab9b9eab | 10519 | LIBS="-lnsl $LIBS" |
1e487827 VS |
10520 | cat >conftest.$ac_ext <<_ACEOF |
10521 | #line 10521 "configure" | |
ab9b9eab | 10522 | #include "confdefs.h" |
1e487827 | 10523 | |
ab9b9eab | 10524 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
10525 | #ifdef __cplusplus |
10526 | extern "C" | |
10527 | #endif | |
ab9b9eab | 10528 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10529 | builtin and then its argument prototype would still apply. */ |
10530 | char gethostbyname (); | |
10531 | int | |
10532 | main () | |
10533 | { | |
10534 | gethostbyname (); | |
10535 | ; | |
10536 | return 0; | |
10537 | } | |
10538 | _ACEOF | |
10539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10540 | if { (eval echo "$as_me:10540: \"$ac_link\"") >&5 | |
10541 | (eval $ac_link) 2>&5 | |
10542 | ac_status=$? | |
10543 | echo "$as_me:10543: \$? = $ac_status" >&5 | |
10544 | (exit $ac_status); } && | |
10545 | { ac_try='test -s conftest$ac_exeext' | |
10546 | { (eval echo "$as_me:10546: \"$ac_try\"") >&5 | |
10547 | (eval $ac_try) 2>&5 | |
10548 | ac_status=$? | |
10549 | echo "$as_me:10549: \$? = $ac_status" >&5 | |
10550 | (exit $ac_status); }; }; then | |
10551 | ac_cv_lib_nsl_gethostbyname=yes | |
10552 | else | |
10553 | echo "$as_me: failed program was:" >&5 | |
10554 | cat conftest.$ac_ext >&5 | |
10555 | ac_cv_lib_nsl_gethostbyname=no | |
10556 | fi | |
10557 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10558 | LIBS=$ac_check_lib_save_LIBS | |
10559 | fi | |
10560 | echo "$as_me:10560: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
10561 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
10562 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
10563 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
703e0a69 | 10564 | fi |
6232543b | 10565 | |
1e487827 VS |
10566 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
10567 | echo "$as_me:10567: checking for gethostbyname in -lbsd" >&5 | |
10568 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
10569 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
10570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 10571 | else |
1e487827 VS |
10572 | ac_check_lib_save_LIBS=$LIBS |
10573 | LIBS="-lbsd $LIBS" | |
10574 | cat >conftest.$ac_ext <<_ACEOF | |
10575 | #line 10575 "configure" | |
10576 | #include "confdefs.h" | |
10577 | ||
10578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10579 | #ifdef __cplusplus | |
10580 | extern "C" | |
10581 | #endif | |
10582 | /* We use char because int might match the return type of a gcc2 | |
10583 | builtin and then its argument prototype would still apply. */ | |
10584 | char gethostbyname (); | |
10585 | int | |
10586 | main () | |
10587 | { | |
10588 | gethostbyname (); | |
10589 | ; | |
10590 | return 0; | |
10591 | } | |
10592 | _ACEOF | |
10593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10594 | if { (eval echo "$as_me:10594: \"$ac_link\"") >&5 | |
10595 | (eval $ac_link) 2>&5 | |
10596 | ac_status=$? | |
10597 | echo "$as_me:10597: \$? = $ac_status" >&5 | |
10598 | (exit $ac_status); } && | |
10599 | { ac_try='test -s conftest$ac_exeext' | |
10600 | { (eval echo "$as_me:10600: \"$ac_try\"") >&5 | |
10601 | (eval $ac_try) 2>&5 | |
10602 | ac_status=$? | |
10603 | echo "$as_me:10603: \$? = $ac_status" >&5 | |
10604 | (exit $ac_status); }; }; then | |
10605 | ac_cv_lib_bsd_gethostbyname=yes | |
10606 | else | |
10607 | echo "$as_me: failed program was:" >&5 | |
10608 | cat conftest.$ac_ext >&5 | |
10609 | ac_cv_lib_bsd_gethostbyname=no | |
10610 | fi | |
10611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10612 | LIBS=$ac_check_lib_save_LIBS | |
10613 | fi | |
10614 | echo "$as_me:10614: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
10615 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
10616 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
10617 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
ab9b9eab VZ |
10618 | fi |
10619 | ||
1e487827 | 10620 | fi |
ab9b9eab VZ |
10621 | fi |
10622 | ||
10623 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10624 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10625 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
1e487827 VS |
10626 | # on later versions), says Simon Leinen: it contains gethostby* |
10627 | # variants that don't use the nameserver (or something). -lsocket | |
10628 | # must be given before -lnsl if both are needed. We assume that | |
10629 | # if connect needs -lnsl, so does gethostbyname. | |
10630 | echo "$as_me:10630: checking for connect" >&5 | |
10631 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
10632 | if test "${ac_cv_func_connect+set}" = set; then | |
10633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10634 | else | |
10635 | cat >conftest.$ac_ext <<_ACEOF | |
10636 | #line 10636 "configure" | |
ab9b9eab VZ |
10637 | #include "confdefs.h" |
10638 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 10639 | which can conflict with char connect (); below. */ |
ab9b9eab VZ |
10640 | #include <assert.h> |
10641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
10642 | #ifdef __cplusplus |
10643 | extern "C" | |
10644 | #endif | |
ab9b9eab | 10645 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10646 | builtin and then its argument prototype would still apply. */ |
10647 | char connect (); | |
10648 | char (*f) (); | |
ab9b9eab | 10649 | |
1e487827 VS |
10650 | int |
10651 | main () | |
10652 | { | |
ab9b9eab VZ |
10653 | /* The GNU C library defines this for functions which it implements |
10654 | to always fail with ENOSYS. Some functions are actually named | |
10655 | something starting with __ and the normal name is an alias. */ | |
10656 | #if defined (__stub_connect) || defined (__stub___connect) | |
10657 | choke me | |
10658 | #else | |
1e487827 | 10659 | f = connect; |
ab9b9eab VZ |
10660 | #endif |
10661 | ||
1e487827 VS |
10662 | ; |
10663 | return 0; | |
10664 | } | |
10665 | _ACEOF | |
10666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10667 | if { (eval echo "$as_me:10667: \"$ac_link\"") >&5 | |
10668 | (eval $ac_link) 2>&5 | |
10669 | ac_status=$? | |
10670 | echo "$as_me:10670: \$? = $ac_status" >&5 | |
10671 | (exit $ac_status); } && | |
10672 | { ac_try='test -s conftest$ac_exeext' | |
10673 | { (eval echo "$as_me:10673: \"$ac_try\"") >&5 | |
10674 | (eval $ac_try) 2>&5 | |
10675 | ac_status=$? | |
10676 | echo "$as_me:10676: \$? = $ac_status" >&5 | |
10677 | (exit $ac_status); }; }; then | |
10678 | ac_cv_func_connect=yes | |
10679 | else | |
10680 | echo "$as_me: failed program was:" >&5 | |
10681 | cat conftest.$ac_ext >&5 | |
10682 | ac_cv_func_connect=no | |
10683 | fi | |
10684 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10685 | fi | |
10686 | echo "$as_me:10686: result: $ac_cv_func_connect" >&5 | |
10687 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
ab9b9eab VZ |
10688 | |
10689 | if test $ac_cv_func_connect = no; then | |
1e487827 VS |
10690 | echo "$as_me:10690: checking for connect in -lsocket" >&5 |
10691 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
10692 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
10693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab | 10694 | else |
1e487827 | 10695 | ac_check_lib_save_LIBS=$LIBS |
ab9b9eab | 10696 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
1e487827 VS |
10697 | cat >conftest.$ac_ext <<_ACEOF |
10698 | #line 10698 "configure" | |
ab9b9eab | 10699 | #include "confdefs.h" |
1e487827 | 10700 | |
ab9b9eab | 10701 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
10702 | #ifdef __cplusplus |
10703 | extern "C" | |
10704 | #endif | |
ab9b9eab | 10705 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10706 | builtin and then its argument prototype would still apply. */ |
10707 | char connect (); | |
10708 | int | |
10709 | main () | |
10710 | { | |
10711 | connect (); | |
10712 | ; | |
10713 | return 0; | |
10714 | } | |
10715 | _ACEOF | |
10716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10717 | if { (eval echo "$as_me:10717: \"$ac_link\"") >&5 | |
10718 | (eval $ac_link) 2>&5 | |
10719 | ac_status=$? | |
10720 | echo "$as_me:10720: \$? = $ac_status" >&5 | |
10721 | (exit $ac_status); } && | |
10722 | { ac_try='test -s conftest$ac_exeext' | |
10723 | { (eval echo "$as_me:10723: \"$ac_try\"") >&5 | |
10724 | (eval $ac_try) 2>&5 | |
10725 | ac_status=$? | |
10726 | echo "$as_me:10726: \$? = $ac_status" >&5 | |
10727 | (exit $ac_status); }; }; then | |
10728 | ac_cv_lib_socket_connect=yes | |
10729 | else | |
10730 | echo "$as_me: failed program was:" >&5 | |
10731 | cat conftest.$ac_ext >&5 | |
10732 | ac_cv_lib_socket_connect=no | |
10733 | fi | |
10734 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10735 | LIBS=$ac_check_lib_save_LIBS | |
10736 | fi | |
10737 | echo "$as_me:10737: result: $ac_cv_lib_socket_connect" >&5 | |
10738 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
10739 | if test $ac_cv_lib_socket_connect = yes; then | |
ab9b9eab | 10740 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
ab9b9eab VZ |
10741 | fi |
10742 | ||
10743 | fi | |
10744 | ||
1e487827 VS |
10745 | # Guillermo Gomez says -lposix is necessary on A/UX. |
10746 | echo "$as_me:10746: checking for remove" >&5 | |
10747 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
10748 | if test "${ac_cv_func_remove+set}" = set; then | |
10749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab | 10750 | else |
1e487827 VS |
10751 | cat >conftest.$ac_ext <<_ACEOF |
10752 | #line 10752 "configure" | |
ab9b9eab VZ |
10753 | #include "confdefs.h" |
10754 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 10755 | which can conflict with char remove (); below. */ |
ab9b9eab VZ |
10756 | #include <assert.h> |
10757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
10758 | #ifdef __cplusplus |
10759 | extern "C" | |
10760 | #endif | |
ab9b9eab | 10761 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10762 | builtin and then its argument prototype would still apply. */ |
10763 | char remove (); | |
10764 | char (*f) (); | |
ab9b9eab | 10765 | |
1e487827 VS |
10766 | int |
10767 | main () | |
10768 | { | |
ab9b9eab VZ |
10769 | /* The GNU C library defines this for functions which it implements |
10770 | to always fail with ENOSYS. Some functions are actually named | |
10771 | something starting with __ and the normal name is an alias. */ | |
10772 | #if defined (__stub_remove) || defined (__stub___remove) | |
10773 | choke me | |
10774 | #else | |
1e487827 | 10775 | f = remove; |
ab9b9eab VZ |
10776 | #endif |
10777 | ||
1e487827 VS |
10778 | ; |
10779 | return 0; | |
10780 | } | |
10781 | _ACEOF | |
10782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10783 | if { (eval echo "$as_me:10783: \"$ac_link\"") >&5 | |
10784 | (eval $ac_link) 2>&5 | |
10785 | ac_status=$? | |
10786 | echo "$as_me:10786: \$? = $ac_status" >&5 | |
10787 | (exit $ac_status); } && | |
10788 | { ac_try='test -s conftest$ac_exeext' | |
10789 | { (eval echo "$as_me:10789: \"$ac_try\"") >&5 | |
10790 | (eval $ac_try) 2>&5 | |
10791 | ac_status=$? | |
10792 | echo "$as_me:10792: \$? = $ac_status" >&5 | |
10793 | (exit $ac_status); }; }; then | |
10794 | ac_cv_func_remove=yes | |
10795 | else | |
10796 | echo "$as_me: failed program was:" >&5 | |
10797 | cat conftest.$ac_ext >&5 | |
10798 | ac_cv_func_remove=no | |
10799 | fi | |
10800 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10801 | fi | |
10802 | echo "$as_me:10802: result: $ac_cv_func_remove" >&5 | |
10803 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
ab9b9eab VZ |
10804 | |
10805 | if test $ac_cv_func_remove = no; then | |
1e487827 VS |
10806 | echo "$as_me:10806: checking for remove in -lposix" >&5 |
10807 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
10808 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
10809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab | 10810 | else |
1e487827 | 10811 | ac_check_lib_save_LIBS=$LIBS |
ab9b9eab | 10812 | LIBS="-lposix $LIBS" |
1e487827 VS |
10813 | cat >conftest.$ac_ext <<_ACEOF |
10814 | #line 10814 "configure" | |
ab9b9eab | 10815 | #include "confdefs.h" |
1e487827 | 10816 | |
ab9b9eab | 10817 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
10818 | #ifdef __cplusplus |
10819 | extern "C" | |
10820 | #endif | |
ab9b9eab | 10821 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10822 | builtin and then its argument prototype would still apply. */ |
10823 | char remove (); | |
10824 | int | |
10825 | main () | |
10826 | { | |
10827 | remove (); | |
10828 | ; | |
10829 | return 0; | |
10830 | } | |
10831 | _ACEOF | |
10832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10833 | if { (eval echo "$as_me:10833: \"$ac_link\"") >&5 | |
10834 | (eval $ac_link) 2>&5 | |
10835 | ac_status=$? | |
10836 | echo "$as_me:10836: \$? = $ac_status" >&5 | |
10837 | (exit $ac_status); } && | |
10838 | { ac_try='test -s conftest$ac_exeext' | |
10839 | { (eval echo "$as_me:10839: \"$ac_try\"") >&5 | |
10840 | (eval $ac_try) 2>&5 | |
10841 | ac_status=$? | |
10842 | echo "$as_me:10842: \$? = $ac_status" >&5 | |
10843 | (exit $ac_status); }; }; then | |
10844 | ac_cv_lib_posix_remove=yes | |
10845 | else | |
10846 | echo "$as_me: failed program was:" >&5 | |
10847 | cat conftest.$ac_ext >&5 | |
10848 | ac_cv_lib_posix_remove=no | |
10849 | fi | |
10850 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10851 | LIBS=$ac_check_lib_save_LIBS | |
10852 | fi | |
10853 | echo "$as_me:10853: result: $ac_cv_lib_posix_remove" >&5 | |
10854 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
10855 | if test $ac_cv_lib_posix_remove = yes; then | |
ab9b9eab | 10856 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
ab9b9eab VZ |
10857 | fi |
10858 | ||
10859 | fi | |
10860 | ||
10861 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
1e487827 VS |
10862 | echo "$as_me:10862: checking for shmat" >&5 |
10863 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
10864 | if test "${ac_cv_func_shmat+set}" = set; then | |
10865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab | 10866 | else |
1e487827 VS |
10867 | cat >conftest.$ac_ext <<_ACEOF |
10868 | #line 10868 "configure" | |
ab9b9eab VZ |
10869 | #include "confdefs.h" |
10870 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 10871 | which can conflict with char shmat (); below. */ |
ab9b9eab VZ |
10872 | #include <assert.h> |
10873 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
10874 | #ifdef __cplusplus |
10875 | extern "C" | |
10876 | #endif | |
ab9b9eab | 10877 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10878 | builtin and then its argument prototype would still apply. */ |
10879 | char shmat (); | |
10880 | char (*f) (); | |
ab9b9eab | 10881 | |
1e487827 VS |
10882 | int |
10883 | main () | |
10884 | { | |
ab9b9eab VZ |
10885 | /* The GNU C library defines this for functions which it implements |
10886 | to always fail with ENOSYS. Some functions are actually named | |
10887 | something starting with __ and the normal name is an alias. */ | |
10888 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10889 | choke me | |
10890 | #else | |
1e487827 | 10891 | f = shmat; |
ab9b9eab VZ |
10892 | #endif |
10893 | ||
1e487827 VS |
10894 | ; |
10895 | return 0; | |
10896 | } | |
10897 | _ACEOF | |
10898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10899 | if { (eval echo "$as_me:10899: \"$ac_link\"") >&5 | |
10900 | (eval $ac_link) 2>&5 | |
10901 | ac_status=$? | |
10902 | echo "$as_me:10902: \$? = $ac_status" >&5 | |
10903 | (exit $ac_status); } && | |
10904 | { ac_try='test -s conftest$ac_exeext' | |
10905 | { (eval echo "$as_me:10905: \"$ac_try\"") >&5 | |
10906 | (eval $ac_try) 2>&5 | |
10907 | ac_status=$? | |
10908 | echo "$as_me:10908: \$? = $ac_status" >&5 | |
10909 | (exit $ac_status); }; }; then | |
10910 | ac_cv_func_shmat=yes | |
10911 | else | |
10912 | echo "$as_me: failed program was:" >&5 | |
10913 | cat conftest.$ac_ext >&5 | |
10914 | ac_cv_func_shmat=no | |
10915 | fi | |
10916 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10917 | fi | |
10918 | echo "$as_me:10918: result: $ac_cv_func_shmat" >&5 | |
10919 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
ab9b9eab VZ |
10920 | |
10921 | if test $ac_cv_func_shmat = no; then | |
1e487827 VS |
10922 | echo "$as_me:10922: checking for shmat in -lipc" >&5 |
10923 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
10924 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
10925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab9b9eab | 10926 | else |
1e487827 | 10927 | ac_check_lib_save_LIBS=$LIBS |
ab9b9eab | 10928 | LIBS="-lipc $LIBS" |
1e487827 VS |
10929 | cat >conftest.$ac_ext <<_ACEOF |
10930 | #line 10930 "configure" | |
ab9b9eab | 10931 | #include "confdefs.h" |
1e487827 | 10932 | |
ab9b9eab | 10933 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
10934 | #ifdef __cplusplus |
10935 | extern "C" | |
10936 | #endif | |
ab9b9eab | 10937 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
10938 | builtin and then its argument prototype would still apply. */ |
10939 | char shmat (); | |
10940 | int | |
10941 | main () | |
10942 | { | |
10943 | shmat (); | |
10944 | ; | |
10945 | return 0; | |
10946 | } | |
10947 | _ACEOF | |
10948 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10949 | if { (eval echo "$as_me:10949: \"$ac_link\"") >&5 | |
10950 | (eval $ac_link) 2>&5 | |
10951 | ac_status=$? | |
10952 | echo "$as_me:10952: \$? = $ac_status" >&5 | |
10953 | (exit $ac_status); } && | |
10954 | { ac_try='test -s conftest$ac_exeext' | |
10955 | { (eval echo "$as_me:10955: \"$ac_try\"") >&5 | |
10956 | (eval $ac_try) 2>&5 | |
10957 | ac_status=$? | |
10958 | echo "$as_me:10958: \$? = $ac_status" >&5 | |
10959 | (exit $ac_status); }; }; then | |
10960 | ac_cv_lib_ipc_shmat=yes | |
10961 | else | |
10962 | echo "$as_me: failed program was:" >&5 | |
10963 | cat conftest.$ac_ext >&5 | |
10964 | ac_cv_lib_ipc_shmat=no | |
10965 | fi | |
10966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10967 | LIBS=$ac_check_lib_save_LIBS | |
10968 | fi | |
10969 | echo "$as_me:10969: result: $ac_cv_lib_ipc_shmat" >&5 | |
10970 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
10971 | if test $ac_cv_lib_ipc_shmat = yes; then | |
ab9b9eab | 10972 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
ab9b9eab VZ |
10973 | fi |
10974 | ||
10975 | fi | |
10976 | fi | |
10977 | ||
10978 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
1e487827 | 10979 | ac_save_LDFLAGS=$LDFLAGS |
ab9b9eab VZ |
10980 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10981 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10982 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10983 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10984 | # These have to be linked with before -lX11, unlike the other | |
10985 | # libraries we check for below, so use a different variable. | |
1e487827 VS |
10986 | # John Interrante, Karl Berry |
10987 | echo "$as_me:10987: checking for IceConnectionNumber in -lICE" >&5 | |
10988 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
10989 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
10990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10991 | else | |
10992 | ac_check_lib_save_LIBS=$LIBS | |
ab9b9eab | 10993 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
1e487827 VS |
10994 | cat >conftest.$ac_ext <<_ACEOF |
10995 | #line 10995 "configure" | |
ab9b9eab | 10996 | #include "confdefs.h" |
1e487827 | 10997 | |
ab9b9eab | 10998 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
10999 | #ifdef __cplusplus |
11000 | extern "C" | |
11001 | #endif | |
ab9b9eab | 11002 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
11003 | builtin and then its argument prototype would still apply. */ |
11004 | char IceConnectionNumber (); | |
11005 | int | |
11006 | main () | |
11007 | { | |
11008 | IceConnectionNumber (); | |
11009 | ; | |
11010 | return 0; | |
11011 | } | |
11012 | _ACEOF | |
11013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11014 | if { (eval echo "$as_me:11014: \"$ac_link\"") >&5 | |
11015 | (eval $ac_link) 2>&5 | |
11016 | ac_status=$? | |
11017 | echo "$as_me:11017: \$? = $ac_status" >&5 | |
11018 | (exit $ac_status); } && | |
11019 | { ac_try='test -s conftest$ac_exeext' | |
11020 | { (eval echo "$as_me:11020: \"$ac_try\"") >&5 | |
11021 | (eval $ac_try) 2>&5 | |
11022 | ac_status=$? | |
11023 | echo "$as_me:11023: \$? = $ac_status" >&5 | |
11024 | (exit $ac_status); }; }; then | |
11025 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
11026 | else | |
11027 | echo "$as_me: failed program was:" >&5 | |
11028 | cat conftest.$ac_ext >&5 | |
11029 | ac_cv_lib_ICE_IceConnectionNumber=no | |
11030 | fi | |
11031 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11032 | LIBS=$ac_check_lib_save_LIBS | |
11033 | fi | |
11034 | echo "$as_me:11034: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
11035 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
11036 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
ab9b9eab | 11037 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
ab9b9eab VZ |
11038 | fi |
11039 | ||
1e487827 | 11040 | LDFLAGS=$ac_save_LDFLAGS |
ab9b9eab VZ |
11041 | |
11042 | fi | |
11043 | ||
37d403aa JS |
11044 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
11045 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 11046 | |
37d403aa | 11047 | if test "$wxUSE_MOTIF" = 1; then |
ab9b9eab | 11048 | if test "$no_x" = "yes"; then |
1e487827 VS |
11049 | { { echo "$as_me:11049: error: X11 not found" >&5 |
11050 | echo "$as_me: error: X11 not found" >&2;} | |
11051 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
ab9b9eab VZ |
11052 | fi |
11053 | ||
11054 | GUI_TK_LIBRARY="$X_LIBS" | |
11055 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
11056 | ||
dad6c0ea VZ |
11057 | AFMINSTALL=afminstall |
11058 | ||
cd6d6d5b VZ |
11059 | COMPILED_X_PROGRAM=0 |
11060 | ||
1e487827 VS |
11061 | echo "$as_me:11061: checking for Motif/Lesstif headers" >&5 |
11062 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
11063 | ||
ab9b9eab VZ |
11064 | ac_find_includes= |
11065 | for ac_dir in $SEARCH_INCLUDE; | |
11066 | do | |
11067 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11068 | ac_find_includes=$ac_dir | |
11069 | break | |
11070 | fi | |
11071 | done | |
11072 | ||
11073 | if test "$ac_find_includes" != "" ; then | |
1e487827 VS |
11074 | echo "$as_me:11074: result: found $ac_find_includes" >&5 |
11075 | echo "${ECHO_T}found $ac_find_includes" >&6 | |
ab9b9eab | 11076 | else |
1e487827 VS |
11077 | cat >conftest.$ac_ext <<_ACEOF |
11078 | #line 11078 "configure" | |
cd6d6d5b VZ |
11079 | #include "confdefs.h" |
11080 | ||
11081 | #include <Xm/Xm.h> | |
1e487827 VS |
11082 | |
11083 | int | |
11084 | main () | |
11085 | { | |
cd6d6d5b VZ |
11086 | |
11087 | int version; | |
11088 | ||
11089 | version = xmUseVersion; | |
1e487827 VS |
11090 | |
11091 | ; | |
11092 | return 0; | |
11093 | } | |
11094 | _ACEOF | |
11095 | rm -f conftest.$ac_objext | |
11096 | if { (eval echo "$as_me:11096: \"$ac_compile\"") >&5 | |
11097 | (eval $ac_compile) 2>&5 | |
11098 | ac_status=$? | |
11099 | echo "$as_me:11099: \$? = $ac_status" >&5 | |
11100 | (exit $ac_status); } && | |
11101 | { ac_try='test -s conftest.$ac_objext' | |
11102 | { (eval echo "$as_me:11102: \"$ac_try\"") >&5 | |
11103 | (eval $ac_try) 2>&5 | |
11104 | ac_status=$? | |
11105 | echo "$as_me:11105: \$? = $ac_status" >&5 | |
11106 | (exit $ac_status); }; }; then | |
11107 | ||
11108 | echo "$as_me:11108: result: found in default search path" >&5 | |
11109 | echo "${ECHO_T}found in default search path" >&6 | |
cd6d6d5b | 11110 | COMPILED_X_PROGRAM=1 |
1e487827 | 11111 | |
cd6d6d5b | 11112 | else |
1e487827 VS |
11113 | echo "$as_me: failed program was:" >&5 |
11114 | cat conftest.$ac_ext >&5 | |
11115 | ||
11116 | echo "$as_me:11116: result: no" >&5 | |
11117 | echo "${ECHO_T}no" >&6 | |
11118 | { { echo "$as_me:11118: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
11119 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
11120 | { (exit 1); exit 1; }; } | |
11121 | ||
cd6d6d5b | 11122 | fi |
1e487827 | 11123 | rm -f conftest.$ac_objext conftest.$ac_ext |
ab9b9eab VZ |
11124 | fi |
11125 | ||
cd6d6d5b | 11126 | if test "$COMPILED_X_PROGRAM" = 0; then |
1e487827 VS |
11127 | echo "$as_me:11127: checking for Motif/Lesstif library" >&5 |
11128 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
11129 | ||
ab9b9eab VZ |
11130 | ac_find_libraries= |
11131 | for ac_dir in $SEARCH_LIB; | |
11132 | do | |
11133 | for ac_extension in a so sl; do | |
11134 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
11135 | ac_find_libraries=$ac_dir | |
11136 | break 2 | |
11137 | fi | |
11138 | done | |
11139 | done | |
11140 | ||
cd6d6d5b | 11141 | if test "$ac_find_libraries" != "" ; then |
1e487827 | 11142 | |
ab9b9eab VZ |
11143 | ac_path_to_include=$ac_find_includes |
11144 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
11145 | result=$? | |
11146 | if test $result = 0; then | |
11147 | ac_path_to_include="" | |
11148 | else | |
11149 | ac_path_to_include="-I$ac_find_includes" | |
11150 | fi | |
11151 | ||
ab9b9eab VZ |
11152 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11153 | result=$? | |
11154 | if test $result = 0; then | |
11155 | ac_path_to_link="" | |
11156 | else | |
11157 | ac_path_to_link="-L$ac_find_libraries" | |
11158 | fi | |
11159 | ||
cd6d6d5b VZ |
11160 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
11161 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
1e487827 VS |
11162 | echo "$as_me:11162: result: found at $ac_find_libraries" >&5 |
11163 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
cd6d6d5b | 11164 | else |
1e487827 VS |
11165 | cat >conftest.$ac_ext <<_ACEOF |
11166 | #line 11166 "configure" | |
cd6d6d5b | 11167 | #include "confdefs.h" |
ab9b9eab | 11168 | |
cd6d6d5b | 11169 | #include <Xm/Xm.h> |
1e487827 VS |
11170 | |
11171 | int | |
11172 | main () | |
11173 | { | |
ab9b9eab | 11174 | |
cd6d6d5b | 11175 | int version; |
ab9b9eab | 11176 | |
cd6d6d5b | 11177 | version = xmUseVersion; |
1e487827 VS |
11178 | |
11179 | ; | |
11180 | return 0; | |
11181 | } | |
11182 | _ACEOF | |
11183 | rm -f conftest.$ac_objext | |
11184 | if { (eval echo "$as_me:11184: \"$ac_compile\"") >&5 | |
11185 | (eval $ac_compile) 2>&5 | |
11186 | ac_status=$? | |
11187 | echo "$as_me:11187: \$? = $ac_status" >&5 | |
11188 | (exit $ac_status); } && | |
11189 | { ac_try='test -s conftest.$ac_objext' | |
11190 | { (eval echo "$as_me:11190: \"$ac_try\"") >&5 | |
11191 | (eval $ac_try) 2>&5 | |
11192 | ac_status=$? | |
11193 | echo "$as_me:11193: \$? = $ac_status" >&5 | |
11194 | (exit $ac_status); }; }; then | |
11195 | ||
11196 | echo "$as_me:11196: result: found in default search path" >&5 | |
11197 | echo "${ECHO_T}found in default search path" >&6 | |
cd6d6d5b | 11198 | COMPILED_X_PROGRAM=1 |
1e487827 | 11199 | |
cd6d6d5b | 11200 | else |
1e487827 VS |
11201 | echo "$as_me: failed program was:" >&5 |
11202 | cat conftest.$ac_ext >&5 | |
11203 | ||
11204 | echo "$as_me:11204: result: no" >&5 | |
11205 | echo "${ECHO_T}no" >&6 | |
11206 | { { echo "$as_me:11206: error: please set LDFLAGS to contain the location of libXm" >&5 | |
11207 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
11208 | { (exit 1); exit 1; }; } | |
11209 | ||
cd6d6d5b | 11210 | fi |
1e487827 | 11211 | rm -f conftest.$ac_objext conftest.$ac_ext |
cd6d6d5b | 11212 | fi |
ab9b9eab VZ |
11213 | fi |
11214 | ||
11215 | XPM_LINK="" | |
1e487827 VS |
11216 | echo "$as_me:11216: checking for Xpm library" >&5 |
11217 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
11218 | ||
ab9b9eab VZ |
11219 | ac_find_libraries= |
11220 | for ac_dir in $SEARCH_LIB; | |
11221 | do | |
11222 | for ac_extension in a so sl; do | |
11223 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
11224 | ac_find_libraries=$ac_dir | |
11225 | break 2 | |
11226 | fi | |
11227 | done | |
11228 | done | |
11229 | ||
11230 | if test "$ac_find_libraries" != "" ; then | |
1e487827 | 11231 | |
ab9b9eab VZ |
11232 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11233 | result=$? | |
11234 | if test $result = 0; then | |
11235 | ac_path_to_link="" | |
11236 | else | |
11237 | ac_path_to_link="-L$ac_find_libraries" | |
11238 | fi | |
11239 | ||
11240 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
11241 | XPM_LINK="-lXpm " | |
1e487827 | 11242 | cat >>confdefs.h <<\EOF |
ab9b9eab VZ |
11243 | #define wxHAVE_LIB_XPM 1 |
11244 | EOF | |
11245 | ||
1e487827 VS |
11246 | echo "$as_me:11246: result: found at $ac_find_libraries" >&5 |
11247 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
ab9b9eab | 11248 | else |
1e487827 VS |
11249 | cat >conftest.$ac_ext <<_ACEOF |
11250 | #line 11250 "configure" | |
cd6d6d5b VZ |
11251 | #include "confdefs.h" |
11252 | ||
11253 | #include <X11/xpm.h> | |
1e487827 VS |
11254 | |
11255 | int | |
11256 | main () | |
11257 | { | |
cd6d6d5b VZ |
11258 | |
11259 | int version; | |
11260 | ||
11261 | version = XpmLibraryVersion(); | |
1e487827 VS |
11262 | |
11263 | ; | |
11264 | return 0; | |
11265 | } | |
11266 | _ACEOF | |
11267 | rm -f conftest.$ac_objext | |
11268 | if { (eval echo "$as_me:11268: \"$ac_compile\"") >&5 | |
11269 | (eval $ac_compile) 2>&5 | |
11270 | ac_status=$? | |
11271 | echo "$as_me:11271: \$? = $ac_status" >&5 | |
11272 | (exit $ac_status); } && | |
11273 | { ac_try='test -s conftest.$ac_objext' | |
11274 | { (eval echo "$as_me:11274: \"$ac_try\"") >&5 | |
11275 | (eval $ac_try) 2>&5 | |
11276 | ac_status=$? | |
11277 | echo "$as_me:11277: \$? = $ac_status" >&5 | |
11278 | (exit $ac_status); }; }; then | |
11279 | ||
f6bcfd97 | 11280 | XPM_LINK="-lXpm " |
1e487827 | 11281 | cat >>confdefs.h <<\EOF |
3ace2e6d SN |
11282 | #define wxHAVE_LIB_XPM 1 |
11283 | EOF | |
11284 | ||
1e487827 VS |
11285 | echo "$as_me:11285: result: found in default search path" >&5 |
11286 | echo "${ECHO_T}found in default search path" >&6 | |
cd6d6d5b | 11287 | COMPILED_X_PROGRAM=0 |
1e487827 | 11288 | |
cd6d6d5b | 11289 | else |
1e487827 VS |
11290 | echo "$as_me: failed program was:" >&5 |
11291 | cat conftest.$ac_ext >&5 | |
11292 | ||
11293 | echo "$as_me:11293: result: no" >&5 | |
11294 | echo "${ECHO_T}no" >&6 | |
11295 | { echo "$as_me:11295: WARNING: library will be compiled without support for images in XPM format" >&5 | |
11296 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
11297 | ||
cd6d6d5b | 11298 | fi |
1e487827 | 11299 | rm -f conftest.$ac_objext conftest.$ac_ext |
ab9b9eab VZ |
11300 | fi |
11301 | ||
8916026b | 11302 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" |
ab9b9eab VZ |
11303 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
11304 | TOOLKIT=MOTIF | |
10f2d63a VZ |
11305 | GUIDIST=MOTIF_DIST |
11306 | fi | |
11307 | ||
b4085ce6 GD |
11308 | if test "$wxUSE_MAC" = 1; then |
11309 | TOOLKIT=MAC | |
c521c494 | 11310 | GUIDIST=MACX_DIST |
b4085ce6 GD |
11311 | fi |
11312 | ||
e07802fc VZ |
11313 | if test "$wxUSE_PM" = 1; then |
11314 | TOOLKIT=PM | |
e07802fc VZ |
11315 | GUIDIST=GTK_DIST |
11316 | fi | |
11317 | ||
11318 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 11319 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
11320 | else |
11321 | TOOLKIT_DIR="os2" | |
11322 | fi | |
10f2d63a | 11323 | |
f6bcfd97 BP |
11324 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
11325 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
11326 | else | |
11327 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
11328 | fi | |
11329 | ||
2224580a | 11330 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 11331 | |
f6bcfd97 | 11332 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 11333 | |
bdad4e7e | 11334 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" |
3fcdd07b | 11335 | |
9ad43c8b RL |
11336 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
11337 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
3fcdd07b VZ |
11338 | fi |
11339 | ||
d9d8273d | 11340 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 11341 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
11342 | fi |
11343 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
11344 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
11345 | fi | |
11346 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
11347 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
11348 | fi | |
11349 | if test "$wxUSE_ZLIB" = "yes" ; then | |
11350 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
11351 | fi | |
3fed1840 RR |
11352 | if test "$wxUSE_FREETYPE" = "yes" ; then |
11353 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
11354 | fi | |
bdad4e7e | 11355 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)" |
2224580a VZ |
11356 | |
11357 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
11358 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
11359 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
11360 | ||
11361 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
11362 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 11363 | else |
dad6c0ea VZ |
11364 | USE_GUI=0 |
11365 | ||
f6bcfd97 BP |
11366 | TOOLKIT_DIR="base" |
11367 | ||
11368 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11369 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
11370 | else | |
11371 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
11372 | fi | |
11373 | ||
07eb77a6 RL |
11374 | TOOLKIT_DEF="-D__WXBASE__" |
11375 | ||
b4085ce6 GD |
11376 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
11377 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 11378 | |
a20b6d3a VZ |
11379 | if test "$wxUSE_ZLIB" = "yes" ; then |
11380 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
11381 | fi | |
11382 | ||
f6bcfd97 | 11383 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
11384 | |
11385 | PORT_FILES="src/files.lst" | |
11386 | RPM_FILES="src/rpmfiles.lst" | |
11387 | RPM_SPEC="wxBase.spec" | |
11388 | ||
11389 | GUIDIST="BASE_DIST" | |
11390 | DISTDIR="wxBase" | |
10f2d63a VZ |
11391 | fi |
11392 | ||
11393 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 11394 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
11395 | |
11396 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 11397 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
11398 | |
11399 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 11400 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
11401 | |
11402 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
11403 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
11404 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
11405 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
11406 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
11407 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
11408 | |
11409 | SHARED_LD= | |
11410 | PIC_FLAG= | |
11411 | WX_ALL= | |
11412 | WX_ALL_INSTALLED= | |
1d62a8b4 | 11413 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 11414 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a VZ |
11415 | |
11416 | if test "$wxUSE_SHARED" = "yes"; then | |
11417 | case "${host}" in | |
11418 | *-hp-hpux* ) | |
11419 | if test "$GCC" = yes ; then | |
69ffe1d2 | 11420 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
11421 | PIC_FLAG="-fPIC" |
11422 | else | |
f6bcfd97 BP |
11423 | LDFLAGS="-L/usr/lib" |
11424 | ||
10f2d63a VZ |
11425 | SHARED_LD="${CXX} -b -o" |
11426 | PIC_FLAG="+Z" | |
11427 | fi | |
f6bcfd97 BP |
11428 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
11429 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 11430 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 11431 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
11432 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
11433 | else | |
11434 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
11435 | fi | |
10f2d63a | 11436 | ;; |
b12915c1 VZ |
11437 | |
11438 | *-*-linux* ) | |
10f2d63a VZ |
11439 | SHARED_LD="${CC} -shared -o" |
11440 | PIC_FLAG="-fPIC" | |
00cf1208 | 11441 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 11442 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 11443 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 11444 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11445 | fi |
c661ecca RR |
11446 | if test "$wxUSE_OPENGL" = "yes"; then |
11447 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11448 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11449 | else | |
11450 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11451 | WX_ALL="CREATE_LINKS" | |
422107f9 | 11452 | fi |
00cf1208 | 11453 | ;; |
10f2d63a VZ |
11454 | *-*-irix5* | *-*-irix6* ) |
11455 | if test "$GCC" = yes ; then | |
11456 | SHARED_LD="${CC} -shared -o" | |
11457 | PIC_FLAG="-fPIC" | |
11458 | else | |
11459 | SHARED_LD="${CXX} -shared -o" | |
11460 | fi | |
c661ecca RR |
11461 | if test "$wxUSE_OPENGL" = "yes"; then |
11462 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11463 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11464 | else | |
11465 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11466 | WX_ALL="CREATE_LINKS" | |
422107f9 | 11467 | fi |
10f2d63a VZ |
11468 | ;; |
11469 | *-*-solaris2* ) | |
11470 | if test "$GCC" = yes ; then | |
11471 | SHARED_LD="${CC} -shared -o" | |
11472 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
11473 | |
11474 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
11475 | else |
11476 | SHARED_LD="${CXX} -G -o" | |
11477 | PIC_FLAG="-KPIC" | |
11478 | fi | |
c661ecca RR |
11479 | if test "$wxUSE_OPENGL" = "yes"; then |
11480 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11481 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11482 | else | |
11483 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11484 | WX_ALL="CREATE_LINKS" | |
11485 | fi | |
10f2d63a VZ |
11486 | ;; |
11487 | *-*-sunos4* ) | |
11488 | SHARED_LD="${CC} -shared -o" | |
11489 | PIC_FLAG="-fPIC" | |
11490 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11491 | WX_ALL="CREATE_LINKS" | |
11492 | ;; | |
95c8801c | 11493 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
11494 | SHARED_LD="${CC} -shared -o" |
11495 | PIC_FLAG="-fPIC" | |
37d403aa JS |
11496 | if test "$wxUSE_OPENGL" = "yes"; then |
11497 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11498 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11499 | else | |
11500 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11501 | WX_ALL="CREATE_LINKS" | |
11502 | fi | |
10f2d63a | 11503 | ;; |
b4085ce6 | 11504 | *-*-darwin* ) |
ea5999b9 GD |
11505 | SHARED_LD="${CXX} -dynamiclib -o" |
11506 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
11507 | if test "$wxUSE_OPENGL" = "yes"; then |
11508 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11509 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11510 | else | |
11511 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11512 | WX_ALL="CREATE_LINKS" | |
11513 | fi | |
1f8ae82f GD |
11514 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
11515 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11516 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11517 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
f3c067d2 GD |
11518 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" |
11519 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
1f8ae82f | 11520 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" |
f3c067d2 GD |
11521 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" |
11522 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 11523 | ;; |
10f2d63a VZ |
11524 | *-*-osf* ) |
11525 | SHARED_LD="${CXX} -shared -o" | |
11526 | PIC_FLAG="-fPIC" | |
11527 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11528 | WX_ALL="CREATE_LINKS" | |
11529 | ;; | |
11530 | *-*-dgux5* ) | |
11531 | SHARED_LD="${CXX} -shared -o" | |
11532 | PIC_FLAG="-fPIC" | |
11533 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11534 | WX_ALL="CREATE_LINKS" | |
11535 | ;; | |
11536 | *-*-sysv5* ) | |
11537 | SHARED_LD="${CC} -shared -o" | |
11538 | PIC_FLAG="-fPIC" | |
11539 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11540 | WX_ALL="CREATE_LINKS" | |
11541 | ;; | |
11542 | *-*-aix* ) | |
11543 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
11544 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
11545 | ;; | |
1c8183e2 | 11546 | *-*-cygwin* ) |
10f2d63a | 11547 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 11548 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
11549 | if test "$wxUSE_OPENGL" = "yes"; then |
11550 | WX_ALL_INSTALLED="preinstall_gl" | |
11551 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
11552 | else | |
11553 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
11554 | fi | |
10f2d63a | 11555 | ;; |
b12915c1 | 11556 | *-*-mingw32* ) |
10f2d63a | 11557 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 11558 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
11559 | if test "$wxUSE_OPENGL" = "yes"; then |
11560 | WX_ALL_INSTALLED="preinstall_gl" | |
11561 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
11562 | else | |
11563 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
11564 | fi | |
10f2d63a VZ |
11565 | ;; |
11566 | *-pc-os2_emx ) | |
e07802fc VZ |
11567 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11568 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 11569 | ;; |
b12915c1 | 11570 | *-*-beos* ) |
e2b8b066 | 11571 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
11572 | PIC_FLAG="-fPIC" |
11573 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11574 | WX_ALL="CREATE_LINKS" | |
11575 | ;; | |
10f2d63a | 11576 | *) |
1e487827 VS |
11577 | { { echo "$as_me:11577: error: unknown system type ${host}." >&5 |
11578 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
11579 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
11580 | esac |
11581 | ||
11582 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11583 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11584 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11585 | fi |
3711412e | 11586 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
11587 | else |
11588 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 11589 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
11590 | |
11591 | if test "$wxUSE_OPENGL" = "yes"; then | |
11592 | WX_ALL_INSTALLED="preinstall_gl" | |
11593 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
11594 | else | |
11595 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
11596 | fi | |
11597 | ||
11598 | if test "$wxUSE_GUI" = "no"; then | |
11599 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11600 | fi | |
11601 | ||
3711412e | 11602 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
11603 | fi |
11604 | ||
1e487827 | 11605 | for ac_header in strings.h |
10f2d63a | 11606 | do |
1e487827 VS |
11607 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11608 | echo "$as_me:11608: checking for $ac_header" >&5 | |
11609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11610 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11612 | else | |
11613 | cat >conftest.$ac_ext <<_ACEOF | |
11614 | #line 11614 "configure" | |
10f2d63a | 11615 | #include "confdefs.h" |
1e487827 VS |
11616 | #include <$ac_header> |
11617 | _ACEOF | |
11618 | if { (eval echo "$as_me:11618: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11620 | ac_status=$? | |
11621 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11622 | rm -f conftest.er1 | |
11623 | cat conftest.err >&5 | |
11624 | echo "$as_me:11624: \$? = $ac_status" >&5 | |
11625 | (exit $ac_status); } >/dev/null; then | |
11626 | if test -s conftest.err; then | |
11627 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11628 | else | |
11629 | ac_cpp_err= | |
11630 | fi | |
11631 | else | |
11632 | ac_cpp_err=yes | |
11633 | fi | |
11634 | if test -z "$ac_cpp_err"; then | |
11635 | eval "$ac_ac_Header=yes" | |
10f2d63a | 11636 | else |
1e487827 | 11637 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 11638 | cat conftest.$ac_ext >&5 |
1e487827 | 11639 | eval "$ac_ac_Header=no" |
10f2d63a | 11640 | fi |
1e487827 | 11641 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 11642 | fi |
1e487827 VS |
11643 | echo "$as_me:11643: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
11644 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
11645 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
11646 | cat >>confdefs.h <<EOF | |
11647 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
10f2d63a | 11648 | EOF |
1e487827 | 11649 | |
10f2d63a VZ |
11650 | fi |
11651 | done | |
11652 | ||
1e487827 | 11653 | for ac_header in stdlib.h |
9cfadba2 | 11654 | do |
1e487827 VS |
11655 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11656 | echo "$as_me:11656: checking for $ac_header" >&5 | |
11657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11658 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11660 | else | |
11661 | cat >conftest.$ac_ext <<_ACEOF | |
11662 | #line 11662 "configure" | |
9cfadba2 | 11663 | #include "confdefs.h" |
1e487827 VS |
11664 | #include <$ac_header> |
11665 | _ACEOF | |
11666 | if { (eval echo "$as_me:11666: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11667 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11668 | ac_status=$? | |
11669 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11670 | rm -f conftest.er1 | |
11671 | cat conftest.err >&5 | |
11672 | echo "$as_me:11672: \$? = $ac_status" >&5 | |
11673 | (exit $ac_status); } >/dev/null; then | |
11674 | if test -s conftest.err; then | |
11675 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11676 | else | |
11677 | ac_cpp_err= | |
11678 | fi | |
11679 | else | |
11680 | ac_cpp_err=yes | |
11681 | fi | |
11682 | if test -z "$ac_cpp_err"; then | |
11683 | eval "$ac_ac_Header=yes" | |
6232543b | 11684 | else |
1e487827 | 11685 | echo "$as_me: failed program was:" >&5 |
9cfadba2 | 11686 | cat conftest.$ac_ext >&5 |
1e487827 | 11687 | eval "$ac_ac_Header=no" |
9cfadba2 | 11688 | fi |
1e487827 | 11689 | rm -f conftest.err conftest.$ac_ext |
9cfadba2 | 11690 | fi |
1e487827 VS |
11691 | echo "$as_me:11691: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
11692 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
11693 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
11694 | cat >>confdefs.h <<EOF | |
11695 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
9cfadba2 | 11696 | EOF |
1e487827 | 11697 | |
9cfadba2 VZ |
11698 | fi |
11699 | done | |
10f2d63a | 11700 | |
1e487827 | 11701 | for ac_header in unistd.h |
10f2d63a | 11702 | do |
1e487827 VS |
11703 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11704 | echo "$as_me:11704: checking for $ac_header" >&5 | |
11705 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11706 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11708 | else | |
11709 | cat >conftest.$ac_ext <<_ACEOF | |
11710 | #line 11710 "configure" | |
10f2d63a | 11711 | #include "confdefs.h" |
1e487827 VS |
11712 | #include <$ac_header> |
11713 | _ACEOF | |
11714 | if { (eval echo "$as_me:11714: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11715 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11716 | ac_status=$? | |
11717 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11718 | rm -f conftest.er1 | |
11719 | cat conftest.err >&5 | |
11720 | echo "$as_me:11720: \$? = $ac_status" >&5 | |
11721 | (exit $ac_status); } >/dev/null; then | |
11722 | if test -s conftest.err; then | |
11723 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11724 | else | |
11725 | ac_cpp_err= | |
11726 | fi | |
11727 | else | |
11728 | ac_cpp_err=yes | |
11729 | fi | |
11730 | if test -z "$ac_cpp_err"; then | |
11731 | eval "$ac_ac_Header=yes" | |
6232543b | 11732 | else |
1e487827 | 11733 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 11734 | cat conftest.$ac_ext >&5 |
1e487827 | 11735 | eval "$ac_ac_Header=no" |
10f2d63a | 11736 | fi |
1e487827 | 11737 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 11738 | fi |
1e487827 VS |
11739 | echo "$as_me:11739: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
11740 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
11741 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
11742 | cat >>confdefs.h <<EOF | |
11743 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
10f2d63a | 11744 | EOF |
1e487827 | 11745 | |
10f2d63a VZ |
11746 | fi |
11747 | done | |
11748 | ||
1e487827 | 11749 | for ac_header in wchar.h |
10f2d63a | 11750 | do |
1e487827 VS |
11751 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11752 | echo "$as_me:11752: checking for $ac_header" >&5 | |
11753 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11754 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11756 | else | |
11757 | cat >conftest.$ac_ext <<_ACEOF | |
11758 | #line 11758 "configure" | |
10f2d63a | 11759 | #include "confdefs.h" |
1e487827 VS |
11760 | #include <$ac_header> |
11761 | _ACEOF | |
11762 | if { (eval echo "$as_me:11762: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11763 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11764 | ac_status=$? | |
11765 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11766 | rm -f conftest.er1 | |
11767 | cat conftest.err >&5 | |
11768 | echo "$as_me:11768: \$? = $ac_status" >&5 | |
11769 | (exit $ac_status); } >/dev/null; then | |
11770 | if test -s conftest.err; then | |
11771 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11772 | else | |
11773 | ac_cpp_err= | |
11774 | fi | |
11775 | else | |
11776 | ac_cpp_err=yes | |
11777 | fi | |
11778 | if test -z "$ac_cpp_err"; then | |
11779 | eval "$ac_ac_Header=yes" | |
6f72b082 | 11780 | else |
1e487827 | 11781 | echo "$as_me: failed program was:" >&5 |
6f72b082 | 11782 | cat conftest.$ac_ext >&5 |
1e487827 | 11783 | eval "$ac_ac_Header=no" |
6f72b082 | 11784 | fi |
1e487827 | 11785 | rm -f conftest.err conftest.$ac_ext |
6f72b082 | 11786 | fi |
1e487827 VS |
11787 | echo "$as_me:11787: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
11788 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
11789 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
11790 | cat >>confdefs.h <<EOF | |
11791 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
6f72b082 | 11792 | EOF |
1e487827 | 11793 | |
6f72b082 OK |
11794 | fi |
11795 | done | |
11796 | ||
1e487827 | 11797 | for ac_header in wcstr.h |
6f72b082 | 11798 | do |
1e487827 VS |
11799 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11800 | echo "$as_me:11800: checking for $ac_header" >&5 | |
11801 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11802 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11804 | else | |
11805 | cat >conftest.$ac_ext <<_ACEOF | |
11806 | #line 11806 "configure" | |
6f72b082 | 11807 | #include "confdefs.h" |
1e487827 VS |
11808 | #include <$ac_header> |
11809 | _ACEOF | |
11810 | if { (eval echo "$as_me:11810: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11811 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11812 | ac_status=$? | |
11813 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11814 | rm -f conftest.er1 | |
11815 | cat conftest.err >&5 | |
11816 | echo "$as_me:11816: \$? = $ac_status" >&5 | |
11817 | (exit $ac_status); } >/dev/null; then | |
11818 | if test -s conftest.err; then | |
11819 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11820 | else | |
11821 | ac_cpp_err= | |
11822 | fi | |
11823 | else | |
11824 | ac_cpp_err=yes | |
11825 | fi | |
11826 | if test -z "$ac_cpp_err"; then | |
11827 | eval "$ac_ac_Header=yes" | |
6f72b082 | 11828 | else |
1e487827 | 11829 | echo "$as_me: failed program was:" >&5 |
6f72b082 | 11830 | cat conftest.$ac_ext >&5 |
1e487827 | 11831 | eval "$ac_ac_Header=no" |
6f72b082 | 11832 | fi |
1e487827 | 11833 | rm -f conftest.err conftest.$ac_ext |
6f72b082 | 11834 | fi |
1e487827 VS |
11835 | echo "$as_me:11835: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
11836 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
11837 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
11838 | cat >>confdefs.h <<EOF | |
11839 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
6f72b082 | 11840 | EOF |
1e487827 | 11841 | |
6f72b082 OK |
11842 | fi |
11843 | done | |
11844 | ||
1e487827 | 11845 | for ac_header in fnmatch.h |
6f72b082 | 11846 | do |
1e487827 VS |
11847 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11848 | echo "$as_me:11848: checking for $ac_header" >&5 | |
11849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11850 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11852 | else | |
11853 | cat >conftest.$ac_ext <<_ACEOF | |
11854 | #line 11854 "configure" | |
6f72b082 | 11855 | #include "confdefs.h" |
1e487827 VS |
11856 | #include <$ac_header> |
11857 | _ACEOF | |
11858 | if { (eval echo "$as_me:11858: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11860 | ac_status=$? | |
11861 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11862 | rm -f conftest.er1 | |
11863 | cat conftest.err >&5 | |
11864 | echo "$as_me:11864: \$? = $ac_status" >&5 | |
11865 | (exit $ac_status); } >/dev/null; then | |
11866 | if test -s conftest.err; then | |
11867 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11868 | else | |
11869 | ac_cpp_err= | |
11870 | fi | |
11871 | else | |
11872 | ac_cpp_err=yes | |
11873 | fi | |
11874 | if test -z "$ac_cpp_err"; then | |
11875 | eval "$ac_ac_Header=yes" | |
10f2d63a | 11876 | else |
1e487827 | 11877 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 11878 | cat conftest.$ac_ext >&5 |
1e487827 | 11879 | eval "$ac_ac_Header=no" |
10f2d63a | 11880 | fi |
1e487827 | 11881 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 11882 | fi |
1e487827 VS |
11883 | echo "$as_me:11883: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
11884 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
11885 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
11886 | cat >>confdefs.h <<EOF | |
11887 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
10f2d63a | 11888 | EOF |
1e487827 | 11889 | |
10f2d63a VZ |
11890 | fi |
11891 | done | |
11892 | ||
1e487827 | 11893 | for ac_header in iconv.h |
0fb0dd83 | 11894 | do |
1e487827 VS |
11895 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11896 | echo "$as_me:11896: checking for $ac_header" >&5 | |
11897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11898 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11900 | else | |
11901 | cat >conftest.$ac_ext <<_ACEOF | |
11902 | #line 11902 "configure" | |
0fb0dd83 | 11903 | #include "confdefs.h" |
1e487827 VS |
11904 | #include <$ac_header> |
11905 | _ACEOF | |
11906 | if { (eval echo "$as_me:11906: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11907 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11908 | ac_status=$? | |
11909 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11910 | rm -f conftest.er1 | |
11911 | cat conftest.err >&5 | |
11912 | echo "$as_me:11912: \$? = $ac_status" >&5 | |
11913 | (exit $ac_status); } >/dev/null; then | |
11914 | if test -s conftest.err; then | |
11915 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11916 | else | |
11917 | ac_cpp_err= | |
11918 | fi | |
11919 | else | |
11920 | ac_cpp_err=yes | |
11921 | fi | |
11922 | if test -z "$ac_cpp_err"; then | |
11923 | eval "$ac_ac_Header=yes" | |
0fb0dd83 | 11924 | else |
1e487827 | 11925 | echo "$as_me: failed program was:" >&5 |
0fb0dd83 | 11926 | cat conftest.$ac_ext >&5 |
1e487827 | 11927 | eval "$ac_ac_Header=no" |
0fb0dd83 | 11928 | fi |
1e487827 | 11929 | rm -f conftest.err conftest.$ac_ext |
0fb0dd83 | 11930 | fi |
1e487827 VS |
11931 | echo "$as_me:11931: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
11932 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
11933 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
11934 | cat >>confdefs.h <<EOF | |
11935 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
0fb0dd83 | 11936 | EOF |
1e487827 | 11937 | |
0fb0dd83 RR |
11938 | fi |
11939 | done | |
11940 | ||
1e487827 | 11941 | for ac_header in langinfo.h |
1f8ae82f | 11942 | do |
1e487827 VS |
11943 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11944 | echo "$as_me:11944: checking for $ac_header" >&5 | |
11945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11946 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11948 | else | |
11949 | cat >conftest.$ac_ext <<_ACEOF | |
11950 | #line 11950 "configure" | |
1f8ae82f | 11951 | #include "confdefs.h" |
1e487827 VS |
11952 | #include <$ac_header> |
11953 | _ACEOF | |
11954 | if { (eval echo "$as_me:11954: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11956 | ac_status=$? | |
11957 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11958 | rm -f conftest.er1 | |
11959 | cat conftest.err >&5 | |
11960 | echo "$as_me:11960: \$? = $ac_status" >&5 | |
11961 | (exit $ac_status); } >/dev/null; then | |
11962 | if test -s conftest.err; then | |
11963 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11964 | else | |
11965 | ac_cpp_err= | |
11966 | fi | |
11967 | else | |
11968 | ac_cpp_err=yes | |
11969 | fi | |
11970 | if test -z "$ac_cpp_err"; then | |
11971 | eval "$ac_ac_Header=yes" | |
1f8ae82f | 11972 | else |
1e487827 | 11973 | echo "$as_me: failed program was:" >&5 |
1f8ae82f | 11974 | cat conftest.$ac_ext >&5 |
1e487827 | 11975 | eval "$ac_ac_Header=no" |
1f8ae82f | 11976 | fi |
1e487827 | 11977 | rm -f conftest.err conftest.$ac_ext |
1f8ae82f | 11978 | fi |
1e487827 VS |
11979 | echo "$as_me:11979: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
11980 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
11981 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
11982 | cat >>confdefs.h <<EOF | |
11983 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
1f8ae82f | 11984 | EOF |
1e487827 | 11985 | |
1f8ae82f GD |
11986 | fi |
11987 | done | |
11988 | ||
73fd4a60 VZ |
11989 | if test "$wxUSE_GUI" = "yes"; then |
11990 | if test "$wxUSE_UNIX" = "yes"; then | |
1e487827 VS |
11991 | |
11992 | for ac_header in X11/XKBlib.h | |
10f2d63a | 11993 | do |
1e487827 VS |
11994 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
11995 | echo "$as_me:11995: checking for $ac_header" >&5 | |
11996 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11997 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
11998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11999 | else | |
12000 | cat >conftest.$ac_ext <<_ACEOF | |
12001 | #line 12001 "configure" | |
10f2d63a | 12002 | #include "confdefs.h" |
1e487827 VS |
12003 | #include <$ac_header> |
12004 | _ACEOF | |
12005 | if { (eval echo "$as_me:12005: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12007 | ac_status=$? | |
12008 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12009 | rm -f conftest.er1 | |
12010 | cat conftest.err >&5 | |
12011 | echo "$as_me:12011: \$? = $ac_status" >&5 | |
12012 | (exit $ac_status); } >/dev/null; then | |
12013 | if test -s conftest.err; then | |
12014 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12015 | else | |
12016 | ac_cpp_err= | |
12017 | fi | |
12018 | else | |
12019 | ac_cpp_err=yes | |
12020 | fi | |
12021 | if test -z "$ac_cpp_err"; then | |
12022 | eval "$ac_ac_Header=yes" | |
10f2d63a | 12023 | else |
1e487827 | 12024 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 12025 | cat conftest.$ac_ext >&5 |
1e487827 | 12026 | eval "$ac_ac_Header=no" |
10f2d63a | 12027 | fi |
1e487827 | 12028 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 12029 | fi |
1e487827 VS |
12030 | echo "$as_me:12030: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
12031 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
12032 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
12033 | cat >>confdefs.h <<EOF | |
12034 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
10f2d63a | 12035 | EOF |
1e487827 | 12036 | |
10f2d63a VZ |
12037 | fi |
12038 | done | |
12039 | ||
73fd4a60 | 12040 | fi |
10f2d63a VZ |
12041 | fi |
12042 | ||
1e487827 VS |
12043 | echo "$as_me:12043: checking for ANSI C header files" >&5 |
12044 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12045 | if test "${ac_cv_header_stdc+set}" = set; then | |
12046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 12047 | else |
1e487827 VS |
12048 | cat >conftest.$ac_ext <<_ACEOF |
12049 | #line 12049 "configure" | |
10f2d63a VZ |
12050 | #include "confdefs.h" |
12051 | #include <stdlib.h> | |
12052 | #include <stdarg.h> | |
12053 | #include <string.h> | |
12054 | #include <float.h> | |
1e487827 VS |
12055 | |
12056 | _ACEOF | |
12057 | if { (eval echo "$as_me:12057: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12058 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12059 | ac_status=$? | |
12060 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12061 | rm -f conftest.er1 | |
12062 | cat conftest.err >&5 | |
12063 | echo "$as_me:12063: \$? = $ac_status" >&5 | |
12064 | (exit $ac_status); } >/dev/null; then | |
12065 | if test -s conftest.err; then | |
12066 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12067 | else | |
12068 | ac_cpp_err= | |
12069 | fi | |
12070 | else | |
12071 | ac_cpp_err=yes | |
12072 | fi | |
12073 | if test -z "$ac_cpp_err"; then | |
10f2d63a VZ |
12074 | ac_cv_header_stdc=yes |
12075 | else | |
1e487827 | 12076 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 12077 | cat conftest.$ac_ext >&5 |
10f2d63a VZ |
12078 | ac_cv_header_stdc=no |
12079 | fi | |
1e487827 | 12080 | rm -f conftest.err conftest.$ac_ext |
10f2d63a VZ |
12081 | |
12082 | if test $ac_cv_header_stdc = yes; then | |
12083 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1e487827 VS |
12084 | cat >conftest.$ac_ext <<_ACEOF |
12085 | #line 12085 "configure" | |
10f2d63a VZ |
12086 | #include "confdefs.h" |
12087 | #include <string.h> | |
1e487827 VS |
12088 | |
12089 | _ACEOF | |
10f2d63a VZ |
12090 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12091 | egrep "memchr" >/dev/null 2>&1; then | |
12092 | : | |
12093 | else | |
10f2d63a VZ |
12094 | ac_cv_header_stdc=no |
12095 | fi | |
12096 | rm -f conftest* | |
12097 | ||
12098 | fi | |
12099 | ||
12100 | if test $ac_cv_header_stdc = yes; then | |
12101 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1e487827 VS |
12102 | cat >conftest.$ac_ext <<_ACEOF |
12103 | #line 12103 "configure" | |
10f2d63a VZ |
12104 | #include "confdefs.h" |
12105 | #include <stdlib.h> | |
1e487827 VS |
12106 | |
12107 | _ACEOF | |
10f2d63a VZ |
12108 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12109 | egrep "free" >/dev/null 2>&1; then | |
12110 | : | |
12111 | else | |
10f2d63a VZ |
12112 | ac_cv_header_stdc=no |
12113 | fi | |
12114 | rm -f conftest* | |
12115 | ||
12116 | fi | |
12117 | ||
12118 | if test $ac_cv_header_stdc = yes; then | |
12119 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1e487827 | 12120 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
12121 | : |
12122 | else | |
1e487827 VS |
12123 | cat >conftest.$ac_ext <<_ACEOF |
12124 | #line 12124 "configure" | |
10f2d63a VZ |
12125 | #include "confdefs.h" |
12126 | #include <ctype.h> | |
1e487827 VS |
12127 | #if ((' ' & 0x0FF) == 0x020) |
12128 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12129 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12130 | #else | |
12131 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
12132 | || ('j' <= (c) && (c) <= 'r') \ | |
12133 | || ('s' <= (c) && (c) <= 'z')) | |
12134 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12135 | #endif | |
703e0a69 | 12136 | |
1e487827 VS |
12137 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
12138 | int | |
12139 | main () | |
12140 | { | |
12141 | int i; | |
12142 | for (i = 0; i < 256; i++) | |
12143 | if (XOR (islower (i), ISLOWER (i)) | |
12144 | || toupper (i) != TOUPPER (i)) | |
12145 | exit(2); | |
12146 | exit (0); | |
12147 | } | |
12148 | _ACEOF | |
12149 | rm -f conftest$ac_exeext | |
12150 | if { (eval echo "$as_me:12150: \"$ac_link\"") >&5 | |
12151 | (eval $ac_link) 2>&5 | |
12152 | ac_status=$? | |
12153 | echo "$as_me:12153: \$? = $ac_status" >&5 | |
12154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12155 | { (eval echo "$as_me:12155: \"$ac_try\"") >&5 | |
12156 | (eval $ac_try) 2>&5 | |
12157 | ac_status=$? | |
12158 | echo "$as_me:12158: \$? = $ac_status" >&5 | |
12159 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
12160 | : |
12161 | else | |
1e487827 VS |
12162 | echo "$as_me: program exited with status $ac_status" >&5 |
12163 | echo "$as_me: failed program was:" >&5 | |
12164 | cat conftest.$ac_ext >&5 | |
12165 | ac_cv_header_stdc=no | |
10f2d63a | 12166 | fi |
1e487827 | 12167 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
10f2d63a | 12168 | fi |
10f2d63a VZ |
12169 | fi |
12170 | fi | |
1e487827 VS |
12171 | echo "$as_me:12171: result: $ac_cv_header_stdc" >&5 |
12172 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
703e0a69 | 12173 | if test $ac_cv_header_stdc = yes; then |
1e487827 VS |
12174 | |
12175 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
12176 | #define STDC_HEADERS 1 |
12177 | EOF | |
12178 | ||
12179 | fi | |
12180 | ||
1e487827 VS |
12181 | for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h |
12182 | do | |
12183 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
12184 | echo "$as_me:12184: checking for $ac_header" >&5 | |
12185 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12186 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
12187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12188 | else | |
12189 | cat >conftest.$ac_ext <<_ACEOF | |
12190 | #line 12190 "configure" | |
6232543b | 12191 | #include "confdefs.h" |
1e487827 VS |
12192 | #include <$ac_header> |
12193 | _ACEOF | |
12194 | if { (eval echo "$as_me:12194: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12195 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12196 | ac_status=$? | |
12197 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12198 | rm -f conftest.er1 | |
12199 | cat conftest.err >&5 | |
12200 | echo "$as_me:12200: \$? = $ac_status" >&5 | |
12201 | (exit $ac_status); } >/dev/null; then | |
12202 | if test -s conftest.err; then | |
12203 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12204 | else | |
12205 | ac_cpp_err= | |
12206 | fi | |
12207 | else | |
12208 | ac_cpp_err=yes | |
12209 | fi | |
12210 | if test -z "$ac_cpp_err"; then | |
12211 | eval "$ac_ac_Header=yes" | |
12212 | else | |
12213 | echo "$as_me: failed program was:" >&5 | |
12214 | cat conftest.$ac_ext >&5 | |
12215 | eval "$ac_ac_Header=no" | |
12216 | fi | |
12217 | rm -f conftest.err conftest.$ac_ext | |
12218 | fi | |
12219 | echo "$as_me:12219: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
12220 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
12221 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
12222 | cat >>confdefs.h <<EOF | |
12223 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
703e0a69 | 12224 | EOF |
1e487827 VS |
12225 | |
12226 | fi | |
12227 | done | |
12228 | ||
12229 | echo "$as_me:12229: checking for mode_t" >&5 | |
12230 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
12231 | if test "${ac_cv_type_mode_t+set}" = set; then | |
12232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12233 | else | |
12234 | cat >conftest.$ac_ext <<_ACEOF | |
12235 | #line 12235 "configure" | |
12236 | #include "confdefs.h" | |
12237 | $ac_includes_default | |
12238 | int | |
12239 | main () | |
12240 | { | |
12241 | if ((mode_t *) 0) | |
12242 | return 0; | |
12243 | if (sizeof (mode_t)) | |
12244 | return 0; | |
12245 | ; | |
12246 | return 0; | |
12247 | } | |
12248 | _ACEOF | |
12249 | rm -f conftest.$ac_objext | |
12250 | if { (eval echo "$as_me:12250: \"$ac_compile\"") >&5 | |
12251 | (eval $ac_compile) 2>&5 | |
12252 | ac_status=$? | |
12253 | echo "$as_me:12253: \$? = $ac_status" >&5 | |
12254 | (exit $ac_status); } && | |
12255 | { ac_try='test -s conftest.$ac_objext' | |
12256 | { (eval echo "$as_me:12256: \"$ac_try\"") >&5 | |
12257 | (eval $ac_try) 2>&5 | |
12258 | ac_status=$? | |
12259 | echo "$as_me:12259: \$? = $ac_status" >&5 | |
12260 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
12261 | ac_cv_type_mode_t=yes |
12262 | else | |
1e487827 VS |
12263 | echo "$as_me: failed program was:" >&5 |
12264 | cat conftest.$ac_ext >&5 | |
12265 | ac_cv_type_mode_t=no | |
10f2d63a | 12266 | fi |
1e487827 | 12267 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 12268 | fi |
1e487827 VS |
12269 | echo "$as_me:12269: result: $ac_cv_type_mode_t" >&5 |
12270 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
12271 | if test $ac_cv_type_mode_t = yes; then | |
12272 | : | |
12273 | else | |
12274 | ||
12275 | cat >>confdefs.h <<EOF | |
10f2d63a VZ |
12276 | #define mode_t int |
12277 | EOF | |
12278 | ||
12279 | fi | |
12280 | ||
1e487827 VS |
12281 | echo "$as_me:12281: checking for off_t" >&5 |
12282 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
12283 | if test "${ac_cv_type_off_t+set}" = set; then | |
12284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 12285 | else |
1e487827 VS |
12286 | cat >conftest.$ac_ext <<_ACEOF |
12287 | #line 12287 "configure" | |
10f2d63a | 12288 | #include "confdefs.h" |
1e487827 VS |
12289 | $ac_includes_default |
12290 | int | |
12291 | main () | |
12292 | { | |
12293 | if ((off_t *) 0) | |
12294 | return 0; | |
12295 | if (sizeof (off_t)) | |
12296 | return 0; | |
12297 | ; | |
12298 | return 0; | |
12299 | } | |
12300 | _ACEOF | |
12301 | rm -f conftest.$ac_objext | |
12302 | if { (eval echo "$as_me:12302: \"$ac_compile\"") >&5 | |
12303 | (eval $ac_compile) 2>&5 | |
12304 | ac_status=$? | |
12305 | echo "$as_me:12305: \$? = $ac_status" >&5 | |
12306 | (exit $ac_status); } && | |
12307 | { ac_try='test -s conftest.$ac_objext' | |
12308 | { (eval echo "$as_me:12308: \"$ac_try\"") >&5 | |
12309 | (eval $ac_try) 2>&5 | |
12310 | ac_status=$? | |
12311 | echo "$as_me:12311: \$? = $ac_status" >&5 | |
12312 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
12313 | ac_cv_type_off_t=yes |
12314 | else | |
1e487827 VS |
12315 | echo "$as_me: failed program was:" >&5 |
12316 | cat conftest.$ac_ext >&5 | |
12317 | ac_cv_type_off_t=no | |
10f2d63a | 12318 | fi |
1e487827 | 12319 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 12320 | fi |
1e487827 VS |
12321 | echo "$as_me:12321: result: $ac_cv_type_off_t" >&5 |
12322 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
12323 | if test $ac_cv_type_off_t = yes; then | |
12324 | : | |
12325 | else | |
12326 | ||
12327 | cat >>confdefs.h <<EOF | |
10f2d63a VZ |
12328 | #define off_t long |
12329 | EOF | |
12330 | ||
12331 | fi | |
12332 | ||
1e487827 VS |
12333 | echo "$as_me:12333: checking for pid_t" >&5 |
12334 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
12335 | if test "${ac_cv_type_pid_t+set}" = set; then | |
12336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 12337 | else |
1e487827 VS |
12338 | cat >conftest.$ac_ext <<_ACEOF |
12339 | #line 12339 "configure" | |
10f2d63a | 12340 | #include "confdefs.h" |
1e487827 VS |
12341 | $ac_includes_default |
12342 | int | |
12343 | main () | |
12344 | { | |
12345 | if ((pid_t *) 0) | |
12346 | return 0; | |
12347 | if (sizeof (pid_t)) | |
12348 | return 0; | |
12349 | ; | |
12350 | return 0; | |
12351 | } | |
12352 | _ACEOF | |
12353 | rm -f conftest.$ac_objext | |
12354 | if { (eval echo "$as_me:12354: \"$ac_compile\"") >&5 | |
12355 | (eval $ac_compile) 2>&5 | |
12356 | ac_status=$? | |
12357 | echo "$as_me:12357: \$? = $ac_status" >&5 | |
12358 | (exit $ac_status); } && | |
12359 | { ac_try='test -s conftest.$ac_objext' | |
12360 | { (eval echo "$as_me:12360: \"$ac_try\"") >&5 | |
12361 | (eval $ac_try) 2>&5 | |
12362 | ac_status=$? | |
12363 | echo "$as_me:12363: \$? = $ac_status" >&5 | |
12364 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
12365 | ac_cv_type_pid_t=yes |
12366 | else | |
1e487827 VS |
12367 | echo "$as_me: failed program was:" >&5 |
12368 | cat conftest.$ac_ext >&5 | |
12369 | ac_cv_type_pid_t=no | |
10f2d63a | 12370 | fi |
1e487827 | 12371 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 12372 | fi |
1e487827 VS |
12373 | echo "$as_me:12373: result: $ac_cv_type_pid_t" >&5 |
12374 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
12375 | if test $ac_cv_type_pid_t = yes; then | |
12376 | : | |
12377 | else | |
12378 | ||
12379 | cat >>confdefs.h <<EOF | |
10f2d63a VZ |
12380 | #define pid_t int |
12381 | EOF | |
12382 | ||
12383 | fi | |
12384 | ||
1e487827 VS |
12385 | echo "$as_me:12385: checking for size_t" >&5 |
12386 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
12387 | if test "${ac_cv_type_size_t+set}" = set; then | |
12388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 12389 | else |
1e487827 VS |
12390 | cat >conftest.$ac_ext <<_ACEOF |
12391 | #line 12391 "configure" | |
10f2d63a | 12392 | #include "confdefs.h" |
1e487827 VS |
12393 | $ac_includes_default |
12394 | int | |
12395 | main () | |
12396 | { | |
12397 | if ((size_t *) 0) | |
12398 | return 0; | |
12399 | if (sizeof (size_t)) | |
12400 | return 0; | |
12401 | ; | |
12402 | return 0; | |
12403 | } | |
12404 | _ACEOF | |
12405 | rm -f conftest.$ac_objext | |
12406 | if { (eval echo "$as_me:12406: \"$ac_compile\"") >&5 | |
12407 | (eval $ac_compile) 2>&5 | |
12408 | ac_status=$? | |
12409 | echo "$as_me:12409: \$? = $ac_status" >&5 | |
12410 | (exit $ac_status); } && | |
12411 | { ac_try='test -s conftest.$ac_objext' | |
12412 | { (eval echo "$as_me:12412: \"$ac_try\"") >&5 | |
12413 | (eval $ac_try) 2>&5 | |
12414 | ac_status=$? | |
12415 | echo "$as_me:12415: \$? = $ac_status" >&5 | |
12416 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
12417 | ac_cv_type_size_t=yes |
12418 | else | |
1e487827 VS |
12419 | echo "$as_me: failed program was:" >&5 |
12420 | cat conftest.$ac_ext >&5 | |
12421 | ac_cv_type_size_t=no | |
10f2d63a | 12422 | fi |
1e487827 | 12423 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 12424 | fi |
1e487827 VS |
12425 | echo "$as_me:12425: result: $ac_cv_type_size_t" >&5 |
12426 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
12427 | if test $ac_cv_type_size_t = yes; then | |
12428 | : | |
12429 | else | |
12430 | ||
12431 | cat >>confdefs.h <<EOF | |
10f2d63a VZ |
12432 | #define size_t unsigned |
12433 | EOF | |
12434 | ||
12435 | fi | |
12436 | ||
1e487827 VS |
12437 | echo "$as_me:12437: checking for uid_t in sys/types.h" >&5 |
12438 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
12439 | if test "${ac_cv_type_uid_t+set}" = set; then | |
12440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 12441 | else |
1e487827 VS |
12442 | cat >conftest.$ac_ext <<_ACEOF |
12443 | #line 12443 "configure" | |
10f2d63a VZ |
12444 | #include "confdefs.h" |
12445 | #include <sys/types.h> | |
1e487827 VS |
12446 | |
12447 | _ACEOF | |
10f2d63a VZ |
12448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12449 | egrep "uid_t" >/dev/null 2>&1; then | |
10f2d63a VZ |
12450 | ac_cv_type_uid_t=yes |
12451 | else | |
10f2d63a VZ |
12452 | ac_cv_type_uid_t=no |
12453 | fi | |
12454 | rm -f conftest* | |
12455 | ||
12456 | fi | |
1e487827 VS |
12457 | echo "$as_me:12457: result: $ac_cv_type_uid_t" >&5 |
12458 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
703e0a69 | 12459 | if test $ac_cv_type_uid_t = no; then |
1e487827 VS |
12460 | |
12461 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
12462 | #define uid_t int |
12463 | EOF | |
12464 | ||
1e487827 | 12465 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
12466 | #define gid_t int |
12467 | EOF | |
12468 | ||
12469 | fi | |
12470 | ||
1e487827 VS |
12471 | echo "$as_me:12471: checking for wchar_t" >&5 |
12472 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
12473 | if test "${wx_cv_type_wchar_t+set}" = set; then | |
12474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 12475 | else |
1e487827 VS |
12476 | |
12477 | cat >conftest.$ac_ext <<_ACEOF | |
12478 | #line 12478 "configure" | |
0046ff7c VS |
12479 | #include "confdefs.h" |
12480 | #include <wchar.h> | |
1e487827 VS |
12481 | int |
12482 | main () | |
12483 | { | |
0046ff7c VS |
12484 | |
12485 | wchar_t wc, *ws; | |
12486 | wc = L'a'; | |
12487 | ws = L"Hello, world!"; | |
1e487827 VS |
12488 | |
12489 | ; | |
12490 | return 0; | |
12491 | } | |
12492 | _ACEOF | |
12493 | rm -f conftest.$ac_objext | |
12494 | if { (eval echo "$as_me:12494: \"$ac_compile\"") >&5 | |
12495 | (eval $ac_compile) 2>&5 | |
12496 | ac_status=$? | |
12497 | echo "$as_me:12497: \$? = $ac_status" >&5 | |
12498 | (exit $ac_status); } && | |
12499 | { ac_try='test -s conftest.$ac_objext' | |
12500 | { (eval echo "$as_me:12500: \"$ac_try\"") >&5 | |
12501 | (eval $ac_try) 2>&5 | |
12502 | ac_status=$? | |
12503 | echo "$as_me:12503: \$? = $ac_status" >&5 | |
12504 | (exit $ac_status); }; }; then | |
1f8ae82f GD |
12505 | wx_cv_type_wchar_t=yes |
12506 | else | |
1e487827 VS |
12507 | echo "$as_me: failed program was:" >&5 |
12508 | cat conftest.$ac_ext >&5 | |
12509 | cat >conftest.$ac_ext <<_ACEOF | |
12510 | #line 12510 "configure" | |
1f8ae82f GD |
12511 | #include "confdefs.h" |
12512 | #include <stdlib.h> | |
1e487827 VS |
12513 | int |
12514 | main () | |
12515 | { | |
1f8ae82f GD |
12516 | |
12517 | wchar_t wc, *ws; | |
12518 | wc = L'a'; | |
12519 | ws = L"Hello, world!"; | |
1e487827 VS |
12520 | |
12521 | ; | |
12522 | return 0; | |
12523 | } | |
12524 | _ACEOF | |
12525 | rm -f conftest.$ac_objext | |
12526 | if { (eval echo "$as_me:12526: \"$ac_compile\"") >&5 | |
12527 | (eval $ac_compile) 2>&5 | |
12528 | ac_status=$? | |
12529 | echo "$as_me:12529: \$? = $ac_status" >&5 | |
12530 | (exit $ac_status); } && | |
12531 | { ac_try='test -s conftest.$ac_objext' | |
12532 | { (eval echo "$as_me:12532: \"$ac_try\"") >&5 | |
12533 | (eval $ac_try) 2>&5 | |
12534 | ac_status=$? | |
12535 | echo "$as_me:12535: \$? = $ac_status" >&5 | |
12536 | (exit $ac_status); }; }; then | |
0046ff7c VS |
12537 | wx_cv_type_wchar_t=yes |
12538 | else | |
1e487827 VS |
12539 | echo "$as_me: failed program was:" >&5 |
12540 | cat conftest.$ac_ext >&5 | |
12541 | wx_cv_type_wchar_t=no | |
0046ff7c | 12542 | fi |
1e487827 | 12543 | rm -f conftest.$ac_objext conftest.$ac_ext |
0046ff7c | 12544 | |
6232543b | 12545 | fi |
1e487827 | 12546 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 12547 | |
1e487827 VS |
12548 | fi |
12549 | echo "$as_me:12549: result: $wx_cv_type_wchar_t" >&5 | |
12550 | echo "${ECHO_T}$wx_cv_type_wchar_t" >&6 | |
0046ff7c | 12551 | if test "$wx_cv_type_wchar_t" = yes ; then |
1e487827 | 12552 | cat >>confdefs.h <<\EOF |
0046ff7c VS |
12553 | #define wxUSE_WCHAR_T 1 |
12554 | EOF | |
12555 | ||
12556 | fi | |
12557 | ||
1e487827 VS |
12558 | echo "$as_me:12558: checking for pw_gecos in struct passwd" >&5 |
12559 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
12560 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
12561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 12562 | else |
1e487827 VS |
12563 | |
12564 | cat >conftest.$ac_ext <<_ACEOF | |
12565 | #line 12565 "configure" | |
b12915c1 VZ |
12566 | #include "confdefs.h" |
12567 | #include <pwd.h> | |
1e487827 VS |
12568 | int |
12569 | main () | |
12570 | { | |
b12915c1 VZ |
12571 | |
12572 | char *p; | |
12573 | struct passwd *pw; | |
12574 | p = pw->pw_gecos; | |
1e487827 VS |
12575 | |
12576 | ; | |
12577 | return 0; | |
12578 | } | |
12579 | _ACEOF | |
12580 | rm -f conftest.$ac_objext | |
12581 | if { (eval echo "$as_me:12581: \"$ac_compile\"") >&5 | |
12582 | (eval $ac_compile) 2>&5 | |
12583 | ac_status=$? | |
12584 | echo "$as_me:12584: \$? = $ac_status" >&5 | |
12585 | (exit $ac_status); } && | |
12586 | { ac_try='test -s conftest.$ac_objext' | |
12587 | { (eval echo "$as_me:12587: \"$ac_try\"") >&5 | |
12588 | (eval $ac_try) 2>&5 | |
12589 | ac_status=$? | |
12590 | echo "$as_me:12590: \$? = $ac_status" >&5 | |
12591 | (exit $ac_status); }; }; then | |
12592 | ||
b12915c1 | 12593 | wx_cv_struct_pw_gecos=yes |
1e487827 | 12594 | |
b12915c1 | 12595 | else |
1e487827 VS |
12596 | echo "$as_me: failed program was:" >&5 |
12597 | cat conftest.$ac_ext >&5 | |
12598 | ||
b12915c1 | 12599 | wx_cv_struct_pw_gecos=no |
b12915c1 | 12600 | |
6232543b | 12601 | fi |
1e487827 | 12602 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 12603 | |
1e487827 VS |
12604 | fi |
12605 | echo "$as_me:12605: result: $wx_cv_struct_pw_gecos" >&5 | |
12606 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
b12915c1 | 12607 | |
bd3277fe | 12608 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
1e487827 | 12609 | cat >>confdefs.h <<\EOF |
bd3277fe VZ |
12610 | #define HAVE_PW_GECOS 1 |
12611 | EOF | |
12612 | ||
12613 | fi | |
12614 | ||
1e487827 VS |
12615 | echo "$as_me:12615: checking for $CC option to accept ANSI C" >&5 |
12616 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
12617 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
12618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 12619 | else |
1e487827 VS |
12620 | ac_cv_prog_cc_stdc=no |
12621 | ac_save_CC=$CC | |
12622 | cat >conftest.$ac_ext <<_ACEOF | |
12623 | #line 12623 "configure" | |
10f2d63a | 12624 | #include "confdefs.h" |
1e487827 VS |
12625 | #include <stdarg.h> |
12626 | #include <stdio.h> | |
12627 | #include <sys/types.h> | |
12628 | #include <sys/stat.h> | |
12629 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
12630 | struct buf { int x; }; | |
12631 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
12632 | static char *e (p, i) | |
12633 | char **p; | |
12634 | int i; | |
12635 | { | |
12636 | return p[i]; | |
10f2d63a | 12637 | } |
1e487827 VS |
12638 | static char *f (char * (*g) (char **, int), char **p, ...) |
12639 | { | |
12640 | char *s; | |
12641 | va_list v; | |
12642 | va_start (v,p); | |
12643 | s = g (p, va_arg (v,int)); | |
12644 | va_end (v); | |
12645 | return s; | |
703e0a69 | 12646 | } |
1e487827 VS |
12647 | int test (int i, double x); |
12648 | struct s1 {int (*f) (int a);}; | |
12649 | struct s2 {int (*f) (double a);}; | |
12650 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
12651 | int argc; | |
12652 | char **argv; | |
12653 | int | |
12654 | main () | |
12655 | { | |
12656 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
12657 | ; | |
12658 | return 0; | |
6232543b | 12659 | } |
1e487827 VS |
12660 | _ACEOF |
12661 | # Don't try gcc -ansi; that turns off useful extensions and | |
12662 | # breaks some systems' header files. | |
12663 | # AIX -qlanglvl=ansi | |
12664 | # Ultrix and OSF/1 -std1 | |
12665 | # HP-UX 10.20 and later -Ae | |
12666 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
12667 | # SVR4 -Xc -D__EXTENSIONS__ | |
12668 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
12669 | do | |
12670 | CC="$ac_save_CC $ac_arg" | |
12671 | rm -f conftest.$ac_objext | |
12672 | if { (eval echo "$as_me:12672: \"$ac_compile\"") >&5 | |
12673 | (eval $ac_compile) 2>&5 | |
12674 | ac_status=$? | |
12675 | echo "$as_me:12675: \$? = $ac_status" >&5 | |
12676 | (exit $ac_status); } && | |
12677 | { ac_try='test -s conftest.$ac_objext' | |
12678 | { (eval echo "$as_me:12678: \"$ac_try\"") >&5 | |
12679 | (eval $ac_try) 2>&5 | |
12680 | ac_status=$? | |
12681 | echo "$as_me:12681: \$? = $ac_status" >&5 | |
12682 | (exit $ac_status); }; }; then | |
12683 | ac_cv_prog_cc_stdc=$ac_arg | |
12684 | break | |
12685 | else | |
12686 | echo "$as_me: failed program was:" >&5 | |
12687 | cat conftest.$ac_ext >&5 | |
12688 | fi | |
12689 | rm -f conftest.$ac_objext | |
12690 | done | |
12691 | rm -f conftest.$ac_ext conftest.$ac_objext | |
12692 | CC=$ac_save_CC | |
703e0a69 | 12693 | |
1e487827 VS |
12694 | fi |
12695 | ||
12696 | case "x$ac_cv_prog_cc_stdc" in | |
12697 | x|xno) | |
12698 | echo "$as_me:12698: result: none needed" >&5 | |
12699 | echo "${ECHO_T}none needed" >&6 ;; | |
12700 | *) | |
12701 | echo "$as_me:12701: result: $ac_cv_prog_cc_stdc" >&5 | |
12702 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12703 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12704 | esac | |
12705 | ||
12706 | echo "$as_me:12706: checking for an ANSI C-conforming const" >&5 | |
12707 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
12708 | if test "${ac_cv_c_const+set}" = set; then | |
12709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12710 | else | |
12711 | cat >conftest.$ac_ext <<_ACEOF | |
12712 | #line 12712 "configure" | |
12713 | #include "confdefs.h" | |
12714 | ||
12715 | int | |
12716 | main () | |
12717 | { | |
12718 | /* FIXME: Include the comments suggested by Paul. */ | |
12719 | #ifndef __cplusplus | |
12720 | /* Ultrix mips cc rejects this. */ | |
12721 | typedef int charset[2]; | |
12722 | const charset x; | |
12723 | /* SunOS 4.1.1 cc rejects this. */ | |
12724 | char const *const *ccp; | |
12725 | char **p; | |
12726 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12727 | struct point {int x, y;}; | |
12728 | static struct point const zero = {0,0}; | |
12729 | /* AIX XL C 1.02.0.0 rejects this. | |
12730 | It does not let you subtract one const X* pointer from another in | |
12731 | an arm of an if-expression whose if-part is not a constant | |
12732 | expression */ | |
12733 | const char *g = "string"; | |
12734 | ccp = &g + (g ? g-g : 0); | |
12735 | /* HPUX 7.0 cc rejects these. */ | |
12736 | ++ccp; | |
12737 | p = (char**) ccp; | |
12738 | ccp = (char const *const *) p; | |
12739 | { /* SCO 3.2v4 cc rejects this. */ | |
12740 | char *t; | |
12741 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12742 | ||
12743 | *t++ = 0; | |
12744 | } | |
12745 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12746 | int x[] = {25, 17}; | |
12747 | const int *foo = &x[0]; | |
12748 | ++foo; | |
12749 | } | |
12750 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12751 | typedef const int *iptr; | |
12752 | iptr p = 0; | |
12753 | ++p; | |
12754 | } | |
12755 | { /* AIX XL C 1.02.0.0 rejects this saying | |
12756 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12757 | struct s { int j; const int *ap[3]; }; | |
12758 | struct s *b; b->j = 5; | |
12759 | } | |
12760 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12761 | const int foo = 10; | |
12762 | } | |
12763 | #endif | |
12764 | ||
12765 | ; | |
12766 | return 0; | |
12767 | } | |
12768 | _ACEOF | |
12769 | rm -f conftest.$ac_objext | |
12770 | if { (eval echo "$as_me:12770: \"$ac_compile\"") >&5 | |
12771 | (eval $ac_compile) 2>&5 | |
12772 | ac_status=$? | |
12773 | echo "$as_me:12773: \$? = $ac_status" >&5 | |
12774 | (exit $ac_status); } && | |
12775 | { ac_try='test -s conftest.$ac_objext' | |
12776 | { (eval echo "$as_me:12776: \"$ac_try\"") >&5 | |
12777 | (eval $ac_try) 2>&5 | |
12778 | ac_status=$? | |
12779 | echo "$as_me:12779: \$? = $ac_status" >&5 | |
12780 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
12781 | ac_cv_c_const=yes |
12782 | else | |
1e487827 VS |
12783 | echo "$as_me: failed program was:" >&5 |
12784 | cat conftest.$ac_ext >&5 | |
12785 | ac_cv_c_const=no | |
10f2d63a | 12786 | fi |
1e487827 | 12787 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a | 12788 | fi |
1e487827 VS |
12789 | echo "$as_me:12789: result: $ac_cv_c_const" >&5 |
12790 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
703e0a69 | 12791 | if test $ac_cv_c_const = no; then |
1e487827 VS |
12792 | |
12793 | cat >>confdefs.h <<\EOF | |
12794 | #define const | |
10f2d63a VZ |
12795 | EOF |
12796 | ||
12797 | fi | |
12798 | ||
1e487827 VS |
12799 | echo "$as_me:12799: checking for inline" >&5 |
12800 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
12801 | if test "${ac_cv_c_inline+set}" = set; then | |
12802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
12803 | else |
12804 | ac_cv_c_inline=no | |
12805 | for ac_kw in inline __inline__ __inline; do | |
1e487827 VS |
12806 | cat >conftest.$ac_ext <<_ACEOF |
12807 | #line 12807 "configure" | |
10f2d63a | 12808 | #include "confdefs.h" |
1e487827 VS |
12809 | #ifndef __cplusplus |
12810 | static $ac_kw int static_foo () {return 0; } | |
12811 | $ac_kw int foo () {return 0; } | |
12812 | #endif | |
10f2d63a | 12813 | |
1e487827 VS |
12814 | _ACEOF |
12815 | rm -f conftest.$ac_objext | |
12816 | if { (eval echo "$as_me:12816: \"$ac_compile\"") >&5 | |
12817 | (eval $ac_compile) 2>&5 | |
12818 | ac_status=$? | |
12819 | echo "$as_me:12819: \$? = $ac_status" >&5 | |
12820 | (exit $ac_status); } && | |
12821 | { ac_try='test -s conftest.$ac_objext' | |
12822 | { (eval echo "$as_me:12822: \"$ac_try\"") >&5 | |
12823 | (eval $ac_try) 2>&5 | |
12824 | ac_status=$? | |
12825 | echo "$as_me:12825: \$? = $ac_status" >&5 | |
12826 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
12827 | ac_cv_c_inline=$ac_kw; break |
12828 | else | |
1e487827 VS |
12829 | echo "$as_me: failed program was:" >&5 |
12830 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12831 | fi |
1e487827 | 12832 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a VZ |
12833 | done |
12834 | ||
12835 | fi | |
1e487827 VS |
12836 | echo "$as_me:12836: result: $ac_cv_c_inline" >&5 |
12837 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
12838 | case $ac_cv_c_inline in | |
10f2d63a | 12839 | inline | yes) ;; |
1e487827 VS |
12840 | no) |
12841 | cat >>confdefs.h <<\EOF | |
12842 | #define inline | |
10f2d63a VZ |
12843 | EOF |
12844 | ;; | |
1e487827 | 12845 | *) cat >>confdefs.h <<EOF |
10f2d63a VZ |
12846 | #define inline $ac_cv_c_inline |
12847 | EOF | |
12848 | ;; | |
12849 | esac | |
12850 | ||
1e487827 VS |
12851 | echo "$as_me:12851: checking for char" >&5 |
12852 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
12853 | if test "${ac_cv_type_char+set}" = set; then | |
12854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 12855 | else |
1e487827 VS |
12856 | cat >conftest.$ac_ext <<_ACEOF |
12857 | #line 12857 "configure" | |
12858 | #include "confdefs.h" | |
12859 | $ac_includes_default | |
12860 | int | |
12861 | main () | |
12862 | { | |
12863 | if ((char *) 0) | |
12864 | return 0; | |
12865 | if (sizeof (char)) | |
12866 | return 0; | |
12867 | ; | |
12868 | return 0; | |
12869 | } | |
12870 | _ACEOF | |
12871 | rm -f conftest.$ac_objext | |
12872 | if { (eval echo "$as_me:12872: \"$ac_compile\"") >&5 | |
12873 | (eval $ac_compile) 2>&5 | |
12874 | ac_status=$? | |
12875 | echo "$as_me:12875: \$? = $ac_status" >&5 | |
12876 | (exit $ac_status); } && | |
12877 | { ac_try='test -s conftest.$ac_objext' | |
12878 | { (eval echo "$as_me:12878: \"$ac_try\"") >&5 | |
12879 | (eval $ac_try) 2>&5 | |
12880 | ac_status=$? | |
12881 | echo "$as_me:12881: \$? = $ac_status" >&5 | |
12882 | (exit $ac_status); }; }; then | |
12883 | ac_cv_type_char=yes | |
12884 | else | |
12885 | echo "$as_me: failed program was:" >&5 | |
12886 | cat conftest.$ac_ext >&5 | |
12887 | ac_cv_type_char=no | |
12888 | fi | |
12889 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12890 | fi | |
12891 | echo "$as_me:12891: result: $ac_cv_type_char" >&5 | |
12892 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
12893 | ||
12894 | echo "$as_me:12894: checking size of char" >&5 | |
12895 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
12896 | if test "${ac_cv_sizeof_char+set}" = set; then | |
12897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12898 | else | |
12899 | if test "$ac_cv_type_char" = yes; then | |
6232543b | 12900 | if test "$cross_compiling" = yes; then |
1e487827 VS |
12901 | # Depending upon the size, compute the lo and hi bounds. |
12902 | cat >conftest.$ac_ext <<_ACEOF | |
12903 | #line 12903 "configure" | |
12904 | #include "confdefs.h" | |
12905 | $ac_includes_default | |
12906 | int | |
12907 | main () | |
12908 | { | |
12909 | int _array_ [1 - 2 * !((sizeof (char)) >= 0)] | |
12910 | ; | |
12911 | return 0; | |
12912 | } | |
12913 | _ACEOF | |
12914 | rm -f conftest.$ac_objext | |
12915 | if { (eval echo "$as_me:12915: \"$ac_compile\"") >&5 | |
12916 | (eval $ac_compile) 2>&5 | |
12917 | ac_status=$? | |
12918 | echo "$as_me:12918: \$? = $ac_status" >&5 | |
12919 | (exit $ac_status); } && | |
12920 | { ac_try='test -s conftest.$ac_objext' | |
12921 | { (eval echo "$as_me:12921: \"$ac_try\"") >&5 | |
12922 | (eval $ac_try) 2>&5 | |
12923 | ac_status=$? | |
12924 | echo "$as_me:12924: \$? = $ac_status" >&5 | |
12925 | (exit $ac_status); }; }; then | |
12926 | ac_lo=0 ac_mid=0 | |
12927 | while :; do | |
12928 | cat >conftest.$ac_ext <<_ACEOF | |
12929 | #line 12929 "configure" | |
12930 | #include "confdefs.h" | |
12931 | $ac_includes_default | |
12932 | int | |
12933 | main () | |
12934 | { | |
12935 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | |
12936 | ; | |
12937 | return 0; | |
12938 | } | |
12939 | _ACEOF | |
12940 | rm -f conftest.$ac_objext | |
12941 | if { (eval echo "$as_me:12941: \"$ac_compile\"") >&5 | |
12942 | (eval $ac_compile) 2>&5 | |
12943 | ac_status=$? | |
12944 | echo "$as_me:12944: \$? = $ac_status" >&5 | |
12945 | (exit $ac_status); } && | |
12946 | { ac_try='test -s conftest.$ac_objext' | |
12947 | { (eval echo "$as_me:12947: \"$ac_try\"") >&5 | |
12948 | (eval $ac_try) 2>&5 | |
12949 | ac_status=$? | |
12950 | echo "$as_me:12950: \$? = $ac_status" >&5 | |
12951 | (exit $ac_status); }; }; then | |
12952 | ac_hi=$ac_mid; break | |
12953 | else | |
12954 | echo "$as_me: failed program was:" >&5 | |
12955 | cat conftest.$ac_ext >&5 | |
12956 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | |
12957 | fi | |
12958 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12959 | done | |
6232543b | 12960 | else |
1e487827 VS |
12961 | echo "$as_me: failed program was:" >&5 |
12962 | cat conftest.$ac_ext >&5 | |
12963 | ac_hi=-1 ac_mid=-1 | |
12964 | while :; do | |
12965 | cat >conftest.$ac_ext <<_ACEOF | |
12966 | #line 12966 "configure" | |
6232543b | 12967 | #include "confdefs.h" |
1e487827 VS |
12968 | $ac_includes_default |
12969 | int | |
12970 | main () | |
6232543b | 12971 | { |
1e487827 VS |
12972 | int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)] |
12973 | ; | |
12974 | return 0; | |
6232543b | 12975 | } |
1e487827 VS |
12976 | _ACEOF |
12977 | rm -f conftest.$ac_objext | |
12978 | if { (eval echo "$as_me:12978: \"$ac_compile\"") >&5 | |
12979 | (eval $ac_compile) 2>&5 | |
12980 | ac_status=$? | |
12981 | echo "$as_me:12981: \$? = $ac_status" >&5 | |
12982 | (exit $ac_status); } && | |
12983 | { ac_try='test -s conftest.$ac_objext' | |
12984 | { (eval echo "$as_me:12984: \"$ac_try\"") >&5 | |
12985 | (eval $ac_try) 2>&5 | |
12986 | ac_status=$? | |
12987 | echo "$as_me:12987: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); }; }; then | |
12989 | ac_lo=$ac_mid; break | |
12990 | else | |
12991 | echo "$as_me: failed program was:" >&5 | |
12992 | cat conftest.$ac_ext >&5 | |
12993 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | |
12994 | fi | |
12995 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12996 | done | |
12997 | fi | |
12998 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12999 | # Binary search between lo and hi bounds. | |
13000 | while test "x$ac_lo" != "x$ac_hi"; do | |
13001 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13002 | cat >conftest.$ac_ext <<_ACEOF | |
13003 | #line 13003 "configure" | |
13004 | #include "confdefs.h" | |
13005 | $ac_includes_default | |
13006 | int | |
13007 | main () | |
13008 | { | |
13009 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | |
13010 | ; | |
13011 | return 0; | |
13012 | } | |
13013 | _ACEOF | |
13014 | rm -f conftest.$ac_objext | |
13015 | if { (eval echo "$as_me:13015: \"$ac_compile\"") >&5 | |
13016 | (eval $ac_compile) 2>&5 | |
13017 | ac_status=$? | |
13018 | echo "$as_me:13018: \$? = $ac_status" >&5 | |
13019 | (exit $ac_status); } && | |
13020 | { ac_try='test -s conftest.$ac_objext' | |
13021 | { (eval echo "$as_me:13021: \"$ac_try\"") >&5 | |
13022 | (eval $ac_try) 2>&5 | |
13023 | ac_status=$? | |
13024 | echo "$as_me:13024: \$? = $ac_status" >&5 | |
13025 | (exit $ac_status); }; }; then | |
13026 | ac_hi=$ac_mid | |
13027 | else | |
13028 | echo "$as_me: failed program was:" >&5 | |
13029 | cat conftest.$ac_ext >&5 | |
13030 | ac_lo=`expr $ac_mid + 1` | |
13031 | fi | |
13032 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13033 | done | |
13034 | ac_cv_sizeof_char=$ac_lo | |
6232543b | 13035 | else |
1e487827 VS |
13036 | if test "$cross_compiling" = yes; then |
13037 | { { echo "$as_me:13037: error: cannot run test program while cross compiling" >&5 | |
13038 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13039 | { (exit 1); exit 1; }; } | |
13040 | else | |
13041 | cat >conftest.$ac_ext <<_ACEOF | |
13042 | #line 13042 "configure" | |
13043 | #include "confdefs.h" | |
13044 | $ac_includes_default | |
13045 | int | |
13046 | main () | |
13047 | { | |
13048 | FILE *f = fopen ("conftest.val", "w"); | |
13049 | if (!f) | |
13050 | exit (1); | |
13051 | fprintf (f, "%d", (sizeof (char))); | |
13052 | fclose (f); | |
13053 | ; | |
13054 | return 0; | |
13055 | } | |
13056 | _ACEOF | |
13057 | rm -f conftest$ac_exeext | |
13058 | if { (eval echo "$as_me:13058: \"$ac_link\"") >&5 | |
13059 | (eval $ac_link) 2>&5 | |
13060 | ac_status=$? | |
13061 | echo "$as_me:13061: \$? = $ac_status" >&5 | |
13062 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13063 | { (eval echo "$as_me:13063: \"$ac_try\"") >&5 | |
13064 | (eval $ac_try) 2>&5 | |
13065 | ac_status=$? | |
13066 | echo "$as_me:13066: \$? = $ac_status" >&5 | |
13067 | (exit $ac_status); }; }; then | |
13068 | ac_cv_sizeof_char=`cat conftest.val` | |
13069 | else | |
13070 | echo "$as_me: program exited with status $ac_status" >&5 | |
13071 | echo "$as_me: failed program was:" >&5 | |
13072 | cat conftest.$ac_ext >&5 | |
6232543b | 13073 | fi |
1e487827 | 13074 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
6232543b | 13075 | fi |
6232543b | 13076 | fi |
1e487827 VS |
13077 | rm -f conftest.val |
13078 | else | |
13079 | ac_cv_sizeof_char=0 | |
13080 | fi | |
13081 | fi | |
13082 | echo "$as_me:13082: result: $ac_cv_sizeof_char" >&5 | |
13083 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
13084 | cat >>confdefs.h <<EOF | |
703e0a69 | 13085 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
13086 | EOF |
13087 | ||
1e487827 VS |
13088 | echo "$as_me:13088: checking for short" >&5 |
13089 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
13090 | if test "${ac_cv_type_short+set}" = set; then | |
13091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13092 | else | |
13093 | cat >conftest.$ac_ext <<_ACEOF | |
13094 | #line 13094 "configure" | |
13095 | #include "confdefs.h" | |
13096 | $ac_includes_default | |
13097 | int | |
13098 | main () | |
13099 | { | |
13100 | if ((short *) 0) | |
13101 | return 0; | |
13102 | if (sizeof (short)) | |
13103 | return 0; | |
13104 | ; | |
13105 | return 0; | |
13106 | } | |
13107 | _ACEOF | |
13108 | rm -f conftest.$ac_objext | |
13109 | if { (eval echo "$as_me:13109: \"$ac_compile\"") >&5 | |
13110 | (eval $ac_compile) 2>&5 | |
13111 | ac_status=$? | |
13112 | echo "$as_me:13112: \$? = $ac_status" >&5 | |
13113 | (exit $ac_status); } && | |
13114 | { ac_try='test -s conftest.$ac_objext' | |
13115 | { (eval echo "$as_me:13115: \"$ac_try\"") >&5 | |
13116 | (eval $ac_try) 2>&5 | |
13117 | ac_status=$? | |
13118 | echo "$as_me:13118: \$? = $ac_status" >&5 | |
13119 | (exit $ac_status); }; }; then | |
13120 | ac_cv_type_short=yes | |
13121 | else | |
13122 | echo "$as_me: failed program was:" >&5 | |
13123 | cat conftest.$ac_ext >&5 | |
13124 | ac_cv_type_short=no | |
13125 | fi | |
13126 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13127 | fi | |
13128 | echo "$as_me:13128: result: $ac_cv_type_short" >&5 | |
13129 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
13130 | ||
13131 | echo "$as_me:13131: checking size of short" >&5 | |
13132 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
13133 | if test "${ac_cv_sizeof_short+set}" = set; then | |
13134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13135 | else | |
13136 | if test "$ac_cv_type_short" = yes; then | |
13137 | if test "$cross_compiling" = yes; then | |
13138 | # Depending upon the size, compute the lo and hi bounds. | |
13139 | cat >conftest.$ac_ext <<_ACEOF | |
13140 | #line 13140 "configure" | |
13141 | #include "confdefs.h" | |
13142 | $ac_includes_default | |
13143 | int | |
13144 | main () | |
13145 | { | |
13146 | int _array_ [1 - 2 * !((sizeof (short)) >= 0)] | |
13147 | ; | |
13148 | return 0; | |
13149 | } | |
13150 | _ACEOF | |
13151 | rm -f conftest.$ac_objext | |
13152 | if { (eval echo "$as_me:13152: \"$ac_compile\"") >&5 | |
13153 | (eval $ac_compile) 2>&5 | |
13154 | ac_status=$? | |
13155 | echo "$as_me:13155: \$? = $ac_status" >&5 | |
13156 | (exit $ac_status); } && | |
13157 | { ac_try='test -s conftest.$ac_objext' | |
13158 | { (eval echo "$as_me:13158: \"$ac_try\"") >&5 | |
13159 | (eval $ac_try) 2>&5 | |
13160 | ac_status=$? | |
13161 | echo "$as_me:13161: \$? = $ac_status" >&5 | |
13162 | (exit $ac_status); }; }; then | |
13163 | ac_lo=0 ac_mid=0 | |
13164 | while :; do | |
13165 | cat >conftest.$ac_ext <<_ACEOF | |
13166 | #line 13166 "configure" | |
13167 | #include "confdefs.h" | |
13168 | $ac_includes_default | |
13169 | int | |
13170 | main () | |
13171 | { | |
13172 | int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)] | |
13173 | ; | |
13174 | return 0; | |
13175 | } | |
13176 | _ACEOF | |
13177 | rm -f conftest.$ac_objext | |
13178 | if { (eval echo "$as_me:13178: \"$ac_compile\"") >&5 | |
13179 | (eval $ac_compile) 2>&5 | |
13180 | ac_status=$? | |
13181 | echo "$as_me:13181: \$? = $ac_status" >&5 | |
13182 | (exit $ac_status); } && | |
13183 | { ac_try='test -s conftest.$ac_objext' | |
13184 | { (eval echo "$as_me:13184: \"$ac_try\"") >&5 | |
13185 | (eval $ac_try) 2>&5 | |
13186 | ac_status=$? | |
13187 | echo "$as_me:13187: \$? = $ac_status" >&5 | |
13188 | (exit $ac_status); }; }; then | |
13189 | ac_hi=$ac_mid; break | |
13190 | else | |
13191 | echo "$as_me: failed program was:" >&5 | |
13192 | cat conftest.$ac_ext >&5 | |
13193 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | |
13194 | fi | |
13195 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13196 | done | |
13197 | else | |
13198 | echo "$as_me: failed program was:" >&5 | |
13199 | cat conftest.$ac_ext >&5 | |
13200 | ac_hi=-1 ac_mid=-1 | |
13201 | while :; do | |
13202 | cat >conftest.$ac_ext <<_ACEOF | |
13203 | #line 13203 "configure" | |
13204 | #include "confdefs.h" | |
13205 | $ac_includes_default | |
13206 | int | |
13207 | main () | |
13208 | { | |
13209 | int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)] | |
13210 | ; | |
13211 | return 0; | |
13212 | } | |
13213 | _ACEOF | |
13214 | rm -f conftest.$ac_objext | |
13215 | if { (eval echo "$as_me:13215: \"$ac_compile\"") >&5 | |
13216 | (eval $ac_compile) 2>&5 | |
13217 | ac_status=$? | |
13218 | echo "$as_me:13218: \$? = $ac_status" >&5 | |
13219 | (exit $ac_status); } && | |
13220 | { ac_try='test -s conftest.$ac_objext' | |
13221 | { (eval echo "$as_me:13221: \"$ac_try\"") >&5 | |
13222 | (eval $ac_try) 2>&5 | |
13223 | ac_status=$? | |
13224 | echo "$as_me:13224: \$? = $ac_status" >&5 | |
13225 | (exit $ac_status); }; }; then | |
13226 | ac_lo=$ac_mid; break | |
13227 | else | |
13228 | echo "$as_me: failed program was:" >&5 | |
13229 | cat conftest.$ac_ext >&5 | |
13230 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | |
13231 | fi | |
13232 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13233 | done | |
13234 | fi | |
13235 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13236 | # Binary search between lo and hi bounds. | |
13237 | while test "x$ac_lo" != "x$ac_hi"; do | |
13238 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13239 | cat >conftest.$ac_ext <<_ACEOF | |
13240 | #line 13240 "configure" | |
13241 | #include "confdefs.h" | |
13242 | $ac_includes_default | |
13243 | int | |
13244 | main () | |
13245 | { | |
13246 | int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)] | |
13247 | ; | |
13248 | return 0; | |
13249 | } | |
13250 | _ACEOF | |
13251 | rm -f conftest.$ac_objext | |
13252 | if { (eval echo "$as_me:13252: \"$ac_compile\"") >&5 | |
13253 | (eval $ac_compile) 2>&5 | |
13254 | ac_status=$? | |
13255 | echo "$as_me:13255: \$? = $ac_status" >&5 | |
13256 | (exit $ac_status); } && | |
13257 | { ac_try='test -s conftest.$ac_objext' | |
13258 | { (eval echo "$as_me:13258: \"$ac_try\"") >&5 | |
13259 | (eval $ac_try) 2>&5 | |
13260 | ac_status=$? | |
13261 | echo "$as_me:13261: \$? = $ac_status" >&5 | |
13262 | (exit $ac_status); }; }; then | |
13263 | ac_hi=$ac_mid | |
13264 | else | |
13265 | echo "$as_me: failed program was:" >&5 | |
13266 | cat conftest.$ac_ext >&5 | |
13267 | ac_lo=`expr $ac_mid + 1` | |
13268 | fi | |
13269 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13270 | done | |
13271 | ac_cv_sizeof_short=$ac_lo | |
6232543b | 13272 | else |
6232543b | 13273 | if test "$cross_compiling" = yes; then |
1e487827 VS |
13274 | { { echo "$as_me:13274: error: cannot run test program while cross compiling" >&5 |
13275 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13276 | { (exit 1); exit 1; }; } | |
6232543b | 13277 | else |
1e487827 VS |
13278 | cat >conftest.$ac_ext <<_ACEOF |
13279 | #line 13279 "configure" | |
6232543b | 13280 | #include "confdefs.h" |
1e487827 VS |
13281 | $ac_includes_default |
13282 | int | |
13283 | main () | |
6232543b | 13284 | { |
1e487827 VS |
13285 | FILE *f = fopen ("conftest.val", "w"); |
13286 | if (!f) | |
13287 | exit (1); | |
13288 | fprintf (f, "%d", (sizeof (short))); | |
13289 | fclose (f); | |
13290 | ; | |
13291 | return 0; | |
6232543b | 13292 | } |
1e487827 VS |
13293 | _ACEOF |
13294 | rm -f conftest$ac_exeext | |
13295 | if { (eval echo "$as_me:13295: \"$ac_link\"") >&5 | |
13296 | (eval $ac_link) 2>&5 | |
13297 | ac_status=$? | |
13298 | echo "$as_me:13298: \$? = $ac_status" >&5 | |
13299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13300 | { (eval echo "$as_me:13300: \"$ac_try\"") >&5 | |
13301 | (eval $ac_try) 2>&5 | |
13302 | ac_status=$? | |
13303 | echo "$as_me:13303: \$? = $ac_status" >&5 | |
13304 | (exit $ac_status); }; }; then | |
13305 | ac_cv_sizeof_short=`cat conftest.val` | |
13306 | else | |
13307 | echo "$as_me: program exited with status $ac_status" >&5 | |
13308 | echo "$as_me: failed program was:" >&5 | |
13309 | cat conftest.$ac_ext >&5 | |
13310 | fi | |
13311 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext | |
13312 | fi | |
13313 | fi | |
13314 | rm -f conftest.val | |
6232543b | 13315 | else |
703e0a69 | 13316 | ac_cv_sizeof_short=0 |
6232543b VS |
13317 | fi |
13318 | fi | |
1e487827 VS |
13319 | echo "$as_me:13319: result: $ac_cv_sizeof_short" >&5 |
13320 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
13321 | cat >>confdefs.h <<EOF | |
13322 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13323 | EOF | |
6232543b | 13324 | |
1e487827 VS |
13325 | echo "$as_me:13325: checking for int *" >&5 |
13326 | echo $ECHO_N "checking for int *... $ECHO_C" >&6 | |
13327 | if test "${ac_cv_type_int_p+set}" = set; then | |
13328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13329 | else | |
13330 | cat >conftest.$ac_ext <<_ACEOF | |
13331 | #line 13331 "configure" | |
13332 | #include "confdefs.h" | |
13333 | $ac_includes_default | |
13334 | int | |
13335 | main () | |
13336 | { | |
13337 | if ((int * *) 0) | |
13338 | return 0; | |
13339 | if (sizeof (int *)) | |
13340 | return 0; | |
13341 | ; | |
13342 | return 0; | |
13343 | } | |
13344 | _ACEOF | |
13345 | rm -f conftest.$ac_objext | |
13346 | if { (eval echo "$as_me:13346: \"$ac_compile\"") >&5 | |
13347 | (eval $ac_compile) 2>&5 | |
13348 | ac_status=$? | |
13349 | echo "$as_me:13349: \$? = $ac_status" >&5 | |
13350 | (exit $ac_status); } && | |
13351 | { ac_try='test -s conftest.$ac_objext' | |
13352 | { (eval echo "$as_me:13352: \"$ac_try\"") >&5 | |
13353 | (eval $ac_try) 2>&5 | |
13354 | ac_status=$? | |
13355 | echo "$as_me:13355: \$? = $ac_status" >&5 | |
13356 | (exit $ac_status); }; }; then | |
13357 | ac_cv_type_int_p=yes | |
13358 | else | |
13359 | echo "$as_me: failed program was:" >&5 | |
13360 | cat conftest.$ac_ext >&5 | |
13361 | ac_cv_type_int_p=no | |
13362 | fi | |
13363 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13364 | fi | |
13365 | echo "$as_me:13365: result: $ac_cv_type_int_p" >&5 | |
13366 | echo "${ECHO_T}$ac_cv_type_int_p" >&6 | |
13367 | ||
13368 | echo "$as_me:13368: checking size of int *" >&5 | |
13369 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6 | |
13370 | if test "${ac_cv_sizeof_int_p+set}" = set; then | |
13371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13372 | else | |
13373 | if test "$ac_cv_type_int_p" = yes; then | |
13374 | if test "$cross_compiling" = yes; then | |
13375 | # Depending upon the size, compute the lo and hi bounds. | |
13376 | cat >conftest.$ac_ext <<_ACEOF | |
13377 | #line 13377 "configure" | |
13378 | #include "confdefs.h" | |
13379 | $ac_includes_default | |
13380 | int | |
13381 | main () | |
13382 | { | |
13383 | int _array_ [1 - 2 * !((sizeof (int *)) >= 0)] | |
13384 | ; | |
13385 | return 0; | |
13386 | } | |
13387 | _ACEOF | |
13388 | rm -f conftest.$ac_objext | |
13389 | if { (eval echo "$as_me:13389: \"$ac_compile\"") >&5 | |
13390 | (eval $ac_compile) 2>&5 | |
13391 | ac_status=$? | |
13392 | echo "$as_me:13392: \$? = $ac_status" >&5 | |
13393 | (exit $ac_status); } && | |
13394 | { ac_try='test -s conftest.$ac_objext' | |
13395 | { (eval echo "$as_me:13395: \"$ac_try\"") >&5 | |
13396 | (eval $ac_try) 2>&5 | |
13397 | ac_status=$? | |
13398 | echo "$as_me:13398: \$? = $ac_status" >&5 | |
13399 | (exit $ac_status); }; }; then | |
13400 | ac_lo=0 ac_mid=0 | |
13401 | while :; do | |
13402 | cat >conftest.$ac_ext <<_ACEOF | |
13403 | #line 13403 "configure" | |
13404 | #include "confdefs.h" | |
13405 | $ac_includes_default | |
13406 | int | |
13407 | main () | |
13408 | { | |
13409 | int _array_ [1 - 2 * !((sizeof (int *)) <= $ac_mid)] | |
13410 | ; | |
13411 | return 0; | |
13412 | } | |
13413 | _ACEOF | |
13414 | rm -f conftest.$ac_objext | |
13415 | if { (eval echo "$as_me:13415: \"$ac_compile\"") >&5 | |
13416 | (eval $ac_compile) 2>&5 | |
13417 | ac_status=$? | |
13418 | echo "$as_me:13418: \$? = $ac_status" >&5 | |
13419 | (exit $ac_status); } && | |
13420 | { ac_try='test -s conftest.$ac_objext' | |
13421 | { (eval echo "$as_me:13421: \"$ac_try\"") >&5 | |
13422 | (eval $ac_try) 2>&5 | |
13423 | ac_status=$? | |
13424 | echo "$as_me:13424: \$? = $ac_status" >&5 | |
13425 | (exit $ac_status); }; }; then | |
13426 | ac_hi=$ac_mid; break | |
13427 | else | |
13428 | echo "$as_me: failed program was:" >&5 | |
13429 | cat conftest.$ac_ext >&5 | |
13430 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | |
13431 | fi | |
13432 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13433 | done | |
13434 | else | |
13435 | echo "$as_me: failed program was:" >&5 | |
13436 | cat conftest.$ac_ext >&5 | |
13437 | ac_hi=-1 ac_mid=-1 | |
13438 | while :; do | |
13439 | cat >conftest.$ac_ext <<_ACEOF | |
13440 | #line 13440 "configure" | |
13441 | #include "confdefs.h" | |
13442 | $ac_includes_default | |
13443 | int | |
13444 | main () | |
13445 | { | |
13446 | int _array_ [1 - 2 * !((sizeof (int *)) >= $ac_mid)] | |
13447 | ; | |
13448 | return 0; | |
13449 | } | |
13450 | _ACEOF | |
13451 | rm -f conftest.$ac_objext | |
13452 | if { (eval echo "$as_me:13452: \"$ac_compile\"") >&5 | |
13453 | (eval $ac_compile) 2>&5 | |
13454 | ac_status=$? | |
13455 | echo "$as_me:13455: \$? = $ac_status" >&5 | |
13456 | (exit $ac_status); } && | |
13457 | { ac_try='test -s conftest.$ac_objext' | |
13458 | { (eval echo "$as_me:13458: \"$ac_try\"") >&5 | |
13459 | (eval $ac_try) 2>&5 | |
13460 | ac_status=$? | |
13461 | echo "$as_me:13461: \$? = $ac_status" >&5 | |
13462 | (exit $ac_status); }; }; then | |
13463 | ac_lo=$ac_mid; break | |
13464 | else | |
13465 | echo "$as_me: failed program was:" >&5 | |
13466 | cat conftest.$ac_ext >&5 | |
13467 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | |
13468 | fi | |
13469 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13470 | done | |
10f2d63a | 13471 | fi |
1e487827 VS |
13472 | rm -f conftest.$ac_objext conftest.$ac_ext |
13473 | # Binary search between lo and hi bounds. | |
13474 | while test "x$ac_lo" != "x$ac_hi"; do | |
13475 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13476 | cat >conftest.$ac_ext <<_ACEOF | |
13477 | #line 13477 "configure" | |
13478 | #include "confdefs.h" | |
13479 | $ac_includes_default | |
13480 | int | |
13481 | main () | |
13482 | { | |
13483 | int _array_ [1 - 2 * !((sizeof (int *)) <= $ac_mid)] | |
13484 | ; | |
13485 | return 0; | |
13486 | } | |
13487 | _ACEOF | |
13488 | rm -f conftest.$ac_objext | |
13489 | if { (eval echo "$as_me:13489: \"$ac_compile\"") >&5 | |
13490 | (eval $ac_compile) 2>&5 | |
13491 | ac_status=$? | |
13492 | echo "$as_me:13492: \$? = $ac_status" >&5 | |
13493 | (exit $ac_status); } && | |
13494 | { ac_try='test -s conftest.$ac_objext' | |
13495 | { (eval echo "$as_me:13495: \"$ac_try\"") >&5 | |
13496 | (eval $ac_try) 2>&5 | |
13497 | ac_status=$? | |
13498 | echo "$as_me:13498: \$? = $ac_status" >&5 | |
13499 | (exit $ac_status); }; }; then | |
13500 | ac_hi=$ac_mid | |
13501 | else | |
13502 | echo "$as_me: failed program was:" >&5 | |
13503 | cat conftest.$ac_ext >&5 | |
13504 | ac_lo=`expr $ac_mid + 1` | |
13505 | fi | |
13506 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13507 | done | |
13508 | ac_cv_sizeof_int_p=$ac_lo | |
13509 | else | |
13510 | if test "$cross_compiling" = yes; then | |
13511 | { { echo "$as_me:13511: error: cannot run test program while cross compiling" >&5 | |
13512 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13513 | { (exit 1); exit 1; }; } | |
13514 | else | |
13515 | cat >conftest.$ac_ext <<_ACEOF | |
13516 | #line 13516 "configure" | |
13517 | #include "confdefs.h" | |
13518 | $ac_includes_default | |
13519 | int | |
13520 | main () | |
13521 | { | |
13522 | FILE *f = fopen ("conftest.val", "w"); | |
13523 | if (!f) | |
13524 | exit (1); | |
13525 | fprintf (f, "%d", (sizeof (int *))); | |
13526 | fclose (f); | |
13527 | ; | |
13528 | return 0; | |
13529 | } | |
13530 | _ACEOF | |
13531 | rm -f conftest$ac_exeext | |
13532 | if { (eval echo "$as_me:13532: \"$ac_link\"") >&5 | |
13533 | (eval $ac_link) 2>&5 | |
13534 | ac_status=$? | |
13535 | echo "$as_me:13535: \$? = $ac_status" >&5 | |
13536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13537 | { (eval echo "$as_me:13537: \"$ac_try\"") >&5 | |
13538 | (eval $ac_try) 2>&5 | |
13539 | ac_status=$? | |
13540 | echo "$as_me:13540: \$? = $ac_status" >&5 | |
13541 | (exit $ac_status); }; }; then | |
13542 | ac_cv_sizeof_int_p=`cat conftest.val` | |
13543 | else | |
13544 | echo "$as_me: program exited with status $ac_status" >&5 | |
13545 | echo "$as_me: failed program was:" >&5 | |
13546 | cat conftest.$ac_ext >&5 | |
13547 | fi | |
13548 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext | |
13549 | fi | |
13550 | fi | |
13551 | rm -f conftest.val | |
13552 | else | |
13553 | ac_cv_sizeof_int_p=0 | |
13554 | fi | |
13555 | fi | |
13556 | echo "$as_me:13556: result: $ac_cv_sizeof_int_p" >&5 | |
13557 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6 | |
13558 | cat >>confdefs.h <<EOF | |
13559 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
703e0a69 VZ |
13560 | EOF |
13561 | ||
1e487827 VS |
13562 | echo "$as_me:13562: checking for int" >&5 |
13563 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
13564 | if test "${ac_cv_type_int+set}" = set; then | |
13565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13566 | else | |
13567 | cat >conftest.$ac_ext <<_ACEOF | |
13568 | #line 13568 "configure" | |
13569 | #include "confdefs.h" | |
13570 | $ac_includes_default | |
13571 | int | |
13572 | main () | |
13573 | { | |
13574 | if ((int *) 0) | |
13575 | return 0; | |
13576 | if (sizeof (int)) | |
13577 | return 0; | |
13578 | ; | |
13579 | return 0; | |
13580 | } | |
13581 | _ACEOF | |
13582 | rm -f conftest.$ac_objext | |
13583 | if { (eval echo "$as_me:13583: \"$ac_compile\"") >&5 | |
13584 | (eval $ac_compile) 2>&5 | |
13585 | ac_status=$? | |
13586 | echo "$as_me:13586: \$? = $ac_status" >&5 | |
13587 | (exit $ac_status); } && | |
13588 | { ac_try='test -s conftest.$ac_objext' | |
13589 | { (eval echo "$as_me:13589: \"$ac_try\"") >&5 | |
13590 | (eval $ac_try) 2>&5 | |
13591 | ac_status=$? | |
13592 | echo "$as_me:13592: \$? = $ac_status" >&5 | |
13593 | (exit $ac_status); }; }; then | |
13594 | ac_cv_type_int=yes | |
13595 | else | |
13596 | echo "$as_me: failed program was:" >&5 | |
13597 | cat conftest.$ac_ext >&5 | |
13598 | ac_cv_type_int=no | |
13599 | fi | |
13600 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13601 | fi | |
13602 | echo "$as_me:13602: result: $ac_cv_type_int" >&5 | |
13603 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
13604 | ||
13605 | echo "$as_me:13605: checking size of int" >&5 | |
13606 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
13607 | if test "${ac_cv_sizeof_int+set}" = set; then | |
13608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13609 | else | |
13610 | if test "$ac_cv_type_int" = yes; then | |
13611 | if test "$cross_compiling" = yes; then | |
13612 | # Depending upon the size, compute the lo and hi bounds. | |
13613 | cat >conftest.$ac_ext <<_ACEOF | |
13614 | #line 13614 "configure" | |
13615 | #include "confdefs.h" | |
13616 | $ac_includes_default | |
13617 | int | |
13618 | main () | |
13619 | { | |
13620 | int _array_ [1 - 2 * !((sizeof (int)) >= 0)] | |
13621 | ; | |
13622 | return 0; | |
13623 | } | |
13624 | _ACEOF | |
13625 | rm -f conftest.$ac_objext | |
13626 | if { (eval echo "$as_me:13626: \"$ac_compile\"") >&5 | |
13627 | (eval $ac_compile) 2>&5 | |
13628 | ac_status=$? | |
13629 | echo "$as_me:13629: \$? = $ac_status" >&5 | |
13630 | (exit $ac_status); } && | |
13631 | { ac_try='test -s conftest.$ac_objext' | |
13632 | { (eval echo "$as_me:13632: \"$ac_try\"") >&5 | |
13633 | (eval $ac_try) 2>&5 | |
13634 | ac_status=$? | |
13635 | echo "$as_me:13635: \$? = $ac_status" >&5 | |
13636 | (exit $ac_status); }; }; then | |
13637 | ac_lo=0 ac_mid=0 | |
13638 | while :; do | |
13639 | cat >conftest.$ac_ext <<_ACEOF | |
13640 | #line 13640 "configure" | |
13641 | #include "confdefs.h" | |
13642 | $ac_includes_default | |
13643 | int | |
13644 | main () | |
13645 | { | |
13646 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | |
13647 | ; | |
13648 | return 0; | |
13649 | } | |
13650 | _ACEOF | |
13651 | rm -f conftest.$ac_objext | |
13652 | if { (eval echo "$as_me:13652: \"$ac_compile\"") >&5 | |
13653 | (eval $ac_compile) 2>&5 | |
13654 | ac_status=$? | |
13655 | echo "$as_me:13655: \$? = $ac_status" >&5 | |
13656 | (exit $ac_status); } && | |
13657 | { ac_try='test -s conftest.$ac_objext' | |
13658 | { (eval echo "$as_me:13658: \"$ac_try\"") >&5 | |
13659 | (eval $ac_try) 2>&5 | |
13660 | ac_status=$? | |
13661 | echo "$as_me:13661: \$? = $ac_status" >&5 | |
13662 | (exit $ac_status); }; }; then | |
13663 | ac_hi=$ac_mid; break | |
13664 | else | |
13665 | echo "$as_me: failed program was:" >&5 | |
13666 | cat conftest.$ac_ext >&5 | |
13667 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | |
13668 | fi | |
13669 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13670 | done | |
13671 | else | |
13672 | echo "$as_me: failed program was:" >&5 | |
13673 | cat conftest.$ac_ext >&5 | |
13674 | ac_hi=-1 ac_mid=-1 | |
13675 | while :; do | |
13676 | cat >conftest.$ac_ext <<_ACEOF | |
13677 | #line 13677 "configure" | |
13678 | #include "confdefs.h" | |
13679 | $ac_includes_default | |
13680 | int | |
13681 | main () | |
13682 | { | |
13683 | int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] | |
13684 | ; | |
13685 | return 0; | |
13686 | } | |
13687 | _ACEOF | |
13688 | rm -f conftest.$ac_objext | |
13689 | if { (eval echo "$as_me:13689: \"$ac_compile\"") >&5 | |
13690 | (eval $ac_compile) 2>&5 | |
13691 | ac_status=$? | |
13692 | echo "$as_me:13692: \$? = $ac_status" >&5 | |
13693 | (exit $ac_status); } && | |
13694 | { ac_try='test -s conftest.$ac_objext' | |
13695 | { (eval echo "$as_me:13695: \"$ac_try\"") >&5 | |
13696 | (eval $ac_try) 2>&5 | |
13697 | ac_status=$? | |
13698 | echo "$as_me:13698: \$? = $ac_status" >&5 | |
13699 | (exit $ac_status); }; }; then | |
13700 | ac_lo=$ac_mid; break | |
13701 | else | |
13702 | echo "$as_me: failed program was:" >&5 | |
13703 | cat conftest.$ac_ext >&5 | |
13704 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | |
13705 | fi | |
13706 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13707 | done | |
13708 | fi | |
13709 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13710 | # Binary search between lo and hi bounds. | |
13711 | while test "x$ac_lo" != "x$ac_hi"; do | |
13712 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13713 | cat >conftest.$ac_ext <<_ACEOF | |
13714 | #line 13714 "configure" | |
13715 | #include "confdefs.h" | |
13716 | $ac_includes_default | |
13717 | int | |
13718 | main () | |
13719 | { | |
13720 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | |
13721 | ; | |
13722 | return 0; | |
13723 | } | |
13724 | _ACEOF | |
13725 | rm -f conftest.$ac_objext | |
13726 | if { (eval echo "$as_me:13726: \"$ac_compile\"") >&5 | |
13727 | (eval $ac_compile) 2>&5 | |
13728 | ac_status=$? | |
13729 | echo "$as_me:13729: \$? = $ac_status" >&5 | |
13730 | (exit $ac_status); } && | |
13731 | { ac_try='test -s conftest.$ac_objext' | |
13732 | { (eval echo "$as_me:13732: \"$ac_try\"") >&5 | |
13733 | (eval $ac_try) 2>&5 | |
13734 | ac_status=$? | |
13735 | echo "$as_me:13735: \$? = $ac_status" >&5 | |
13736 | (exit $ac_status); }; }; then | |
13737 | ac_hi=$ac_mid | |
13738 | else | |
13739 | echo "$as_me: failed program was:" >&5 | |
13740 | cat conftest.$ac_ext >&5 | |
13741 | ac_lo=`expr $ac_mid + 1` | |
13742 | fi | |
13743 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13744 | done | |
13745 | ac_cv_sizeof_int=$ac_lo | |
13746 | else | |
13747 | if test "$cross_compiling" = yes; then | |
13748 | { { echo "$as_me:13748: error: cannot run test program while cross compiling" >&5 | |
13749 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13750 | { (exit 1); exit 1; }; } | |
13751 | else | |
13752 | cat >conftest.$ac_ext <<_ACEOF | |
13753 | #line 13753 "configure" | |
13754 | #include "confdefs.h" | |
13755 | $ac_includes_default | |
13756 | int | |
13757 | main () | |
13758 | { | |
13759 | FILE *f = fopen ("conftest.val", "w"); | |
13760 | if (!f) | |
13761 | exit (1); | |
13762 | fprintf (f, "%d", (sizeof (int))); | |
13763 | fclose (f); | |
13764 | ; | |
13765 | return 0; | |
13766 | } | |
13767 | _ACEOF | |
13768 | rm -f conftest$ac_exeext | |
13769 | if { (eval echo "$as_me:13769: \"$ac_link\"") >&5 | |
13770 | (eval $ac_link) 2>&5 | |
13771 | ac_status=$? | |
13772 | echo "$as_me:13772: \$? = $ac_status" >&5 | |
13773 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13774 | { (eval echo "$as_me:13774: \"$ac_try\"") >&5 | |
13775 | (eval $ac_try) 2>&5 | |
13776 | ac_status=$? | |
13777 | echo "$as_me:13777: \$? = $ac_status" >&5 | |
13778 | (exit $ac_status); }; }; then | |
13779 | ac_cv_sizeof_int=`cat conftest.val` | |
13780 | else | |
13781 | echo "$as_me: program exited with status $ac_status" >&5 | |
13782 | echo "$as_me: failed program was:" >&5 | |
13783 | cat conftest.$ac_ext >&5 | |
13784 | fi | |
13785 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext | |
13786 | fi | |
13787 | fi | |
13788 | rm -f conftest.val | |
13789 | else | |
13790 | ac_cv_sizeof_int=0 | |
13791 | fi | |
13792 | fi | |
13793 | echo "$as_me:13793: result: $ac_cv_sizeof_int" >&5 | |
13794 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
13795 | cat >>confdefs.h <<EOF | |
13796 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13797 | EOF | |
703e0a69 | 13798 | |
1e487827 VS |
13799 | echo "$as_me:13799: checking for long" >&5 |
13800 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
13801 | if test "${ac_cv_type_long+set}" = set; then | |
13802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13803 | else | |
13804 | cat >conftest.$ac_ext <<_ACEOF | |
13805 | #line 13805 "configure" | |
13806 | #include "confdefs.h" | |
13807 | $ac_includes_default | |
13808 | int | |
13809 | main () | |
13810 | { | |
13811 | if ((long *) 0) | |
13812 | return 0; | |
13813 | if (sizeof (long)) | |
13814 | return 0; | |
13815 | ; | |
13816 | return 0; | |
13817 | } | |
13818 | _ACEOF | |
13819 | rm -f conftest.$ac_objext | |
13820 | if { (eval echo "$as_me:13820: \"$ac_compile\"") >&5 | |
13821 | (eval $ac_compile) 2>&5 | |
13822 | ac_status=$? | |
13823 | echo "$as_me:13823: \$? = $ac_status" >&5 | |
13824 | (exit $ac_status); } && | |
13825 | { ac_try='test -s conftest.$ac_objext' | |
13826 | { (eval echo "$as_me:13826: \"$ac_try\"") >&5 | |
13827 | (eval $ac_try) 2>&5 | |
13828 | ac_status=$? | |
13829 | echo "$as_me:13829: \$? = $ac_status" >&5 | |
13830 | (exit $ac_status); }; }; then | |
13831 | ac_cv_type_long=yes | |
13832 | else | |
13833 | echo "$as_me: failed program was:" >&5 | |
13834 | cat conftest.$ac_ext >&5 | |
13835 | ac_cv_type_long=no | |
13836 | fi | |
13837 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13838 | fi | |
13839 | echo "$as_me:13839: result: $ac_cv_type_long" >&5 | |
13840 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
13841 | ||
13842 | echo "$as_me:13842: checking size of long" >&5 | |
13843 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
13844 | if test "${ac_cv_sizeof_long+set}" = set; then | |
13845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13846 | else | |
13847 | if test "$ac_cv_type_long" = yes; then | |
13848 | if test "$cross_compiling" = yes; then | |
13849 | # Depending upon the size, compute the lo and hi bounds. | |
13850 | cat >conftest.$ac_ext <<_ACEOF | |
13851 | #line 13851 "configure" | |
13852 | #include "confdefs.h" | |
13853 | $ac_includes_default | |
13854 | int | |
13855 | main () | |
13856 | { | |
13857 | int _array_ [1 - 2 * !((sizeof (long)) >= 0)] | |
13858 | ; | |
13859 | return 0; | |
13860 | } | |
13861 | _ACEOF | |
13862 | rm -f conftest.$ac_objext | |
13863 | if { (eval echo "$as_me:13863: \"$ac_compile\"") >&5 | |
13864 | (eval $ac_compile) 2>&5 | |
13865 | ac_status=$? | |
13866 | echo "$as_me:13866: \$? = $ac_status" >&5 | |
13867 | (exit $ac_status); } && | |
13868 | { ac_try='test -s conftest.$ac_objext' | |
13869 | { (eval echo "$as_me:13869: \"$ac_try\"") >&5 | |
13870 | (eval $ac_try) 2>&5 | |
13871 | ac_status=$? | |
13872 | echo "$as_me:13872: \$? = $ac_status" >&5 | |
13873 | (exit $ac_status); }; }; then | |
13874 | ac_lo=0 ac_mid=0 | |
13875 | while :; do | |
13876 | cat >conftest.$ac_ext <<_ACEOF | |
13877 | #line 13877 "configure" | |
13878 | #include "confdefs.h" | |
13879 | $ac_includes_default | |
13880 | int | |
13881 | main () | |
13882 | { | |
13883 | int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] | |
13884 | ; | |
13885 | return 0; | |
13886 | } | |
13887 | _ACEOF | |
13888 | rm -f conftest.$ac_objext | |
13889 | if { (eval echo "$as_me:13889: \"$ac_compile\"") >&5 | |
13890 | (eval $ac_compile) 2>&5 | |
13891 | ac_status=$? | |
13892 | echo "$as_me:13892: \$? = $ac_status" >&5 | |
13893 | (exit $ac_status); } && | |
13894 | { ac_try='test -s conftest.$ac_objext' | |
13895 | { (eval echo "$as_me:13895: \"$ac_try\"") >&5 | |
13896 | (eval $ac_try) 2>&5 | |
13897 | ac_status=$? | |
13898 | echo "$as_me:13898: \$? = $ac_status" >&5 | |
13899 | (exit $ac_status); }; }; then | |
13900 | ac_hi=$ac_mid; break | |
13901 | else | |
13902 | echo "$as_me: failed program was:" >&5 | |
13903 | cat conftest.$ac_ext >&5 | |
13904 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | |
13905 | fi | |
13906 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13907 | done | |
13908 | else | |
13909 | echo "$as_me: failed program was:" >&5 | |
13910 | cat conftest.$ac_ext >&5 | |
13911 | ac_hi=-1 ac_mid=-1 | |
13912 | while :; do | |
13913 | cat >conftest.$ac_ext <<_ACEOF | |
13914 | #line 13914 "configure" | |
13915 | #include "confdefs.h" | |
13916 | $ac_includes_default | |
13917 | int | |
13918 | main () | |
13919 | { | |
13920 | int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)] | |
13921 | ; | |
13922 | return 0; | |
13923 | } | |
13924 | _ACEOF | |
13925 | rm -f conftest.$ac_objext | |
13926 | if { (eval echo "$as_me:13926: \"$ac_compile\"") >&5 | |
13927 | (eval $ac_compile) 2>&5 | |
13928 | ac_status=$? | |
13929 | echo "$as_me:13929: \$? = $ac_status" >&5 | |
13930 | (exit $ac_status); } && | |
13931 | { ac_try='test -s conftest.$ac_objext' | |
13932 | { (eval echo "$as_me:13932: \"$ac_try\"") >&5 | |
13933 | (eval $ac_try) 2>&5 | |
13934 | ac_status=$? | |
13935 | echo "$as_me:13935: \$? = $ac_status" >&5 | |
13936 | (exit $ac_status); }; }; then | |
13937 | ac_lo=$ac_mid; break | |
13938 | else | |
13939 | echo "$as_me: failed program was:" >&5 | |
13940 | cat conftest.$ac_ext >&5 | |
13941 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | |
13942 | fi | |
13943 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13944 | done | |
13945 | fi | |
13946 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13947 | # Binary search between lo and hi bounds. | |
13948 | while test "x$ac_lo" != "x$ac_hi"; do | |
13949 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13950 | cat >conftest.$ac_ext <<_ACEOF | |
13951 | #line 13951 "configure" | |
13952 | #include "confdefs.h" | |
13953 | $ac_includes_default | |
13954 | int | |
13955 | main () | |
13956 | { | |
13957 | int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] | |
13958 | ; | |
13959 | return 0; | |
13960 | } | |
13961 | _ACEOF | |
13962 | rm -f conftest.$ac_objext | |
13963 | if { (eval echo "$as_me:13963: \"$ac_compile\"") >&5 | |
13964 | (eval $ac_compile) 2>&5 | |
13965 | ac_status=$? | |
13966 | echo "$as_me:13966: \$? = $ac_status" >&5 | |
13967 | (exit $ac_status); } && | |
13968 | { ac_try='test -s conftest.$ac_objext' | |
13969 | { (eval echo "$as_me:13969: \"$ac_try\"") >&5 | |
13970 | (eval $ac_try) 2>&5 | |
13971 | ac_status=$? | |
13972 | echo "$as_me:13972: \$? = $ac_status" >&5 | |
13973 | (exit $ac_status); }; }; then | |
13974 | ac_hi=$ac_mid | |
13975 | else | |
13976 | echo "$as_me: failed program was:" >&5 | |
13977 | cat conftest.$ac_ext >&5 | |
13978 | ac_lo=`expr $ac_mid + 1` | |
13979 | fi | |
13980 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13981 | done | |
13982 | ac_cv_sizeof_long=$ac_lo | |
10f2d63a VZ |
13983 | else |
13984 | if test "$cross_compiling" = yes; then | |
1e487827 VS |
13985 | { { echo "$as_me:13985: error: cannot run test program while cross compiling" >&5 |
13986 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13987 | { (exit 1); exit 1; }; } | |
10f2d63a | 13988 | else |
1e487827 VS |
13989 | cat >conftest.$ac_ext <<_ACEOF |
13990 | #line 13990 "configure" | |
10f2d63a | 13991 | #include "confdefs.h" |
1e487827 VS |
13992 | $ac_includes_default |
13993 | int | |
13994 | main () | |
10f2d63a | 13995 | { |
1e487827 VS |
13996 | FILE *f = fopen ("conftest.val", "w"); |
13997 | if (!f) | |
13998 | exit (1); | |
13999 | fprintf (f, "%d", (sizeof (long))); | |
14000 | fclose (f); | |
14001 | ; | |
14002 | return 0; | |
10f2d63a | 14003 | } |
1e487827 VS |
14004 | _ACEOF |
14005 | rm -f conftest$ac_exeext | |
14006 | if { (eval echo "$as_me:14006: \"$ac_link\"") >&5 | |
14007 | (eval $ac_link) 2>&5 | |
14008 | ac_status=$? | |
14009 | echo "$as_me:14009: \$? = $ac_status" >&5 | |
14010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14011 | { (eval echo "$as_me:14011: \"$ac_try\"") >&5 | |
14012 | (eval $ac_try) 2>&5 | |
14013 | ac_status=$? | |
14014 | echo "$as_me:14014: \$? = $ac_status" >&5 | |
14015 | (exit $ac_status); }; }; then | |
14016 | ac_cv_sizeof_long=`cat conftest.val` | |
10f2d63a | 14017 | else |
1e487827 VS |
14018 | echo "$as_me: program exited with status $ac_status" >&5 |
14019 | echo "$as_me: failed program was:" >&5 | |
14020 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14021 | fi |
1e487827 | 14022 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
6232543b VS |
14023 | fi |
14024 | fi | |
1e487827 VS |
14025 | rm -f conftest.val |
14026 | else | |
14027 | ac_cv_sizeof_long=0 | |
14028 | fi | |
14029 | fi | |
14030 | echo "$as_me:14030: result: $ac_cv_sizeof_long" >&5 | |
14031 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
14032 | cat >>confdefs.h <<EOF | |
14033 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14034 | EOF |
14035 | ||
1e487827 VS |
14036 | echo "$as_me:14036: checking for long long" >&5 |
14037 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
14038 | if test "${ac_cv_type_long_long+set}" = set; then | |
14039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 14040 | else |
1e487827 VS |
14041 | cat >conftest.$ac_ext <<_ACEOF |
14042 | #line 14042 "configure" | |
14043 | #include "confdefs.h" | |
14044 | $ac_includes_default | |
14045 | int | |
14046 | main () | |
14047 | { | |
14048 | if ((long long *) 0) | |
14049 | return 0; | |
14050 | if (sizeof (long long)) | |
14051 | return 0; | |
14052 | ; | |
14053 | return 0; | |
14054 | } | |
14055 | _ACEOF | |
14056 | rm -f conftest.$ac_objext | |
14057 | if { (eval echo "$as_me:14057: \"$ac_compile\"") >&5 | |
14058 | (eval $ac_compile) 2>&5 | |
14059 | ac_status=$? | |
14060 | echo "$as_me:14060: \$? = $ac_status" >&5 | |
14061 | (exit $ac_status); } && | |
14062 | { ac_try='test -s conftest.$ac_objext' | |
14063 | { (eval echo "$as_me:14063: \"$ac_try\"") >&5 | |
14064 | (eval $ac_try) 2>&5 | |
14065 | ac_status=$? | |
14066 | echo "$as_me:14066: \$? = $ac_status" >&5 | |
14067 | (exit $ac_status); }; }; then | |
14068 | ac_cv_type_long_long=yes | |
14069 | else | |
14070 | echo "$as_me: failed program was:" >&5 | |
14071 | cat conftest.$ac_ext >&5 | |
14072 | ac_cv_type_long_long=no | |
14073 | fi | |
14074 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14075 | fi | |
14076 | echo "$as_me:14076: result: $ac_cv_type_long_long" >&5 | |
14077 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
14078 | ||
14079 | echo "$as_me:14079: checking size of long long" >&5 | |
14080 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
14081 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
14082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14083 | else | |
14084 | if test "$ac_cv_type_long_long" = yes; then | |
10f2d63a | 14085 | if test "$cross_compiling" = yes; then |
1e487827 VS |
14086 | # Depending upon the size, compute the lo and hi bounds. |
14087 | cat >conftest.$ac_ext <<_ACEOF | |
14088 | #line 14088 "configure" | |
6232543b | 14089 | #include "confdefs.h" |
1e487827 VS |
14090 | $ac_includes_default |
14091 | int | |
14092 | main () | |
6232543b | 14093 | { |
1e487827 VS |
14094 | int _array_ [1 - 2 * !((sizeof (long long)) >= 0)] |
14095 | ; | |
14096 | return 0; | |
6232543b | 14097 | } |
1e487827 VS |
14098 | _ACEOF |
14099 | rm -f conftest.$ac_objext | |
14100 | if { (eval echo "$as_me:14100: \"$ac_compile\"") >&5 | |
14101 | (eval $ac_compile) 2>&5 | |
14102 | ac_status=$? | |
14103 | echo "$as_me:14103: \$? = $ac_status" >&5 | |
14104 | (exit $ac_status); } && | |
14105 | { ac_try='test -s conftest.$ac_objext' | |
14106 | { (eval echo "$as_me:14106: \"$ac_try\"") >&5 | |
14107 | (eval $ac_try) 2>&5 | |
14108 | ac_status=$? | |
14109 | echo "$as_me:14109: \$? = $ac_status" >&5 | |
14110 | (exit $ac_status); }; }; then | |
14111 | ac_lo=0 ac_mid=0 | |
14112 | while :; do | |
14113 | cat >conftest.$ac_ext <<_ACEOF | |
14114 | #line 14114 "configure" | |
14115 | #include "confdefs.h" | |
14116 | $ac_includes_default | |
14117 | int | |
14118 | main () | |
14119 | { | |
14120 | int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)] | |
14121 | ; | |
14122 | return 0; | |
14123 | } | |
14124 | _ACEOF | |
14125 | rm -f conftest.$ac_objext | |
14126 | if { (eval echo "$as_me:14126: \"$ac_compile\"") >&5 | |
14127 | (eval $ac_compile) 2>&5 | |
14128 | ac_status=$? | |
14129 | echo "$as_me:14129: \$? = $ac_status" >&5 | |
14130 | (exit $ac_status); } && | |
14131 | { ac_try='test -s conftest.$ac_objext' | |
14132 | { (eval echo "$as_me:14132: \"$ac_try\"") >&5 | |
14133 | (eval $ac_try) 2>&5 | |
14134 | ac_status=$? | |
14135 | echo "$as_me:14135: \$? = $ac_status" >&5 | |
14136 | (exit $ac_status); }; }; then | |
14137 | ac_hi=$ac_mid; break | |
14138 | else | |
14139 | echo "$as_me: failed program was:" >&5 | |
14140 | cat conftest.$ac_ext >&5 | |
14141 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | |
14142 | fi | |
14143 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14144 | done | |
703e0a69 | 14145 | else |
1e487827 VS |
14146 | echo "$as_me: failed program was:" >&5 |
14147 | cat conftest.$ac_ext >&5 | |
14148 | ac_hi=-1 ac_mid=-1 | |
14149 | while :; do | |
14150 | cat >conftest.$ac_ext <<_ACEOF | |
14151 | #line 14151 "configure" | |
14152 | #include "confdefs.h" | |
14153 | $ac_includes_default | |
14154 | int | |
14155 | main () | |
14156 | { | |
14157 | int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)] | |
14158 | ; | |
14159 | return 0; | |
14160 | } | |
14161 | _ACEOF | |
14162 | rm -f conftest.$ac_objext | |
14163 | if { (eval echo "$as_me:14163: \"$ac_compile\"") >&5 | |
14164 | (eval $ac_compile) 2>&5 | |
14165 | ac_status=$? | |
14166 | echo "$as_me:14166: \$? = $ac_status" >&5 | |
14167 | (exit $ac_status); } && | |
14168 | { ac_try='test -s conftest.$ac_objext' | |
14169 | { (eval echo "$as_me:14169: \"$ac_try\"") >&5 | |
14170 | (eval $ac_try) 2>&5 | |
14171 | ac_status=$? | |
14172 | echo "$as_me:14172: \$? = $ac_status" >&5 | |
14173 | (exit $ac_status); }; }; then | |
14174 | ac_lo=$ac_mid; break | |
14175 | else | |
14176 | echo "$as_me: failed program was:" >&5 | |
14177 | cat conftest.$ac_ext >&5 | |
14178 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | |
14179 | fi | |
14180 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14181 | done | |
703e0a69 | 14182 | fi |
1e487827 VS |
14183 | rm -f conftest.$ac_objext conftest.$ac_ext |
14184 | # Binary search between lo and hi bounds. | |
14185 | while test "x$ac_lo" != "x$ac_hi"; do | |
14186 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14187 | cat >conftest.$ac_ext <<_ACEOF | |
14188 | #line 14188 "configure" | |
14189 | #include "confdefs.h" | |
14190 | $ac_includes_default | |
14191 | int | |
14192 | main () | |
14193 | { | |
14194 | int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)] | |
14195 | ; | |
14196 | return 0; | |
14197 | } | |
14198 | _ACEOF | |
14199 | rm -f conftest.$ac_objext | |
14200 | if { (eval echo "$as_me:14200: \"$ac_compile\"") >&5 | |
14201 | (eval $ac_compile) 2>&5 | |
14202 | ac_status=$? | |
14203 | echo "$as_me:14203: \$? = $ac_status" >&5 | |
14204 | (exit $ac_status); } && | |
14205 | { ac_try='test -s conftest.$ac_objext' | |
14206 | { (eval echo "$as_me:14206: \"$ac_try\"") >&5 | |
14207 | (eval $ac_try) 2>&5 | |
14208 | ac_status=$? | |
14209 | echo "$as_me:14209: \$? = $ac_status" >&5 | |
14210 | (exit $ac_status); }; }; then | |
14211 | ac_hi=$ac_mid | |
14212 | else | |
14213 | echo "$as_me: failed program was:" >&5 | |
14214 | cat conftest.$ac_ext >&5 | |
14215 | ac_lo=`expr $ac_mid + 1` | |
14216 | fi | |
14217 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14218 | done | |
14219 | ac_cv_sizeof_long_long=$ac_lo | |
10f2d63a VZ |
14220 | else |
14221 | if test "$cross_compiling" = yes; then | |
1e487827 VS |
14222 | { { echo "$as_me:14222: error: cannot run test program while cross compiling" >&5 |
14223 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
14224 | { (exit 1); exit 1; }; } | |
10f2d63a | 14225 | else |
1e487827 VS |
14226 | cat >conftest.$ac_ext <<_ACEOF |
14227 | #line 14227 "configure" | |
10f2d63a | 14228 | #include "confdefs.h" |
1e487827 VS |
14229 | $ac_includes_default |
14230 | int | |
14231 | main () | |
10f2d63a | 14232 | { |
1e487827 VS |
14233 | FILE *f = fopen ("conftest.val", "w"); |
14234 | if (!f) | |
14235 | exit (1); | |
14236 | fprintf (f, "%d", (sizeof (long long))); | |
14237 | fclose (f); | |
14238 | ; | |
14239 | return 0; | |
10f2d63a | 14240 | } |
1e487827 VS |
14241 | _ACEOF |
14242 | rm -f conftest$ac_exeext | |
14243 | if { (eval echo "$as_me:14243: \"$ac_link\"") >&5 | |
14244 | (eval $ac_link) 2>&5 | |
14245 | ac_status=$? | |
14246 | echo "$as_me:14246: \$? = $ac_status" >&5 | |
14247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14248 | { (eval echo "$as_me:14248: \"$ac_try\"") >&5 | |
14249 | (eval $ac_try) 2>&5 | |
14250 | ac_status=$? | |
14251 | echo "$as_me:14251: \$? = $ac_status" >&5 | |
14252 | (exit $ac_status); }; }; then | |
14253 | ac_cv_sizeof_long_long=`cat conftest.val` | |
10f2d63a | 14254 | else |
1e487827 VS |
14255 | echo "$as_me: program exited with status $ac_status" >&5 |
14256 | echo "$as_me: failed program was:" >&5 | |
14257 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14258 | fi |
1e487827 | 14259 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
10f2d63a | 14260 | fi |
10f2d63a | 14261 | fi |
1e487827 | 14262 | rm -f conftest.val |
6232543b VS |
14263 | else |
14264 | ac_cv_sizeof_long_long=0 | |
14265 | fi | |
703e0a69 | 14266 | fi |
1e487827 VS |
14267 | echo "$as_me:14267: result: $ac_cv_sizeof_long_long" >&5 |
14268 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
14269 | cat >>confdefs.h <<EOF | |
10f2d63a VZ |
14270 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
14271 | EOF | |
14272 | ||
1e487827 VS |
14273 | echo "$as_me:14273: checking size of wchar_t" >&5 |
14274 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
14275 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
14276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 14277 | else |
1e487827 | 14278 | |
b93d0d08 VS |
14279 | if test "$cross_compiling" = yes; then |
14280 | wx_cv_sizeof_wchar_t=4 | |
1e487827 | 14281 | |
b93d0d08 | 14282 | else |
1e487827 VS |
14283 | cat >conftest.$ac_ext <<_ACEOF |
14284 | #line 14284 "configure" | |
b93d0d08 VS |
14285 | #include "confdefs.h" |
14286 | ||
1f8ae82f GD |
14287 | #ifdef HAVE_WCHAR_H |
14288 | # include <wchar.h> | |
14289 | #endif | |
14290 | #ifdef HAVE_STDLIB_H | |
14291 | # include <stdlib.h> | |
14292 | #endif | |
b93d0d08 VS |
14293 | #include <stdio.h> |
14294 | int main() | |
14295 | { | |
14296 | FILE *f=fopen("conftestval", "w"); | |
14297 | if (!f) exit(1); | |
14298 | fprintf(f, "%i", sizeof(wchar_t)); | |
14299 | exit(0); | |
14300 | } | |
1e487827 VS |
14301 | |
14302 | _ACEOF | |
14303 | rm -f conftest$ac_exeext | |
14304 | if { (eval echo "$as_me:14304: \"$ac_link\"") >&5 | |
14305 | (eval $ac_link) 2>&5 | |
14306 | ac_status=$? | |
14307 | echo "$as_me:14307: \$? = $ac_status" >&5 | |
14308 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14309 | { (eval echo "$as_me:14309: \"$ac_try\"") >&5 | |
14310 | (eval $ac_try) 2>&5 | |
14311 | ac_status=$? | |
14312 | echo "$as_me:14312: \$? = $ac_status" >&5 | |
14313 | (exit $ac_status); }; }; then | |
b93d0d08 VS |
14314 | wx_cv_sizeof_wchar_t=`cat conftestval` |
14315 | else | |
1e487827 VS |
14316 | echo "$as_me: program exited with status $ac_status" >&5 |
14317 | echo "$as_me: failed program was:" >&5 | |
14318 | cat conftest.$ac_ext >&5 | |
14319 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 14320 | fi |
1e487827 | 14321 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
b93d0d08 VS |
14322 | fi |
14323 | ||
b93d0d08 | 14324 | fi |
1e487827 VS |
14325 | echo "$as_me:14325: result: $wx_cv_sizeof_wchar_t" >&5 |
14326 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
b93d0d08 | 14327 | |
1e487827 | 14328 | cat >>confdefs.h <<EOF |
28c6addc | 14329 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
14330 | EOF |
14331 | ||
1e487827 VS |
14332 | echo "$as_me:14332: checking whether byte ordering is bigendian" >&5 |
14333 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
14334 | if test "${ac_cv_c_bigendian+set}" = set; then | |
14335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
14336 | else |
14337 | ac_cv_c_bigendian=unknown | |
14338 | # See if sys/param.h defines the BYTE_ORDER macro. | |
1e487827 VS |
14339 | cat >conftest.$ac_ext <<_ACEOF |
14340 | #line 14340 "configure" | |
10f2d63a VZ |
14341 | #include "confdefs.h" |
14342 | #include <sys/types.h> | |
14343 | #include <sys/param.h> | |
1e487827 VS |
14344 | int |
14345 | main () | |
14346 | { | |
10f2d63a VZ |
14347 | |
14348 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
14349 | bogus endian macros | |
14350 | #endif | |
1e487827 VS |
14351 | ; |
14352 | return 0; | |
14353 | } | |
14354 | _ACEOF | |
14355 | rm -f conftest.$ac_objext | |
14356 | if { (eval echo "$as_me:14356: \"$ac_compile\"") >&5 | |
14357 | (eval $ac_compile) 2>&5 | |
14358 | ac_status=$? | |
14359 | echo "$as_me:14359: \$? = $ac_status" >&5 | |
14360 | (exit $ac_status); } && | |
14361 | { ac_try='test -s conftest.$ac_objext' | |
14362 | { (eval echo "$as_me:14362: \"$ac_try\"") >&5 | |
14363 | (eval $ac_try) 2>&5 | |
14364 | ac_status=$? | |
14365 | echo "$as_me:14365: \$? = $ac_status" >&5 | |
14366 | (exit $ac_status); }; }; then | |
10f2d63a | 14367 | # It does; now see whether it defined to BIG_ENDIAN or not. |
1e487827 VS |
14368 | cat >conftest.$ac_ext <<_ACEOF |
14369 | #line 14369 "configure" | |
10f2d63a VZ |
14370 | #include "confdefs.h" |
14371 | #include <sys/types.h> | |
14372 | #include <sys/param.h> | |
1e487827 VS |
14373 | int |
14374 | main () | |
14375 | { | |
10f2d63a VZ |
14376 | |
14377 | #if BYTE_ORDER != BIG_ENDIAN | |
14378 | not big endian | |
14379 | #endif | |
1e487827 VS |
14380 | ; |
14381 | return 0; | |
14382 | } | |
14383 | _ACEOF | |
14384 | rm -f conftest.$ac_objext | |
14385 | if { (eval echo "$as_me:14385: \"$ac_compile\"") >&5 | |
14386 | (eval $ac_compile) 2>&5 | |
14387 | ac_status=$? | |
14388 | echo "$as_me:14388: \$? = $ac_status" >&5 | |
14389 | (exit $ac_status); } && | |
14390 | { ac_try='test -s conftest.$ac_objext' | |
14391 | { (eval echo "$as_me:14391: \"$ac_try\"") >&5 | |
14392 | (eval $ac_try) 2>&5 | |
14393 | ac_status=$? | |
14394 | echo "$as_me:14394: \$? = $ac_status" >&5 | |
14395 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
14396 | ac_cv_c_bigendian=yes |
14397 | else | |
1e487827 VS |
14398 | echo "$as_me: failed program was:" >&5 |
14399 | cat conftest.$ac_ext >&5 | |
14400 | ac_cv_c_bigendian=no | |
10f2d63a | 14401 | fi |
1e487827 | 14402 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a | 14403 | else |
1e487827 VS |
14404 | echo "$as_me: failed program was:" >&5 |
14405 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14406 | fi |
1e487827 | 14407 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a VZ |
14408 | if test $ac_cv_c_bigendian = unknown; then |
14409 | if test "$cross_compiling" = yes; then | |
14410 | ac_cv_c_bigendian=unknown | |
14411 | else | |
1e487827 VS |
14412 | cat >conftest.$ac_ext <<_ACEOF |
14413 | #line 14413 "configure" | |
10f2d63a VZ |
14414 | #include "confdefs.h" |
14415 | main () { | |
14416 | /* Are we little or big endian? From Harbison&Steele. */ | |
14417 | union | |
14418 | { | |
14419 | long l; | |
14420 | char c[sizeof (long)]; | |
14421 | } u; | |
14422 | u.l = 1; | |
14423 | exit (u.c[sizeof (long) - 1] == 1); | |
14424 | } | |
1e487827 VS |
14425 | _ACEOF |
14426 | rm -f conftest$ac_exeext | |
14427 | if { (eval echo "$as_me:14427: \"$ac_link\"") >&5 | |
14428 | (eval $ac_link) 2>&5 | |
14429 | ac_status=$? | |
14430 | echo "$as_me:14430: \$? = $ac_status" >&5 | |
14431 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14432 | { (eval echo "$as_me:14432: \"$ac_try\"") >&5 | |
14433 | (eval $ac_try) 2>&5 | |
14434 | ac_status=$? | |
14435 | echo "$as_me:14435: \$? = $ac_status" >&5 | |
14436 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
14437 | ac_cv_c_bigendian=no |
14438 | else | |
1e487827 VS |
14439 | echo "$as_me: program exited with status $ac_status" >&5 |
14440 | echo "$as_me: failed program was:" >&5 | |
14441 | cat conftest.$ac_ext >&5 | |
14442 | ac_cv_c_bigendian=yes | |
10f2d63a | 14443 | fi |
1e487827 | 14444 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
10f2d63a | 14445 | fi |
10f2d63a VZ |
14446 | fi |
14447 | fi | |
1e487827 VS |
14448 | echo "$as_me:14448: result: $ac_cv_c_bigendian" >&5 |
14449 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
10f2d63a | 14450 | if test $ac_cv_c_bigendian = unknown; then |
1e487827 VS |
14451 | { echo "$as_me:14451: 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" >&5 |
14452 | echo "$as_me: 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" >&2;} | |
10f2d63a VZ |
14453 | fi |
14454 | if test $ac_cv_c_bigendian = yes; then | |
1e487827 | 14455 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
14456 | #define WORDS_BIGENDIAN 1 |
14457 | EOF | |
14458 | ||
14459 | fi | |
14460 | ||
10f2d63a | 14461 | if test "$cross_compiling" = "yes"; then |
1e487827 | 14462 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
14463 | #define wxUSE_IOSTREAMH 1 |
14464 | EOF | |
14465 | ||
14466 | else | |
10f2d63a | 14467 | |
1e487827 VS |
14468 | ac_ext=cc |
14469 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14470 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14471 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14472 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
703e0a69 | 14473 | |
1e487827 | 14474 | for ac_header in iostream |
10f2d63a | 14475 | do |
1e487827 VS |
14476 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
14477 | echo "$as_me:14477: checking for $ac_header" >&5 | |
14478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14479 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
14480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14481 | else | |
14482 | cat >conftest.$ac_ext <<_ACEOF | |
14483 | #line 14483 "configure" | |
10f2d63a | 14484 | #include "confdefs.h" |
1e487827 VS |
14485 | #include <$ac_header> |
14486 | _ACEOF | |
14487 | if { (eval echo "$as_me:14487: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14488 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14489 | ac_status=$? | |
14490 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
14491 | rm -f conftest.er1 | |
14492 | cat conftest.err >&5 | |
14493 | echo "$as_me:14493: \$? = $ac_status" >&5 | |
14494 | (exit $ac_status); } >/dev/null; then | |
14495 | if test -s conftest.err; then | |
14496 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
14497 | else | |
14498 | ac_cpp_err= | |
14499 | fi | |
14500 | else | |
14501 | ac_cpp_err=yes | |
14502 | fi | |
14503 | if test -z "$ac_cpp_err"; then | |
14504 | eval "$ac_ac_Header=yes" | |
10f2d63a | 14505 | else |
1e487827 | 14506 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 14507 | cat conftest.$ac_ext >&5 |
1e487827 | 14508 | eval "$ac_ac_Header=no" |
10f2d63a | 14509 | fi |
1e487827 | 14510 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 14511 | fi |
1e487827 VS |
14512 | echo "$as_me:14512: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
14513 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
14514 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
14515 | cat >>confdefs.h <<EOF | |
14516 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
10f2d63a | 14517 | EOF |
1e487827 | 14518 | |
10f2d63a VZ |
14519 | fi |
14520 | done | |
14521 | ||
10f2d63a | 14522 | if test "x$HAVE_IOSTREAM" = x ; then |
1e487827 | 14523 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
14524 | #define wxUSE_IOSTREAMH 1 |
14525 | EOF | |
14526 | ||
14527 | else | |
14528 | : | |
14529 | fi | |
14530 | ||
14531 | ac_ext=c | |
10f2d63a | 14532 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
14533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
14536 | |
14537 | fi | |
14538 | ||
1e487827 VS |
14539 | echo "$as_me:14539: checking if C++ compiler supports bool" >&5 |
14540 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
14541 | if test "${wx_cv_cpp_bool+set}" = set; then | |
14542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 14543 | else |
703e0a69 | 14544 | |
1e487827 VS |
14545 | ac_ext=cc |
14546 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a | 14550 | |
1e487827 VS |
14551 | cat >conftest.$ac_ext <<_ACEOF |
14552 | #line 14552 "configure" | |
10f2d63a VZ |
14553 | #include "confdefs.h" |
14554 | ||
1e487827 VS |
14555 | int |
14556 | main () | |
14557 | { | |
10f2d63a VZ |
14558 | |
14559 | bool b = true; | |
14560 | ||
14561 | return 0; | |
1e487827 VS |
14562 | |
14563 | ; | |
14564 | return 0; | |
14565 | } | |
14566 | _ACEOF | |
14567 | rm -f conftest.$ac_objext | |
14568 | if { (eval echo "$as_me:14568: \"$ac_compile\"") >&5 | |
14569 | (eval $ac_compile) 2>&5 | |
14570 | ac_status=$? | |
14571 | echo "$as_me:14571: \$? = $ac_status" >&5 | |
14572 | (exit $ac_status); } && | |
14573 | { ac_try='test -s conftest.$ac_objext' | |
14574 | { (eval echo "$as_me:14574: \"$ac_try\"") >&5 | |
14575 | (eval $ac_try) 2>&5 | |
14576 | ac_status=$? | |
14577 | echo "$as_me:14577: \$? = $ac_status" >&5 | |
14578 | (exit $ac_status); }; }; then | |
14579 | ||
10f2d63a | 14580 | wx_cv_cpp_bool=yes |
1e487827 | 14581 | |
10f2d63a | 14582 | else |
1e487827 VS |
14583 | echo "$as_me: failed program was:" >&5 |
14584 | cat conftest.$ac_ext >&5 | |
14585 | ||
10f2d63a | 14586 | wx_cv_cpp_bool=no |
1e487827 | 14587 | |
10f2d63a | 14588 | fi |
1e487827 | 14589 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a VZ |
14590 | |
14591 | ac_ext=c | |
10f2d63a | 14592 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
14593 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14594 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14595 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 14596 | |
10f2d63a | 14597 | fi |
1e487827 VS |
14598 | echo "$as_me:14598: result: $wx_cv_cpp_bool" >&5 |
14599 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
10f2d63a VZ |
14600 | |
14601 | if test "$wx_cv_cpp_bool" = "yes"; then | |
1e487827 | 14602 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
14603 | #define HAVE_BOOL 1 |
14604 | EOF | |
14605 | ||
14606 | fi | |
14607 | ||
1e487827 VS |
14608 | echo "$as_me:14608: checking if you need GNU extensions" >&5 |
14609 | echo $ECHO_N "checking if you need GNU extensions... $ECHO_C" >&6 | |
14610 | if test "${wx_cv_gnu_extensions+set}" = set; then | |
14611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 14612 | else |
1e487827 VS |
14613 | |
14614 | cat >conftest.$ac_ext <<_ACEOF | |
14615 | #line 14615 "configure" | |
10f2d63a VZ |
14616 | #include "confdefs.h" |
14617 | #include <features.h> | |
1e487827 VS |
14618 | int |
14619 | main () | |
14620 | { | |
10f2d63a VZ |
14621 | |
14622 | #ifndef __GNU_LIBRARY__ | |
14623 | Compile error wanted | |
14624 | #endif | |
14625 | ||
1e487827 VS |
14626 | ; |
14627 | return 0; | |
14628 | } | |
14629 | _ACEOF | |
14630 | rm -f conftest.$ac_objext | |
14631 | if { (eval echo "$as_me:14631: \"$ac_compile\"") >&5 | |
14632 | (eval $ac_compile) 2>&5 | |
14633 | ac_status=$? | |
14634 | echo "$as_me:14634: \$? = $ac_status" >&5 | |
14635 | (exit $ac_status); } && | |
14636 | { ac_try='test -s conftest.$ac_objext' | |
14637 | { (eval echo "$as_me:14637: \"$ac_try\"") >&5 | |
14638 | (eval $ac_try) 2>&5 | |
14639 | ac_status=$? | |
14640 | echo "$as_me:14640: \$? = $ac_status" >&5 | |
14641 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
14642 | wx_cv_gnu_extensions=yes |
14643 | else | |
1e487827 VS |
14644 | echo "$as_me: failed program was:" >&5 |
14645 | cat conftest.$ac_ext >&5 | |
14646 | wx_cv_gnu_extensions=no | |
10f2d63a | 14647 | fi |
1e487827 | 14648 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a VZ |
14649 | |
14650 | fi | |
14651 | ||
1e487827 VS |
14652 | echo "$as_me:14652: result: $wx_cv_gnu_extensions" >&5 |
14653 | echo "${ECHO_T}$wx_cv_gnu_extensions" >&6 | |
10f2d63a | 14654 | if test "$wx_cv_gnu_extensions" = "yes"; then |
1e487827 | 14655 | cat >>confdefs.h <<EOF |
10f2d63a VZ |
14656 | #define _GNU_SOURCE 1 |
14657 | EOF | |
14658 | ||
14659 | fi | |
14660 | ||
1e487827 VS |
14661 | echo "$as_me:14661: checking for wcslen in -lc" >&5 |
14662 | echo $ECHO_N "checking for wcslen in -lc... $ECHO_C" >&6 | |
14663 | if test "${ac_cv_lib_c_wcslen+set}" = set; then | |
14664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 14665 | else |
1e487827 | 14666 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 14667 | LIBS="-lc $LIBS" |
1e487827 VS |
14668 | cat >conftest.$ac_ext <<_ACEOF |
14669 | #line 14669 "configure" | |
10f2d63a | 14670 | #include "confdefs.h" |
1e487827 | 14671 | |
10f2d63a | 14672 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
14673 | #ifdef __cplusplus |
14674 | extern "C" | |
14675 | #endif | |
10f2d63a | 14676 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
14677 | builtin and then its argument prototype would still apply. */ |
14678 | char wcslen (); | |
14679 | int | |
14680 | main () | |
14681 | { | |
14682 | wcslen (); | |
14683 | ; | |
14684 | return 0; | |
14685 | } | |
14686 | _ACEOF | |
14687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14688 | if { (eval echo "$as_me:14688: \"$ac_link\"") >&5 | |
14689 | (eval $ac_link) 2>&5 | |
14690 | ac_status=$? | |
14691 | echo "$as_me:14691: \$? = $ac_status" >&5 | |
14692 | (exit $ac_status); } && | |
14693 | { ac_try='test -s conftest$ac_exeext' | |
14694 | { (eval echo "$as_me:14694: \"$ac_try\"") >&5 | |
14695 | (eval $ac_try) 2>&5 | |
14696 | ac_status=$? | |
14697 | echo "$as_me:14697: \$? = $ac_status" >&5 | |
14698 | (exit $ac_status); }; }; then | |
14699 | ac_cv_lib_c_wcslen=yes | |
14700 | else | |
14701 | echo "$as_me: failed program was:" >&5 | |
14702 | cat conftest.$ac_ext >&5 | |
14703 | ac_cv_lib_c_wcslen=no | |
14704 | fi | |
14705 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14706 | LIBS=$ac_check_lib_save_LIBS | |
14707 | fi | |
14708 | echo "$as_me:14708: result: $ac_cv_lib_c_wcslen" >&5 | |
14709 | echo "${ECHO_T}$ac_cv_lib_c_wcslen" >&6 | |
14710 | if test $ac_cv_lib_c_wcslen = yes; then | |
14711 | ||
14712 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
14713 | #define HAVE_WCSLEN 1 |
14714 | EOF | |
14715 | ||
14716 | WCHAR_LINK="" | |
1e487827 | 14717 | |
10f2d63a | 14718 | else |
10f2d63a | 14719 | |
1e487827 VS |
14720 | echo "$as_me:14720: checking for wcslen in -lw" >&5 |
14721 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
14722 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
14723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 14724 | else |
1e487827 | 14725 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 14726 | LIBS="-lw $LIBS" |
1e487827 VS |
14727 | cat >conftest.$ac_ext <<_ACEOF |
14728 | #line 14728 "configure" | |
10f2d63a | 14729 | #include "confdefs.h" |
1e487827 | 14730 | |
10f2d63a | 14731 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
14732 | #ifdef __cplusplus |
14733 | extern "C" | |
14734 | #endif | |
10f2d63a | 14735 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
14736 | builtin and then its argument prototype would still apply. */ |
14737 | char wcslen (); | |
14738 | int | |
14739 | main () | |
14740 | { | |
14741 | wcslen (); | |
14742 | ; | |
14743 | return 0; | |
14744 | } | |
14745 | _ACEOF | |
14746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14747 | if { (eval echo "$as_me:14747: \"$ac_link\"") >&5 | |
14748 | (eval $ac_link) 2>&5 | |
14749 | ac_status=$? | |
14750 | echo "$as_me:14750: \$? = $ac_status" >&5 | |
14751 | (exit $ac_status); } && | |
14752 | { ac_try='test -s conftest$ac_exeext' | |
14753 | { (eval echo "$as_me:14753: \"$ac_try\"") >&5 | |
14754 | (eval $ac_try) 2>&5 | |
14755 | ac_status=$? | |
14756 | echo "$as_me:14756: \$? = $ac_status" >&5 | |
14757 | (exit $ac_status); }; }; then | |
14758 | ac_cv_lib_w_wcslen=yes | |
14759 | else | |
14760 | echo "$as_me: failed program was:" >&5 | |
14761 | cat conftest.$ac_ext >&5 | |
14762 | ac_cv_lib_w_wcslen=no | |
14763 | fi | |
14764 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14765 | LIBS=$ac_check_lib_save_LIBS | |
14766 | fi | |
14767 | echo "$as_me:14767: result: $ac_cv_lib_w_wcslen" >&5 | |
14768 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
14769 | if test $ac_cv_lib_w_wcslen = yes; then | |
14770 | ||
14771 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
14772 | #define HAVE_WCSLEN 1 |
14773 | EOF | |
14774 | ||
14775 | WCHAR_LINK="-lw" | |
10f2d63a | 14776 | |
6232543b | 14777 | fi |
10f2d63a | 14778 | |
1e487827 | 14779 | fi |
703e0a69 | 14780 | |
1e487827 VS |
14781 | for ac_func in vprintf |
14782 | do | |
14783 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
14784 | echo "$as_me:14784: checking for $ac_func" >&5 | |
14785 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14786 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
14787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14788 | else | |
14789 | cat >conftest.$ac_ext <<_ACEOF | |
14790 | #line 14790 "configure" | |
10f2d63a VZ |
14791 | #include "confdefs.h" |
14792 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 14793 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
14794 | #include <assert.h> |
14795 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
14796 | #ifdef __cplusplus |
14797 | extern "C" | |
14798 | #endif | |
10f2d63a | 14799 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
14800 | builtin and then its argument prototype would still apply. */ |
14801 | char $ac_func (); | |
14802 | char (*f) (); | |
10f2d63a | 14803 | |
1e487827 VS |
14804 | int |
14805 | main () | |
14806 | { | |
10f2d63a VZ |
14807 | /* The GNU C library defines this for functions which it implements |
14808 | to always fail with ENOSYS. Some functions are actually named | |
14809 | something starting with __ and the normal name is an alias. */ | |
1e487827 | 14810 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
14811 | choke me |
14812 | #else | |
1e487827 | 14813 | f = $ac_func; |
10f2d63a VZ |
14814 | #endif |
14815 | ||
1e487827 VS |
14816 | ; |
14817 | return 0; | |
14818 | } | |
14819 | _ACEOF | |
14820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14821 | if { (eval echo "$as_me:14821: \"$ac_link\"") >&5 | |
14822 | (eval $ac_link) 2>&5 | |
14823 | ac_status=$? | |
14824 | echo "$as_me:14824: \$? = $ac_status" >&5 | |
14825 | (exit $ac_status); } && | |
14826 | { ac_try='test -s conftest$ac_exeext' | |
14827 | { (eval echo "$as_me:14827: \"$ac_try\"") >&5 | |
14828 | (eval $ac_try) 2>&5 | |
14829 | ac_status=$? | |
14830 | echo "$as_me:14830: \$? = $ac_status" >&5 | |
14831 | (exit $ac_status); }; }; then | |
14832 | eval "$ac_ac_var=yes" | |
14833 | else | |
14834 | echo "$as_me: failed program was:" >&5 | |
14835 | cat conftest.$ac_ext >&5 | |
14836 | eval "$ac_ac_var=no" | |
14837 | fi | |
14838 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14839 | fi | |
14840 | echo "$as_me:14840: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
14841 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
14842 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
14843 | cat >>confdefs.h <<EOF | |
14844 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
14845 | EOF | |
14846 | ||
14847 | echo "$as_me:14847: checking for _doprnt" >&5 | |
14848 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
14849 | if test "${ac_cv_func__doprnt+set}" = set; then | |
14850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14851 | else | |
14852 | cat >conftest.$ac_ext <<_ACEOF | |
14853 | #line 14853 "configure" | |
10f2d63a VZ |
14854 | #include "confdefs.h" |
14855 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 14856 | which can conflict with char _doprnt (); below. */ |
10f2d63a VZ |
14857 | #include <assert.h> |
14858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
14859 | #ifdef __cplusplus |
14860 | extern "C" | |
14861 | #endif | |
10f2d63a | 14862 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
14863 | builtin and then its argument prototype would still apply. */ |
14864 | char _doprnt (); | |
14865 | char (*f) (); | |
10f2d63a | 14866 | |
1e487827 VS |
14867 | int |
14868 | main () | |
14869 | { | |
10f2d63a VZ |
14870 | /* The GNU C library defines this for functions which it implements |
14871 | to always fail with ENOSYS. Some functions are actually named | |
14872 | something starting with __ and the normal name is an alias. */ | |
14873 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
14874 | choke me | |
14875 | #else | |
1e487827 | 14876 | f = _doprnt; |
10f2d63a VZ |
14877 | #endif |
14878 | ||
1e487827 VS |
14879 | ; |
14880 | return 0; | |
14881 | } | |
14882 | _ACEOF | |
14883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14884 | if { (eval echo "$as_me:14884: \"$ac_link\"") >&5 | |
14885 | (eval $ac_link) 2>&5 | |
14886 | ac_status=$? | |
14887 | echo "$as_me:14887: \$? = $ac_status" >&5 | |
14888 | (exit $ac_status); } && | |
14889 | { ac_try='test -s conftest$ac_exeext' | |
14890 | { (eval echo "$as_me:14890: \"$ac_try\"") >&5 | |
14891 | (eval $ac_try) 2>&5 | |
14892 | ac_status=$? | |
14893 | echo "$as_me:14893: \$? = $ac_status" >&5 | |
14894 | (exit $ac_status); }; }; then | |
14895 | ac_cv_func__doprnt=yes | |
14896 | else | |
14897 | echo "$as_me: failed program was:" >&5 | |
14898 | cat conftest.$ac_ext >&5 | |
14899 | ac_cv_func__doprnt=no | |
14900 | fi | |
14901 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14902 | fi | |
14903 | echo "$as_me:14903: result: $ac_cv_func__doprnt" >&5 | |
14904 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
14905 | if test $ac_cv_func__doprnt = yes; then | |
14906 | ||
14907 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
14908 | #define HAVE_DOPRNT 1 |
14909 | EOF | |
14910 | ||
10f2d63a VZ |
14911 | fi |
14912 | ||
14913 | fi | |
1e487827 | 14914 | done |
10f2d63a | 14915 | |
1e487827 VS |
14916 | echo "$as_me:14916: checking for vsnprintf" >&5 |
14917 | echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 | |
14918 | if test "${wx_cv_func_vsnprintf+set}" = set; then | |
14919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 14920 | else |
1e487827 VS |
14921 | |
14922 | cat >conftest.$ac_ext <<_ACEOF | |
14923 | #line 14923 "configure" | |
f6bcfd97 BP |
14924 | #include "confdefs.h" |
14925 | ||
14926 | #include <stdio.h> | |
703e0a69 | 14927 | #include <stdarg.h> |
1e487827 VS |
14928 | |
14929 | int | |
14930 | main () | |
14931 | { | |
10f2d63a | 14932 | |
f6bcfd97 | 14933 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 14934 | |
f6bcfd97 BP |
14935 | wx_test_vsnprintf("%s"); |
14936 | return 0; | |
14937 | } | |
14938 | ||
14939 | int wx_test_vsnprintf(const char *fmt, ...) | |
14940 | { | |
14941 | char *s; | |
14942 | ||
14943 | va_list argp; | |
14944 | va_start(argp, fmt); | |
14945 | vsnprintf(s, 42, fmt, argp); | |
14946 | va_end(argp); | |
1e487827 VS |
14947 | |
14948 | ; | |
14949 | return 0; | |
14950 | } | |
14951 | _ACEOF | |
14952 | rm -f conftest.$ac_objext | |
14953 | if { (eval echo "$as_me:14953: \"$ac_compile\"") >&5 | |
14954 | (eval $ac_compile) 2>&5 | |
14955 | ac_status=$? | |
14956 | echo "$as_me:14956: \$? = $ac_status" >&5 | |
14957 | (exit $ac_status); } && | |
14958 | { ac_try='test -s conftest.$ac_objext' | |
14959 | { (eval echo "$as_me:14959: \"$ac_try\"") >&5 | |
14960 | (eval $ac_try) 2>&5 | |
14961 | ac_status=$? | |
14962 | echo "$as_me:14962: \$? = $ac_status" >&5 | |
14963 | (exit $ac_status); }; }; then | |
14964 | ||
f6bcfd97 | 14965 | wx_cv_func_vsnprintf=yes |
1e487827 | 14966 | |
10f2d63a | 14967 | else |
1e487827 VS |
14968 | echo "$as_me: failed program was:" >&5 |
14969 | cat conftest.$ac_ext >&5 | |
14970 | ||
14971 | cat >conftest.$ac_ext <<_ACEOF | |
14972 | #line 14972 "configure" | |
c521c494 RL |
14973 | #include "confdefs.h" |
14974 | ||
14975 | #include <stdio.h> | |
14976 | #include <stdarg.h> | |
1e487827 VS |
14977 | |
14978 | int | |
14979 | main () | |
14980 | { | |
c521c494 RL |
14981 | |
14982 | int wx_test_vsnprintf(const char *, ...); | |
14983 | ||
14984 | wx_test_vsnprintf("%s"); | |
14985 | return 0; | |
14986 | } | |
14987 | ||
14988 | int wx_test_vsnprintf(const char *fmt, ...) | |
14989 | { | |
14990 | char *s; | |
14991 | ||
14992 | va_list argp; | |
14993 | va_start(argp, fmt); | |
14994 | _vsnprintf(s, 42, fmt, argp); | |
14995 | va_end(argp); | |
1e487827 VS |
14996 | |
14997 | ; | |
14998 | return 0; | |
14999 | } | |
15000 | _ACEOF | |
15001 | rm -f conftest.$ac_objext | |
15002 | if { (eval echo "$as_me:15002: \"$ac_compile\"") >&5 | |
15003 | (eval $ac_compile) 2>&5 | |
15004 | ac_status=$? | |
15005 | echo "$as_me:15005: \$? = $ac_status" >&5 | |
15006 | (exit $ac_status); } && | |
15007 | { ac_try='test -s conftest.$ac_objext' | |
15008 | { (eval echo "$as_me:15008: \"$ac_try\"") >&5 | |
15009 | (eval $ac_try) 2>&5 | |
15010 | ac_status=$? | |
15011 | echo "$as_me:15011: \$? = $ac_status" >&5 | |
15012 | (exit $ac_status); }; }; then | |
15013 | ||
c521c494 | 15014 | wx_cv_func_vsnprintf=yes |
1e487827 | 15015 | |
c521c494 | 15016 | else |
1e487827 VS |
15017 | echo "$as_me: failed program was:" >&5 |
15018 | cat conftest.$ac_ext >&5 | |
15019 | ||
c521c494 | 15020 | wx_cv_func_vsnprintf=no |
1e487827 | 15021 | |
10f2d63a | 15022 | fi |
1e487827 | 15023 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a | 15024 | |
6232543b | 15025 | fi |
1e487827 | 15026 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 15027 | |
1e487827 VS |
15028 | fi |
15029 | echo "$as_me:15029: result: $wx_cv_func_vsnprintf" >&5 | |
15030 | echo "${ECHO_T}$wx_cv_func_vsnprintf" >&6 | |
10f2d63a | 15031 | |
9d8deca0 | 15032 | if test "$wx_cv_func_vsnprintf" = yes; then |
1e487827 | 15033 | cat >>confdefs.h <<\EOF |
9d8deca0 VZ |
15034 | #define HAVE_VSNPRINTF 1 |
15035 | EOF | |
15036 | ||
15037 | else | |
1e487827 VS |
15038 | { echo "$as_me:15038: WARNING: unsafe function sprintf will be used instead of snprintf" >&5 |
15039 | echo "$as_me: WARNING: unsafe function sprintf will be used instead of snprintf" >&2;} | |
9d8deca0 VZ |
15040 | fi |
15041 | ||
1e487827 VS |
15042 | echo "$as_me:15042: checking for vsscanf" >&5 |
15043 | echo $ECHO_N "checking for vsscanf... $ECHO_C" >&6 | |
15044 | if test "${wx_cv_func_vsscanf+set}" = set; then | |
15045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 15046 | else |
1e487827 VS |
15047 | |
15048 | cat >conftest.$ac_ext <<_ACEOF | |
15049 | #line 15049 "configure" | |
10f2d63a | 15050 | #include "confdefs.h" |
10f2d63a | 15051 | |
f6bcfd97 BP |
15052 | #include <stdio.h> |
15053 | #include <stdarg.h> | |
1e487827 VS |
15054 | |
15055 | int | |
15056 | main () | |
15057 | { | |
10f2d63a | 15058 | |
f6bcfd97 | 15059 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 15060 | |
f6bcfd97 BP |
15061 | wx_test_vsscanf("%d"); |
15062 | return 0; | |
10f2d63a VZ |
15063 | } |
15064 | ||
f6bcfd97 | 15065 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 15066 | { |
f6bcfd97 BP |
15067 | va_list argp; |
15068 | va_start(argp, fmt); | |
15069 | vsscanf("42", fmt, argp); | |
15070 | va_end(argp); | |
1e487827 VS |
15071 | |
15072 | ; | |
15073 | return 0; | |
15074 | } | |
15075 | _ACEOF | |
15076 | rm -f conftest.$ac_objext | |
15077 | if { (eval echo "$as_me:15077: \"$ac_compile\"") >&5 | |
15078 | (eval $ac_compile) 2>&5 | |
15079 | ac_status=$? | |
15080 | echo "$as_me:15080: \$? = $ac_status" >&5 | |
15081 | (exit $ac_status); } && | |
15082 | { ac_try='test -s conftest.$ac_objext' | |
15083 | { (eval echo "$as_me:15083: \"$ac_try\"") >&5 | |
15084 | (eval $ac_try) 2>&5 | |
15085 | ac_status=$? | |
15086 | echo "$as_me:15086: \$? = $ac_status" >&5 | |
15087 | (exit $ac_status); }; }; then | |
15088 | ||
f6bcfd97 | 15089 | wx_cv_func_vsscanf=yes |
1e487827 | 15090 | |
10f2d63a | 15091 | else |
1e487827 VS |
15092 | echo "$as_me: failed program was:" >&5 |
15093 | cat conftest.$ac_ext >&5 | |
15094 | ||
f6bcfd97 | 15095 | wx_cv_func_vsscanf=no |
10f2d63a | 15096 | |
6232543b | 15097 | fi |
1e487827 | 15098 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 15099 | |
1e487827 VS |
15100 | fi |
15101 | echo "$as_me:15101: result: $wx_cv_func_vsscanf" >&5 | |
15102 | echo "${ECHO_T}$wx_cv_func_vsscanf" >&6 | |
10f2d63a | 15103 | |
9d8deca0 | 15104 | if test "$wx_cv_func_vsscanf" = yes; then |
1e487827 | 15105 | cat >>confdefs.h <<\EOF |
9d8deca0 VZ |
15106 | #define HAVE_VSSCANF 1 |
15107 | EOF | |
15108 | ||
15109 | fi | |
15110 | ||
95c8801c VS |
15111 | if test "$TOOLKIT" != "MSW"; then |
15112 | ||
1e487827 VS |
15113 | ac_ext=cc |
15114 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
95c8801c | 15118 | |
1e487827 VS |
15119 | echo "$as_me:15119: checking if iconv() takes char**" >&5 |
15120 | echo $ECHO_N "checking if iconv() takes char**... $ECHO_C" >&6 | |
15121 | if test "${wx_cv_iconv_takes_char+set}" = set; then | |
15122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15123 | else | |
95c8801c | 15124 | |
1e487827 VS |
15125 | cat >conftest.$ac_ext <<_ACEOF |
15126 | #line 15126 "configure" | |
95c8801c VS |
15127 | #include "confdefs.h" |
15128 | #include <iconv.h> | |
1e487827 VS |
15129 | int |
15130 | main () | |
15131 | { | |
95c8801c VS |
15132 | |
15133 | char **inbuf, **outbuf; | |
15134 | iconv_t cd; | |
15135 | size_t insz, outsz; | |
15136 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
1e487827 VS |
15137 | |
15138 | ; | |
15139 | return 0; | |
15140 | } | |
15141 | _ACEOF | |
15142 | rm -f conftest.$ac_objext | |
15143 | if { (eval echo "$as_me:15143: \"$ac_compile\"") >&5 | |
15144 | (eval $ac_compile) 2>&5 | |
15145 | ac_status=$? | |
15146 | echo "$as_me:15146: \$? = $ac_status" >&5 | |
15147 | (exit $ac_status); } && | |
15148 | { ac_try='test -s conftest.$ac_objext' | |
15149 | { (eval echo "$as_me:15149: \"$ac_try\"") >&5 | |
15150 | (eval $ac_try) 2>&5 | |
15151 | ac_status=$? | |
15152 | echo "$as_me:15152: \$? = $ac_status" >&5 | |
15153 | (exit $ac_status); }; }; then | |
95c8801c VS |
15154 | wx_cv_iconv_takes_char=yes |
15155 | else | |
1e487827 VS |
15156 | echo "$as_me: failed program was:" >&5 |
15157 | cat conftest.$ac_ext >&5 | |
15158 | wx_cv_iconv_takes_char=no | |
95c8801c | 15159 | fi |
1e487827 | 15160 | rm -f conftest.$ac_objext conftest.$ac_ext |
95c8801c VS |
15161 | |
15162 | fi | |
1e487827 VS |
15163 | echo "$as_me:15163: result: $wx_cv_iconv_takes_char" >&5 |
15164 | echo "${ECHO_T}$wx_cv_iconv_takes_char" >&6 | |
10f2d63a | 15165 | ac_ext=c |
10f2d63a | 15166 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
15167 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15168 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15169 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 15170 | |
95c8801c | 15171 | if test "$wx_cv_iconv_takes_char" = yes ; then |
1e487827 | 15172 | cat >>confdefs.h <<\EOF |
95c8801c VS |
15173 | #define WX_ICONV_TAKES_CHAR 1 |
15174 | EOF | |
15175 | ||
15176 | fi | |
10f2d63a | 15177 | |
703e0a69 | 15178 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
1e487827 VS |
15179 | |
15180 | for ac_func in sigaction | |
eb4efbdc | 15181 | do |
1e487827 VS |
15182 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15183 | echo "$as_me:15183: checking for $ac_func" >&5 | |
15184 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15185 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15187 | else | |
15188 | cat >conftest.$ac_ext <<_ACEOF | |
15189 | #line 15189 "configure" | |
eb4efbdc VZ |
15190 | #include "confdefs.h" |
15191 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15192 | which can conflict with char $ac_func (); below. */ |
eb4efbdc VZ |
15193 | #include <assert.h> |
15194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
15195 | #ifdef __cplusplus |
15196 | extern "C" | |
15197 | #endif | |
eb4efbdc | 15198 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15199 | builtin and then its argument prototype would still apply. */ |
15200 | char $ac_func (); | |
15201 | char (*f) (); | |
eb4efbdc | 15202 | |
1e487827 VS |
15203 | int |
15204 | main () | |
15205 | { | |
eb4efbdc VZ |
15206 | /* The GNU C library defines this for functions which it implements |
15207 | to always fail with ENOSYS. Some functions are actually named | |
15208 | something starting with __ and the normal name is an alias. */ | |
15209 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15210 | choke me | |
15211 | #else | |
1e487827 | 15212 | f = $ac_func; |
eb4efbdc VZ |
15213 | #endif |
15214 | ||
1e487827 VS |
15215 | ; |
15216 | return 0; | |
15217 | } | |
15218 | _ACEOF | |
15219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15220 | if { (eval echo "$as_me:15220: \"$ac_link\"") >&5 | |
15221 | (eval $ac_link) 2>&5 | |
15222 | ac_status=$? | |
15223 | echo "$as_me:15223: \$? = $ac_status" >&5 | |
15224 | (exit $ac_status); } && | |
15225 | { ac_try='test -s conftest$ac_exeext' | |
15226 | { (eval echo "$as_me:15226: \"$ac_try\"") >&5 | |
15227 | (eval $ac_try) 2>&5 | |
15228 | ac_status=$? | |
15229 | echo "$as_me:15229: \$? = $ac_status" >&5 | |
15230 | (exit $ac_status); }; }; then | |
15231 | eval "$ac_ac_var=yes" | |
15232 | else | |
15233 | echo "$as_me: failed program was:" >&5 | |
15234 | cat conftest.$ac_ext >&5 | |
15235 | eval "$ac_ac_var=no" | |
15236 | fi | |
15237 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15238 | fi | |
15239 | echo "$as_me:15239: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15240 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15241 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15242 | cat >>confdefs.h <<EOF | |
15243 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
eb4efbdc | 15244 | EOF |
eb4efbdc | 15245 | |
eb4efbdc VZ |
15246 | fi |
15247 | done | |
15248 | ||
eb4efbdc | 15249 | if test "$ac_cv_func_sigaction" = "no"; then |
1e487827 VS |
15250 | { echo "$as_me:15250: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
15251 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
eb4efbdc VZ |
15252 | wxUSE_ON_FATAL_EXCEPTION=no |
15253 | fi | |
f6bcfd97 BP |
15254 | |
15255 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
f6bcfd97 | 15256 | |
1e487827 VS |
15257 | ac_ext=cc |
15258 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15259 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15260 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15261 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6232543b | 15262 | |
1e487827 VS |
15263 | echo "$as_me:15263: checking for sa_handler type" >&5 |
15264 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
15265 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
15266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 15267 | else |
1e487827 VS |
15268 | |
15269 | cat >conftest.$ac_ext <<_ACEOF | |
15270 | #line 15270 "configure" | |
f6bcfd97 BP |
15271 | #include "confdefs.h" |
15272 | #include <signal.h> | |
1e487827 VS |
15273 | int |
15274 | main () | |
15275 | { | |
f6bcfd97 BP |
15276 | |
15277 | extern void testSigHandler(int); | |
15278 | ||
15279 | struct sigaction sa; | |
15280 | sa.sa_handler = testSigHandler; | |
1e487827 VS |
15281 | |
15282 | ; | |
15283 | return 0; | |
15284 | } | |
15285 | _ACEOF | |
15286 | rm -f conftest.$ac_objext | |
15287 | if { (eval echo "$as_me:15287: \"$ac_compile\"") >&5 | |
15288 | (eval $ac_compile) 2>&5 | |
15289 | ac_status=$? | |
15290 | echo "$as_me:15290: \$? = $ac_status" >&5 | |
15291 | (exit $ac_status); } && | |
15292 | { ac_try='test -s conftest.$ac_objext' | |
15293 | { (eval echo "$as_me:15293: \"$ac_try\"") >&5 | |
15294 | (eval $ac_try) 2>&5 | |
15295 | ac_status=$? | |
15296 | echo "$as_me:15296: \$? = $ac_status" >&5 | |
15297 | (exit $ac_status); }; }; then | |
15298 | ||
f6bcfd97 | 15299 | wx_cv_type_sa_handler=int |
1e487827 | 15300 | |
f6bcfd97 | 15301 | else |
1e487827 VS |
15302 | echo "$as_me: failed program was:" >&5 |
15303 | cat conftest.$ac_ext >&5 | |
15304 | ||
f6bcfd97 | 15305 | wx_cv_type_sa_handler=void |
1e487827 | 15306 | |
6232543b | 15307 | fi |
1e487827 | 15308 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 15309 | |
1e487827 VS |
15310 | fi |
15311 | echo "$as_me:15311: result: $wx_cv_type_sa_handler" >&5 | |
15312 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
f6bcfd97 BP |
15313 | |
15314 | ac_ext=c | |
f6bcfd97 | 15315 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
15316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
703e0a69 | 15319 | |
1e487827 | 15320 | cat >>confdefs.h <<EOF |
f6bcfd97 BP |
15321 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
15322 | EOF | |
15323 | ||
15324 | fi | |
eb4efbdc VZ |
15325 | fi |
15326 | ||
10f2d63a VZ |
15327 | for ac_func in vfork |
15328 | do | |
1e487827 VS |
15329 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15330 | echo "$as_me:15330: checking for $ac_func" >&5 | |
15331 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15332 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15334 | else | |
15335 | cat >conftest.$ac_ext <<_ACEOF | |
15336 | #line 15336 "configure" | |
10f2d63a VZ |
15337 | #include "confdefs.h" |
15338 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15339 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
15340 | #include <assert.h> |
15341 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
15342 | #ifdef __cplusplus |
15343 | extern "C" | |
15344 | #endif | |
10f2d63a | 15345 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15346 | builtin and then its argument prototype would still apply. */ |
15347 | char $ac_func (); | |
15348 | char (*f) (); | |
10f2d63a | 15349 | |
1e487827 VS |
15350 | int |
15351 | main () | |
15352 | { | |
10f2d63a VZ |
15353 | /* The GNU C library defines this for functions which it implements |
15354 | to always fail with ENOSYS. Some functions are actually named | |
15355 | something starting with __ and the normal name is an alias. */ | |
15356 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15357 | choke me | |
15358 | #else | |
1e487827 | 15359 | f = $ac_func; |
10f2d63a VZ |
15360 | #endif |
15361 | ||
1e487827 VS |
15362 | ; |
15363 | return 0; | |
15364 | } | |
15365 | _ACEOF | |
15366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15367 | if { (eval echo "$as_me:15367: \"$ac_link\"") >&5 | |
15368 | (eval $ac_link) 2>&5 | |
15369 | ac_status=$? | |
15370 | echo "$as_me:15370: \$? = $ac_status" >&5 | |
15371 | (exit $ac_status); } && | |
15372 | { ac_try='test -s conftest$ac_exeext' | |
15373 | { (eval echo "$as_me:15373: \"$ac_try\"") >&5 | |
15374 | (eval $ac_try) 2>&5 | |
15375 | ac_status=$? | |
15376 | echo "$as_me:15376: \$? = $ac_status" >&5 | |
15377 | (exit $ac_status); }; }; then | |
15378 | eval "$ac_ac_var=yes" | |
15379 | else | |
15380 | echo "$as_me: failed program was:" >&5 | |
15381 | cat conftest.$ac_ext >&5 | |
15382 | eval "$ac_ac_var=no" | |
15383 | fi | |
15384 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15385 | fi | |
15386 | echo "$as_me:15386: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15387 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15388 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15389 | cat >>confdefs.h <<EOF | |
15390 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
10f2d63a | 15391 | EOF |
270a909e | 15392 | |
270a909e VZ |
15393 | fi |
15394 | done | |
15395 | ||
703e0a69 | 15396 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
1e487827 VS |
15397 | |
15398 | for ac_func in fcntl flock | |
4f3c5f06 | 15399 | do |
1e487827 VS |
15400 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15401 | echo "$as_me:15401: checking for $ac_func" >&5 | |
15402 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15403 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15405 | else | |
15406 | cat >conftest.$ac_ext <<_ACEOF | |
15407 | #line 15407 "configure" | |
4f3c5f06 VZ |
15408 | #include "confdefs.h" |
15409 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15410 | which can conflict with char $ac_func (); below. */ |
4f3c5f06 VZ |
15411 | #include <assert.h> |
15412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
15413 | #ifdef __cplusplus |
15414 | extern "C" | |
15415 | #endif | |
4f3c5f06 | 15416 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15417 | builtin and then its argument prototype would still apply. */ |
15418 | char $ac_func (); | |
15419 | char (*f) (); | |
4f3c5f06 | 15420 | |
1e487827 VS |
15421 | int |
15422 | main () | |
15423 | { | |
4f3c5f06 VZ |
15424 | /* The GNU C library defines this for functions which it implements |
15425 | to always fail with ENOSYS. Some functions are actually named | |
15426 | something starting with __ and the normal name is an alias. */ | |
15427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15428 | choke me | |
15429 | #else | |
1e487827 | 15430 | f = $ac_func; |
4f3c5f06 VZ |
15431 | #endif |
15432 | ||
1e487827 VS |
15433 | ; |
15434 | return 0; | |
15435 | } | |
15436 | _ACEOF | |
15437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15438 | if { (eval echo "$as_me:15438: \"$ac_link\"") >&5 | |
15439 | (eval $ac_link) 2>&5 | |
15440 | ac_status=$? | |
15441 | echo "$as_me:15441: \$? = $ac_status" >&5 | |
15442 | (exit $ac_status); } && | |
15443 | { ac_try='test -s conftest$ac_exeext' | |
15444 | { (eval echo "$as_me:15444: \"$ac_try\"") >&5 | |
15445 | (eval $ac_try) 2>&5 | |
15446 | ac_status=$? | |
15447 | echo "$as_me:15447: \$? = $ac_status" >&5 | |
15448 | (exit $ac_status); }; }; then | |
15449 | eval "$ac_ac_var=yes" | |
15450 | else | |
15451 | echo "$as_me: failed program was:" >&5 | |
15452 | cat conftest.$ac_ext >&5 | |
15453 | eval "$ac_ac_var=no" | |
15454 | fi | |
15455 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15456 | fi | |
15457 | echo "$as_me:15457: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15458 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15459 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15460 | cat >>confdefs.h <<EOF | |
15461 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
4f3c5f06 VZ |
15462 | EOF |
15463 | break | |
4f3c5f06 VZ |
15464 | fi |
15465 | done | |
15466 | ||
15467 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
1e487827 VS |
15468 | { echo "$as_me:15468: WARNING: wxSingleInstanceChecker not available" >&5 |
15469 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f3c5f06 VZ |
15470 | wxUSE_SNGLINST_CHECKER=no |
15471 | fi | |
15472 | fi | |
15473 | ||
270a909e VZ |
15474 | for ac_func in timegm |
15475 | do | |
1e487827 VS |
15476 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15477 | echo "$as_me:15477: checking for $ac_func" >&5 | |
15478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15479 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15481 | else | |
15482 | cat >conftest.$ac_ext <<_ACEOF | |
15483 | #line 15483 "configure" | |
270a909e VZ |
15484 | #include "confdefs.h" |
15485 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15486 | which can conflict with char $ac_func (); below. */ |
270a909e VZ |
15487 | #include <assert.h> |
15488 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
15489 | #ifdef __cplusplus |
15490 | extern "C" | |
15491 | #endif | |
270a909e | 15492 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15493 | builtin and then its argument prototype would still apply. */ |
15494 | char $ac_func (); | |
15495 | char (*f) (); | |
270a909e | 15496 | |
1e487827 VS |
15497 | int |
15498 | main () | |
15499 | { | |
270a909e VZ |
15500 | /* The GNU C library defines this for functions which it implements |
15501 | to always fail with ENOSYS. Some functions are actually named | |
15502 | something starting with __ and the normal name is an alias. */ | |
15503 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15504 | choke me | |
15505 | #else | |
1e487827 | 15506 | f = $ac_func; |
270a909e VZ |
15507 | #endif |
15508 | ||
1e487827 VS |
15509 | ; |
15510 | return 0; | |
15511 | } | |
15512 | _ACEOF | |
15513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15514 | if { (eval echo "$as_me:15514: \"$ac_link\"") >&5 | |
15515 | (eval $ac_link) 2>&5 | |
15516 | ac_status=$? | |
15517 | echo "$as_me:15517: \$? = $ac_status" >&5 | |
15518 | (exit $ac_status); } && | |
15519 | { ac_try='test -s conftest$ac_exeext' | |
15520 | { (eval echo "$as_me:15520: \"$ac_try\"") >&5 | |
15521 | (eval $ac_try) 2>&5 | |
15522 | ac_status=$? | |
15523 | echo "$as_me:15523: \$? = $ac_status" >&5 | |
15524 | (exit $ac_status); }; }; then | |
15525 | eval "$ac_ac_var=yes" | |
15526 | else | |
15527 | echo "$as_me: failed program was:" >&5 | |
15528 | cat conftest.$ac_ext >&5 | |
15529 | eval "$ac_ac_var=no" | |
15530 | fi | |
15531 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15532 | fi | |
15533 | echo "$as_me:15533: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15534 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15535 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15536 | cat >>confdefs.h <<EOF | |
15537 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
270a909e | 15538 | EOF |
10f2d63a | 15539 | |
10f2d63a VZ |
15540 | fi |
15541 | done | |
15542 | ||
8fd0d89b VZ |
15543 | for ac_func in putenv setenv |
15544 | do | |
1e487827 VS |
15545 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15546 | echo "$as_me:15546: checking for $ac_func" >&5 | |
15547 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15548 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15550 | else | |
15551 | cat >conftest.$ac_ext <<_ACEOF | |
15552 | #line 15552 "configure" | |
8fd0d89b VZ |
15553 | #include "confdefs.h" |
15554 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15555 | which can conflict with char $ac_func (); below. */ |
8fd0d89b VZ |
15556 | #include <assert.h> |
15557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
15558 | #ifdef __cplusplus |
15559 | extern "C" | |
15560 | #endif | |
8fd0d89b | 15561 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15562 | builtin and then its argument prototype would still apply. */ |
15563 | char $ac_func (); | |
15564 | char (*f) (); | |
8fd0d89b | 15565 | |
1e487827 VS |
15566 | int |
15567 | main () | |
15568 | { | |
8fd0d89b VZ |
15569 | /* The GNU C library defines this for functions which it implements |
15570 | to always fail with ENOSYS. Some functions are actually named | |
15571 | something starting with __ and the normal name is an alias. */ | |
15572 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15573 | choke me | |
15574 | #else | |
1e487827 | 15575 | f = $ac_func; |
8fd0d89b VZ |
15576 | #endif |
15577 | ||
1e487827 VS |
15578 | ; |
15579 | return 0; | |
15580 | } | |
15581 | _ACEOF | |
15582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15583 | if { (eval echo "$as_me:15583: \"$ac_link\"") >&5 | |
15584 | (eval $ac_link) 2>&5 | |
15585 | ac_status=$? | |
15586 | echo "$as_me:15586: \$? = $ac_status" >&5 | |
15587 | (exit $ac_status); } && | |
15588 | { ac_try='test -s conftest$ac_exeext' | |
15589 | { (eval echo "$as_me:15589: \"$ac_try\"") >&5 | |
15590 | (eval $ac_try) 2>&5 | |
15591 | ac_status=$? | |
15592 | echo "$as_me:15592: \$? = $ac_status" >&5 | |
15593 | (exit $ac_status); }; }; then | |
15594 | eval "$ac_ac_var=yes" | |
15595 | else | |
15596 | echo "$as_me: failed program was:" >&5 | |
15597 | cat conftest.$ac_ext >&5 | |
15598 | eval "$ac_ac_var=no" | |
15599 | fi | |
15600 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15601 | fi | |
15602 | echo "$as_me:15602: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15603 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15604 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15605 | cat >>confdefs.h <<EOF | |
15606 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
8fd0d89b VZ |
15607 | EOF |
15608 | break | |
8fd0d89b VZ |
15609 | fi |
15610 | done | |
15611 | ||
b12915c1 VZ |
15612 | HAVE_SOME_SLEEP_FUNC=0 |
15613 | if test "$USE_BEOS" = 1; then | |
1e487827 | 15614 | cat >>confdefs.h <<\EOF |
b12915c1 VZ |
15615 | #define HAVE_SLEEP 1 |
15616 | EOF | |
15617 | ||
15618 | HAVE_SOME_SLEEP_FUNC=1 | |
15619 | fi | |
15620 | ||
b4085ce6 | 15621 | if test "$USE_MAC" = 1; then |
1e487827 | 15622 | cat >>confdefs.h <<\EOF |
b4085ce6 GD |
15623 | #define HAVE_USLEEP 1 |
15624 | EOF | |
15625 | ||
15626 | HAVE_SOME_SLEEP_FUNC=1 | |
15627 | fi | |
15628 | ||
b12915c1 VZ |
15629 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
15630 | POSIX4_LINK= | |
1e487827 VS |
15631 | |
15632 | for ac_func in nanosleep | |
10f2d63a | 15633 | do |
1e487827 VS |
15634 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15635 | echo "$as_me:15635: checking for $ac_func" >&5 | |
15636 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15637 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15639 | else | |
15640 | cat >conftest.$ac_ext <<_ACEOF | |
15641 | #line 15641 "configure" | |
10f2d63a VZ |
15642 | #include "confdefs.h" |
15643 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15644 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
15645 | #include <assert.h> |
15646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
15647 | #ifdef __cplusplus |
15648 | extern "C" | |
15649 | #endif | |
10f2d63a | 15650 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15651 | builtin and then its argument prototype would still apply. */ |
15652 | char $ac_func (); | |
15653 | char (*f) (); | |
10f2d63a | 15654 | |
1e487827 VS |
15655 | int |
15656 | main () | |
15657 | { | |
10f2d63a VZ |
15658 | /* The GNU C library defines this for functions which it implements |
15659 | to always fail with ENOSYS. Some functions are actually named | |
15660 | something starting with __ and the normal name is an alias. */ | |
15661 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15662 | choke me | |
15663 | #else | |
1e487827 | 15664 | f = $ac_func; |
10f2d63a VZ |
15665 | #endif |
15666 | ||
1e487827 VS |
15667 | ; |
15668 | return 0; | |
15669 | } | |
15670 | _ACEOF | |
15671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15672 | if { (eval echo "$as_me:15672: \"$ac_link\"") >&5 | |
15673 | (eval $ac_link) 2>&5 | |
15674 | ac_status=$? | |
15675 | echo "$as_me:15675: \$? = $ac_status" >&5 | |
15676 | (exit $ac_status); } && | |
15677 | { ac_try='test -s conftest$ac_exeext' | |
15678 | { (eval echo "$as_me:15678: \"$ac_try\"") >&5 | |
15679 | (eval $ac_try) 2>&5 | |
15680 | ac_status=$? | |
15681 | echo "$as_me:15681: \$? = $ac_status" >&5 | |
15682 | (exit $ac_status); }; }; then | |
15683 | eval "$ac_ac_var=yes" | |
15684 | else | |
15685 | echo "$as_me: failed program was:" >&5 | |
15686 | cat conftest.$ac_ext >&5 | |
15687 | eval "$ac_ac_var=no" | |
15688 | fi | |
15689 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15690 | fi | |
15691 | echo "$as_me:15691: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15692 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15693 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15694 | cat >>confdefs.h <<EOF | |
15695 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
15696 | EOF | |
15697 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
15698 | #define HAVE_NANOSLEEP 1 |
15699 | EOF | |
15700 | ||
15701 | else | |
1e487827 VS |
15702 | |
15703 | echo "$as_me:15703: checking for nanosleep in -lposix4" >&5 | |
15704 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
15705 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
15706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 15707 | else |
1e487827 | 15708 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 15709 | LIBS="-lposix4 $LIBS" |
1e487827 VS |
15710 | cat >conftest.$ac_ext <<_ACEOF |
15711 | #line 15711 "configure" | |
10f2d63a | 15712 | #include "confdefs.h" |
1e487827 | 15713 | |
10f2d63a | 15714 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
15715 | #ifdef __cplusplus |
15716 | extern "C" | |
15717 | #endif | |
10f2d63a | 15718 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15719 | builtin and then its argument prototype would still apply. */ |
15720 | char nanosleep (); | |
15721 | int | |
15722 | main () | |
15723 | { | |
15724 | nanosleep (); | |
15725 | ; | |
15726 | return 0; | |
15727 | } | |
15728 | _ACEOF | |
15729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15730 | if { (eval echo "$as_me:15730: \"$ac_link\"") >&5 | |
15731 | (eval $ac_link) 2>&5 | |
15732 | ac_status=$? | |
15733 | echo "$as_me:15733: \$? = $ac_status" >&5 | |
15734 | (exit $ac_status); } && | |
15735 | { ac_try='test -s conftest$ac_exeext' | |
15736 | { (eval echo "$as_me:15736: \"$ac_try\"") >&5 | |
15737 | (eval $ac_try) 2>&5 | |
15738 | ac_status=$? | |
15739 | echo "$as_me:15739: \$? = $ac_status" >&5 | |
15740 | (exit $ac_status); }; }; then | |
15741 | ac_cv_lib_posix4_nanosleep=yes | |
15742 | else | |
15743 | echo "$as_me: failed program was:" >&5 | |
15744 | cat conftest.$ac_ext >&5 | |
15745 | ac_cv_lib_posix4_nanosleep=no | |
15746 | fi | |
15747 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15748 | LIBS=$ac_check_lib_save_LIBS | |
15749 | fi | |
15750 | echo "$as_me:15750: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
15751 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
15752 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
15753 | ||
15754 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
15755 | #define HAVE_NANOSLEEP 1 |
15756 | EOF | |
15757 | ||
b12915c1 | 15758 | POSIX4_LINK="-lposix4" |
1e487827 | 15759 | |
10f2d63a | 15760 | else |
10f2d63a | 15761 | |
1e487827 | 15762 | for ac_func in usleep |
10f2d63a | 15763 | do |
1e487827 VS |
15764 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15765 | echo "$as_me:15765: checking for $ac_func" >&5 | |
15766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15767 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15769 | else | |
15770 | cat >conftest.$ac_ext <<_ACEOF | |
15771 | #line 15771 "configure" | |
10f2d63a VZ |
15772 | #include "confdefs.h" |
15773 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15774 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
15775 | #include <assert.h> |
15776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
15777 | #ifdef __cplusplus |
15778 | extern "C" | |
15779 | #endif | |
10f2d63a | 15780 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15781 | builtin and then its argument prototype would still apply. */ |
15782 | char $ac_func (); | |
15783 | char (*f) (); | |
10f2d63a | 15784 | |
1e487827 VS |
15785 | int |
15786 | main () | |
15787 | { | |
10f2d63a VZ |
15788 | /* The GNU C library defines this for functions which it implements |
15789 | to always fail with ENOSYS. Some functions are actually named | |
15790 | something starting with __ and the normal name is an alias. */ | |
15791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15792 | choke me | |
15793 | #else | |
1e487827 | 15794 | f = $ac_func; |
10f2d63a VZ |
15795 | #endif |
15796 | ||
1e487827 VS |
15797 | ; |
15798 | return 0; | |
15799 | } | |
15800 | _ACEOF | |
15801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15802 | if { (eval echo "$as_me:15802: \"$ac_link\"") >&5 | |
15803 | (eval $ac_link) 2>&5 | |
15804 | ac_status=$? | |
15805 | echo "$as_me:15805: \$? = $ac_status" >&5 | |
15806 | (exit $ac_status); } && | |
15807 | { ac_try='test -s conftest$ac_exeext' | |
15808 | { (eval echo "$as_me:15808: \"$ac_try\"") >&5 | |
15809 | (eval $ac_try) 2>&5 | |
15810 | ac_status=$? | |
15811 | echo "$as_me:15811: \$? = $ac_status" >&5 | |
15812 | (exit $ac_status); }; }; then | |
15813 | eval "$ac_ac_var=yes" | |
15814 | else | |
15815 | echo "$as_me: failed program was:" >&5 | |
15816 | cat conftest.$ac_ext >&5 | |
15817 | eval "$ac_ac_var=no" | |
15818 | fi | |
15819 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15820 | fi | |
15821 | echo "$as_me:15821: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15822 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15823 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15824 | cat >>confdefs.h <<EOF | |
15825 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
15826 | EOF | |
15827 | cat >>confdefs.h <<\EOF | |
b4085ce6 GD |
15828 | #define HAVE_USLEEP 1 |
15829 | EOF | |
15830 | ||
10f2d63a | 15831 | else |
1e487827 VS |
15832 | { echo "$as_me:15832: WARNING: wxSleep() function will not work" >&5 |
15833 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
15834 | ||
10f2d63a VZ |
15835 | fi |
15836 | done | |
15837 | ||
10f2d63a VZ |
15838 | fi |
15839 | ||
10f2d63a VZ |
15840 | fi |
15841 | done | |
15842 | ||
b12915c1 | 15843 | fi |
10f2d63a VZ |
15844 | |
15845 | for ac_func in uname gethostname | |
15846 | do | |
1e487827 VS |
15847 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15848 | echo "$as_me:15848: checking for $ac_func" >&5 | |
15849 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15850 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15852 | else | |
15853 | cat >conftest.$ac_ext <<_ACEOF | |
15854 | #line 15854 "configure" | |
10f2d63a VZ |
15855 | #include "confdefs.h" |
15856 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15857 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
15858 | #include <assert.h> |
15859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
15860 | #ifdef __cplusplus |
15861 | extern "C" | |
15862 | #endif | |
10f2d63a | 15863 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15864 | builtin and then its argument prototype would still apply. */ |
15865 | char $ac_func (); | |
15866 | char (*f) (); | |
10f2d63a | 15867 | |
1e487827 VS |
15868 | int |
15869 | main () | |
15870 | { | |
10f2d63a VZ |
15871 | /* The GNU C library defines this for functions which it implements |
15872 | to always fail with ENOSYS. Some functions are actually named | |
15873 | something starting with __ and the normal name is an alias. */ | |
15874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15875 | choke me | |
15876 | #else | |
1e487827 | 15877 | f = $ac_func; |
10f2d63a VZ |
15878 | #endif |
15879 | ||
1e487827 VS |
15880 | ; |
15881 | return 0; | |
15882 | } | |
15883 | _ACEOF | |
15884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15885 | if { (eval echo "$as_me:15885: \"$ac_link\"") >&5 | |
15886 | (eval $ac_link) 2>&5 | |
15887 | ac_status=$? | |
15888 | echo "$as_me:15888: \$? = $ac_status" >&5 | |
15889 | (exit $ac_status); } && | |
15890 | { ac_try='test -s conftest$ac_exeext' | |
15891 | { (eval echo "$as_me:15891: \"$ac_try\"") >&5 | |
15892 | (eval $ac_try) 2>&5 | |
15893 | ac_status=$? | |
15894 | echo "$as_me:15894: \$? = $ac_status" >&5 | |
15895 | (exit $ac_status); }; }; then | |
15896 | eval "$ac_ac_var=yes" | |
15897 | else | |
15898 | echo "$as_me: failed program was:" >&5 | |
15899 | cat conftest.$ac_ext >&5 | |
15900 | eval "$ac_ac_var=no" | |
15901 | fi | |
15902 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15903 | fi | |
15904 | echo "$as_me:15904: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15905 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15906 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15907 | cat >>confdefs.h <<EOF | |
15908 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
10f2d63a VZ |
15909 | EOF |
15910 | break | |
10f2d63a VZ |
15911 | fi |
15912 | done | |
15913 | ||
1e487827 | 15914 | ac_ext=cc |
6098c7f9 | 15915 | ac_cpp='$CXXCPP $CPPFLAGS' |
1e487827 VS |
15916 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15917 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15918 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6098c7f9 | 15919 | |
10f2d63a VZ |
15920 | for ac_func in strtok_r |
15921 | do | |
1e487827 VS |
15922 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
15923 | echo "$as_me:15923: checking for $ac_func" >&5 | |
15924 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15925 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
15926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15927 | else | |
15928 | cat >conftest.$ac_ext <<_ACEOF | |
15929 | #line 15929 "configure" | |
10f2d63a VZ |
15930 | #include "confdefs.h" |
15931 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 15932 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
15933 | #include <assert.h> |
15934 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
15935 | #ifdef __cplusplus |
15936 | extern "C" | |
15937 | #endif | |
10f2d63a | 15938 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
15939 | builtin and then its argument prototype would still apply. */ |
15940 | char $ac_func (); | |
15941 | char (*f) (); | |
10f2d63a | 15942 | |
1e487827 VS |
15943 | int |
15944 | main () | |
15945 | { | |
10f2d63a VZ |
15946 | /* The GNU C library defines this for functions which it implements |
15947 | to always fail with ENOSYS. Some functions are actually named | |
15948 | something starting with __ and the normal name is an alias. */ | |
15949 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15950 | choke me | |
15951 | #else | |
1e487827 | 15952 | f = $ac_func; |
10f2d63a VZ |
15953 | #endif |
15954 | ||
1e487827 VS |
15955 | ; |
15956 | return 0; | |
15957 | } | |
15958 | _ACEOF | |
15959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15960 | if { (eval echo "$as_me:15960: \"$ac_link\"") >&5 | |
15961 | (eval $ac_link) 2>&5 | |
15962 | ac_status=$? | |
15963 | echo "$as_me:15963: \$? = $ac_status" >&5 | |
15964 | (exit $ac_status); } && | |
15965 | { ac_try='test -s conftest$ac_exeext' | |
15966 | { (eval echo "$as_me:15966: \"$ac_try\"") >&5 | |
15967 | (eval $ac_try) 2>&5 | |
15968 | ac_status=$? | |
15969 | echo "$as_me:15969: \$? = $ac_status" >&5 | |
15970 | (exit $ac_status); }; }; then | |
15971 | eval "$ac_ac_var=yes" | |
15972 | else | |
15973 | echo "$as_me: failed program was:" >&5 | |
15974 | cat conftest.$ac_ext >&5 | |
15975 | eval "$ac_ac_var=no" | |
15976 | fi | |
15977 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15978 | fi | |
15979 | echo "$as_me:15979: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
15980 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
15981 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
15982 | cat >>confdefs.h <<EOF | |
15983 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
10f2d63a | 15984 | EOF |
10f2d63a | 15985 | |
10f2d63a VZ |
15986 | fi |
15987 | done | |
15988 | ||
6098c7f9 | 15989 | ac_ext=c |
6098c7f9 | 15990 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
15991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6232543b | 15994 | |
703e0a69 | 15995 | INET_LINK= |
1e487827 | 15996 | |
10f2d63a VZ |
15997 | for ac_func in inet_addr |
15998 | do | |
1e487827 VS |
15999 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
16000 | echo "$as_me:16000: checking for $ac_func" >&5 | |
16001 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16002 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
16003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16004 | else | |
16005 | cat >conftest.$ac_ext <<_ACEOF | |
16006 | #line 16006 "configure" | |
10f2d63a VZ |
16007 | #include "confdefs.h" |
16008 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 16009 | which can conflict with char $ac_func (); below. */ |
703e0a69 VZ |
16010 | #include <assert.h> |
16011 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
16012 | #ifdef __cplusplus |
16013 | extern "C" | |
16014 | #endif | |
10f2d63a | 16015 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16016 | builtin and then its argument prototype would still apply. */ |
16017 | char $ac_func (); | |
16018 | char (*f) (); | |
10f2d63a | 16019 | |
1e487827 VS |
16020 | int |
16021 | main () | |
16022 | { | |
10f2d63a VZ |
16023 | /* The GNU C library defines this for functions which it implements |
16024 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
16025 | something starting with __ and the normal name is an alias. */ |
16026 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16027 | choke me | |
16028 | #else | |
16029 | f = $ac_func; | |
16030 | #endif | |
703e0a69 | 16031 | |
1e487827 VS |
16032 | ; |
16033 | return 0; | |
16034 | } | |
16035 | _ACEOF | |
16036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16037 | if { (eval echo "$as_me:16037: \"$ac_link\"") >&5 | |
16038 | (eval $ac_link) 2>&5 | |
16039 | ac_status=$? | |
16040 | echo "$as_me:16040: \$? = $ac_status" >&5 | |
16041 | (exit $ac_status); } && | |
16042 | { ac_try='test -s conftest$ac_exeext' | |
16043 | { (eval echo "$as_me:16043: \"$ac_try\"") >&5 | |
16044 | (eval $ac_try) 2>&5 | |
16045 | ac_status=$? | |
16046 | echo "$as_me:16046: \$? = $ac_status" >&5 | |
16047 | (exit $ac_status); }; }; then | |
16048 | eval "$ac_ac_var=yes" | |
16049 | else | |
16050 | echo "$as_me: failed program was:" >&5 | |
16051 | cat conftest.$ac_ext >&5 | |
16052 | eval "$ac_ac_var=no" | |
16053 | fi | |
16054 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16055 | fi | |
16056 | echo "$as_me:16056: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
16057 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
16058 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
16059 | cat >>confdefs.h <<EOF | |
16060 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
16061 | EOF | |
16062 | cat >>confdefs.h <<\EOF | |
c63c7106 VZ |
16063 | #define HAVE_INET_ADDR 1 |
16064 | EOF | |
16065 | ||
10f2d63a | 16066 | else |
1e487827 VS |
16067 | |
16068 | echo "$as_me:16068: checking for inet_addr in -lnsl" >&5 | |
16069 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
16070 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
16071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 16072 | else |
1e487827 | 16073 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 16074 | LIBS="-lnsl $LIBS" |
1e487827 VS |
16075 | cat >conftest.$ac_ext <<_ACEOF |
16076 | #line 16076 "configure" | |
c63c7106 | 16077 | #include "confdefs.h" |
1e487827 | 16078 | |
c63c7106 | 16079 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16080 | #ifdef __cplusplus |
16081 | extern "C" | |
16082 | #endif | |
c63c7106 | 16083 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16084 | builtin and then its argument prototype would still apply. */ |
16085 | char inet_addr (); | |
16086 | int | |
16087 | main () | |
16088 | { | |
16089 | inet_addr (); | |
16090 | ; | |
16091 | return 0; | |
16092 | } | |
16093 | _ACEOF | |
16094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16095 | if { (eval echo "$as_me:16095: \"$ac_link\"") >&5 | |
16096 | (eval $ac_link) 2>&5 | |
16097 | ac_status=$? | |
16098 | echo "$as_me:16098: \$? = $ac_status" >&5 | |
16099 | (exit $ac_status); } && | |
16100 | { ac_try='test -s conftest$ac_exeext' | |
16101 | { (eval echo "$as_me:16101: \"$ac_try\"") >&5 | |
16102 | (eval $ac_try) 2>&5 | |
16103 | ac_status=$? | |
16104 | echo "$as_me:16104: \$? = $ac_status" >&5 | |
16105 | (exit $ac_status); }; }; then | |
16106 | ac_cv_lib_nsl_inet_addr=yes | |
16107 | else | |
16108 | echo "$as_me: failed program was:" >&5 | |
16109 | cat conftest.$ac_ext >&5 | |
16110 | ac_cv_lib_nsl_inet_addr=no | |
16111 | fi | |
16112 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16113 | LIBS=$ac_check_lib_save_LIBS | |
16114 | fi | |
16115 | echo "$as_me:16115: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
16116 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
16117 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
c63c7106 VZ |
16118 | INET_LINK="nsl" |
16119 | else | |
1e487827 VS |
16120 | echo "$as_me:16120: checking for inet_addr in -lresolv" >&5 |
16121 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
16122 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
16123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 16124 | else |
1e487827 | 16125 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 16126 | LIBS="-lresolv $LIBS" |
1e487827 VS |
16127 | cat >conftest.$ac_ext <<_ACEOF |
16128 | #line 16128 "configure" | |
c63c7106 | 16129 | #include "confdefs.h" |
1e487827 | 16130 | |
c63c7106 | 16131 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16132 | #ifdef __cplusplus |
16133 | extern "C" | |
16134 | #endif | |
c63c7106 | 16135 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16136 | builtin and then its argument prototype would still apply. */ |
16137 | char inet_addr (); | |
16138 | int | |
16139 | main () | |
16140 | { | |
16141 | inet_addr (); | |
16142 | ; | |
16143 | return 0; | |
16144 | } | |
16145 | _ACEOF | |
16146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16147 | if { (eval echo "$as_me:16147: \"$ac_link\"") >&5 | |
16148 | (eval $ac_link) 2>&5 | |
16149 | ac_status=$? | |
16150 | echo "$as_me:16150: \$? = $ac_status" >&5 | |
16151 | (exit $ac_status); } && | |
16152 | { ac_try='test -s conftest$ac_exeext' | |
16153 | { (eval echo "$as_me:16153: \"$ac_try\"") >&5 | |
16154 | (eval $ac_try) 2>&5 | |
16155 | ac_status=$? | |
16156 | echo "$as_me:16156: \$? = $ac_status" >&5 | |
16157 | (exit $ac_status); }; }; then | |
16158 | ac_cv_lib_resolv_inet_addr=yes | |
16159 | else | |
16160 | echo "$as_me: failed program was:" >&5 | |
16161 | cat conftest.$ac_ext >&5 | |
16162 | ac_cv_lib_resolv_inet_addr=no | |
16163 | fi | |
16164 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16165 | LIBS=$ac_check_lib_save_LIBS | |
16166 | fi | |
16167 | echo "$as_me:16167: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
16168 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
16169 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
703e0a69 | 16170 | INET_LINK="resolv" |
c63c7106 | 16171 | |
6232543b | 16172 | fi |
c63c7106 | 16173 | |
1e487827 | 16174 | fi |
703e0a69 | 16175 | |
10f2d63a VZ |
16176 | fi |
16177 | done | |
16178 | ||
16179 | for ac_func in inet_aton | |
16180 | do | |
1e487827 VS |
16181 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
16182 | echo "$as_me:16182: checking for $ac_func" >&5 | |
16183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16184 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
16185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16186 | else | |
16187 | cat >conftest.$ac_ext <<_ACEOF | |
16188 | #line 16188 "configure" | |
10f2d63a VZ |
16189 | #include "confdefs.h" |
16190 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 16191 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
16192 | #include <assert.h> |
16193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
16194 | #ifdef __cplusplus |
16195 | extern "C" | |
16196 | #endif | |
10f2d63a | 16197 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16198 | builtin and then its argument prototype would still apply. */ |
16199 | char $ac_func (); | |
16200 | char (*f) (); | |
10f2d63a | 16201 | |
1e487827 VS |
16202 | int |
16203 | main () | |
16204 | { | |
10f2d63a VZ |
16205 | /* The GNU C library defines this for functions which it implements |
16206 | to always fail with ENOSYS. Some functions are actually named | |
16207 | something starting with __ and the normal name is an alias. */ | |
16208 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16209 | choke me | |
16210 | #else | |
1e487827 | 16211 | f = $ac_func; |
10f2d63a VZ |
16212 | #endif |
16213 | ||
1e487827 VS |
16214 | ; |
16215 | return 0; | |
16216 | } | |
16217 | _ACEOF | |
16218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16219 | if { (eval echo "$as_me:16219: \"$ac_link\"") >&5 | |
16220 | (eval $ac_link) 2>&5 | |
16221 | ac_status=$? | |
16222 | echo "$as_me:16222: \$? = $ac_status" >&5 | |
16223 | (exit $ac_status); } && | |
16224 | { ac_try='test -s conftest$ac_exeext' | |
16225 | { (eval echo "$as_me:16225: \"$ac_try\"") >&5 | |
16226 | (eval $ac_try) 2>&5 | |
16227 | ac_status=$? | |
16228 | echo "$as_me:16228: \$? = $ac_status" >&5 | |
16229 | (exit $ac_status); }; }; then | |
16230 | eval "$ac_ac_var=yes" | |
16231 | else | |
16232 | echo "$as_me: failed program was:" >&5 | |
16233 | cat conftest.$ac_ext >&5 | |
16234 | eval "$ac_ac_var=no" | |
16235 | fi | |
16236 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16237 | fi | |
16238 | echo "$as_me:16238: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
16239 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
16240 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
16241 | cat >>confdefs.h <<EOF | |
16242 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
16243 | EOF | |
16244 | cat >>confdefs.h <<\EOF | |
c63c7106 VZ |
16245 | #define HAVE_INET_ATON 1 |
16246 | EOF | |
16247 | ||
10f2d63a | 16248 | else |
1e487827 VS |
16249 | |
16250 | ac_ac_Lib=`echo "ac_cv_lib_$INET_LINK_inet_aton" | $ac_tr_sh` | |
16251 | echo "$as_me:16251: checking for inet_aton in -l$INET_LINK" >&5 | |
16252 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
16253 | if eval "test \"\${$ac_ac_Lib+set}\" = set"; then | |
16254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 16255 | else |
1e487827 | 16256 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 16257 | LIBS="-l$INET_LINK $LIBS" |
1e487827 VS |
16258 | cat >conftest.$ac_ext <<_ACEOF |
16259 | #line 16259 "configure" | |
10f2d63a | 16260 | #include "confdefs.h" |
1e487827 | 16261 | |
10f2d63a | 16262 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16263 | #ifdef __cplusplus |
16264 | extern "C" | |
16265 | #endif | |
10f2d63a | 16266 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16267 | builtin and then its argument prototype would still apply. */ |
16268 | char inet_aton (); | |
16269 | int | |
16270 | main () | |
16271 | { | |
16272 | inet_aton (); | |
16273 | ; | |
16274 | return 0; | |
16275 | } | |
16276 | _ACEOF | |
16277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16278 | if { (eval echo "$as_me:16278: \"$ac_link\"") >&5 | |
16279 | (eval $ac_link) 2>&5 | |
16280 | ac_status=$? | |
16281 | echo "$as_me:16281: \$? = $ac_status" >&5 | |
16282 | (exit $ac_status); } && | |
16283 | { ac_try='test -s conftest$ac_exeext' | |
16284 | { (eval echo "$as_me:16284: \"$ac_try\"") >&5 | |
16285 | (eval $ac_try) 2>&5 | |
16286 | ac_status=$? | |
16287 | echo "$as_me:16287: \$? = $ac_status" >&5 | |
16288 | (exit $ac_status); }; }; then | |
16289 | eval "$ac_ac_Lib=yes" | |
16290 | else | |
16291 | echo "$as_me: failed program was:" >&5 | |
16292 | cat conftest.$ac_ext >&5 | |
16293 | eval "$ac_ac_Lib=no" | |
16294 | fi | |
16295 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16296 | LIBS=$ac_check_lib_save_LIBS | |
16297 | fi | |
16298 | echo "$as_me:16298: result: `eval echo '${'$ac_ac_Lib'}'`" >&5 | |
16299 | echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6 | |
16300 | if test `eval echo '${'$ac_ac_Lib'}'` = yes; then | |
16301 | cat >>confdefs.h <<\EOF | |
c63c7106 | 16302 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
16303 | EOF |
16304 | ||
10f2d63a VZ |
16305 | fi |
16306 | ||
c63c7106 VZ |
16307 | fi |
16308 | done | |
16309 | ||
c63c7106 | 16310 | if test "x$INET_LINK" != "x"; then |
1e487827 | 16311 | cat >>confdefs.h <<\EOF |
c63c7106 VZ |
16312 | #define HAVE_INET_ADDR 1 |
16313 | EOF | |
16314 | ||
16315 | INET_LINK="-l$INET_LINK" | |
16316 | fi | |
10f2d63a VZ |
16317 | |
16318 | fi | |
16319 | ||
1e487827 | 16320 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
16321 | # This file is a shell script that caches the results of configure |
16322 | # tests run on this system so they can be shared between configure | |
1e487827 VS |
16323 | # scripts and configure runs, see configure's option --config-cache. |
16324 | # It is not useful on other systems. If it contains results you don't | |
16325 | # want to keep, you may remove or edit it. | |
10f2d63a | 16326 | # |
1e487827 VS |
16327 | # config.status only pays attention to the cache file if you give it |
16328 | # the --recheck option to rerun configure. | |
10f2d63a | 16329 | # |
1e487827 VS |
16330 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
16331 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16332 | # following values. | |
16333 | ||
16334 | _ACEOF | |
16335 | ||
10f2d63a VZ |
16336 | # The following way of writing the cache mishandles newlines in values, |
16337 | # but we know of no workaround that is simple, portable, and efficient. | |
16338 | # So, don't put newlines in cache variables' values. | |
16339 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16340 | # and sets the high bit in the cache file unless we assign to the vars. | |
1e487827 VS |
16341 | { |
16342 | (set) 2>&1 | | |
16343 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16344 | *ac_space=\ *) | |
16345 | # `set' does not quote correctly, so add quotes (double-quote | |
16346 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
16347 | sed -n \ | |
16348 | "s/'/'\\\\''/g; | |
16349 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16350 | ;; | |
16351 | *) | |
16352 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16353 | sed -n \ | |
16354 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
16355 | ;; | |
16356 | esac; | |
16357 | } | | |
16358 | sed ' | |
16359 | t clear | |
16360 | : clear | |
16361 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16362 | t end | |
16363 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16364 | : end' >>confcache | |
16365 | if cmp -s $cache_file confcache; then :; else | |
10f2d63a | 16366 | if test -w $cache_file; then |
1e487827 VS |
16367 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
16368 | cat confcache >$cache_file | |
10f2d63a VZ |
16369 | else |
16370 | echo "not updating unwritable cache $cache_file" | |
16371 | fi | |
16372 | fi | |
16373 | rm -f confcache | |
16374 | ||
b089607b | 16375 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 16376 | |
10f2d63a VZ |
16377 | THREADS_LINK="" |
16378 | THREADS_OBJ="" | |
16379 | ||
16380 | if test "$wxUSE_THREADS" = "yes" ; then | |
16381 | if test "$wxUSE_WINE" = 1 ; then | |
1e487827 VS |
16382 | { echo "$as_me:16382: WARNING: Threads are not supported under WINE" >&5 |
16383 | echo "$as_me: WARNING: Threads are not supported under WINE" >&2;} | |
10f2d63a | 16384 | wxUSE_THREADS="no" |
b12915c1 | 16385 | elif test "$USE_BEOS" = 1; then |
1e487827 VS |
16386 | { echo "$as_me:16386: WARNING: BeOS threads are not yet supported" >&5 |
16387 | echo "$as_me: WARNING: BeOS threads are not yet supported" >&2;} | |
b12915c1 | 16388 | wxUSE_THREADS="no" |
10f2d63a VZ |
16389 | fi |
16390 | fi | |
16391 | ||
16392 | if test "$wxUSE_THREADS" = "yes" ; then | |
1e487827 | 16393 | |
186837b0 | 16394 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
16395 | THREADS_LIB=pthreads |
16396 | else | |
16397 | THREADS_LIB=pthread | |
16398 | fi | |
16399 | ||
1e487827 VS |
16400 | ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LIB_pthread_create" | $ac_tr_sh` |
16401 | echo "$as_me:16401: checking for pthread_create in -l$THREADS_LIB" >&5 | |
16402 | echo $ECHO_N "checking for pthread_create in -l$THREADS_LIB... $ECHO_C" >&6 | |
16403 | if eval "test \"\${$ac_ac_Lib+set}\" = set"; then | |
16404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 16405 | else |
1e487827 | 16406 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 16407 | LIBS="-l$THREADS_LIB $LIBS" |
1e487827 VS |
16408 | cat >conftest.$ac_ext <<_ACEOF |
16409 | #line 16409 "configure" | |
10f2d63a | 16410 | #include "confdefs.h" |
1e487827 | 16411 | |
10f2d63a | 16412 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16413 | #ifdef __cplusplus |
16414 | extern "C" | |
16415 | #endif | |
10f2d63a | 16416 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16417 | builtin and then its argument prototype would still apply. */ |
16418 | char pthread_create (); | |
16419 | int | |
16420 | main () | |
16421 | { | |
16422 | pthread_create (); | |
16423 | ; | |
16424 | return 0; | |
16425 | } | |
16426 | _ACEOF | |
16427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16428 | if { (eval echo "$as_me:16428: \"$ac_link\"") >&5 | |
16429 | (eval $ac_link) 2>&5 | |
16430 | ac_status=$? | |
16431 | echo "$as_me:16431: \$? = $ac_status" >&5 | |
16432 | (exit $ac_status); } && | |
16433 | { ac_try='test -s conftest$ac_exeext' | |
16434 | { (eval echo "$as_me:16434: \"$ac_try\"") >&5 | |
16435 | (eval $ac_try) 2>&5 | |
16436 | ac_status=$? | |
16437 | echo "$as_me:16437: \$? = $ac_status" >&5 | |
16438 | (exit $ac_status); }; }; then | |
16439 | eval "$ac_ac_Lib=yes" | |
16440 | else | |
16441 | echo "$as_me: failed program was:" >&5 | |
16442 | cat conftest.$ac_ext >&5 | |
16443 | eval "$ac_ac_Lib=no" | |
16444 | fi | |
16445 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16446 | LIBS=$ac_check_lib_save_LIBS | |
16447 | fi | |
16448 | echo "$as_me:16448: result: `eval echo '${'$ac_ac_Lib'}'`" >&5 | |
16449 | echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6 | |
16450 | if test `eval echo '${'$ac_ac_Lib'}'` = yes; then | |
10f2d63a | 16451 | |
10f2d63a | 16452 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 16453 | THREADS_LINK=$THREADS_LIB |
1e487827 | 16454 | |
10f2d63a | 16455 | else |
10f2d63a | 16456 | |
1e487827 VS |
16457 | echo "$as_me:16457: checking for pthread_create in -lc_r" >&5 |
16458 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 | |
16459 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then | |
16460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 16461 | else |
1e487827 | 16462 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 16463 | LIBS="-lc_r $LIBS" |
1e487827 VS |
16464 | cat >conftest.$ac_ext <<_ACEOF |
16465 | #line 16465 "configure" | |
10f2d63a | 16466 | #include "confdefs.h" |
1e487827 | 16467 | |
10f2d63a | 16468 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16469 | #ifdef __cplusplus |
16470 | extern "C" | |
16471 | #endif | |
10f2d63a | 16472 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16473 | builtin and then its argument prototype would still apply. */ |
16474 | char pthread_create (); | |
16475 | int | |
16476 | main () | |
16477 | { | |
16478 | pthread_create (); | |
16479 | ; | |
16480 | return 0; | |
16481 | } | |
16482 | _ACEOF | |
16483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16484 | if { (eval echo "$as_me:16484: \"$ac_link\"") >&5 | |
16485 | (eval $ac_link) 2>&5 | |
16486 | ac_status=$? | |
16487 | echo "$as_me:16487: \$? = $ac_status" >&5 | |
16488 | (exit $ac_status); } && | |
16489 | { ac_try='test -s conftest$ac_exeext' | |
16490 | { (eval echo "$as_me:16490: \"$ac_try\"") >&5 | |
16491 | (eval $ac_try) 2>&5 | |
16492 | ac_status=$? | |
16493 | echo "$as_me:16493: \$? = $ac_status" >&5 | |
16494 | (exit $ac_status); }; }; then | |
16495 | ac_cv_lib_c_r_pthread_create=yes | |
16496 | else | |
16497 | echo "$as_me: failed program was:" >&5 | |
16498 | cat conftest.$ac_ext >&5 | |
16499 | ac_cv_lib_c_r_pthread_create=no | |
16500 | fi | |
16501 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16502 | LIBS=$ac_check_lib_save_LIBS | |
16503 | fi | |
16504 | echo "$as_me:16504: result: $ac_cv_lib_c_r_pthread_create" >&5 | |
16505 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 | |
16506 | if test $ac_cv_lib_c_r_pthread_create = yes; then | |
10f2d63a | 16507 | |
10f2d63a VZ |
16508 | THREADS_OBJ="threadpsx.lo" |
16509 | THREADS_LINK="c_r" | |
1e487827 | 16510 | |
10f2d63a | 16511 | else |
10f2d63a | 16512 | |
1e487827 VS |
16513 | echo "$as_me:16513: checking for sys/prctl.h" >&5 |
16514 | echo $ECHO_N "checking for sys/prctl.h... $ECHO_C" >&6 | |
16515 | if test "${ac_cv_header_sys_prctl_h+set}" = set; then | |
16516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 16517 | else |
1e487827 VS |
16518 | cat >conftest.$ac_ext <<_ACEOF |
16519 | #line 16519 "configure" | |
10f2d63a VZ |
16520 | #include "confdefs.h" |
16521 | #include <sys/prctl.h> | |
1e487827 VS |
16522 | _ACEOF |
16523 | if { (eval echo "$as_me:16523: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16524 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16525 | ac_status=$? | |
16526 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
16527 | rm -f conftest.er1 | |
16528 | cat conftest.err >&5 | |
16529 | echo "$as_me:16529: \$? = $ac_status" >&5 | |
16530 | (exit $ac_status); } >/dev/null; then | |
16531 | if test -s conftest.err; then | |
16532 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16533 | else | |
16534 | ac_cpp_err= | |
16535 | fi | |
10f2d63a | 16536 | else |
1e487827 VS |
16537 | ac_cpp_err=yes |
16538 | fi | |
16539 | if test -z "$ac_cpp_err"; then | |
16540 | ac_cv_header_sys_prctl_h=yes | |
16541 | else | |
16542 | echo "$as_me: failed program was:" >&5 | |
10f2d63a | 16543 | cat conftest.$ac_ext >&5 |
1e487827 | 16544 | ac_cv_header_sys_prctl_h=no |
10f2d63a | 16545 | fi |
1e487827 | 16546 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 16547 | fi |
1e487827 VS |
16548 | echo "$as_me:16548: result: $ac_cv_header_sys_prctl_h" >&5 |
16549 | echo "${ECHO_T}$ac_cv_header_sys_prctl_h" >&6 | |
16550 | if test $ac_cv_header_sys_prctl_h = yes; then | |
16551 | ||
1f8ae82f | 16552 | THREADS_OBJ="threadsgi.lo" |
10f2d63a | 16553 | |
10f2d63a VZ |
16554 | fi |
16555 | ||
6232543b | 16556 | fi |
10f2d63a | 16557 | |
1e487827 | 16558 | fi |
703e0a69 | 16559 | |
10f2d63a VZ |
16560 | if test -z "$THREADS_OBJ" ; then |
16561 | wxUSE_THREADS=no | |
1e487827 VS |
16562 | { echo "$as_me:16562: WARNING: No thread support on this system" >&5 |
16563 | echo "$as_me: WARNING: No thread support on this system" >&2;} | |
10f2d63a VZ |
16564 | fi |
16565 | fi | |
16566 | ||
16567 | if test "$wxUSE_THREADS" = "yes" ; then | |
1e487827 VS |
16568 | |
16569 | for ac_func in thr_setconcurrency | |
70846f0a | 16570 | do |
1e487827 VS |
16571 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
16572 | echo "$as_me:16572: checking for $ac_func" >&5 | |
16573 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16574 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
16575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16576 | else | |
16577 | cat >conftest.$ac_ext <<_ACEOF | |
16578 | #line 16578 "configure" | |
70846f0a VZ |
16579 | #include "confdefs.h" |
16580 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 16581 | which can conflict with char $ac_func (); below. */ |
70846f0a VZ |
16582 | #include <assert.h> |
16583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
16584 | #ifdef __cplusplus |
16585 | extern "C" | |
16586 | #endif | |
70846f0a | 16587 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16588 | builtin and then its argument prototype would still apply. */ |
16589 | char $ac_func (); | |
16590 | char (*f) (); | |
70846f0a | 16591 | |
1e487827 VS |
16592 | int |
16593 | main () | |
16594 | { | |
70846f0a VZ |
16595 | /* The GNU C library defines this for functions which it implements |
16596 | to always fail with ENOSYS. Some functions are actually named | |
16597 | something starting with __ and the normal name is an alias. */ | |
16598 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16599 | choke me | |
16600 | #else | |
1e487827 | 16601 | f = $ac_func; |
70846f0a VZ |
16602 | #endif |
16603 | ||
1e487827 VS |
16604 | ; |
16605 | return 0; | |
16606 | } | |
16607 | _ACEOF | |
16608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16609 | if { (eval echo "$as_me:16609: \"$ac_link\"") >&5 | |
16610 | (eval $ac_link) 2>&5 | |
16611 | ac_status=$? | |
16612 | echo "$as_me:16612: \$? = $ac_status" >&5 | |
16613 | (exit $ac_status); } && | |
16614 | { ac_try='test -s conftest$ac_exeext' | |
16615 | { (eval echo "$as_me:16615: \"$ac_try\"") >&5 | |
16616 | (eval $ac_try) 2>&5 | |
16617 | ac_status=$? | |
16618 | echo "$as_me:16618: \$? = $ac_status" >&5 | |
16619 | (exit $ac_status); }; }; then | |
16620 | eval "$ac_ac_var=yes" | |
16621 | else | |
16622 | echo "$as_me: failed program was:" >&5 | |
16623 | cat conftest.$ac_ext >&5 | |
16624 | eval "$ac_ac_var=no" | |
16625 | fi | |
16626 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16627 | fi | |
16628 | echo "$as_me:16628: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
16629 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
16630 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
16631 | cat >>confdefs.h <<EOF | |
16632 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
70846f0a | 16633 | EOF |
70846f0a | 16634 | |
70846f0a VZ |
16635 | fi |
16636 | done | |
16637 | ||
1e487827 | 16638 | for ac_header in sched.h |
10f2d63a | 16639 | do |
1e487827 VS |
16640 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
16641 | echo "$as_me:16641: checking for $ac_header" >&5 | |
16642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16643 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
16644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16645 | else | |
16646 | cat >conftest.$ac_ext <<_ACEOF | |
16647 | #line 16647 "configure" | |
10f2d63a | 16648 | #include "confdefs.h" |
1e487827 VS |
16649 | #include <$ac_header> |
16650 | _ACEOF | |
16651 | if { (eval echo "$as_me:16651: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16652 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16653 | ac_status=$? | |
16654 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
16655 | rm -f conftest.er1 | |
16656 | cat conftest.err >&5 | |
16657 | echo "$as_me:16657: \$? = $ac_status" >&5 | |
16658 | (exit $ac_status); } >/dev/null; then | |
16659 | if test -s conftest.err; then | |
16660 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16661 | else | |
16662 | ac_cpp_err= | |
16663 | fi | |
10f2d63a | 16664 | else |
1e487827 VS |
16665 | ac_cpp_err=yes |
16666 | fi | |
16667 | if test -z "$ac_cpp_err"; then | |
16668 | eval "$ac_ac_Header=yes" | |
16669 | else | |
16670 | echo "$as_me: failed program was:" >&5 | |
10f2d63a | 16671 | cat conftest.$ac_ext >&5 |
1e487827 | 16672 | eval "$ac_ac_Header=no" |
10f2d63a | 16673 | fi |
1e487827 | 16674 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 16675 | fi |
1e487827 VS |
16676 | echo "$as_me:16676: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
16677 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
16678 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
16679 | cat >>confdefs.h <<EOF | |
16680 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
10f2d63a | 16681 | EOF |
1e487827 | 16682 | |
10f2d63a VZ |
16683 | fi |
16684 | done | |
16685 | ||
1e487827 VS |
16686 | ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_sched_yield" | $ac_tr_sh` |
16687 | echo "$as_me:16687: checking for sched_yield in -l$THREADS_LINK" >&5 | |
16688 | echo $ECHO_N "checking for sched_yield in -l$THREADS_LINK... $ECHO_C" >&6 | |
16689 | if eval "test \"\${$ac_ac_Lib+set}\" = set"; then | |
16690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 16691 | else |
1e487827 | 16692 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 16693 | LIBS="-l$THREADS_LINK $LIBS" |
1e487827 VS |
16694 | cat >conftest.$ac_ext <<_ACEOF |
16695 | #line 16695 "configure" | |
10f2d63a | 16696 | #include "confdefs.h" |
1e487827 | 16697 | |
10f2d63a | 16698 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16699 | #ifdef __cplusplus |
16700 | extern "C" | |
16701 | #endif | |
10f2d63a | 16702 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16703 | builtin and then its argument prototype would still apply. */ |
16704 | char sched_yield (); | |
16705 | int | |
16706 | main () | |
16707 | { | |
16708 | sched_yield (); | |
16709 | ; | |
16710 | return 0; | |
16711 | } | |
16712 | _ACEOF | |
16713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16714 | if { (eval echo "$as_me:16714: \"$ac_link\"") >&5 | |
16715 | (eval $ac_link) 2>&5 | |
16716 | ac_status=$? | |
16717 | echo "$as_me:16717: \$? = $ac_status" >&5 | |
16718 | (exit $ac_status); } && | |
16719 | { ac_try='test -s conftest$ac_exeext' | |
16720 | { (eval echo "$as_me:16720: \"$ac_try\"") >&5 | |
16721 | (eval $ac_try) 2>&5 | |
16722 | ac_status=$? | |
16723 | echo "$as_me:16723: \$? = $ac_status" >&5 | |
16724 | (exit $ac_status); }; }; then | |
16725 | eval "$ac_ac_Lib=yes" | |
16726 | else | |
16727 | echo "$as_me: failed program was:" >&5 | |
16728 | cat conftest.$ac_ext >&5 | |
16729 | eval "$ac_ac_Lib=no" | |
16730 | fi | |
16731 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16732 | LIBS=$ac_check_lib_save_LIBS | |
16733 | fi | |
16734 | echo "$as_me:16734: result: `eval echo '${'$ac_ac_Lib'}'`" >&5 | |
16735 | echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6 | |
16736 | if test `eval echo '${'$ac_ac_Lib'}'` = yes; then | |
16737 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
16738 | #define HAVE_SCHED_YIELD 1 |
16739 | EOF | |
16740 | ||
16741 | else | |
1e487827 VS |
16742 | echo "$as_me:16742: checking for sched_yield in -lposix4" >&5 |
16743 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
16744 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
16745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 16746 | else |
1e487827 VS |
16747 | ac_check_lib_save_LIBS=$LIBS |
16748 | LIBS="-lposix4 $LIBS" | |
16749 | cat >conftest.$ac_ext <<_ACEOF | |
16750 | #line 16750 "configure" | |
10f2d63a | 16751 | #include "confdefs.h" |
1e487827 | 16752 | |
10f2d63a | 16753 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16754 | #ifdef __cplusplus |
16755 | extern "C" | |
16756 | #endif | |
10f2d63a | 16757 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16758 | builtin and then its argument prototype would still apply. */ |
16759 | char sched_yield (); | |
16760 | int | |
16761 | main () | |
16762 | { | |
16763 | sched_yield (); | |
16764 | ; | |
16765 | return 0; | |
16766 | } | |
16767 | _ACEOF | |
16768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16769 | if { (eval echo "$as_me:16769: \"$ac_link\"") >&5 | |
16770 | (eval $ac_link) 2>&5 | |
16771 | ac_status=$? | |
16772 | echo "$as_me:16772: \$? = $ac_status" >&5 | |
16773 | (exit $ac_status); } && | |
16774 | { ac_try='test -s conftest$ac_exeext' | |
16775 | { (eval echo "$as_me:16775: \"$ac_try\"") >&5 | |
16776 | (eval $ac_try) 2>&5 | |
16777 | ac_status=$? | |
16778 | echo "$as_me:16778: \$? = $ac_status" >&5 | |
16779 | (exit $ac_status); }; }; then | |
16780 | ac_cv_lib_posix4_sched_yield=yes | |
16781 | else | |
16782 | echo "$as_me: failed program was:" >&5 | |
16783 | cat conftest.$ac_ext >&5 | |
16784 | ac_cv_lib_posix4_sched_yield=no | |
16785 | fi | |
16786 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16787 | LIBS=$ac_check_lib_save_LIBS | |
16788 | fi | |
16789 | echo "$as_me:16789: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
16790 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
16791 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
16792 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
16793 | #define HAVE_SCHED_YIELD 1 |
16794 | EOF | |
16795 | POSIX4_LINK="-lposix4" | |
16796 | else | |
1e487827 VS |
16797 | { echo "$as_me:16797: WARNING: wxThread::Yield will not work properly" >&5 |
16798 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
10f2d63a | 16799 | |
6232543b | 16800 | fi |
10f2d63a | 16801 | |
1e487827 | 16802 | fi |
703e0a69 | 16803 | |
f6bcfd97 | 16804 | HAVE_PRIOR_FUNCS=0 |
1e487827 VS |
16805 | ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_pthread_attr_getschedpolicy" | $ac_tr_sh` |
16806 | echo "$as_me:16806: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 | |
16807 | echo $ECHO_N "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK... $ECHO_C" >&6 | |
16808 | if eval "test \"\${$ac_ac_Lib+set}\" = set"; then | |
16809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 16810 | else |
1e487827 | 16811 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 16812 | LIBS="-l$THREADS_LINK $LIBS" |
1e487827 VS |
16813 | cat >conftest.$ac_ext <<_ACEOF |
16814 | #line 16814 "configure" | |
10f2d63a | 16815 | #include "confdefs.h" |
1e487827 | 16816 | |
10f2d63a | 16817 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16818 | #ifdef __cplusplus |
16819 | extern "C" | |
16820 | #endif | |
10f2d63a | 16821 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16822 | builtin and then its argument prototype would still apply. */ |
16823 | char pthread_attr_getschedpolicy (); | |
16824 | int | |
16825 | main () | |
16826 | { | |
16827 | pthread_attr_getschedpolicy (); | |
16828 | ; | |
16829 | return 0; | |
16830 | } | |
16831 | _ACEOF | |
16832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16833 | if { (eval echo "$as_me:16833: \"$ac_link\"") >&5 | |
16834 | (eval $ac_link) 2>&5 | |
16835 | ac_status=$? | |
16836 | echo "$as_me:16836: \$? = $ac_status" >&5 | |
16837 | (exit $ac_status); } && | |
16838 | { ac_try='test -s conftest$ac_exeext' | |
16839 | { (eval echo "$as_me:16839: \"$ac_try\"") >&5 | |
16840 | (eval $ac_try) 2>&5 | |
16841 | ac_status=$? | |
16842 | echo "$as_me:16842: \$? = $ac_status" >&5 | |
16843 | (exit $ac_status); }; }; then | |
16844 | eval "$ac_ac_Lib=yes" | |
16845 | else | |
16846 | echo "$as_me: failed program was:" >&5 | |
16847 | cat conftest.$ac_ext >&5 | |
16848 | eval "$ac_ac_Lib=no" | |
16849 | fi | |
16850 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16851 | LIBS=$ac_check_lib_save_LIBS | |
16852 | fi | |
16853 | echo "$as_me:16853: result: `eval echo '${'$ac_ac_Lib'}'`" >&5 | |
16854 | echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6 | |
16855 | if test `eval echo '${'$ac_ac_Lib'}'` = yes; then | |
16856 | ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_pthread_attr_setschedparam" | $ac_tr_sh` | |
16857 | echo "$as_me:16857: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 | |
16858 | echo $ECHO_N "checking for pthread_attr_setschedparam in -l$THREADS_LINK... $ECHO_C" >&6 | |
16859 | if eval "test \"\${$ac_ac_Lib+set}\" = set"; then | |
16860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16861 | else | |
16862 | ac_check_lib_save_LIBS=$LIBS | |
f6bcfd97 | 16863 | LIBS="-l$THREADS_LINK $LIBS" |
1e487827 VS |
16864 | cat >conftest.$ac_ext <<_ACEOF |
16865 | #line 16865 "configure" | |
f6bcfd97 | 16866 | #include "confdefs.h" |
1e487827 | 16867 | |
f6bcfd97 | 16868 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16869 | #ifdef __cplusplus |
16870 | extern "C" | |
16871 | #endif | |
f6bcfd97 | 16872 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16873 | builtin and then its argument prototype would still apply. */ |
16874 | char pthread_attr_setschedparam (); | |
16875 | int | |
16876 | main () | |
16877 | { | |
16878 | pthread_attr_setschedparam (); | |
16879 | ; | |
16880 | return 0; | |
16881 | } | |
16882 | _ACEOF | |
16883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16884 | if { (eval echo "$as_me:16884: \"$ac_link\"") >&5 | |
16885 | (eval $ac_link) 2>&5 | |
16886 | ac_status=$? | |
16887 | echo "$as_me:16887: \$? = $ac_status" >&5 | |
16888 | (exit $ac_status); } && | |
16889 | { ac_try='test -s conftest$ac_exeext' | |
16890 | { (eval echo "$as_me:16890: \"$ac_try\"") >&5 | |
16891 | (eval $ac_try) 2>&5 | |
16892 | ac_status=$? | |
16893 | echo "$as_me:16893: \$? = $ac_status" >&5 | |
16894 | (exit $ac_status); }; }; then | |
16895 | eval "$ac_ac_Lib=yes" | |
16896 | else | |
16897 | echo "$as_me: failed program was:" >&5 | |
16898 | cat conftest.$ac_ext >&5 | |
16899 | eval "$ac_ac_Lib=no" | |
16900 | fi | |
16901 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16902 | LIBS=$ac_check_lib_save_LIBS | |
16903 | fi | |
16904 | echo "$as_me:16904: result: `eval echo '${'$ac_ac_Lib'}'`" >&5 | |
16905 | echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6 | |
16906 | if test `eval echo '${'$ac_ac_Lib'}'` = yes; then | |
16907 | ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_sched_get_priority_max" | $ac_tr_sh` | |
16908 | echo "$as_me:16908: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 | |
16909 | echo $ECHO_N "checking for sched_get_priority_max in -l$THREADS_LINK... $ECHO_C" >&6 | |
16910 | if eval "test \"\${$ac_ac_Lib+set}\" = set"; then | |
16911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16912 | else | |
16913 | ac_check_lib_save_LIBS=$LIBS | |
f6bcfd97 | 16914 | LIBS="-l$THREADS_LINK $LIBS" |
1e487827 VS |
16915 | cat >conftest.$ac_ext <<_ACEOF |
16916 | #line 16916 "configure" | |
f6bcfd97 | 16917 | #include "confdefs.h" |
1e487827 | 16918 | |
f6bcfd97 | 16919 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16920 | #ifdef __cplusplus |
16921 | extern "C" | |
16922 | #endif | |
f6bcfd97 | 16923 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16924 | builtin and then its argument prototype would still apply. */ |
16925 | char sched_get_priority_max (); | |
16926 | int | |
16927 | main () | |
16928 | { | |
16929 | sched_get_priority_max (); | |
16930 | ; | |
16931 | return 0; | |
16932 | } | |
16933 | _ACEOF | |
16934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16935 | if { (eval echo "$as_me:16935: \"$ac_link\"") >&5 | |
16936 | (eval $ac_link) 2>&5 | |
16937 | ac_status=$? | |
16938 | echo "$as_me:16938: \$? = $ac_status" >&5 | |
16939 | (exit $ac_status); } && | |
16940 | { ac_try='test -s conftest$ac_exeext' | |
16941 | { (eval echo "$as_me:16941: \"$ac_try\"") >&5 | |
16942 | (eval $ac_try) 2>&5 | |
16943 | ac_status=$? | |
16944 | echo "$as_me:16944: \$? = $ac_status" >&5 | |
16945 | (exit $ac_status); }; }; then | |
16946 | eval "$ac_ac_Lib=yes" | |
16947 | else | |
16948 | echo "$as_me: failed program was:" >&5 | |
16949 | cat conftest.$ac_ext >&5 | |
16950 | eval "$ac_ac_Lib=no" | |
16951 | fi | |
16952 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16953 | LIBS=$ac_check_lib_save_LIBS | |
16954 | fi | |
16955 | echo "$as_me:16955: result: `eval echo '${'$ac_ac_Lib'}'`" >&5 | |
16956 | echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6 | |
16957 | if test `eval echo '${'$ac_ac_Lib'}'` = yes; then | |
f6bcfd97 | 16958 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 16959 | else |
1e487827 VS |
16960 | echo "$as_me:16960: checking for sched_get_priority_max in -lposix4" >&5 |
16961 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
16962 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
16963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16964 | else | |
16965 | ac_check_lib_save_LIBS=$LIBS | |
16966 | LIBS="-lposix4 $LIBS" | |
16967 | cat >conftest.$ac_ext <<_ACEOF | |
16968 | #line 16968 "configure" | |
10f2d63a | 16969 | #include "confdefs.h" |
1e487827 | 16970 | |
6232543b | 16971 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
16972 | #ifdef __cplusplus |
16973 | extern "C" | |
16974 | #endif | |
6232543b | 16975 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
16976 | builtin and then its argument prototype would still apply. */ |
16977 | char sched_get_priority_max (); | |
16978 | int | |
16979 | main () | |
16980 | { | |
16981 | sched_get_priority_max (); | |
16982 | ; | |
16983 | return 0; | |
16984 | } | |
16985 | _ACEOF | |
16986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16987 | if { (eval echo "$as_me:16987: \"$ac_link\"") >&5 | |
16988 | (eval $ac_link) 2>&5 | |
16989 | ac_status=$? | |
16990 | echo "$as_me:16990: \$? = $ac_status" >&5 | |
16991 | (exit $ac_status); } && | |
16992 | { ac_try='test -s conftest$ac_exeext' | |
16993 | { (eval echo "$as_me:16993: \"$ac_try\"") >&5 | |
16994 | (eval $ac_try) 2>&5 | |
16995 | ac_status=$? | |
16996 | echo "$as_me:16996: \$? = $ac_status" >&5 | |
16997 | (exit $ac_status); }; }; then | |
16998 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
16999 | else | |
17000 | echo "$as_me: failed program was:" >&5 | |
17001 | cat conftest.$ac_ext >&5 | |
17002 | ac_cv_lib_posix4_sched_get_priority_max=no | |
17003 | fi | |
17004 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17005 | LIBS=$ac_check_lib_save_LIBS | |
17006 | fi | |
17007 | echo "$as_me:17007: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
17008 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
17009 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
10f2d63a | 17010 | |
f6bcfd97 BP |
17011 | HAVE_PRIOR_FUNCS=1 |
17012 | POSIX4_LINK="-lposix4" | |
f6bcfd97 | 17013 | |
10f2d63a VZ |
17014 | fi |
17015 | ||
10f2d63a VZ |
17016 | fi |
17017 | ||
6232543b | 17018 | fi |
10f2d63a | 17019 | |
1e487827 | 17020 | fi |
703e0a69 | 17021 | |
f6bcfd97 | 17022 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
1e487827 | 17023 | cat >>confdefs.h <<\EOF |
f6bcfd97 BP |
17024 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
17025 | EOF | |
17026 | ||
17027 | else | |
1e487827 VS |
17028 | { echo "$as_me:17028: WARNING: Setting thread priority will not work" >&5 |
17029 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
f6bcfd97 BP |
17030 | fi |
17031 | ||
1e487827 VS |
17032 | ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_pthread_cancel" | $ac_tr_sh` |
17033 | echo "$as_me:17033: checking for pthread_cancel in -l$THREADS_LINK" >&5 | |
17034 | echo $ECHO_N "checking for pthread_cancel in -l$THREADS_LINK... $ECHO_C" >&6 | |
17035 | if eval "test \"\${$ac_ac_Lib+set}\" = set"; then | |
17036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 17037 | else |
1e487827 | 17038 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 17039 | LIBS="-l$THREADS_LINK $LIBS" |
1e487827 VS |
17040 | cat >conftest.$ac_ext <<_ACEOF |
17041 | #line 17041 "configure" | |
10f2d63a | 17042 | #include "confdefs.h" |
1e487827 | 17043 | |
10f2d63a | 17044 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
17045 | #ifdef __cplusplus |
17046 | extern "C" | |
17047 | #endif | |
10f2d63a | 17048 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
17049 | builtin and then its argument prototype would still apply. */ |
17050 | char pthread_cancel (); | |
17051 | int | |
17052 | main () | |
17053 | { | |
17054 | pthread_cancel (); | |
17055 | ; | |
17056 | return 0; | |
17057 | } | |
17058 | _ACEOF | |
17059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17060 | if { (eval echo "$as_me:17060: \"$ac_link\"") >&5 | |
17061 | (eval $ac_link) 2>&5 | |
17062 | ac_status=$? | |
17063 | echo "$as_me:17063: \$? = $ac_status" >&5 | |
17064 | (exit $ac_status); } && | |
17065 | { ac_try='test -s conftest$ac_exeext' | |
17066 | { (eval echo "$as_me:17066: \"$ac_try\"") >&5 | |
17067 | (eval $ac_try) 2>&5 | |
17068 | ac_status=$? | |
17069 | echo "$as_me:17069: \$? = $ac_status" >&5 | |
17070 | (exit $ac_status); }; }; then | |
17071 | eval "$ac_ac_Lib=yes" | |
17072 | else | |
17073 | echo "$as_me: failed program was:" >&5 | |
17074 | cat conftest.$ac_ext >&5 | |
17075 | eval "$ac_ac_Lib=no" | |
17076 | fi | |
17077 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17078 | LIBS=$ac_check_lib_save_LIBS | |
17079 | fi | |
17080 | echo "$as_me:17080: result: `eval echo '${'$ac_ac_Lib'}'`" >&5 | |
17081 | echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6 | |
17082 | if test `eval echo '${'$ac_ac_Lib'}'` = yes; then | |
17083 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
17084 | #define HAVE_PTHREAD_CANCEL 1 |
17085 | EOF | |
17086 | ||
17087 | else | |
1e487827 VS |
17088 | { echo "$as_me:17088: WARNING: wxThread::Kill() will not work properly" >&5 |
17089 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
10f2d63a VZ |
17090 | fi |
17091 | ||
1e487827 VS |
17092 | echo "$as_me:17092: checking for pthread_cleanup_push/pop" >&5 |
17093 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
17094 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
17095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 17096 | else |
1e487827 VS |
17097 | |
17098 | cat >conftest.$ac_ext <<_ACEOF | |
17099 | #line 17099 "configure" | |
10f2d63a VZ |
17100 | #include "confdefs.h" |
17101 | #include <pthread.h> | |
1e487827 VS |
17102 | int |
17103 | main () | |
17104 | { | |
10f2d63a VZ |
17105 | |
17106 | pthread_cleanup_push(NULL, NULL); | |
17107 | pthread_cleanup_pop(0); | |
1e487827 VS |
17108 | |
17109 | ; | |
17110 | return 0; | |
17111 | } | |
17112 | _ACEOF | |
17113 | rm -f conftest.$ac_objext | |
17114 | if { (eval echo "$as_me:17114: \"$ac_compile\"") >&5 | |
17115 | (eval $ac_compile) 2>&5 | |
17116 | ac_status=$? | |
17117 | echo "$as_me:17117: \$? = $ac_status" >&5 | |
17118 | (exit $ac_status); } && | |
17119 | { ac_try='test -s conftest.$ac_objext' | |
17120 | { (eval echo "$as_me:17120: \"$ac_try\"") >&5 | |
17121 | (eval $ac_try) 2>&5 | |
17122 | ac_status=$? | |
17123 | echo "$as_me:17123: \$? = $ac_status" >&5 | |
17124 | (exit $ac_status); }; }; then | |
17125 | ||
10f2d63a | 17126 | wx_cv_func_pthread_cleanup_push=yes |
1e487827 | 17127 | |
10f2d63a | 17128 | else |
1e487827 VS |
17129 | echo "$as_me: failed program was:" >&5 |
17130 | cat conftest.$ac_ext >&5 | |
17131 | ||
10f2d63a | 17132 | wx_cv_func_pthread_cleanup_push=no |
1e487827 | 17133 | |
6232543b | 17134 | fi |
1e487827 | 17135 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 17136 | |
1e487827 VS |
17137 | fi |
17138 | echo "$as_me:17138: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
17139 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
10f2d63a | 17140 | |
d9b9876f | 17141 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
1e487827 | 17142 | cat >>confdefs.h <<\EOF |
d9b9876f VZ |
17143 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
17144 | EOF | |
17145 | ||
17146 | fi | |
17147 | ||
1e487827 VS |
17148 | echo "$as_me:17148: checking for pthread_mutexattr_t" >&5 |
17149 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
17150 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
17151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d9b9876f | 17152 | else |
1e487827 VS |
17153 | |
17154 | cat >conftest.$ac_ext <<_ACEOF | |
17155 | #line 17155 "configure" | |
d9b9876f VZ |
17156 | #include "confdefs.h" |
17157 | #include <pthread.h> | |
1e487827 VS |
17158 | int |
17159 | main () | |
17160 | { | |
d9b9876f VZ |
17161 | |
17162 | pthread_mutexattr_t attr; | |
17163 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
1e487827 VS |
17164 | |
17165 | ; | |
17166 | return 0; | |
17167 | } | |
17168 | _ACEOF | |
17169 | rm -f conftest.$ac_objext | |
17170 | if { (eval echo "$as_me:17170: \"$ac_compile\"") >&5 | |
17171 | (eval $ac_compile) 2>&5 | |
17172 | ac_status=$? | |
17173 | echo "$as_me:17173: \$? = $ac_status" >&5 | |
17174 | (exit $ac_status); } && | |
17175 | { ac_try='test -s conftest.$ac_objext' | |
17176 | { (eval echo "$as_me:17176: \"$ac_try\"") >&5 | |
17177 | (eval $ac_try) 2>&5 | |
17178 | ac_status=$? | |
17179 | echo "$as_me:17179: \$? = $ac_status" >&5 | |
17180 | (exit $ac_status); }; }; then | |
17181 | ||
d9b9876f | 17182 | wx_cv_type_pthread_mutexattr_t=yes |
1e487827 | 17183 | |
d9b9876f | 17184 | else |
1e487827 VS |
17185 | echo "$as_me: failed program was:" >&5 |
17186 | cat conftest.$ac_ext >&5 | |
17187 | ||
d9b9876f | 17188 | wx_cv_type_pthread_mutexattr_t=no |
1e487827 | 17189 | |
6232543b | 17190 | fi |
1e487827 | 17191 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 17192 | |
1e487827 VS |
17193 | fi |
17194 | echo "$as_me:17194: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
17195 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
d9b9876f VZ |
17196 | |
17197 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
1e487827 | 17198 | cat >>confdefs.h <<\EOF |
d9b9876f VZ |
17199 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17200 | EOF | |
17201 | ||
17202 | else | |
1e487827 VS |
17203 | echo "$as_me:17203: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
17204 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
17205 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
17206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17207 | else | |
17208 | ||
17209 | cat >conftest.$ac_ext <<_ACEOF | |
17210 | #line 17210 "configure" | |
d9b9876f VZ |
17211 | #include "confdefs.h" |
17212 | #include <pthread.h> | |
1e487827 VS |
17213 | int |
17214 | main () | |
17215 | { | |
d9b9876f VZ |
17216 | |
17217 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
1e487827 VS |
17218 | |
17219 | ; | |
17220 | return 0; | |
17221 | } | |
17222 | _ACEOF | |
17223 | rm -f conftest.$ac_objext | |
17224 | if { (eval echo "$as_me:17224: \"$ac_compile\"") >&5 | |
17225 | (eval $ac_compile) 2>&5 | |
17226 | ac_status=$? | |
17227 | echo "$as_me:17227: \$? = $ac_status" >&5 | |
17228 | (exit $ac_status); } && | |
17229 | { ac_try='test -s conftest.$ac_objext' | |
17230 | { (eval echo "$as_me:17230: \"$ac_try\"") >&5 | |
17231 | (eval $ac_try) 2>&5 | |
17232 | ac_status=$? | |
17233 | echo "$as_me:17233: \$? = $ac_status" >&5 | |
17234 | (exit $ac_status); }; }; then | |
17235 | ||
d9b9876f | 17236 | wx_cv_type_pthread_rec_mutex_init=yes |
1e487827 | 17237 | |
d9b9876f | 17238 | else |
1e487827 VS |
17239 | echo "$as_me: failed program was:" >&5 |
17240 | cat conftest.$ac_ext >&5 | |
17241 | ||
d9b9876f | 17242 | wx_cv_type_pthread_rec_mutex_init=no |
1e487827 | 17243 | |
6232543b | 17244 | fi |
1e487827 | 17245 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 17246 | |
1e487827 VS |
17247 | fi |
17248 | echo "$as_me:17248: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
17249 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
3765e936 | 17250 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
1e487827 | 17251 | cat >>confdefs.h <<\EOF |
d9b9876f VZ |
17252 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17253 | EOF | |
17254 | ||
17255 | else | |
1e487827 VS |
17256 | { echo "$as_me:17256: WARNING: wxMutex won't be recursive on this platform" >&5 |
17257 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
d9b9876f VZ |
17258 | fi |
17259 | fi | |
17260 | ||
10f2d63a | 17261 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
17262 | |
17263 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
17264 | CFLAGS="${CFLAGS} -mt" | |
17265 | CXXFLAGS="${CXXFLAGS} -mt" | |
17266 | LDFLAGS="${LDFLAGS} -mt" | |
17267 | fi | |
10f2d63a VZ |
17268 | fi |
17269 | ||
17270 | fi | |
17271 | ||
17272 | if test "$wxUSE_THREADS" = "yes"; then | |
1e487827 | 17273 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
17274 | #define wxUSE_THREADS 1 |
17275 | EOF | |
17276 | ||
2c6025bc | 17277 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 17278 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
17279 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
17280 | fi | |
10f2d63a VZ |
17281 | |
17282 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
17283 | else | |
17284 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
1e487827 VS |
17285 | echo "$as_me:17285: checking if -D_REENTRANT is needed" >&5 |
17286 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
ab9b9eab VZ |
17287 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17288 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
17289 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
1e487827 VS |
17290 | echo "$as_me:17290: result: yes" >&5 |
17291 | echo "${ECHO_T}yes" >&6 | |
ab9b9eab | 17292 | else |
1e487827 VS |
17293 | echo "$as_me:17293: result: no" >&5 |
17294 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
17295 | fi |
17296 | fi | |
17297 | fi | |
17298 | ||
6f72b082 | 17299 | if test "$WXGTK20" = 1 ; then |
1e487827 | 17300 | cat >>confdefs.h <<EOF |
6f72b082 | 17301 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
17302 | EOF |
17303 | ||
17304 | WXGTK12=1 | |
17305 | fi | |
17306 | ||
10f2d63a | 17307 | if test "$WXGTK12" = 1 ; then |
1e487827 | 17308 | cat >>confdefs.h <<EOF |
10f2d63a VZ |
17309 | #define __WXGTK12__ $WXGTK12 |
17310 | EOF | |
17311 | ||
17312 | fi | |
17313 | ||
f6bcfd97 | 17314 | if test "$WXGTK127" = 1 ; then |
1e487827 | 17315 | cat >>confdefs.h <<EOF |
f6bcfd97 BP |
17316 | #define __WXGTK127__ $WXGTK127 |
17317 | EOF | |
17318 | ||
17319 | fi | |
17320 | ||
10f2d63a VZ |
17321 | if test "$WXWINE" = 1 ; then |
17322 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
17323 | fi | |
17324 | ||
b4085ce6 | 17325 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 17326 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 GD |
17327 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
17328 | CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings" | |
2f51a9ec GD |
17329 | # Extract the first word of "Rez", so it can be a program name with args. |
17330 | set dummy Rez; ac_word=$2 | |
1e487827 VS |
17331 | echo "$as_me:17331: checking for $ac_word" >&5 |
17332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
17333 | if test "${ac_cv_prog_REZ+set}" = set; then | |
17334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f51a9ec GD |
17335 | else |
17336 | if test -n "$REZ"; then | |
17337 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
17338 | else | |
1e487827 VS |
17339 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
17340 | ac_dummy="$PATH" | |
17341 | for ac_dir in $ac_dummy; do | |
17342 | IFS=$ac_save_IFS | |
17343 | test -z "$ac_dir" && ac_dir=. | |
17344 | $as_executable_p "$ac_dir/$ac_word" || continue | |
17345 | ac_cv_prog_REZ="Rez" | |
17346 | echo "$as_me:17346: found $ac_dir/$ac_word" >&5 | |
17347 | break | |
17348 | done | |
17349 | ||
2f51a9ec GD |
17350 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
17351 | fi | |
17352 | fi | |
1e487827 | 17353 | REZ=$ac_cv_prog_REZ |
2f51a9ec | 17354 | if test -n "$REZ"; then |
1e487827 VS |
17355 | echo "$as_me:17355: result: $REZ" >&5 |
17356 | echo "${ECHO_T}$REZ" >&6 | |
2f51a9ec | 17357 | else |
1e487827 VS |
17358 | echo "$as_me:17358: result: no" >&5 |
17359 | echo "${ECHO_T}no" >&6 | |
2f51a9ec GD |
17360 | fi |
17361 | ||
17362 | # Extract the first word of "Derez", so it can be a program name with args. | |
17363 | set dummy Derez; ac_word=$2 | |
1e487827 VS |
17364 | echo "$as_me:17364: checking for $ac_word" >&5 |
17365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
17366 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
17367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f51a9ec GD |
17368 | else |
17369 | if test -n "$DEREZ"; then | |
17370 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
17371 | else | |
1e487827 VS |
17372 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
17373 | ac_dummy="$PATH" | |
17374 | for ac_dir in $ac_dummy; do | |
17375 | IFS=$ac_save_IFS | |
17376 | test -z "$ac_dir" && ac_dir=. | |
17377 | $as_executable_p "$ac_dir/$ac_word" || continue | |
17378 | ac_cv_prog_DEREZ="Derez" | |
17379 | echo "$as_me:17379: found $ac_dir/$ac_word" >&5 | |
17380 | break | |
17381 | done | |
17382 | ||
2f51a9ec GD |
17383 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
17384 | fi | |
17385 | fi | |
1e487827 | 17386 | DEREZ=$ac_cv_prog_DEREZ |
2f51a9ec | 17387 | if test -n "$DEREZ"; then |
1e487827 VS |
17388 | echo "$as_me:17388: result: $DEREZ" >&5 |
17389 | echo "${ECHO_T}$DEREZ" >&6 | |
2f51a9ec | 17390 | else |
1e487827 VS |
17391 | echo "$as_me:17391: result: no" >&5 |
17392 | echo "${ECHO_T}no" >&6 | |
2f51a9ec GD |
17393 | fi |
17394 | ||
17395 | RESCOMP=${REZ} | |
17396 | REZFLAGS="-d __UNIX__ -useDF" | |
17397 | DEREZFLAGS="Carbon.r -useDF" | |
17398 | RESFLAGS="Carbon.r -t APPL" | |
17399 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
17400 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
17401 | fi |
17402 | ||
10f2d63a VZ |
17403 | if test "$wxUSE_CYGWIN" = 1 ; then |
17404 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
17405 | fi | |
17406 | ||
17407 | WXDEBUG= | |
17408 | ||
17409 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17410 | WXDEBUG="-g" | |
17411 | wxUSE_OPTIMISE=no | |
17412 | fi | |
17413 | ||
17414 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17415 | wxUSE_DEBUG_INFO=yes | |
17416 | WXDEBUG="-ggdb" | |
17417 | fi | |
17418 | ||
17419 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
1e487827 | 17420 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
17421 | #define WXDEBUG 1 |
17422 | EOF | |
17423 | ||
17424 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
17425 | else | |
17426 | if test "$wxUSE_GTK" = 1 ; then | |
17427 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17428 | fi | |
17429 | fi | |
17430 | ||
17431 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
1e487827 | 17432 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
17433 | #define wxUSE_MEMORY_TRACING 1 |
17434 | EOF | |
17435 | ||
1e487827 | 17436 | cat >>confdefs.h <<\EOF |
10f2d63a | 17437 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
17438 | EOF |
17439 | ||
1e487827 | 17440 | cat >>confdefs.h <<\EOF |
47c13eb7 | 17441 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
17442 | EOF |
17443 | ||
17444 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17445 | fi | |
17446 | ||
17447 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
17448 | DMALLOC_LINK="-ldmalloc" | |
17449 | fi | |
17450 | ||
17451 | PROFILE= | |
17452 | if test "$wxUSE_PROFILE" = "yes" ; then | |
17453 | PROFILE="-pg" | |
17454 | fi | |
17455 | ||
17456 | DEP_INFO_FLAGS= | |
caa2c79b | 17457 | CODE_GEN_FLAGS= |
0f3f1cbc | 17458 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
17459 | if test "$GCC" = yes ; then |
17460 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 17461 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
17462 | fi |
17463 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 17464 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
17465 | fi |
17466 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 17467 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
17468 | fi |
17469 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
17470 | DEP_INFO_FLAGS="-MMD" | |
17471 | fi | |
17472 | fi | |
17473 | ||
10f2d63a VZ |
17474 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
17475 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
17476 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17477 | OPTIMISE= | |
17478 | else | |
17479 | if test "$GCC" = yes ; then | |
17480 | OPTIMISE="-O2" | |
17481 | case "${host}" in | |
17482 | i586-*-*|i686-*-* ) | |
17483 | OPTIMISE="${OPTIMISE} " | |
17484 | ;; | |
17485 | esac | |
17486 | else | |
17487 | OPTIMISE="-O" | |
17488 | fi | |
17489 | fi | |
17490 | ||
10f2d63a | 17491 | ZLIB_INCLUDE= |
422107f9 | 17492 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
1e487827 | 17493 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
17494 | #define wxUSE_ZLIB 1 |
17495 | EOF | |
17496 | ||
422107f9 VZ |
17497 | if test "$wxUSE_ZLIB" = "yes" ; then |
17498 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
17499 | else | |
17500 | ZLIB_LINK= | |
1e487827 VS |
17501 | echo "$as_me:17501: checking for zlib.h" >&5 |
17502 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
17503 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
17504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17505 | else | |
17506 | cat >conftest.$ac_ext <<_ACEOF | |
17507 | #line 17507 "configure" | |
422107f9 VZ |
17508 | #include "confdefs.h" |
17509 | #include <zlib.h> | |
1e487827 VS |
17510 | _ACEOF |
17511 | if { (eval echo "$as_me:17511: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17512 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17513 | ac_status=$? | |
17514 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
17515 | rm -f conftest.er1 | |
17516 | cat conftest.err >&5 | |
17517 | echo "$as_me:17517: \$? = $ac_status" >&5 | |
17518 | (exit $ac_status); } >/dev/null; then | |
17519 | if test -s conftest.err; then | |
17520 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17521 | else | |
17522 | ac_cpp_err= | |
17523 | fi | |
17524 | else | |
17525 | ac_cpp_err=yes | |
17526 | fi | |
17527 | if test -z "$ac_cpp_err"; then | |
17528 | ac_cv_header_zlib_h=yes | |
422107f9 | 17529 | else |
1e487827 | 17530 | echo "$as_me: failed program was:" >&5 |
422107f9 | 17531 | cat conftest.$ac_ext >&5 |
1e487827 | 17532 | ac_cv_header_zlib_h=no |
422107f9 | 17533 | fi |
1e487827 | 17534 | rm -f conftest.err conftest.$ac_ext |
422107f9 | 17535 | fi |
1e487827 VS |
17536 | echo "$as_me:17536: result: $ac_cv_header_zlib_h" >&5 |
17537 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
17538 | if test $ac_cv_header_zlib_h = yes; then | |
17539 | echo "$as_me:17539: checking for deflate in -lz" >&5 | |
17540 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
17541 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
17542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 17543 | else |
1e487827 | 17544 | ac_check_lib_save_LIBS=$LIBS |
422107f9 | 17545 | LIBS="-lz $LIBS" |
1e487827 VS |
17546 | cat >conftest.$ac_ext <<_ACEOF |
17547 | #line 17547 "configure" | |
422107f9 | 17548 | #include "confdefs.h" |
1e487827 | 17549 | |
422107f9 | 17550 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
17551 | #ifdef __cplusplus |
17552 | extern "C" | |
17553 | #endif | |
422107f9 | 17554 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
17555 | builtin and then its argument prototype would still apply. */ |
17556 | char deflate (); | |
17557 | int | |
17558 | main () | |
17559 | { | |
17560 | deflate (); | |
17561 | ; | |
17562 | return 0; | |
17563 | } | |
17564 | _ACEOF | |
17565 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17566 | if { (eval echo "$as_me:17566: \"$ac_link\"") >&5 | |
17567 | (eval $ac_link) 2>&5 | |
17568 | ac_status=$? | |
17569 | echo "$as_me:17569: \$? = $ac_status" >&5 | |
17570 | (exit $ac_status); } && | |
17571 | { ac_try='test -s conftest$ac_exeext' | |
17572 | { (eval echo "$as_me:17572: \"$ac_try\"") >&5 | |
17573 | (eval $ac_try) 2>&5 | |
17574 | ac_status=$? | |
17575 | echo "$as_me:17575: \$? = $ac_status" >&5 | |
17576 | (exit $ac_status); }; }; then | |
17577 | ac_cv_lib_z_deflate=yes | |
17578 | else | |
17579 | echo "$as_me: failed program was:" >&5 | |
17580 | cat conftest.$ac_ext >&5 | |
17581 | ac_cv_lib_z_deflate=no | |
17582 | fi | |
17583 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17584 | LIBS=$ac_check_lib_save_LIBS | |
17585 | fi | |
17586 | echo "$as_me:17586: result: $ac_cv_lib_z_deflate" >&5 | |
17587 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
17588 | if test $ac_cv_lib_z_deflate = yes; then | |
422107f9 | 17589 | ZLIB_LINK="-lz" |
422107f9 VZ |
17590 | fi |
17591 | ||
422107f9 VZ |
17592 | fi |
17593 | ||
17594 | if test "x$ZLIB_LINK" = "x" ; then | |
1e487827 VS |
17595 | { { echo "$as_me:17595: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" >&5 |
17596 | echo "$as_me: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" >&2;} | |
17597 | { (exit 1); exit 1; }; } | |
422107f9 VZ |
17598 | fi |
17599 | fi | |
10f2d63a VZ |
17600 | fi |
17601 | ||
17602 | PNG_INCLUDE= | |
422107f9 | 17603 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
1e487827 | 17604 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
17605 | #define wxUSE_LIBPNG 1 |
17606 | EOF | |
17607 | ||
41fd4136 | 17608 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
1e487827 VS |
17609 | { echo "$as_me:17609: WARNING: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" >&5 |
17610 | echo "$as_me: WARNING: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" >&2;} | |
422107f9 VZ |
17611 | wxUSE_LIBPNG=yes |
17612 | fi | |
17613 | ||
17614 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
17615 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
17616 | else | |
17617 | PNG_LINK= | |
1e487827 VS |
17618 | echo "$as_me:17618: checking for png.h" >&5 |
17619 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
17620 | if test "${ac_cv_header_png_h+set}" = set; then | |
17621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17622 | else | |
17623 | cat >conftest.$ac_ext <<_ACEOF | |
17624 | #line 17624 "configure" | |
422107f9 VZ |
17625 | #include "confdefs.h" |
17626 | #include <png.h> | |
1e487827 VS |
17627 | _ACEOF |
17628 | if { (eval echo "$as_me:17628: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17629 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17630 | ac_status=$? | |
17631 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
17632 | rm -f conftest.er1 | |
17633 | cat conftest.err >&5 | |
17634 | echo "$as_me:17634: \$? = $ac_status" >&5 | |
17635 | (exit $ac_status); } >/dev/null; then | |
17636 | if test -s conftest.err; then | |
17637 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17638 | else | |
17639 | ac_cpp_err= | |
17640 | fi | |
17641 | else | |
17642 | ac_cpp_err=yes | |
17643 | fi | |
17644 | if test -z "$ac_cpp_err"; then | |
17645 | ac_cv_header_png_h=yes | |
422107f9 | 17646 | else |
1e487827 | 17647 | echo "$as_me: failed program was:" >&5 |
422107f9 | 17648 | cat conftest.$ac_ext >&5 |
1e487827 | 17649 | ac_cv_header_png_h=no |
422107f9 | 17650 | fi |
1e487827 | 17651 | rm -f conftest.err conftest.$ac_ext |
422107f9 | 17652 | fi |
1e487827 VS |
17653 | echo "$as_me:17653: result: $ac_cv_header_png_h" >&5 |
17654 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
17655 | if test $ac_cv_header_png_h = yes; then | |
17656 | echo "$as_me:17656: checking for png_check_sig in -lpng" >&5 | |
17657 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
17658 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
17659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 17660 | else |
1e487827 | 17661 | ac_check_lib_save_LIBS=$LIBS |
422107f9 | 17662 | LIBS="-lpng -lz -lm $LIBS" |
1e487827 VS |
17663 | cat >conftest.$ac_ext <<_ACEOF |
17664 | #line 17664 "configure" | |
422107f9 | 17665 | #include "confdefs.h" |
1e487827 | 17666 | |
422107f9 | 17667 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
17668 | #ifdef __cplusplus |
17669 | extern "C" | |
17670 | #endif | |
422107f9 | 17671 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
17672 | builtin and then its argument prototype would still apply. */ |
17673 | char png_check_sig (); | |
17674 | int | |
17675 | main () | |
17676 | { | |
17677 | png_check_sig (); | |
17678 | ; | |
17679 | return 0; | |
17680 | } | |
17681 | _ACEOF | |
17682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17683 | if { (eval echo "$as_me:17683: \"$ac_link\"") >&5 | |
17684 | (eval $ac_link) 2>&5 | |
17685 | ac_status=$? | |
17686 | echo "$as_me:17686: \$? = $ac_status" >&5 | |
17687 | (exit $ac_status); } && | |
17688 | { ac_try='test -s conftest$ac_exeext' | |
17689 | { (eval echo "$as_me:17689: \"$ac_try\"") >&5 | |
17690 | (eval $ac_try) 2>&5 | |
17691 | ac_status=$? | |
17692 | echo "$as_me:17692: \$? = $ac_status" >&5 | |
17693 | (exit $ac_status); }; }; then | |
17694 | ac_cv_lib_png_png_check_sig=yes | |
17695 | else | |
17696 | echo "$as_me: failed program was:" >&5 | |
17697 | cat conftest.$ac_ext >&5 | |
17698 | ac_cv_lib_png_png_check_sig=no | |
17699 | fi | |
17700 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17701 | LIBS=$ac_check_lib_save_LIBS | |
17702 | fi | |
17703 | echo "$as_me:17703: result: $ac_cv_lib_png_png_check_sig" >&5 | |
17704 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
17705 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
422107f9 | 17706 | PNG_LINK="-lpng" |
422107f9 VZ |
17707 | fi |
17708 | ||
422107f9 VZ |
17709 | fi |
17710 | ||
17711 | if test "x$PNG_LINK" = "x" ; then | |
1e487827 VS |
17712 | { { echo "$as_me:17712: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" >&5 |
17713 | echo "$as_me: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" >&2;} | |
17714 | { (exit 1); exit 1; }; } | |
422107f9 VZ |
17715 | fi |
17716 | fi | |
17717 | ||
10f2d63a VZ |
17718 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
17719 | fi | |
17720 | ||
17721 | JPEG_INCLUDE= | |
422107f9 | 17722 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
1e487827 | 17723 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
17724 | #define wxUSE_LIBJPEG 1 |
17725 | EOF | |
17726 | ||
422107f9 VZ |
17727 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
17728 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
17729 | else | |
17730 | JPEG_LINK= | |
1e487827 VS |
17731 | echo "$as_me:17731: checking for jpeglib.h" >&5 |
17732 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
17733 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
17734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17735 | else | |
17736 | cat >conftest.$ac_ext <<_ACEOF | |
17737 | #line 17737 "configure" | |
422107f9 VZ |
17738 | #include "confdefs.h" |
17739 | #include <jpeglib.h> | |
1e487827 VS |
17740 | _ACEOF |
17741 | if { (eval echo "$as_me:17741: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17743 | ac_status=$? | |
17744 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
17745 | rm -f conftest.er1 | |
17746 | cat conftest.err >&5 | |
17747 | echo "$as_me:17747: \$? = $ac_status" >&5 | |
17748 | (exit $ac_status); } >/dev/null; then | |
17749 | if test -s conftest.err; then | |
17750 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17751 | else | |
17752 | ac_cpp_err= | |
17753 | fi | |
17754 | else | |
17755 | ac_cpp_err=yes | |
17756 | fi | |
17757 | if test -z "$ac_cpp_err"; then | |
17758 | ac_cv_header_jpeglib_h=yes | |
6232543b | 17759 | else |
1e487827 | 17760 | echo "$as_me: failed program was:" >&5 |
422107f9 | 17761 | cat conftest.$ac_ext >&5 |
1e487827 | 17762 | ac_cv_header_jpeglib_h=no |
422107f9 | 17763 | fi |
1e487827 | 17764 | rm -f conftest.err conftest.$ac_ext |
422107f9 | 17765 | fi |
1e487827 VS |
17766 | echo "$as_me:17766: result: $ac_cv_header_jpeglib_h" >&5 |
17767 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
17768 | if test $ac_cv_header_jpeglib_h = yes; then | |
17769 | echo "$as_me:17769: checking for jpeg_read_header in -ljpeg" >&5 | |
17770 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
17771 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
17772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 17773 | else |
1e487827 | 17774 | ac_check_lib_save_LIBS=$LIBS |
422107f9 | 17775 | LIBS="-ljpeg $LIBS" |
1e487827 VS |
17776 | cat >conftest.$ac_ext <<_ACEOF |
17777 | #line 17777 "configure" | |
422107f9 | 17778 | #include "confdefs.h" |
1e487827 | 17779 | |
422107f9 | 17780 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
17781 | #ifdef __cplusplus |
17782 | extern "C" | |
17783 | #endif | |
422107f9 | 17784 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
17785 | builtin and then its argument prototype would still apply. */ |
17786 | char jpeg_read_header (); | |
17787 | int | |
17788 | main () | |
17789 | { | |
17790 | jpeg_read_header (); | |
17791 | ; | |
17792 | return 0; | |
17793 | } | |
17794 | _ACEOF | |
17795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17796 | if { (eval echo "$as_me:17796: \"$ac_link\"") >&5 | |
17797 | (eval $ac_link) 2>&5 | |
17798 | ac_status=$? | |
17799 | echo "$as_me:17799: \$? = $ac_status" >&5 | |
17800 | (exit $ac_status); } && | |
17801 | { ac_try='test -s conftest$ac_exeext' | |
17802 | { (eval echo "$as_me:17802: \"$ac_try\"") >&5 | |
17803 | (eval $ac_try) 2>&5 | |
17804 | ac_status=$? | |
17805 | echo "$as_me:17805: \$? = $ac_status" >&5 | |
17806 | (exit $ac_status); }; }; then | |
17807 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
17808 | else | |
17809 | echo "$as_me: failed program was:" >&5 | |
17810 | cat conftest.$ac_ext >&5 | |
17811 | ac_cv_lib_jpeg_jpeg_read_header=no | |
17812 | fi | |
17813 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17814 | LIBS=$ac_check_lib_save_LIBS | |
17815 | fi | |
17816 | echo "$as_me:17816: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
17817 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
17818 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
422107f9 | 17819 | JPEG_LINK="-ljpeg" |
422107f9 VZ |
17820 | fi |
17821 | ||
422107f9 VZ |
17822 | fi |
17823 | ||
17824 | if test "x$JPEG_LINK" = "x" ; then | |
1e487827 VS |
17825 | { { echo "$as_me:17825: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" >&5 |
17826 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" >&2;} | |
17827 | { (exit 1); exit 1; }; } | |
422107f9 VZ |
17828 | fi |
17829 | fi | |
10f2d63a VZ |
17830 | fi |
17831 | ||
c7a2bf27 | 17832 | TIFF_INCLUDE= |
0dcf9893 | 17833 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
1e487827 | 17834 | cat >>confdefs.h <<\EOF |
c7a2bf27 RR |
17835 | #define wxUSE_LIBTIFF 1 |
17836 | EOF | |
17837 | ||
665bbe97 | 17838 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
17839 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
17840 | else | |
17841 | TIFF_LINK= | |
1e487827 VS |
17842 | echo "$as_me:17842: checking for tiffio.h" >&5 |
17843 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
17844 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
17845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17846 | else | |
17847 | cat >conftest.$ac_ext <<_ACEOF | |
17848 | #line 17848 "configure" | |
0dcf9893 VZ |
17849 | #include "confdefs.h" |
17850 | #include <tiffio.h> | |
1e487827 VS |
17851 | _ACEOF |
17852 | if { (eval echo "$as_me:17852: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17853 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17854 | ac_status=$? | |
17855 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
17856 | rm -f conftest.er1 | |
17857 | cat conftest.err >&5 | |
17858 | echo "$as_me:17858: \$? = $ac_status" >&5 | |
17859 | (exit $ac_status); } >/dev/null; then | |
17860 | if test -s conftest.err; then | |
17861 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17862 | else | |
17863 | ac_cpp_err= | |
17864 | fi | |
0dcf9893 | 17865 | else |
1e487827 VS |
17866 | ac_cpp_err=yes |
17867 | fi | |
17868 | if test -z "$ac_cpp_err"; then | |
17869 | ac_cv_header_tiffio_h=yes | |
17870 | else | |
17871 | echo "$as_me: failed program was:" >&5 | |
0dcf9893 | 17872 | cat conftest.$ac_ext >&5 |
1e487827 | 17873 | ac_cv_header_tiffio_h=no |
0dcf9893 | 17874 | fi |
1e487827 | 17875 | rm -f conftest.err conftest.$ac_ext |
0dcf9893 | 17876 | fi |
1e487827 VS |
17877 | echo "$as_me:17877: result: $ac_cv_header_tiffio_h" >&5 |
17878 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
17879 | if test $ac_cv_header_tiffio_h = yes; then | |
17880 | echo "$as_me:17880: checking for TIFFError in -ltiff" >&5 | |
17881 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
17882 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
17883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0dcf9893 | 17884 | else |
1e487827 | 17885 | ac_check_lib_save_LIBS=$LIBS |
0dcf9893 | 17886 | LIBS="-ltiff -lm $LIBS" |
1e487827 VS |
17887 | cat >conftest.$ac_ext <<_ACEOF |
17888 | #line 17888 "configure" | |
0dcf9893 | 17889 | #include "confdefs.h" |
1e487827 | 17890 | |
0dcf9893 | 17891 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
17892 | #ifdef __cplusplus |
17893 | extern "C" | |
17894 | #endif | |
0dcf9893 | 17895 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
17896 | builtin and then its argument prototype would still apply. */ |
17897 | char TIFFError (); | |
17898 | int | |
17899 | main () | |
17900 | { | |
17901 | TIFFError (); | |
17902 | ; | |
17903 | return 0; | |
17904 | } | |
17905 | _ACEOF | |
17906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17907 | if { (eval echo "$as_me:17907: \"$ac_link\"") >&5 | |
17908 | (eval $ac_link) 2>&5 | |
17909 | ac_status=$? | |
17910 | echo "$as_me:17910: \$? = $ac_status" >&5 | |
17911 | (exit $ac_status); } && | |
17912 | { ac_try='test -s conftest$ac_exeext' | |
17913 | { (eval echo "$as_me:17913: \"$ac_try\"") >&5 | |
17914 | (eval $ac_try) 2>&5 | |
17915 | ac_status=$? | |
17916 | echo "$as_me:17916: \$? = $ac_status" >&5 | |
17917 | (exit $ac_status); }; }; then | |
17918 | ac_cv_lib_tiff_TIFFError=yes | |
17919 | else | |
17920 | echo "$as_me: failed program was:" >&5 | |
17921 | cat conftest.$ac_ext >&5 | |
17922 | ac_cv_lib_tiff_TIFFError=no | |
17923 | fi | |
17924 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17925 | LIBS=$ac_check_lib_save_LIBS | |
17926 | fi | |
17927 | echo "$as_me:17927: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
17928 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
17929 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
0dcf9893 | 17930 | TIFF_LINK="-ltiff" |
0dcf9893 VZ |
17931 | fi |
17932 | ||
0dcf9893 VZ |
17933 | fi |
17934 | ||
17935 | if test "x$TIFF_LINK" = "x" ; then | |
1e487827 VS |
17936 | { { echo "$as_me:17936: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" >&5 |
17937 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" >&2;} | |
17938 | { (exit 1); exit 1; }; } | |
0dcf9893 VZ |
17939 | fi |
17940 | fi | |
c7a2bf27 RR |
17941 | fi |
17942 | ||
3fed1840 RR |
17943 | FREETYPE_INCLUDE= |
17944 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
1e487827 | 17945 | cat >>confdefs.h <<\EOF |
3fed1840 RR |
17946 | #define wxUSE_FREETYPE 1 |
17947 | EOF | |
17948 | ||
17949 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
17950 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
17951 | else | |
17952 | FREETYPE_LINK= | |
1e487827 VS |
17953 | echo "$as_me:17953: checking for freetype.h" >&5 |
17954 | echo $ECHO_N "checking for freetype.h... $ECHO_C" >&6 | |
17955 | if test "${ac_cv_header_freetype_h+set}" = set; then | |
17956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17957 | else | |
17958 | cat >conftest.$ac_ext <<_ACEOF | |
17959 | #line 17959 "configure" | |
3fed1840 RR |
17960 | #include "confdefs.h" |
17961 | #include <freetype.h> | |
1e487827 VS |
17962 | _ACEOF |
17963 | if { (eval echo "$as_me:17963: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17964 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17965 | ac_status=$? | |
17966 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
17967 | rm -f conftest.er1 | |
17968 | cat conftest.err >&5 | |
17969 | echo "$as_me:17969: \$? = $ac_status" >&5 | |
17970 | (exit $ac_status); } >/dev/null; then | |
17971 | if test -s conftest.err; then | |
17972 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17973 | else | |
17974 | ac_cpp_err= | |
17975 | fi | |
17976 | else | |
17977 | ac_cpp_err=yes | |
17978 | fi | |
17979 | if test -z "$ac_cpp_err"; then | |
17980 | ac_cv_header_freetype_h=yes | |
3fed1840 | 17981 | else |
1e487827 | 17982 | echo "$as_me: failed program was:" >&5 |
3fed1840 | 17983 | cat conftest.$ac_ext >&5 |
1e487827 | 17984 | ac_cv_header_freetype_h=no |
3fed1840 | 17985 | fi |
1e487827 | 17986 | rm -f conftest.err conftest.$ac_ext |
3fed1840 | 17987 | fi |
1e487827 VS |
17988 | echo "$as_me:17988: result: $ac_cv_header_freetype_h" >&5 |
17989 | echo "${ECHO_T}$ac_cv_header_freetype_h" >&6 | |
17990 | if test $ac_cv_header_freetype_h = yes; then | |
17991 | echo "$as_me:17991: checking for FT_Render_Glyph in -lfreetype" >&5 | |
17992 | echo $ECHO_N "checking for FT_Render_Glyph in -lfreetype... $ECHO_C" >&6 | |
17993 | if test "${ac_cv_lib_freetype_FT_Render_Glyph+set}" = set; then | |
17994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fed1840 | 17995 | else |
1e487827 | 17996 | ac_check_lib_save_LIBS=$LIBS |
3fed1840 | 17997 | LIBS="-lfreetype -lm $LIBS" |
1e487827 VS |
17998 | cat >conftest.$ac_ext <<_ACEOF |
17999 | #line 17999 "configure" | |
3fed1840 | 18000 | #include "confdefs.h" |
1e487827 | 18001 | |
3fed1840 | 18002 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
18003 | #ifdef __cplusplus |
18004 | extern "C" | |
18005 | #endif | |
3fed1840 | 18006 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
18007 | builtin and then its argument prototype would still apply. */ |
18008 | char FT_Render_Glyph (); | |
18009 | int | |
18010 | main () | |
18011 | { | |
18012 | FT_Render_Glyph (); | |
18013 | ; | |
18014 | return 0; | |
18015 | } | |
18016 | _ACEOF | |
18017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18018 | if { (eval echo "$as_me:18018: \"$ac_link\"") >&5 | |
18019 | (eval $ac_link) 2>&5 | |
18020 | ac_status=$? | |
18021 | echo "$as_me:18021: \$? = $ac_status" >&5 | |
18022 | (exit $ac_status); } && | |
18023 | { ac_try='test -s conftest$ac_exeext' | |
18024 | { (eval echo "$as_me:18024: \"$ac_try\"") >&5 | |
18025 | (eval $ac_try) 2>&5 | |
18026 | ac_status=$? | |
18027 | echo "$as_me:18027: \$? = $ac_status" >&5 | |
18028 | (exit $ac_status); }; }; then | |
18029 | ac_cv_lib_freetype_FT_Render_Glyph=yes | |
18030 | else | |
18031 | echo "$as_me: failed program was:" >&5 | |
18032 | cat conftest.$ac_ext >&5 | |
18033 | ac_cv_lib_freetype_FT_Render_Glyph=no | |
18034 | fi | |
18035 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18036 | LIBS=$ac_check_lib_save_LIBS | |
18037 | fi | |
18038 | echo "$as_me:18038: result: $ac_cv_lib_freetype_FT_Render_Glyph" >&5 | |
18039 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Render_Glyph" >&6 | |
18040 | if test $ac_cv_lib_freetype_FT_Render_Glyph = yes; then | |
3fed1840 | 18041 | FREETYPE_LINK="-lfreetype" |
3fed1840 RR |
18042 | fi |
18043 | ||
3fed1840 RR |
18044 | fi |
18045 | ||
18046 | if test "x$FREETYPE_LINK" = "x" ; then | |
1e487827 VS |
18047 | { { echo "$as_me:18047: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" >&5 |
18048 | echo "$as_me: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" >&2;} | |
18049 | { (exit 1); exit 1; }; } | |
3fed1840 RR |
18050 | fi |
18051 | fi | |
18052 | fi | |
18053 | ||
10f2d63a | 18054 | if test "$wxUSE_OPENGL" = "yes"; then |
1e487827 VS |
18055 | echo "$as_me:18055: checking for GL/gl.h" >&5 |
18056 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
18057 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
18058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18059 | else | |
18060 | cat >conftest.$ac_ext <<_ACEOF | |
18061 | #line 18061 "configure" | |
10f2d63a VZ |
18062 | #include "confdefs.h" |
18063 | #include <GL/gl.h> | |
1e487827 VS |
18064 | _ACEOF |
18065 | if { (eval echo "$as_me:18065: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18066 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18067 | ac_status=$? | |
18068 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
18069 | rm -f conftest.er1 | |
18070 | cat conftest.err >&5 | |
18071 | echo "$as_me:18071: \$? = $ac_status" >&5 | |
18072 | (exit $ac_status); } >/dev/null; then | |
18073 | if test -s conftest.err; then | |
18074 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18075 | else | |
18076 | ac_cpp_err= | |
18077 | fi | |
18078 | else | |
18079 | ac_cpp_err=yes | |
18080 | fi | |
18081 | if test -z "$ac_cpp_err"; then | |
18082 | ac_cv_header_GL_gl_h=yes | |
10f2d63a | 18083 | else |
1e487827 | 18084 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 18085 | cat conftest.$ac_ext >&5 |
1e487827 | 18086 | ac_cv_header_GL_gl_h=no |
10f2d63a | 18087 | fi |
1e487827 | 18088 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 18089 | fi |
1e487827 VS |
18090 | echo "$as_me:18090: result: $ac_cv_header_GL_gl_h" >&5 |
18091 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
18092 | if test $ac_cv_header_GL_gl_h = yes; then | |
18093 | ||
18094 | cat >>confdefs.h <<\EOF | |
bdad4e7e RR |
18095 | #define wxUSE_OPENGL 1 |
18096 | EOF | |
18097 | ||
1e487827 | 18098 | cat >>confdefs.h <<\EOF |
bdad4e7e RR |
18099 | #define wxUSE_GLCANVAS 1 |
18100 | EOF | |
18101 | ||
1e487827 VS |
18102 | echo "$as_me:18102: checking for glFlush in -lGL" >&5 |
18103 | echo $ECHO_N "checking for glFlush in -lGL... $ECHO_C" >&6 | |
18104 | if test "${ac_cv_lib_GL_glFlush+set}" = set; then | |
18105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 18106 | else |
1e487827 | 18107 | ac_check_lib_save_LIBS=$LIBS |
bdad4e7e | 18108 | LIBS="-lGL $LIBS" |
1e487827 VS |
18109 | cat >conftest.$ac_ext <<_ACEOF |
18110 | #line 18110 "configure" | |
10f2d63a | 18111 | #include "confdefs.h" |
1e487827 | 18112 | |
10f2d63a | 18113 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
18114 | #ifdef __cplusplus |
18115 | extern "C" | |
18116 | #endif | |
10f2d63a | 18117 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
18118 | builtin and then its argument prototype would still apply. */ |
18119 | char glFlush (); | |
18120 | int | |
18121 | main () | |
18122 | { | |
18123 | glFlush (); | |
18124 | ; | |
18125 | return 0; | |
18126 | } | |
18127 | _ACEOF | |
18128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18129 | if { (eval echo "$as_me:18129: \"$ac_link\"") >&5 | |
18130 | (eval $ac_link) 2>&5 | |
18131 | ac_status=$? | |
18132 | echo "$as_me:18132: \$? = $ac_status" >&5 | |
18133 | (exit $ac_status); } && | |
18134 | { ac_try='test -s conftest$ac_exeext' | |
18135 | { (eval echo "$as_me:18135: \"$ac_try\"") >&5 | |
18136 | (eval $ac_try) 2>&5 | |
18137 | ac_status=$? | |
18138 | echo "$as_me:18138: \$? = $ac_status" >&5 | |
18139 | (exit $ac_status); }; }; then | |
18140 | ac_cv_lib_GL_glFlush=yes | |
18141 | else | |
18142 | echo "$as_me: failed program was:" >&5 | |
18143 | cat conftest.$ac_ext >&5 | |
18144 | ac_cv_lib_GL_glFlush=no | |
18145 | fi | |
18146 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18147 | LIBS=$ac_check_lib_save_LIBS | |
18148 | fi | |
18149 | echo "$as_me:18149: result: $ac_cv_lib_GL_glFlush" >&5 | |
18150 | echo "${ECHO_T}$ac_cv_lib_GL_glFlush" >&6 | |
18151 | if test $ac_cv_lib_GL_glFlush = yes; then | |
6232543b | 18152 | |
703e0a69 | 18153 | OPENGL_LINK="-lGL -lGLU" |
1e487827 | 18154 | |
10f2d63a | 18155 | else |
10f2d63a | 18156 | |
1e487827 VS |
18157 | echo "$as_me:18157: checking for glFlush in -lMesaGL" >&5 |
18158 | echo $ECHO_N "checking for glFlush in -lMesaGL... $ECHO_C" >&6 | |
18159 | if test "${ac_cv_lib_MesaGL_glFlush+set}" = set; then | |
18160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 18161 | else |
1e487827 | 18162 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 18163 | LIBS="-lMesaGL $LIBS" |
1e487827 VS |
18164 | cat >conftest.$ac_ext <<_ACEOF |
18165 | #line 18165 "configure" | |
10f2d63a | 18166 | #include "confdefs.h" |
1e487827 | 18167 | |
10f2d63a | 18168 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
18169 | #ifdef __cplusplus |
18170 | extern "C" | |
18171 | #endif | |
10f2d63a | 18172 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
18173 | builtin and then its argument prototype would still apply. */ |
18174 | char glFlush (); | |
18175 | int | |
18176 | main () | |
18177 | { | |
18178 | glFlush (); | |
18179 | ; | |
18180 | return 0; | |
18181 | } | |
18182 | _ACEOF | |
18183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18184 | if { (eval echo "$as_me:18184: \"$ac_link\"") >&5 | |
18185 | (eval $ac_link) 2>&5 | |
18186 | ac_status=$? | |
18187 | echo "$as_me:18187: \$? = $ac_status" >&5 | |
18188 | (exit $ac_status); } && | |
18189 | { ac_try='test -s conftest$ac_exeext' | |
18190 | { (eval echo "$as_me:18190: \"$ac_try\"") >&5 | |
18191 | (eval $ac_try) 2>&5 | |
18192 | ac_status=$? | |
18193 | echo "$as_me:18193: \$? = $ac_status" >&5 | |
18194 | (exit $ac_status); }; }; then | |
18195 | ac_cv_lib_MesaGL_glFlush=yes | |
18196 | else | |
18197 | echo "$as_me: failed program was:" >&5 | |
18198 | cat conftest.$ac_ext >&5 | |
18199 | ac_cv_lib_MesaGL_glFlush=no | |
18200 | fi | |
18201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18202 | LIBS=$ac_check_lib_save_LIBS | |
18203 | fi | |
18204 | echo "$as_me:18204: result: $ac_cv_lib_MesaGL_glFlush" >&5 | |
18205 | echo "${ECHO_T}$ac_cv_lib_MesaGL_glFlush" >&6 | |
18206 | if test $ac_cv_lib_MesaGL_glFlush = yes; then | |
10f2d63a | 18207 | |
f6bcfd97 | 18208 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
1e487827 | 18209 | |
10f2d63a VZ |
18210 | fi |
18211 | ||
10f2d63a VZ |
18212 | fi |
18213 | ||
10f2d63a | 18214 | else |
1e487827 | 18215 | wxUSE_OPENGL=0 |
10f2d63a VZ |
18216 | fi |
18217 | ||
18218 | fi | |
18219 | ||
10f2d63a | 18220 | if test "$wxUSE_GUI" = "yes"; then |
1e487827 | 18221 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18222 | #define wxUSE_GUI 1 |
18223 | EOF | |
18224 | ||
10f2d63a | 18225 | else |
1e487827 | 18226 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18227 | #define wxUSE_NOGUI 1 |
18228 | EOF | |
18229 | ||
18230 | fi | |
18231 | ||
10f2d63a | 18232 | if test "$wxUSE_UNIX" = "yes"; then |
1e487827 | 18233 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18234 | #define wxUSE_UNIX 1 |
18235 | EOF | |
18236 | ||
18237 | fi | |
18238 | ||
10f2d63a | 18239 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
1e487827 | 18240 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18241 | #define wxUSE_APPLE_IEEE 1 |
18242 | EOF | |
18243 | ||
18244 | fi | |
18245 | ||
10f2d63a | 18246 | if test "$wxUSE_WAVE" = "yes"; then |
1e487827 | 18247 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18248 | #define wxUSE_WAVE 1 |
18249 | EOF | |
18250 | ||
18251 | fi | |
18252 | ||
18253 | if test "$wxUSE_FILE" = "yes"; then | |
1e487827 | 18254 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18255 | #define wxUSE_FILE 1 |
18256 | EOF | |
18257 | ||
18258 | fi | |
18259 | ||
24528b0c | 18260 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
1e487827 | 18261 | cat >>confdefs.h <<\EOF |
24528b0c VS |
18262 | #define wxUSE_FILESYSTEM 1 |
18263 | EOF | |
18264 | ||
18265 | fi | |
18266 | ||
10f2d63a | 18267 | if test "$wxUSE_FS_INET" = "yes"; then |
1e487827 | 18268 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18269 | #define wxUSE_FS_INET 1 |
18270 | EOF | |
18271 | ||
18272 | fi | |
18273 | ||
18274 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
1e487827 | 18275 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18276 | #define wxUSE_FS_ZIP 1 |
18277 | EOF | |
18278 | ||
18279 | fi | |
18280 | ||
18281 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
1e487827 | 18282 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18283 | #define wxUSE_ZIPSTREAM 1 |
18284 | EOF | |
18285 | ||
18286 | fi | |
18287 | ||
eb4efbdc | 18288 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
1e487827 | 18289 | cat >>confdefs.h <<\EOF |
eb4efbdc VZ |
18290 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18291 | EOF | |
18292 | ||
18293 | fi | |
18294 | ||
4f3c5f06 | 18295 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
1e487827 | 18296 | cat >>confdefs.h <<\EOF |
4f3c5f06 VZ |
18297 | #define wxUSE_SNGLINST_CHECKER 1 |
18298 | EOF | |
18299 | ||
18300 | fi | |
18301 | ||
10f2d63a | 18302 | if test "$wxUSE_BUSYINFO" = "yes"; then |
1e487827 | 18303 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18304 | #define wxUSE_BUSYINFO 1 |
18305 | EOF | |
18306 | ||
18307 | fi | |
18308 | ||
18309 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
1e487827 | 18310 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18311 | #define wxUSE_STD_IOSTREAM 1 |
18312 | EOF | |
18313 | ||
18314 | fi | |
18315 | ||
18316 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
18317 | if test "$wxUSE_FILE" != "yes"; then | |
1e487827 VS |
18318 | { echo "$as_me:18318: WARNING: wxTextFile requires wxFile and it won't be compiled without it" >&5 |
18319 | echo "$as_me: WARNING: wxTextFile requires wxFile and it won't be compiled without it" >&2;} | |
10f2d63a | 18320 | else |
1e487827 | 18321 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18322 | #define wxUSE_TEXTFILE 1 |
18323 | EOF | |
18324 | ||
18325 | fi | |
18326 | fi | |
18327 | ||
18328 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18329 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
1e487827 VS |
18330 | { echo "$as_me:18330: WARNING: wxConfig requires wxTextFile and it won't be compiled without it" >&5 |
18331 | echo "$as_me: WARNING: wxConfig requires wxTextFile and it won't be compiled without it" >&2;} | |
10f2d63a | 18332 | else |
1e487827 | 18333 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18334 | #define wxUSE_CONFIG 1 |
18335 | EOF | |
18336 | ||
18337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18338 | fi | |
18339 | fi | |
18340 | ||
18341 | if test "$wxUSE_INTL" = "yes" ; then | |
18342 | if test "$wxUSE_FILE" != "yes"; then | |
1e487827 VS |
18343 | { echo "$as_me:18343: WARNING: I18n code requires wxFile and it won't be compiled without it" >&5 |
18344 | echo "$as_me: WARNING: I18n code requires wxFile and it won't be compiled without it" >&2;} | |
10f2d63a | 18345 | else |
1e487827 | 18346 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18347 | #define wxUSE_INTL 1 |
18348 | EOF | |
18349 | ||
18350 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18351 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18352 | fi |
18353 | fi | |
18354 | ||
18355 | if test "$wxUSE_LOG" = "yes"; then | |
1e487827 | 18356 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18357 | #define wxUSE_LOG 1 |
18358 | EOF | |
18359 | ||
18360 | fi | |
18361 | ||
18362 | if test "$wxUSE_LONGLONG" = "yes"; then | |
1e487827 | 18363 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18364 | #define wxUSE_LONGLONG 1 |
18365 | EOF | |
18366 | ||
18367 | fi | |
18368 | ||
e8f65ba6 | 18369 | if test "$wxUSE_GEOMETRY" = "yes"; then |
1e487827 | 18370 | cat >>confdefs.h <<\EOF |
e8f65ba6 RR |
18371 | #define wxUSE_GEOMETRY 1 |
18372 | EOF | |
18373 | ||
18374 | fi | |
18375 | ||
10f2d63a | 18376 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
1e487827 | 18377 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18378 | #define wxUSE_DIALUP_MANAGER 1 |
18379 | EOF | |
18380 | ||
70f7a477 | 18381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18382 | fi |
18383 | ||
18384 | if test "$wxUSE_STREAMS" = "yes" ; then | |
1e487827 | 18385 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
18386 | #define wxUSE_STREAMS 1 |
18387 | EOF | |
18388 | ||
18389 | fi | |
18390 | ||
703e0a69 | 18391 | if test "$wxUSE_TIMEDATE" = "yes"; then |
1e487827 VS |
18392 | |
18393 | for ac_func in strptime | |
83307f33 | 18394 | do |
1e487827 VS |
18395 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
18396 | echo "$as_me:18396: checking for $ac_func" >&5 | |
18397 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18398 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
18399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18400 | else | |
18401 | cat >conftest.$ac_ext <<_ACEOF | |
18402 | #line 18402 "configure" | |
83307f33 VZ |
18403 | #include "confdefs.h" |
18404 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 18405 | which can conflict with char $ac_func (); below. */ |
83307f33 VZ |
18406 | #include <assert.h> |
18407 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
18408 | #ifdef __cplusplus |
18409 | extern "C" | |
18410 | #endif | |
83307f33 | 18411 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
18412 | builtin and then its argument prototype would still apply. */ |
18413 | char $ac_func (); | |
18414 | char (*f) (); | |
83307f33 | 18415 | |
1e487827 VS |
18416 | int |
18417 | main () | |
18418 | { | |
83307f33 VZ |
18419 | /* The GNU C library defines this for functions which it implements |
18420 | to always fail with ENOSYS. Some functions are actually named | |
18421 | something starting with __ and the normal name is an alias. */ | |
18422 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18423 | choke me | |
18424 | #else | |
1e487827 | 18425 | f = $ac_func; |
83307f33 VZ |
18426 | #endif |
18427 | ||
1e487827 VS |
18428 | ; |
18429 | return 0; | |
18430 | } | |
18431 | _ACEOF | |
18432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18433 | if { (eval echo "$as_me:18433: \"$ac_link\"") >&5 | |
18434 | (eval $ac_link) 2>&5 | |
18435 | ac_status=$? | |
18436 | echo "$as_me:18436: \$? = $ac_status" >&5 | |
18437 | (exit $ac_status); } && | |
18438 | { ac_try='test -s conftest$ac_exeext' | |
18439 | { (eval echo "$as_me:18439: \"$ac_try\"") >&5 | |
18440 | (eval $ac_try) 2>&5 | |
18441 | ac_status=$? | |
18442 | echo "$as_me:18442: \$? = $ac_status" >&5 | |
18443 | (exit $ac_status); }; }; then | |
18444 | eval "$ac_ac_var=yes" | |
18445 | else | |
18446 | echo "$as_me: failed program was:" >&5 | |
18447 | cat conftest.$ac_ext >&5 | |
18448 | eval "$ac_ac_var=no" | |
18449 | fi | |
18450 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18451 | fi | |
18452 | echo "$as_me:18452: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
18453 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
18454 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
18455 | cat >>confdefs.h <<EOF | |
18456 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
83307f33 | 18457 | EOF |
83307f33 | 18458 | |
83307f33 VZ |
18459 | fi |
18460 | done | |
18461 | ||
1e487827 VS |
18462 | echo "$as_me:18462: checking for timezone variable in <time.h>" >&5 |
18463 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
18464 | if test "${wx_cv_var_timezone+set}" = set; then | |
18465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
703e0a69 | 18466 | else |
1e487827 VS |
18467 | |
18468 | cat >conftest.$ac_ext <<_ACEOF | |
18469 | #line 18469 "configure" | |
360d6699 VZ |
18470 | #include "confdefs.h" |
18471 | ||
b4085ce6 | 18472 | #include <time.h> |
1e487827 VS |
18473 | |
18474 | int | |
18475 | main () | |
18476 | { | |
360d6699 VZ |
18477 | |
18478 | int tz; | |
18479 | tz = __timezone; | |
1e487827 VS |
18480 | |
18481 | ; | |
18482 | return 0; | |
18483 | } | |
18484 | _ACEOF | |
18485 | rm -f conftest.$ac_objext | |
18486 | if { (eval echo "$as_me:18486: \"$ac_compile\"") >&5 | |
18487 | (eval $ac_compile) 2>&5 | |
18488 | ac_status=$? | |
18489 | echo "$as_me:18489: \$? = $ac_status" >&5 | |
18490 | (exit $ac_status); } && | |
18491 | { ac_try='test -s conftest.$ac_objext' | |
18492 | { (eval echo "$as_me:18492: \"$ac_try\"") >&5 | |
18493 | (eval $ac_try) 2>&5 | |
18494 | ac_status=$? | |
18495 | echo "$as_me:18495: \$? = $ac_status" >&5 | |
18496 | (exit $ac_status); }; }; then | |
18497 | ||
360d6699 | 18498 | wx_cv_var_timezone=__timezone |
1e487827 | 18499 | |
360d6699 | 18500 | else |
1e487827 VS |
18501 | echo "$as_me: failed program was:" >&5 |
18502 | cat conftest.$ac_ext >&5 | |
18503 | ||
18504 | cat >conftest.$ac_ext <<_ACEOF | |
18505 | #line 18505 "configure" | |
360d6699 VZ |
18506 | #include "confdefs.h" |
18507 | ||
b4085ce6 | 18508 | #include <time.h> |
1e487827 VS |
18509 | |
18510 | int | |
18511 | main () | |
18512 | { | |
360d6699 VZ |
18513 | |
18514 | int tz; | |
18515 | tz = _timezone; | |
1e487827 VS |
18516 | |
18517 | ; | |
18518 | return 0; | |
18519 | } | |
18520 | _ACEOF | |
18521 | rm -f conftest.$ac_objext | |
18522 | if { (eval echo "$as_me:18522: \"$ac_compile\"") >&5 | |
18523 | (eval $ac_compile) 2>&5 | |
18524 | ac_status=$? | |
18525 | echo "$as_me:18525: \$? = $ac_status" >&5 | |
18526 | (exit $ac_status); } && | |
18527 | { ac_try='test -s conftest.$ac_objext' | |
18528 | { (eval echo "$as_me:18528: \"$ac_try\"") >&5 | |
18529 | (eval $ac_try) 2>&5 | |
18530 | ac_status=$? | |
18531 | echo "$as_me:18531: \$? = $ac_status" >&5 | |
18532 | (exit $ac_status); }; }; then | |
18533 | ||
360d6699 | 18534 | wx_cv_var_timezone=_timezone |
1e487827 | 18535 | |
5357c8e8 | 18536 | else |
1e487827 VS |
18537 | echo "$as_me: failed program was:" >&5 |
18538 | cat conftest.$ac_ext >&5 | |
18539 | ||
18540 | cat >conftest.$ac_ext <<_ACEOF | |
18541 | #line 18541 "configure" | |
5357c8e8 VZ |
18542 | #include "confdefs.h" |
18543 | ||
b4085ce6 | 18544 | #include <time.h> |
1e487827 VS |
18545 | |
18546 | int | |
18547 | main () | |
18548 | { | |
5357c8e8 VZ |
18549 | |
18550 | int tz; | |
18551 | tz = timezone; | |
1e487827 VS |
18552 | |
18553 | ; | |
18554 | return 0; | |
18555 | } | |
18556 | _ACEOF | |
18557 | rm -f conftest.$ac_objext | |
18558 | if { (eval echo "$as_me:18558: \"$ac_compile\"") >&5 | |
18559 | (eval $ac_compile) 2>&5 | |
18560 | ac_status=$? | |
18561 | echo "$as_me:18561: \$? = $ac_status" >&5 | |
18562 | (exit $ac_status); } && | |
18563 | { ac_try='test -s conftest.$ac_objext' | |
18564 | { (eval echo "$as_me:18564: \"$ac_try\"") >&5 | |
18565 | (eval $ac_try) 2>&5 | |
18566 | ac_status=$? | |
18567 | echo "$as_me:18567: \$? = $ac_status" >&5 | |
18568 | (exit $ac_status); }; }; then | |
18569 | ||
5357c8e8 | 18570 | wx_cv_var_timezone=timezone |
1e487827 | 18571 | |
360d6699 | 18572 | else |
1e487827 VS |
18573 | echo "$as_me: failed program was:" >&5 |
18574 | cat conftest.$ac_ext >&5 | |
18575 | { { echo "$as_me:18575: error: no timezone variable" >&5 | |
18576 | echo "$as_me: error: no timezone variable" >&2;} | |
18577 | { (exit 1); exit 1; }; } | |
18578 | ||
360d6699 | 18579 | fi |
1e487827 VS |
18580 | rm -f conftest.$ac_objext conftest.$ac_ext |
18581 | ||
360d6699 | 18582 | fi |
1e487827 VS |
18583 | rm -f conftest.$ac_objext conftest.$ac_ext |
18584 | ||
6232543b | 18585 | fi |
1e487827 | 18586 | rm -f conftest.$ac_objext conftest.$ac_ext |
360d6699 | 18587 | |
1e487827 VS |
18588 | fi |
18589 | echo "$as_me:18589: result: $wx_cv_var_timezone" >&5 | |
18590 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
703e0a69 | 18591 | |
1e487827 | 18592 | cat >>confdefs.h <<EOF |
360d6699 VZ |
18593 | #define WX_TIMEZONE $wx_cv_var_timezone |
18594 | EOF | |
18595 | ||
1e487827 | 18596 | for ac_func in localtime |
afc31813 | 18597 | do |
1e487827 VS |
18598 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
18599 | echo "$as_me:18599: checking for $ac_func" >&5 | |
18600 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18601 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
18602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18603 | else | |
18604 | cat >conftest.$ac_ext <<_ACEOF | |
18605 | #line 18605 "configure" | |
10f2d63a | 18606 | #include "confdefs.h" |
afc31813 | 18607 | /* System header to define __stub macros and hopefully few prototypes, |
1e487827 | 18608 | which can conflict with char $ac_func (); below. */ |
afc31813 VZ |
18609 | #include <assert.h> |
18610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
18611 | #ifdef __cplusplus |
18612 | extern "C" | |
18613 | #endif | |
afc31813 | 18614 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
18615 | builtin and then its argument prototype would still apply. */ |
18616 | char $ac_func (); | |
18617 | char (*f) (); | |
afc31813 | 18618 | |
1e487827 VS |
18619 | int |
18620 | main () | |
18621 | { | |
afc31813 VZ |
18622 | /* The GNU C library defines this for functions which it implements |
18623 | to always fail with ENOSYS. Some functions are actually named | |
18624 | something starting with __ and the normal name is an alias. */ | |
18625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18626 | choke me | |
18627 | #else | |
1e487827 | 18628 | f = $ac_func; |
afc31813 VZ |
18629 | #endif |
18630 | ||
1e487827 VS |
18631 | ; |
18632 | return 0; | |
18633 | } | |
18634 | _ACEOF | |
18635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18636 | if { (eval echo "$as_me:18636: \"$ac_link\"") >&5 | |
18637 | (eval $ac_link) 2>&5 | |
18638 | ac_status=$? | |
18639 | echo "$as_me:18639: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); } && | |
18641 | { ac_try='test -s conftest$ac_exeext' | |
18642 | { (eval echo "$as_me:18642: \"$ac_try\"") >&5 | |
18643 | (eval $ac_try) 2>&5 | |
18644 | ac_status=$? | |
18645 | echo "$as_me:18645: \$? = $ac_status" >&5 | |
18646 | (exit $ac_status); }; }; then | |
18647 | eval "$ac_ac_var=yes" | |
18648 | else | |
18649 | echo "$as_me: failed program was:" >&5 | |
18650 | cat conftest.$ac_ext >&5 | |
18651 | eval "$ac_ac_var=no" | |
18652 | fi | |
18653 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18654 | fi | |
18655 | echo "$as_me:18655: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
18656 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
18657 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
18658 | cat >>confdefs.h <<EOF | |
18659 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
10f2d63a | 18660 | EOF |
afc31813 | 18661 | |
afc31813 VZ |
18662 | fi |
18663 | done | |
18664 | ||
703e0a69 | 18665 | if test "$ac_cv_func_localtime" = "yes"; then |
1e487827 VS |
18666 | echo "$as_me:18666: checking for tm_gmtoff in struct tm" >&5 |
18667 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
18668 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
18669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18670 | else | |
18671 | ||
18672 | cat >conftest.$ac_ext <<_ACEOF | |
18673 | #line 18673 "configure" | |
0470b1e6 VZ |
18674 | #include "confdefs.h" |
18675 | ||
b4085ce6 | 18676 | #include <time.h> |
1e487827 VS |
18677 | |
18678 | int | |
18679 | main () | |
18680 | { | |
0470b1e6 VZ |
18681 | |
18682 | struct tm tm; | |
18683 | tm.tm_gmtoff++; | |
1e487827 VS |
18684 | |
18685 | ; | |
18686 | return 0; | |
18687 | } | |
18688 | _ACEOF | |
18689 | rm -f conftest.$ac_objext | |
18690 | if { (eval echo "$as_me:18690: \"$ac_compile\"") >&5 | |
18691 | (eval $ac_compile) 2>&5 | |
18692 | ac_status=$? | |
18693 | echo "$as_me:18693: \$? = $ac_status" >&5 | |
18694 | (exit $ac_status); } && | |
18695 | { ac_try='test -s conftest.$ac_objext' | |
18696 | { (eval echo "$as_me:18696: \"$ac_try\"") >&5 | |
18697 | (eval $ac_try) 2>&5 | |
18698 | ac_status=$? | |
18699 | echo "$as_me:18699: \$? = $ac_status" >&5 | |
18700 | (exit $ac_status); }; }; then | |
18701 | ||
f03a98d8 | 18702 | wx_cv_struct_tm_has_gmtoff=yes |
1e487827 | 18703 | |
0470b1e6 | 18704 | else |
1e487827 VS |
18705 | echo "$as_me: failed program was:" >&5 |
18706 | cat conftest.$ac_ext >&5 | |
18707 | wx_cv_struct_tm_has_gmtoff=no | |
18708 | ||
0470b1e6 | 18709 | fi |
1e487827 | 18710 | rm -f conftest.$ac_objext conftest.$ac_ext |
703e0a69 | 18711 | |
1e487827 VS |
18712 | fi |
18713 | echo "$as_me:18713: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
18714 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
18715 | fi |
18716 | ||
18717 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
1e487827 | 18718 | cat >>confdefs.h <<\EOF |
6232543b VS |
18719 | #define WX_GMTOFF_IN_TM 1 |
18720 | EOF | |
0470b1e6 | 18721 | |
3fcdd07b VZ |
18722 | fi |
18723 | ||
1e487827 | 18724 | for ac_func in gettimeofday ftime |
3fcdd07b | 18725 | do |
1e487827 VS |
18726 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
18727 | echo "$as_me:18727: checking for $ac_func" >&5 | |
18728 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18729 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
18730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18731 | else | |
18732 | cat >conftest.$ac_ext <<_ACEOF | |
18733 | #line 18733 "configure" | |
3fcdd07b VZ |
18734 | #include "confdefs.h" |
18735 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 18736 | which can conflict with char $ac_func (); below. */ |
3fcdd07b VZ |
18737 | #include <assert.h> |
18738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
18739 | #ifdef __cplusplus |
18740 | extern "C" | |
18741 | #endif | |
3fcdd07b | 18742 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
18743 | builtin and then its argument prototype would still apply. */ |
18744 | char $ac_func (); | |
18745 | char (*f) (); | |
3fcdd07b | 18746 | |
1e487827 VS |
18747 | int |
18748 | main () | |
18749 | { | |
3fcdd07b VZ |
18750 | /* The GNU C library defines this for functions which it implements |
18751 | to always fail with ENOSYS. Some functions are actually named | |
18752 | something starting with __ and the normal name is an alias. */ | |
18753 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18754 | choke me | |
18755 | #else | |
1e487827 | 18756 | f = $ac_func; |
3fcdd07b VZ |
18757 | #endif |
18758 | ||
1e487827 VS |
18759 | ; |
18760 | return 0; | |
18761 | } | |
18762 | _ACEOF | |
18763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18764 | if { (eval echo "$as_me:18764: \"$ac_link\"") >&5 | |
18765 | (eval $ac_link) 2>&5 | |
18766 | ac_status=$? | |
18767 | echo "$as_me:18767: \$? = $ac_status" >&5 | |
18768 | (exit $ac_status); } && | |
18769 | { ac_try='test -s conftest$ac_exeext' | |
18770 | { (eval echo "$as_me:18770: \"$ac_try\"") >&5 | |
18771 | (eval $ac_try) 2>&5 | |
18772 | ac_status=$? | |
18773 | echo "$as_me:18773: \$? = $ac_status" >&5 | |
18774 | (exit $ac_status); }; }; then | |
18775 | eval "$ac_ac_var=yes" | |
18776 | else | |
18777 | echo "$as_me: failed program was:" >&5 | |
18778 | cat conftest.$ac_ext >&5 | |
18779 | eval "$ac_ac_var=no" | |
18780 | fi | |
18781 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18782 | fi | |
18783 | echo "$as_me:18783: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
18784 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
18785 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
18786 | cat >>confdefs.h <<EOF | |
18787 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
3fcdd07b VZ |
18788 | EOF |
18789 | break | |
3fcdd07b VZ |
18790 | fi |
18791 | done | |
18792 | ||
703e0a69 | 18793 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
1e487827 VS |
18794 | echo "$as_me:18794: checking whether gettimeofday takes two arguments" >&5 |
18795 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
18796 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
18797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18798 | else | |
afc31813 | 18799 | |
1e487827 VS |
18800 | ac_ext=cc |
18801 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18802 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18803 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18804 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
703e0a69 | 18805 | |
1e487827 VS |
18806 | cat >conftest.$ac_ext <<_ACEOF |
18807 | #line 18807 "configure" | |
10f2d63a | 18808 | #include "confdefs.h" |
afc31813 VZ |
18809 | |
18810 | #include <sys/time.h> | |
18811 | #include <unistd.h> | |
1e487827 VS |
18812 | |
18813 | int | |
18814 | main () | |
18815 | { | |
afc31813 VZ |
18816 | |
18817 | struct timeval tv; | |
18818 | struct timezone tz; | |
18819 | gettimeofday(&tv, &tz); | |
1e487827 VS |
18820 | |
18821 | ; | |
18822 | return 0; | |
18823 | } | |
18824 | _ACEOF | |
18825 | rm -f conftest.$ac_objext | |
18826 | if { (eval echo "$as_me:18826: \"$ac_compile\"") >&5 | |
18827 | (eval $ac_compile) 2>&5 | |
18828 | ac_status=$? | |
18829 | echo "$as_me:18829: \$? = $ac_status" >&5 | |
18830 | (exit $ac_status); } && | |
18831 | { ac_try='test -s conftest.$ac_objext' | |
18832 | { (eval echo "$as_me:18832: \"$ac_try\"") >&5 | |
18833 | (eval $ac_try) 2>&5 | |
18834 | ac_status=$? | |
18835 | echo "$as_me:18835: \$? = $ac_status" >&5 | |
18836 | (exit $ac_status); }; }; then | |
afc31813 | 18837 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18838 | else |
1e487827 VS |
18839 | echo "$as_me: failed program was:" >&5 |
18840 | cat conftest.$ac_ext >&5 | |
18841 | cat >conftest.$ac_ext <<_ACEOF | |
18842 | #line 18842 "configure" | |
10f2d63a | 18843 | #include "confdefs.h" |
afc31813 VZ |
18844 | |
18845 | #include <sys/time.h> | |
18846 | #include <unistd.h> | |
1e487827 VS |
18847 | |
18848 | int | |
18849 | main () | |
18850 | { | |
afc31813 VZ |
18851 | |
18852 | struct timeval tv; | |
18853 | gettimeofday(&tv); | |
1e487827 VS |
18854 | |
18855 | ; | |
18856 | return 0; | |
18857 | } | |
18858 | _ACEOF | |
18859 | rm -f conftest.$ac_objext | |
18860 | if { (eval echo "$as_me:18860: \"$ac_compile\"") >&5 | |
18861 | (eval $ac_compile) 2>&5 | |
18862 | ac_status=$? | |
18863 | echo "$as_me:18863: \$? = $ac_status" >&5 | |
18864 | (exit $ac_status); } && | |
18865 | { ac_try='test -s conftest.$ac_objext' | |
18866 | { (eval echo "$as_me:18866: \"$ac_try\"") >&5 | |
18867 | (eval $ac_try) 2>&5 | |
18868 | ac_status=$? | |
18869 | echo "$as_me:18869: \$? = $ac_status" >&5 | |
18870 | (exit $ac_status); }; }; then | |
afc31813 | 18871 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18872 | else |
1e487827 VS |
18873 | echo "$as_me: failed program was:" >&5 |
18874 | cat conftest.$ac_ext >&5 | |
18875 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18876 | ||
10f2d63a | 18877 | fi |
1e487827 VS |
18878 | rm -f conftest.$ac_objext conftest.$ac_ext |
18879 | ||
10f2d63a | 18880 | fi |
1e487827 | 18881 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 18882 | ac_ext=c |
10f2d63a | 18883 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
18884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 18887 | |
afc31813 | 18888 | fi |
1e487827 VS |
18889 | echo "$as_me:18889: result: $wx_cv_func_gettimeofday_has_2_args" >&5 |
18890 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 18891 | |
afc31813 | 18892 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
1e487827 | 18893 | cat >>confdefs.h <<\EOF |
afc31813 VZ |
18894 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18895 | EOF | |
18896 | ||
18897 | fi | |
18898 | fi | |
18899 | ||
1e487827 | 18900 | cat >>confdefs.h <<\EOF |
afc31813 VZ |
18901 | #define wxUSE_TIMEDATE 1 |
18902 | EOF | |
18903 | ||
18904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18905 | fi | |
18906 | ||
b089607b VZ |
18907 | if test "$TOOLKIT" != "MSW"; then |
18908 | ||
afc31813 | 18909 | if test "$wxUSE_SOCKETS" = "yes"; then |
1e487827 VS |
18910 | echo "$as_me:18910: checking for socket" >&5 |
18911 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
18912 | if test "${ac_cv_func_socket+set}" = set; then | |
18913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 18914 | else |
1e487827 VS |
18915 | cat >conftest.$ac_ext <<_ACEOF |
18916 | #line 18916 "configure" | |
c63c7106 VZ |
18917 | #include "confdefs.h" |
18918 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 18919 | which can conflict with char socket (); below. */ |
c63c7106 VZ |
18920 | #include <assert.h> |
18921 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
18922 | #ifdef __cplusplus |
18923 | extern "C" | |
18924 | #endif | |
c63c7106 | 18925 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
18926 | builtin and then its argument prototype would still apply. */ |
18927 | char socket (); | |
18928 | char (*f) (); | |
c63c7106 | 18929 | |
1e487827 VS |
18930 | int |
18931 | main () | |
18932 | { | |
c63c7106 VZ |
18933 | /* The GNU C library defines this for functions which it implements |
18934 | to always fail with ENOSYS. Some functions are actually named | |
18935 | something starting with __ and the normal name is an alias. */ | |
18936 | #if defined (__stub_socket) || defined (__stub___socket) | |
18937 | choke me | |
18938 | #else | |
1e487827 | 18939 | f = socket; |
c63c7106 VZ |
18940 | #endif |
18941 | ||
1e487827 VS |
18942 | ; |
18943 | return 0; | |
18944 | } | |
18945 | _ACEOF | |
18946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18947 | if { (eval echo "$as_me:18947: \"$ac_link\"") >&5 | |
18948 | (eval $ac_link) 2>&5 | |
18949 | ac_status=$? | |
18950 | echo "$as_me:18950: \$? = $ac_status" >&5 | |
18951 | (exit $ac_status); } && | |
18952 | { ac_try='test -s conftest$ac_exeext' | |
18953 | { (eval echo "$as_me:18953: \"$ac_try\"") >&5 | |
18954 | (eval $ac_try) 2>&5 | |
18955 | ac_status=$? | |
18956 | echo "$as_me:18956: \$? = $ac_status" >&5 | |
18957 | (exit $ac_status); }; }; then | |
18958 | ac_cv_func_socket=yes | |
18959 | else | |
18960 | echo "$as_me: failed program was:" >&5 | |
18961 | cat conftest.$ac_ext >&5 | |
18962 | ac_cv_func_socket=no | |
18963 | fi | |
18964 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18965 | fi | |
18966 | echo "$as_me:18966: result: $ac_cv_func_socket" >&5 | |
18967 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
18968 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
18969 | : |
18970 | else | |
1e487827 VS |
18971 | echo "$as_me:18971: checking for socket in -lsocket" >&5 |
18972 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
18973 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
18974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 18975 | else |
1e487827 | 18976 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 18977 | LIBS="-lsocket $LIBS" |
1e487827 VS |
18978 | cat >conftest.$ac_ext <<_ACEOF |
18979 | #line 18979 "configure" | |
c63c7106 | 18980 | #include "confdefs.h" |
1e487827 | 18981 | |
c63c7106 | 18982 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
18983 | #ifdef __cplusplus |
18984 | extern "C" | |
18985 | #endif | |
c63c7106 | 18986 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
18987 | builtin and then its argument prototype would still apply. */ |
18988 | char socket (); | |
18989 | int | |
18990 | main () | |
18991 | { | |
18992 | socket (); | |
18993 | ; | |
18994 | return 0; | |
18995 | } | |
18996 | _ACEOF | |
18997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18998 | if { (eval echo "$as_me:18998: \"$ac_link\"") >&5 | |
18999 | (eval $ac_link) 2>&5 | |
19000 | ac_status=$? | |
19001 | echo "$as_me:19001: \$? = $ac_status" >&5 | |
19002 | (exit $ac_status); } && | |
19003 | { ac_try='test -s conftest$ac_exeext' | |
19004 | { (eval echo "$as_me:19004: \"$ac_try\"") >&5 | |
19005 | (eval $ac_try) 2>&5 | |
19006 | ac_status=$? | |
19007 | echo "$as_me:19007: \$? = $ac_status" >&5 | |
19008 | (exit $ac_status); }; }; then | |
19009 | ac_cv_lib_socket_socket=yes | |
19010 | else | |
19011 | echo "$as_me: failed program was:" >&5 | |
19012 | cat conftest.$ac_ext >&5 | |
19013 | ac_cv_lib_socket_socket=no | |
19014 | fi | |
19015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19016 | LIBS=$ac_check_lib_save_LIBS | |
19017 | fi | |
19018 | echo "$as_me:19018: result: $ac_cv_lib_socket_socket" >&5 | |
19019 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
19020 | if test $ac_cv_lib_socket_socket = yes; then | |
c63c7106 | 19021 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 19022 | else |
afc31813 | 19023 | |
1e487827 VS |
19024 | { echo "$as_me:19024: WARNING: socket library not found - sockets will be disabled" >&5 |
19025 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
afc31813 | 19026 | wxUSE_SOCKETS=no |
c63c7106 | 19027 | |
10f2d63a VZ |
19028 | fi |
19029 | ||
6232543b | 19030 | fi |
b089607b | 19031 | |
1e487827 | 19032 | fi |
afc31813 | 19033 | |
703e0a69 | 19034 | if test "$wxUSE_SOCKETS" = "yes" ; then |
1e487827 VS |
19035 | echo "$as_me:19035: checking what is the type of the third argument of getsockname" >&5 |
19036 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
19037 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
19038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19039 | else | |
51a9faba | 19040 | |
1e487827 VS |
19041 | ac_ext=cc |
19042 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19043 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19044 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19045 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
703e0a69 | 19046 | |
1e487827 VS |
19047 | cat >conftest.$ac_ext <<_ACEOF |
19048 | #line 19048 "configure" | |
afc31813 | 19049 | #include "confdefs.h" |
51a9faba | 19050 | |
3ace2e6d | 19051 | #include <sys/types.h> |
51a9faba | 19052 | #include <sys/socket.h> |
1e487827 VS |
19053 | |
19054 | int | |
19055 | main () | |
19056 | { | |
51a9faba VZ |
19057 | |
19058 | socklen_t len; | |
19059 | getsockname(0, 0, &len); | |
1e487827 VS |
19060 | |
19061 | ; | |
19062 | return 0; | |
19063 | } | |
19064 | _ACEOF | |
19065 | rm -f conftest.$ac_objext | |
19066 | if { (eval echo "$as_me:19066: \"$ac_compile\"") >&5 | |
19067 | (eval $ac_compile) 2>&5 | |
19068 | ac_status=$? | |
19069 | echo "$as_me:19069: \$? = $ac_status" >&5 | |
19070 | (exit $ac_status); } && | |
19071 | { ac_try='test -s conftest.$ac_objext' | |
19072 | { (eval echo "$as_me:19072: \"$ac_try\"") >&5 | |
19073 | (eval $ac_try) 2>&5 | |
19074 | ac_status=$? | |
19075 | echo "$as_me:19075: \$? = $ac_status" >&5 | |
19076 | (exit $ac_status); }; }; then | |
51a9faba | 19077 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19078 | else |
1e487827 VS |
19079 | echo "$as_me: failed program was:" >&5 |
19080 | cat conftest.$ac_ext >&5 | |
19081 | cat >conftest.$ac_ext <<_ACEOF | |
19082 | #line 19082 "configure" | |
afc31813 | 19083 | #include "confdefs.h" |
51a9faba | 19084 | |
3ace2e6d | 19085 | #include <sys/types.h> |
51a9faba | 19086 | #include <sys/socket.h> |
1e487827 VS |
19087 | |
19088 | int | |
19089 | main () | |
19090 | { | |
51a9faba VZ |
19091 | |
19092 | size_t len; | |
19093 | getsockname(0, 0, &len); | |
1e487827 VS |
19094 | |
19095 | ; | |
19096 | return 0; | |
19097 | } | |
19098 | _ACEOF | |
19099 | rm -f conftest.$ac_objext | |
19100 | if { (eval echo "$as_me:19100: \"$ac_compile\"") >&5 | |
19101 | (eval $ac_compile) 2>&5 | |
19102 | ac_status=$? | |
19103 | echo "$as_me:19103: \$? = $ac_status" >&5 | |
19104 | (exit $ac_status); } && | |
19105 | { ac_try='test -s conftest.$ac_objext' | |
19106 | { (eval echo "$as_me:19106: \"$ac_try\"") >&5 | |
19107 | (eval $ac_try) 2>&5 | |
19108 | ac_status=$? | |
19109 | echo "$as_me:19109: \$? = $ac_status" >&5 | |
19110 | (exit $ac_status); }; }; then | |
51a9faba | 19111 | wx_cv_type_getsockname3=size_t |
afc31813 | 19112 | else |
1e487827 VS |
19113 | echo "$as_me: failed program was:" >&5 |
19114 | cat conftest.$ac_ext >&5 | |
19115 | cat >conftest.$ac_ext <<_ACEOF | |
19116 | #line 19116 "configure" | |
afc31813 | 19117 | #include "confdefs.h" |
51a9faba | 19118 | |
3ace2e6d | 19119 | #include <sys/types.h> |
51a9faba | 19120 | #include <sys/socket.h> |
1e487827 VS |
19121 | |
19122 | int | |
19123 | main () | |
19124 | { | |
51a9faba VZ |
19125 | |
19126 | int len; | |
19127 | getsockname(0, 0, &len); | |
1e487827 VS |
19128 | |
19129 | ; | |
19130 | return 0; | |
19131 | } | |
19132 | _ACEOF | |
19133 | rm -f conftest.$ac_objext | |
19134 | if { (eval echo "$as_me:19134: \"$ac_compile\"") >&5 | |
19135 | (eval $ac_compile) 2>&5 | |
19136 | ac_status=$? | |
19137 | echo "$as_me:19137: \$? = $ac_status" >&5 | |
19138 | (exit $ac_status); } && | |
19139 | { ac_try='test -s conftest.$ac_objext' | |
19140 | { (eval echo "$as_me:19140: \"$ac_try\"") >&5 | |
19141 | (eval $ac_try) 2>&5 | |
19142 | ac_status=$? | |
19143 | echo "$as_me:19143: \$? = $ac_status" >&5 | |
19144 | (exit $ac_status); }; }; then | |
51a9faba | 19145 | wx_cv_type_getsockname3=int |
afc31813 | 19146 | else |
1e487827 VS |
19147 | echo "$as_me: failed program was:" >&5 |
19148 | cat conftest.$ac_ext >&5 | |
19149 | wx_cv_type_getsockname3=unknown | |
19150 | ||
afc31813 | 19151 | fi |
1e487827 VS |
19152 | rm -f conftest.$ac_objext conftest.$ac_ext |
19153 | ||
afc31813 | 19154 | fi |
1e487827 VS |
19155 | rm -f conftest.$ac_objext conftest.$ac_ext |
19156 | ||
afc31813 | 19157 | fi |
1e487827 | 19158 | rm -f conftest.$ac_objext conftest.$ac_ext |
51a9faba VZ |
19159 | |
19160 | ac_ext=c | |
afc31813 | 19161 | ac_cpp='$CPP $CPPFLAGS' |
1e487827 VS |
19162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
afc31813 | 19165 | |
51a9faba | 19166 | fi |
1e487827 VS |
19167 | echo "$as_me:19167: result: $wx_cv_type_getsockname3" >&5 |
19168 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba VZ |
19169 | |
19170 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
19171 | wxUSE_SOCKETS=no | |
1e487827 VS |
19172 | { echo "$as_me:19172: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
19173 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
51a9faba | 19174 | else |
1e487827 | 19175 | cat >>confdefs.h <<EOF |
51a9faba VZ |
19176 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19177 | EOF | |
19178 | ||
19179 | fi | |
19180 | fi | |
afc31813 | 19181 | |
c521c494 RL |
19182 | fi |
19183 | ||
51a9faba | 19184 | if test "$wxUSE_SOCKETS" = "yes" ; then |
1e487827 | 19185 | cat >>confdefs.h <<\EOF |
afc31813 VZ |
19186 | #define wxUSE_SOCKETS 1 |
19187 | EOF | |
19188 | ||
70f7a477 | 19189 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19190 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
19191 | fi | |
19192 | ||
dc3d889d VZ |
19193 | if test "$wxUSE_GUI" = "yes"; then |
19194 | ||
b089607b VZ |
19195 | if test "$TOOLKIT" != "MSW"; then |
19196 | ||
ceded8b9 | 19197 | if test "$wxUSE_JOYSTICK" = "yes"; then |
1e487827 VS |
19198 | |
19199 | for ac_header in linux/joystick.h | |
10f2d63a | 19200 | do |
1e487827 VS |
19201 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
19202 | echo "$as_me:19202: checking for $ac_header" >&5 | |
19203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19204 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
19205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19206 | else | |
19207 | cat >conftest.$ac_ext <<_ACEOF | |
19208 | #line 19208 "configure" | |
10f2d63a | 19209 | #include "confdefs.h" |
1e487827 VS |
19210 | #include <$ac_header> |
19211 | _ACEOF | |
19212 | if { (eval echo "$as_me:19212: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19214 | ac_status=$? | |
19215 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
19216 | rm -f conftest.er1 | |
19217 | cat conftest.err >&5 | |
19218 | echo "$as_me:19218: \$? = $ac_status" >&5 | |
19219 | (exit $ac_status); } >/dev/null; then | |
19220 | if test -s conftest.err; then | |
19221 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19222 | else | |
19223 | ac_cpp_err= | |
19224 | fi | |
19225 | else | |
19226 | ac_cpp_err=yes | |
19227 | fi | |
19228 | if test -z "$ac_cpp_err"; then | |
19229 | eval "$ac_ac_Header=yes" | |
10f2d63a | 19230 | else |
1e487827 | 19231 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 19232 | cat conftest.$ac_ext >&5 |
1e487827 | 19233 | eval "$ac_ac_Header=no" |
10f2d63a | 19234 | fi |
1e487827 | 19235 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 19236 | fi |
1e487827 VS |
19237 | echo "$as_me:19237: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
19238 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
19239 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
19240 | cat >>confdefs.h <<EOF | |
19241 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
10f2d63a | 19242 | EOF |
1e487827 | 19243 | |
10f2d63a VZ |
19244 | fi |
19245 | done | |
19246 | ||
b089607b | 19247 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 19248 | wxUSE_JOYSTICK=no |
1e487827 VS |
19249 | { echo "$as_me:19249: WARNING: Joystick not supported by this system" >&5 |
19250 | echo "$as_me: WARNING: Joystick not supported by this system" >&2;} | |
b089607b VZ |
19251 | fi |
19252 | fi | |
19253 | ||
19254 | fi | |
19255 | ||
ceded8b9 | 19256 | if test "$wxUSE_JOYSTICK" = "yes"; then |
1e487827 | 19257 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19258 | #define wxUSE_JOYSTICK 1 |
19259 | EOF | |
19260 | ||
19261 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
19262 | fi |
19263 | ||
dc3d889d VZ |
19264 | fi |
19265 | ||
b089607b VZ |
19266 | if test "$TOOLKIT" != "MSW"; then |
19267 | ||
10f2d63a VZ |
19268 | HAVE_DL_FUNCS=0 |
19269 | HAVE_SHL_FUNCS=0 | |
19270 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
19271 | if test "$USE_MAC" = 1; then |
19272 | HAVE_DL_FUNCS=1 | |
19273 | else | |
1e487827 VS |
19274 | |
19275 | for ac_func in dlopen | |
10f2d63a | 19276 | do |
1e487827 VS |
19277 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
19278 | echo "$as_me:19278: checking for $ac_func" >&5 | |
19279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19280 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
19281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19282 | else | |
19283 | cat >conftest.$ac_ext <<_ACEOF | |
19284 | #line 19284 "configure" | |
10f2d63a VZ |
19285 | #include "confdefs.h" |
19286 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 19287 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
19288 | #include <assert.h> |
19289 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
19290 | #ifdef __cplusplus |
19291 | extern "C" | |
19292 | #endif | |
10f2d63a | 19293 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
19294 | builtin and then its argument prototype would still apply. */ |
19295 | char $ac_func (); | |
19296 | char (*f) (); | |
10f2d63a | 19297 | |
1e487827 VS |
19298 | int |
19299 | main () | |
19300 | { | |
10f2d63a VZ |
19301 | /* The GNU C library defines this for functions which it implements |
19302 | to always fail with ENOSYS. Some functions are actually named | |
19303 | something starting with __ and the normal name is an alias. */ | |
19304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19305 | choke me | |
19306 | #else | |
1e487827 | 19307 | f = $ac_func; |
10f2d63a VZ |
19308 | #endif |
19309 | ||
1e487827 VS |
19310 | ; |
19311 | return 0; | |
19312 | } | |
19313 | _ACEOF | |
19314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19315 | if { (eval echo "$as_me:19315: \"$ac_link\"") >&5 | |
19316 | (eval $ac_link) 2>&5 | |
19317 | ac_status=$? | |
19318 | echo "$as_me:19318: \$? = $ac_status" >&5 | |
19319 | (exit $ac_status); } && | |
19320 | { ac_try='test -s conftest$ac_exeext' | |
19321 | { (eval echo "$as_me:19321: \"$ac_try\"") >&5 | |
19322 | (eval $ac_try) 2>&5 | |
19323 | ac_status=$? | |
19324 | echo "$as_me:19324: \$? = $ac_status" >&5 | |
19325 | (exit $ac_status); }; }; then | |
19326 | eval "$ac_ac_var=yes" | |
19327 | else | |
19328 | echo "$as_me: failed program was:" >&5 | |
19329 | cat conftest.$ac_ext >&5 | |
19330 | eval "$ac_ac_var=no" | |
19331 | fi | |
19332 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19333 | fi | |
19334 | echo "$as_me:19334: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
19335 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
19336 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
19337 | cat >>confdefs.h <<EOF | |
19338 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
19339 | EOF | |
19340 | ||
19341 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
19342 | #define HAVE_DLOPEN 1 |
19343 | EOF | |
19344 | ||
19345 | HAVE_DL_FUNCS=1 | |
1e487827 | 19346 | |
10f2d63a | 19347 | else |
1e487827 VS |
19348 | |
19349 | echo "$as_me:19349: checking for dlopen in -ldl" >&5 | |
19350 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
19351 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
19352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 19353 | else |
1e487827 | 19354 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 19355 | LIBS="-ldl $LIBS" |
1e487827 VS |
19356 | cat >conftest.$ac_ext <<_ACEOF |
19357 | #line 19357 "configure" | |
10f2d63a | 19358 | #include "confdefs.h" |
1e487827 | 19359 | |
10f2d63a | 19360 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
19361 | #ifdef __cplusplus |
19362 | extern "C" | |
19363 | #endif | |
10f2d63a | 19364 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
19365 | builtin and then its argument prototype would still apply. */ |
19366 | char dlopen (); | |
19367 | int | |
19368 | main () | |
19369 | { | |
19370 | dlopen (); | |
19371 | ; | |
19372 | return 0; | |
19373 | } | |
19374 | _ACEOF | |
19375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19376 | if { (eval echo "$as_me:19376: \"$ac_link\"") >&5 | |
19377 | (eval $ac_link) 2>&5 | |
19378 | ac_status=$? | |
19379 | echo "$as_me:19379: \$? = $ac_status" >&5 | |
19380 | (exit $ac_status); } && | |
19381 | { ac_try='test -s conftest$ac_exeext' | |
19382 | { (eval echo "$as_me:19382: \"$ac_try\"") >&5 | |
19383 | (eval $ac_try) 2>&5 | |
19384 | ac_status=$? | |
19385 | echo "$as_me:19385: \$? = $ac_status" >&5 | |
19386 | (exit $ac_status); }; }; then | |
19387 | ac_cv_lib_dl_dlopen=yes | |
19388 | else | |
19389 | echo "$as_me: failed program was:" >&5 | |
19390 | cat conftest.$ac_ext >&5 | |
19391 | ac_cv_lib_dl_dlopen=no | |
19392 | fi | |
19393 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19394 | LIBS=$ac_check_lib_save_LIBS | |
19395 | fi | |
19396 | echo "$as_me:19396: result: $ac_cv_lib_dl_dlopen" >&5 | |
19397 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
19398 | if test $ac_cv_lib_dl_dlopen = yes; then | |
19399 | ||
19400 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
19401 | #define HAVE_DLOPEN 1 |
19402 | EOF | |
19403 | ||
19404 | HAVE_DL_FUNCS=1 | |
19405 | LIBS="$LIBS -ldl" | |
1e487827 | 19406 | |
10f2d63a | 19407 | else |
10f2d63a | 19408 | |
1e487827 | 19409 | for ac_func in shl_load |
10f2d63a | 19410 | do |
1e487827 VS |
19411 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
19412 | echo "$as_me:19412: checking for $ac_func" >&5 | |
19413 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19414 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
19415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19416 | else | |
19417 | cat >conftest.$ac_ext <<_ACEOF | |
19418 | #line 19418 "configure" | |
10f2d63a VZ |
19419 | #include "confdefs.h" |
19420 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 19421 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
19422 | #include <assert.h> |
19423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
19424 | #ifdef __cplusplus |
19425 | extern "C" | |
19426 | #endif | |
10f2d63a | 19427 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
19428 | builtin and then its argument prototype would still apply. */ |
19429 | char $ac_func (); | |
19430 | char (*f) (); | |
10f2d63a | 19431 | |
1e487827 VS |
19432 | int |
19433 | main () | |
19434 | { | |
10f2d63a VZ |
19435 | /* The GNU C library defines this for functions which it implements |
19436 | to always fail with ENOSYS. Some functions are actually named | |
19437 | something starting with __ and the normal name is an alias. */ | |
19438 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19439 | choke me | |
19440 | #else | |
1e487827 | 19441 | f = $ac_func; |
10f2d63a VZ |
19442 | #endif |
19443 | ||
1e487827 VS |
19444 | ; |
19445 | return 0; | |
19446 | } | |
19447 | _ACEOF | |
19448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19449 | if { (eval echo "$as_me:19449: \"$ac_link\"") >&5 | |
19450 | (eval $ac_link) 2>&5 | |
19451 | ac_status=$? | |
19452 | echo "$as_me:19452: \$? = $ac_status" >&5 | |
19453 | (exit $ac_status); } && | |
19454 | { ac_try='test -s conftest$ac_exeext' | |
19455 | { (eval echo "$as_me:19455: \"$ac_try\"") >&5 | |
19456 | (eval $ac_try) 2>&5 | |
19457 | ac_status=$? | |
19458 | echo "$as_me:19458: \$? = $ac_status" >&5 | |
19459 | (exit $ac_status); }; }; then | |
19460 | eval "$ac_ac_var=yes" | |
19461 | else | |
19462 | echo "$as_me: failed program was:" >&5 | |
19463 | cat conftest.$ac_ext >&5 | |
19464 | eval "$ac_ac_var=no" | |
19465 | fi | |
19466 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19467 | fi | |
19468 | echo "$as_me:19468: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
19469 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
19470 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
19471 | cat >>confdefs.h <<EOF | |
19472 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
19473 | EOF | |
19474 | ||
19475 | cat >>confdefs.h <<\EOF | |
10f2d63a VZ |
19476 | #define HAVE_SHL_LOAD 1 |
19477 | EOF | |
19478 | ||
19479 | HAVE_SHL_FUNCS=1 | |
1e487827 | 19480 | |
10f2d63a | 19481 | else |
1e487827 VS |
19482 | |
19483 | echo "$as_me:19483: checking for dld in -lshl_load" >&5 | |
19484 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
19485 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
19486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 19487 | else |
1e487827 | 19488 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 19489 | LIBS="-lshl_load $LIBS" |
1e487827 VS |
19490 | cat >conftest.$ac_ext <<_ACEOF |
19491 | #line 19491 "configure" | |
f6bcfd97 | 19492 | #include "confdefs.h" |
1e487827 | 19493 | |
f6bcfd97 | 19494 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
19495 | #ifdef __cplusplus |
19496 | extern "C" | |
19497 | #endif | |
f6bcfd97 | 19498 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
19499 | builtin and then its argument prototype would still apply. */ |
19500 | char dld (); | |
19501 | int | |
19502 | main () | |
19503 | { | |
19504 | dld (); | |
19505 | ; | |
19506 | return 0; | |
19507 | } | |
19508 | _ACEOF | |
19509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19510 | if { (eval echo "$as_me:19510: \"$ac_link\"") >&5 | |
19511 | (eval $ac_link) 2>&5 | |
19512 | ac_status=$? | |
19513 | echo "$as_me:19513: \$? = $ac_status" >&5 | |
19514 | (exit $ac_status); } && | |
19515 | { ac_try='test -s conftest$ac_exeext' | |
19516 | { (eval echo "$as_me:19516: \"$ac_try\"") >&5 | |
19517 | (eval $ac_try) 2>&5 | |
19518 | ac_status=$? | |
19519 | echo "$as_me:19519: \$? = $ac_status" >&5 | |
19520 | (exit $ac_status); }; }; then | |
19521 | ac_cv_lib_shl_load_dld=yes | |
19522 | else | |
19523 | echo "$as_me: failed program was:" >&5 | |
19524 | cat conftest.$ac_ext >&5 | |
19525 | ac_cv_lib_shl_load_dld=no | |
19526 | fi | |
19527 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19528 | LIBS=$ac_check_lib_save_LIBS | |
19529 | fi | |
19530 | echo "$as_me:19530: result: $ac_cv_lib_shl_load_dld" >&5 | |
19531 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
19532 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 19533 | |
f6bcfd97 BP |
19534 | HAVE_SHL_FUNCS=1 |
19535 | LIBS="$LIBS -ldld" | |
1e487827 | 19536 | |
f6bcfd97 BP |
19537 | fi |
19538 | ||
10f2d63a VZ |
19539 | fi |
19540 | done | |
19541 | ||
10f2d63a VZ |
19542 | fi |
19543 | ||
10f2d63a VZ |
19544 | fi |
19545 | done | |
19546 | ||
703e0a69 | 19547 | if test "$HAVE_DL_FUNCS" = 1; then |
1e487827 VS |
19548 | |
19549 | for ac_func in dlerror | |
f6bcfd97 | 19550 | do |
1e487827 VS |
19551 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
19552 | echo "$as_me:19552: checking for $ac_func" >&5 | |
19553 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19554 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
19555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19556 | else | |
19557 | cat >conftest.$ac_ext <<_ACEOF | |
19558 | #line 19558 "configure" | |
f6bcfd97 BP |
19559 | #include "confdefs.h" |
19560 | /* System header to define __stub macros and hopefully few prototypes, | |
1e487827 | 19561 | which can conflict with char $ac_func (); below. */ |
f6bcfd97 BP |
19562 | #include <assert.h> |
19563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1e487827 VS |
19564 | #ifdef __cplusplus |
19565 | extern "C" | |
19566 | #endif | |
f6bcfd97 | 19567 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
19568 | builtin and then its argument prototype would still apply. */ |
19569 | char $ac_func (); | |
19570 | char (*f) (); | |
f6bcfd97 | 19571 | |
1e487827 VS |
19572 | int |
19573 | main () | |
19574 | { | |
f6bcfd97 BP |
19575 | /* The GNU C library defines this for functions which it implements |
19576 | to always fail with ENOSYS. Some functions are actually named | |
19577 | something starting with __ and the normal name is an alias. */ | |
19578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19579 | choke me | |
19580 | #else | |
1e487827 | 19581 | f = $ac_func; |
f6bcfd97 BP |
19582 | #endif |
19583 | ||
1e487827 VS |
19584 | ; |
19585 | return 0; | |
19586 | } | |
19587 | _ACEOF | |
19588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19589 | if { (eval echo "$as_me:19589: \"$ac_link\"") >&5 | |
19590 | (eval $ac_link) 2>&5 | |
19591 | ac_status=$? | |
19592 | echo "$as_me:19592: \$? = $ac_status" >&5 | |
19593 | (exit $ac_status); } && | |
19594 | { ac_try='test -s conftest$ac_exeext' | |
19595 | { (eval echo "$as_me:19595: \"$ac_try\"") >&5 | |
19596 | (eval $ac_try) 2>&5 | |
19597 | ac_status=$? | |
19598 | echo "$as_me:19598: \$? = $ac_status" >&5 | |
19599 | (exit $ac_status); }; }; then | |
19600 | eval "$ac_ac_var=yes" | |
19601 | else | |
19602 | echo "$as_me: failed program was:" >&5 | |
19603 | cat conftest.$ac_ext >&5 | |
19604 | eval "$ac_ac_var=no" | |
19605 | fi | |
19606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19607 | fi | |
19608 | echo "$as_me:19608: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
19609 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
19610 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
19611 | cat >>confdefs.h <<EOF | |
19612 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
19613 | EOF | |
19614 | cat >>confdefs.h <<\EOF | |
f6bcfd97 BP |
19615 | #define HAVE_DLERROR 1 |
19616 | EOF | |
19617 | ||
19618 | else | |
1e487827 VS |
19619 | echo "$as_me:19619: checking for dlerror in -ldl" >&5 |
19620 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
19621 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
19622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 19623 | else |
1e487827 | 19624 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 19625 | LIBS="-ldl $LIBS" |
1e487827 VS |
19626 | cat >conftest.$ac_ext <<_ACEOF |
19627 | #line 19627 "configure" | |
f6bcfd97 | 19628 | #include "confdefs.h" |
1e487827 | 19629 | |
f6bcfd97 | 19630 | /* Override any gcc2 internal prototype to avoid an error. */ |
1e487827 VS |
19631 | #ifdef __cplusplus |
19632 | extern "C" | |
19633 | #endif | |
f6bcfd97 | 19634 | /* We use char because int might match the return type of a gcc2 |
1e487827 VS |
19635 | builtin and then its argument prototype would still apply. */ |
19636 | char dlerror (); | |
19637 | int | |
19638 | main () | |
19639 | { | |
19640 | dlerror (); | |
19641 | ; | |
19642 | return 0; | |
19643 | } | |
19644 | _ACEOF | |
19645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19646 | if { (eval echo "$as_me:19646: \"$ac_link\"") >&5 | |
19647 | (eval $ac_link) 2>&5 | |
19648 | ac_status=$? | |
19649 | echo "$as_me:19649: \$? = $ac_status" >&5 | |
19650 | (exit $ac_status); } && | |
19651 | { ac_try='test -s conftest$ac_exeext' | |
19652 | { (eval echo "$as_me:19652: \"$ac_try\"") >&5 | |
19653 | (eval $ac_try) 2>&5 | |
19654 | ac_status=$? | |
19655 | echo "$as_me:19655: \$? = $ac_status" >&5 | |
19656 | (exit $ac_status); }; }; then | |
19657 | ac_cv_lib_dl_dlerror=yes | |
19658 | else | |
19659 | echo "$as_me: failed program was:" >&5 | |
19660 | cat conftest.$ac_ext >&5 | |
19661 | ac_cv_lib_dl_dlerror=no | |
19662 | fi | |
19663 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19664 | LIBS=$ac_check_lib_save_LIBS | |
19665 | fi | |
19666 | echo "$as_me:19666: result: $ac_cv_lib_dl_dlerror" >&5 | |
19667 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
19668 | if test $ac_cv_lib_dl_dlerror = yes; then | |
19669 | cat >>confdefs.h <<\EOF | |
f6bcfd97 BP |
19670 | #define HAVE_DLERROR 1 |
19671 | EOF | |
19672 | ||
f6bcfd97 BP |
19673 | fi |
19674 | ||
19675 | fi | |
19676 | done | |
19677 | ||
19678 | fi | |
b4085ce6 | 19679 | fi |
f6bcfd97 | 19680 | |
10f2d63a VZ |
19681 | if test "$HAVE_DL_FUNCS" = 0; then |
19682 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19683 | if test "$USE_UNIX" = 1; then | |
1e487827 VS |
19684 | { echo "$as_me:19684: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
19685 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
10f2d63a VZ |
19686 | wxUSE_DYNLIB_CLASS=no |
19687 | else | |
1e487827 VS |
19688 | { echo "$as_me:19688: WARNING: Assuming wxLibrary class works on this platform" >&5 |
19689 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
10f2d63a VZ |
19690 | fi |
19691 | fi | |
19692 | fi | |
19693 | fi | |
19694 | ||
b089607b VZ |
19695 | fi |
19696 | ||
10f2d63a | 19697 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
1e487827 | 19698 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19699 | #define wxUSE_DYNLIB_CLASS 1 |
19700 | EOF | |
19701 | ||
b12915c1 VZ |
19702 | else |
19703 | wxUSE_ODBC=no | |
19704 | wxUSE_SERIAL=no | |
10f2d63a VZ |
19705 | fi |
19706 | ||
10f2d63a | 19707 | if test "$wxUSE_UNICODE" = "yes" ; then |
1e487827 | 19708 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19709 | #define wxUSE_UNICODE 1 |
19710 | EOF | |
19711 | ||
19712 | fi | |
19713 | ||
19714 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
1e487827 | 19715 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19716 | #define wxUSE_WCSRTOMBS 1 |
19717 | EOF | |
19718 | ||
19719 | fi | |
19720 | ||
19721 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
1e487827 | 19722 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19723 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19724 | EOF | |
19725 | ||
19726 | fi | |
19727 | ||
b12915c1 | 19728 | if test "$wxUSE_SERIAL" = "yes" ; then |
1e487827 | 19729 | cat >>confdefs.h <<\EOF |
b12915c1 VZ |
19730 | #define wxUSE_SERIAL 1 |
19731 | EOF | |
19732 | ||
19733 | fi | |
19734 | ||
10f2d63a VZ |
19735 | IODBC_C_SRC="" |
19736 | if test "$wxUSE_ODBC" = "yes" ; then | |
1e487827 | 19737 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19738 | #define wxUSE_ODBC 1 |
19739 | EOF | |
19740 | ||
19741 | WXODBCFLAG="-D_IODBC_" | |
19742 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19743 | fi |
19744 | ||
10f2d63a | 19745 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
1e487827 | 19746 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19747 | #define wxUSE_POSTSCRIPT 1 |
19748 | EOF | |
19749 | ||
19750 | fi | |
19751 | ||
1e487827 | 19752 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19753 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19754 | EOF | |
19755 | ||
1e487827 | 19756 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19757 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19758 | EOF | |
19759 | ||
10f2d63a | 19760 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
1e487827 | 19761 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19762 | #define wxUSE_CONSTRAINTS 1 |
19763 | EOF | |
19764 | ||
19765 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19766 | fi | |
19767 | ||
19768 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
1e487827 | 19769 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19770 | #define wxUSE_MDI_ARCHITECTURE 1 |
19771 | EOF | |
19772 | ||
19773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
19774 | fi | |
19775 | ||
19776 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
1e487827 | 19777 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19778 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19779 | EOF | |
19780 | ||
19781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19782 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19783 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19784 | fi | |
19785 | fi | |
19786 | ||
19787 | if test "$wxUSE_HELP" = "yes"; then | |
1e487827 | 19788 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19789 | #define wxUSE_HELP 1 |
19790 | EOF | |
19791 | ||
19792 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
19793 | fi | |
19794 | ||
19795 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19796 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
1e487827 VS |
19797 | { echo "$as_me:19797: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
19798 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 19799 | else |
1e487827 | 19800 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19801 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19802 | EOF | |
19803 | ||
19804 | fi | |
19805 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19806 | fi | |
19807 | ||
19808 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
1e487827 | 19809 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19810 | #define wxUSE_PROLOGIO 1 |
19811 | EOF | |
19812 | ||
19813 | fi | |
19814 | ||
19815 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
19816 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
1e487827 | 19817 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19818 | #define wxUSE_RESOURCES 1 |
19819 | EOF | |
19820 | ||
19821 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
19822 | else | |
1e487827 VS |
19823 | { echo "$as_me:19823: WARNING: wxWindows ressource system requires PrologIO and can't be compiled without it." >&5 |
19824 | echo "$as_me: WARNING: wxWindows ressource system requires PrologIO and can't be compiled without it." >&2;} | |
10f2d63a VZ |
19825 | fi |
19826 | fi | |
19827 | ||
19828 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
1e487827 | 19829 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19830 | #define wxUSE_X_RESOURCES 1 |
19831 | EOF | |
19832 | ||
19833 | fi | |
19834 | ||
10f2d63a | 19835 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 19836 | if test "$wxUSE_SOCKETS" != "yes"; then |
1e487827 VS |
19837 | { echo "$as_me:19837: WARNING: wxWindows IPC classes require sockets" >&5 |
19838 | echo "$as_me: WARNING: wxWindows IPC classes require sockets" >&2;} | |
eb4efbdc VZ |
19839 | fi |
19840 | ||
1e487827 | 19841 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19842 | #define wxUSE_IPC 1 |
19843 | EOF | |
19844 | ||
19845 | fi | |
19846 | ||
19847 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
1e487827 | 19848 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19849 | #define wxUSE_CLIPBOARD 1 |
19850 | EOF | |
19851 | ||
19852 | fi | |
19853 | ||
19854 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19855 | if test "$wxUSE_GTK" = 1; then | |
19856 | if test "$WXGTK12" != 1; then | |
1e487827 VS |
19857 | { echo "$as_me:19857: WARNING: Drag and drop is only supported under GTK+ 1.2" >&5 |
19858 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2" >&2;} | |
10f2d63a VZ |
19859 | wxUSE_DRAG_AND_DROP=no |
19860 | fi | |
19861 | fi | |
19862 | ||
19863 | if test "$wxUSE_MOTIF" = 1; then | |
1e487827 VS |
19864 | { echo "$as_me:19864: WARNING: Drag and drop is not yet supported under Motif" >&5 |
19865 | echo "$as_me: WARNING: Drag and drop is not yet supported under Motif" >&2;} | |
10f2d63a VZ |
19866 | wxUSE_DRAG_AND_DROP=no |
19867 | fi | |
19868 | ||
2c6025bc | 19869 | if test "$wxUSE_MAC" = 1; then |
1e487827 VS |
19870 | { echo "$as_me:19870: WARNING: Drag and drop is not yet supported under Mac OS X" >&5 |
19871 | echo "$as_me: WARNING: Drag and drop is not yet supported under Mac OS X" >&2;} | |
2c6025bc GD |
19872 | wxUSE_DRAG_AND_DROP=no |
19873 | fi | |
19874 | ||
10f2d63a | 19875 | if test "$USE_WIN32" = 1; then |
1e487827 VS |
19876 | |
19877 | for ac_header in ole2.h | |
10f2d63a | 19878 | do |
1e487827 VS |
19879 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
19880 | echo "$as_me:19880: checking for $ac_header" >&5 | |
19881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19882 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
19883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19884 | else | |
19885 | cat >conftest.$ac_ext <<_ACEOF | |
19886 | #line 19886 "configure" | |
10f2d63a | 19887 | #include "confdefs.h" |
1e487827 VS |
19888 | #include <$ac_header> |
19889 | _ACEOF | |
19890 | if { (eval echo "$as_me:19890: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19891 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19892 | ac_status=$? | |
19893 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
19894 | rm -f conftest.er1 | |
19895 | cat conftest.err >&5 | |
19896 | echo "$as_me:19896: \$? = $ac_status" >&5 | |
19897 | (exit $ac_status); } >/dev/null; then | |
19898 | if test -s conftest.err; then | |
19899 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19900 | else | |
19901 | ac_cpp_err= | |
19902 | fi | |
6232543b | 19903 | else |
1e487827 VS |
19904 | ac_cpp_err=yes |
19905 | fi | |
19906 | if test -z "$ac_cpp_err"; then | |
19907 | eval "$ac_ac_Header=yes" | |
19908 | else | |
19909 | echo "$as_me: failed program was:" >&5 | |
10f2d63a | 19910 | cat conftest.$ac_ext >&5 |
1e487827 | 19911 | eval "$ac_ac_Header=no" |
10f2d63a | 19912 | fi |
1e487827 | 19913 | rm -f conftest.err conftest.$ac_ext |
10f2d63a | 19914 | fi |
1e487827 VS |
19915 | echo "$as_me:19915: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
19916 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
19917 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
19918 | cat >>confdefs.h <<EOF | |
19919 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
10f2d63a | 19920 | EOF |
1e487827 | 19921 | |
10f2d63a VZ |
19922 | fi |
19923 | done | |
19924 | ||
c521c494 RL |
19925 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19926 | if test "$GCC" = yes ; then | |
b64f0a5f RL |
19927 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
19928 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 19929 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
19930 | LIBS="$LIBS -lole32 -luuid" |
19931 | ||
19932 | if test "$wxUSE_METAFILE" = "yes"; then | |
1e487827 | 19933 | cat >>confdefs.h <<\EOF |
b64f0a5f RL |
19934 | #define wxUSE_METAFILE 1 |
19935 | EOF | |
19936 | ||
1e487827 | 19937 | cat >>confdefs.h <<\EOF |
b64f0a5f RL |
19938 | #define wxUSE_ENH_METAFILE 1 |
19939 | EOF | |
19940 | ||
19941 | fi | |
c521c494 RL |
19942 | fi |
19943 | else | |
1e487827 VS |
19944 | { echo "$as_me:19944: WARNING: Drag and drop disabled because OLE headers not found" >&5 |
19945 | echo "$as_me: WARNING: Drag and drop disabled because OLE headers not found" >&2;} | |
10f2d63a VZ |
19946 | wxUSE_DRAG_AND_DROP=no |
19947 | fi | |
19948 | fi | |
19949 | ||
19950 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
1e487827 | 19951 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19952 | #define wxUSE_DRAG_AND_DROP 1 |
19953 | EOF | |
19954 | ||
19955 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19956 | fi | |
19957 | ||
19958 | fi | |
19959 | ||
19960 | if test "$wxUSE_SPLINES" = "yes" ; then | |
1e487827 | 19961 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19962 | #define wxUSE_SPLINES 1 |
19963 | EOF | |
19964 | ||
19965 | fi | |
19966 | ||
10f2d63a | 19967 | if test "$wxUSE_ACCEL" = "yes"; then |
1e487827 | 19968 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19969 | #define wxUSE_ACCEL 1 |
19970 | EOF | |
19971 | ||
19972 | fi | |
19973 | ||
19974 | if test "$wxUSE_CARET" = "yes"; then | |
1e487827 | 19975 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19976 | #define wxUSE_CARET 1 |
19977 | EOF | |
19978 | ||
19979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
19980 | fi | |
19981 | ||
19982 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
1e487827 | 19983 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19984 | #define wxUSE_COMBOBOX 1 |
19985 | EOF | |
19986 | ||
19987 | fi | |
19988 | ||
19989 | if test "$wxUSE_CHOICE" = "yes"; then | |
1e487827 | 19990 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19991 | #define wxUSE_CHOICE 1 |
19992 | EOF | |
19993 | ||
19994 | fi | |
19995 | ||
19996 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
1e487827 | 19997 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
19998 | #define wxUSE_BMPBUTTON 1 |
19999 | EOF | |
20000 | ||
20001 | fi | |
20002 | ||
20003 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
1e487827 | 20004 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20005 | #define wxUSE_CHECKBOX 1 |
20006 | EOF | |
20007 | ||
20008 | fi | |
20009 | ||
20010 | if test "$wxUSE_CHECKLST" = "yes"; then | |
1e487827 | 20011 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20012 | #define wxUSE_CHECKLISTBOX 1 |
20013 | EOF | |
20014 | ||
20015 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
20016 | fi | |
20017 | ||
20018 | if test "$wxUSE_GAUGE" = "yes"; then | |
1e487827 | 20019 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20020 | #define wxUSE_GAUGE 1 |
20021 | EOF | |
20022 | ||
20023 | fi | |
20024 | ||
d6a55c4b VZ |
20025 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20026 | wxUSE_GRID="yes" | |
1e487827 | 20027 | cat >>confdefs.h <<\EOF |
d6a55c4b | 20028 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
20029 | EOF |
20030 | ||
d6a55c4b | 20031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20032 | fi |
20033 | ||
d6a55c4b | 20034 | if test "$wxUSE_GRID" = "yes"; then |
1e487827 | 20035 | cat >>confdefs.h <<\EOF |
d6a55c4b | 20036 | #define wxUSE_GRID 1 |
10f2d63a VZ |
20037 | EOF |
20038 | ||
d6a55c4b | 20039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20040 | fi |
20041 | ||
20042 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
1e487827 | 20043 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20044 | #define wxUSE_IMAGLIST 1 |
20045 | EOF | |
20046 | ||
20047 | fi | |
20048 | ||
20049 | if test "$wxUSE_LISTBOX" = "yes"; then | |
1e487827 | 20050 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20051 | #define wxUSE_LISTBOX 1 |
20052 | EOF | |
20053 | ||
20054 | fi | |
20055 | ||
20056 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20057 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
1e487827 | 20058 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20059 | #define wxUSE_LISTCTRL 1 |
20060 | EOF | |
20061 | ||
20062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
20063 | else | |
1e487827 VS |
20064 | { echo "$as_me:20064: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
20065 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
20066 | fi |
20067 | fi | |
20068 | ||
20069 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
1e487827 | 20070 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20071 | #define wxUSE_NOTEBOOK 1 |
20072 | EOF | |
20073 | ||
20074 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
20075 | fi | |
20076 | ||
20077 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
1e487827 | 20078 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20079 | #define wxUSE_RADIOBOX 1 |
20080 | EOF | |
20081 | ||
20082 | fi | |
20083 | ||
20084 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
1e487827 | 20085 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20086 | #define wxUSE_RADIOBTN 1 |
20087 | EOF | |
20088 | ||
20089 | fi | |
20090 | ||
20091 | if test "$wxUSE_SASH" = "yes"; then | |
1e487827 | 20092 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20093 | #define wxUSE_SASH 1 |
20094 | EOF | |
20095 | ||
20096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20097 | fi | |
20098 | ||
20099 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
1e487827 | 20100 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20101 | #define wxUSE_SCROLLBAR 1 |
20102 | EOF | |
20103 | ||
741a9306 | 20104 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20105 | fi |
20106 | ||
20107 | if test "$wxUSE_SLIDER" = "yes"; then | |
1e487827 | 20108 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20109 | #define wxUSE_SLIDER 1 |
20110 | EOF | |
20111 | ||
20112 | fi | |
20113 | ||
20114 | if test "$wxUSE_SPINBTN" = "yes"; then | |
1e487827 | 20115 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20116 | #define wxUSE_SPINBTN 1 |
20117 | EOF | |
20118 | ||
20119 | fi | |
20120 | ||
56cfaa52 | 20121 | if test "$wxUSE_SPINCTRL" = "yes"; then |
1e487827 | 20122 | cat >>confdefs.h <<\EOF |
56cfaa52 RR |
20123 | #define wxUSE_SPINCTRL 1 |
20124 | EOF | |
20125 | ||
20126 | fi | |
20127 | ||
10f2d63a | 20128 | if test "$wxUSE_SPLITTER" = "yes"; then |
1e487827 | 20129 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20130 | #define wxUSE_SPLITTER 1 |
20131 | EOF | |
20132 | ||
20133 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20134 | fi | |
20135 | ||
20136 | if test "$wxUSE_STATBMP" = "yes"; then | |
1e487827 | 20137 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20138 | #define wxUSE_STATBMP 1 |
20139 | EOF | |
20140 | ||
20141 | fi | |
20142 | ||
20143 | if test "$wxUSE_STATBOX" = "yes"; then | |
1e487827 | 20144 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20145 | #define wxUSE_STATBOX 1 |
20146 | EOF | |
20147 | ||
20148 | fi | |
20149 | ||
20150 | if test "$wxUSE_STATLINE" = "yes"; then | |
20151 | if test "$wxUSE_WINE" = 1 ; then | |
1e487827 VS |
20152 | { echo "$as_me:20152: WARNING: wxStaticLine is not supported under WINE" >&5 |
20153 | echo "$as_me: WARNING: wxStaticLine is not supported under WINE" >&2;} | |
10f2d63a | 20154 | else |
1e487827 | 20155 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20156 | #define wxUSE_STATLINE 1 |
20157 | EOF | |
20158 | ||
20159 | fi | |
20160 | fi | |
20161 | ||
20162 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
1e487827 | 20163 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20164 | #define wxUSE_STATUSBAR 1 |
20165 | EOF | |
20166 | ||
2286341c | 20167 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20168 | fi |
20169 | ||
20170 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
1e487827 | 20171 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20172 | #define wxUSE_TAB_DIALOG 1 |
20173 | EOF | |
20174 | ||
20175 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20176 | fi | |
20177 | ||
1db8dc4a | 20178 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
1e487827 | 20179 | cat >>confdefs.h <<\EOF |
1db8dc4a VZ |
20180 | #define wxUSE_TOGGLEBTN 1 |
20181 | EOF | |
20182 | ||
20183 | fi | |
20184 | ||
360d6699 | 20185 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
1e487827 | 20186 | cat >>confdefs.h <<\EOF |
360d6699 VZ |
20187 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20188 | EOF | |
20189 | ||
20190 | wxUSE_TOOLBAR="yes" | |
20191 | fi | |
20192 | ||
10f2d63a | 20193 | if test "$wxUSE_TOOLBAR" = "yes"; then |
1e487827 | 20194 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20195 | #define wxUSE_TOOLBAR 1 |
20196 | EOF | |
20197 | ||
360d6699 VZ |
20198 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20199 | wxUSE_TOOLBAR_NATIVE="yes" | |
20200 | fi | |
20201 | ||
10f2d63a VZ |
20202 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
20203 | fi | |
20204 | ||
360d6699 | 20205 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
1e487827 | 20206 | cat >>confdefs.h <<\EOF |
360d6699 VZ |
20207 | #define wxUSE_TOOLBAR_NATIVE 1 |
20208 | EOF | |
20209 | ||
20210 | fi | |
20211 | ||
10f2d63a VZ |
20212 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20213 | if test "$wxUSE_MOTIF" = 1; then | |
1e487827 VS |
20214 | { echo "$as_me:20214: WARNING: wxTooltip not supported yet under Motif" >&5 |
20215 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif" >&2;} | |
10f2d63a VZ |
20216 | else |
20217 | if test "$wxUSE_WINE" = 1; then | |
1e487827 VS |
20218 | { echo "$as_me:20218: WARNING: wxTooltip not supported under WINE" >&5 |
20219 | echo "$as_me: WARNING: wxTooltip not supported under WINE" >&2;} | |
10f2d63a | 20220 | else |
1e487827 | 20221 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20222 | #define wxUSE_TOOLTIPS 1 |
20223 | EOF | |
20224 | ||
20225 | fi | |
20226 | fi | |
20227 | fi | |
20228 | ||
20229 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20230 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
1e487827 | 20231 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20232 | #define wxUSE_TREECTRL 1 |
20233 | EOF | |
20234 | ||
20235 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
20236 | else | |
1e487827 VS |
20237 | { echo "$as_me:20237: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
20238 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
20239 | fi |
20240 | fi | |
20241 | ||
10f2d63a VZ |
20242 | if test "$wxUSE_DIRDLG" = "yes"; then |
20243 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
1e487827 VS |
20244 | { echo "$as_me:20244: WARNING: wxDirDialog requires constraints so it won't be compiled without them" >&5 |
20245 | echo "$as_me: WARNING: wxDirDialog requires constraints so it won't be compiled without them" >&2;} | |
10f2d63a VZ |
20246 | else |
20247 | if test "$wxUSE_TREECTRL" != "yes"; then | |
1e487827 VS |
20248 | { echo "$as_me:20248: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
20249 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
10f2d63a | 20250 | else |
1e487827 | 20251 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20252 | #define wxUSE_DIRDLG 1 |
20253 | EOF | |
20254 | ||
20255 | fi | |
20256 | fi | |
20257 | fi | |
20258 | ||
20259 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
1e487827 | 20260 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20261 | #define wxUSE_TEXTDLG 1 |
20262 | EOF | |
20263 | ||
20264 | fi | |
20265 | ||
20266 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
20267 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
1e487827 VS |
20268 | { echo "$as_me:20268: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
20269 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
10f2d63a | 20270 | else |
1e487827 | 20271 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20272 | #define wxUSE_STARTUP_TIPS 1 |
20273 | EOF | |
20274 | ||
20275 | fi | |
20276 | fi | |
20277 | ||
20278 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20279 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
1e487827 VS |
20280 | { echo "$as_me:20280: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
20281 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
10f2d63a | 20282 | else |
1e487827 | 20283 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20284 | #define wxUSE_PROGRESSDLG 1 |
20285 | EOF | |
20286 | ||
20287 | fi | |
20288 | fi | |
20289 | ||
20290 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
1e487827 | 20291 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20292 | #define wxUSE_MINIFRAME 1 |
20293 | EOF | |
20294 | ||
20295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20296 | fi | |
20297 | ||
20298 | if test "$wxUSE_HTML" = "yes"; then | |
1e487827 | 20299 | cat >>confdefs.h <<\EOF |
10f2d63a VZ |
20300 | #define wxUSE_HTML 1 |
20301 | EOF | |
20302 | ||
20303 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
20304 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
20305 | fi | |
20306 | ||
20307 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
1e487827 VS |
20308 | cat >>confdefs.h <<\EOF |
20309 | #define wxUSE_VALIDATORS 1 | |
20310 | EOF | |
703e0a69 | 20311 | |
1e487827 VS |
20312 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20313 | fi | |
32832908 | 20314 | |
1e487827 VS |
20315 | if test "$wxUSE_IMAGE" = "yes" ; then |
20316 | cat >>confdefs.h <<\EOF | |
20317 | #define wxUSE_IMAGE 1 | |
20318 | EOF | |
32832908 | 20319 | |
1e487827 | 20320 | fi |
32832908 | 20321 | |
1e487827 VS |
20322 | if test "$wxUSE_GIF" = "yes" ; then |
20323 | cat >>confdefs.h <<\EOF | |
20324 | #define wxUSE_GIF 1 | |
20325 | EOF | |
32832908 | 20326 | |
1e487827 | 20327 | fi |
32832908 | 20328 | |
1e487827 VS |
20329 | if test "$wxUSE_PCX" = "yes" ; then |
20330 | cat >>confdefs.h <<\EOF | |
20331 | #define wxUSE_PCX 1 | |
20332 | EOF | |
32832908 | 20333 | |
1e487827 | 20334 | fi |
32832908 | 20335 | |
1e487827 VS |
20336 | if test "$wxUSE_PNM" = "yes" ; then |
20337 | cat >>confdefs.h <<\EOF | |
20338 | #define wxUSE_PNM 1 | |
20339 | EOF | |
2224580a | 20340 | |
1e487827 | 20341 | fi |
dad6c0ea | 20342 | |
1e487827 VS |
20343 | if test "$wxUSE_XPM" = "yes" ; then |
20344 | cat >>confdefs.h <<\EOF | |
20345 | #define wxUSE_XPM 1 | |
20346 | EOF | |
f6bcfd97 | 20347 | |
1e487827 | 20348 | fi |
f6bcfd97 | 20349 | |
1e487827 VS |
20350 | if test "$cross_compiling" = "yes"; then |
20351 | OSINFO="\"$host\"" | |
20352 | else | |
20353 | OSINFO=`uname -s -r -m` | |
20354 | OSINFO="\"$OSINFO\"" | |
20355 | fi | |
f6bcfd97 | 20356 | |
1e487827 VS |
20357 | cat >>confdefs.h <<EOF |
20358 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20359 | EOF | |
2f51a9ec | 20360 | |
1e487827 VS |
20361 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
20362 | OPENGL_LIBS="$OPENGL_LINK" | |
2f51a9ec | 20363 | |
1e487827 VS |
20364 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" |
20365 | if test "$USE_MAC" = 1 ; then | |
20366 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
20367 | fi | |
20368 | if test "$wxUSE_GUI" = "yes"; then | |
20369 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
20370 | fi | |
2f51a9ec | 20371 | |
1e487827 | 20372 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" |
2f51a9ec | 20373 | |
1e487827 | 20374 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" |
2f51a9ec | 20375 | |
1e487827 VS |
20376 | if test "$wxUSE_GTK" = 1; then |
20377 | WXCONFIG_INCLUDE="" | |
20378 | else | |
20379 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20380 | fi | |
2f51a9ec | 20381 | |
1e487827 VS |
20382 | if test "$GXX" = yes ; then |
20383 | CXXWARNINGS="-Wall" | |
20384 | fi | |
20385 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
f6bcfd97 | 20386 | |
1e487827 VS |
20387 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
20388 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
dad6c0ea | 20389 | |
1e487827 | 20390 | LDFLAGS="$LDFLAGS $PROFILE" |
caa2c79b | 20391 | |
1e487827 | 20392 | if test "$wxUSE_GUI" = "yes"; then |
3711412e | 20393 | |
1e487827 VS |
20394 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \ |
20395 | drawing dynamic event font fractal image menu \ | |
20396 | minimal richedit" | |
0f3f1cbc | 20397 | |
1e487827 VS |
20398 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20399 | else | |
20400 | SAMPLES_SUBDIRS="" | |
20401 | fi | |
10f2d63a | 20402 | |
1e487827 | 20403 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
10f2d63a | 20404 | |
1e487827 VS |
20405 | echo "$as_me:20405: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
20406 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
20407 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
20408 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
20409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 20410 | else |
1e487827 | 20411 | cat >conftest.make <<\EOF |
10f2d63a VZ |
20412 | all: |
20413 | @echo 'ac_maketemp="${MAKE}"' | |
20414 | EOF | |
20415 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1e487827 | 20416 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
10f2d63a VZ |
20417 | if test -n "$ac_maketemp"; then |
20418 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20419 | else | |
20420 | eval ac_cv_prog_make_${ac_make}_set=no | |
20421 | fi | |
1e487827 | 20422 | rm -f conftest.make |
10f2d63a VZ |
20423 | fi |
20424 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1e487827 VS |
20425 | echo "$as_me:20425: result: yes" >&5 |
20426 | echo "${ECHO_T}yes" >&6 | |
10f2d63a VZ |
20427 | SET_MAKE= |
20428 | else | |
1e487827 VS |
20429 | echo "$as_me:20429: result: no" >&5 |
20430 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
20431 | SET_MAKE="MAKE=${MAKE-make}" |
20432 | fi | |
20433 | ||
00cf1208 RR |
20434 | if test -d include; then |
20435 | if test -d include/wx; then | |
20436 | if test -d include/wx/${TOOLKIT_DIR}; then | |
20437 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
665bbe97 | 20438 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h |
00cf1208 RR |
20439 | fi |
20440 | fi | |
20441 | fi | |
20442 | fi | |
665bbe97 | 20443 | |
1e487827 | 20444 | ac_config_headers="$ac_config_headers setup.h:setup.h.in" |
10f2d63a | 20445 | |
2224580a | 20446 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 20447 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
20448 | wx_cv_path_ifs=$PATH_IFS |
20449 | wx_cv_program_ext=$PROGRAM_EXT | |
20450 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 20451 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
20452 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
20453 | wx_cv_target_library wx_cv_target_libtype | |
1e487827 VS |
20454 | |
20455 | subdirs="$subdirs demos samples utils contrib" | |
2224580a VZ |
20456 | |
20457 | fi | |
10f2d63a | 20458 | |
1e487827 VS |
20459 | ac_config_files="$ac_config_files wx-config src/make.env src/makeprog.env src/makelib.env Makefile" |
20460 | ac_config_commands="$ac_config_commands default" | |
20461 | cat >confcache <<\_ACEOF | |
10f2d63a VZ |
20462 | # This file is a shell script that caches the results of configure |
20463 | # tests run on this system so they can be shared between configure | |
1e487827 VS |
20464 | # scripts and configure runs, see configure's option --config-cache. |
20465 | # It is not useful on other systems. If it contains results you don't | |
20466 | # want to keep, you may remove or edit it. | |
10f2d63a | 20467 | # |
1e487827 VS |
20468 | # config.status only pays attention to the cache file if you give it |
20469 | # the --recheck option to rerun configure. | |
10f2d63a | 20470 | # |
1e487827 VS |
20471 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
20472 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20473 | # following values. | |
20474 | ||
20475 | _ACEOF | |
20476 | ||
10f2d63a VZ |
20477 | # The following way of writing the cache mishandles newlines in values, |
20478 | # but we know of no workaround that is simple, portable, and efficient. | |
20479 | # So, don't put newlines in cache variables' values. | |
20480 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20481 | # and sets the high bit in the cache file unless we assign to the vars. | |
1e487827 VS |
20482 | { |
20483 | (set) 2>&1 | | |
20484 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20485 | *ac_space=\ *) | |
20486 | # `set' does not quote correctly, so add quotes (double-quote | |
20487 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20488 | sed -n \ | |
20489 | "s/'/'\\\\''/g; | |
20490 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20491 | ;; | |
20492 | *) | |
20493 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20494 | sed -n \ | |
20495 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
20496 | ;; | |
20497 | esac; | |
20498 | } | | |
20499 | sed ' | |
20500 | t clear | |
20501 | : clear | |
20502 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20503 | t end | |
20504 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20505 | : end' >>confcache | |
20506 | if cmp -s $cache_file confcache; then :; else | |
10f2d63a | 20507 | if test -w $cache_file; then |
1e487827 VS |
20508 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
20509 | cat confcache >$cache_file | |
10f2d63a VZ |
20510 | else |
20511 | echo "not updating unwritable cache $cache_file" | |
20512 | fi | |
20513 | fi | |
20514 | rm -f confcache | |
20515 | ||
10f2d63a VZ |
20516 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20517 | # Let make expand exec_prefix. | |
20518 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20519 | ||
1e487827 VS |
20520 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
20521 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20522 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20523 | # (actually we leave an empty line to preserve line numbers). | |
10f2d63a | 20524 | if test "x$srcdir" = x.; then |
1e487827 VS |
20525 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
20526 | s/:*\$(srcdir):*/:/; | |
20527 | s/:*\${srcdir}:*/:/; | |
20528 | s/:*@srcdir@:*/:/; | |
20529 | s/^\([^=]*=[ ]*\):*/\1/; | |
20530 | s/:*$//; | |
20531 | s/^[^=]*=[ ]*$//; | |
20532 | }' | |
10f2d63a VZ |
20533 | fi |
20534 | ||
10f2d63a VZ |
20535 | DEFS=-DHAVE_CONFIG_H |
20536 | ||
10f2d63a | 20537 | : ${CONFIG_STATUS=./config.status} |
1e487827 VS |
20538 | ac_clean_files_save=$ac_clean_files |
20539 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
93a20a27 | 20540 | { echo "$as_me:20540: creating $CONFIG_STATUS" >&5 |
1e487827 VS |
20541 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
20542 | cat >$CONFIG_STATUS <<_ACEOF | |
20543 | #! $SHELL | |
10f2d63a VZ |
20544 | # Generated automatically by configure. |
20545 | # Run this file to recreate the current configuration. | |
10f2d63a | 20546 | # Compiler output produced by configure, useful for debugging |
1e487827 | 20547 | # configure, is in config.log if it exists. |
6232543b | 20548 | |
1e487827 VS |
20549 | debug=false |
20550 | SHELL=\${CONFIG_SHELL-$SHELL} | |
20551 | ac_cs_invocation="\$0 \$@" | |
20552 | ||
20553 | _ACEOF | |
20554 | ||
20555 | cat >>$CONFIG_STATUS <<\_ACEOF | |
20556 | # Be Bourne compatible | |
20557 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
20558 | emulate sh | |
20559 | NULLCMD=: | |
20560 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20561 | set -o posix | |
20562 | fi | |
20563 | ||
20564 | # Name of the executable. | |
20565 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
20566 | ||
20567 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
20568 | as_expr=expr | |
20569 | else | |
20570 | as_expr=false | |
20571 | fi | |
20572 | ||
20573 | rm -f conf$$ conf$$.exe conf$$.file | |
20574 | echo >conf$$.file | |
20575 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20576 | # We could just check for DJGPP; but this test a) works b) is more generic | |
20577 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
20578 | if test -f conf$$.exe; then | |
20579 | # Don't use ln at all; we don't have any links | |
20580 | as_ln_s='cp -p' | |
20581 | else | |
20582 | as_ln_s='ln -s' | |
20583 | fi | |
20584 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
20585 | as_ln_s=ln | |
20586 | else | |
20587 | as_ln_s='cp -p' | |
20588 | fi | |
20589 | rm -f conf$$ conf$$.exe conf$$.file | |
20590 | ||
20591 | as_executable_p="test -f" | |
20592 | ||
20593 | # Support unset when possible. | |
20594 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
20595 | as_unset=unset | |
20596 | else | |
20597 | as_unset=false | |
20598 | fi | |
20599 | ||
20600 | # NLS nuisances. | |
20601 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
20602 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
20603 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
20604 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
20605 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
20606 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
20607 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
20608 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
20609 | ||
20610 | # IFS | |
20611 | # We need space, tab and new line, in precisely that order. | |
20612 | as_nl=' | |
20613 | ' | |
20614 | IFS=" $as_nl" | |
20615 | ||
20616 | # CDPATH. | |
20617 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
20618 | ||
20619 | exec 6>&1 | |
20620 | ||
20621 | _ACEOF | |
20622 | ||
20623 | # Files that config.status was made for. | |
20624 | if test -n "$ac_config_files"; then | |
20625 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
20626 | fi | |
20627 | ||
20628 | if test -n "$ac_config_headers"; then | |
20629 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
20630 | fi | |
20631 | ||
20632 | if test -n "$ac_config_links"; then | |
20633 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
20634 | fi | |
20635 | ||
20636 | if test -n "$ac_config_commands"; then | |
20637 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
20638 | fi | |
20639 | ||
20640 | cat >>$CONFIG_STATUS <<\EOF | |
20641 | ||
20642 | ac_cs_usage="\ | |
20643 | \`$as_me' instantiates files from templates according to the | |
20644 | current configuration. | |
20645 | ||
20646 | Usage: $0 [OPTIONS] [FILE]... | |
20647 | ||
20648 | -h, --help print this help, then exit | |
20649 | -V, --version print version number, then exit | |
20650 | -d, --debug don't remove temporary files | |
20651 | --recheck update $as_me by reconfiguring in the same conditions | |
20652 | --file=FILE[:TEMPLATE] | |
20653 | instantiate the configuration file FILE | |
20654 | --header=FILE[:TEMPLATE] | |
20655 | instantiate the configuration header FILE | |
20656 | ||
20657 | Configuration files: | |
20658 | $config_files | |
20659 | ||
20660 | Configuration headers: | |
20661 | $config_headers | |
20662 | ||
20663 | Configuration commands: | |
20664 | $config_commands | |
20665 | ||
20666 | Report bugs to <bug-autoconf@gnu.org>." | |
20667 | EOF | |
20668 | ||
20669 | cat >>$CONFIG_STATUS <<EOF | |
20670 | ac_cs_version="\\ | |
20671 | config.status | |
20672 | configured by $0, generated by GNU Autoconf 2.50, | |
20673 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
20674 | ||
20675 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
20676 | Free Software Foundation, Inc. | |
20677 | This config.status script is free software; the Free Software Foundation | |
20678 | gives unlimited permission to copy, distribute and modify it." | |
20679 | srcdir=$srcdir | |
20680 | INSTALL="$INSTALL" | |
20681 | EOF | |
20682 | ||
20683 | cat >>$CONFIG_STATUS <<\EOF | |
20684 | # If no file are specified by the user, then we need to provide default | |
20685 | # value. By we need to know if files were specified by the user. | |
20686 | ac_need_defaults=: | |
20687 | while test $# != 0 | |
10f2d63a | 20688 | do |
1e487827 VS |
20689 | case $1 in |
20690 | --*=*) | |
20691 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
20692 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
20693 | shift | |
20694 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
20695 | shift | |
20696 | ;; | |
20697 | -*);; | |
20698 | *) # This is not an option, so the user has probably given explicit | |
20699 | # arguments. | |
20700 | ac_need_defaults=false;; | |
20701 | esac | |
20702 | ||
20703 | case $1 in | |
20704 | # Handling of the options. | |
20705 | EOF | |
20706 | cat >>$CONFIG_STATUS <<EOF | |
10f2d63a | 20707 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1e487827 VS |
20708 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
20709 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
20710 | EOF | |
20711 | cat >>$CONFIG_STATUS <<\EOF | |
20712 | --version | --vers* | -V ) | |
20713 | echo "$ac_cs_version"; exit 0 ;; | |
20714 | --he | --h) | |
20715 | # Conflict between --help and --header | |
93a20a27 | 20716 | { { echo "$as_me:20716: error: ambiguous option: $1 |
1e487827 VS |
20717 | Try \`$0 --help' for more information." >&5 |
20718 | echo "$as_me: error: ambiguous option: $1 | |
20719 | Try \`$0 --help' for more information." >&2;} | |
20720 | { (exit 1); exit 1; }; };; | |
20721 | --help | --hel | -h ) | |
20722 | echo "$ac_cs_usage"; exit 0 ;; | |
20723 | --debug | --d* | -d ) | |
20724 | debug=: ;; | |
20725 | --file | --fil | --fi | --f ) | |
20726 | shift | |
20727 | CONFIG_FILES="$CONFIG_FILES $1" | |
20728 | ac_need_defaults=false;; | |
20729 | --header | --heade | --head | --hea ) | |
20730 | shift | |
20731 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
20732 | ac_need_defaults=false;; | |
20733 | ||
20734 | # Handling of arguments. | |
20735 | 'wx-config' ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
20736 | 'src/make.env' ) CONFIG_FILES="$CONFIG_FILES src/make.env" ;; | |
20737 | 'src/makeprog.env' ) CONFIG_FILES="$CONFIG_FILES src/makeprog.env" ;; | |
20738 | 'src/makelib.env' ) CONFIG_FILES="$CONFIG_FILES src/makelib.env" ;; | |
20739 | 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
20740 | 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
20741 | 'setup.h' ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h:setup.h.in" ;; | |
20742 | ||
20743 | # This is an error. | |
93a20a27 | 20744 | -*) { { echo "$as_me:20744: error: unrecognized option: $1 |
1e487827 VS |
20745 | Try \`$0 --help' for more information." >&5 |
20746 | echo "$as_me: error: unrecognized option: $1 | |
20747 | Try \`$0 --help' for more information." >&2;} | |
20748 | { (exit 1); exit 1; }; } ;; | |
93a20a27 | 20749 | *) { { echo "$as_me:20749: error: invalid argument: $1" >&5 |
1e487827 VS |
20750 | echo "$as_me: error: invalid argument: $1" >&2;} |
20751 | { (exit 1); exit 1; }; };; | |
10f2d63a | 20752 | esac |
1e487827 | 20753 | shift |
10f2d63a VZ |
20754 | done |
20755 | ||
1e487827 VS |
20756 | exec 5>>config.log |
20757 | cat >&5 << _ACEOF | |
20758 | ||
20759 | ## ----------------------- ## | |
20760 | ## Running config.status. ## | |
20761 | ## ----------------------- ## | |
20762 | ||
20763 | This file was extended by $as_me 2.50, executed with | |
20764 | > $ac_cs_invocation | |
20765 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
10f2d63a | 20766 | |
1e487827 | 20767 | _ACEOF |
6232543b VS |
20768 | EOF |
20769 | ||
1e487827 VS |
20770 | cat >>$CONFIG_STATUS <<\EOF |
20771 | # If the user did not use the arguments to specify the items to instantiate, | |
20772 | # then the envvar interface is used. Set only those that are not. | |
20773 | # We use the long form for the default assignment because of an extremely | |
20774 | # bizarre bug on SunOS 4.1.3. | |
20775 | if $ac_need_defaults; then | |
20776 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20777 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
20778 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
20779 | fi | |
20780 | ||
20781 | # Create a temporary directory, and hook for its removal unless debugging. | |
20782 | $debug || | |
20783 | { | |
20784 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
20785 | trap '{ (exit $?); exit $?; }' 1 2 13 15 | |
20786 | } | |
20787 | ||
20788 | # Create a (secure) tmp directory for tmp files. | |
20789 | : ${TMPDIR=/tmp} | |
20790 | { | |
20791 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
20792 | test -n "$tmp" && test -d "$tmp" | |
20793 | } || | |
20794 | { | |
20795 | tmp=$TMPDIR/cs$$-$RANDOM | |
20796 | (umask 077 && mkdir $tmp) | |
20797 | } || | |
20798 | { | |
20799 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
20800 | { (exit 1); exit 1; } | |
20801 | } | |
6232543b | 20802 | |
6232543b VS |
20803 | EOF |
20804 | ||
1e487827 VS |
20805 | cat >>$CONFIG_STATUS <<EOF |
20806 | # | |
20807 | # INIT-COMMANDS section. | |
20808 | # | |
20809 | ||
20810 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
20811 | TOOLKIT_NAME="${TOOLKIT_NAME}" | |
20812 | LN_S="${LN_S}" | |
703e0a69 | 20813 | |
1e487827 VS |
20814 | EOF |
20815 | ||
20816 | cat >>$CONFIG_STATUS <<EOF | |
20817 | ||
20818 | # | |
20819 | # CONFIG_FILES section. | |
20820 | # | |
20821 | ||
20822 | # No need to generate the scripts if there are no CONFIG_FILES. | |
20823 | # This happens for instance when ./config.status config.h | |
20824 | if test -n "\$CONFIG_FILES"; then | |
20825 | # Protect against being on the right side of a sed subst in config.status. | |
20826 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
20827 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
20828 | s,@SHELL@,$SHELL,;t t | |
20829 | s,@exec_prefix@,$exec_prefix,;t t | |
20830 | s,@prefix@,$prefix,;t t | |
20831 | s,@program_transform_name@,$program_transform_name,;t t | |
20832 | s,@bindir@,$bindir,;t t | |
20833 | s,@sbindir@,$sbindir,;t t | |
20834 | s,@libexecdir@,$libexecdir,;t t | |
20835 | s,@datadir@,$datadir,;t t | |
20836 | s,@sysconfdir@,$sysconfdir,;t t | |
20837 | s,@sharedstatedir@,$sharedstatedir,;t t | |
20838 | s,@localstatedir@,$localstatedir,;t t | |
20839 | s,@libdir@,$libdir,;t t | |
20840 | s,@includedir@,$includedir,;t t | |
20841 | s,@oldincludedir@,$oldincludedir,;t t | |
20842 | s,@infodir@,$infodir,;t t | |
20843 | s,@mandir@,$mandir,;t t | |
20844 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
20845 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
20846 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
20847 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
20848 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
20849 | s,@ECHO_C@,$ECHO_C,;t t | |
20850 | s,@ECHO_N@,$ECHO_N,;t t | |
20851 | s,@ECHO_T@,$ECHO_T,;t t | |
20852 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
20853 | s,@DEFS@,$DEFS,;t t | |
20854 | s,@LIBS@,$LIBS,;t t | |
20855 | s,@build@,$build,;t t | |
20856 | s,@build_cpu@,$build_cpu,;t t | |
20857 | s,@build_vendor@,$build_vendor,;t t | |
20858 | s,@build_os@,$build_os,;t t | |
20859 | s,@host@,$host,;t t | |
20860 | s,@host_cpu@,$host_cpu,;t t | |
20861 | s,@host_vendor@,$host_vendor,;t t | |
20862 | s,@host_os@,$host_os,;t t | |
20863 | s,@target@,$target,;t t | |
20864 | s,@target_cpu@,$target_cpu,;t t | |
20865 | s,@target_vendor@,$target_vendor,;t t | |
20866 | s,@target_os@,$target_os,;t t | |
20867 | s,@CC@,$CC,;t t | |
20868 | s,@CFLAGS@,$CFLAGS,;t t | |
20869 | s,@LDFLAGS@,$LDFLAGS,;t t | |
20870 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
20871 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
20872 | s,@EXEEXT@,$EXEEXT,;t t | |
20873 | s,@OBJEXT@,$OBJEXT,;t t | |
20874 | s,@CPP@,$CPP,;t t | |
20875 | s,@CXX@,$CXX,;t t | |
20876 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
20877 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
20878 | s,@CXXCPP@,$CXXCPP,;t t | |
20879 | s,@RANLIB@,$RANLIB,;t t | |
20880 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
20881 | s,@AR@,$AR,;t t | |
20882 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
20883 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
20884 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
20885 | s,@STRIP@,$STRIP,;t t | |
20886 | s,@YACC@,$YACC,;t t | |
20887 | s,@LEX@,$LEX,;t t | |
20888 | s,@LEXLIB@,$LEXLIB,;t t | |
20889 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
20890 | s,@LN_S@,$LN_S,;t t | |
20891 | s,@GTK_CONFIG_2_0@,$GTK_CONFIG_2_0,;t t | |
20892 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
20893 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
20894 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
20895 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
20896 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
20897 | s,@X_LIBS@,$X_LIBS,;t t | |
20898 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
20899 | s,@REZ@,$REZ,;t t | |
20900 | s,@DEREZ@,$DEREZ,;t t | |
20901 | s,@LEX_STEM@,$LEX_STEM,;t t | |
20902 | s,@PATH_IFS@,$PATH_IFS,;t t | |
20903 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
20904 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
20905 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
20906 | s,@WX_LIBRARY_NAME@,$WX_LIBRARY_NAME,;t t | |
20907 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
20908 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
20909 | s,@WX_LIBRARY@,$WX_LIBRARY,;t t | |
20910 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
20911 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
20912 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
20913 | s,@WX_LIBRARY_LINK3@,$WX_LIBRARY_LINK3,;t t | |
20914 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
20915 | s,@WX_LIBRARY_NAME_GL@,$WX_LIBRARY_NAME_GL,;t t | |
20916 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
20917 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
20918 | s,@WX_LIBRARY_GL@,$WX_LIBRARY_GL,;t t | |
20919 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
20920 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
20921 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
20922 | s,@WX_LIBRARY_LINK3_GL@,$WX_LIBRARY_LINK3_GL,;t t | |
20923 | s,@WX_ALL@,$WX_ALL,;t t | |
20924 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
20925 | s,@SHARED_LD@,$SHARED_LD,;t t | |
20926 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
20927 | s,@DEP_INFO_FLAGS@,$DEP_INFO_FLAGS,;t t | |
20928 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t | |
20929 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
20930 | s,@BURNT_LIBRARY_NAME@,$BURNT_LIBRARY_NAME,;t t | |
20931 | s,@BURNT_LIBRARY_NAME_GL@,$BURNT_LIBRARY_NAME_GL,;t t | |
20932 | s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t | |
20933 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
20934 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
20935 | s,@USE_GUI@,$USE_GUI,;t t | |
20936 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
20937 | s,@TOOLKIT@,$TOOLKIT,;t t | |
20938 | s,@TOOLKIT_DEF@,$TOOLKIT_DEF,;t t | |
20939 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
20940 | s,@TOOLKIT_NAME@,$TOOLKIT_NAME,;t t | |
20941 | s,@TOOLKIT_INCLUDE@,$TOOLKIT_INCLUDE,;t t | |
20942 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
20943 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
20944 | s,@ALL_DEPFILES@,$ALL_DEPFILES,;t t | |
20945 | s,@GUIDIST@,$GUIDIST,;t t | |
20946 | s,@PORT_FILES@,$PORT_FILES,;t t | |
20947 | s,@DISTDIR@,$DISTDIR,;t t | |
20948 | s,@RPM_SPEC@,$RPM_SPEC,;t t | |
20949 | s,@RPM_FILES@,$RPM_FILES,;t t | |
20950 | s,@SRC_SUBDIRS@,$SRC_SUBDIRS,;t t | |
20951 | s,@INCLUDE_SUBDIRS@,$INCLUDE_SUBDIRS,;t t | |
20952 | s,@UTILS_SUBDIRS@,$UTILS_SUBDIRS,;t t | |
20953 | s,@DOCS_SUBDIRS@,$DOCS_SUBDIRS,;t t | |
20954 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
20955 | s,@USER_SUBDIRS@,$USER_SUBDIRS,;t t | |
20956 | s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t | |
20957 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
20958 | s,@EXTRADEFS@,$EXTRADEFS,;t t | |
20959 | s,@LD_LIBS@,$LD_LIBS,;t t | |
20960 | s,@RCINPUTSWITCH@,$RCINPUTSWITCH,;t t | |
20961 | s,@RCOUTPUTSWITCH@,$RCOUTPUTSWITCH,;t t | |
20962 | s,@RESPROGRAM@,$RESPROGRAM,;t t | |
20963 | s,@RESCOMP@,$RESCOMP,;t t | |
20964 | s,@RESFLAGS@,$RESFLAGS,;t t | |
20965 | s,@REZFLAGS@,$REZFLAGS,;t t | |
20966 | s,@DEREZFLAGS@,$DEREZFLAGS,;t t | |
20967 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
20968 | s,@LIBWXMACRESCOMP@,$LIBWXMACRESCOMP,;t t | |
20969 | s,@DLLTOOL@,$DLLTOOL,;t t | |
20970 | s,@AS@,$AS,;t t | |
20971 | s,@NM@,$NM,;t t | |
20972 | s,@LD@,$LD,;t t | |
20973 | s,@MAKEINFO@,$MAKEINFO,;t t | |
20974 | s,@SET_MAKE@,$SET_MAKE,;t t | |
20975 | s,@subdirs@,$subdirs,;t t | |
20976 | CEOF | |
20977 | ||
20978 | EOF | |
20979 | ||
20980 | cat >>$CONFIG_STATUS <<\EOF | |
20981 | # Split the substitutions into bite-sized pieces for seds with | |
20982 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20983 | ac_max_sed_lines=48 | |
20984 | ac_sed_frag=1 # Number of current file. | |
20985 | ac_beg=1 # First line for current file. | |
20986 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
20987 | ac_more_lines=: | |
20988 | ac_sed_cmds= | |
20989 | while $ac_more_lines; do | |
20990 | if test $ac_beg -gt 1; then | |
20991 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
20992 | else | |
20993 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
20994 | fi | |
20995 | if test ! -s $tmp/subs.frag; then | |
20996 | ac_more_lines=false | |
10f2d63a | 20997 | else |
1e487827 VS |
20998 | # The purpose of the label and of the branching condition is to |
20999 | # speed up the sed processing (if there are no `@' at all, there | |
21000 | # is no need to browse any of the substitutions). | |
21001 | # These are the two extra sed commands mentioned above. | |
21002 | (echo ':t | |
21003 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
21004 | if test -z "$ac_sed_cmds"; then | |
21005 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
21006 | else | |
21007 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
21008 | fi | |
21009 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
21010 | ac_beg=$ac_end | |
21011 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
10f2d63a | 21012 | fi |
1e487827 VS |
21013 | done |
21014 | if test -z "$ac_sed_cmds"; then | |
21015 | ac_sed_cmds=cat | |
10f2d63a | 21016 | fi |
1e487827 | 21017 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 21018 | |
10f2d63a | 21019 | EOF |
1e487827 VS |
21020 | cat >>$CONFIG_STATUS <<\EOF |
21021 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
10f2d63a | 21022 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
1e487827 VS |
21023 | case $ac_file in |
21024 | - | *:- | *:-:* ) # input from stdin | |
21025 | cat >$tmp/stdin | |
21026 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21027 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21028 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21029 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21030 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
21031 | esac |
21032 | ||
1e487827 VS |
21033 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
21034 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21035 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21036 | X"$ac_file" : 'X\(//\)$' \| \ | |
21037 | X"$ac_file" : 'X\(/\)' \| \ | |
21038 | . : '\(.\)' 2>/dev/null || | |
21039 | echo X"$ac_file" | | |
21040 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21041 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21042 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21043 | /^X\(\/\).*/{ s//\1/; q; } | |
21044 | s/.*/./; q'` | |
703e0a69 | 21045 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
1e487827 VS |
21046 | { case "$ac_dir" in |
21047 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
21048 | *) as_incr_dir=.;; | |
21049 | esac | |
21050 | as_dummy="$ac_dir" | |
21051 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
21052 | case $as_mkdir_dir in | |
21053 | # Skip DOS drivespec | |
21054 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
21055 | *) | |
21056 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
21057 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
21058 | ;; | |
21059 | esac | |
21060 | done; } | |
21061 | ||
21062 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
10f2d63a | 21063 | # A "../" for each directory in $ac_dir_suffix. |
1e487827 | 21064 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
10f2d63a VZ |
21065 | else |
21066 | ac_dir_suffix= ac_dots= | |
21067 | fi | |
21068 | ||
1e487827 VS |
21069 | case $srcdir in |
21070 | .) ac_srcdir=. | |
21071 | if test -z "$ac_dots"; then | |
21072 | ac_top_srcdir=. | |
21073 | else | |
21074 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
21075 | fi ;; | |
21076 | [\\/]* | ?:[\\/]* ) | |
21077 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21078 | ac_top_srcdir=$srcdir ;; | |
10f2d63a | 21079 | *) # Relative path. |
1e487827 VS |
21080 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
21081 | ac_top_srcdir=$ac_dots$srcdir ;; | |
10f2d63a VZ |
21082 | esac |
21083 | ||
1e487827 VS |
21084 | case $INSTALL in |
21085 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21086 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
10f2d63a VZ |
21087 | esac |
21088 | ||
1e487827 | 21089 | if test x"$ac_file" != x-; then |
93a20a27 | 21090 | { echo "$as_me:21090: creating $ac_file" >&5 |
1e487827 VS |
21091 | echo "$as_me: creating $ac_file" >&6;} |
21092 | rm -f "$ac_file" | |
21093 | fi | |
21094 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21095 | # use $as_me), people would be surprised to read: | |
21096 | # /* config.h. Generated automatically by config.status. */ | |
21097 | configure_input="Generated automatically from `echo $ac_file_in | | |
21098 | sed 's,.*/,,'` by configure." | |
21099 | ||
21100 | # First look for the input files in the build tree, otherwise in the | |
21101 | # src tree. | |
21102 | ac_file_inputs=`IFS=: | |
21103 | for f in $ac_file_in; do | |
21104 | case $f in | |
21105 | -) echo $tmp/stdin ;; | |
21106 | [\\/$]*) | |
21107 | # Absolute (can't be DOS-style, as IFS=:) | |
93a20a27 | 21108 | test -f "$f" || { { echo "$as_me:21108: error: cannot find input file: $f" >&5 |
1e487827 VS |
21109 | echo "$as_me: error: cannot find input file: $f" >&2;} |
21110 | { (exit 1); exit 1; }; } | |
21111 | echo $f;; | |
21112 | *) # Relative | |
21113 | if test -f "$f"; then | |
21114 | # Build tree | |
21115 | echo $f | |
21116 | elif test -f "$srcdir/$f"; then | |
21117 | # Source tree | |
21118 | echo $srcdir/$f | |
21119 | else | |
21120 | # /dev/null tree | |
93a20a27 | 21121 | { { echo "$as_me:21121: error: cannot find input file: $f" >&5 |
1e487827 VS |
21122 | echo "$as_me: error: cannot find input file: $f" >&2;} |
21123 | { (exit 1); exit 1; }; } | |
21124 | fi;; | |
21125 | esac | |
21126 | done` || { (exit 1); exit 1; } | |
21127 | EOF | |
21128 | cat >>$CONFIG_STATUS <<EOF | |
21129 | sed "$ac_vpsub | |
21130 | $extrasub | |
21131 | EOF | |
21132 | cat >>$CONFIG_STATUS <<\EOF | |
21133 | :t | |
21134 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21135 | s,@configure_input@,$configure_input,;t t | |
21136 | s,@srcdir@,$ac_srcdir,;t t | |
21137 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
21138 | s,@INSTALL@,$ac_INSTALL,;t t | |
21139 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
21140 | rm -f $tmp/stdin | |
21141 | if test x"$ac_file" != x-; then | |
21142 | mv $tmp/out $ac_file | |
21143 | else | |
21144 | cat $tmp/out | |
21145 | rm -f $tmp/out | |
21146 | fi | |
21147 | ||
21148 | done | |
21149 | EOF | |
21150 | cat >>$CONFIG_STATUS <<\EOF | |
10f2d63a | 21151 | |
1e487827 VS |
21152 | # |
21153 | # CONFIG_HEADER section. | |
21154 | # | |
10f2d63a VZ |
21155 | |
21156 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21157 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21158 | # | |
21159 | # ac_d sets the value in "#define NAME VALUE" lines. | |
1e487827 VS |
21160 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21161 | ac_dB='[ ].*$,\1#\2' | |
21162 | ac_dC=' ' | |
21163 | ac_dD=',;t' | |
21164 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21165 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21166 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 21167 | ac_uC=' ' |
1e487827 | 21168 | ac_uD=',;t' |
10f2d63a | 21169 | |
1e487827 | 21170 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
10f2d63a | 21171 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
1e487827 VS |
21172 | case $ac_file in |
21173 | - | *:- | *:-:* ) # input from stdin | |
21174 | cat >$tmp/stdin | |
21175 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21176 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21177 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21178 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21179 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
21180 | esac |
21181 | ||
93a20a27 | 21182 | test x"$ac_file" != x- && { echo "$as_me:21182: creating $ac_file" >&5 |
1e487827 VS |
21183 | echo "$as_me: creating $ac_file" >&6;} |
21184 | ||
21185 | # First look for the input files in the build tree, otherwise in the | |
21186 | # src tree. | |
21187 | ac_file_inputs=`IFS=: | |
21188 | for f in $ac_file_in; do | |
21189 | case $f in | |
21190 | -) echo $tmp/stdin ;; | |
21191 | [\\/$]*) | |
21192 | # Absolute (can't be DOS-style, as IFS=:) | |
93a20a27 | 21193 | test -f "$f" || { { echo "$as_me:21193: error: cannot find input file: $f" >&5 |
1e487827 VS |
21194 | echo "$as_me: error: cannot find input file: $f" >&2;} |
21195 | { (exit 1); exit 1; }; } | |
21196 | echo $f;; | |
21197 | *) # Relative | |
21198 | if test -f "$f"; then | |
21199 | # Build tree | |
21200 | echo $f | |
21201 | elif test -f "$srcdir/$f"; then | |
21202 | # Source tree | |
21203 | echo $srcdir/$f | |
21204 | else | |
21205 | # /dev/null tree | |
93a20a27 | 21206 | { { echo "$as_me:21206: error: cannot find input file: $f" >&5 |
1e487827 VS |
21207 | echo "$as_me: error: cannot find input file: $f" >&2;} |
21208 | { (exit 1); exit 1; }; } | |
21209 | fi;; | |
21210 | esac | |
21211 | done` || { (exit 1); exit 1; } | |
21212 | # Remove the trailing spaces. | |
21213 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
21214 | ||
21215 | EOF | |
21216 | ||
21217 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
21218 | # `conftest.undefs', that substitutes the proper values into | |
21219 | # config.h.in to produce config.h. The first handles `#define' | |
21220 | # templates, and the second `#undef' templates. | |
21221 | # And first: Protect against being on the right side of a sed subst in | |
21222 | # config.status. Protect against being in an unquoted here document | |
21223 | # in config.status. | |
21224 | rm -f conftest.defines conftest.undefs | |
21225 | # Using a here document instead of a string reduces the quoting nightmare. | |
21226 | # Putting comments in sed scripts is not portable. | |
21227 | # | |
21228 | # `end' is used to avoid that the second main sed command (meant for | |
21229 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
21230 | # See the Autoconf documentation for `clear'. | |
21231 | cat >confdef2sed.sed <<\EOF | |
21232 | s/[\\&,]/\\&/g | |
21233 | s,[\\$`],\\&,g | |
21234 | t clear | |
21235 | : clear | |
21236 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
21237 | t end | |
21238 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
21239 | : end | |
21240 | EOF | |
21241 | # If some macros were called several times there might be several times | |
21242 | # the same #defines, which is useless. Nevertheless, we may not want to | |
21243 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
21244 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
21245 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
21246 | rm -f confdef2sed.sed | |
10f2d63a VZ |
21247 | |
21248 | # This sed command replaces #undef with comments. This is necessary, for | |
21249 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21250 | # on some systems where configure will not decide to define it. | |
1e487827 VS |
21251 | cat >>conftest.undefs <<\EOF |
21252 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
10f2d63a VZ |
21253 | EOF |
21254 | ||
1e487827 VS |
21255 | # Break up conftest.defines because some shells have a limit on the size |
21256 | # of here documents, and old seds have small limits too (100 cmds). | |
21257 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
21258 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
21259 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
21260 | echo ' :' >>$CONFIG_STATUS | |
21261 | rm -f conftest.tail | |
21262 | while grep . conftest.defines >/dev/null | |
21263 | do | |
21264 | # Write a limited-size here document to $tmp/defines.sed. | |
21265 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
21266 | # Speed up: don't consider the non `#define' lines. | |
21267 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
21268 | # Work around the forget-to-reset-the-flag bug. | |
21269 | echo 't clr' >>$CONFIG_STATUS | |
21270 | echo ': clr' >>$CONFIG_STATUS | |
21271 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
21272 | echo 'CEOF | |
21273 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
21274 | rm -f $tmp/in | |
21275 | mv $tmp/out $tmp/in | |
21276 | ' >>$CONFIG_STATUS | |
21277 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
21278 | rm -f conftest.defines | |
21279 | mv conftest.tail conftest.defines | |
21280 | done | |
21281 | rm -f conftest.defines | |
21282 | echo ' fi # egrep' >>$CONFIG_STATUS | |
21283 | echo >>$CONFIG_STATUS | |
10f2d63a | 21284 | |
1e487827 VS |
21285 | # Break up conftest.undefs because some shells have a limit on the size |
21286 | # of here documents, and old seds have small limits too (100 cmds). | |
21287 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 21288 | rm -f conftest.tail |
1e487827 | 21289 | while grep . conftest.undefs >/dev/null |
10f2d63a | 21290 | do |
1e487827 VS |
21291 | # Write a limited-size here document to $tmp/undefs.sed. |
21292 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
21293 | # Speed up: don't consider the non `#undef' | |
21294 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
21295 | # Work around the forget-to-reset-the-flag bug. | |
21296 | echo 't clr' >>$CONFIG_STATUS | |
21297 | echo ': clr' >>$CONFIG_STATUS | |
21298 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 21299 | echo 'CEOF |
1e487827 VS |
21300 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
21301 | rm -f $tmp/in | |
21302 | mv $tmp/out $tmp/in | |
21303 | ' >>$CONFIG_STATUS | |
21304 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
21305 | rm -f conftest.undefs | |
21306 | mv conftest.tail conftest.undefs | |
10f2d63a | 21307 | done |
1e487827 VS |
21308 | rm -f conftest.undefs |
21309 | ||
21310 | cat >>$CONFIG_STATUS <<\EOF | |
21311 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21312 | # use $as_me), people would be surprised to read: | |
21313 | # /* config.h. Generated automatically by config.status. */ | |
21314 | if test x"$ac_file" = x-; then | |
21315 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
10f2d63a | 21316 | else |
1e487827 VS |
21317 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
21318 | fi | |
21319 | cat $tmp/in >>$tmp/config.h | |
21320 | rm -f $tmp/in | |
21321 | if test x"$ac_file" != x-; then | |
21322 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
93a20a27 | 21323 | { echo "$as_me:21323: $ac_file is unchanged" >&5 |
1e487827 VS |
21324 | echo "$as_me: $ac_file is unchanged" >&6;} |
21325 | else | |
21326 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21327 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21328 | X"$ac_file" : 'X\(//\)$' \| \ | |
21329 | X"$ac_file" : 'X\(/\)' \| \ | |
21330 | . : '\(.\)' 2>/dev/null || | |
21331 | echo X"$ac_file" | | |
21332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21333 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21334 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21335 | /^X\(\/\).*/{ s//\1/; q; } | |
21336 | s/.*/./; q'` | |
10f2d63a | 21337 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
1e487827 VS |
21338 | { case "$ac_dir" in |
21339 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
21340 | *) as_incr_dir=.;; | |
21341 | esac | |
21342 | as_dummy="$ac_dir" | |
21343 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
21344 | case $as_mkdir_dir in | |
21345 | # Skip DOS drivespec | |
21346 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
21347 | *) | |
21348 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
21349 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
21350 | ;; | |
21351 | esac | |
21352 | done; } | |
21353 | ||
21354 | fi | |
21355 | rm -f $ac_file | |
21356 | mv $tmp/config.h $ac_file | |
10f2d63a | 21357 | fi |
1e487827 VS |
21358 | else |
21359 | cat $tmp/config.h | |
21360 | rm -f $tmp/config.h | |
10f2d63a | 21361 | fi |
1e487827 | 21362 | done |
10f2d63a | 21363 | EOF |
1e487827 | 21364 | cat >>$CONFIG_STATUS <<\EOF |
10f2d63a | 21365 | |
1e487827 VS |
21366 | # |
21367 | # CONFIG_COMMANDS section. | |
21368 | # | |
21369 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
21370 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
21371 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10f2d63a | 21372 | |
1e487827 VS |
21373 | case $ac_dest in |
21374 | default ) | |
10f2d63a | 21375 | chmod +x wx-config |
f6bcfd97 BP |
21376 | mv wx-config wx${TOOLKIT_NAME}-config |
21377 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
665bbe97 | 21378 | |
00cf1208 RR |
21379 | if test ! -d lib; then |
21380 | mkdir lib | |
21381 | fi | |
21382 | if test ! -d lib/wx; then | |
21383 | mkdir lib/wx | |
21384 | fi | |
21385 | if test ! -d lib/wx/include; then | |
21386 | mkdir lib/wx/include | |
21387 | fi | |
21388 | if test ! -d lib/wx/include/wx; then | |
21389 | mkdir lib/wx/include/wx | |
21390 | fi | |
f6bcfd97 BP |
21391 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
21392 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
21393 | fi |
21394 | if test -f setup.h; then | |
066b00aa | 21395 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 21396 | fi |
07eb77a6 | 21397 | |
10f2d63a VZ |
21398 | if test ! -d include; then |
21399 | mkdir include | |
21400 | fi | |
21401 | if test ! -d include/wx; then | |
21402 | mkdir include/wx | |
21403 | fi | |
21404 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
21405 | mkdir include/wx/${TOOLKIT_DIR} | |
21406 | fi | |
afc31813 | 21407 | if test -f setup.h; then |
066b00aa | 21408 | cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h |
afc31813 | 21409 | fi |
665bbe97 | 21410 | |
1e487827 VS |
21411 | ;; |
21412 | esac | |
21413 | done | |
21414 | EOF | |
21415 | ||
21416 | cat >>$CONFIG_STATUS <<\EOF | |
21417 | ||
21418 | { (exit 0); exit 0; } | |
10f2d63a VZ |
21419 | EOF |
21420 | chmod +x $CONFIG_STATUS | |
1e487827 VS |
21421 | ac_clean_files=$ac_clean_files_save |
21422 | ||
21423 | # configure is writing to config.log, and then calls config.status. | |
21424 | # config.status does its own redirection, appending to config.log. | |
21425 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21426 | # by configure, so config.status won't be able to write to it; its | |
21427 | # output is simply discarded. So we exec the FD to /dev/null, | |
21428 | # effectively closing config.log, so it can be properly (re)opened and | |
21429 | # appended to by config.status. When coming back to configure, we | |
21430 | # need to make the FD available again. | |
21431 | if test "$no_create" != yes; then | |
21432 | ac_cs_success=: | |
21433 | exec 5>/dev/null | |
21434 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
21435 | exec 5>>config.log | |
21436 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
21437 | # would make configure fail if this is the last instruction. | |
21438 | $ac_cs_success || { (exit 1); exit 1; } | |
21439 | fi | |
10f2d63a | 21440 | |
1e487827 VS |
21441 | # |
21442 | # CONFIG_SUBDIRS section. | |
21443 | # | |
2224580a VZ |
21444 | if test "$no_recursion" != yes; then |
21445 | ||
21446 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21447 | ac_sub_configure_args= | |
21448 | ac_prev= | |
21449 | for ac_arg in $ac_configure_args; do | |
21450 | if test -n "$ac_prev"; then | |
21451 | ac_prev= | |
21452 | continue | |
21453 | fi | |
1e487827 | 21454 | case $ac_arg in |
2224580a VZ |
21455 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21456 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21457 | ac_prev=cache_file ;; | |
21458 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1e487827 VS |
21459 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
21460 | | --c=*) | |
21461 | ;; | |
21462 | --config-cache | -C) | |
2224580a VZ |
21463 | ;; |
21464 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21465 | ac_prev=srcdir ;; | |
21466 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21467 | ;; | |
21468 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21469 | esac | |
21470 | done | |
21471 | ||
1e487827 | 21472 | for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue |
2224580a VZ |
21473 | |
21474 | # Do not complain, so a configure script can configure whichever | |
21475 | # parts of a large source tree are present. | |
1e487827 | 21476 | test -d $srcdir/$ac_subdir || continue |
2224580a | 21477 | |
93a20a27 | 21478 | { echo "$as_me:21478: configuring in $ac_subdir" >&5 |
1e487827 VS |
21479 | echo "$as_me: configuring in $ac_subdir" >&6;} |
21480 | case $srcdir in | |
2224580a | 21481 | .) ;; |
1e487827 VS |
21482 | *) { case "./$ac_subdir" in |
21483 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
21484 | *) as_incr_dir=.;; | |
21485 | esac | |
21486 | as_dummy="./$ac_subdir" | |
21487 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
21488 | case $as_mkdir_dir in | |
21489 | # Skip DOS drivespec | |
21490 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
2224580a | 21491 | *) |
1e487827 VS |
21492 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
21493 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
21494 | ;; | |
21495 | esac | |
21496 | done; } | |
21497 | ||
21498 | if test -d ./$ac_subdir; then :; | |
21499 | else | |
93a20a27 | 21500 | { { echo "$as_me:21500: error: cannot create \`pwd\`/$ac_subdir" >&5 |
1e487827 VS |
21501 | echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;} |
21502 | { (exit 1); exit 1; }; } | |
21503 | fi | |
21504 | ;; | |
2224580a VZ |
21505 | esac |
21506 | ||
21507 | ac_popdir=`pwd` | |
1e487827 | 21508 | cd $ac_subdir |
2224580a | 21509 | |
1e487827 VS |
21510 | # A "../" for each directory in /$ac_subdir. |
21511 | ac_dots=`echo $ac_subdir | | |
21512 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
2224580a | 21513 | |
1e487827 | 21514 | case $srcdir in |
2224580a VZ |
21515 | .) # No --srcdir option. We are building in place. |
21516 | ac_sub_srcdir=$srcdir ;; | |
1e487827 VS |
21517 | [\\/]* | ?:[\\/]* ) # Absolute path. |
21518 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
2224580a | 21519 | *) # Relative path. |
1e487827 | 21520 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; |
2224580a VZ |
21521 | esac |
21522 | ||
21523 | # Check for guested configure; otherwise get Cygnus style configure. | |
1e487827 VS |
21524 | if test -f $ac_sub_srcdir/configure.gnu; then |
21525 | ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'" | |
21526 | elif test -f $ac_sub_srcdir/configure; then | |
21527 | ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'" | |
2224580a VZ |
21528 | elif test -f $ac_sub_srcdir/configure.in; then |
21529 | ac_sub_configure=$ac_configure | |
21530 | else | |
93a20a27 | 21531 | { echo "$as_me:21531: WARNING: no configuration information is in $ac_subdir" >&5 |
1e487827 | 21532 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} |
2224580a VZ |
21533 | ac_sub_configure= |
21534 | fi | |
21535 | ||
21536 | # The recursion is here. | |
21537 | if test -n "$ac_sub_configure"; then | |
2224580a | 21538 | # Make the cache file name correct relative to the subdirectory. |
1e487827 VS |
21539 | case $cache_file in |
21540 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21541 | *) # Relative path. |
1e487827 | 21542 | ac_sub_cache_file=$ac_dots$cache_file ;; |
2224580a | 21543 | esac |
2224580a | 21544 | |
93a20a27 | 21545 | { echo "$as_me:21545: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5 |
1e487827 | 21546 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;} |
2224580a | 21547 | # The eval makes quoting arguments work. |
1e487827 VS |
21548 | eval $ac_sub_configure $ac_sub_configure_args \ |
21549 | --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir || | |
93a20a27 | 21550 | { { echo "$as_me:21550: error: $ac_sub_configure failed for $ac_subdir" >&5 |
1e487827 VS |
21551 | echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;} |
21552 | { (exit 1); exit 1; }; } | |
2224580a VZ |
21553 | fi |
21554 | ||
21555 | cd $ac_popdir | |
21556 | done | |
21557 | fi | |
21558 |