]> git.saurik.com Git - wxWidgets.git/blame - configure
Removed all trace of richedit from scripts
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
7b4a847f
RR
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by Autoconf 2.52.
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
7b4a847f
RR
11# Avoid depending upon Character Ranges.
12as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15as_cr_digits='0123456789'
16as_cr_alnum=$as_cr_Letters$as_cr_digits
579d8138 17
7b4a847f
RR
18# Sed expression to map a string onto a valid variable name.
19as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
579d8138 20
7b4a847f
RR
21# Sed expression to map a string onto a valid CPP name.
22as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
579d8138 23
7b4a847f
RR
24# Be Bourne compatible
25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30fi
579d8138 31
7b4a847f
RR
32# Name of the executable.
33as_me=`echo "$0" |sed 's,.*[\\/],,'`
579d8138 34
7b4a847f
RR
35if expr a : '\(a\)' >/dev/null 2>&1; then
36 as_expr=expr
37else
38 as_expr=false
39fi
579d8138 40
7b4a847f
RR
41rm -f conf$$ conf$$.exe conf$$.file
42echo >conf$$.file
43if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
48 as_ln_s='cp -p'
49 else
50 as_ln_s='ln -s'
51 fi
52elif ln conf$$.file conf$$ 2>/dev/null; then
53 as_ln_s=ln
54else
55 as_ln_s='cp -p'
56fi
57rm -f conf$$ conf$$.exe conf$$.file
579d8138 58
7b4a847f 59as_executable_p="test -f"
579d8138 60
7b4a847f
RR
61# Support unset when possible.
62if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 as_unset=unset
64else
65 as_unset=false
66fi
579d8138 67
7b4a847f
RR
68# NLS nuisances.
69$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78# IFS
79# We need space, tab and new line, in precisely that order.
80as_nl='
81'
82IFS=" $as_nl"
83
84# CDPATH.
85$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87# Name of the host.
88# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89# so uname gets run too.
90ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92exec 6>&1
579d8138 93
7b4a847f
RR
94#
95# Initializations.
96#
97ac_default_prefix=/usr/local
98cross_compiling=no
99subdirs=
100MFLAGS= MAKEFLAGS=
101SHELL=${CONFIG_SHELL-/bin/sh}
579d8138 102
7b4a847f
RR
103# Maximum number of lines to put in a shell here document.
104# This variable seems obsolete. It should probably be removed, and
105# only ac_max_sed_lines should be used.
106: ${ac_max_here_lines=38}
579d8138 107
7b4a847f
RR
108ac_unique_file="wx-config.in"
109# Factoring default headers for most tests.
110ac_includes_default="\
111#include <stdio.h>
112#if HAVE_SYS_TYPES_H
113# include <sys/types.h>
114#endif
115#if HAVE_SYS_STAT_H
116# include <sys/stat.h>
117#endif
118#if STDC_HEADERS
119# include <stdlib.h>
120# include <stddef.h>
121#else
122# if HAVE_STDLIB_H
123# include <stdlib.h>
124# endif
125#endif
126#if HAVE_STRING_H
127# if !STDC_HEADERS && HAVE_MEMORY_H
128# include <memory.h>
129# endif
130# include <string.h>
131#endif
132#if HAVE_STRINGS_H
133# include <strings.h>
134#endif
135#if HAVE_INTTYPES_H
136# include <inttypes.h>
137#else
138# if HAVE_STDINT_H
139# include <stdint.h>
140# endif
141#endif
142#if HAVE_UNISTD_H
143# include <unistd.h>
144#endif"
579d8138 145
7b4a847f 146ac_subdirs_all="$ac_subdirs_all demos samples utils contrib"
10f2d63a
VZ
147
148# Initialize some variables set by options.
7b4a847f
RR
149ac_init_help=
150ac_init_version=false
10f2d63a
VZ
151# The variables have the same names as the options, with
152# dashes changed to underlines.
7b4a847f 153cache_file=/dev/null
10f2d63a 154exec_prefix=NONE
10f2d63a 155no_create=
10f2d63a
VZ
156no_recursion=
157prefix=NONE
158program_prefix=NONE
159program_suffix=NONE
160program_transform_name=s,x,x,
161silent=
162site=
163srcdir=
10f2d63a
VZ
164verbose=
165x_includes=NONE
166x_libraries=NONE
7b4a847f
RR
167
168# Installation directory options.
169# These are left unexpanded so users can "make install exec_prefix=/foo"
170# and all the variables that are supposed to be based on exec_prefix
171# by default will actually change.
172# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
173bindir='${exec_prefix}/bin'
174sbindir='${exec_prefix}/sbin'
175libexecdir='${exec_prefix}/libexec'
176datadir='${prefix}/share'
177sysconfdir='${prefix}/etc'
178sharedstatedir='${prefix}/com'
179localstatedir='${prefix}/var'
180libdir='${exec_prefix}/lib'
181includedir='${prefix}/include'
182oldincludedir='/usr/include'
183infodir='${prefix}/info'
184mandir='${prefix}/man'
185
7b4a847f
RR
186# Identity of this package.
187PACKAGE_NAME=
188PACKAGE_TARNAME=
189PACKAGE_VERSION=
190PACKAGE_STRING=
191PACKAGE_BUGREPORT=
10f2d63a
VZ
192
193ac_prev=
194for ac_option
195do
10f2d63a
VZ
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
199 ac_prev=
200 continue
201 fi
202
7b4a847f 203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
204
205 # Accept the important Cygnus configure options, so we can diagnose typos.
206
7b4a847f 207 case $ac_option in
10f2d63a
VZ
208
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 ac_prev=bindir ;;
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7b4a847f 212 bindir=$ac_optarg ;;
10f2d63a
VZ
213
214 -build | --build | --buil | --bui | --bu)
7b4a847f 215 ac_prev=build_alias ;;
10f2d63a 216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7b4a847f 217 build_alias=$ac_optarg ;;
10f2d63a
VZ
218
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7b4a847f
RR
224 cache_file=$ac_optarg ;;
225
226 --config-cache | -C)
227 cache_file=config.cache ;;
10f2d63a
VZ
228
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 ac_prev=datadir ;;
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 | --da=*)
7b4a847f 233 datadir=$ac_optarg ;;
10f2d63a
VZ
234
235 -disable-* | --disable-*)
7b4a847f 236 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 237 # Reject names that are not valid shell variable names.
7b4a847f
RR
238 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
239 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
240 { (exit 1); exit 1; }; }
241 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
242 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
243
244 -enable-* | --enable-*)
7b4a847f 245 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 246 # Reject names that are not valid shell variable names.
7b4a847f
RR
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
251 case $ac_option in
252 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
253 *) ac_optarg=yes ;;
254 esac
7b4a847f 255 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
256
257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
259 | --exec | --exe | --ex)
260 ac_prev=exec_prefix ;;
261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
263 | --exec=* | --exe=* | --ex=*)
7b4a847f 264 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
265
266 -gas | --gas | --ga | --g)
267 # Obsolete; use --with-gas.
268 with_gas=yes ;;
269
7b4a847f
RR
270 -help | --help | --hel | --he | -h)
271 ac_init_help=long ;;
272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
273 ac_init_help=recursive ;;
274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
275 ac_init_help=short ;;
10f2d63a
VZ
276
277 -host | --host | --hos | --ho)
7b4a847f 278 ac_prev=host_alias ;;
10f2d63a 279 -host=* | --host=* | --hos=* | --ho=*)
7b4a847f 280 host_alias=$ac_optarg ;;
10f2d63a
VZ
281
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev=includedir ;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
7b4a847f 287 includedir=$ac_optarg ;;
10f2d63a
VZ
288
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 ac_prev=infodir ;;
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
7b4a847f 292 infodir=$ac_optarg ;;
10f2d63a
VZ
293
294 -libdir | --libdir | --libdi | --libd)
295 ac_prev=libdir ;;
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
7b4a847f 297 libdir=$ac_optarg ;;
10f2d63a
VZ
298
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev=libexecdir ;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
7b4a847f 304 libexecdir=$ac_optarg ;;
10f2d63a
VZ
305
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev=localstatedir ;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
7b4a847f 313 localstatedir=$ac_optarg ;;
10f2d63a
VZ
314
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 ac_prev=mandir ;;
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
7b4a847f 318 mandir=$ac_optarg ;;
10f2d63a
VZ
319
320 -nfp | --nfp | --nf)
321 # Obsolete; use --without-fp.
322 with_fp=no ;;
323
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 | --no-cr | --no-c)
326 no_create=yes ;;
327
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 no_recursion=yes ;;
331
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev=oldincludedir ;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
7b4a847f 339 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
340
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 ac_prev=prefix ;;
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7b4a847f 344 prefix=$ac_optarg ;;
10f2d63a
VZ
345
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev=program_prefix ;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
7b4a847f 351 program_prefix=$ac_optarg ;;
10f2d63a
VZ
352
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev=program_suffix ;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
7b4a847f 358 program_suffix=$ac_optarg ;;
10f2d63a
VZ
359
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev=program_transform_name ;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
7b4a847f 375 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
376
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
379 silent=yes ;;
380
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 ac_prev=sbindir ;;
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 | --sbi=* | --sb=*)
7b4a847f 385 sbindir=$ac_optarg ;;
10f2d63a
VZ
386
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
390 | --sha | --sh)
391 ac_prev=sharedstatedir ;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 | --sha=* | --sh=*)
7b4a847f 396 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
397
398 -site | --site | --sit)
399 ac_prev=site ;;
400 -site=* | --site=* | --sit=*)
7b4a847f 401 site=$ac_optarg ;;
10f2d63a
VZ
402
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 ac_prev=srcdir ;;
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7b4a847f 406 srcdir=$ac_optarg ;;
10f2d63a
VZ
407
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev=sysconfdir ;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
7b4a847f 413 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
414
415 -target | --target | --targe | --targ | --tar | --ta | --t)
7b4a847f 416 ac_prev=target_alias ;;
10f2d63a 417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
7b4a847f 418 target_alias=$ac_optarg ;;
10f2d63a
VZ
419
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 verbose=yes ;;
422
7b4a847f
RR
423 -version | --version | --versio | --versi | --vers | -V)
424 ac_init_version=: ;;
10f2d63a
VZ
425
426 -with-* | --with-*)
7b4a847f 427 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 428 # Reject names that are not valid shell variable names.
7b4a847f
RR
429 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
10f2d63a 432 ac_package=`echo $ac_package| sed 's/-/_/g'`
7b4a847f
RR
433 case $ac_option in
434 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
435 *) ac_optarg=yes ;;
436 esac
7b4a847f 437 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
438
439 -without-* | --without-*)
7b4a847f 440 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 441 # Reject names that are not valid shell variable names.
7b4a847f
RR
442 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
443 { echo "$as_me: error: invalid package name: $ac_package" >&2
444 { (exit 1); exit 1; }; }
445 ac_package=`echo $ac_package | sed 's/-/_/g'`
446 eval "with_$ac_package=no" ;;
10f2d63a
VZ
447
448 --x)
449 # Obsolete; use --with-x.
450 with_x=yes ;;
451
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
7b4a847f 457 x_includes=$ac_optarg ;;
10f2d63a
VZ
458
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
7b4a847f 464 x_libraries=$ac_optarg ;;
10f2d63a 465
7b4a847f
RR
466 -*) { echo "$as_me: error: unrecognized option: $ac_option
467Try \`$0 --help' for more information." >&2
468 { (exit 1); exit 1; }; }
10f2d63a
VZ
469 ;;
470
7b4a847f
RR
471 *=*)
472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
473 # Reject names that are not valid shell variable names.
474 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
475 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
476 { (exit 1); exit 1; }; }
477 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
478 eval "$ac_envvar='$ac_optarg'"
479 export $ac_envvar ;;
480
10f2d63a 481 *)
7b4a847f
RR
482 # FIXME: should be removed in autoconf 3.0.
483 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
485 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
486 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
487 ;;
488
489 esac
490done
491
492if test -n "$ac_prev"; then
7b4a847f
RR
493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
494 { echo "$as_me: error: missing argument to $ac_option" >&2
495 { (exit 1); exit 1; }; }
579d8138 496fi
579d8138 497
7b4a847f
RR
498# Be sure to have absolute paths.
499for ac_var in exec_prefix prefix
500do
501 eval ac_val=$`echo $ac_var`
502 case $ac_val in
503 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
504 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
505 { (exit 1); exit 1; }; };;
506 esac
507done
579d8138 508
7b4a847f
RR
509# Be sure to have absolute paths.
510for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
511 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 512do
7b4a847f
RR
513 eval ac_val=$`echo $ac_var`
514 case $ac_val in
515 [\\/$]* | ?:[\\/]* ) ;;
516 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
517 { (exit 1); exit 1; }; };;
10f2d63a
VZ
518 esac
519done
520
7b4a847f
RR
521# There might be people who depend on the old broken behavior: `$host'
522# used to hold the argument of --host etc.
523build=$build_alias
524host=$host_alias
525target=$target_alias
526
527# FIXME: should be removed in autoconf 3.0.
528if test "x$host_alias" != x; then
529 if test "x$build_alias" = x; then
530 cross_compiling=maybe
531 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
532 If a cross compiler is detected then cross compile mode will be used." >&2
533 elif test "x$build_alias" != "x$host_alias"; then
534 cross_compiling=yes
535 fi
536fi
10f2d63a 537
7b4a847f
RR
538ac_tool_prefix=
539test -n "$host_alias" && ac_tool_prefix=$host_alias-
10f2d63a 540
7b4a847f 541test "$silent" = yes && exec 6>/dev/null
10f2d63a
VZ
542
543# Find the source files, if location was not specified.
544if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
547 ac_prog=$0
7b4a847f 548 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
10f2d63a
VZ
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
550 srcdir=$ac_confdir
551 if test ! -r $srcdir/$ac_unique_file; then
552 srcdir=..
553 fi
554else
555 ac_srcdir_defaulted=no
556fi
557if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
7b4a847f
RR
559 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
560 { (exit 1); exit 1; }; }
10f2d63a 561 else
7b4a847f
RR
562 { echo "$as_me: error: cannot find sources in $srcdir" >&2
563 { (exit 1); exit 1; }; }
10f2d63a
VZ
564 fi
565fi
7b4a847f
RR
566srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
567ac_env_build_alias_set=${build_alias+set}
568ac_env_build_alias_value=$build_alias
569ac_cv_env_build_alias_set=${build_alias+set}
570ac_cv_env_build_alias_value=$build_alias
571ac_env_host_alias_set=${host_alias+set}
572ac_env_host_alias_value=$host_alias
573ac_cv_env_host_alias_set=${host_alias+set}
574ac_cv_env_host_alias_value=$host_alias
575ac_env_target_alias_set=${target_alias+set}
576ac_env_target_alias_value=$target_alias
577ac_cv_env_target_alias_set=${target_alias+set}
578ac_cv_env_target_alias_value=$target_alias
579ac_env_CC_set=${CC+set}
580ac_env_CC_value=$CC
581ac_cv_env_CC_set=${CC+set}
582ac_cv_env_CC_value=$CC
583ac_env_CFLAGS_set=${CFLAGS+set}
584ac_env_CFLAGS_value=$CFLAGS
585ac_cv_env_CFLAGS_set=${CFLAGS+set}
586ac_cv_env_CFLAGS_value=$CFLAGS
587ac_env_LDFLAGS_set=${LDFLAGS+set}
588ac_env_LDFLAGS_value=$LDFLAGS
589ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
590ac_cv_env_LDFLAGS_value=$LDFLAGS
591ac_env_CPPFLAGS_set=${CPPFLAGS+set}
592ac_env_CPPFLAGS_value=$CPPFLAGS
593ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
594ac_cv_env_CPPFLAGS_value=$CPPFLAGS
595ac_env_CPP_set=${CPP+set}
596ac_env_CPP_value=$CPP
597ac_cv_env_CPP_set=${CPP+set}
598ac_cv_env_CPP_value=$CPP
599ac_env_CXX_set=${CXX+set}
600ac_env_CXX_value=$CXX
601ac_cv_env_CXX_set=${CXX+set}
602ac_cv_env_CXX_value=$CXX
603ac_env_CXXFLAGS_set=${CXXFLAGS+set}
604ac_env_CXXFLAGS_value=$CXXFLAGS
605ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
606ac_cv_env_CXXFLAGS_value=$CXXFLAGS
607ac_env_CXXCPP_set=${CXXCPP+set}
608ac_env_CXXCPP_value=$CXXCPP
609ac_cv_env_CXXCPP_set=${CXXCPP+set}
610ac_cv_env_CXXCPP_value=$CXXCPP
611
612#
613# Report the --help message.
614#
615if test "$ac_init_help" = "long"; then
616 # Omit some internal or obsolete options to make the list less imposing.
617 # This message is too long to be a string in the A/UX 3.1 sh.
618 cat <<EOF
619\`configure' configures this package to adapt to many kinds of systems.
620
621Usage: $0 [OPTION]... [VAR=VALUE]...
622
623To assign environment variables (e.g., CC, CFLAGS...), specify them as
624VAR=VALUE. See below for descriptions of some of the useful variables.
625
626Defaults for the options are specified in brackets.
627
628Configuration:
629 -h, --help display this help and exit
630 --help=short display options specific to this package
631 --help=recursive display the short help of all the included packages
632 -V, --version display version information and exit
633 -q, --quiet, --silent do not print \`checking...' messages
634 --cache-file=FILE cache test results in FILE [disabled]
635 -C, --config-cache alias for \`--cache-file=config.cache'
636 -n, --no-create do not create output files
637 --srcdir=DIR find the sources in DIR [configure dir or \`..']
638
639EOF
640
641 cat <<EOF
642Installation directories:
643 --prefix=PREFIX install architecture-independent files in PREFIX
644 [$ac_default_prefix]
645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 [PREFIX]
647
648By default, \`make install' will install all the files in
649\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
650an installation prefix other than \`$ac_default_prefix' using \`--prefix',
651for instance \`--prefix=\$HOME'.
652
653For better control, use the options below.
654
655Fine tuning of the installation directories:
656 --bindir=DIR user executables [EPREFIX/bin]
657 --sbindir=DIR system admin executables [EPREFIX/sbin]
658 --libexecdir=DIR program executables [EPREFIX/libexec]
659 --datadir=DIR read-only architecture-independent data [PREFIX/share]
660 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
661 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
662 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
663 --libdir=DIR object code libraries [EPREFIX/lib]
664 --includedir=DIR C header files [PREFIX/include]
665 --oldincludedir=DIR C header files for non-gcc [/usr/include]
666 --infodir=DIR info documentation [PREFIX/info]
667 --mandir=DIR man documentation [PREFIX/man]
668EOF
669
670 cat <<\EOF
671
672X features:
673 --x-includes=DIR X include files are in DIR
674 --x-libraries=DIR X library files are in DIR
675
676System types:
677 --build=BUILD configure for building on BUILD [guessed]
678 --host=HOST build programs to run on HOST [BUILD]
679 --target=TARGET configure for building compilers for TARGET [HOST]
680EOF
681fi
682
683if test -n "$ac_init_help"; then
684
685 cat <<\EOF
686
687Optional Features:
688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
690 --enable-gui use GUI classes
691 --enable-universal use wxWindows GUI controls instead of native ones
692 --enable-nanox use NanoX
693 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
694 --enable-shared create shared library code
695 --enable-soname set the DT_SONAME field in ELF shared libraries
696 --enable-optimise create optimised code
697 --enable-debug same as debug_flag and debug_info
698 --enable-precomp enable use of precompiled headers (Mac OS X)
699 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
700 --enable-debug_info create code with debugging information
701 --enable-debug_gdb create code with extra GDB debugging information
702 --enable-debug_cntxt use wxDebugContext
703 --enable-mem_tracing create code with memory tracing
704 --enable-profile create code with profiling information
705 --enable-no_rtti create code without RTTI information
706 --enable-no_exceptions create code without C++ exceptions handling
707 --enable-permissive compile code disregarding strict ANSI
708 --enable-no_deps create code without dependency information
709 --enable-compat20 enable wxWindows 2.0 compatibility
710 --disable-compat22 disable wxWindows 2.2 compatibility
711 --enable-rpath=DIR output the rpath flag from wx-config
712 --enable-intl use internationalization system
713 --enable-config use wxConfig (and derived) classes
714 --enable-protocols use wxProtocol and derived classes
715 --enable-ftp use wxFTP (requires wxProtocol
716 --enable-http use wxHTTP (requires wxProtocol
717 --enable-fileproto use wxFileProto class (requires wxProtocol
718 --enable-sockets use socket/network classes
719 --enable-ipc use interprocess communication (wxSocket etc.)
720 --enable-cmdline use wxCmdLineParser class
721 --enable-datetime use wxDateTime class
722 --enable-timedate use obsolete wxDate/wxTime classes
723 --enable-stopwatch use wxStopWatch class
724 --enable-dialupman use dialup network classes
725 --enable-apple_ieee use the Apple IEEE codec
726 --enable-timer use wxTimer class
727 --enable-wave use wxWave class
728 --enable-fraction use wxFraction class
729 --enable-dynlib use wxLibrary class for DLL loading
730 --enable-dynamicloader use (new) wxDynamicLibrary class
731 --enable-longlong use wxLongLong class
732 --enable-geometry use geometry class
733 --enable-log use logging system
734 --enable-streams use wxStream etc classes
735 --enable-file use wxFile classes
736 --enable-ffile use wxFFile classes
737 --enable-textbuf use wxTextBuffer class
738 --enable-textfile use wxTextFile class
739 --enable-fontmap use font encodings conversion classes
740 --enable-unicode compile wxString with Unicode support
741 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
742 --enable-wxprintfv use wxWindows implementation of vprintf()
743 --enable-std_iostreams use standard C++ stream classes
744 --enable-filesystem use virtual file systems classes
745 --enable-fs_inet use virtual HTTP/FTP filesystems
746 --enable-fs_zip use virtual ZIP filesystems
747 --enable-zipstream use wxZipInputStream
748 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
749 --enable-snglinst use wxSingleInstanceChecker class
750 --enable-mimetype use wxMimeTypesManager
751 --enable-sysoptions use wxSystemOptions
752 --enable-url use wxURL class
753 --enable-protocol use wxProtocol class
754 --enable-protocol-http HTTP support in wxProtocol
755 --enable-protocol-ftp FTP support in wxProtocol
756 --enable-protocol-file FILE support in wxProtocol
757 --enable-threads use threads
758 --enable-docview use document view architecture
759 --enable-help use help subsystem
760 --enable-mshtmlhelp use MS HTML Help (win32)
761 --enable-html use wxHTML sub-library
762 --enable-htmlhelp use wxHTML-based help
763 --enable-constraints use layout-constraints system
764 --enable-printarch use printing architecture
765 --enable-mdi use multiple document interface architecture
766 --enable-loggui use standard GUI logger
767 --enable-logwin use wxLogWindow
768 --enable-logdialog use wxLogDialog
769 --enable-postscript use wxPostscriptDC device context (default for gtk+)
770 --enable-prologio use Prolog IO library
771 --enable-resources use wxWindows resources
772 --enable-xresources use X resources for save (default for gtk+)
773 --enable-clipboard use wxClipboard classes
774 --enable-dnd use Drag'n'Drop classes
775 --enable-metafile use win32 metafiles
776 --enable-treelayout use wxTreeLayout classes
777 --enable-controls use all usual controls
778 --enable-accel use accelerators
779 --enable-button use wxButton class
780 --enable-bmpbutton use wxBitmapButton class
781 --enable-calendar use wxCalendarCtrl class
782 --enable-caret use wxCaret class
783 --enable-checkbox use wxCheckBox class
784 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
785 --enable-choice use wxChoice class
786 --enable-combobox use wxComboBox classes
787 --enable-gauge use wxGauge class
788 --enable-grid use wxGrid class
789 --enable-newgrid use new wxGrid class
790 --enable-imaglist use wxImageList class
791 --enable-listbox use wxListBox class
792 --enable-listctrl use wxListCtrl class
793 --enable-notebook use wxNotebook class
794 --enable-propsheet use wxPropertySheet class
795 --enable-radiobox use wxRadioBox class
796 --enable-radiobtn use wxRadioButton class
797 --enable-sash use wxSashWindow class
798 --enable-scrollbar use wxScrollBar class and scrollable windows
799 --enable-slider use wxSlider class
800 --enable-spinbtn use wxSpinButton class
801 --enable-spinctrl use wxSpinCtrl class
802 --enable-splitter use wxSplitterWindow class
803 --enable-statbmp use wxStaticBitmap class
804 --enable-statbox use wxStaticBox class
805 --enable-statline use wxStaticLine class
806 --enable-stattext use wxStaticText class
807 --enable-statusbar use wxStatusBar class
808 --enable-tabdialog use wxTabControl class
809 --enable-textctrl use wxTextCtrl class
810 --enable-togglebtn use wxToggleButton class
811 --enable-toolbar use wxToolBar class
812 --enable-tbarnative use native wxToolBar class
813 --enable-tbarsmpl use wxToolBarSimple class
814 --enable-treectrl use wxTreeCtrl class
815 --enable-tipwindow use wxTipWindow class
816 --enable-popupwin use wxPopUpWindow class
817 --enable-commondlg use all common dialogs
818 --enable-choicedlg use wxChoiceDialog
819 --enable-coldlg use wxColourDialog
820 --enable-filedlg use wxFileDialog
821 --enable-finddlg use wxFindReplaceDialog
822 --enable-fontdlg use wxFontDialog
823 --enable-dirdlg use wxDirDialog
824 --enable-msgdlg use wxMessageDialog
825 --enable-numberdlg use wxNumberEntryDialog
826 --enable-splash use wxSplashScreen
827 --enable-textdlg use wxTextDialog
828 --enable-tipdlg use startup tips
829 --enable-progressdlg use wxProgressDialog
830 --enable-wizarddlg use wxWizard
831 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
832 --enable-miniframe use wxMiniFrame class
833 --enable-tooltips use wxToolTip class
834 --enable-splines use spline drawing code
835 --enable-validators use wxValidator and derived classes
836 --enable-busyinfo use wxBusyInfo
837 --enable-joystick use wxJoystick (Linux only)
838 --enable-metafiles use wxMetaFile (Windows only)
839 --enable-dragimage use wxDragImage
840 --enable-palette use wxPalette class
841 --enable-image use wxImage class
842 --enable-gif use gif images (GIF file format)
843 --enable-pcx use pcx images (PCX file format)
844 --enable-iff use iff images (IFF file format)
845 --enable-pnm use pnm images (PNM file format)
846 --enable-xpm use xpm images (XPM file format)
847 --enable-icocur use Windows ICO and CUR formats
848 --disable-largefile omit support for large files
849 --disable-gtktest do not try to compile and run a test GTK+ program
850 --disable-gtktest Do not try to compile and run a test GTK program
851
852Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-gtk use GTK+
856 --with-motif use Motif/Lesstif
857 --with-mac use Mac OS X
858 --with-wine use WINE
859 --with-msw use MS-Windows
860 --with-pm use OS/2 Presentation Manager
861 --with-mgl use SciTech MGL
862 --with-microwin use MicroWindows
863 --with-x11 use X11
864 --with-libpng use libpng (PNG image format)
865 --with-libjpeg use libjpeg (JPEG file format)
866 --with-libtiff use libtiff (TIFF file format)
867 --with-opengl use OpenGL (or Mesa)
868 --with-dmalloc use dmalloc library (http://dmalloc.com/)
869 --with-regex enable support for wxRegEx class
870 --with-zlib use zlib for LZW compression
871 --with-odbc use the IODBC and wxODBC classes
872 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
873 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
874 --with-x use the X Window System
875 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
876
877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
885 CXX C++ compiler command
886 CXXFLAGS C++ compiler flags
887 CXXCPP C++ preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892EOF
893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
899 cd $ac_subdir
900 # A "../" for each directory in /$ac_subdir.
901 ac_dots=`echo $ac_subdir |
902 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
903
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_sub_srcdir=$srcdir ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_sub_srcdir=$srcdir/$ac_subdir ;;
909 *) # Relative path.
910 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
911 esac
912
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_sub_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_sub_srcdir/configure; then
918 echo
919 $SHELL $ac_sub_srcdir/configure --help=recursive
920 elif test -f $ac_sub_srcdir/configure.ac ||
921 test -f $ac_sub_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
926 fi
927 cd $ac_popdir
928 done
929fi
930
931test -n "$ac_init_help" && exit 0
932if $ac_init_version; then
933 cat <<\EOF
934
935Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
936Free Software Foundation, Inc.
937This configure script is free software; the Free Software Foundation
938gives unlimited permission to copy, distribute and modify it.
939EOF
940 exit 0
941fi
942exec 5>config.log
943cat >&5 <<EOF
944This file contains any messages produced by compilers while
945running configure, to aid debugging if configure makes a mistake.
946
947It was created by $as_me, which was
948generated by GNU Autoconf 2.52. Invocation command line was
949
950 $ $0 $@
951
952EOF
953{
954cat <<_ASUNAME
955## ---------- ##
956## Platform. ##
957## ---------- ##
958
959hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960uname -m = `(uname -m) 2>/dev/null || echo unknown`
961uname -r = `(uname -r) 2>/dev/null || echo unknown`
962uname -s = `(uname -s) 2>/dev/null || echo unknown`
963uname -v = `(uname -v) 2>/dev/null || echo unknown`
328a083c 964
7b4a847f
RR
965/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
976PATH = $PATH
977
978_ASUNAME
979} >&5
980
981cat >&5 <<EOF
982## ------------ ##
983## Core tests. ##
984## ------------ ##
985
986EOF
987
988# Keep a trace of the command line.
989# Strip out --no-create and --no-recursion so they do not pile up.
990# Also quote any args containing shell meta-characters.
991ac_configure_args=
992ac_sep=
993for ac_arg
994do
995 case $ac_arg in
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c) ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1002 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1003 ac_sep=" " ;;
1004 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1005 ac_sep=" " ;;
1006 esac
1007 # Get rid of the leading space.
1008done
1009
1010# When interrupted or exit'd, cleanup temporary files, and complete
1011# config.log. We remove comments because anyway the quotes in there
1012# would cause problems or look ugly.
1013trap 'exit_status=$?
1014 # Save into config.log some information that might help in debugging.
1015 echo >&5
1016 echo "## ----------------- ##" >&5
1017 echo "## Cache variables. ##" >&5
1018 echo "## ----------------- ##" >&5
1019 echo >&5
1020 # The following way of writing the cache mishandles newlines in values,
1021{
1022 (set) 2>&1 |
1023 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1024 *ac_space=\ *)
1025 sed -n \
1026 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1028 ;;
1029 *)
1030 sed -n \
1031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1032 ;;
1033 esac;
1034} >&5
1035 sed "/^$/d" confdefs.h >conftest.log
1036 if test -s conftest.log; then
1037 echo >&5
1038 echo "## ------------ ##" >&5
1039 echo "## confdefs.h. ##" >&5
1040 echo "## ------------ ##" >&5
1041 echo >&5
1042 cat conftest.log >&5
1043 fi
1044 (echo; echo) >&5
1045 test "$ac_signal" != 0 &&
1046 echo "$as_me: caught signal $ac_signal" >&5
1047 echo "$as_me: exit $exit_status" >&5
1048 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1049 exit $exit_status
1050 ' 0
1051for ac_signal in 1 2 13 15; do
1052 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1053done
1054ac_signal=0
1055
1056# confdefs.h avoids OS command line length limits that DEFS can exceed.
1057rm -rf conftest* confdefs.h
1058# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1059echo >confdefs.h
1060
1061# Let the site file select an alternate cache file if it wants to.
10f2d63a
VZ
1062# Prefer explicitly selected file to automatically selected ones.
1063if test -z "$CONFIG_SITE"; then
1064 if test "x$prefix" != xNONE; then
1065 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1066 else
1067 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1068 fi
1069fi
1070for ac_site_file in $CONFIG_SITE; do
1071 if test -r "$ac_site_file"; then
7b4a847f
RR
1072 { echo "$as_me:1072: loading site script $ac_site_file" >&5
1073echo "$as_me: loading site script $ac_site_file" >&6;}
1074 cat "$ac_site_file" >&5
10f2d63a
VZ
1075 . "$ac_site_file"
1076 fi
1077done
1078
1079if test -r "$cache_file"; then
7b4a847f
RR
1080 # Some versions of bash will fail to source /dev/null (special
1081 # files actually), so we avoid doing that.
1082 if test -f "$cache_file"; then
1083 { echo "$as_me:1083: loading cache $cache_file" >&5
1084echo "$as_me: loading cache $cache_file" >&6;}
1085 case $cache_file in
1086 [\\/]* | ?:[\\/]* ) . $cache_file;;
1087 *) . ./$cache_file;;
1088 esac
1089 fi
10f2d63a 1090else
7b4a847f
RR
1091 { echo "$as_me:1091: creating cache $cache_file" >&5
1092echo "$as_me: creating cache $cache_file" >&6;}
1093 >$cache_file
1094fi
1095
1096# Check that the precious variables saved in the cache have kept the same
1097# value.
1098ac_cache_corrupted=false
1099for ac_var in `(set) 2>&1 |
1100 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1101 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1102 eval ac_new_set=\$ac_env_${ac_var}_set
1103 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1104 eval ac_new_val="\$ac_env_${ac_var}_value"
1105 case $ac_old_set,$ac_new_set in
1106 set,)
1107 { echo "$as_me:1107: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1108echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1109 ac_cache_corrupted=: ;;
1110 ,set)
1111 { echo "$as_me:1111: error: \`$ac_var' was not set in the previous run" >&5
1112echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1113 ac_cache_corrupted=: ;;
1114 ,);;
1115 *)
1116 if test "x$ac_old_val" != "x$ac_new_val"; then
1117 { echo "$as_me:1117: error: \`$ac_var' has changed since the previous run:" >&5
1118echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1119 { echo "$as_me:1119: former value: $ac_old_val" >&5
1120echo "$as_me: former value: $ac_old_val" >&2;}
1121 { echo "$as_me:1121: current value: $ac_new_val" >&5
1122echo "$as_me: current value: $ac_new_val" >&2;}
1123 ac_cache_corrupted=:
1124 fi;;
1125 esac
1126 # Pass precious variables to config.status. It doesn't matter if
1127 # we pass some twice (in addition to the command line arguments).
1128 if test "$ac_new_set" = set; then
1129 case $ac_new_val in
1130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1131 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1132 ac_configure_args="$ac_configure_args '$ac_arg'"
1133 ;;
1134 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1135 ;;
1136 esac
1137 fi
1138done
1139if $ac_cache_corrupted; then
1140 { echo "$as_me:1140: error: changes in the environment can compromise the build" >&5
1141echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1142 { { echo "$as_me:1142: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1143echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1144 { (exit 1); exit 1; }; }
10f2d63a
VZ
1145fi
1146
1147ac_ext=c
10f2d63a 1148ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
1149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1151ac_compiler_gnu=$ac_cv_c_compiler_gnu
1152
1153case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1154 *c*,-n*) ECHO_N= ECHO_C='
1155' ECHO_T=' ' ;;
1156 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1157 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1158esac
1159echo "#! $SHELL" >conftest.sh
1160echo "exit 0" >>conftest.sh
1161chmod +x conftest.sh
1162if { (echo "$as_me:1162: PATH=\".;.\"; conftest.sh") >&5
1163 (PATH=".;."; conftest.sh) 2>&5
1164 ac_status=$?
1165 echo "$as_me:1165: \$? = $ac_status" >&5
1166 (exit $ac_status); }; then
1167 ac_path_separator=';'
10f2d63a 1168else
7b4a847f 1169 ac_path_separator=:
10f2d63a 1170fi
7b4a847f
RR
1171PATH_SEPARATOR="$ac_path_separator"
1172rm -f conftest.sh
10f2d63a 1173
7c66a493
VZ
1174ac_aux_dir=
1175for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1176 if test -f $ac_dir/install-sh; then
1177 ac_aux_dir=$ac_dir
1178 ac_install_sh="$ac_aux_dir/install-sh -c"
1179 break
1180 elif test -f $ac_dir/install.sh; then
1181 ac_aux_dir=$ac_dir
1182 ac_install_sh="$ac_aux_dir/install.sh -c"
1183 break
7b4a847f
RR
1184 elif test -f $ac_dir/shtool; then
1185 ac_aux_dir=$ac_dir
1186 ac_install_sh="$ac_aux_dir/shtool install -c"
1187 break
7c66a493
VZ
1188 fi
1189done
1190if test -z "$ac_aux_dir"; then
7b4a847f
RR
1191 { { echo "$as_me:1191: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1192echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1193 { (exit 1); exit 1; }; }
7c66a493 1194fi
7b4a847f
RR
1195ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1196ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1197ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
698dcdb6 1198
7b4a847f
RR
1199# Make sure we can run config.sub.
1200$ac_config_sub sun4 >/dev/null 2>&1 ||
1201 { { echo "$as_me:1201: error: cannot run $ac_config_sub" >&5
1202echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1203 { (exit 1); exit 1; }; }
1204
1205echo "$as_me:1205: checking build system type" >&5
1206echo $ECHO_N "checking build system type... $ECHO_C" >&6
1207if test "${ac_cv_build+set}" = set; then
1208 echo $ECHO_N "(cached) $ECHO_C" >&6
1209else
1210 ac_cv_build_alias=$build_alias
1211test -z "$ac_cv_build_alias" &&
1212 ac_cv_build_alias=`$ac_config_guess`
1213test -z "$ac_cv_build_alias" &&
1214 { { echo "$as_me:1214: error: cannot guess build type; you must specify one" >&5
1215echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1216 { (exit 1); exit 1; }; }
1217ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1218 { { echo "$as_me:1218: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1219echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1220 { (exit 1); exit 1; }; }
1221
1222fi
1223echo "$as_me:1223: result: $ac_cv_build" >&5
1224echo "${ECHO_T}$ac_cv_build" >&6
1225build=$ac_cv_build
1226build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1227build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1228build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1229
1230test -z "$build_alias" &&
1231 build_alias=$ac_cv_build
1232
1233echo "$as_me:1233: checking host system type" >&5
1234echo $ECHO_N "checking host system type... $ECHO_C" >&6
1235if test "${ac_cv_host+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1237else
1238 ac_cv_host_alias=$host_alias
1239test -z "$ac_cv_host_alias" &&
1240 ac_cv_host_alias=$ac_cv_build_alias
1241ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1242 { { echo "$as_me:1242: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1243echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1244 { (exit 1); exit 1; }; }
1245
1246fi
1247echo "$as_me:1247: result: $ac_cv_host" >&5
1248echo "${ECHO_T}$ac_cv_host" >&6
1249host=$ac_cv_host
1250host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1251host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1252host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1253
1254test -z "$host_alias" &&
1255 host_alias=$ac_cv_host
1256
1257echo "$as_me:1257: checking target system type" >&5
1258echo $ECHO_N "checking target system type... $ECHO_C" >&6
1259if test "${ac_cv_target+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1261else
1262 ac_cv_target_alias=$target_alias
1263test "x$ac_cv_target_alias" = "x" &&
1264 ac_cv_target_alias=$ac_cv_host_alias
1265ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1266 { { echo "$as_me:1266: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1267echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1268 { (exit 1); exit 1; }; }
1269
1270fi
1271echo "$as_me:1271: result: $ac_cv_target" >&5
1272echo "${ECHO_T}$ac_cv_target" >&6
1273target=$ac_cv_target
1274target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1275target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1276target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7c66a493
VZ
1277
1278# The aliases save the names the user supplied, while $host etc.
1279# will get canonicalized.
7b4a847f 1280test -n "$target_alias" &&
7c66a493
VZ
1281 test "$program_prefix$program_suffix$program_transform_name" = \
1282 NONENONEs,x,x, &&
1283 program_prefix=${target_alias}-
7b4a847f
RR
1284test -z "$target_alias" &&
1285 target_alias=$ac_cv_target
698dcdb6 1286
10f2d63a 1287WX_MAJOR_VERSION_NUMBER=2
37d403aa 1288WX_MINOR_VERSION_NUMBER=3
a0d927d1 1289WX_RELEASE_NUMBER=3
10f2d63a 1290
10f2d63a 1291WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1292WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1293
978f1259
RL
1294WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1295
a0d927d1 1296WX_CURRENT=2
6426998c
RL
1297WX_REVISION=0
1298WX_AGE=0
1299
10f2d63a
VZ
1300USE_UNIX=1
1301USE_WIN32=0
f9bc1684 1302USE_DOS=0
b12915c1 1303USE_BEOS=0
1216f52d 1304USE_MAC=0
b12915c1 1305
10f2d63a
VZ
1306USE_LINUX=
1307USE_SGI=
1308USE_HPUX=
1309USE_SYSV=
1310USE_SVR4=
1311USE_AIX=
1312USE_SUN=
1313USE_SOLARIS=
1314USE_SUNOS=
1315USE_ALPHA=
1316USE_OSF=
1317USE_BSD=
f11bdd03 1318USE_DARWIN=
10f2d63a 1319USE_FREEBSD=
95c8801c 1320USE_OPENBSD=
f6bcfd97 1321USE_NETBSD=
10f2d63a
VZ
1322USE_VMS=
1323USE_ULTRIX=
10f2d63a
VZ
1324USE_DATA_GENERAL=
1325
ab9b9eab
VZ
1326NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1327
f79bd02d 1328ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1329
1330DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1331DEFAULT_wxUSE_MAC=0
1332DEFAULT_wxUSE_MGL=0
1725144d 1333DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1334DEFAULT_wxUSE_MOTIF=0
1335DEFAULT_wxUSE_MSW=0
e07802fc 1336DEFAULT_wxUSE_PM=0
1e6feb95 1337DEFAULT_wxUSE_WINE=0
f79bd02d 1338DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1339
1340DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1341DEFAULT_DEFAULT_wxUSE_MAC=0
1342DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1343DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1344DEFAULT_DEFAULT_wxUSE_MOTIF=0
1345DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1346DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1347DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1348DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1349
d6a55c4b 1350PROGRAM_EXT=
3a922bb4 1351SO_SUFFIX=so
d6a55c4b 1352
10f2d63a
VZ
1353case "${host}" in
1354 *-hp-hpux* )
1355 USE_HPUX=1
1356 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1357 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1358 SO_SUFFIX=sl
7b4a847f 1359 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1360#define __HPUX__ 1
1361EOF
1362
1363 ;;
1364 *-*-linux* )
1365 USE_LINUX=1
7b4a847f 1366 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1367#define __LINUX__ 1
1368EOF
1369
1370 TMP=`uname -m`
1371 if test "x$TMP" = "xalpha"; then
1372 USE_ALPHA=1
7b4a847f 1373 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1374#define __ALPHA__ 1
1375EOF
1376
1377 fi
1378 DEFAULT_DEFAULT_wxUSE_GTK=1
1379 ;;
1380 *-*-irix5* | *-*-irix6* )
1381 USE_SGI=1
1382 USE_SVR4=1
7b4a847f 1383 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1384#define __SGI__ 1
1385EOF
1386
7b4a847f 1387 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1388#define __SVR4__ 1
1389EOF
1390
1391 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1392 ;;
1393 *-*-solaris2* )
1394 USE_SUN=1
1395 USE_SOLARIS=1
1396 USE_SVR4=1
7b4a847f 1397 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1398#define __SUN__ 1
1399EOF
1400
7b4a847f 1401 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1402#define __SOLARIS__ 1
1403EOF
1404
7b4a847f 1405 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1406#define __SVR4__ 1
1407EOF
1408
1409 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1410 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1411 ;;
1412 *-*-sunos4* )
1413 USE_SUN=1
1414 USE_SUNOS=1
1415 USE_BSD=1
7b4a847f 1416 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1417#define __SUN__ 1
1418EOF
1419
7b4a847f 1420 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1421#define __SUNOS__ 1
1422EOF
1423
7b4a847f 1424 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1425#define __BSD__ 1
1426EOF
1427
1428 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1429 ;;
f6bcfd97 1430 *-*-freebsd*)
10f2d63a
VZ
1431 USE_BSD=1
1432 USE_FREEBSD=1
7b4a847f 1433 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1434#define __FREEBSD__ 1
1435EOF
1436
7b4a847f 1437 cat >>confdefs.h <<\EOF
10f2d63a 1438#define __BSD__ 1
95c8801c
VS
1439EOF
1440
1441 DEFAULT_DEFAULT_wxUSE_GTK=1
1442 ;;
1443 *-*-openbsd*)
1444 USE_BSD=1
1445 USE_OPENBSD=1
7b4a847f 1446 cat >>confdefs.h <<\EOF
95c8801c
VS
1447#define __FREEBSD__ 1
1448EOF
1449
7b4a847f 1450 cat >>confdefs.h <<\EOF
95c8801c 1451#define __OPENBSD__ 1
f6bcfd97
BP
1452EOF
1453
1454 DEFAULT_DEFAULT_wxUSE_GTK=1
1455 ;;
1456 *-*-netbsd*)
1457 USE_BSD=1
1458 USE_NETBSD=1
7b4a847f 1459 cat >>confdefs.h <<\EOF
f6bcfd97
BP
1460#define __FREEBSD__ 1
1461EOF
1462
7b4a847f 1463 cat >>confdefs.h <<\EOF
f6bcfd97 1464#define __NETBSD__ 1
10f2d63a
VZ
1465EOF
1466
1467 DEFAULT_DEFAULT_wxUSE_GTK=1
1468 ;;
1469 *-*-osf* )
1470 USE_ALPHA=1
1471 USE_OSF=1
7b4a847f 1472 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1473#define __ALPHA__ 1
1474EOF
1475
7b4a847f 1476 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1477#define __OSF__ 1
1478EOF
1479
1480 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1481 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1482 ;;
1483 *-*-dgux5* )
1484 USE_ALPHA=1
1485 USE_SVR4=1
7b4a847f 1486 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1487#define __ALPHA__ 1
1488EOF
1489
7b4a847f 1490 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1491#define __SVR4__ 1
1492EOF
1493
1494 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1495 ;;
1496 *-*-sysv5* )
1497 USE_SYSV=1
1498 USE_SVR4=1
7b4a847f 1499 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1500#define __SYSV__ 1
1501EOF
1502
7b4a847f 1503 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1504#define __SVR4__ 1
1505EOF
1506
1507 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1508 ;;
1509 *-*-aix* )
1510 USE_AIX=1
1511 USE_SYSV=1
1512 USE_SVR4=1
321d2b14 1513 SO_SUFFIX=a
7b4a847f 1514 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1515#define __AIX__ 1
1516EOF
1517
7b4a847f 1518 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1519#define __SYSV__ 1
1520EOF
1521
7b4a847f 1522 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1523#define __SVR4__ 1
1524EOF
1525
1526 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1527 ;;
1528
1c8183e2 1529 *-*-cygwin* | *-*-mingw32* )
17234b26 1530 SO_SUFFIX=dll
cf27ef00 1531 PROGRAM_EXT=".exe"
7b7a7637 1532 RESCOMP=windres
10f2d63a
VZ
1533 DEFAULT_DEFAULT_wxUSE_MSW=1
1534 ;;
1535
f9bc1684
VS
1536 *-pc-msdosdjgpp )
1537 USE_UNIX=0
1538 USE_DOS=1
7b4a847f 1539 cat >>confdefs.h <<\EOF
f9bc1684
VS
1540#define __DOS__ 1
1541EOF
1542
1543 PROGRAM_EXT=".exe"
1544 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1545 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1546 ;;
1547
6fa882bd 1548 *-pc-os2_emx | *-pc-os2-emx )
7b4a847f 1549 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1550#define __EMX__ 1
1551EOF
1552
cf27ef00 1553 PROGRAM_EXT=".exe"
e07802fc 1554 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1555 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1556 ;;
1557
d08b457b
GD
1558 powerpc-*-darwin* )
1559 USE_BSD=1
f11bdd03 1560 USE_DARWIN=1
3a922bb4 1561 SO_SUFFIX=dylib
7b4a847f 1562 cat >>confdefs.h <<\EOF
f11bdd03 1563#define __BSD__ 1
b4085ce6
GD
1564EOF
1565
7b4a847f 1566 cat >>confdefs.h <<\EOF
f11bdd03 1567#define __DARWIN__ 1
d08b457b
GD
1568EOF
1569
7b4a847f 1570 cat >>confdefs.h <<\EOF
d08b457b 1571#define __POWERPC__ 1
b4085ce6
GD
1572EOF
1573
1574 DEFAULT_DEFAULT_wxUSE_MAC=1
1575 ;;
1576
b12915c1
VZ
1577 *-*-beos* )
1578 USE_BEOS=1
7b4a847f 1579 cat >>confdefs.h <<\EOF
b12915c1
VZ
1580#define __BEOS__ 1
1581EOF
1582
1583 ;;
1584
10f2d63a 1585 *)
7b4a847f
RR
1586 { { echo "$as_me:1586: error: unknown system type ${host}." >&5
1587echo "$as_me: error: unknown system type ${host}." >&2;}
1588 { (exit 1); exit 1; }; }
10f2d63a
VZ
1589esac
1590
579d8138
VS
1591 wx_arg_cache_file="configarg.cache"
1592 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1593 rm -f ${wx_arg_cache_file}.tmp
1594 touch ${wx_arg_cache_file}.tmp
1595 touch ${wx_arg_cache_file}
10f2d63a
VZ
1596
1597DEBUG_CONFIGURE=0
1598if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1599 DEFAULT_wxUSE_UNIVERSAL=no
1600
d8356fa3
VZ
1601 DEFAULT_wxUSE_NANOX=no
1602
10f2d63a
VZ
1603 DEFAULT_wxUSE_THREADS=yes
1604
1605 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1606 DEFAULT_wxUSE_SONAME=no
1e6feb95 1607 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1608 DEFAULT_wxUSE_PROFILE=no
1609 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1610 DEFAULT_wxUSE_NO_RTTI=no
1611 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1612 DEFAULT_wxUSE_PERMISSIVE=no
1613 DEFAULT_wxUSE_DEBUG_FLAG=yes
1614 DEFAULT_wxUSE_DEBUG_INFO=yes
1615 DEFAULT_wxUSE_DEBUG_GDB=yes
1616 DEFAULT_wxUSE_MEM_TRACING=no
1617 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1618 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1619 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1620 DEFAULT_wxUSE_APPLE_IEEE=no
1621
1622 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1623 DEFAULT_wxUSE_LOGWINDOW=no
1624 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1625 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1626
1627 DEFAULT_wxUSE_GUI=yes
1e6feb95 1628 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1629
3e44f09d 1630 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1631 DEFAULT_wxUSE_ZLIB=no
1632 DEFAULT_wxUSE_LIBPNG=no
1633 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1634 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1635 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1636 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1637
eb4efbdc 1638 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1639 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1640 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1641 DEFAULT_wxUSE_CMDLINE_PARSER=no
1642 DEFAULT_wxUSE_DATETIME=no
1643 DEFAULT_wxUSE_TIMEDATE=no
1644 DEFAULT_wxUSE_TIMER=no
1645 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1646 DEFAULT_wxUSE_FILE=no
1e6feb95 1647 DEFAULT_wxUSE_FFILE=no
a3a584a7 1648 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1649 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1650 DEFAULT_wxUSE_WAVE=no
1651 DEFAULT_wxUSE_INTL=no
1652 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1653 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1654 DEFAULT_wxUSE_STREAMS=no
1655 DEFAULT_wxUSE_SOCKETS=no
1656 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1657 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1658 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1659 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1660 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1661 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1662
1663 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1664 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1665 DEFAULT_wxUSE_POSTSCRIPT=no
1666
1667 DEFAULT_wxUSE_X_RESOURCES=no
1668 DEFAULT_wxUSE_CLIPBOARD=no
1669 DEFAULT_wxUSE_TOOLTIPS=no
1670 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1671 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1672 DEFAULT_wxUSE_SPLINES=no
1673
1674 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1675 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1676 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1677
1678 DEFAULT_wxUSE_PROLOGIO=no
1679 DEFAULT_wxUSE_RESOURCES=no
1680 DEFAULT_wxUSE_CONSTRAINTS=no
1681 DEFAULT_wxUSE_IPC=no
1682 DEFAULT_wxUSE_HELP=no
29fd3c0c 1683 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1684 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1685 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1686 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1687 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1688 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1689 DEFAULT_wxUSE_PROTOCOL=no
1690 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1691 DEFAULT_wxUSE_PROTOCOL_FTP=no
1692 DEFAULT_wxUSE_PROTOCOL_FILE=no
1693 DEFAULT_wxUSE_URL=no
3bd8fb5f 1694
10f2d63a 1695 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1696 DEFAULT_wxUSE_CHOICEDLG=no
1697 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1698 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1699 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1700 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1701 DEFAULT_wxUSE_FONTDLG=no
1702 DEFAULT_wxUSE_MSGDLG=no
1703 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1704 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1705 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1706 DEFAULT_wxUSE_STARTUP_TIPS=no
1707 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1708 DEFAULT_wxUSE_WIZARDDLG=no
1709
1e6feb95 1710 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1711 DEFAULT_wxUSE_MINIFRAME=no
1712 DEFAULT_wxUSE_HTML=no
24528b0c 1713 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1714 DEFAULT_wxUSE_FS_INET=no
1715 DEFAULT_wxUSE_FS_ZIP=no
1716 DEFAULT_wxUSE_BUSYINFO=no
1717 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1718 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1719
1720 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1721 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1722 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1723 DEFAULT_wxUSE_CALCTRL=no
1724 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1725 DEFAULT_wxUSE_CHECKBOX=no
1726 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1727 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1728 DEFAULT_wxUSE_COMBOBOX=no
1729 DEFAULT_wxUSE_GAUGE=no
1730 DEFAULT_wxUSE_GRID=no
1731 DEFAULT_wxUSE_NEW_GRID=no
1732 DEFAULT_wxUSE_IMAGLIST=no
1733 DEFAULT_wxUSE_LISTBOX=no
1734 DEFAULT_wxUSE_LISTCTRL=no
1735 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1736 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1737 DEFAULT_wxUSE_RADIOBOX=no
1738 DEFAULT_wxUSE_RADIOBTN=no
1739 DEFAULT_wxUSE_SASH=no
1740 DEFAULT_wxUSE_SCROLLBAR=no
1741 DEFAULT_wxUSE_SLIDER=no
1742 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1743 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1744 DEFAULT_wxUSE_SPLITTER=no
1745 DEFAULT_wxUSE_STATBMP=no
1746 DEFAULT_wxUSE_STATBOX=no
1747 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1748 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1749 DEFAULT_wxUSE_STATUSBAR=yes
1750 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1751 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1752 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1753 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1754 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1755 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1756 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1757 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1758 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1759
1760 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1761 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1762 DEFAULT_wxUSE_WCSRTOMBS=no
1763
edae8572 1764 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1765 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1766 DEFAULT_wxUSE_GIF=no
1767 DEFAULT_wxUSE_PCX=no
1768 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1769 DEFAULT_wxUSE_IFF=no
0046ff7c 1770 DEFAULT_wxUSE_XPM=no
658974ae 1771 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1772else
1e6feb95
VZ
1773 DEFAULT_wxUSE_UNIVERSAL=no
1774
d8356fa3
VZ
1775 DEFAULT_wxUSE_NANOX=no
1776
10f2d63a
VZ
1777 DEFAULT_wxUSE_THREADS=yes
1778
1779 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1780 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1781 DEFAULT_wxUSE_OPTIMISE=yes
1782 DEFAULT_wxUSE_PROFILE=no
1783 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1784 DEFAULT_wxUSE_NO_RTTI=no
1785 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1786 DEFAULT_wxUSE_PERMISSIVE=no
1787 DEFAULT_wxUSE_DEBUG_FLAG=no
1788 DEFAULT_wxUSE_DEBUG_INFO=no
1789 DEFAULT_wxUSE_DEBUG_GDB=no
1790 DEFAULT_wxUSE_MEM_TRACING=no
1791 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1792 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1793 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1794 DEFAULT_wxUSE_APPLE_IEEE=yes
1795
1796 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1797 DEFAULT_wxUSE_LOGWINDOW=yes
1798 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1799 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1800
1801 DEFAULT_wxUSE_GUI=yes
1802
831b3152 1803 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1804 DEFAULT_wxUSE_ZLIB=yes
1805 DEFAULT_wxUSE_LIBPNG=yes
1806 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1807 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1808 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1809 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1810
eb4efbdc 1811 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1812 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1813 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1814 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1815 DEFAULT_wxUSE_DATETIME=yes
1816 DEFAULT_wxUSE_TIMEDATE=no
1817 DEFAULT_wxUSE_TIMER=yes
1818 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1819 DEFAULT_wxUSE_FILE=yes
1e6feb95 1820 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1821 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1822 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1823 DEFAULT_wxUSE_WAVE=no
1824 DEFAULT_wxUSE_INTL=yes
1825 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1826 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1827 DEFAULT_wxUSE_STREAMS=yes
1828 DEFAULT_wxUSE_SOCKETS=yes
1829 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1830 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1831 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1832 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1833 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1834 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1835
1836 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1837 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1838 DEFAULT_wxUSE_POSTSCRIPT=yes
1839
1840 DEFAULT_wxUSE_X_RESOURCES=no
1841 DEFAULT_wxUSE_CLIPBOARD=yes
1842 DEFAULT_wxUSE_TOOLTIPS=yes
1843 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1844 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1845 DEFAULT_wxUSE_SPLINES=yes
1846
1847 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1848 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1849 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1850
1851 DEFAULT_wxUSE_PROLOGIO=yes
1852 DEFAULT_wxUSE_RESOURCES=yes
1853 DEFAULT_wxUSE_CONSTRAINTS=yes
1854 DEFAULT_wxUSE_IPC=yes
1855 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1856 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1857 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1858 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1859 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1860 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1861 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1862 DEFAULT_wxUSE_PROTOCOL=yes
1863 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1864 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1865 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1866 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1867
1868 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1869 DEFAULT_wxUSE_CHOICEDLG=yes
1870 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1871 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1872 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1873 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1874 DEFAULT_wxUSE_FONTDLG=yes
1875 DEFAULT_wxUSE_MSGDLG=yes
1876 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1877 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1878 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1879 DEFAULT_wxUSE_STARTUP_TIPS=yes
1880 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1881 DEFAULT_wxUSE_WIZARDDLG=yes
1882
1e6feb95 1883 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1884 DEFAULT_wxUSE_MINIFRAME=yes
1885 DEFAULT_wxUSE_HTML=yes
24528b0c 1886 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1887 DEFAULT_wxUSE_FS_INET=yes
1888 DEFAULT_wxUSE_FS_ZIP=yes
1889 DEFAULT_wxUSE_BUSYINFO=yes
1890 DEFAULT_wxUSE_ZIPSTREAM=yes
1891 DEFAULT_wxUSE_VALIDATORS=yes
1892
1893 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1894 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1895 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1896 DEFAULT_wxUSE_CALCTRL=yes
1897 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1898 DEFAULT_wxUSE_CHECKBOX=yes
1899 DEFAULT_wxUSE_CHECKLST=yes
1900 DEFAULT_wxUSE_CHOICE=yes
1901 DEFAULT_wxUSE_COMBOBOX=yes
1902 DEFAULT_wxUSE_GAUGE=yes
1903 DEFAULT_wxUSE_GRID=yes
cc977e5f 1904 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1905 DEFAULT_wxUSE_IMAGLIST=yes
1906 DEFAULT_wxUSE_LISTBOX=yes
1907 DEFAULT_wxUSE_LISTCTRL=yes
1908 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1909 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1910 DEFAULT_wxUSE_RADIOBOX=yes
1911 DEFAULT_wxUSE_RADIOBTN=yes
1912 DEFAULT_wxUSE_SASH=yes
1913 DEFAULT_wxUSE_SCROLLBAR=yes
1914 DEFAULT_wxUSE_SLIDER=yes
1915 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1916 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1917 DEFAULT_wxUSE_SPLITTER=yes
1918 DEFAULT_wxUSE_STATBMP=yes
1919 DEFAULT_wxUSE_STATBOX=yes
1920 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1921 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1922 DEFAULT_wxUSE_STATUSBAR=yes
1923 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1924 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1925 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1926 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1927 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1928 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1929 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1930 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1931 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1932
1933 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1934 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1935 DEFAULT_wxUSE_WCSRTOMBS=no
1936
edae8572 1937 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1938 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1939 DEFAULT_wxUSE_GIF=yes
1940 DEFAULT_wxUSE_PCX=yes
cc0e8480 1941 DEFAULT_wxUSE_IFF=no
10f2d63a 1942 DEFAULT_wxUSE_PNM=yes
0046ff7c 1943 DEFAULT_wxUSE_XPM=yes
658974ae 1944 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1945fi
1946
10f2d63a
VZ
1947for toolkit in `echo $ALL_TOOLKITS`; do
1948 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1949 if test "x$LINE" != x ; then
1950 has_toolkit_in_cache=1
1951 eval "DEFAULT_$LINE"
1952 eval "CACHE_$toolkit=1"
1953 fi
1954done
1955
7b4a847f
RR
1956 echo "$as_me:1956: checking for --enable-gui" >&5
1957echo $ECHO_N "checking for --enable-gui... $ECHO_C" >&6
10f2d63a
VZ
1958 no_cache=0
1959 # Check whether --enable-gui or --disable-gui was given.
1960if test "${enable_gui+set}" = set; then
1961 enableval="$enable_gui"
7b4a847f 1962
10f2d63a
VZ
1963 if test "$enableval" = yes; then
1964 ac_cv_use_gui='wxUSE_GUI=yes'
1965 else
1966 ac_cv_use_gui='wxUSE_GUI=no'
1967 fi
7b4a847f 1968
10f2d63a 1969else
7b4a847f 1970
10f2d63a
VZ
1971 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1972 if test "x$LINE" != x ; then
1973 eval "DEFAULT_$LINE"
1974 else
1975 no_cache=1
1976 fi
1977
1978 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 1979
7b4a847f 1980fi;
10f2d63a
VZ
1981
1982 eval "$ac_cv_use_gui"
1983 if test "$no_cache" != 1; then
1984 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1985 fi
1986
1987 if test "$wxUSE_GUI" = yes; then
7b4a847f
RR
1988 echo "$as_me:1988: result: yes" >&5
1989echo "${ECHO_T}yes" >&6
10f2d63a 1990 else
7b4a847f
RR
1991 echo "$as_me:1991: result: no" >&5
1992echo "${ECHO_T}no" >&6
10f2d63a 1993 fi
10f2d63a 1994
b12915c1 1995if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1996
7b4a847f
RR
1997 echo "$as_me:1997: checking for --enable-universal" >&5
1998echo $ECHO_N "checking for --enable-universal... $ECHO_C" >&6
1e6feb95
VZ
1999 no_cache=0
2000 # Check whether --enable-universal or --disable-universal was given.
2001if test "${enable_universal+set}" = set; then
2002 enableval="$enable_universal"
7b4a847f 2003
1e6feb95
VZ
2004 if test "$enableval" = yes; then
2005 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2006 else
2007 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2008 fi
7b4a847f 2009
1e6feb95 2010else
7b4a847f 2011
1e6feb95
VZ
2012 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2013 if test "x$LINE" != x ; then
2014 eval "DEFAULT_$LINE"
2015 else
2016 no_cache=1
2017 fi
2018
2019 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2020
7b4a847f 2021fi;
1e6feb95
VZ
2022
2023 eval "$ac_cv_use_universal"
2024 if test "$no_cache" != 1; then
2025 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2026 fi
2027
2028 if test "$wxUSE_UNIVERSAL" = yes; then
7b4a847f
RR
2029 echo "$as_me:2029: result: yes" >&5
2030echo "${ECHO_T}yes" >&6
1e6feb95 2031 else
7b4a847f
RR
2032 echo "$as_me:2032: result: no" >&5
2033echo "${ECHO_T}no" >&6
1e6feb95 2034 fi
7b4a847f 2035
10f2d63a
VZ
2036# Check whether --with-gtk or --without-gtk was given.
2037if test "${with_gtk+set}" = set; then
2038 withval="$with_gtk"
2039 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
7b4a847f 2040fi;
10f2d63a
VZ
2041
2042# Check whether --with-motif or --without-motif was given.
2043if test "${with_motif+set}" = set; then
2044 withval="$with_motif"
2045 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
7b4a847f 2046fi;
10f2d63a 2047
b4085ce6
GD
2048# Check whether --with-mac or --without-mac was given.
2049if test "${with_mac+set}" = set; then
2050 withval="$with_mac"
2051 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
7b4a847f 2052fi;
b4085ce6 2053
10f2d63a
VZ
2054# Check whether --with-wine or --without-wine was given.
2055if test "${with_wine+set}" = set; then
2056 withval="$with_wine"
2057 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
7b4a847f 2058fi;
10f2d63a 2059
77e13408
RL
2060# Check whether --with-msw or --without-msw was given.
2061if test "${with_msw+set}" = set; then
2062 withval="$with_msw"
b4efce5e 2063 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
7b4a847f 2064fi;
10f2d63a 2065
e07802fc
VZ
2066# Check whether --with-pm or --without-pm was given.
2067if test "${with_pm+set}" = set; then
2068 withval="$with_pm"
2069 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
7b4a847f 2070fi;
698dcdb6 2071
1e6feb95
VZ
2072# Check whether --with-mgl or --without-mgl was given.
2073if test "${with_mgl+set}" = set; then
2074 withval="$with_mgl"
6c657b52 2075 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
7b4a847f 2076fi;
1e6feb95 2077
1725144d
RR
2078# Check whether --with-microwin or --without-microwin was given.
2079if test "${with_microwin+set}" = set; then
2080 withval="$with_microwin"
2081 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
7b4a847f 2082fi;
1725144d 2083
f79bd02d
JS
2084# Check whether --with-x11 or --without-x11 was given.
2085if test "${with_x11+set}" = set; then
2086 withval="$with_x11"
3c011993 2087 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
7b4a847f 2088fi;
10f2d63a 2089
7b4a847f
RR
2090 echo "$as_me:2090: checking for --enable-nanox" >&5
2091echo $ECHO_N "checking for --enable-nanox... $ECHO_C" >&6
d8356fa3 2092 no_cache=0
ba875e66
VZ
2093 # Check whether --enable-nanox or --disable-nanox was given.
2094if test "${enable_nanox+set}" = set; then
2095 enableval="$enable_nanox"
7b4a847f 2096
d8356fa3 2097 if test "$enableval" = yes; then
ba875e66 2098 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2099 else
ba875e66 2100 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2101 fi
7b4a847f 2102
d8356fa3 2103else
7b4a847f 2104
d8356fa3
VZ
2105 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
ba875e66 2112 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2113
7b4a847f 2114fi;
d8356fa3 2115
ba875e66 2116 eval "$ac_cv_use_nanox"
d8356fa3 2117 if test "$no_cache" != 1; then
ba875e66 2118 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2119 fi
2120
2121 if test "$wxUSE_NANOX" = yes; then
7b4a847f
RR
2122 echo "$as_me:2122: result: yes" >&5
2123echo "${ECHO_T}yes" >&6
d8356fa3 2124 else
7b4a847f
RR
2125 echo "$as_me:2125: result: no" >&5
2126echo "${ECHO_T}no" >&6
d8356fa3 2127 fi
d8356fa3 2128
8168de4c
VZ
2129# Check whether --enable-gtk2 or --disable-gtk2 was given.
2130if test "${enable_gtk2+set}" = set; then
2131 enableval="$enable_gtk2"
9e691f46 2132 wxUSE_GTK2="yes"
10f2d63a 2133else
9e691f46 2134 wxUSE_GTK2="no"
7b4a847f 2135fi;
328a083c 2136
7b4a847f
RR
2137 echo "$as_me:2137: checking for --with-libpng" >&5
2138echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
579d8138 2139 no_cache=0
7b4a847f
RR
2140
2141# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2142if test "${with_libpng+set}" = set; then
2143 withval="$with_libpng"
7b4a847f 2144
10f2d63a 2145 if test "$withval" = yes; then
b12915c1 2146 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2147 elif test "$withval" = no; then
b12915c1 2148 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2149 elif test "$withval" = sys; then
2150 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2151 elif test "$withval" = builtin; then
2152 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2153 else
7b4a847f
RR
2154 { { echo "$as_me:2154: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2155echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2156 { (exit 1); exit 1; }; }
10f2d63a 2157 fi
7b4a847f 2158
10f2d63a 2159else
7b4a847f 2160
b12915c1 2161 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2162 if test "x$LINE" != x ; then
2163 eval "DEFAULT_$LINE"
2164 else
2165 no_cache=1
2166 fi
2167
b12915c1 2168 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2169
7b4a847f 2170fi;
10f2d63a 2171
b12915c1 2172 eval "$ac_cv_use_libpng"
10f2d63a 2173 if test "$no_cache" != 1; then
b12915c1 2174 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2175 fi
2176
b12915c1 2177 if test "$wxUSE_LIBPNG" = yes; then
7b4a847f
RR
2178 echo "$as_me:2178: result: yes" >&5
2179echo "${ECHO_T}yes" >&6
422107f9 2180 elif test "$wxUSE_LIBPNG" = no; then
7b4a847f
RR
2181 echo "$as_me:2181: result: no" >&5
2182echo "${ECHO_T}no" >&6
422107f9 2183 elif test "$wxUSE_LIBPNG" = sys; then
7b4a847f
RR
2184 echo "$as_me:2184: result: system version" >&5
2185echo "${ECHO_T}system version" >&6
4f14bcd8 2186 elif test "$wxUSE_LIBPNG" = builtin; then
7b4a847f
RR
2187 echo "$as_me:2187: result: builtin version" >&5
2188echo "${ECHO_T}builtin version" >&6
422107f9 2189 else
7b4a847f
RR
2190 { { echo "$as_me:2190: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2191echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2192 { (exit 1); exit 1; }; }
10f2d63a 2193 fi
10f2d63a 2194
7b4a847f
RR
2195 echo "$as_me:2195: checking for --with-libjpeg" >&5
2196echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2197 no_cache=0
7b4a847f
RR
2198
2199# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2200if test "${with_libjpeg+set}" = set; then
2201 withval="$with_libjpeg"
7b4a847f 2202
10f2d63a 2203 if test "$withval" = yes; then
b12915c1 2204 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2205 elif test "$withval" = no; then
b12915c1 2206 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2207 elif test "$withval" = sys; then
2208 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2209 elif test "$withval" = builtin; then
2210 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2211 else
7b4a847f
RR
2212 { { echo "$as_me:2212: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2213echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2214 { (exit 1); exit 1; }; }
10f2d63a 2215 fi
7b4a847f 2216
10f2d63a 2217else
7b4a847f 2218
b12915c1 2219 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2220 if test "x$LINE" != x ; then
2221 eval "DEFAULT_$LINE"
2222 else
2223 no_cache=1
2224 fi
2225
b12915c1 2226 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2227
7b4a847f 2228fi;
10f2d63a 2229
b12915c1 2230 eval "$ac_cv_use_libjpeg"
10f2d63a 2231 if test "$no_cache" != 1; then
b12915c1 2232 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2233 fi
2234
b12915c1 2235 if test "$wxUSE_LIBJPEG" = yes; then
7b4a847f
RR
2236 echo "$as_me:2236: result: yes" >&5
2237echo "${ECHO_T}yes" >&6
422107f9 2238 elif test "$wxUSE_LIBJPEG" = no; then
7b4a847f
RR
2239 echo "$as_me:2239: result: no" >&5
2240echo "${ECHO_T}no" >&6
422107f9 2241 elif test "$wxUSE_LIBJPEG" = sys; then
7b4a847f
RR
2242 echo "$as_me:2242: result: system version" >&5
2243echo "${ECHO_T}system version" >&6
4f14bcd8 2244 elif test "$wxUSE_LIBJPEG" = builtin; then
7b4a847f
RR
2245 echo "$as_me:2245: result: builtin version" >&5
2246echo "${ECHO_T}builtin version" >&6
422107f9 2247 else
7b4a847f
RR
2248 { { echo "$as_me:2248: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2249echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2250 { (exit 1); exit 1; }; }
10f2d63a 2251 fi
10f2d63a 2252
7b4a847f
RR
2253 echo "$as_me:2253: checking for --with-libtiff" >&5
2254echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2255 no_cache=0
7b4a847f
RR
2256
2257# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2258if test "${with_libtiff+set}" = set; then
2259 withval="$with_libtiff"
7b4a847f 2260
10f2d63a 2261 if test "$withval" = yes; then
b12915c1 2262 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2263 elif test "$withval" = no; then
b12915c1 2264 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2265 elif test "$withval" = sys; then
2266 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2267 elif test "$withval" = builtin; then
2268 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2269 else
7b4a847f
RR
2270 { { echo "$as_me:2270: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2271echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2272 { (exit 1); exit 1; }; }
10f2d63a 2273 fi
7b4a847f 2274
10f2d63a 2275else
7b4a847f 2276
b12915c1 2277 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2278 if test "x$LINE" != x ; then
2279 eval "DEFAULT_$LINE"
2280 else
2281 no_cache=1
2282 fi
2283
b12915c1 2284 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2285
7b4a847f 2286fi;
10f2d63a 2287
b12915c1 2288 eval "$ac_cv_use_libtiff"
10f2d63a 2289 if test "$no_cache" != 1; then
b12915c1 2290 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2291 fi
2292
b12915c1 2293 if test "$wxUSE_LIBTIFF" = yes; then
7b4a847f
RR
2294 echo "$as_me:2294: result: yes" >&5
2295echo "${ECHO_T}yes" >&6
0dcf9893 2296 elif test "$wxUSE_LIBTIFF" = no; then
7b4a847f
RR
2297 echo "$as_me:2297: result: no" >&5
2298echo "${ECHO_T}no" >&6
0dcf9893 2299 elif test "$wxUSE_LIBTIFF" = sys; then
7b4a847f
RR
2300 echo "$as_me:2300: result: system version" >&5
2301echo "${ECHO_T}system version" >&6
4f14bcd8 2302 elif test "$wxUSE_LIBTIFF" = builtin; then
7b4a847f
RR
2303 echo "$as_me:2303: result: builtin version" >&5
2304echo "${ECHO_T}builtin version" >&6
0dcf9893 2305 else
7b4a847f
RR
2306 { { echo "$as_me:2306: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2307echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2308 { (exit 1); exit 1; }; }
10f2d63a 2309 fi
10f2d63a 2310
7b4a847f
RR
2311 echo "$as_me:2311: checking for --with-opengl" >&5
2312echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2313 no_cache=0
7b4a847f
RR
2314
2315# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2316if test "${with_opengl+set}" = set; then
2317 withval="$with_opengl"
7b4a847f 2318
10f2d63a 2319 if test "$withval" = yes; then
b12915c1 2320 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2321 else
b12915c1 2322 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2323 fi
7b4a847f 2324
10f2d63a 2325else
7b4a847f 2326
b12915c1 2327 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2328 if test "x$LINE" != x ; then
2329 eval "DEFAULT_$LINE"
2330 else
2331 no_cache=1
2332 fi
2333
b12915c1 2334 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2335
7b4a847f 2336fi;
10f2d63a 2337
b12915c1 2338 eval "$ac_cv_use_opengl"
10f2d63a 2339 if test "$no_cache" != 1; then
b12915c1 2340 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2341 fi
2342
b12915c1 2343 if test "$wxUSE_OPENGL" = yes; then
7b4a847f
RR
2344 echo "$as_me:2344: result: yes" >&5
2345echo "${ECHO_T}yes" >&6
10f2d63a 2346 else
7b4a847f
RR
2347 echo "$as_me:2347: result: no" >&5
2348echo "${ECHO_T}no" >&6
10f2d63a 2349 fi
10f2d63a 2350
b12915c1
VZ
2351fi
2352
7b4a847f
RR
2353 echo "$as_me:2353: checking for --with-dmalloc" >&5
2354echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
579d8138 2355 no_cache=0
7b4a847f
RR
2356
2357# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2358if test "${with_dmalloc+set}" = set; then
2359 withval="$with_dmalloc"
7b4a847f 2360
c7a2bf27 2361 if test "$withval" = yes; then
b12915c1 2362 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2363 else
b12915c1 2364 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2365 fi
7b4a847f 2366
c7a2bf27 2367else
7b4a847f 2368
b12915c1 2369 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2370 if test "x$LINE" != x ; then
2371 eval "DEFAULT_$LINE"
2372 else
2373 no_cache=1
2374 fi
2375
b12915c1 2376 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2377
7b4a847f 2378fi;
c7a2bf27 2379
b12915c1 2380 eval "$ac_cv_use_dmalloc"
c7a2bf27 2381 if test "$no_cache" != 1; then
b12915c1 2382 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2383 fi
2384
b12915c1 2385 if test "$wxUSE_DMALLOC" = yes; then
7b4a847f
RR
2386 echo "$as_me:2386: result: yes" >&5
2387echo "${ECHO_T}yes" >&6
c7a2bf27 2388 else
7b4a847f
RR
2389 echo "$as_me:2389: result: no" >&5
2390echo "${ECHO_T}no" >&6
c7a2bf27 2391 fi
c7a2bf27 2392
7b4a847f
RR
2393 echo "$as_me:2393: checking for --with-regex" >&5
2394echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2395 no_cache=0
7b4a847f
RR
2396
2397# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2398if test "${with_regex+set}" = set; then
2399 withval="$with_regex"
7b4a847f 2400
3e44f09d
VZ
2401 if test "$withval" = yes; then
2402 ac_cv_use_regex='wxUSE_REGEX=yes'
2403 elif test "$withval" = no; then
2404 ac_cv_use_regex='wxUSE_REGEX=no'
2405 elif test "$withval" = sys; then
2406 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2407 elif test "$withval" = builtin; then
2408 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2409 else
7b4a847f
RR
2410 { { echo "$as_me:2410: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2411echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2412 { (exit 1); exit 1; }; }
3e44f09d 2413 fi
7b4a847f 2414
3e44f09d 2415else
7b4a847f 2416
3e44f09d
VZ
2417 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2418 if test "x$LINE" != x ; then
2419 eval "DEFAULT_$LINE"
2420 else
2421 no_cache=1
2422 fi
2423
2424 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2425
7b4a847f 2426fi;
3e44f09d
VZ
2427
2428 eval "$ac_cv_use_regex"
2429 if test "$no_cache" != 1; then
2430 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2431 fi
2432
2433 if test "$wxUSE_REGEX" = yes; then
7b4a847f
RR
2434 echo "$as_me:2434: result: yes" >&5
2435echo "${ECHO_T}yes" >&6
3e44f09d 2436 elif test "$wxUSE_REGEX" = no; then
7b4a847f
RR
2437 echo "$as_me:2437: result: no" >&5
2438echo "${ECHO_T}no" >&6
3e44f09d 2439 elif test "$wxUSE_REGEX" = sys; then
7b4a847f
RR
2440 echo "$as_me:2440: result: system version" >&5
2441echo "${ECHO_T}system version" >&6
4f14bcd8 2442 elif test "$wxUSE_REGEX" = builtin; then
7b4a847f
RR
2443 echo "$as_me:2443: result: builtin version" >&5
2444echo "${ECHO_T}builtin version" >&6
3e44f09d 2445 else
7b4a847f
RR
2446 { { echo "$as_me:2446: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2447echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2448 { (exit 1); exit 1; }; }
3e44f09d 2449 fi
3e44f09d 2450
7b4a847f
RR
2451 echo "$as_me:2451: checking for --with-zlib" >&5
2452echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2453 no_cache=0
7b4a847f
RR
2454
2455# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2456if test "${with_zlib+set}" = set; then
2457 withval="$with_zlib"
7b4a847f 2458
10f2d63a 2459 if test "$withval" = yes; then
b12915c1 2460 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2461 elif test "$withval" = no; then
b12915c1 2462 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2463 elif test "$withval" = sys; then
2464 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2465 elif test "$withval" = builtin; then
2466 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2467 else
7b4a847f
RR
2468 { { echo "$as_me:2468: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2469echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2470 { (exit 1); exit 1; }; }
10f2d63a 2471 fi
7b4a847f 2472
10f2d63a 2473else
7b4a847f 2474
b12915c1 2475 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2476 if test "x$LINE" != x ; then
2477 eval "DEFAULT_$LINE"
2478 else
2479 no_cache=1
2480 fi
2481
b12915c1 2482 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2483
7b4a847f 2484fi;
10f2d63a 2485
b12915c1 2486 eval "$ac_cv_use_zlib"
10f2d63a 2487 if test "$no_cache" != 1; then
b12915c1 2488 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2489 fi
2490
b12915c1 2491 if test "$wxUSE_ZLIB" = yes; then
7b4a847f
RR
2492 echo "$as_me:2492: result: yes" >&5
2493echo "${ECHO_T}yes" >&6
422107f9 2494 elif test "$wxUSE_ZLIB" = no; then
7b4a847f
RR
2495 echo "$as_me:2495: result: no" >&5
2496echo "${ECHO_T}no" >&6
422107f9 2497 elif test "$wxUSE_ZLIB" = sys; then
7b4a847f
RR
2498 echo "$as_me:2498: result: system version" >&5
2499echo "${ECHO_T}system version" >&6
4f14bcd8 2500 elif test "$wxUSE_ZLIB" = builtin; then
7b4a847f
RR
2501 echo "$as_me:2501: result: builtin version" >&5
2502echo "${ECHO_T}builtin version" >&6
422107f9 2503 else
7b4a847f
RR
2504 { { echo "$as_me:2504: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2505echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2506 { (exit 1); exit 1; }; }
10f2d63a 2507 fi
10f2d63a 2508
7b4a847f
RR
2509 echo "$as_me:2509: checking for --with-odbc" >&5
2510echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2511 no_cache=0
7b4a847f
RR
2512
2513# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2514if test "${with_odbc+set}" = set; then
2515 withval="$with_odbc"
7b4a847f 2516
10f2d63a
VZ
2517 if test "$withval" = yes; then
2518 ac_cv_use_odbc='wxUSE_ODBC=yes'
2519 else
2520 ac_cv_use_odbc='wxUSE_ODBC=no'
2521 fi
7b4a847f 2522
10f2d63a 2523else
7b4a847f 2524
10f2d63a
VZ
2525 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2526 if test "x$LINE" != x ; then
2527 eval "DEFAULT_$LINE"
2528 else
2529 no_cache=1
2530 fi
2531
2532 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2533
7b4a847f 2534fi;
10f2d63a
VZ
2535
2536 eval "$ac_cv_use_odbc"
2537 if test "$no_cache" != 1; then
2538 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2539 fi
2540
2541 if test "$wxUSE_ODBC" = yes; then
7b4a847f
RR
2542 echo "$as_me:2542: result: yes" >&5
2543echo "${ECHO_T}yes" >&6
10f2d63a 2544 else
7b4a847f
RR
2545 echo "$as_me:2545: result: no" >&5
2546echo "${ECHO_T}no" >&6
10f2d63a 2547 fi
698dcdb6 2548
7b4a847f
RR
2549 echo "$as_me:2549: checking for --enable-shared" >&5
2550echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
10f2d63a
VZ
2551 no_cache=0
2552 # Check whether --enable-shared or --disable-shared was given.
2553if test "${enable_shared+set}" = set; then
2554 enableval="$enable_shared"
7b4a847f 2555
10f2d63a
VZ
2556 if test "$enableval" = yes; then
2557 ac_cv_use_shared='wxUSE_SHARED=yes'
2558 else
2559 ac_cv_use_shared='wxUSE_SHARED=no'
2560 fi
7b4a847f 2561
10f2d63a 2562else
7b4a847f 2563
10f2d63a
VZ
2564 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 2572
7b4a847f 2573fi;
10f2d63a
VZ
2574
2575 eval "$ac_cv_use_shared"
2576 if test "$no_cache" != 1; then
2577 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2578 fi
2579
2580 if test "$wxUSE_SHARED" = yes; then
7b4a847f
RR
2581 echo "$as_me:2581: result: yes" >&5
2582echo "${ECHO_T}yes" >&6
10f2d63a 2583 else
7b4a847f
RR
2584 echo "$as_me:2584: result: no" >&5
2585echo "${ECHO_T}no" >&6
10f2d63a 2586 fi
10f2d63a 2587
7b4a847f
RR
2588 echo "$as_me:2588: checking for --enable-soname" >&5
2589echo $ECHO_N "checking for --enable-soname... $ECHO_C" >&6
00cf1208 2590 no_cache=0
3a922bb4
RL
2591 # Check whether --enable-soname or --disable-soname was given.
2592if test "${enable_soname+set}" = set; then
2593 enableval="$enable_soname"
7b4a847f 2594
00cf1208 2595 if test "$enableval" = yes; then
3a922bb4 2596 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2597 else
3a922bb4 2598 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2599 fi
7b4a847f 2600
00cf1208 2601else
7b4a847f 2602
3a922bb4 2603 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2604 if test "x$LINE" != x ; then
2605 eval "DEFAULT_$LINE"
2606 else
2607 no_cache=1
2608 fi
2609
3a922bb4 2610 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
00cf1208 2611
7b4a847f 2612fi;
00cf1208 2613
3a922bb4 2614 eval "$ac_cv_use_soname"
00cf1208 2615 if test "$no_cache" != 1; then
3a922bb4 2616 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2617 fi
2618
3a922bb4 2619 if test "$wxUSE_SONAME" = yes; then
7b4a847f
RR
2620 echo "$as_me:2620: result: yes" >&5
2621echo "${ECHO_T}yes" >&6
00cf1208 2622 else
7b4a847f
RR
2623 echo "$as_me:2623: result: no" >&5
2624echo "${ECHO_T}no" >&6
00cf1208 2625 fi
00cf1208 2626
7b4a847f
RR
2627 echo "$as_me:2627: checking for --enable-optimise" >&5
2628echo $ECHO_N "checking for --enable-optimise... $ECHO_C" >&6
10f2d63a
VZ
2629 no_cache=0
2630 # Check whether --enable-optimise or --disable-optimise was given.
2631if test "${enable_optimise+set}" = set; then
2632 enableval="$enable_optimise"
7b4a847f 2633
10f2d63a
VZ
2634 if test "$enableval" = yes; then
2635 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2636 else
2637 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2638 fi
7b4a847f 2639
10f2d63a 2640else
7b4a847f 2641
10f2d63a
VZ
2642 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 2650
7b4a847f 2651fi;
10f2d63a
VZ
2652
2653 eval "$ac_cv_use_optimise"
2654 if test "$no_cache" != 1; then
2655 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2656 fi
2657
2658 if test "$wxUSE_OPTIMISE" = yes; then
7b4a847f
RR
2659 echo "$as_me:2659: result: yes" >&5
2660echo "${ECHO_T}yes" >&6
10f2d63a 2661 else
7b4a847f
RR
2662 echo "$as_me:2662: result: no" >&5
2663echo "${ECHO_T}no" >&6
10f2d63a 2664 fi
10f2d63a 2665
7b4a847f
RR
2666 echo "$as_me:2666: checking for --enable-debug" >&5
2667echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
10f2d63a
VZ
2668 no_cache=0
2669 # Check whether --enable-debug or --disable-debug was given.
2670if test "${enable_debug+set}" = set; then
2671 enableval="$enable_debug"
7b4a847f 2672
10f2d63a
VZ
2673 if test "$enableval" = yes; then
2674 ac_cv_use_debug='wxUSE_DEBUG=yes'
2675 else
2676 ac_cv_use_debug='wxUSE_DEBUG=no'
2677 fi
7b4a847f 2678
10f2d63a 2679else
7b4a847f 2680
10f2d63a
VZ
2681 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2682 if test "x$LINE" != x ; then
2683 eval "DEFAULT_$LINE"
2684 else
2685 no_cache=1
2686 fi
2687
2688 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 2689
7b4a847f 2690fi;
10f2d63a
VZ
2691
2692 eval "$ac_cv_use_debug"
2693 if test "$no_cache" != 1; then
2694 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2695 fi
2696
2697 if test "$wxUSE_DEBUG" = yes; then
7b4a847f
RR
2698 echo "$as_me:2698: result: yes" >&5
2699echo "${ECHO_T}yes" >&6
10f2d63a 2700 else
7b4a847f
RR
2701 echo "$as_me:2701: result: no" >&5
2702echo "${ECHO_T}no" >&6
10f2d63a 2703 fi
10f2d63a 2704
7b4a847f
RR
2705 echo "$as_me:2705: checking for --enable-precomp" >&5
2706echo $ECHO_N "checking for --enable-precomp... $ECHO_C" >&6
683dccda
GD
2707 no_cache=0
2708 # Check whether --enable-precomp or --disable-precomp was given.
2709if test "${enable_precomp+set}" = set; then
2710 enableval="$enable_precomp"
7b4a847f 2711
683dccda
GD
2712 if test "$enableval" = yes; then
2713 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2714 else
2715 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2716 fi
7b4a847f 2717
683dccda 2718else
7b4a847f 2719
683dccda
GD
2720 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2721 if test "x$LINE" != x ; then
2722 eval "DEFAULT_$LINE"
2723 else
2724 no_cache=1
2725 fi
2726
2727 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
683dccda 2728
7b4a847f 2729fi;
683dccda
GD
2730
2731 eval "$ac_cv_use_precomp"
2732 if test "$no_cache" != 1; then
2733 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2734 fi
2735
2736 if test "$wxUSE_PRECOMP" = yes; then
7b4a847f
RR
2737 echo "$as_me:2737: result: yes" >&5
2738echo "${ECHO_T}yes" >&6
683dccda 2739 else
7b4a847f
RR
2740 echo "$as_me:2740: result: no" >&5
2741echo "${ECHO_T}no" >&6
683dccda 2742 fi
683dccda 2743
10f2d63a
VZ
2744if test "$wxUSE_DEBUG" = "yes"; then
2745 DEFAULT_wxUSE_DEBUG_FLAG=yes
2746 DEFAULT_wxUSE_DEBUG_INFO=yes
2747elif test "$wxUSE_DEBUG" = "no"; then
2748 DEFAULT_wxUSE_DEBUG_FLAG=no
2749 DEFAULT_wxUSE_DEBUG_INFO=no
2750fi
2751
7b4a847f
RR
2752 echo "$as_me:2752: checking for --enable-debug_flag" >&5
2753echo $ECHO_N "checking for --enable-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
2754 no_cache=0
2755 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2756if test "${enable_debug_flag+set}" = set; then
2757 enableval="$enable_debug_flag"
7b4a847f 2758
10f2d63a
VZ
2759 if test "$enableval" = yes; then
2760 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2761 else
2762 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2763 fi
7b4a847f 2764
10f2d63a 2765else
7b4a847f 2766
10f2d63a
VZ
2767 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2768 if test "x$LINE" != x ; then
2769 eval "DEFAULT_$LINE"
2770 else
2771 no_cache=1
2772 fi
2773
2774 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 2775
7b4a847f 2776fi;
10f2d63a
VZ
2777
2778 eval "$ac_cv_use_debug_flag"
2779 if test "$no_cache" != 1; then
2780 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2781 fi
2782
2783 if test "$wxUSE_DEBUG_FLAG" = yes; then
7b4a847f
RR
2784 echo "$as_me:2784: result: yes" >&5
2785echo "${ECHO_T}yes" >&6
10f2d63a 2786 else
7b4a847f
RR
2787 echo "$as_me:2787: result: no" >&5
2788echo "${ECHO_T}no" >&6
10f2d63a 2789 fi
10f2d63a 2790
7b4a847f
RR
2791 echo "$as_me:2791: checking for --enable-debug_info" >&5
2792echo $ECHO_N "checking for --enable-debug_info... $ECHO_C" >&6
10f2d63a
VZ
2793 no_cache=0
2794 # Check whether --enable-debug_info or --disable-debug_info was given.
2795if test "${enable_debug_info+set}" = set; then
2796 enableval="$enable_debug_info"
7b4a847f 2797
10f2d63a
VZ
2798 if test "$enableval" = yes; then
2799 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2800 else
2801 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2802 fi
7b4a847f 2803
10f2d63a 2804else
7b4a847f 2805
10f2d63a
VZ
2806 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2807 if test "x$LINE" != x ; then
2808 eval "DEFAULT_$LINE"
2809 else
2810 no_cache=1
2811 fi
2812
2813 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 2814
7b4a847f 2815fi;
10f2d63a
VZ
2816
2817 eval "$ac_cv_use_debug_info"
2818 if test "$no_cache" != 1; then
2819 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2820 fi
2821
2822 if test "$wxUSE_DEBUG_INFO" = yes; then
7b4a847f
RR
2823 echo "$as_me:2823: result: yes" >&5
2824echo "${ECHO_T}yes" >&6
10f2d63a 2825 else
7b4a847f
RR
2826 echo "$as_me:2826: result: no" >&5
2827echo "${ECHO_T}no" >&6
10f2d63a 2828 fi
10f2d63a 2829
7b4a847f
RR
2830 echo "$as_me:2830: checking for --enable-debug_gdb" >&5
2831echo $ECHO_N "checking for --enable-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
2832 no_cache=0
2833 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2834if test "${enable_debug_gdb+set}" = set; then
2835 enableval="$enable_debug_gdb"
7b4a847f 2836
10f2d63a
VZ
2837 if test "$enableval" = yes; then
2838 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2839 else
2840 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2841 fi
7b4a847f 2842
10f2d63a 2843else
7b4a847f 2844
10f2d63a
VZ
2845 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 2853
7b4a847f 2854fi;
10f2d63a
VZ
2855
2856 eval "$ac_cv_use_debug_gdb"
2857 if test "$no_cache" != 1; then
2858 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2859 fi
2860
2861 if test "$wxUSE_DEBUG_GDB" = yes; then
7b4a847f
RR
2862 echo "$as_me:2862: result: yes" >&5
2863echo "${ECHO_T}yes" >&6
10f2d63a 2864 else
7b4a847f
RR
2865 echo "$as_me:2865: result: no" >&5
2866echo "${ECHO_T}no" >&6
10f2d63a 2867 fi
10f2d63a 2868
7b4a847f
RR
2869 echo "$as_me:2869: checking for --enable-debug_cntxt" >&5
2870echo $ECHO_N "checking for --enable-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
2871 no_cache=0
2872 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2873if test "${enable_debug_cntxt+set}" = set; then
2874 enableval="$enable_debug_cntxt"
7b4a847f 2875
10f2d63a
VZ
2876 if test "$enableval" = yes; then
2877 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2878 else
2879 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2880 fi
7b4a847f 2881
10f2d63a 2882else
7b4a847f 2883
10f2d63a
VZ
2884 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2885 if test "x$LINE" != x ; then
2886 eval "DEFAULT_$LINE"
2887 else
2888 no_cache=1
2889 fi
2890
2891 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 2892
7b4a847f 2893fi;
10f2d63a
VZ
2894
2895 eval "$ac_cv_use_debug_cntxt"
2896 if test "$no_cache" != 1; then
2897 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2898 fi
2899
2900 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
7b4a847f
RR
2901 echo "$as_me:2901: result: yes" >&5
2902echo "${ECHO_T}yes" >&6
10f2d63a 2903 else
7b4a847f
RR
2904 echo "$as_me:2904: result: no" >&5
2905echo "${ECHO_T}no" >&6
10f2d63a 2906 fi
10f2d63a 2907
7b4a847f
RR
2908 echo "$as_me:2908: checking for --enable-mem_tracing" >&5
2909echo $ECHO_N "checking for --enable-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
2910 no_cache=0
2911 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2912if test "${enable_mem_tracing+set}" = set; then
2913 enableval="$enable_mem_tracing"
7b4a847f 2914
10f2d63a
VZ
2915 if test "$enableval" = yes; then
2916 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2917 else
2918 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2919 fi
7b4a847f 2920
10f2d63a 2921else
7b4a847f 2922
10f2d63a
VZ
2923 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2924 if test "x$LINE" != x ; then
2925 eval "DEFAULT_$LINE"
2926 else
2927 no_cache=1
2928 fi
2929
2930 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 2931
7b4a847f 2932fi;
10f2d63a
VZ
2933
2934 eval "$ac_cv_use_mem_tracing"
2935 if test "$no_cache" != 1; then
2936 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2937 fi
2938
2939 if test "$wxUSE_MEM_TRACING" = yes; then
7b4a847f
RR
2940 echo "$as_me:2940: result: yes" >&5
2941echo "${ECHO_T}yes" >&6
10f2d63a 2942 else
7b4a847f
RR
2943 echo "$as_me:2943: result: no" >&5
2944echo "${ECHO_T}no" >&6
10f2d63a 2945 fi
10f2d63a 2946
7b4a847f
RR
2947 echo "$as_me:2947: checking for --enable-profile" >&5
2948echo $ECHO_N "checking for --enable-profile... $ECHO_C" >&6
10f2d63a
VZ
2949 no_cache=0
2950 # Check whether --enable-profile or --disable-profile was given.
2951if test "${enable_profile+set}" = set; then
2952 enableval="$enable_profile"
7b4a847f 2953
10f2d63a
VZ
2954 if test "$enableval" = yes; then
2955 ac_cv_use_profile='wxUSE_PROFILE=yes'
2956 else
2957 ac_cv_use_profile='wxUSE_PROFILE=no'
2958 fi
7b4a847f 2959
10f2d63a 2960else
7b4a847f 2961
10f2d63a
VZ
2962 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 2970
7b4a847f 2971fi;
10f2d63a
VZ
2972
2973 eval "$ac_cv_use_profile"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_PROFILE" = yes; then
7b4a847f
RR
2979 echo "$as_me:2979: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
10f2d63a 2981 else
7b4a847f
RR
2982 echo "$as_me:2982: result: no" >&5
2983echo "${ECHO_T}no" >&6
10f2d63a 2984 fi
10f2d63a 2985
7b4a847f
RR
2986 echo "$as_me:2986: checking for --enable-no_rtti" >&5
2987echo $ECHO_N "checking for --enable-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
2988 no_cache=0
2989 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2990if test "${enable_no_rtti+set}" = set; then
2991 enableval="$enable_no_rtti"
7b4a847f 2992
10f2d63a
VZ
2993 if test "$enableval" = yes; then
2994 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2995 else
2996 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2997 fi
7b4a847f 2998
10f2d63a 2999else
7b4a847f 3000
10f2d63a
VZ
3001 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3002 if test "x$LINE" != x ; then
3003 eval "DEFAULT_$LINE"
3004 else
3005 no_cache=1
3006 fi
3007
3008 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3009
7b4a847f 3010fi;
10f2d63a
VZ
3011
3012 eval "$ac_cv_use_no_rtti"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$wxUSE_NO_RTTI" = yes; then
7b4a847f
RR
3018 echo "$as_me:3018: result: yes" >&5
3019echo "${ECHO_T}yes" >&6
10f2d63a 3020 else
7b4a847f
RR
3021 echo "$as_me:3021: result: no" >&5
3022echo "${ECHO_T}no" >&6
10f2d63a 3023 fi
10f2d63a 3024
7b4a847f
RR
3025 echo "$as_me:3025: checking for --enable-no_exceptions" >&5
3026echo $ECHO_N "checking for --enable-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3027 no_cache=0
3028 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3029if test "${enable_no_exceptions+set}" = set; then
3030 enableval="$enable_no_exceptions"
7b4a847f 3031
10f2d63a
VZ
3032 if test "$enableval" = yes; then
3033 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3034 else
3035 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3036 fi
7b4a847f 3037
10f2d63a 3038else
7b4a847f 3039
10f2d63a
VZ
3040 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3041 if test "x$LINE" != x ; then
3042 eval "DEFAULT_$LINE"
3043 else
3044 no_cache=1
3045 fi
3046
3047 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3048
7b4a847f 3049fi;
10f2d63a
VZ
3050
3051 eval "$ac_cv_use_no_exceptions"
3052 if test "$no_cache" != 1; then
3053 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3054 fi
3055
3056 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
7b4a847f
RR
3057 echo "$as_me:3057: result: yes" >&5
3058echo "${ECHO_T}yes" >&6
10f2d63a 3059 else
7b4a847f
RR
3060 echo "$as_me:3060: result: no" >&5
3061echo "${ECHO_T}no" >&6
10f2d63a 3062 fi
10f2d63a 3063
7b4a847f
RR
3064 echo "$as_me:3064: checking for --enable-permissive" >&5
3065echo $ECHO_N "checking for --enable-permissive... $ECHO_C" >&6
10f2d63a
VZ
3066 no_cache=0
3067 # Check whether --enable-permissive or --disable-permissive was given.
3068if test "${enable_permissive+set}" = set; then
3069 enableval="$enable_permissive"
7b4a847f 3070
10f2d63a
VZ
3071 if test "$enableval" = yes; then
3072 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3073 else
3074 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3075 fi
7b4a847f 3076
10f2d63a 3077else
7b4a847f 3078
10f2d63a
VZ
3079 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3080 if test "x$LINE" != x ; then
3081 eval "DEFAULT_$LINE"
3082 else
3083 no_cache=1
3084 fi
3085
3086 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3087
7b4a847f 3088fi;
10f2d63a
VZ
3089
3090 eval "$ac_cv_use_permissive"
3091 if test "$no_cache" != 1; then
3092 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3093 fi
3094
3095 if test "$wxUSE_PERMISSIVE" = yes; then
7b4a847f
RR
3096 echo "$as_me:3096: result: yes" >&5
3097echo "${ECHO_T}yes" >&6
10f2d63a 3098 else
7b4a847f
RR
3099 echo "$as_me:3099: result: no" >&5
3100echo "${ECHO_T}no" >&6
10f2d63a 3101 fi
10f2d63a 3102
7b4a847f
RR
3103 echo "$as_me:3103: checking for --enable-no_deps" >&5
3104echo $ECHO_N "checking for --enable-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3105 no_cache=0
3106 # Check whether --enable-no_deps or --disable-no_deps was given.
3107if test "${enable_no_deps+set}" = set; then
3108 enableval="$enable_no_deps"
7b4a847f 3109
10f2d63a
VZ
3110 if test "$enableval" = yes; then
3111 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3112 else
3113 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3114 fi
7b4a847f 3115
10f2d63a 3116else
7b4a847f 3117
10f2d63a
VZ
3118 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3119 if test "x$LINE" != x ; then
3120 eval "DEFAULT_$LINE"
3121 else
3122 no_cache=1
3123 fi
3124
3125 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3126
7b4a847f 3127fi;
10f2d63a
VZ
3128
3129 eval "$ac_cv_use_no_deps"
3130 if test "$no_cache" != 1; then
3131 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3132 fi
3133
3134 if test "$wxUSE_NO_DEPS" = yes; then
7b4a847f
RR
3135 echo "$as_me:3135: result: yes" >&5
3136echo "${ECHO_T}yes" >&6
10f2d63a 3137 else
7b4a847f
RR
3138 echo "$as_me:3138: result: no" >&5
3139echo "${ECHO_T}no" >&6
10f2d63a 3140 fi
698dcdb6 3141
7b4a847f
RR
3142 echo "$as_me:3142: checking for --enable-compat20" >&5
3143echo $ECHO_N "checking for --enable-compat20... $ECHO_C" >&6
54276ccf
VZ
3144 no_cache=0
3145 # Check whether --enable-compat20 or --disable-compat20 was given.
3146if test "${enable_compat20+set}" = set; then
3147 enableval="$enable_compat20"
7b4a847f 3148
54276ccf
VZ
3149 if test "$enableval" = yes; then
3150 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3151 else
3152 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3153 fi
7b4a847f 3154
54276ccf 3155else
7b4a847f 3156
54276ccf
VZ
3157 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3158 if test "x$LINE" != x ; then
3159 eval "DEFAULT_$LINE"
3160 else
3161 no_cache=1
3162 fi
3163
3164 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3165
7b4a847f 3166fi;
54276ccf
VZ
3167
3168 eval "$ac_cv_use_compat20"
3169 if test "$no_cache" != 1; then
3170 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3171 fi
3172
3173 if test "$WXWIN_COMPATIBILITY_2" = yes; then
7b4a847f
RR
3174 echo "$as_me:3174: result: yes" >&5
3175echo "${ECHO_T}yes" >&6
54276ccf 3176 else
7b4a847f
RR
3177 echo "$as_me:3177: result: no" >&5
3178echo "${ECHO_T}no" >&6
54276ccf 3179 fi
54276ccf 3180
7b4a847f
RR
3181 echo "$as_me:3181: checking for --enable-compat22" >&5
3182echo $ECHO_N "checking for --enable-compat22... $ECHO_C" >&6
54276ccf
VZ
3183 no_cache=0
3184 # Check whether --enable-compat22 or --disable-compat22 was given.
3185if test "${enable_compat22+set}" = set; then
3186 enableval="$enable_compat22"
7b4a847f 3187
54276ccf
VZ
3188 if test "$enableval" = yes; then
3189 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3190 else
3191 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3192 fi
7b4a847f 3193
54276ccf 3194else
7b4a847f 3195
54276ccf
VZ
3196 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3197 if test "x$LINE" != x ; then
3198 eval "DEFAULT_$LINE"
3199 else
3200 no_cache=1
3201 fi
3202
3203 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3204
7b4a847f 3205fi;
54276ccf
VZ
3206
3207 eval "$ac_cv_use_compat22"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
7b4a847f
RR
3213 echo "$as_me:3213: result: yes" >&5
3214echo "${ECHO_T}yes" >&6
54276ccf 3215 else
7b4a847f
RR
3216 echo "$as_me:3216: result: no" >&5
3217echo "${ECHO_T}no" >&6
54276ccf 3218 fi
54276ccf 3219
3bd8fb5f
RD
3220# Check whether --enable-rpath or --disable-rpath was given.
3221if test "${enable_rpath+set}" = set; then
3222 enableval="$enable_rpath"
3223 wxRPATH_DIR="$enableval"
7b4a847f 3224fi;
3bd8fb5f
RD
3225
3226if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3227 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3228fi
3229
7b4a847f
RR
3230 echo "$as_me:3230: checking for --enable-intl" >&5
3231echo $ECHO_N "checking for --enable-intl... $ECHO_C" >&6
10f2d63a
VZ
3232 no_cache=0
3233 # Check whether --enable-intl or --disable-intl was given.
3234if test "${enable_intl+set}" = set; then
3235 enableval="$enable_intl"
7b4a847f 3236
10f2d63a
VZ
3237 if test "$enableval" = yes; then
3238 ac_cv_use_intl='wxUSE_INTL=yes'
3239 else
3240 ac_cv_use_intl='wxUSE_INTL=no'
3241 fi
7b4a847f 3242
10f2d63a 3243else
7b4a847f 3244
10f2d63a
VZ
3245 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3253
7b4a847f 3254fi;
10f2d63a
VZ
3255
3256 eval "$ac_cv_use_intl"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_INTL" = yes; then
7b4a847f
RR
3262 echo "$as_me:3262: result: yes" >&5
3263echo "${ECHO_T}yes" >&6
10f2d63a 3264 else
7b4a847f
RR
3265 echo "$as_me:3265: result: no" >&5
3266echo "${ECHO_T}no" >&6
10f2d63a 3267 fi
10f2d63a 3268
7b4a847f
RR
3269 echo "$as_me:3269: checking for --enable-config" >&5
3270echo $ECHO_N "checking for --enable-config... $ECHO_C" >&6
10f2d63a
VZ
3271 no_cache=0
3272 # Check whether --enable-config or --disable-config was given.
3273if test "${enable_config+set}" = set; then
3274 enableval="$enable_config"
7b4a847f 3275
10f2d63a
VZ
3276 if test "$enableval" = yes; then
3277 ac_cv_use_config='wxUSE_CONFIG=yes'
3278 else
3279 ac_cv_use_config='wxUSE_CONFIG=no'
3280 fi
7b4a847f 3281
10f2d63a 3282else
7b4a847f 3283
10f2d63a
VZ
3284 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3285 if test "x$LINE" != x ; then
3286 eval "DEFAULT_$LINE"
3287 else
3288 no_cache=1
3289 fi
3290
3291 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3292
7b4a847f 3293fi;
10f2d63a
VZ
3294
3295 eval "$ac_cv_use_config"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_CONFIG" = yes; then
7b4a847f
RR
3301 echo "$as_me:3301: result: yes" >&5
3302echo "${ECHO_T}yes" >&6
10f2d63a 3303 else
7b4a847f
RR
3304 echo "$as_me:3304: result: no" >&5
3305echo "${ECHO_T}no" >&6
10f2d63a 3306 fi
698dcdb6 3307
7b4a847f
RR
3308 echo "$as_me:3308: checking for --enable-protocols" >&5
3309echo $ECHO_N "checking for --enable-protocols... $ECHO_C" >&6
a1622950
VZ
3310 no_cache=0
3311 # Check whether --enable-protocols or --disable-protocols was given.
3312if test "${enable_protocols+set}" = set; then
3313 enableval="$enable_protocols"
7b4a847f 3314
a1622950
VZ
3315 if test "$enableval" = yes; then
3316 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3317 else
3318 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3319 fi
7b4a847f 3320
a1622950 3321else
7b4a847f 3322
a1622950
VZ
3323 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3324 if test "x$LINE" != x ; then
3325 eval "DEFAULT_$LINE"
3326 else
3327 no_cache=1
3328 fi
3329
3330 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3331
7b4a847f 3332fi;
a1622950
VZ
3333
3334 eval "$ac_cv_use_protocols"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_PROTOCOL" = yes; then
7b4a847f
RR
3340 echo "$as_me:3340: result: yes" >&5
3341echo "${ECHO_T}yes" >&6
a1622950 3342 else
7b4a847f
RR
3343 echo "$as_me:3343: result: no" >&5
3344echo "${ECHO_T}no" >&6
a1622950 3345 fi
a1622950 3346
7b4a847f
RR
3347 echo "$as_me:3347: checking for --enable-ftp" >&5
3348echo $ECHO_N "checking for --enable-ftp... $ECHO_C" >&6
a1622950
VZ
3349 no_cache=0
3350 # Check whether --enable-ftp or --disable-ftp was given.
3351if test "${enable_ftp+set}" = set; then
3352 enableval="$enable_ftp"
7b4a847f 3353
a1622950
VZ
3354 if test "$enableval" = yes; then
3355 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3356 else
3357 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3358 fi
7b4a847f 3359
a1622950 3360else
7b4a847f 3361
a1622950
VZ
3362 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3363 if test "x$LINE" != x ; then
3364 eval "DEFAULT_$LINE"
3365 else
3366 no_cache=1
3367 fi
3368
3369 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3370
7b4a847f 3371fi;
a1622950
VZ
3372
3373 eval "$ac_cv_use_ftp"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_PROTOCOL_FTP" = yes; then
7b4a847f
RR
3379 echo "$as_me:3379: result: yes" >&5
3380echo "${ECHO_T}yes" >&6
a1622950 3381 else
7b4a847f
RR
3382 echo "$as_me:3382: result: no" >&5
3383echo "${ECHO_T}no" >&6
a1622950 3384 fi
a1622950 3385
7b4a847f
RR
3386 echo "$as_me:3386: checking for --enable-http" >&5
3387echo $ECHO_N "checking for --enable-http... $ECHO_C" >&6
a1622950
VZ
3388 no_cache=0
3389 # Check whether --enable-http or --disable-http was given.
3390if test "${enable_http+set}" = set; then
3391 enableval="$enable_http"
7b4a847f 3392
a1622950
VZ
3393 if test "$enableval" = yes; then
3394 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3395 else
3396 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3397 fi
7b4a847f 3398
a1622950 3399else
7b4a847f 3400
a1622950
VZ
3401 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3409
7b4a847f 3410fi;
a1622950
VZ
3411
3412 eval "$ac_cv_use_http"
3413 if test "$no_cache" != 1; then
3414 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3415 fi
3416
3417 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
7b4a847f
RR
3418 echo "$as_me:3418: result: yes" >&5
3419echo "${ECHO_T}yes" >&6
a1622950 3420 else
7b4a847f
RR
3421 echo "$as_me:3421: result: no" >&5
3422echo "${ECHO_T}no" >&6
a1622950 3423 fi
a1622950 3424
7b4a847f
RR
3425 echo "$as_me:3425: checking for --enable-fileproto" >&5
3426echo $ECHO_N "checking for --enable-fileproto... $ECHO_C" >&6
a1622950
VZ
3427 no_cache=0
3428 # Check whether --enable-fileproto or --disable-fileproto was given.
3429if test "${enable_fileproto+set}" = set; then
3430 enableval="$enable_fileproto"
7b4a847f 3431
a1622950
VZ
3432 if test "$enableval" = yes; then
3433 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3434 else
3435 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3436 fi
7b4a847f 3437
a1622950 3438else
7b4a847f 3439
a1622950
VZ
3440 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3441 if test "x$LINE" != x ; then
3442 eval "DEFAULT_$LINE"
3443 else
3444 no_cache=1
3445 fi
3446
3447 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 3448
7b4a847f 3449fi;
a1622950
VZ
3450
3451 eval "$ac_cv_use_fileproto"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_PROTOCOL_FILE" = yes; then
7b4a847f
RR
3457 echo "$as_me:3457: result: yes" >&5
3458echo "${ECHO_T}yes" >&6
a1622950 3459 else
7b4a847f
RR
3460 echo "$as_me:3460: result: no" >&5
3461echo "${ECHO_T}no" >&6
a1622950 3462 fi
a1622950 3463
7b4a847f
RR
3464 echo "$as_me:3464: checking for --enable-sockets" >&5
3465echo $ECHO_N "checking for --enable-sockets... $ECHO_C" >&6
10f2d63a
VZ
3466 no_cache=0
3467 # Check whether --enable-sockets or --disable-sockets was given.
3468if test "${enable_sockets+set}" = set; then
3469 enableval="$enable_sockets"
7b4a847f 3470
10f2d63a
VZ
3471 if test "$enableval" = yes; then
3472 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3473 else
3474 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3475 fi
7b4a847f 3476
10f2d63a 3477else
7b4a847f 3478
10f2d63a
VZ
3479 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3480 if test "x$LINE" != x ; then
3481 eval "DEFAULT_$LINE"
3482 else
3483 no_cache=1
3484 fi
3485
3486 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 3487
7b4a847f 3488fi;
10f2d63a
VZ
3489
3490 eval "$ac_cv_use_sockets"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_SOCKETS" = yes; then
7b4a847f
RR
3496 echo "$as_me:3496: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
10f2d63a 3498 else
7b4a847f
RR
3499 echo "$as_me:3499: result: no" >&5
3500echo "${ECHO_T}no" >&6
10f2d63a 3501 fi
698dcdb6 3502
7b4a847f
RR
3503 echo "$as_me:3503: checking for --enable-ipc" >&5
3504echo $ECHO_N "checking for --enable-ipc... $ECHO_C" >&6
10f2d63a 3505 no_cache=0
eb4efbdc
VZ
3506 # Check whether --enable-ipc or --disable-ipc was given.
3507if test "${enable_ipc+set}" = set; then
3508 enableval="$enable_ipc"
7b4a847f 3509
10f2d63a 3510 if test "$enableval" = yes; then
eb4efbdc 3511 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3512 else
eb4efbdc 3513 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3514 fi
7b4a847f 3515
10f2d63a 3516else
7b4a847f 3517
eb4efbdc 3518 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
eb4efbdc 3525 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 3526
7b4a847f 3527fi;
10f2d63a 3528
eb4efbdc 3529 eval "$ac_cv_use_ipc"
10f2d63a 3530 if test "$no_cache" != 1; then
eb4efbdc 3531 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3532 fi
3533
eb4efbdc 3534 if test "$wxUSE_IPC" = yes; then
7b4a847f
RR
3535 echo "$as_me:3535: result: yes" >&5
3536echo "${ECHO_T}yes" >&6
10f2d63a 3537 else
7b4a847f
RR
3538 echo "$as_me:3538: result: no" >&5
3539echo "${ECHO_T}no" >&6
10f2d63a 3540 fi
698dcdb6 3541
7b4a847f
RR
3542 echo "$as_me:3542: checking for --enable-cmdline" >&5
3543echo $ECHO_N "checking for --enable-cmdline... $ECHO_C" >&6
1e6feb95
VZ
3544 no_cache=0
3545 # Check whether --enable-cmdline or --disable-cmdline was given.
3546if test "${enable_cmdline+set}" = set; then
3547 enableval="$enable_cmdline"
7b4a847f 3548
1e6feb95
VZ
3549 if test "$enableval" = yes; then
3550 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3551 else
3552 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3553 fi
7b4a847f 3554
1e6feb95 3555else
7b4a847f 3556
1e6feb95
VZ
3557 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3558 if test "x$LINE" != x ; then
3559 eval "DEFAULT_$LINE"
3560 else
3561 no_cache=1
3562 fi
3563
3564 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 3565
7b4a847f 3566fi;
1e6feb95
VZ
3567
3568 eval "$ac_cv_use_cmdline"
3569 if test "$no_cache" != 1; then
3570 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3571 fi
3572
3573 if test "$wxUSE_CMDLINE_PARSER" = yes; then
7b4a847f
RR
3574 echo "$as_me:3574: result: yes" >&5
3575echo "${ECHO_T}yes" >&6
1e6feb95 3576 else
7b4a847f
RR
3577 echo "$as_me:3577: result: no" >&5
3578echo "${ECHO_T}no" >&6
1e6feb95 3579 fi
1e6feb95 3580
7b4a847f
RR
3581 echo "$as_me:3581: checking for --enable-datetime" >&5
3582echo $ECHO_N "checking for --enable-datetime... $ECHO_C" >&6
1e6feb95
VZ
3583 no_cache=0
3584 # Check whether --enable-datetime or --disable-datetime was given.
3585if test "${enable_datetime+set}" = set; then
3586 enableval="$enable_datetime"
7b4a847f 3587
1e6feb95
VZ
3588 if test "$enableval" = yes; then
3589 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3590 else
3591 ac_cv_use_datetime='wxUSE_DATETIME=no'
3592 fi
7b4a847f 3593
1e6feb95 3594else
7b4a847f 3595
1e6feb95
VZ
3596 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3597 if test "x$LINE" != x ; then
3598 eval "DEFAULT_$LINE"
3599 else
3600 no_cache=1
3601 fi
3602
3603 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 3604
7b4a847f 3605fi;
1e6feb95
VZ
3606
3607 eval "$ac_cv_use_datetime"
3608 if test "$no_cache" != 1; then
3609 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3610 fi
3611
3612 if test "$wxUSE_DATETIME" = yes; then
7b4a847f
RR
3613 echo "$as_me:3613: result: yes" >&5
3614echo "${ECHO_T}yes" >&6
1e6feb95 3615 else
7b4a847f
RR
3616 echo "$as_me:3616: result: no" >&5
3617echo "${ECHO_T}no" >&6
1e6feb95 3618 fi
1e6feb95 3619
7b4a847f
RR
3620 echo "$as_me:3620: checking for --enable-timedate" >&5
3621echo $ECHO_N "checking for --enable-timedate... $ECHO_C" >&6
1e6feb95
VZ
3622 no_cache=0
3623 # Check whether --enable-timedate or --disable-timedate was given.
3624if test "${enable_timedate+set}" = set; then
3625 enableval="$enable_timedate"
7b4a847f 3626
1e6feb95
VZ
3627 if test "$enableval" = yes; then
3628 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3629 else
3630 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3631 fi
7b4a847f 3632
1e6feb95 3633else
7b4a847f 3634
1e6feb95
VZ
3635 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3636 if test "x$LINE" != x ; then
3637 eval "DEFAULT_$LINE"
3638 else
3639 no_cache=1
3640 fi
3641
3642 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
1e6feb95 3643
7b4a847f 3644fi;
1e6feb95
VZ
3645
3646 eval "$ac_cv_use_timedate"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_TIMEDATE" = yes; then
7b4a847f
RR
3652 echo "$as_me:3652: result: yes" >&5
3653echo "${ECHO_T}yes" >&6
1e6feb95 3654 else
7b4a847f
RR
3655 echo "$as_me:3655: result: no" >&5
3656echo "${ECHO_T}no" >&6
1e6feb95 3657 fi
1e6feb95 3658
7b4a847f
RR
3659 echo "$as_me:3659: checking for --enable-stopwatch" >&5
3660echo $ECHO_N "checking for --enable-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
3661 no_cache=0
3662 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3663if test "${enable_stopwatch+set}" = set; then
3664 enableval="$enable_stopwatch"
7b4a847f 3665
1e6feb95
VZ
3666 if test "$enableval" = yes; then
3667 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3668 else
3669 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3670 fi
7b4a847f 3671
1e6feb95 3672else
7b4a847f 3673
1e6feb95
VZ
3674 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 3682
7b4a847f 3683fi;
1e6feb95
VZ
3684
3685 eval "$ac_cv_use_stopwatch"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_STOPWATCH" = yes; then
7b4a847f
RR
3691 echo "$as_me:3691: result: yes" >&5
3692echo "${ECHO_T}yes" >&6
1e6feb95 3693 else
7b4a847f
RR
3694 echo "$as_me:3694: result: no" >&5
3695echo "${ECHO_T}no" >&6
1e6feb95 3696 fi
1e6feb95 3697
7b4a847f
RR
3698 echo "$as_me:3698: checking for --enable-dialupman" >&5
3699echo $ECHO_N "checking for --enable-dialupman... $ECHO_C" >&6
10f2d63a 3700 no_cache=0
eb4efbdc
VZ
3701 # Check whether --enable-dialupman or --disable-dialupman was given.
3702if test "${enable_dialupman+set}" = set; then
3703 enableval="$enable_dialupman"
7b4a847f 3704
10f2d63a 3705 if test "$enableval" = yes; then
eb4efbdc 3706 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3707 else
eb4efbdc 3708 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3709 fi
7b4a847f 3710
10f2d63a 3711else
7b4a847f 3712
eb4efbdc 3713 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3714 if test "x$LINE" != x ; then
3715 eval "DEFAULT_$LINE"
3716 else
3717 no_cache=1
3718 fi
3719
eb4efbdc 3720 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 3721
7b4a847f 3722fi;
10f2d63a 3723
eb4efbdc 3724 eval "$ac_cv_use_dialupman"
10f2d63a 3725 if test "$no_cache" != 1; then
eb4efbdc 3726 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3727 fi
3728
eb4efbdc 3729 if test "$wxUSE_DIALUP_MANAGER" = yes; then
7b4a847f
RR
3730 echo "$as_me:3730: result: yes" >&5
3731echo "${ECHO_T}yes" >&6
10f2d63a 3732 else
7b4a847f
RR
3733 echo "$as_me:3733: result: no" >&5
3734echo "${ECHO_T}no" >&6
10f2d63a 3735 fi
10f2d63a 3736
7b4a847f
RR
3737 echo "$as_me:3737: checking for --enable-apple_ieee" >&5
3738echo $ECHO_N "checking for --enable-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
3739 no_cache=0
3740 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3741if test "${enable_apple_ieee+set}" = set; then
3742 enableval="$enable_apple_ieee"
7b4a847f 3743
10f2d63a
VZ
3744 if test "$enableval" = yes; then
3745 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3746 else
3747 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3748 fi
7b4a847f 3749
10f2d63a 3750else
7b4a847f 3751
10f2d63a
VZ
3752 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3753 if test "x$LINE" != x ; then
3754 eval "DEFAULT_$LINE"
3755 else
3756 no_cache=1
3757 fi
3758
3759 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 3760
7b4a847f 3761fi;
10f2d63a
VZ
3762
3763 eval "$ac_cv_use_apple_ieee"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_APPLE_IEEE" = yes; then
7b4a847f
RR
3769 echo "$as_me:3769: result: yes" >&5
3770echo "${ECHO_T}yes" >&6
10f2d63a 3771 else
7b4a847f
RR
3772 echo "$as_me:3772: result: no" >&5
3773echo "${ECHO_T}no" >&6
10f2d63a 3774 fi
10f2d63a 3775
7b4a847f
RR
3776 echo "$as_me:3776: checking for --enable-timer" >&5
3777echo $ECHO_N "checking for --enable-timer... $ECHO_C" >&6
10f2d63a 3778 no_cache=0
1e6feb95
VZ
3779 # Check whether --enable-timer or --disable-timer was given.
3780if test "${enable_timer+set}" = set; then
3781 enableval="$enable_timer"
7b4a847f 3782
10f2d63a 3783 if test "$enableval" = yes; then
1e6feb95 3784 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3785 else
1e6feb95 3786 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3787 fi
7b4a847f 3788
10f2d63a 3789else
7b4a847f 3790
1e6feb95 3791 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3792 if test "x$LINE" != x ; then
3793 eval "DEFAULT_$LINE"
3794 else
3795 no_cache=1
3796 fi
3797
1e6feb95 3798 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 3799
7b4a847f 3800fi;
10f2d63a 3801
1e6feb95 3802 eval "$ac_cv_use_timer"
10f2d63a 3803 if test "$no_cache" != 1; then
1e6feb95 3804 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3805 fi
3806
1e6feb95 3807 if test "$wxUSE_TIMER" = yes; then
7b4a847f
RR
3808 echo "$as_me:3808: result: yes" >&5
3809echo "${ECHO_T}yes" >&6
10f2d63a 3810 else
7b4a847f
RR
3811 echo "$as_me:3811: result: no" >&5
3812echo "${ECHO_T}no" >&6
10f2d63a 3813 fi
10f2d63a 3814
7b4a847f
RR
3815 echo "$as_me:3815: checking for --enable-wave" >&5
3816echo $ECHO_N "checking for --enable-wave... $ECHO_C" >&6
10f2d63a
VZ
3817 no_cache=0
3818 # Check whether --enable-wave or --disable-wave was given.
3819if test "${enable_wave+set}" = set; then
3820 enableval="$enable_wave"
7b4a847f 3821
10f2d63a
VZ
3822 if test "$enableval" = yes; then
3823 ac_cv_use_wave='wxUSE_WAVE=yes'
3824 else
3825 ac_cv_use_wave='wxUSE_WAVE=no'
3826 fi
7b4a847f 3827
10f2d63a 3828else
7b4a847f 3829
10f2d63a
VZ
3830 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3831 if test "x$LINE" != x ; then
3832 eval "DEFAULT_$LINE"
3833 else
3834 no_cache=1
3835 fi
3836
3837 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 3838
7b4a847f 3839fi;
10f2d63a
VZ
3840
3841 eval "$ac_cv_use_wave"
3842 if test "$no_cache" != 1; then
3843 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3844 fi
3845
3846 if test "$wxUSE_WAVE" = yes; then
7b4a847f
RR
3847 echo "$as_me:3847: result: yes" >&5
3848echo "${ECHO_T}yes" >&6
10f2d63a 3849 else
7b4a847f
RR
3850 echo "$as_me:3850: result: no" >&5
3851echo "${ECHO_T}no" >&6
10f2d63a 3852 fi
10f2d63a 3853
7b4a847f
RR
3854 echo "$as_me:3854: checking for --enable-fraction" >&5
3855echo $ECHO_N "checking for --enable-fraction... $ECHO_C" >&6
10f2d63a
VZ
3856 no_cache=0
3857 # Check whether --enable-fraction or --disable-fraction was given.
3858if test "${enable_fraction+set}" = set; then
3859 enableval="$enable_fraction"
7b4a847f 3860
10f2d63a
VZ
3861 if test "$enableval" = yes; then
3862 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3863 else
3864 ac_cv_use_fraction='wxUSE_FRACTION=no'
3865 fi
7b4a847f 3866
10f2d63a 3867else
7b4a847f 3868
10f2d63a
VZ
3869 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 3877
7b4a847f 3878fi;
10f2d63a
VZ
3879
3880 eval "$ac_cv_use_fraction"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_FRACTION" = yes; then
7b4a847f
RR
3886 echo "$as_me:3886: result: yes" >&5
3887echo "${ECHO_T}yes" >&6
10f2d63a 3888 else
7b4a847f
RR
3889 echo "$as_me:3889: result: no" >&5
3890echo "${ECHO_T}no" >&6
10f2d63a 3891 fi
10f2d63a 3892
7b4a847f
RR
3893 echo "$as_me:3893: checking for --enable-dynlib" >&5
3894echo $ECHO_N "checking for --enable-dynlib... $ECHO_C" >&6
10f2d63a
VZ
3895 no_cache=0
3896 # Check whether --enable-dynlib or --disable-dynlib was given.
3897if test "${enable_dynlib+set}" = set; then
3898 enableval="$enable_dynlib"
7b4a847f 3899
10f2d63a
VZ
3900 if test "$enableval" = yes; then
3901 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3902 else
3903 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3904 fi
7b4a847f 3905
10f2d63a 3906else
7b4a847f 3907
10f2d63a
VZ
3908 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 3916
7b4a847f 3917fi;
10f2d63a
VZ
3918
3919 eval "$ac_cv_use_dynlib"
3920 if test "$no_cache" != 1; then
3921 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3922 fi
3923
3924 if test "$wxUSE_DYNLIB_CLASS" = yes; then
7b4a847f
RR
3925 echo "$as_me:3925: result: yes" >&5
3926echo "${ECHO_T}yes" >&6
10f2d63a 3927 else
7b4a847f
RR
3928 echo "$as_me:3928: result: no" >&5
3929echo "${ECHO_T}no" >&6
10f2d63a 3930 fi
10f2d63a 3931
7b4a847f
RR
3932 echo "$as_me:3932: checking for --enable-dynamicloader" >&5
3933echo $ECHO_N "checking for --enable-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
3934 no_cache=0
3935 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3936if test "${enable_dynamicloader+set}" = set; then
3937 enableval="$enable_dynamicloader"
7b4a847f 3938
0b9ab0bd
RL
3939 if test "$enableval" = yes; then
3940 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3941 else
3942 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3943 fi
7b4a847f 3944
0b9ab0bd 3945else
7b4a847f 3946
0b9ab0bd
RL
3947 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 3955
7b4a847f 3956fi;
0b9ab0bd
RL
3957
3958 eval "$ac_cv_use_dynamicloader"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
7b4a847f
RR
3964 echo "$as_me:3964: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
0b9ab0bd 3966 else
7b4a847f
RR
3967 echo "$as_me:3967: result: no" >&5
3968echo "${ECHO_T}no" >&6
0b9ab0bd 3969 fi
0b9ab0bd 3970
7b4a847f
RR
3971 echo "$as_me:3971: checking for --enable-longlong" >&5
3972echo $ECHO_N "checking for --enable-longlong... $ECHO_C" >&6
10f2d63a
VZ
3973 no_cache=0
3974 # Check whether --enable-longlong or --disable-longlong was given.
3975if test "${enable_longlong+set}" = set; then
3976 enableval="$enable_longlong"
7b4a847f 3977
10f2d63a
VZ
3978 if test "$enableval" = yes; then
3979 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3980 else
3981 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3982 fi
7b4a847f 3983
10f2d63a 3984else
7b4a847f 3985
10f2d63a
VZ
3986 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3987 if test "x$LINE" != x ; then
3988 eval "DEFAULT_$LINE"
3989 else
3990 no_cache=1
3991 fi
3992
3993 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 3994
7b4a847f 3995fi;
10f2d63a
VZ
3996
3997 eval "$ac_cv_use_longlong"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$wxUSE_LONGLONG" = yes; then
7b4a847f
RR
4003 echo "$as_me:4003: result: yes" >&5
4004echo "${ECHO_T}yes" >&6
10f2d63a 4005 else
7b4a847f
RR
4006 echo "$as_me:4006: result: no" >&5
4007echo "${ECHO_T}no" >&6
10f2d63a 4008 fi
10f2d63a 4009
7b4a847f
RR
4010 echo "$as_me:4010: checking for --enable-geometry" >&5
4011echo $ECHO_N "checking for --enable-geometry... $ECHO_C" >&6
e8f65ba6
RR
4012 no_cache=0
4013 # Check whether --enable-geometry or --disable-geometry was given.
4014if test "${enable_geometry+set}" = set; then
4015 enableval="$enable_geometry"
7b4a847f 4016
e8f65ba6
RR
4017 if test "$enableval" = yes; then
4018 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4019 else
4020 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4021 fi
7b4a847f 4022
e8f65ba6 4023else
7b4a847f 4024
e8f65ba6
RR
4025 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4026 if test "x$LINE" != x ; then
4027 eval "DEFAULT_$LINE"
4028 else
4029 no_cache=1
4030 fi
4031
4032 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4033
7b4a847f 4034fi;
e8f65ba6
RR
4035
4036 eval "$ac_cv_use_geometry"
4037 if test "$no_cache" != 1; then
4038 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4039 fi
4040
4041 if test "$wxUSE_GEOMETRY" = yes; then
7b4a847f
RR
4042 echo "$as_me:4042: result: yes" >&5
4043echo "${ECHO_T}yes" >&6
e8f65ba6 4044 else
7b4a847f
RR
4045 echo "$as_me:4045: result: no" >&5
4046echo "${ECHO_T}no" >&6
e8f65ba6 4047 fi
e8f65ba6 4048
7b4a847f
RR
4049 echo "$as_me:4049: checking for --enable-log" >&5
4050echo $ECHO_N "checking for --enable-log... $ECHO_C" >&6
10f2d63a
VZ
4051 no_cache=0
4052 # Check whether --enable-log or --disable-log was given.
4053if test "${enable_log+set}" = set; then
4054 enableval="$enable_log"
7b4a847f 4055
10f2d63a
VZ
4056 if test "$enableval" = yes; then
4057 ac_cv_use_log='wxUSE_LOG=yes'
4058 else
4059 ac_cv_use_log='wxUSE_LOG=no'
4060 fi
7b4a847f 4061
10f2d63a 4062else
7b4a847f 4063
10f2d63a
VZ
4064 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4065 if test "x$LINE" != x ; then
4066 eval "DEFAULT_$LINE"
4067 else
4068 no_cache=1
4069 fi
4070
4071 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4072
7b4a847f 4073fi;
10f2d63a
VZ
4074
4075 eval "$ac_cv_use_log"
4076 if test "$no_cache" != 1; then
4077 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4078 fi
4079
4080 if test "$wxUSE_LOG" = yes; then
7b4a847f
RR
4081 echo "$as_me:4081: result: yes" >&5
4082echo "${ECHO_T}yes" >&6
10f2d63a 4083 else
7b4a847f
RR
4084 echo "$as_me:4084: result: no" >&5
4085echo "${ECHO_T}no" >&6
10f2d63a 4086 fi
10f2d63a 4087
7b4a847f
RR
4088 echo "$as_me:4088: checking for --enable-streams" >&5
4089echo $ECHO_N "checking for --enable-streams... $ECHO_C" >&6
10f2d63a
VZ
4090 no_cache=0
4091 # Check whether --enable-streams or --disable-streams was given.
4092if test "${enable_streams+set}" = set; then
4093 enableval="$enable_streams"
7b4a847f 4094
10f2d63a
VZ
4095 if test "$enableval" = yes; then
4096 ac_cv_use_streams='wxUSE_STREAMS=yes'
4097 else
4098 ac_cv_use_streams='wxUSE_STREAMS=no'
4099 fi
7b4a847f 4100
10f2d63a 4101else
7b4a847f 4102
10f2d63a
VZ
4103 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4104 if test "x$LINE" != x ; then
4105 eval "DEFAULT_$LINE"
4106 else
4107 no_cache=1
4108 fi
4109
4110 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4111
7b4a847f 4112fi;
10f2d63a
VZ
4113
4114 eval "$ac_cv_use_streams"
4115 if test "$no_cache" != 1; then
4116 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4117 fi
4118
4119 if test "$wxUSE_STREAMS" = yes; then
7b4a847f
RR
4120 echo "$as_me:4120: result: yes" >&5
4121echo "${ECHO_T}yes" >&6
10f2d63a 4122 else
7b4a847f
RR
4123 echo "$as_me:4123: result: no" >&5
4124echo "${ECHO_T}no" >&6
10f2d63a 4125 fi
10f2d63a 4126
7b4a847f
RR
4127 echo "$as_me:4127: checking for --enable-file" >&5
4128echo $ECHO_N "checking for --enable-file... $ECHO_C" >&6
10f2d63a
VZ
4129 no_cache=0
4130 # Check whether --enable-file or --disable-file was given.
4131if test "${enable_file+set}" = set; then
4132 enableval="$enable_file"
7b4a847f 4133
10f2d63a
VZ
4134 if test "$enableval" = yes; then
4135 ac_cv_use_file='wxUSE_FILE=yes'
4136 else
4137 ac_cv_use_file='wxUSE_FILE=no'
4138 fi
7b4a847f 4139
10f2d63a 4140else
7b4a847f 4141
10f2d63a
VZ
4142 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
4149 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4150
7b4a847f 4151fi;
10f2d63a
VZ
4152
4153 eval "$ac_cv_use_file"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$wxUSE_FILE" = yes; then
7b4a847f
RR
4159 echo "$as_me:4159: result: yes" >&5
4160echo "${ECHO_T}yes" >&6
10f2d63a 4161 else
7b4a847f
RR
4162 echo "$as_me:4162: result: no" >&5
4163echo "${ECHO_T}no" >&6
10f2d63a 4164 fi
10f2d63a 4165
7b4a847f
RR
4166 echo "$as_me:4166: checking for --enable-ffile" >&5
4167echo $ECHO_N "checking for --enable-ffile... $ECHO_C" >&6
10f2d63a 4168 no_cache=0
1e6feb95
VZ
4169 # Check whether --enable-ffile or --disable-ffile was given.
4170if test "${enable_ffile+set}" = set; then
4171 enableval="$enable_ffile"
7b4a847f 4172
10f2d63a 4173 if test "$enableval" = yes; then
1e6feb95 4174 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4175 else
1e6feb95 4176 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4177 fi
7b4a847f 4178
10f2d63a 4179else
7b4a847f 4180
1e6feb95 4181 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4182 if test "x$LINE" != x ; then
4183 eval "DEFAULT_$LINE"
4184 else
4185 no_cache=1
4186 fi
4187
1e6feb95 4188 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4189
7b4a847f 4190fi;
10f2d63a 4191
1e6feb95 4192 eval "$ac_cv_use_ffile"
10f2d63a 4193 if test "$no_cache" != 1; then
1e6feb95 4194 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4195 fi
4196
1e6feb95 4197 if test "$wxUSE_FFILE" = yes; then
7b4a847f
RR
4198 echo "$as_me:4198: result: yes" >&5
4199echo "${ECHO_T}yes" >&6
10f2d63a 4200 else
7b4a847f
RR
4201 echo "$as_me:4201: result: no" >&5
4202echo "${ECHO_T}no" >&6
10f2d63a 4203 fi
10f2d63a 4204
7b4a847f
RR
4205 echo "$as_me:4205: checking for --enable-textbuf" >&5
4206echo $ECHO_N "checking for --enable-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4207 no_cache=0
4208 # Check whether --enable-textbuf or --disable-textbuf was given.
4209if test "${enable_textbuf+set}" = set; then
4210 enableval="$enable_textbuf"
7b4a847f 4211
a3a584a7
VZ
4212 if test "$enableval" = yes; then
4213 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4214 else
4215 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4216 fi
7b4a847f 4217
a3a584a7 4218else
7b4a847f 4219
a3a584a7
VZ
4220 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4221 if test "x$LINE" != x ; then
4222 eval "DEFAULT_$LINE"
4223 else
4224 no_cache=1
4225 fi
4226
4227 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4228
7b4a847f 4229fi;
a3a584a7
VZ
4230
4231 eval "$ac_cv_use_textbuf"
4232 if test "$no_cache" != 1; then
4233 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4234 fi
4235
4236 if test "$wxUSE_TEXTBUFFER" = yes; then
7b4a847f
RR
4237 echo "$as_me:4237: result: yes" >&5
4238echo "${ECHO_T}yes" >&6
a3a584a7 4239 else
7b4a847f
RR
4240 echo "$as_me:4240: result: no" >&5
4241echo "${ECHO_T}no" >&6
a3a584a7 4242 fi
a3a584a7 4243
7b4a847f
RR
4244 echo "$as_me:4244: checking for --enable-textfile" >&5
4245echo $ECHO_N "checking for --enable-textfile... $ECHO_C" >&6
10f2d63a 4246 no_cache=0
1e6feb95
VZ
4247 # Check whether --enable-textfile or --disable-textfile was given.
4248if test "${enable_textfile+set}" = set; then
4249 enableval="$enable_textfile"
7b4a847f 4250
10f2d63a 4251 if test "$enableval" = yes; then
1e6feb95 4252 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4253 else
1e6feb95 4254 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4255 fi
7b4a847f 4256
10f2d63a 4257else
7b4a847f 4258
1e6feb95 4259 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4260 if test "x$LINE" != x ; then
4261 eval "DEFAULT_$LINE"
4262 else
4263 no_cache=1
4264 fi
4265
1e6feb95 4266 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4267
7b4a847f 4268fi;
10f2d63a 4269
1e6feb95 4270 eval "$ac_cv_use_textfile"
10f2d63a 4271 if test "$no_cache" != 1; then
1e6feb95 4272 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4273 fi
4274
1e6feb95 4275 if test "$wxUSE_TEXTFILE" = yes; then
7b4a847f
RR
4276 echo "$as_me:4276: result: yes" >&5
4277echo "${ECHO_T}yes" >&6
10f2d63a 4278 else
7b4a847f
RR
4279 echo "$as_me:4279: result: no" >&5
4280echo "${ECHO_T}no" >&6
10f2d63a 4281 fi
10f2d63a 4282
7b4a847f
RR
4283 echo "$as_me:4283: checking for --enable-fontmap" >&5
4284echo $ECHO_N "checking for --enable-fontmap... $ECHO_C" >&6
10f2d63a 4285 no_cache=0
1e6feb95
VZ
4286 # Check whether --enable-fontmap or --disable-fontmap was given.
4287if test "${enable_fontmap+set}" = set; then
4288 enableval="$enable_fontmap"
7b4a847f 4289
10f2d63a 4290 if test "$enableval" = yes; then
1e6feb95 4291 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4292 else
1e6feb95 4293 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4294 fi
7b4a847f 4295
10f2d63a 4296else
7b4a847f 4297
1e6feb95 4298 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4299 if test "x$LINE" != x ; then
4300 eval "DEFAULT_$LINE"
4301 else
4302 no_cache=1
4303 fi
4304
1e6feb95 4305 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4306
7b4a847f 4307fi;
10f2d63a 4308
1e6feb95 4309 eval "$ac_cv_use_fontmap"
10f2d63a 4310 if test "$no_cache" != 1; then
1e6feb95 4311 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4312 fi
4313
1e6feb95 4314 if test "$wxUSE_FONTMAP" = yes; then
7b4a847f
RR
4315 echo "$as_me:4315: result: yes" >&5
4316echo "${ECHO_T}yes" >&6
10f2d63a 4317 else
7b4a847f
RR
4318 echo "$as_me:4318: result: no" >&5
4319echo "${ECHO_T}no" >&6
10f2d63a 4320 fi
10f2d63a 4321
7b4a847f
RR
4322 echo "$as_me:4322: checking for --enable-unicode" >&5
4323echo $ECHO_N "checking for --enable-unicode... $ECHO_C" >&6
10f2d63a 4324 no_cache=0
1e6feb95
VZ
4325 # Check whether --enable-unicode or --disable-unicode was given.
4326if test "${enable_unicode+set}" = set; then
4327 enableval="$enable_unicode"
7b4a847f 4328
1e6feb95
VZ
4329 if test "$enableval" = yes; then
4330 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4331 else
4332 ac_cv_use_unicode='wxUSE_UNICODE=no'
4333 fi
7b4a847f 4334
1e6feb95 4335else
7b4a847f 4336
1e6feb95
VZ
4337 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4338 if test "x$LINE" != x ; then
4339 eval "DEFAULT_$LINE"
4340 else
4341 no_cache=1
4342 fi
4343
4344 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4345
7b4a847f 4346fi;
1e6feb95
VZ
4347
4348 eval "$ac_cv_use_unicode"
4349 if test "$no_cache" != 1; then
4350 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4351 fi
4352
4353 if test "$wxUSE_UNICODE" = yes; then
7b4a847f
RR
4354 echo "$as_me:4354: result: yes" >&5
4355echo "${ECHO_T}yes" >&6
1e6feb95 4356 else
7b4a847f
RR
4357 echo "$as_me:4357: result: no" >&5
4358echo "${ECHO_T}no" >&6
1e6feb95 4359 fi
1e6feb95 4360
7b4a847f
RR
4361 echo "$as_me:4361: checking for --enable-mslu" >&5
4362echo $ECHO_N "checking for --enable-mslu... $ECHO_C" >&6
a72a4bfa
VS
4363 no_cache=0
4364 # Check whether --enable-mslu or --disable-mslu was given.
4365if test "${enable_mslu+set}" = set; then
4366 enableval="$enable_mslu"
7b4a847f 4367
a72a4bfa
VS
4368 if test "$enableval" = yes; then
4369 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4370 else
4371 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4372 fi
7b4a847f 4373
a72a4bfa 4374else
7b4a847f 4375
a72a4bfa
VS
4376 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4377 if test "x$LINE" != x ; then
4378 eval "DEFAULT_$LINE"
4379 else
4380 no_cache=1
4381 fi
4382
4383 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4384
7b4a847f 4385fi;
a72a4bfa
VS
4386
4387 eval "$ac_cv_use_mslu"
4388 if test "$no_cache" != 1; then
4389 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4390 fi
4391
4392 if test "$wxUSE_UNICODE_MSLU" = yes; then
7b4a847f
RR
4393 echo "$as_me:4393: result: yes" >&5
4394echo "${ECHO_T}yes" >&6
a72a4bfa 4395 else
7b4a847f
RR
4396 echo "$as_me:4396: result: no" >&5
4397echo "${ECHO_T}no" >&6
a72a4bfa 4398 fi
a72a4bfa 4399
7b4a847f
RR
4400 echo "$as_me:4400: checking for --enable-wxprintfv" >&5
4401echo $ECHO_N "checking for --enable-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
4402 no_cache=0
4403 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4404if test "${enable_wxprintfv+set}" = set; then
4405 enableval="$enable_wxprintfv"
7b4a847f 4406
1e6feb95 4407 if test "$enableval" = yes; then
10f2d63a
VZ
4408 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4409 else
4410 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4411 fi
7b4a847f 4412
10f2d63a 4413else
7b4a847f 4414
10f2d63a
VZ
4415 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4416 if test "x$LINE" != x ; then
4417 eval "DEFAULT_$LINE"
4418 else
4419 no_cache=1
4420 fi
4421
4422 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 4423
7b4a847f 4424fi;
10f2d63a
VZ
4425
4426 eval "$ac_cv_use_wxprintfv"
4427 if test "$no_cache" != 1; then
4428 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4429 fi
4430
4431 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
7b4a847f
RR
4432 echo "$as_me:4432: result: yes" >&5
4433echo "${ECHO_T}yes" >&6
10f2d63a 4434 else
7b4a847f
RR
4435 echo "$as_me:4435: result: no" >&5
4436echo "${ECHO_T}no" >&6
10f2d63a 4437 fi
10f2d63a 4438
7b4a847f
RR
4439 echo "$as_me:4439: checking for --enable-std_iostreams" >&5
4440echo $ECHO_N "checking for --enable-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
4441 no_cache=0
4442 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4443if test "${enable_std_iostreams+set}" = set; then
4444 enableval="$enable_std_iostreams"
7b4a847f 4445
10f2d63a
VZ
4446 if test "$enableval" = yes; then
4447 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4448 else
4449 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4450 fi
7b4a847f 4451
10f2d63a 4452else
7b4a847f 4453
10f2d63a
VZ
4454 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4455 if test "x$LINE" != x ; then
4456 eval "DEFAULT_$LINE"
4457 else
4458 no_cache=1
4459 fi
4460
4461 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 4462
7b4a847f 4463fi;
10f2d63a
VZ
4464
4465 eval "$ac_cv_use_std_iostreams"
4466 if test "$no_cache" != 1; then
4467 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4468 fi
4469
4470 if test "$wxUSE_STD_IOSTREAM" = yes; then
7b4a847f
RR
4471 echo "$as_me:4471: result: yes" >&5
4472echo "${ECHO_T}yes" >&6
10f2d63a 4473 else
7b4a847f
RR
4474 echo "$as_me:4474: result: no" >&5
4475echo "${ECHO_T}no" >&6
10f2d63a 4476 fi
10f2d63a 4477
7b4a847f
RR
4478 echo "$as_me:4478: checking for --enable-filesystem" >&5
4479echo $ECHO_N "checking for --enable-filesystem... $ECHO_C" >&6
24528b0c
VS
4480 no_cache=0
4481 # Check whether --enable-filesystem or --disable-filesystem was given.
4482if test "${enable_filesystem+set}" = set; then
4483 enableval="$enable_filesystem"
7b4a847f 4484
24528b0c
VS
4485 if test "$enableval" = yes; then
4486 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4487 else
4488 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4489 fi
7b4a847f 4490
24528b0c 4491else
7b4a847f 4492
24528b0c
VS
4493 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4494 if test "x$LINE" != x ; then
4495 eval "DEFAULT_$LINE"
4496 else
4497 no_cache=1
4498 fi
4499
4500 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 4501
7b4a847f 4502fi;
24528b0c
VS
4503
4504 eval "$ac_cv_use_filesystem"
4505 if test "$no_cache" != 1; then
4506 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4507 fi
4508
4509 if test "$wxUSE_FILESYSTEM" = yes; then
7b4a847f
RR
4510 echo "$as_me:4510: result: yes" >&5
4511echo "${ECHO_T}yes" >&6
24528b0c 4512 else
7b4a847f
RR
4513 echo "$as_me:4513: result: no" >&5
4514echo "${ECHO_T}no" >&6
24528b0c 4515 fi
24528b0c 4516
7b4a847f
RR
4517 echo "$as_me:4517: checking for --enable-fs_inet" >&5
4518echo $ECHO_N "checking for --enable-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
4519 no_cache=0
4520 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4521if test "${enable_fs_inet+set}" = set; then
4522 enableval="$enable_fs_inet"
7b4a847f 4523
10f2d63a
VZ
4524 if test "$enableval" = yes; then
4525 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4526 else
4527 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4528 fi
7b4a847f 4529
10f2d63a 4530else
7b4a847f 4531
10f2d63a
VZ
4532 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4533 if test "x$LINE" != x ; then
4534 eval "DEFAULT_$LINE"
4535 else
4536 no_cache=1
4537 fi
4538
4539 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4540
7b4a847f 4541fi;
10f2d63a
VZ
4542
4543 eval "$ac_cv_use_fs_inet"
4544 if test "$no_cache" != 1; then
4545 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4546 fi
4547
4548 if test "$wxUSE_FS_INET" = yes; then
7b4a847f
RR
4549 echo "$as_me:4549: result: yes" >&5
4550echo "${ECHO_T}yes" >&6
10f2d63a 4551 else
7b4a847f
RR
4552 echo "$as_me:4552: result: no" >&5
4553echo "${ECHO_T}no" >&6
10f2d63a 4554 fi
10f2d63a 4555
7b4a847f
RR
4556 echo "$as_me:4556: checking for --enable-fs_zip" >&5
4557echo $ECHO_N "checking for --enable-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
4558 no_cache=0
4559 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4560if test "${enable_fs_zip+set}" = set; then
4561 enableval="$enable_fs_zip"
7b4a847f 4562
10f2d63a
VZ
4563 if test "$enableval" = yes; then
4564 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4565 else
4566 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4567 fi
7b4a847f 4568
10f2d63a 4569else
7b4a847f 4570
10f2d63a
VZ
4571 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4572 if test "x$LINE" != x ; then
4573 eval "DEFAULT_$LINE"
4574 else
4575 no_cache=1
4576 fi
4577
4578 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 4579
7b4a847f 4580fi;
10f2d63a
VZ
4581
4582 eval "$ac_cv_use_fs_zip"
4583 if test "$no_cache" != 1; then
4584 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4585 fi
4586
4587 if test "$wxUSE_FS_ZIP" = yes; then
7b4a847f
RR
4588 echo "$as_me:4588: result: yes" >&5
4589echo "${ECHO_T}yes" >&6
10f2d63a 4590 else
7b4a847f
RR
4591 echo "$as_me:4591: result: no" >&5
4592echo "${ECHO_T}no" >&6
10f2d63a 4593 fi
10f2d63a 4594
7b4a847f
RR
4595 echo "$as_me:4595: checking for --enable-zipstream" >&5
4596echo $ECHO_N "checking for --enable-zipstream... $ECHO_C" >&6
10f2d63a
VZ
4597 no_cache=0
4598 # Check whether --enable-zipstream or --disable-zipstream was given.
4599if test "${enable_zipstream+set}" = set; then
4600 enableval="$enable_zipstream"
7b4a847f 4601
10f2d63a
VZ
4602 if test "$enableval" = yes; then
4603 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4604 else
4605 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4606 fi
7b4a847f 4607
10f2d63a 4608else
7b4a847f 4609
10f2d63a
VZ
4610 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4611 if test "x$LINE" != x ; then
4612 eval "DEFAULT_$LINE"
4613 else
4614 no_cache=1
4615 fi
4616
4617 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 4618
7b4a847f 4619fi;
10f2d63a
VZ
4620
4621 eval "$ac_cv_use_zipstream"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_ZIPSTREAM" = yes; then
7b4a847f
RR
4627 echo "$as_me:4627: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
10f2d63a 4629 else
7b4a847f
RR
4630 echo "$as_me:4630: result: no" >&5
4631echo "${ECHO_T}no" >&6
10f2d63a 4632 fi
698dcdb6 4633
7b4a847f
RR
4634 echo "$as_me:4634: checking for --enable-catch_segvs" >&5
4635echo $ECHO_N "checking for --enable-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
4636 no_cache=0
4637 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4638if test "${enable_catch_segvs+set}" = set; then
4639 enableval="$enable_catch_segvs"
7b4a847f 4640
eb4efbdc
VZ
4641 if test "$enableval" = yes; then
4642 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4643 else
4644 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4645 fi
7b4a847f 4646
eb4efbdc 4647else
7b4a847f 4648
eb4efbdc
VZ
4649 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4650 if test "x$LINE" != x ; then
4651 eval "DEFAULT_$LINE"
4652 else
4653 no_cache=1
4654 fi
4655
4656 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 4657
7b4a847f 4658fi;
eb4efbdc
VZ
4659
4660 eval "$ac_cv_use_catch_segvs"
4661 if test "$no_cache" != 1; then
4662 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4663 fi
4664
4665 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
7b4a847f
RR
4666 echo "$as_me:4666: result: yes" >&5
4667echo "${ECHO_T}yes" >&6
eb4efbdc 4668 else
7b4a847f
RR
4669 echo "$as_me:4669: result: no" >&5
4670echo "${ECHO_T}no" >&6
eb4efbdc 4671 fi
eb4efbdc 4672
7b4a847f
RR
4673 echo "$as_me:4673: checking for --enable-snglinst" >&5
4674echo $ECHO_N "checking for --enable-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
4675 no_cache=0
4676 # Check whether --enable-snglinst or --disable-snglinst was given.
4677if test "${enable_snglinst+set}" = set; then
4678 enableval="$enable_snglinst"
7b4a847f 4679
4f3c5f06
VZ
4680 if test "$enableval" = yes; then
4681 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4682 else
4683 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4684 fi
7b4a847f 4685
4f3c5f06 4686else
7b4a847f 4687
4f3c5f06
VZ
4688 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 4696
7b4a847f 4697fi;
4f3c5f06
VZ
4698
4699 eval "$ac_cv_use_snglinst"
4700 if test "$no_cache" != 1; then
4701 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4702 fi
4703
4704 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
7b4a847f
RR
4705 echo "$as_me:4705: result: yes" >&5
4706echo "${ECHO_T}yes" >&6
4f3c5f06 4707 else
7b4a847f
RR
4708 echo "$as_me:4708: result: no" >&5
4709echo "${ECHO_T}no" >&6
4f3c5f06 4710 fi
698dcdb6 4711
7b4a847f
RR
4712 echo "$as_me:4712: checking for --enable-mimetype" >&5
4713echo $ECHO_N "checking for --enable-mimetype... $ECHO_C" >&6
1e6feb95
VZ
4714 no_cache=0
4715 # Check whether --enable-mimetype or --disable-mimetype was given.
4716if test "${enable_mimetype+set}" = set; then
4717 enableval="$enable_mimetype"
7b4a847f 4718
1e6feb95
VZ
4719 if test "$enableval" = yes; then
4720 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4721 else
4722 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4723 fi
7b4a847f 4724
1e6feb95 4725else
7b4a847f 4726
1e6feb95
VZ
4727 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4728 if test "x$LINE" != x ; then
4729 eval "DEFAULT_$LINE"
4730 else
4731 no_cache=1
4732 fi
4733
4734 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 4735
7b4a847f 4736fi;
1e6feb95
VZ
4737
4738 eval "$ac_cv_use_mimetype"
4739 if test "$no_cache" != 1; then
4740 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4741 fi
4742
4743 if test "$wxUSE_MIMETYPE" = yes; then
7b4a847f
RR
4744 echo "$as_me:4744: result: yes" >&5
4745echo "${ECHO_T}yes" >&6
1e6feb95 4746 else
7b4a847f
RR
4747 echo "$as_me:4747: result: no" >&5
4748echo "${ECHO_T}no" >&6
1e6feb95 4749 fi
1e6feb95 4750
7b4a847f
RR
4751 echo "$as_me:4751: checking for --enable-system_options" >&5
4752echo $ECHO_N "checking for --enable-system_options... $ECHO_C" >&6
3e44f09d
VZ
4753 no_cache=0
4754 # Check whether --enable-system_options or --disable-system_options was given.
4755if test "${enable_system_options+set}" = set; then
4756 enableval="$enable_system_options"
7b4a847f 4757
3e44f09d
VZ
4758 if test "$enableval" = yes; then
4759 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4760 else
4761 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4762 fi
7b4a847f 4763
3e44f09d 4764else
7b4a847f 4765
3e44f09d
VZ
4766 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4767 if test "x$LINE" != x ; then
4768 eval "DEFAULT_$LINE"
4769 else
4770 no_cache=1
4771 fi
4772
4773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 4774
7b4a847f 4775fi;
3e44f09d
VZ
4776
4777 eval "$ac_cv_use_system_options"
4778 if test "$no_cache" != 1; then
4779 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4780 fi
4781
4782 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
7b4a847f
RR
4783 echo "$as_me:4783: result: yes" >&5
4784echo "${ECHO_T}yes" >&6
3e44f09d 4785 else
7b4a847f
RR
4786 echo "$as_me:4786: result: no" >&5
4787echo "${ECHO_T}no" >&6
3e44f09d 4788 fi
1e6feb95 4789
7b4a847f
RR
4790 echo "$as_me:4790: checking for --enable-url" >&5
4791echo $ECHO_N "checking for --enable-url... $ECHO_C" >&6
4cdb0ab0
VS
4792 no_cache=0
4793 # Check whether --enable-url or --disable-url was given.
4794if test "${enable_url+set}" = set; then
4795 enableval="$enable_url"
7b4a847f 4796
4cdb0ab0
VS
4797 if test "$enableval" = yes; then
4798 ac_cv_use_url='wxUSE_URL=yes'
4799 else
4800 ac_cv_use_url='wxUSE_URL=no'
4801 fi
7b4a847f 4802
4cdb0ab0 4803else
7b4a847f 4804
4cdb0ab0
VS
4805 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
4812 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 4813
7b4a847f 4814fi;
4cdb0ab0
VS
4815
4816 eval "$ac_cv_use_url"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_URL" = yes; then
7b4a847f
RR
4822 echo "$as_me:4822: result: yes" >&5
4823echo "${ECHO_T}yes" >&6
4cdb0ab0 4824 else
7b4a847f
RR
4825 echo "$as_me:4825: result: no" >&5
4826echo "${ECHO_T}no" >&6
4cdb0ab0 4827 fi
4cdb0ab0 4828
7b4a847f
RR
4829 echo "$as_me:4829: checking for --enable-protocol" >&5
4830echo $ECHO_N "checking for --enable-protocol... $ECHO_C" >&6
4cdb0ab0
VS
4831 no_cache=0
4832 # Check whether --enable-protocol or --disable-protocol was given.
4833if test "${enable_protocol+set}" = set; then
4834 enableval="$enable_protocol"
7b4a847f 4835
4cdb0ab0
VS
4836 if test "$enableval" = yes; then
4837 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4838 else
4839 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4840 fi
7b4a847f 4841
4cdb0ab0 4842else
7b4a847f 4843
4cdb0ab0
VS
4844 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4845 if test "x$LINE" != x ; then
4846 eval "DEFAULT_$LINE"
4847 else
4848 no_cache=1
4849 fi
4850
4851 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 4852
7b4a847f 4853fi;
4cdb0ab0
VS
4854
4855 eval "$ac_cv_use_protocol"
4856 if test "$no_cache" != 1; then
4857 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4858 fi
4859
4860 if test "$wxUSE_PROTOCOL" = yes; then
7b4a847f
RR
4861 echo "$as_me:4861: result: yes" >&5
4862echo "${ECHO_T}yes" >&6
4cdb0ab0 4863 else
7b4a847f
RR
4864 echo "$as_me:4864: result: no" >&5
4865echo "${ECHO_T}no" >&6
4cdb0ab0 4866 fi
4cdb0ab0 4867
7b4a847f
RR
4868 echo "$as_me:4868: checking for --enable-protocol_http" >&5
4869echo $ECHO_N "checking for --enable-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
4870 no_cache=0
4871 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4872if test "${enable_protocol_http+set}" = set; then
4873 enableval="$enable_protocol_http"
7b4a847f 4874
4cdb0ab0
VS
4875 if test "$enableval" = yes; then
4876 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4877 else
4878 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4879 fi
7b4a847f 4880
4cdb0ab0 4881else
7b4a847f 4882
4cdb0ab0
VS
4883 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4884 if test "x$LINE" != x ; then
4885 eval "DEFAULT_$LINE"
4886 else
4887 no_cache=1
4888 fi
4889
4890 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 4891
7b4a847f 4892fi;
4cdb0ab0
VS
4893
4894 eval "$ac_cv_use_protocol_http"
4895 if test "$no_cache" != 1; then
4896 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4897 fi
4898
4899 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
7b4a847f
RR
4900 echo "$as_me:4900: result: yes" >&5
4901echo "${ECHO_T}yes" >&6
4cdb0ab0 4902 else
7b4a847f
RR
4903 echo "$as_me:4903: result: no" >&5
4904echo "${ECHO_T}no" >&6
4cdb0ab0 4905 fi
4cdb0ab0 4906
7b4a847f
RR
4907 echo "$as_me:4907: checking for --enable-protocol_ftp" >&5
4908echo $ECHO_N "checking for --enable-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
4909 no_cache=0
4910 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4911if test "${enable_protocol_ftp+set}" = set; then
4912 enableval="$enable_protocol_ftp"
7b4a847f 4913
4cdb0ab0
VS
4914 if test "$enableval" = yes; then
4915 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4916 else
4917 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4918 fi
7b4a847f 4919
4cdb0ab0 4920else
7b4a847f 4921
4cdb0ab0
VS
4922 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
4929 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 4930
7b4a847f 4931fi;
4cdb0ab0
VS
4932
4933 eval "$ac_cv_use_protocol_ftp"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_PROTOCOL_FTP" = yes; then
7b4a847f
RR
4939 echo "$as_me:4939: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4cdb0ab0 4941 else
7b4a847f
RR
4942 echo "$as_me:4942: result: no" >&5
4943echo "${ECHO_T}no" >&6
4cdb0ab0 4944 fi
4cdb0ab0 4945
7b4a847f
RR
4946 echo "$as_me:4946: checking for --enable-protocol_file" >&5
4947echo $ECHO_N "checking for --enable-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
4948 no_cache=0
4949 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4950if test "${enable_protocol_file+set}" = set; then
4951 enableval="$enable_protocol_file"
7b4a847f 4952
4cdb0ab0
VS
4953 if test "$enableval" = yes; then
4954 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4955 else
4956 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4957 fi
7b4a847f 4958
4cdb0ab0 4959else
7b4a847f 4960
4cdb0ab0
VS
4961 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4962 if test "x$LINE" != x ; then
4963 eval "DEFAULT_$LINE"
4964 else
4965 no_cache=1
4966 fi
4967
4968 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 4969
7b4a847f 4970fi;
4cdb0ab0
VS
4971
4972 eval "$ac_cv_use_protocol_file"
4973 if test "$no_cache" != 1; then
4974 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4975 fi
4976
4977 if test "$wxUSE_PROTOCOL_FILE" = yes; then
7b4a847f
RR
4978 echo "$as_me:4978: result: yes" >&5
4979echo "${ECHO_T}yes" >&6
4cdb0ab0 4980 else
7b4a847f
RR
4981 echo "$as_me:4981: result: no" >&5
4982echo "${ECHO_T}no" >&6
4cdb0ab0 4983 fi
4cdb0ab0 4984
7b4a847f
RR
4985 echo "$as_me:4985: checking for --enable-threads" >&5
4986echo $ECHO_N "checking for --enable-threads... $ECHO_C" >&6
10f2d63a
VZ
4987 no_cache=0
4988 # Check whether --enable-threads or --disable-threads was given.
4989if test "${enable_threads+set}" = set; then
4990 enableval="$enable_threads"
7b4a847f 4991
10f2d63a
VZ
4992 if test "$enableval" = yes; then
4993 ac_cv_use_threads='wxUSE_THREADS=yes'
4994 else
4995 ac_cv_use_threads='wxUSE_THREADS=no'
4996 fi
7b4a847f 4997
10f2d63a 4998else
7b4a847f 4999
10f2d63a
VZ
5000 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5001 if test "x$LINE" != x ; then
5002 eval "DEFAULT_$LINE"
5003 else
5004 no_cache=1
5005 fi
5006
5007 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5008
7b4a847f 5009fi;
10f2d63a
VZ
5010
5011 eval "$ac_cv_use_threads"
5012 if test "$no_cache" != 1; then
5013 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5014 fi
5015
5016 if test "$wxUSE_THREADS" = yes; then
7b4a847f
RR
5017 echo "$as_me:5017: result: yes" >&5
5018echo "${ECHO_T}yes" >&6
10f2d63a 5019 else
7b4a847f
RR
5020 echo "$as_me:5020: result: no" >&5
5021echo "${ECHO_T}no" >&6
10f2d63a 5022 fi
10f2d63a 5023
b12915c1
VZ
5024if test "$wxUSE_GUI" = "yes"; then
5025
7b4a847f
RR
5026 echo "$as_me:5026: checking for --enable-docview" >&5
5027echo $ECHO_N "checking for --enable-docview... $ECHO_C" >&6
10f2d63a
VZ
5028 no_cache=0
5029 # Check whether --enable-docview or --disable-docview was given.
5030if test "${enable_docview+set}" = set; then
5031 enableval="$enable_docview"
7b4a847f 5032
10f2d63a
VZ
5033 if test "$enableval" = yes; then
5034 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5035 else
5036 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5037 fi
7b4a847f 5038
10f2d63a 5039else
7b4a847f 5040
10f2d63a
VZ
5041 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
5048 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5049
7b4a847f 5050fi;
10f2d63a
VZ
5051
5052 eval "$ac_cv_use_docview"
5053 if test "$no_cache" != 1; then
5054 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5055 fi
5056
5057 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
7b4a847f
RR
5058 echo "$as_me:5058: result: yes" >&5
5059echo "${ECHO_T}yes" >&6
10f2d63a 5060 else
7b4a847f
RR
5061 echo "$as_me:5061: result: no" >&5
5062echo "${ECHO_T}no" >&6
10f2d63a 5063 fi
10f2d63a 5064
7b4a847f
RR
5065 echo "$as_me:5065: checking for --enable-help" >&5
5066echo $ECHO_N "checking for --enable-help... $ECHO_C" >&6
10f2d63a
VZ
5067 no_cache=0
5068 # Check whether --enable-help or --disable-help was given.
5069if test "${enable_help+set}" = set; then
5070 enableval="$enable_help"
7b4a847f 5071
10f2d63a
VZ
5072 if test "$enableval" = yes; then
5073 ac_cv_use_help='wxUSE_HELP=yes'
5074 else
5075 ac_cv_use_help='wxUSE_HELP=no'
5076 fi
7b4a847f 5077
10f2d63a 5078else
7b4a847f 5079
10f2d63a
VZ
5080 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5088
7b4a847f 5089fi;
10f2d63a
VZ
5090
5091 eval "$ac_cv_use_help"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_HELP" = yes; then
7b4a847f
RR
5097 echo "$as_me:5097: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
10f2d63a 5099 else
7b4a847f
RR
5100 echo "$as_me:5100: result: no" >&5
5101echo "${ECHO_T}no" >&6
10f2d63a 5102 fi
10f2d63a 5103
7b4a847f
RR
5104 echo "$as_me:5104: checking for --enable-mshtmlhelp" >&5
5105echo $ECHO_N "checking for --enable-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5106 no_cache=0
5107 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5108if test "${enable_mshtmlhelp+set}" = set; then
5109 enableval="$enable_mshtmlhelp"
7b4a847f 5110
29fd3c0c
VS
5111 if test "$enableval" = yes; then
5112 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5113 else
5114 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5115 fi
7b4a847f 5116
29fd3c0c 5117else
7b4a847f 5118
29fd3c0c
VS
5119 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5127
7b4a847f 5128fi;
29fd3c0c
VS
5129
5130 eval "$ac_cv_use_mshtmlhelp"
5131 if test "$no_cache" != 1; then
5132 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5133 fi
5134
5135 if test "$wxUSE_MS_HTML_HELP" = yes; then
7b4a847f
RR
5136 echo "$as_me:5136: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
29fd3c0c 5138 else
7b4a847f
RR
5139 echo "$as_me:5139: result: no" >&5
5140echo "${ECHO_T}no" >&6
29fd3c0c 5141 fi
29fd3c0c 5142
7b4a847f
RR
5143 echo "$as_me:5143: checking for --enable-html" >&5
5144echo $ECHO_N "checking for --enable-html... $ECHO_C" >&6
3379ed37
VZ
5145 no_cache=0
5146 # Check whether --enable-html or --disable-html was given.
5147if test "${enable_html+set}" = set; then
5148 enableval="$enable_html"
7b4a847f 5149
3379ed37
VZ
5150 if test "$enableval" = yes; then
5151 ac_cv_use_html='wxUSE_HTML=yes'
5152 else
5153 ac_cv_use_html='wxUSE_HTML=no'
5154 fi
7b4a847f 5155
3379ed37 5156else
7b4a847f 5157
3379ed37
VZ
5158 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
5165 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5166
7b4a847f 5167fi;
3379ed37
VZ
5168
5169 eval "$ac_cv_use_html"
5170 if test "$no_cache" != 1; then
5171 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5172 fi
5173
5174 if test "$wxUSE_HTML" = yes; then
7b4a847f
RR
5175 echo "$as_me:5175: result: yes" >&5
5176echo "${ECHO_T}yes" >&6
3379ed37 5177 else
7b4a847f
RR
5178 echo "$as_me:5178: result: no" >&5
5179echo "${ECHO_T}no" >&6
3379ed37 5180 fi
3379ed37 5181
7b4a847f
RR
5182 echo "$as_me:5182: checking for --enable-htmlhelp" >&5
5183echo $ECHO_N "checking for --enable-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5184 no_cache=0
5185 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5186if test "${enable_htmlhelp+set}" = set; then
5187 enableval="$enable_htmlhelp"
7b4a847f 5188
3379ed37
VZ
5189 if test "$enableval" = yes; then
5190 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5191 else
5192 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5193 fi
7b4a847f 5194
3379ed37 5195else
7b4a847f 5196
3379ed37
VZ
5197 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5198 if test "x$LINE" != x ; then
5199 eval "DEFAULT_$LINE"
5200 else
5201 no_cache=1
5202 fi
5203
5204 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5205
7b4a847f 5206fi;
3379ed37
VZ
5207
5208 eval "$ac_cv_use_htmlhelp"
5209 if test "$no_cache" != 1; then
5210 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5211 fi
5212
5213 if test "$wxUSE_WXHTML_HELP" = yes; then
7b4a847f
RR
5214 echo "$as_me:5214: result: yes" >&5
5215echo "${ECHO_T}yes" >&6
3379ed37 5216 else
7b4a847f
RR
5217 echo "$as_me:5217: result: no" >&5
5218echo "${ECHO_T}no" >&6
3379ed37 5219 fi
3379ed37 5220
7b4a847f
RR
5221 echo "$as_me:5221: checking for --enable-constraints" >&5
5222echo $ECHO_N "checking for --enable-constraints... $ECHO_C" >&6
10f2d63a
VZ
5223 no_cache=0
5224 # Check whether --enable-constraints or --disable-constraints was given.
5225if test "${enable_constraints+set}" = set; then
5226 enableval="$enable_constraints"
7b4a847f 5227
10f2d63a
VZ
5228 if test "$enableval" = yes; then
5229 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5230 else
5231 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5232 fi
7b4a847f 5233
10f2d63a 5234else
7b4a847f 5235
10f2d63a
VZ
5236 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5237 if test "x$LINE" != x ; then
5238 eval "DEFAULT_$LINE"
5239 else
5240 no_cache=1
5241 fi
5242
5243 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5244
7b4a847f 5245fi;
10f2d63a
VZ
5246
5247 eval "$ac_cv_use_constraints"
5248 if test "$no_cache" != 1; then
5249 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5250 fi
5251
5252 if test "$wxUSE_CONSTRAINTS" = yes; then
7b4a847f
RR
5253 echo "$as_me:5253: result: yes" >&5
5254echo "${ECHO_T}yes" >&6
10f2d63a 5255 else
7b4a847f
RR
5256 echo "$as_me:5256: result: no" >&5
5257echo "${ECHO_T}no" >&6
10f2d63a 5258 fi
10f2d63a 5259
7b4a847f
RR
5260 echo "$as_me:5260: checking for --enable-printarch" >&5
5261echo $ECHO_N "checking for --enable-printarch... $ECHO_C" >&6
10f2d63a
VZ
5262 no_cache=0
5263 # Check whether --enable-printarch or --disable-printarch was given.
5264if test "${enable_printarch+set}" = set; then
5265 enableval="$enable_printarch"
7b4a847f 5266
10f2d63a
VZ
5267 if test "$enableval" = yes; then
5268 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5269 else
5270 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5271 fi
7b4a847f 5272
10f2d63a 5273else
7b4a847f 5274
10f2d63a
VZ
5275 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5276 if test "x$LINE" != x ; then
5277 eval "DEFAULT_$LINE"
5278 else
5279 no_cache=1
5280 fi
5281
5282 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5283
7b4a847f 5284fi;
10f2d63a
VZ
5285
5286 eval "$ac_cv_use_printarch"
5287 if test "$no_cache" != 1; then
5288 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5289 fi
5290
5291 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7b4a847f
RR
5292 echo "$as_me:5292: result: yes" >&5
5293echo "${ECHO_T}yes" >&6
10f2d63a 5294 else
7b4a847f
RR
5295 echo "$as_me:5295: result: no" >&5
5296echo "${ECHO_T}no" >&6
10f2d63a 5297 fi
10f2d63a 5298
7b4a847f
RR
5299 echo "$as_me:5299: checking for --enable-mdi" >&5
5300echo $ECHO_N "checking for --enable-mdi... $ECHO_C" >&6
10f2d63a
VZ
5301 no_cache=0
5302 # Check whether --enable-mdi or --disable-mdi was given.
5303if test "${enable_mdi+set}" = set; then
5304 enableval="$enable_mdi"
7b4a847f 5305
10f2d63a
VZ
5306 if test "$enableval" = yes; then
5307 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5308 else
5309 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5310 fi
7b4a847f 5311
10f2d63a 5312else
7b4a847f 5313
10f2d63a
VZ
5314 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5315 if test "x$LINE" != x ; then
5316 eval "DEFAULT_$LINE"
5317 else
5318 no_cache=1
5319 fi
5320
5321 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 5322
7b4a847f 5323fi;
10f2d63a
VZ
5324
5325 eval "$ac_cv_use_mdi"
5326 if test "$no_cache" != 1; then
5327 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5328 fi
5329
5330 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7b4a847f
RR
5331 echo "$as_me:5331: result: yes" >&5
5332echo "${ECHO_T}yes" >&6
10f2d63a 5333 else
7b4a847f
RR
5334 echo "$as_me:5334: result: no" >&5
5335echo "${ECHO_T}no" >&6
10f2d63a 5336 fi
698dcdb6 5337
7b4a847f
RR
5338 echo "$as_me:5338: checking for --enable-loggui" >&5
5339echo $ECHO_N "checking for --enable-loggui... $ECHO_C" >&6
1e6feb95
VZ
5340 no_cache=0
5341 # Check whether --enable-loggui or --disable-loggui was given.
5342if test "${enable_loggui+set}" = set; then
5343 enableval="$enable_loggui"
7b4a847f 5344
1e6feb95
VZ
5345 if test "$enableval" = yes; then
5346 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5347 else
5348 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5349 fi
7b4a847f 5350
1e6feb95 5351else
7b4a847f 5352
1e6feb95
VZ
5353 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5354 if test "x$LINE" != x ; then
5355 eval "DEFAULT_$LINE"
5356 else
5357 no_cache=1
5358 fi
5359
5360 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 5361
7b4a847f 5362fi;
1e6feb95
VZ
5363
5364 eval "$ac_cv_use_loggui"
5365 if test "$no_cache" != 1; then
5366 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5367 fi
5368
5369 if test "$wxUSE_LOGGUI" = yes; then
7b4a847f
RR
5370 echo "$as_me:5370: result: yes" >&5
5371echo "${ECHO_T}yes" >&6
1e6feb95 5372 else
7b4a847f
RR
5373 echo "$as_me:5373: result: no" >&5
5374echo "${ECHO_T}no" >&6
1e6feb95 5375 fi
1e6feb95 5376
7b4a847f
RR
5377 echo "$as_me:5377: checking for --enable-logwin" >&5
5378echo $ECHO_N "checking for --enable-logwin... $ECHO_C" >&6
1e6feb95
VZ
5379 no_cache=0
5380 # Check whether --enable-logwin or --disable-logwin was given.
5381if test "${enable_logwin+set}" = set; then
5382 enableval="$enable_logwin"
7b4a847f 5383
1e6feb95
VZ
5384 if test "$enableval" = yes; then
5385 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5386 else
5387 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5388 fi
7b4a847f 5389
1e6feb95 5390else
7b4a847f 5391
1e6feb95
VZ
5392 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5393 if test "x$LINE" != x ; then
5394 eval "DEFAULT_$LINE"
5395 else
5396 no_cache=1
5397 fi
5398
5399 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 5400
7b4a847f 5401fi;
1e6feb95
VZ
5402
5403 eval "$ac_cv_use_logwin"
5404 if test "$no_cache" != 1; then
5405 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5406 fi
5407
5408 if test "$wxUSE_LOGWINDOW" = yes; then
7b4a847f
RR
5409 echo "$as_me:5409: result: yes" >&5
5410echo "${ECHO_T}yes" >&6
1e6feb95 5411 else
7b4a847f
RR
5412 echo "$as_me:5412: result: no" >&5
5413echo "${ECHO_T}no" >&6
1e6feb95 5414 fi
1e6feb95 5415
7b4a847f
RR
5416 echo "$as_me:5416: checking for --enable-logdialog" >&5
5417echo $ECHO_N "checking for --enable-logdialog... $ECHO_C" >&6
69d27ff7
MB
5418 no_cache=0
5419 # Check whether --enable-logdialog or --disable-logdialog was given.
5420if test "${enable_logdialog+set}" = set; then
5421 enableval="$enable_logdialog"
7b4a847f 5422
69d27ff7
MB
5423 if test "$enableval" = yes; then
5424 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5425 else
5426 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5427 fi
7b4a847f 5428
69d27ff7 5429else
7b4a847f 5430
69d27ff7
MB
5431 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 5439
7b4a847f 5440fi;
69d27ff7
MB
5441
5442 eval "$ac_cv_use_logdialog"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_LOGDIALOG" = yes; then
7b4a847f
RR
5448 echo "$as_me:5448: result: yes" >&5
5449echo "${ECHO_T}yes" >&6
69d27ff7 5450 else
7b4a847f
RR
5451 echo "$as_me:5451: result: no" >&5
5452echo "${ECHO_T}no" >&6
69d27ff7 5453 fi
10f2d63a 5454
7b4a847f
RR
5455 echo "$as_me:5455: checking for --enable-postscript" >&5
5456echo $ECHO_N "checking for --enable-postscript... $ECHO_C" >&6
10f2d63a
VZ
5457 no_cache=0
5458 # Check whether --enable-postscript or --disable-postscript was given.
5459if test "${enable_postscript+set}" = set; then
5460 enableval="$enable_postscript"
7b4a847f 5461
10f2d63a
VZ
5462 if test "$enableval" = yes; then
5463 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5464 else
5465 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5466 fi
7b4a847f 5467
10f2d63a 5468else
7b4a847f 5469
10f2d63a
VZ
5470 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 5478
7b4a847f 5479fi;
10f2d63a
VZ
5480
5481 eval "$ac_cv_use_postscript"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_POSTSCRIPT" = yes; then
7b4a847f
RR
5487 echo "$as_me:5487: result: yes" >&5
5488echo "${ECHO_T}yes" >&6
10f2d63a 5489 else
7b4a847f
RR
5490 echo "$as_me:5490: result: no" >&5
5491echo "${ECHO_T}no" >&6
10f2d63a 5492 fi
10f2d63a 5493
7b4a847f
RR
5494 echo "$as_me:5494: checking for --enable-prologio" >&5
5495echo $ECHO_N "checking for --enable-prologio... $ECHO_C" >&6
10f2d63a
VZ
5496 no_cache=0
5497 # Check whether --enable-prologio or --disable-prologio was given.
5498if test "${enable_prologio+set}" = set; then
5499 enableval="$enable_prologio"
7b4a847f 5500
10f2d63a
VZ
5501 if test "$enableval" = yes; then
5502 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5503 else
5504 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5505 fi
7b4a847f 5506
10f2d63a 5507else
7b4a847f 5508
10f2d63a
VZ
5509 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5510 if test "x$LINE" != x ; then
5511 eval "DEFAULT_$LINE"
5512 else
5513 no_cache=1
5514 fi
5515
5516 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 5517
7b4a847f 5518fi;
10f2d63a
VZ
5519
5520 eval "$ac_cv_use_prologio"
5521 if test "$no_cache" != 1; then
5522 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5523 fi
5524
5525 if test "$wxUSE_PROLOGIO" = yes; then
7b4a847f
RR
5526 echo "$as_me:5526: result: yes" >&5
5527echo "${ECHO_T}yes" >&6
10f2d63a 5528 else
7b4a847f
RR
5529 echo "$as_me:5529: result: no" >&5
5530echo "${ECHO_T}no" >&6
10f2d63a 5531 fi
10f2d63a 5532
7b4a847f
RR
5533 echo "$as_me:5533: checking for --enable-resources" >&5
5534echo $ECHO_N "checking for --enable-resources... $ECHO_C" >&6
10f2d63a
VZ
5535 no_cache=0
5536 # Check whether --enable-resources or --disable-resources was given.
5537if test "${enable_resources+set}" = set; then
5538 enableval="$enable_resources"
7b4a847f 5539
10f2d63a
VZ
5540 if test "$enableval" = yes; then
5541 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5542 else
5543 ac_cv_use_resources='wxUSE_RESOURCES=no'
5544 fi
7b4a847f 5545
10f2d63a 5546else
7b4a847f 5547
10f2d63a
VZ
5548 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 5556
7b4a847f 5557fi;
10f2d63a
VZ
5558
5559 eval "$ac_cv_use_resources"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_RESOURCES" = yes; then
7b4a847f
RR
5565 echo "$as_me:5565: result: yes" >&5
5566echo "${ECHO_T}yes" >&6
10f2d63a 5567 else
7b4a847f
RR
5568 echo "$as_me:5568: result: no" >&5
5569echo "${ECHO_T}no" >&6
10f2d63a 5570 fi
698dcdb6 5571
7b4a847f
RR
5572 echo "$as_me:5572: checking for --enable-xresources" >&5
5573echo $ECHO_N "checking for --enable-xresources... $ECHO_C" >&6
10f2d63a
VZ
5574 no_cache=0
5575 # Check whether --enable-xresources or --disable-xresources was given.
5576if test "${enable_xresources+set}" = set; then
5577 enableval="$enable_xresources"
7b4a847f 5578
10f2d63a
VZ
5579 if test "$enableval" = yes; then
5580 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5581 else
5582 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5583 fi
7b4a847f 5584
10f2d63a 5585else
7b4a847f 5586
10f2d63a
VZ
5587 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
10f2d63a 5595
7b4a847f 5596fi;
10f2d63a
VZ
5597
5598 eval "$ac_cv_use_xresources"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_X_RESOURCES" = yes; then
7b4a847f
RR
5604 echo "$as_me:5604: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
10f2d63a 5606 else
7b4a847f
RR
5607 echo "$as_me:5607: result: no" >&5
5608echo "${ECHO_T}no" >&6
10f2d63a 5609 fi
698dcdb6 5610
7b4a847f
RR
5611 echo "$as_me:5611: checking for --enable-clipboard" >&5
5612echo $ECHO_N "checking for --enable-clipboard... $ECHO_C" >&6
10f2d63a
VZ
5613 no_cache=0
5614 # Check whether --enable-clipboard or --disable-clipboard was given.
5615if test "${enable_clipboard+set}" = set; then
5616 enableval="$enable_clipboard"
7b4a847f 5617
10f2d63a
VZ
5618 if test "$enableval" = yes; then
5619 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5620 else
5621 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5622 fi
7b4a847f 5623
10f2d63a 5624else
7b4a847f 5625
10f2d63a
VZ
5626 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5627 if test "x$LINE" != x ; then
5628 eval "DEFAULT_$LINE"
5629 else
5630 no_cache=1
5631 fi
5632
5633 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 5634
7b4a847f 5635fi;
10f2d63a
VZ
5636
5637 eval "$ac_cv_use_clipboard"
5638 if test "$no_cache" != 1; then
5639 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5640 fi
5641
5642 if test "$wxUSE_CLIPBOARD" = yes; then
7b4a847f
RR
5643 echo "$as_me:5643: result: yes" >&5
5644echo "${ECHO_T}yes" >&6
10f2d63a 5645 else
7b4a847f
RR
5646 echo "$as_me:5646: result: no" >&5
5647echo "${ECHO_T}no" >&6
10f2d63a 5648 fi
10f2d63a 5649
7b4a847f
RR
5650 echo "$as_me:5650: checking for --enable-dnd" >&5
5651echo $ECHO_N "checking for --enable-dnd... $ECHO_C" >&6
10f2d63a
VZ
5652 no_cache=0
5653 # Check whether --enable-dnd or --disable-dnd was given.
5654if test "${enable_dnd+set}" = set; then
5655 enableval="$enable_dnd"
7b4a847f 5656
10f2d63a
VZ
5657 if test "$enableval" = yes; then
5658 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5659 else
5660 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5661 fi
7b4a847f 5662
10f2d63a 5663else
7b4a847f 5664
10f2d63a
VZ
5665 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5666 if test "x$LINE" != x ; then
5667 eval "DEFAULT_$LINE"
5668 else
5669 no_cache=1
5670 fi
5671
5672 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 5673
7b4a847f 5674fi;
10f2d63a
VZ
5675
5676 eval "$ac_cv_use_dnd"
5677 if test "$no_cache" != 1; then
5678 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5679 fi
5680
5681 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7b4a847f
RR
5682 echo "$as_me:5682: result: yes" >&5
5683echo "${ECHO_T}yes" >&6
10f2d63a 5684 else
7b4a847f
RR
5685 echo "$as_me:5685: result: no" >&5
5686echo "${ECHO_T}no" >&6
10f2d63a 5687 fi
10f2d63a 5688
7b4a847f
RR
5689 echo "$as_me:5689: checking for --enable-metafile" >&5
5690echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6
b64f0a5f
RL
5691 no_cache=0
5692 # Check whether --enable-metafile or --disable-metafile was given.
5693if test "${enable_metafile+set}" = set; then
5694 enableval="$enable_metafile"
7b4a847f 5695
b64f0a5f
RL
5696 if test "$enableval" = yes; then
5697 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5698 else
5699 ac_cv_use_metafile='wxUSE_METAFILE=no'
5700 fi
7b4a847f 5701
b64f0a5f 5702else
7b4a847f 5703
b64f0a5f
RL
5704 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
5711 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 5712
7b4a847f 5713fi;
b64f0a5f
RL
5714
5715 eval "$ac_cv_use_metafile"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_METAFILE" = yes; then
7b4a847f
RR
5721 echo "$as_me:5721: result: yes" >&5
5722echo "${ECHO_T}yes" >&6
b64f0a5f 5723 else
7b4a847f
RR
5724 echo "$as_me:5724: result: no" >&5
5725echo "${ECHO_T}no" >&6
b64f0a5f 5726 fi
698dcdb6 5727
7b4a847f
RR
5728 echo "$as_me:5728: checking for --enable-treelayout" >&5
5729echo $ECHO_N "checking for --enable-treelayout... $ECHO_C" >&6
10f2d63a 5730 no_cache=0
24176f2c
GD
5731 # Check whether --enable-treelayout or --disable-treelayout was given.
5732if test "${enable_treelayout+set}" = set; then
5733 enableval="$enable_treelayout"
7b4a847f 5734
10f2d63a 5735 if test "$enableval" = yes; then
24176f2c 5736 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5737 else
24176f2c 5738 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5739 fi
7b4a847f 5740
10f2d63a 5741else
7b4a847f 5742
24176f2c 5743 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
24176f2c 5750 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
10f2d63a 5751
7b4a847f 5752fi;
10f2d63a 5753
24176f2c 5754 eval "$ac_cv_use_treelayout"
10f2d63a 5755 if test "$no_cache" != 1; then
24176f2c 5756 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5757 fi
5758
24176f2c 5759 if test "$wxUSE_TREELAYOUT" = yes; then
7b4a847f
RR
5760 echo "$as_me:5760: result: yes" >&5
5761echo "${ECHO_T}yes" >&6
10f2d63a 5762 else
7b4a847f
RR
5763 echo "$as_me:5763: result: no" >&5
5764echo "${ECHO_T}no" >&6
10f2d63a 5765 fi
698dcdb6 5766
7b4a847f
RR
5767 echo "$as_me:5767: checking for --enable-controls" >&5
5768echo $ECHO_N "checking for --enable-controls... $ECHO_C" >&6
10f2d63a
VZ
5769 no_cache=0
5770 # Check whether --enable-controls or --disable-controls was given.
5771if test "${enable_controls+set}" = set; then
5772 enableval="$enable_controls"
7b4a847f 5773
10f2d63a
VZ
5774 if test "$enableval" = yes; then
5775 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5776 else
5777 ac_cv_use_controls='wxUSE_CONTROLS=no'
5778 fi
7b4a847f 5779
10f2d63a 5780else
7b4a847f 5781
10f2d63a
VZ
5782 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5783 if test "x$LINE" != x ; then
5784 eval "DEFAULT_$LINE"
5785 else
5786 no_cache=1
5787 fi
5788
5789 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 5790
7b4a847f 5791fi;
10f2d63a
VZ
5792
5793 eval "$ac_cv_use_controls"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_CONTROLS" = yes; then
7b4a847f
RR
5799 echo "$as_me:5799: result: yes" >&5
5800echo "${ECHO_T}yes" >&6
10f2d63a 5801 else
7b4a847f
RR
5802 echo "$as_me:5802: result: no" >&5
5803echo "${ECHO_T}no" >&6
10f2d63a 5804 fi
10f2d63a
VZ
5805
5806if test "$wxUSE_CONTROLS" = "yes"; then
5807 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5808 DEFAULT_wxUSE_BMPBUTTON=yes
5809 DEFAULT_wxUSE_BUTTON=yes
5810 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5811 DEFAULT_wxUSE_CARET=yes
5812 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5813 DEFAULT_wxUSE_CHECKBOX=yes
5814 DEFAULT_wxUSE_CHECKLISTBOX=yes
5815 DEFAULT_wxUSE_CHOICE=yes
5816 DEFAULT_wxUSE_GAUGE=yes
5817 DEFAULT_wxUSE_GRID=yes
cc977e5f 5818 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5819 DEFAULT_wxUSE_IMAGLIST=yes
5820 DEFAULT_wxUSE_LISTBOX=yes
5821 DEFAULT_wxUSE_LISTCTRL=yes
5822 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5823 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5824 DEFAULT_wxUSE_RADIOBOX=yes
5825 DEFAULT_wxUSE_RADIOBTN=yes
5826 DEFAULT_wxUSE_SASH=yes
5827 DEFAULT_wxUSE_SCROLLBAR=yes
5828 DEFAULT_wxUSE_SLIDER=yes
5829 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5830 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5831 DEFAULT_wxUSE_SPLITTER=yes
5832 DEFAULT_wxUSE_STATBMP=yes
5833 DEFAULT_wxUSE_STATBOX=yes
5834 DEFAULT_wxUSE_STATLINE=yes
5835 DEFAULT_wxUSE_STATUSBAR=yes
5836 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5837 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5838 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5839 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5840 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5841 DEFAULT_wxUSE_TOOLTIPS=yes
5842 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5843 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5844 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5845elif test "$wxUSE_CONTROLS" = "no"; then
5846 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5847 DEFAULT_wxUSE_BMPBUTTON=no
5848 DEFAULT_wxUSE_BUTTON=no
5849 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5850 DEFAULT_wxUSE_CARET=no
5851 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5852 DEFAULT_wxUSE_CHECKBOX=no
5853 DEFAULT_wxUSE_CHECKLISTBOX=no
5854 DEFAULT_wxUSE_CHOICE=no
5855 DEFAULT_wxUSE_GAUGE=no
5856 DEFAULT_wxUSE_GRID=no
5857 DEFAULT_wxUSE_NEW_GRID=no
5858 DEFAULT_wxUSE_IMAGLIST=no
5859 DEFAULT_wxUSE_LISTBOX=no
5860 DEFAULT_wxUSE_LISTCTRL=no
5861 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5862 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5863 DEFAULT_wxUSE_RADIOBOX=no
5864 DEFAULT_wxUSE_RADIOBTN=no
5865 DEFAULT_wxUSE_SASH=no
5866 DEFAULT_wxUSE_SCROLLBAR=no
5867 DEFAULT_wxUSE_SLIDER=no
5868 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5869 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5870 DEFAULT_wxUSE_SPLITTER=no
5871 DEFAULT_wxUSE_STATBMP=no
5872 DEFAULT_wxUSE_STATBOX=no
5873 DEFAULT_wxUSE_STATLINE=no
5874 DEFAULT_wxUSE_STATUSBAR=no
5875 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5876 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5877 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5878 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5879 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5880 DEFAULT_wxUSE_TOOLTIPS=no
5881 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5882 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5883 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5884fi
5885
7b4a847f
RR
5886 echo "$as_me:5886: checking for --enable-accel" >&5
5887echo $ECHO_N "checking for --enable-accel... $ECHO_C" >&6
10f2d63a
VZ
5888 no_cache=0
5889 # Check whether --enable-accel or --disable-accel was given.
5890if test "${enable_accel+set}" = set; then
5891 enableval="$enable_accel"
7b4a847f 5892
10f2d63a
VZ
5893 if test "$enableval" = yes; then
5894 ac_cv_use_accel='wxUSE_ACCEL=yes'
5895 else
5896 ac_cv_use_accel='wxUSE_ACCEL=no'
5897 fi
7b4a847f 5898
10f2d63a 5899else
7b4a847f 5900
10f2d63a
VZ
5901 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 5909
7b4a847f 5910fi;
10f2d63a
VZ
5911
5912 eval "$ac_cv_use_accel"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_ACCEL" = yes; then
7b4a847f
RR
5918 echo "$as_me:5918: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
10f2d63a 5920 else
7b4a847f
RR
5921 echo "$as_me:5921: result: no" >&5
5922echo "${ECHO_T}no" >&6
10f2d63a 5923 fi
10f2d63a 5924
7b4a847f
RR
5925 echo "$as_me:5925: checking for --enable-button" >&5
5926echo $ECHO_N "checking for --enable-button... $ECHO_C" >&6
10f2d63a 5927 no_cache=0
1e6feb95
VZ
5928 # Check whether --enable-button or --disable-button was given.
5929if test "${enable_button+set}" = set; then
5930 enableval="$enable_button"
7b4a847f 5931
10f2d63a 5932 if test "$enableval" = yes; then
1e6feb95 5933 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5934 else
1e6feb95 5935 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5936 fi
7b4a847f 5937
10f2d63a 5938else
7b4a847f 5939
1e6feb95 5940 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
1e6feb95 5947 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 5948
7b4a847f 5949fi;
10f2d63a 5950
1e6feb95 5951 eval "$ac_cv_use_button"
10f2d63a 5952 if test "$no_cache" != 1; then
1e6feb95 5953 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5954 fi
5955
1e6feb95 5956 if test "$wxUSE_BUTTON" = yes; then
7b4a847f
RR
5957 echo "$as_me:5957: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
10f2d63a 5959 else
7b4a847f
RR
5960 echo "$as_me:5960: result: no" >&5
5961echo "${ECHO_T}no" >&6
10f2d63a 5962 fi
10f2d63a 5963
7b4a847f
RR
5964 echo "$as_me:5964: checking for --enable-bmpbutton" >&5
5965echo $ECHO_N "checking for --enable-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
5966 no_cache=0
5967 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5968if test "${enable_bmpbutton+set}" = set; then
5969 enableval="$enable_bmpbutton"
7b4a847f 5970
10f2d63a
VZ
5971 if test "$enableval" = yes; then
5972 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5973 else
5974 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5975 fi
7b4a847f 5976
10f2d63a 5977else
7b4a847f 5978
10f2d63a
VZ
5979 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5980 if test "x$LINE" != x ; then
5981 eval "DEFAULT_$LINE"
5982 else
5983 no_cache=1
5984 fi
5985
5986 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 5987
7b4a847f 5988fi;
10f2d63a
VZ
5989
5990 eval "$ac_cv_use_bmpbutton"
5991 if test "$no_cache" != 1; then
5992 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5993 fi
5994
5995 if test "$wxUSE_BMPBUTTON" = yes; then
7b4a847f
RR
5996 echo "$as_me:5996: result: yes" >&5
5997echo "${ECHO_T}yes" >&6
10f2d63a 5998 else
7b4a847f
RR
5999 echo "$as_me:5999: result: no" >&5
6000echo "${ECHO_T}no" >&6
10f2d63a 6001 fi
10f2d63a 6002
7b4a847f
RR
6003 echo "$as_me:6003: checking for --enable-calendar" >&5
6004echo $ECHO_N "checking for --enable-calendar... $ECHO_C" >&6
1e6feb95
VZ
6005 no_cache=0
6006 # Check whether --enable-calendar or --disable-calendar was given.
6007if test "${enable_calendar+set}" = set; then
6008 enableval="$enable_calendar"
7b4a847f 6009
1e6feb95
VZ
6010 if test "$enableval" = yes; then
6011 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6012 else
6013 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6014 fi
7b4a847f 6015
1e6feb95 6016else
7b4a847f 6017
1e6feb95
VZ
6018 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6019 if test "x$LINE" != x ; then
6020 eval "DEFAULT_$LINE"
6021 else
6022 no_cache=1
6023 fi
6024
6025 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6026
7b4a847f 6027fi;
1e6feb95
VZ
6028
6029 eval "$ac_cv_use_calendar"
6030 if test "$no_cache" != 1; then
6031 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6032 fi
6033
6034 if test "$wxUSE_CALCTRL" = yes; then
7b4a847f
RR
6035 echo "$as_me:6035: result: yes" >&5
6036echo "${ECHO_T}yes" >&6
1e6feb95 6037 else
7b4a847f
RR
6038 echo "$as_me:6038: result: no" >&5
6039echo "${ECHO_T}no" >&6
1e6feb95 6040 fi
1e6feb95 6041
7b4a847f
RR
6042 echo "$as_me:6042: checking for --enable-caret" >&5
6043echo $ECHO_N "checking for --enable-caret... $ECHO_C" >&6
1e6feb95
VZ
6044 no_cache=0
6045 # Check whether --enable-caret or --disable-caret was given.
6046if test "${enable_caret+set}" = set; then
6047 enableval="$enable_caret"
7b4a847f 6048
1e6feb95
VZ
6049 if test "$enableval" = yes; then
6050 ac_cv_use_caret='wxUSE_CARET=yes'
6051 else
6052 ac_cv_use_caret='wxUSE_CARET=no'
6053 fi
7b4a847f 6054
1e6feb95 6055else
7b4a847f 6056
1e6feb95
VZ
6057 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6058 if test "x$LINE" != x ; then
6059 eval "DEFAULT_$LINE"
6060 else
6061 no_cache=1
6062 fi
6063
6064 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6065
7b4a847f 6066fi;
1e6feb95
VZ
6067
6068 eval "$ac_cv_use_caret"
6069 if test "$no_cache" != 1; then
6070 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6071 fi
6072
6073 if test "$wxUSE_CARET" = yes; then
7b4a847f
RR
6074 echo "$as_me:6074: result: yes" >&5
6075echo "${ECHO_T}yes" >&6
1e6feb95 6076 else
7b4a847f
RR
6077 echo "$as_me:6077: result: no" >&5
6078echo "${ECHO_T}no" >&6
1e6feb95 6079 fi
1e6feb95 6080
7b4a847f
RR
6081 echo "$as_me:6081: checking for --enable-checkbox" >&5
6082echo $ECHO_N "checking for --enable-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6083 no_cache=0
6084 # Check whether --enable-checkbox or --disable-checkbox was given.
6085if test "${enable_checkbox+set}" = set; then
6086 enableval="$enable_checkbox"
7b4a847f 6087
10f2d63a
VZ
6088 if test "$enableval" = yes; then
6089 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6090 else
6091 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6092 fi
7b4a847f 6093
10f2d63a 6094else
7b4a847f 6095
10f2d63a
VZ
6096 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6097 if test "x$LINE" != x ; then
6098 eval "DEFAULT_$LINE"
6099 else
6100 no_cache=1
6101 fi
6102
6103 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6104
7b4a847f 6105fi;
10f2d63a
VZ
6106
6107 eval "$ac_cv_use_checkbox"
6108 if test "$no_cache" != 1; then
6109 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6110 fi
6111
6112 if test "$wxUSE_CHECKBOX" = yes; then
7b4a847f
RR
6113 echo "$as_me:6113: result: yes" >&5
6114echo "${ECHO_T}yes" >&6
10f2d63a 6115 else
7b4a847f
RR
6116 echo "$as_me:6116: result: no" >&5
6117echo "${ECHO_T}no" >&6
10f2d63a 6118 fi
10f2d63a 6119
7b4a847f
RR
6120 echo "$as_me:6120: checking for --enable-checklst" >&5
6121echo $ECHO_N "checking for --enable-checklst... $ECHO_C" >&6
10f2d63a
VZ
6122 no_cache=0
6123 # Check whether --enable-checklst or --disable-checklst was given.
6124if test "${enable_checklst+set}" = set; then
6125 enableval="$enable_checklst"
7b4a847f 6126
10f2d63a
VZ
6127 if test "$enableval" = yes; then
6128 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6129 else
6130 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6131 fi
7b4a847f 6132
10f2d63a 6133else
7b4a847f 6134
10f2d63a
VZ
6135 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6136 if test "x$LINE" != x ; then
6137 eval "DEFAULT_$LINE"
6138 else
6139 no_cache=1
6140 fi
6141
6142 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6143
7b4a847f 6144fi;
10f2d63a
VZ
6145
6146 eval "$ac_cv_use_checklst"
6147 if test "$no_cache" != 1; then
6148 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6149 fi
6150
6151 if test "$wxUSE_CHECKLST" = yes; then
7b4a847f
RR
6152 echo "$as_me:6152: result: yes" >&5
6153echo "${ECHO_T}yes" >&6
10f2d63a 6154 else
7b4a847f
RR
6155 echo "$as_me:6155: result: no" >&5
6156echo "${ECHO_T}no" >&6
10f2d63a 6157 fi
10f2d63a 6158
7b4a847f
RR
6159 echo "$as_me:6159: checking for --enable-choice" >&5
6160echo $ECHO_N "checking for --enable-choice... $ECHO_C" >&6
10f2d63a
VZ
6161 no_cache=0
6162 # Check whether --enable-choice or --disable-choice was given.
6163if test "${enable_choice+set}" = set; then
6164 enableval="$enable_choice"
7b4a847f 6165
10f2d63a
VZ
6166 if test "$enableval" = yes; then
6167 ac_cv_use_choice='wxUSE_CHOICE=yes'
6168 else
6169 ac_cv_use_choice='wxUSE_CHOICE=no'
6170 fi
7b4a847f 6171
10f2d63a 6172else
7b4a847f 6173
10f2d63a
VZ
6174 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6175 if test "x$LINE" != x ; then
6176 eval "DEFAULT_$LINE"
6177 else
6178 no_cache=1
6179 fi
6180
6181 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6182
7b4a847f 6183fi;
10f2d63a
VZ
6184
6185 eval "$ac_cv_use_choice"
6186 if test "$no_cache" != 1; then
6187 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6188 fi
6189
6190 if test "$wxUSE_CHOICE" = yes; then
7b4a847f
RR
6191 echo "$as_me:6191: result: yes" >&5
6192echo "${ECHO_T}yes" >&6
10f2d63a 6193 else
7b4a847f
RR
6194 echo "$as_me:6194: result: no" >&5
6195echo "${ECHO_T}no" >&6
10f2d63a 6196 fi
10f2d63a 6197
7b4a847f
RR
6198 echo "$as_me:6198: checking for --enable-combobox" >&5
6199echo $ECHO_N "checking for --enable-combobox... $ECHO_C" >&6
10f2d63a
VZ
6200 no_cache=0
6201 # Check whether --enable-combobox or --disable-combobox was given.
6202if test "${enable_combobox+set}" = set; then
6203 enableval="$enable_combobox"
7b4a847f 6204
10f2d63a
VZ
6205 if test "$enableval" = yes; then
6206 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6207 else
6208 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6209 fi
7b4a847f 6210
10f2d63a 6211else
7b4a847f 6212
10f2d63a
VZ
6213 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6221
7b4a847f 6222fi;
10f2d63a
VZ
6223
6224 eval "$ac_cv_use_combobox"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_COMBOBOX" = yes; then
7b4a847f
RR
6230 echo "$as_me:6230: result: yes" >&5
6231echo "${ECHO_T}yes" >&6
10f2d63a 6232 else
7b4a847f
RR
6233 echo "$as_me:6233: result: no" >&5
6234echo "${ECHO_T}no" >&6
10f2d63a 6235 fi
10f2d63a 6236
7b4a847f
RR
6237 echo "$as_me:6237: checking for --enable-gauge" >&5
6238echo $ECHO_N "checking for --enable-gauge... $ECHO_C" >&6
10f2d63a
VZ
6239 no_cache=0
6240 # Check whether --enable-gauge or --disable-gauge was given.
6241if test "${enable_gauge+set}" = set; then
6242 enableval="$enable_gauge"
7b4a847f 6243
10f2d63a
VZ
6244 if test "$enableval" = yes; then
6245 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6246 else
6247 ac_cv_use_gauge='wxUSE_GAUGE=no'
6248 fi
7b4a847f 6249
10f2d63a 6250else
7b4a847f 6251
10f2d63a
VZ
6252 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6260
7b4a847f 6261fi;
10f2d63a
VZ
6262
6263 eval "$ac_cv_use_gauge"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_GAUGE" = yes; then
7b4a847f
RR
6269 echo "$as_me:6269: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
10f2d63a 6271 else
7b4a847f
RR
6272 echo "$as_me:6272: result: no" >&5
6273echo "${ECHO_T}no" >&6
10f2d63a 6274 fi
10f2d63a 6275
7b4a847f
RR
6276 echo "$as_me:6276: checking for --enable-grid" >&5
6277echo $ECHO_N "checking for --enable-grid... $ECHO_C" >&6
10f2d63a
VZ
6278 no_cache=0
6279 # Check whether --enable-grid or --disable-grid was given.
6280if test "${enable_grid+set}" = set; then
6281 enableval="$enable_grid"
7b4a847f 6282
10f2d63a
VZ
6283 if test "$enableval" = yes; then
6284 ac_cv_use_grid='wxUSE_GRID=yes'
6285 else
6286 ac_cv_use_grid='wxUSE_GRID=no'
6287 fi
7b4a847f 6288
10f2d63a 6289else
7b4a847f 6290
10f2d63a
VZ
6291 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6292 if test "x$LINE" != x ; then
6293 eval "DEFAULT_$LINE"
6294 else
6295 no_cache=1
6296 fi
6297
6298 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 6299
7b4a847f 6300fi;
10f2d63a
VZ
6301
6302 eval "$ac_cv_use_grid"
6303 if test "$no_cache" != 1; then
6304 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6305 fi
6306
6307 if test "$wxUSE_GRID" = yes; then
7b4a847f
RR
6308 echo "$as_me:6308: result: yes" >&5
6309echo "${ECHO_T}yes" >&6
10f2d63a 6310 else
7b4a847f
RR
6311 echo "$as_me:6311: result: no" >&5
6312echo "${ECHO_T}no" >&6
10f2d63a 6313 fi
10f2d63a 6314
7b4a847f
RR
6315 echo "$as_me:6315: checking for --enable-newgrid" >&5
6316echo $ECHO_N "checking for --enable-newgrid... $ECHO_C" >&6
10f2d63a
VZ
6317 no_cache=0
6318 # Check whether --enable-newgrid or --disable-newgrid was given.
6319if test "${enable_newgrid+set}" = set; then
6320 enableval="$enable_newgrid"
7b4a847f 6321
10f2d63a
VZ
6322 if test "$enableval" = yes; then
6323 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6324 else
6325 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6326 fi
7b4a847f 6327
10f2d63a 6328else
7b4a847f 6329
10f2d63a
VZ
6330 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6331 if test "x$LINE" != x ; then
6332 eval "DEFAULT_$LINE"
6333 else
6334 no_cache=1
6335 fi
6336
6337 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
10f2d63a 6338
7b4a847f 6339fi;
10f2d63a
VZ
6340
6341 eval "$ac_cv_use_newgrid"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_NEW_GRID" = yes; then
7b4a847f
RR
6347 echo "$as_me:6347: result: yes" >&5
6348echo "${ECHO_T}yes" >&6
10f2d63a 6349 else
7b4a847f
RR
6350 echo "$as_me:6350: result: no" >&5
6351echo "${ECHO_T}no" >&6
10f2d63a 6352 fi
10f2d63a 6353
7b4a847f
RR
6354 echo "$as_me:6354: checking for --enable-imaglist" >&5
6355echo $ECHO_N "checking for --enable-imaglist... $ECHO_C" >&6
10f2d63a
VZ
6356 no_cache=0
6357 # Check whether --enable-imaglist or --disable-imaglist was given.
6358if test "${enable_imaglist+set}" = set; then
6359 enableval="$enable_imaglist"
7b4a847f 6360
10f2d63a
VZ
6361 if test "$enableval" = yes; then
6362 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6363 else
6364 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6365 fi
7b4a847f 6366
10f2d63a 6367else
7b4a847f 6368
10f2d63a
VZ
6369 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6370 if test "x$LINE" != x ; then
6371 eval "DEFAULT_$LINE"
6372 else
6373 no_cache=1
6374 fi
6375
6376 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 6377
7b4a847f 6378fi;
10f2d63a
VZ
6379
6380 eval "$ac_cv_use_imaglist"
6381 if test "$no_cache" != 1; then
6382 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6383 fi
6384
6385 if test "$wxUSE_IMAGLIST" = yes; then
7b4a847f
RR
6386 echo "$as_me:6386: result: yes" >&5
6387echo "${ECHO_T}yes" >&6
10f2d63a 6388 else
7b4a847f
RR
6389 echo "$as_me:6389: result: no" >&5
6390echo "${ECHO_T}no" >&6
10f2d63a 6391 fi
10f2d63a 6392
7b4a847f
RR
6393 echo "$as_me:6393: checking for --enable-listbox" >&5
6394echo $ECHO_N "checking for --enable-listbox... $ECHO_C" >&6
10f2d63a
VZ
6395 no_cache=0
6396 # Check whether --enable-listbox or --disable-listbox was given.
6397if test "${enable_listbox+set}" = set; then
6398 enableval="$enable_listbox"
7b4a847f 6399
10f2d63a
VZ
6400 if test "$enableval" = yes; then
6401 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6402 else
6403 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6404 fi
7b4a847f 6405
10f2d63a 6406else
7b4a847f 6407
10f2d63a
VZ
6408 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6409 if test "x$LINE" != x ; then
6410 eval "DEFAULT_$LINE"
6411 else
6412 no_cache=1
6413 fi
6414
6415 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 6416
7b4a847f 6417fi;
10f2d63a
VZ
6418
6419 eval "$ac_cv_use_listbox"
6420 if test "$no_cache" != 1; then
6421 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6422 fi
6423
6424 if test "$wxUSE_LISTBOX" = yes; then
7b4a847f
RR
6425 echo "$as_me:6425: result: yes" >&5
6426echo "${ECHO_T}yes" >&6
10f2d63a 6427 else
7b4a847f
RR
6428 echo "$as_me:6428: result: no" >&5
6429echo "${ECHO_T}no" >&6
10f2d63a 6430 fi
10f2d63a 6431
7b4a847f
RR
6432 echo "$as_me:6432: checking for --enable-listctrl" >&5
6433echo $ECHO_N "checking for --enable-listctrl... $ECHO_C" >&6
10f2d63a
VZ
6434 no_cache=0
6435 # Check whether --enable-listctrl or --disable-listctrl was given.
6436if test "${enable_listctrl+set}" = set; then
6437 enableval="$enable_listctrl"
7b4a847f 6438
10f2d63a
VZ
6439 if test "$enableval" = yes; then
6440 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6441 else
6442 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6443 fi
7b4a847f 6444
10f2d63a 6445else
7b4a847f 6446
10f2d63a
VZ
6447 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6448 if test "x$LINE" != x ; then
6449 eval "DEFAULT_$LINE"
6450 else
6451 no_cache=1
6452 fi
6453
6454 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 6455
7b4a847f 6456fi;
10f2d63a
VZ
6457
6458 eval "$ac_cv_use_listctrl"
6459 if test "$no_cache" != 1; then
6460 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6461 fi
6462
6463 if test "$wxUSE_LISTCTRL" = yes; then
7b4a847f
RR
6464 echo "$as_me:6464: result: yes" >&5
6465echo "${ECHO_T}yes" >&6
10f2d63a 6466 else
7b4a847f
RR
6467 echo "$as_me:6467: result: no" >&5
6468echo "${ECHO_T}no" >&6
10f2d63a 6469 fi
10f2d63a 6470
7b4a847f
RR
6471 echo "$as_me:6471: checking for --enable-notebook" >&5
6472echo $ECHO_N "checking for --enable-notebook... $ECHO_C" >&6
10f2d63a
VZ
6473 no_cache=0
6474 # Check whether --enable-notebook or --disable-notebook was given.
6475if test "${enable_notebook+set}" = set; then
6476 enableval="$enable_notebook"
7b4a847f 6477
10f2d63a
VZ
6478 if test "$enableval" = yes; then
6479 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6480 else
6481 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6482 fi
7b4a847f 6483
10f2d63a 6484else
7b4a847f 6485
10f2d63a
VZ
6486 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6487 if test "x$LINE" != x ; then
6488 eval "DEFAULT_$LINE"
6489 else
6490 no_cache=1
6491 fi
6492
6493 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 6494
7b4a847f 6495fi;
10f2d63a
VZ
6496
6497 eval "$ac_cv_use_notebook"
6498 if test "$no_cache" != 1; then
6499 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6500 fi
6501
6502 if test "$wxUSE_NOTEBOOK" = yes; then
7b4a847f
RR
6503 echo "$as_me:6503: result: yes" >&5
6504echo "${ECHO_T}yes" >&6
10f2d63a 6505 else
7b4a847f
RR
6506 echo "$as_me:6506: result: no" >&5
6507echo "${ECHO_T}no" >&6
10f2d63a 6508 fi
10f2d63a 6509
7b4a847f
RR
6510 echo "$as_me:6510: checking for --enable-propsheet" >&5
6511echo $ECHO_N "checking for --enable-propsheet... $ECHO_C" >&6
24176f2c
GD
6512 no_cache=0
6513 # Check whether --enable-propsheet or --disable-propsheet was given.
6514if test "${enable_propsheet+set}" = set; then
6515 enableval="$enable_propsheet"
7b4a847f 6516
24176f2c
GD
6517 if test "$enableval" = yes; then
6518 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6519 else
6520 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6521 fi
7b4a847f 6522
24176f2c 6523else
7b4a847f 6524
24176f2c
GD
6525 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6526 if test "x$LINE" != x ; then
6527 eval "DEFAULT_$LINE"
6528 else
6529 no_cache=1
6530 fi
6531
6532 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
24176f2c 6533
7b4a847f 6534fi;
24176f2c
GD
6535
6536 eval "$ac_cv_use_propsheet"
6537 if test "$no_cache" != 1; then
6538 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6539 fi
6540
6541 if test "$wxUSE_PROPSHEET" = yes; then
7b4a847f
RR
6542 echo "$as_me:6542: result: yes" >&5
6543echo "${ECHO_T}yes" >&6
24176f2c 6544 else
7b4a847f
RR
6545 echo "$as_me:6545: result: no" >&5
6546echo "${ECHO_T}no" >&6
24176f2c 6547 fi
24176f2c 6548
7b4a847f
RR
6549 echo "$as_me:6549: checking for --enable-radiobox" >&5
6550echo $ECHO_N "checking for --enable-radiobox... $ECHO_C" >&6
10f2d63a
VZ
6551 no_cache=0
6552 # Check whether --enable-radiobox or --disable-radiobox was given.
6553if test "${enable_radiobox+set}" = set; then
6554 enableval="$enable_radiobox"
7b4a847f 6555
10f2d63a
VZ
6556 if test "$enableval" = yes; then
6557 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6558 else
6559 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6560 fi
7b4a847f 6561
10f2d63a 6562else
7b4a847f 6563
10f2d63a
VZ
6564 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 6572
7b4a847f 6573fi;
10f2d63a
VZ
6574
6575 eval "$ac_cv_use_radiobox"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_RADIOBOX" = yes; then
7b4a847f
RR
6581 echo "$as_me:6581: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
10f2d63a 6583 else
7b4a847f
RR
6584 echo "$as_me:6584: result: no" >&5
6585echo "${ECHO_T}no" >&6
10f2d63a 6586 fi
10f2d63a 6587
7b4a847f
RR
6588 echo "$as_me:6588: checking for --enable-radiobtn" >&5
6589echo $ECHO_N "checking for --enable-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
6590 no_cache=0
6591 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6592if test "${enable_radiobtn+set}" = set; then
6593 enableval="$enable_radiobtn"
7b4a847f 6594
10f2d63a
VZ
6595 if test "$enableval" = yes; then
6596 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6597 else
6598 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6599 fi
7b4a847f 6600
10f2d63a 6601else
7b4a847f 6602
10f2d63a
VZ
6603 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6604 if test "x$LINE" != x ; then
6605 eval "DEFAULT_$LINE"
6606 else
6607 no_cache=1
6608 fi
6609
6610 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 6611
7b4a847f 6612fi;
10f2d63a
VZ
6613
6614 eval "$ac_cv_use_radiobtn"
6615 if test "$no_cache" != 1; then
6616 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6617 fi
6618
6619 if test "$wxUSE_RADIOBTN" = yes; then
7b4a847f
RR
6620 echo "$as_me:6620: result: yes" >&5
6621echo "${ECHO_T}yes" >&6
10f2d63a 6622 else
7b4a847f
RR
6623 echo "$as_me:6623: result: no" >&5
6624echo "${ECHO_T}no" >&6
10f2d63a 6625 fi
10f2d63a 6626
7b4a847f
RR
6627 echo "$as_me:6627: checking for --enable-sash" >&5
6628echo $ECHO_N "checking for --enable-sash... $ECHO_C" >&6
10f2d63a
VZ
6629 no_cache=0
6630 # Check whether --enable-sash or --disable-sash was given.
6631if test "${enable_sash+set}" = set; then
6632 enableval="$enable_sash"
7b4a847f 6633
10f2d63a
VZ
6634 if test "$enableval" = yes; then
6635 ac_cv_use_sash='wxUSE_SASH=yes'
6636 else
6637 ac_cv_use_sash='wxUSE_SASH=no'
6638 fi
7b4a847f 6639
10f2d63a 6640else
7b4a847f 6641
10f2d63a
VZ
6642 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6643 if test "x$LINE" != x ; then
6644 eval "DEFAULT_$LINE"
6645 else
6646 no_cache=1
6647 fi
6648
6649 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 6650
7b4a847f 6651fi;
10f2d63a
VZ
6652
6653 eval "$ac_cv_use_sash"
6654 if test "$no_cache" != 1; then
6655 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6656 fi
6657
6658 if test "$wxUSE_SASH" = yes; then
7b4a847f
RR
6659 echo "$as_me:6659: result: yes" >&5
6660echo "${ECHO_T}yes" >&6
10f2d63a 6661 else
7b4a847f
RR
6662 echo "$as_me:6662: result: no" >&5
6663echo "${ECHO_T}no" >&6
10f2d63a 6664 fi
10f2d63a 6665
7b4a847f
RR
6666 echo "$as_me:6666: checking for --enable-scrollbar" >&5
6667echo $ECHO_N "checking for --enable-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
6668 no_cache=0
6669 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6670if test "${enable_scrollbar+set}" = set; then
6671 enableval="$enable_scrollbar"
7b4a847f 6672
10f2d63a
VZ
6673 if test "$enableval" = yes; then
6674 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6675 else
6676 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6677 fi
7b4a847f 6678
10f2d63a 6679else
7b4a847f 6680
10f2d63a
VZ
6681 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
6688 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 6689
7b4a847f 6690fi;
10f2d63a
VZ
6691
6692 eval "$ac_cv_use_scrollbar"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_SCROLLBAR" = yes; then
7b4a847f
RR
6698 echo "$as_me:6698: result: yes" >&5
6699echo "${ECHO_T}yes" >&6
10f2d63a 6700 else
7b4a847f
RR
6701 echo "$as_me:6701: result: no" >&5
6702echo "${ECHO_T}no" >&6
10f2d63a 6703 fi
10f2d63a 6704
7b4a847f
RR
6705 echo "$as_me:6705: checking for --enable-slider" >&5
6706echo $ECHO_N "checking for --enable-slider... $ECHO_C" >&6
10f2d63a
VZ
6707 no_cache=0
6708 # Check whether --enable-slider or --disable-slider was given.
6709if test "${enable_slider+set}" = set; then
6710 enableval="$enable_slider"
7b4a847f 6711
10f2d63a
VZ
6712 if test "$enableval" = yes; then
6713 ac_cv_use_slider='wxUSE_SLIDER=yes'
6714 else
6715 ac_cv_use_slider='wxUSE_SLIDER=no'
6716 fi
7b4a847f 6717
10f2d63a 6718else
7b4a847f 6719
10f2d63a
VZ
6720 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6721 if test "x$LINE" != x ; then
6722 eval "DEFAULT_$LINE"
6723 else
6724 no_cache=1
6725 fi
6726
6727 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 6728
7b4a847f 6729fi;
10f2d63a
VZ
6730
6731 eval "$ac_cv_use_slider"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_SLIDER" = yes; then
7b4a847f
RR
6737 echo "$as_me:6737: result: yes" >&5
6738echo "${ECHO_T}yes" >&6
10f2d63a 6739 else
7b4a847f
RR
6740 echo "$as_me:6740: result: no" >&5
6741echo "${ECHO_T}no" >&6
10f2d63a 6742 fi
10f2d63a 6743
7b4a847f
RR
6744 echo "$as_me:6744: checking for --enable-spinbtn" >&5
6745echo $ECHO_N "checking for --enable-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
6746 no_cache=0
6747 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6748if test "${enable_spinbtn+set}" = set; then
6749 enableval="$enable_spinbtn"
7b4a847f 6750
10f2d63a
VZ
6751 if test "$enableval" = yes; then
6752 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6753 else
6754 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6755 fi
7b4a847f 6756
10f2d63a 6757else
7b4a847f 6758
10f2d63a
VZ
6759 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6760 if test "x$LINE" != x ; then
6761 eval "DEFAULT_$LINE"
6762 else
6763 no_cache=1
6764 fi
6765
6766 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 6767
7b4a847f 6768fi;
10f2d63a
VZ
6769
6770 eval "$ac_cv_use_spinbtn"
6771 if test "$no_cache" != 1; then
6772 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6773 fi
6774
6775 if test "$wxUSE_SPINBTN" = yes; then
7b4a847f
RR
6776 echo "$as_me:6776: result: yes" >&5
6777echo "${ECHO_T}yes" >&6
10f2d63a 6778 else
7b4a847f
RR
6779 echo "$as_me:6779: result: no" >&5
6780echo "${ECHO_T}no" >&6
10f2d63a 6781 fi
10f2d63a 6782
7b4a847f
RR
6783 echo "$as_me:6783: checking for --enable-spinctrl" >&5
6784echo $ECHO_N "checking for --enable-spinctrl... $ECHO_C" >&6
56cfaa52
RR
6785 no_cache=0
6786 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6787if test "${enable_spinctrl+set}" = set; then
6788 enableval="$enable_spinctrl"
7b4a847f 6789
56cfaa52
RR
6790 if test "$enableval" = yes; then
6791 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6792 else
6793 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6794 fi
7b4a847f 6795
56cfaa52 6796else
7b4a847f 6797
56cfaa52
RR
6798 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6799 if test "x$LINE" != x ; then
6800 eval "DEFAULT_$LINE"
6801 else
6802 no_cache=1
6803 fi
6804
6805 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 6806
7b4a847f 6807fi;
56cfaa52
RR
6808
6809 eval "$ac_cv_use_spinctrl"
6810 if test "$no_cache" != 1; then
6811 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6812 fi
6813
6814 if test "$wxUSE_SPINCTRL" = yes; then
7b4a847f
RR
6815 echo "$as_me:6815: result: yes" >&5
6816echo "${ECHO_T}yes" >&6
56cfaa52 6817 else
7b4a847f
RR
6818 echo "$as_me:6818: result: no" >&5
6819echo "${ECHO_T}no" >&6
56cfaa52 6820 fi
56cfaa52 6821
7b4a847f
RR
6822 echo "$as_me:6822: checking for --enable-splitter" >&5
6823echo $ECHO_N "checking for --enable-splitter... $ECHO_C" >&6
10f2d63a
VZ
6824 no_cache=0
6825 # Check whether --enable-splitter or --disable-splitter was given.
6826if test "${enable_splitter+set}" = set; then
6827 enableval="$enable_splitter"
7b4a847f 6828
10f2d63a
VZ
6829 if test "$enableval" = yes; then
6830 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6831 else
6832 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6833 fi
7b4a847f 6834
10f2d63a 6835else
7b4a847f 6836
10f2d63a
VZ
6837 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6838 if test "x$LINE" != x ; then
6839 eval "DEFAULT_$LINE"
6840 else
6841 no_cache=1
6842 fi
6843
6844 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 6845
7b4a847f 6846fi;
10f2d63a
VZ
6847
6848 eval "$ac_cv_use_splitter"
6849 if test "$no_cache" != 1; then
6850 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6851 fi
6852
6853 if test "$wxUSE_SPLITTER" = yes; then
7b4a847f
RR
6854 echo "$as_me:6854: result: yes" >&5
6855echo "${ECHO_T}yes" >&6
10f2d63a 6856 else
7b4a847f
RR
6857 echo "$as_me:6857: result: no" >&5
6858echo "${ECHO_T}no" >&6
10f2d63a 6859 fi
10f2d63a 6860
7b4a847f
RR
6861 echo "$as_me:6861: checking for --enable-statbmp" >&5
6862echo $ECHO_N "checking for --enable-statbmp... $ECHO_C" >&6
10f2d63a
VZ
6863 no_cache=0
6864 # Check whether --enable-statbmp or --disable-statbmp was given.
6865if test "${enable_statbmp+set}" = set; then
6866 enableval="$enable_statbmp"
7b4a847f 6867
10f2d63a
VZ
6868 if test "$enableval" = yes; then
6869 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6870 else
6871 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6872 fi
7b4a847f 6873
10f2d63a 6874else
7b4a847f 6875
10f2d63a
VZ
6876 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6877 if test "x$LINE" != x ; then
6878 eval "DEFAULT_$LINE"
6879 else
6880 no_cache=1
6881 fi
6882
6883 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 6884
7b4a847f 6885fi;
10f2d63a
VZ
6886
6887 eval "$ac_cv_use_statbmp"
6888 if test "$no_cache" != 1; then
6889 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6890 fi
6891
6892 if test "$wxUSE_STATBMP" = yes; then
7b4a847f
RR
6893 echo "$as_me:6893: result: yes" >&5
6894echo "${ECHO_T}yes" >&6
10f2d63a 6895 else
7b4a847f
RR
6896 echo "$as_me:6896: result: no" >&5
6897echo "${ECHO_T}no" >&6
10f2d63a 6898 fi
10f2d63a 6899
7b4a847f
RR
6900 echo "$as_me:6900: checking for --enable-statbox" >&5
6901echo $ECHO_N "checking for --enable-statbox... $ECHO_C" >&6
10f2d63a
VZ
6902 no_cache=0
6903 # Check whether --enable-statbox or --disable-statbox was given.
6904if test "${enable_statbox+set}" = set; then
6905 enableval="$enable_statbox"
7b4a847f 6906
10f2d63a
VZ
6907 if test "$enableval" = yes; then
6908 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6909 else
6910 ac_cv_use_statbox='wxUSE_STATBOX=no'
6911 fi
7b4a847f 6912
10f2d63a 6913else
7b4a847f 6914
10f2d63a
VZ
6915 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 6923
7b4a847f 6924fi;
10f2d63a
VZ
6925
6926 eval "$ac_cv_use_statbox"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_STATBOX" = yes; then
7b4a847f
RR
6932 echo "$as_me:6932: result: yes" >&5
6933echo "${ECHO_T}yes" >&6
10f2d63a 6934 else
7b4a847f
RR
6935 echo "$as_me:6935: result: no" >&5
6936echo "${ECHO_T}no" >&6
10f2d63a 6937 fi
10f2d63a 6938
7b4a847f
RR
6939 echo "$as_me:6939: checking for --enable-statline" >&5
6940echo $ECHO_N "checking for --enable-statline... $ECHO_C" >&6
10f2d63a
VZ
6941 no_cache=0
6942 # Check whether --enable-statline or --disable-statline was given.
6943if test "${enable_statline+set}" = set; then
6944 enableval="$enable_statline"
7b4a847f 6945
10f2d63a
VZ
6946 if test "$enableval" = yes; then
6947 ac_cv_use_statline='wxUSE_STATLINE=yes'
6948 else
6949 ac_cv_use_statline='wxUSE_STATLINE=no'
6950 fi
7b4a847f 6951
10f2d63a 6952else
7b4a847f 6953
10f2d63a
VZ
6954 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 6962
7b4a847f 6963fi;
10f2d63a
VZ
6964
6965 eval "$ac_cv_use_statline"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_STATLINE" = yes; then
7b4a847f
RR
6971 echo "$as_me:6971: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
10f2d63a 6973 else
7b4a847f
RR
6974 echo "$as_me:6974: result: no" >&5
6975echo "${ECHO_T}no" >&6
10f2d63a 6976 fi
10f2d63a 6977
7b4a847f
RR
6978 echo "$as_me:6978: checking for --enable-stattext" >&5
6979echo $ECHO_N "checking for --enable-stattext... $ECHO_C" >&6
1e6feb95
VZ
6980 no_cache=0
6981 # Check whether --enable-stattext or --disable-stattext was given.
6982if test "${enable_stattext+set}" = set; then
6983 enableval="$enable_stattext"
7b4a847f 6984
1e6feb95
VZ
6985 if test "$enableval" = yes; then
6986 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6987 else
6988 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6989 fi
7b4a847f 6990
1e6feb95 6991else
7b4a847f 6992
1e6feb95
VZ
6993 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6994 if test "x$LINE" != x ; then
6995 eval "DEFAULT_$LINE"
6996 else
6997 no_cache=1
6998 fi
6999
7000 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7001
7b4a847f 7002fi;
1e6feb95
VZ
7003
7004 eval "$ac_cv_use_stattext"
7005 if test "$no_cache" != 1; then
7006 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7007 fi
7008
7009 if test "$wxUSE_STATTEXT" = yes; then
7b4a847f
RR
7010 echo "$as_me:7010: result: yes" >&5
7011echo "${ECHO_T}yes" >&6
1e6feb95 7012 else
7b4a847f
RR
7013 echo "$as_me:7013: result: no" >&5
7014echo "${ECHO_T}no" >&6
1e6feb95 7015 fi
1e6feb95 7016
7b4a847f
RR
7017 echo "$as_me:7017: checking for --enable-statusbar" >&5
7018echo $ECHO_N "checking for --enable-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7019 no_cache=0
7020 # Check whether --enable-statusbar or --disable-statusbar was given.
7021if test "${enable_statusbar+set}" = set; then
7022 enableval="$enable_statusbar"
7b4a847f 7023
10f2d63a
VZ
7024 if test "$enableval" = yes; then
7025 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7026 else
7027 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7028 fi
7b4a847f 7029
10f2d63a 7030else
7b4a847f 7031
10f2d63a
VZ
7032 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7033 if test "x$LINE" != x ; then
7034 eval "DEFAULT_$LINE"
7035 else
7036 no_cache=1
7037 fi
7038
7039 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7040
7b4a847f 7041fi;
10f2d63a
VZ
7042
7043 eval "$ac_cv_use_statusbar"
7044 if test "$no_cache" != 1; then
7045 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7046 fi
7047
7048 if test "$wxUSE_STATUSBAR" = yes; then
7b4a847f
RR
7049 echo "$as_me:7049: result: yes" >&5
7050echo "${ECHO_T}yes" >&6
10f2d63a 7051 else
7b4a847f
RR
7052 echo "$as_me:7052: result: no" >&5
7053echo "${ECHO_T}no" >&6
10f2d63a 7054 fi
10f2d63a 7055
7b4a847f
RR
7056 echo "$as_me:7056: checking for --enable-tabdialog" >&5
7057echo $ECHO_N "checking for --enable-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7058 no_cache=0
7059 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7060if test "${enable_tabdialog+set}" = set; then
7061 enableval="$enable_tabdialog"
7b4a847f 7062
10f2d63a
VZ
7063 if test "$enableval" = yes; then
7064 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7065 else
7066 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7067 fi
7b4a847f 7068
10f2d63a 7069else
7b4a847f 7070
10f2d63a
VZ
7071 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7072 if test "x$LINE" != x ; then
7073 eval "DEFAULT_$LINE"
7074 else
7075 no_cache=1
7076 fi
7077
7078 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7079
7b4a847f 7080fi;
10f2d63a
VZ
7081
7082 eval "$ac_cv_use_tabdialog"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_TABDIALOG" = yes; then
7b4a847f
RR
7088 echo "$as_me:7088: result: yes" >&5
7089echo "${ECHO_T}yes" >&6
10f2d63a 7090 else
7b4a847f
RR
7091 echo "$as_me:7091: result: no" >&5
7092echo "${ECHO_T}no" >&6
10f2d63a 7093 fi
10f2d63a 7094
7b4a847f
RR
7095 echo "$as_me:7095: checking for --enable-textctrl" >&5
7096echo $ECHO_N "checking for --enable-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7097 no_cache=0
7098 # Check whether --enable-textctrl or --disable-textctrl was given.
7099if test "${enable_textctrl+set}" = set; then
7100 enableval="$enable_textctrl"
7b4a847f 7101
1e6feb95
VZ
7102 if test "$enableval" = yes; then
7103 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7104 else
7105 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7106 fi
7b4a847f 7107
1e6feb95 7108else
7b4a847f 7109
1e6feb95
VZ
7110 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7111 if test "x$LINE" != x ; then
7112 eval "DEFAULT_$LINE"
7113 else
7114 no_cache=1
7115 fi
7116
7117 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7118
7b4a847f 7119fi;
1e6feb95
VZ
7120
7121 eval "$ac_cv_use_textctrl"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_TEXTCTRL" = yes; then
7b4a847f
RR
7127 echo "$as_me:7127: result: yes" >&5
7128echo "${ECHO_T}yes" >&6
1e6feb95 7129 else
7b4a847f
RR
7130 echo "$as_me:7130: result: no" >&5
7131echo "${ECHO_T}no" >&6
1e6feb95 7132 fi
1e6feb95 7133
7b4a847f
RR
7134 echo "$as_me:7134: checking for --enable-togglebtn" >&5
7135echo $ECHO_N "checking for --enable-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7136 no_cache=0
7137 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7138if test "${enable_togglebtn+set}" = set; then
7139 enableval="$enable_togglebtn"
7b4a847f 7140
1db8dc4a
VZ
7141 if test "$enableval" = yes; then
7142 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7143 else
7144 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7145 fi
7b4a847f 7146
1db8dc4a 7147else
7b4a847f 7148
1db8dc4a
VZ
7149 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7150 if test "x$LINE" != x ; then
7151 eval "DEFAULT_$LINE"
7152 else
7153 no_cache=1
7154 fi
7155
7156 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7157
7b4a847f 7158fi;
1db8dc4a
VZ
7159
7160 eval "$ac_cv_use_togglebtn"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_TOGGLEBTN" = yes; then
7b4a847f
RR
7166 echo "$as_me:7166: result: yes" >&5
7167echo "${ECHO_T}yes" >&6
1db8dc4a 7168 else
7b4a847f
RR
7169 echo "$as_me:7169: result: no" >&5
7170echo "${ECHO_T}no" >&6
1db8dc4a 7171 fi
1db8dc4a 7172
7b4a847f
RR
7173 echo "$as_me:7173: checking for --enable-toolbar" >&5
7174echo $ECHO_N "checking for --enable-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7175 no_cache=0
7176 # Check whether --enable-toolbar or --disable-toolbar was given.
7177if test "${enable_toolbar+set}" = set; then
7178 enableval="$enable_toolbar"
7b4a847f 7179
10f2d63a
VZ
7180 if test "$enableval" = yes; then
7181 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7182 else
7183 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7184 fi
7b4a847f 7185
10f2d63a 7186else
7b4a847f 7187
10f2d63a
VZ
7188 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7196
7b4a847f 7197fi;
10f2d63a
VZ
7198
7199 eval "$ac_cv_use_toolbar"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_TOOLBAR" = yes; then
7b4a847f
RR
7205 echo "$as_me:7205: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
10f2d63a 7207 else
7b4a847f
RR
7208 echo "$as_me:7208: result: no" >&5
7209echo "${ECHO_T}no" >&6
10f2d63a 7210 fi
10f2d63a 7211
7b4a847f
RR
7212 echo "$as_me:7212: checking for --enable-tbarnative" >&5
7213echo $ECHO_N "checking for --enable-tbarnative... $ECHO_C" >&6
360d6699
VZ
7214 no_cache=0
7215 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7216if test "${enable_tbarnative+set}" = set; then
7217 enableval="$enable_tbarnative"
7b4a847f 7218
360d6699
VZ
7219 if test "$enableval" = yes; then
7220 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7221 else
7222 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7223 fi
7b4a847f 7224
360d6699 7225else
7b4a847f 7226
360d6699
VZ
7227 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7235
7b4a847f 7236fi;
360d6699
VZ
7237
7238 eval "$ac_cv_use_tbarnative"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7b4a847f
RR
7244 echo "$as_me:7244: result: yes" >&5
7245echo "${ECHO_T}yes" >&6
360d6699 7246 else
7b4a847f
RR
7247 echo "$as_me:7247: result: no" >&5
7248echo "${ECHO_T}no" >&6
360d6699 7249 fi
360d6699 7250
7b4a847f
RR
7251 echo "$as_me:7251: checking for --enable-tbarsmpl" >&5
7252echo $ECHO_N "checking for --enable-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7253 no_cache=0
7254 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7255if test "${enable_tbarsmpl+set}" = set; then
7256 enableval="$enable_tbarsmpl"
7b4a847f 7257
360d6699
VZ
7258 if test "$enableval" = yes; then
7259 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7260 else
7261 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7262 fi
7b4a847f 7263
360d6699 7264else
7b4a847f 7265
360d6699
VZ
7266 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7267 if test "x$LINE" != x ; then
7268 eval "DEFAULT_$LINE"
7269 else
7270 no_cache=1
7271 fi
7272
7273 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7274
7b4a847f 7275fi;
360d6699
VZ
7276
7277 eval "$ac_cv_use_tbarsmpl"
7278 if test "$no_cache" != 1; then
7279 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7280 fi
7281
7282 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7b4a847f
RR
7283 echo "$as_me:7283: result: yes" >&5
7284echo "${ECHO_T}yes" >&6
360d6699 7285 else
7b4a847f
RR
7286 echo "$as_me:7286: result: no" >&5
7287echo "${ECHO_T}no" >&6
360d6699 7288 fi
360d6699 7289
7b4a847f
RR
7290 echo "$as_me:7290: checking for --enable-treectrl" >&5
7291echo $ECHO_N "checking for --enable-treectrl... $ECHO_C" >&6
10f2d63a
VZ
7292 no_cache=0
7293 # Check whether --enable-treectrl or --disable-treectrl was given.
7294if test "${enable_treectrl+set}" = set; then
7295 enableval="$enable_treectrl"
7b4a847f 7296
10f2d63a
VZ
7297 if test "$enableval" = yes; then
7298 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7299 else
7300 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7301 fi
7b4a847f 7302
10f2d63a 7303else
7b4a847f 7304
10f2d63a
VZ
7305 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7306 if test "x$LINE" != x ; then
7307 eval "DEFAULT_$LINE"
7308 else
7309 no_cache=1
7310 fi
7311
7312 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 7313
7b4a847f 7314fi;
10f2d63a 7315
1e6feb95
VZ
7316 eval "$ac_cv_use_treectrl"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_TREECTRL" = yes; then
7b4a847f
RR
7322 echo "$as_me:7322: result: yes" >&5
7323echo "${ECHO_T}yes" >&6
1e6feb95 7324 else
7b4a847f
RR
7325 echo "$as_me:7325: result: no" >&5
7326echo "${ECHO_T}no" >&6
1e6feb95 7327 fi
1e6feb95 7328
7b4a847f
RR
7329 echo "$as_me:7329: checking for --enable-tipwindow" >&5
7330echo $ECHO_N "checking for --enable-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
7331 no_cache=0
7332 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7333if test "${enable_tipwindow+set}" = set; then
7334 enableval="$enable_tipwindow"
7b4a847f 7335
9926e4a4
VZ
7336 if test "$enableval" = yes; then
7337 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7338 else
7339 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7340 fi
7b4a847f 7341
9926e4a4 7342else
7b4a847f 7343
9926e4a4
VZ
7344 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 7352
7b4a847f 7353fi;
9926e4a4
VZ
7354
7355 eval "$ac_cv_use_tipwindow"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_TIPWINDOW" = yes; then
7b4a847f
RR
7361 echo "$as_me:7361: result: yes" >&5
7362echo "${ECHO_T}yes" >&6
9926e4a4 7363 else
7b4a847f
RR
7364 echo "$as_me:7364: result: no" >&5
7365echo "${ECHO_T}no" >&6
9926e4a4 7366 fi
9926e4a4 7367
7b4a847f
RR
7368 echo "$as_me:7368: checking for --enable-popupwin" >&5
7369echo $ECHO_N "checking for --enable-popupwin... $ECHO_C" >&6
9f41d601
RR
7370 no_cache=0
7371 # Check whether --enable-popupwin or --disable-popupwin was given.
7372if test "${enable_popupwin+set}" = set; then
7373 enableval="$enable_popupwin"
7b4a847f 7374
9f41d601
RR
7375 if test "$enableval" = yes; then
7376 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7377 else
7378 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7379 fi
7b4a847f 7380
9f41d601 7381else
7b4a847f 7382
9f41d601
RR
7383 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7384 if test "x$LINE" != x ; then
7385 eval "DEFAULT_$LINE"
7386 else
7387 no_cache=1
7388 fi
7389
7390 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 7391
7b4a847f 7392fi;
9f41d601
RR
7393
7394 eval "$ac_cv_use_popupwin"
7395 if test "$no_cache" != 1; then
7396 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7397 fi
7398
7399 if test "$wxUSE_POPUPWIN" = yes; then
7b4a847f
RR
7400 echo "$as_me:7400: result: yes" >&5
7401echo "${ECHO_T}yes" >&6
9f41d601 7402 else
7b4a847f
RR
7403 echo "$as_me:7403: result: no" >&5
7404echo "${ECHO_T}no" >&6
9f41d601 7405 fi
9f41d601 7406
7b4a847f
RR
7407 echo "$as_me:7407: checking for --enable-commondlg" >&5
7408echo $ECHO_N "checking for --enable-commondlg... $ECHO_C" >&6
1e6feb95
VZ
7409 no_cache=0
7410 # Check whether --enable-commondlg or --disable-commondlg was given.
7411if test "${enable_commondlg+set}" = set; then
7412 enableval="$enable_commondlg"
7b4a847f 7413
1e6feb95
VZ
7414 if test "$enableval" = yes; then
7415 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7416 else
7417 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7418 fi
7b4a847f 7419
1e6feb95 7420else
7b4a847f 7421
1e6feb95
VZ
7422 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7423 if test "x$LINE" != x ; then
7424 eval "DEFAULT_$LINE"
7425 else
7426 no_cache=1
7427 fi
7428
7429 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 7430
7b4a847f 7431fi;
1e6feb95
VZ
7432
7433 eval "$ac_cv_use_commondlg"
7434 if test "$no_cache" != 1; then
7435 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7436 fi
7437
7438 if test "$wxUSE_COMMONDLGS" = yes; then
7b4a847f
RR
7439 echo "$as_me:7439: result: yes" >&5
7440echo "${ECHO_T}yes" >&6
1e6feb95 7441 else
7b4a847f
RR
7442 echo "$as_me:7442: result: no" >&5
7443echo "${ECHO_T}no" >&6
1e6feb95 7444 fi
1e6feb95 7445
7b4a847f
RR
7446 echo "$as_me:7446: checking for --enable-choicedlg" >&5
7447echo $ECHO_N "checking for --enable-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
7448 no_cache=0
7449 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7450if test "${enable_choicedlg+set}" = set; then
7451 enableval="$enable_choicedlg"
7b4a847f 7452
1e6feb95
VZ
7453 if test "$enableval" = yes; then
7454 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7455 else
7456 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7457 fi
7b4a847f 7458
1e6feb95 7459else
7b4a847f 7460
1e6feb95
VZ
7461 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7462 if test "x$LINE" != x ; then
7463 eval "DEFAULT_$LINE"
7464 else
7465 no_cache=1
7466 fi
7467
7468 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 7469
7b4a847f 7470fi;
1e6feb95
VZ
7471
7472 eval "$ac_cv_use_choicedlg"
7473 if test "$no_cache" != 1; then
7474 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7475 fi
7476
7477 if test "$wxUSE_CHOICEDLG" = yes; then
7b4a847f
RR
7478 echo "$as_me:7478: result: yes" >&5
7479echo "${ECHO_T}yes" >&6
1e6feb95 7480 else
7b4a847f
RR
7481 echo "$as_me:7481: result: no" >&5
7482echo "${ECHO_T}no" >&6
1e6feb95 7483 fi
1e6feb95 7484
7b4a847f
RR
7485 echo "$as_me:7485: checking for --enable-coldlg" >&5
7486echo $ECHO_N "checking for --enable-coldlg... $ECHO_C" >&6
1e6feb95
VZ
7487 no_cache=0
7488 # Check whether --enable-coldlg or --disable-coldlg was given.
7489if test "${enable_coldlg+set}" = set; then
7490 enableval="$enable_coldlg"
7b4a847f 7491
1e6feb95
VZ
7492 if test "$enableval" = yes; then
7493 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7494 else
7495 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7496 fi
7b4a847f 7497
1e6feb95 7498else
7b4a847f 7499
1e6feb95
VZ
7500 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7501 if test "x$LINE" != x ; then
7502 eval "DEFAULT_$LINE"
7503 else
7504 no_cache=1
7505 fi
7506
7507 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 7508
7b4a847f 7509fi;
1e6feb95
VZ
7510
7511 eval "$ac_cv_use_coldlg"
7512 if test "$no_cache" != 1; then
7513 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7514 fi
7515
7516 if test "$wxUSE_COLOURDLG" = yes; then
7b4a847f
RR
7517 echo "$as_me:7517: result: yes" >&5
7518echo "${ECHO_T}yes" >&6
1e6feb95 7519 else
7b4a847f
RR
7520 echo "$as_me:7520: result: no" >&5
7521echo "${ECHO_T}no" >&6
1e6feb95 7522 fi
1e6feb95 7523
7b4a847f
RR
7524 echo "$as_me:7524: checking for --enable-filedlg" >&5
7525echo $ECHO_N "checking for --enable-filedlg... $ECHO_C" >&6
1e6feb95
VZ
7526 no_cache=0
7527 # Check whether --enable-filedlg or --disable-filedlg was given.
7528if test "${enable_filedlg+set}" = set; then
7529 enableval="$enable_filedlg"
7b4a847f 7530
1e6feb95
VZ
7531 if test "$enableval" = yes; then
7532 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7533 else
7534 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7535 fi
7b4a847f 7536
1e6feb95 7537else
7b4a847f 7538
1e6feb95
VZ
7539 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7540 if test "x$LINE" != x ; then
7541 eval "DEFAULT_$LINE"
7542 else
7543 no_cache=1
7544 fi
7545
7546 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 7547
7b4a847f 7548fi;
1e6feb95
VZ
7549
7550 eval "$ac_cv_use_filedlg"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_FILEDLG" = yes; then
7b4a847f
RR
7556 echo "$as_me:7556: result: yes" >&5
7557echo "${ECHO_T}yes" >&6
1e6feb95 7558 else
7b4a847f
RR
7559 echo "$as_me:7559: result: no" >&5
7560echo "${ECHO_T}no" >&6
1e6feb95 7561 fi
1e6feb95 7562
7b4a847f
RR
7563 echo "$as_me:7563: checking for --enable-finddlg" >&5
7564echo $ECHO_N "checking for --enable-finddlg... $ECHO_C" >&6
8db37e06 7565 no_cache=0
69d27ff7
MB
7566 # Check whether --enable-finddlg or --disable-finddlg was given.
7567if test "${enable_finddlg+set}" = set; then
7568 enableval="$enable_finddlg"
7b4a847f 7569
8db37e06 7570 if test "$enableval" = yes; then
69d27ff7 7571 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7572 else
69d27ff7 7573 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7574 fi
7b4a847f 7575
8db37e06 7576else
7b4a847f 7577
8db37e06
VZ
7578 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
69d27ff7 7585 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 7586
7b4a847f 7587fi;
8db37e06 7588
69d27ff7 7589 eval "$ac_cv_use_finddlg"
8db37e06 7590 if test "$no_cache" != 1; then
69d27ff7 7591 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7592 fi
7593
7594 if test "$wxUSE_FINDREPLDLG" = yes; then
7b4a847f
RR
7595 echo "$as_me:7595: result: yes" >&5
7596echo "${ECHO_T}yes" >&6
8db37e06 7597 else
7b4a847f
RR
7598 echo "$as_me:7598: result: no" >&5
7599echo "${ECHO_T}no" >&6
8db37e06 7600 fi
8db37e06 7601
7b4a847f
RR
7602 echo "$as_me:7602: checking for --enable-fontdlg" >&5
7603echo $ECHO_N "checking for --enable-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
7604 no_cache=0
7605 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7606if test "${enable_fontdlg+set}" = set; then
7607 enableval="$enable_fontdlg"
7b4a847f 7608
1e6feb95
VZ
7609 if test "$enableval" = yes; then
7610 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7611 else
7612 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7613 fi
7b4a847f 7614
1e6feb95 7615else
7b4a847f 7616
1e6feb95
VZ
7617 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7618 if test "x$LINE" != x ; then
7619 eval "DEFAULT_$LINE"
7620 else
7621 no_cache=1
7622 fi
7623
7624 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 7625
7b4a847f 7626fi;
1e6feb95
VZ
7627
7628 eval "$ac_cv_use_fontdlg"
7629 if test "$no_cache" != 1; then
7630 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7631 fi
7632
7633 if test "$wxUSE_FONTDLG" = yes; then
7b4a847f
RR
7634 echo "$as_me:7634: result: yes" >&5
7635echo "${ECHO_T}yes" >&6
1e6feb95 7636 else
7b4a847f
RR
7637 echo "$as_me:7637: result: no" >&5
7638echo "${ECHO_T}no" >&6
1e6feb95 7639 fi
1e6feb95 7640
7b4a847f
RR
7641 echo "$as_me:7641: checking for --enable-dirdlg" >&5
7642echo $ECHO_N "checking for --enable-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
7643 no_cache=0
7644 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7645if test "${enable_dirdlg+set}" = set; then
7646 enableval="$enable_dirdlg"
7b4a847f 7647
1e6feb95
VZ
7648 if test "$enableval" = yes; then
7649 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7650 else
7651 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7652 fi
7b4a847f 7653
1e6feb95 7654else
7b4a847f 7655
1e6feb95
VZ
7656 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7657 if test "x$LINE" != x ; then
7658 eval "DEFAULT_$LINE"
7659 else
7660 no_cache=1
7661 fi
7662
7663 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 7664
7b4a847f 7665fi;
1e6feb95
VZ
7666
7667 eval "$ac_cv_use_dirdlg"
10f2d63a 7668 if test "$no_cache" != 1; then
1e6feb95 7669 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7670 fi
7671
1e6feb95 7672 if test "$wxUSE_DIRDLG" = yes; then
7b4a847f
RR
7673 echo "$as_me:7673: result: yes" >&5
7674echo "${ECHO_T}yes" >&6
10f2d63a 7675 else
7b4a847f
RR
7676 echo "$as_me:7676: result: no" >&5
7677echo "${ECHO_T}no" >&6
10f2d63a 7678 fi
698dcdb6 7679
7b4a847f
RR
7680 echo "$as_me:7680: checking for --enable-msgdlg" >&5
7681echo $ECHO_N "checking for --enable-msgdlg... $ECHO_C" >&6
10f2d63a 7682 no_cache=0
1e6feb95
VZ
7683 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7684if test "${enable_msgdlg+set}" = set; then
7685 enableval="$enable_msgdlg"
7b4a847f 7686
10f2d63a 7687 if test "$enableval" = yes; then
1e6feb95 7688 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7689 else
1e6feb95 7690 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7691 fi
7b4a847f 7692
10f2d63a 7693else
7b4a847f 7694
1e6feb95 7695 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7696 if test "x$LINE" != x ; then
7697 eval "DEFAULT_$LINE"
7698 else
7699 no_cache=1
7700 fi
7701
1e6feb95 7702 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 7703
7b4a847f 7704fi;
10f2d63a 7705
1e6feb95 7706 eval "$ac_cv_use_msgdlg"
10f2d63a 7707 if test "$no_cache" != 1; then
1e6feb95 7708 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7709 fi
7710
1e6feb95 7711 if test "$wxUSE_MSGDLG" = yes; then
7b4a847f
RR
7712 echo "$as_me:7712: result: yes" >&5
7713echo "${ECHO_T}yes" >&6
10f2d63a 7714 else
7b4a847f
RR
7715 echo "$as_me:7715: result: no" >&5
7716echo "${ECHO_T}no" >&6
10f2d63a 7717 fi
10f2d63a 7718
7b4a847f
RR
7719 echo "$as_me:7719: checking for --enable-numberdlg" >&5
7720echo $ECHO_N "checking for --enable-numberdlg... $ECHO_C" >&6
10f2d63a 7721 no_cache=0
1e6feb95
VZ
7722 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7723if test "${enable_numberdlg+set}" = set; then
7724 enableval="$enable_numberdlg"
7b4a847f 7725
10f2d63a 7726 if test "$enableval" = yes; then
1e6feb95 7727 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7728 else
1e6feb95 7729 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7730 fi
7b4a847f 7731
10f2d63a 7732else
7b4a847f 7733
1e6feb95 7734 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7735 if test "x$LINE" != x ; then
7736 eval "DEFAULT_$LINE"
7737 else
7738 no_cache=1
7739 fi
7740
1e6feb95 7741 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 7742
7b4a847f 7743fi;
10f2d63a 7744
1e6feb95 7745 eval "$ac_cv_use_numberdlg"
10f2d63a 7746 if test "$no_cache" != 1; then
1e6feb95 7747 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7748 fi
7749
1e6feb95 7750 if test "$wxUSE_NUMBERDLG" = yes; then
7b4a847f
RR
7751 echo "$as_me:7751: result: yes" >&5
7752echo "${ECHO_T}yes" >&6
10f2d63a 7753 else
7b4a847f
RR
7754 echo "$as_me:7754: result: no" >&5
7755echo "${ECHO_T}no" >&6
10f2d63a 7756 fi
10f2d63a 7757
7b4a847f
RR
7758 echo "$as_me:7758: checking for --enable-splash" >&5
7759echo $ECHO_N "checking for --enable-splash... $ECHO_C" >&6
cbca9943
VZ
7760 no_cache=0
7761 # Check whether --enable-splash or --disable-splash was given.
7762if test "${enable_splash+set}" = set; then
7763 enableval="$enable_splash"
7b4a847f 7764
cbca9943
VZ
7765 if test "$enableval" = yes; then
7766 ac_cv_use_splash='wxUSE_SPLASH=yes'
7767 else
7768 ac_cv_use_splash='wxUSE_SPLASH=no'
7769 fi
7b4a847f 7770
cbca9943 7771else
7b4a847f 7772
cbca9943
VZ
7773 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
7775 eval "DEFAULT_$LINE"
7776 else
7777 no_cache=1
7778 fi
7779
7780 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 7781
7b4a847f 7782fi;
cbca9943
VZ
7783
7784 eval "$ac_cv_use_splash"
7785 if test "$no_cache" != 1; then
7786 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7787 fi
7788
7789 if test "$wxUSE_SPLASH" = yes; then
7b4a847f
RR
7790 echo "$as_me:7790: result: yes" >&5
7791echo "${ECHO_T}yes" >&6
cbca9943 7792 else
7b4a847f
RR
7793 echo "$as_me:7793: result: no" >&5
7794echo "${ECHO_T}no" >&6
cbca9943 7795 fi
cbca9943 7796
7b4a847f
RR
7797 echo "$as_me:7797: checking for --enable-textdlg" >&5
7798echo $ECHO_N "checking for --enable-textdlg... $ECHO_C" >&6
10f2d63a
VZ
7799 no_cache=0
7800 # Check whether --enable-textdlg or --disable-textdlg was given.
7801if test "${enable_textdlg+set}" = set; then
7802 enableval="$enable_textdlg"
7b4a847f 7803
10f2d63a
VZ
7804 if test "$enableval" = yes; then
7805 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7806 else
7807 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7808 fi
7b4a847f 7809
10f2d63a 7810else
7b4a847f 7811
10f2d63a
VZ
7812 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7813 if test "x$LINE" != x ; then
7814 eval "DEFAULT_$LINE"
7815 else
7816 no_cache=1
7817 fi
7818
7819 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 7820
7b4a847f 7821fi;
10f2d63a
VZ
7822
7823 eval "$ac_cv_use_textdlg"
7824 if test "$no_cache" != 1; then
7825 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7826 fi
7827
7828 if test "$wxUSE_TEXTDLG" = yes; then
7b4a847f
RR
7829 echo "$as_me:7829: result: yes" >&5
7830echo "${ECHO_T}yes" >&6
10f2d63a 7831 else
7b4a847f
RR
7832 echo "$as_me:7832: result: no" >&5
7833echo "${ECHO_T}no" >&6
10f2d63a 7834 fi
10f2d63a 7835
7b4a847f
RR
7836 echo "$as_me:7836: checking for --enable-tipdlg" >&5
7837echo $ECHO_N "checking for --enable-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
7838 no_cache=0
7839 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7840if test "${enable_tipdlg+set}" = set; then
7841 enableval="$enable_tipdlg"
7b4a847f 7842
10f2d63a
VZ
7843 if test "$enableval" = yes; then
7844 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7845 else
7846 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7847 fi
7b4a847f 7848
10f2d63a 7849else
7b4a847f 7850
10f2d63a
VZ
7851 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 7859
7b4a847f 7860fi;
10f2d63a
VZ
7861
7862 eval "$ac_cv_use_tipdlg"
7863 if test "$no_cache" != 1; then
7864 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7865 fi
7866
7867 if test "$wxUSE_STARTUP_TIPS" = yes; then
7b4a847f
RR
7868 echo "$as_me:7868: result: yes" >&5
7869echo "${ECHO_T}yes" >&6
10f2d63a 7870 else
7b4a847f
RR
7871 echo "$as_me:7871: result: no" >&5
7872echo "${ECHO_T}no" >&6
10f2d63a 7873 fi
10f2d63a 7874
7b4a847f
RR
7875 echo "$as_me:7875: checking for --enable-progressdlg" >&5
7876echo $ECHO_N "checking for --enable-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
7877 no_cache=0
7878 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7879if test "${enable_progressdlg+set}" = set; then
7880 enableval="$enable_progressdlg"
7b4a847f 7881
10f2d63a
VZ
7882 if test "$enableval" = yes; then
7883 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7884 else
7885 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7886 fi
7b4a847f 7887
10f2d63a 7888else
7b4a847f 7889
10f2d63a
VZ
7890 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7891 if test "x$LINE" != x ; then
7892 eval "DEFAULT_$LINE"
7893 else
7894 no_cache=1
7895 fi
7896
7897 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 7898
7b4a847f 7899fi;
10f2d63a
VZ
7900
7901 eval "$ac_cv_use_progressdlg"
7902 if test "$no_cache" != 1; then
7903 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7904 fi
7905
7906 if test "$wxUSE_PROGRESSDLG" = yes; then
7b4a847f
RR
7907 echo "$as_me:7907: result: yes" >&5
7908echo "${ECHO_T}yes" >&6
10f2d63a 7909 else
7b4a847f
RR
7910 echo "$as_me:7910: result: no" >&5
7911echo "${ECHO_T}no" >&6
10f2d63a 7912 fi
10f2d63a 7913
7b4a847f
RR
7914 echo "$as_me:7914: checking for --enable-wizarddlg" >&5
7915echo $ECHO_N "checking for --enable-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
7916 no_cache=0
7917 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7918if test "${enable_wizarddlg+set}" = set; then
7919 enableval="$enable_wizarddlg"
7b4a847f 7920
b1f5d087
VZ
7921 if test "$enableval" = yes; then
7922 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7923 else
7924 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7925 fi
7b4a847f 7926
b1f5d087 7927else
7b4a847f 7928
b1f5d087
VZ
7929 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7930 if test "x$LINE" != x ; then
7931 eval "DEFAULT_$LINE"
7932 else
7933 no_cache=1
7934 fi
7935
7936 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 7937
7b4a847f 7938fi;
b1f5d087
VZ
7939
7940 eval "$ac_cv_use_wizarddlg"
7941 if test "$no_cache" != 1; then
7942 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7943 fi
7944
7945 if test "$wxUSE_WIZARDDLG" = yes; then
7b4a847f
RR
7946 echo "$as_me:7946: result: yes" >&5
7947echo "${ECHO_T}yes" >&6
b1f5d087 7948 else
7b4a847f
RR
7949 echo "$as_me:7949: result: no" >&5
7950echo "${ECHO_T}no" >&6
b1f5d087 7951 fi
b1f5d087 7952
7b4a847f
RR
7953 echo "$as_me:7953: checking for --enable-menus" >&5
7954echo $ECHO_N "checking for --enable-menus... $ECHO_C" >&6
1e6feb95
VZ
7955 no_cache=0
7956 # Check whether --enable-menus or --disable-menus was given.
7957if test "${enable_menus+set}" = set; then
7958 enableval="$enable_menus"
7b4a847f 7959
1e6feb95
VZ
7960 if test "$enableval" = yes; then
7961 ac_cv_use_menus='wxUSE_MENUS=yes'
7962 else
7963 ac_cv_use_menus='wxUSE_MENUS=no'
7964 fi
7b4a847f 7965
1e6feb95 7966else
7b4a847f 7967
1e6feb95
VZ
7968 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 7976
7b4a847f 7977fi;
1e6feb95
VZ
7978
7979 eval "$ac_cv_use_menus"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_MENUS" = yes; then
7b4a847f
RR
7985 echo "$as_me:7985: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
1e6feb95 7987 else
7b4a847f
RR
7988 echo "$as_me:7988: result: no" >&5
7989echo "${ECHO_T}no" >&6
1e6feb95 7990 fi
1e6feb95 7991
7b4a847f
RR
7992 echo "$as_me:7992: checking for --enable-miniframe" >&5
7993echo $ECHO_N "checking for --enable-miniframe... $ECHO_C" >&6
10f2d63a
VZ
7994 no_cache=0
7995 # Check whether --enable-miniframe or --disable-miniframe was given.
7996if test "${enable_miniframe+set}" = set; then
7997 enableval="$enable_miniframe"
7b4a847f 7998
10f2d63a
VZ
7999 if test "$enableval" = yes; then
8000 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8001 else
8002 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8003 fi
7b4a847f 8004
10f2d63a 8005else
7b4a847f 8006
10f2d63a
VZ
8007 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8008 if test "x$LINE" != x ; then
8009 eval "DEFAULT_$LINE"
8010 else
8011 no_cache=1
8012 fi
8013
8014 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8015
7b4a847f 8016fi;
10f2d63a
VZ
8017
8018 eval "$ac_cv_use_miniframe"
8019 if test "$no_cache" != 1; then
8020 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8021 fi
8022
8023 if test "$wxUSE_MINIFRAME" = yes; then
7b4a847f
RR
8024 echo "$as_me:8024: result: yes" >&5
8025echo "${ECHO_T}yes" >&6
10f2d63a 8026 else
7b4a847f
RR
8027 echo "$as_me:8027: result: no" >&5
8028echo "${ECHO_T}no" >&6
10f2d63a 8029 fi
10f2d63a 8030
7b4a847f
RR
8031 echo "$as_me:8031: checking for --enable-tooltips" >&5
8032echo $ECHO_N "checking for --enable-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8033 no_cache=0
8034 # Check whether --enable-tooltips or --disable-tooltips was given.
8035if test "${enable_tooltips+set}" = set; then
8036 enableval="$enable_tooltips"
7b4a847f 8037
10f2d63a
VZ
8038 if test "$enableval" = yes; then
8039 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8040 else
8041 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8042 fi
7b4a847f 8043
10f2d63a 8044else
7b4a847f 8045
10f2d63a
VZ
8046 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8047 if test "x$LINE" != x ; then
8048 eval "DEFAULT_$LINE"
8049 else
8050 no_cache=1
8051 fi
8052
8053 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8054
7b4a847f 8055fi;
10f2d63a
VZ
8056
8057 eval "$ac_cv_use_tooltips"
8058 if test "$no_cache" != 1; then
8059 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8060 fi
8061
8062 if test "$wxUSE_TOOLTIPS" = yes; then
7b4a847f
RR
8063 echo "$as_me:8063: result: yes" >&5
8064echo "${ECHO_T}yes" >&6
10f2d63a 8065 else
7b4a847f
RR
8066 echo "$as_me:8066: result: no" >&5
8067echo "${ECHO_T}no" >&6
10f2d63a 8068 fi
10f2d63a 8069
7b4a847f
RR
8070 echo "$as_me:8070: checking for --enable-splines" >&5
8071echo $ECHO_N "checking for --enable-splines... $ECHO_C" >&6
10f2d63a
VZ
8072 no_cache=0
8073 # Check whether --enable-splines or --disable-splines was given.
8074if test "${enable_splines+set}" = set; then
8075 enableval="$enable_splines"
7b4a847f 8076
10f2d63a
VZ
8077 if test "$enableval" = yes; then
8078 ac_cv_use_splines='wxUSE_SPLINES=yes'
8079 else
8080 ac_cv_use_splines='wxUSE_SPLINES=no'
8081 fi
7b4a847f 8082
10f2d63a 8083else
7b4a847f 8084
10f2d63a
VZ
8085 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8086 if test "x$LINE" != x ; then
8087 eval "DEFAULT_$LINE"
8088 else
8089 no_cache=1
8090 fi
8091
8092 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8093
7b4a847f 8094fi;
10f2d63a
VZ
8095
8096 eval "$ac_cv_use_splines"
8097 if test "$no_cache" != 1; then
8098 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8099 fi
8100
8101 if test "$wxUSE_SPLINES" = yes; then
7b4a847f
RR
8102 echo "$as_me:8102: result: yes" >&5
8103echo "${ECHO_T}yes" >&6
10f2d63a 8104 else
7b4a847f
RR
8105 echo "$as_me:8105: result: no" >&5
8106echo "${ECHO_T}no" >&6
10f2d63a 8107 fi
10f2d63a 8108
7b4a847f
RR
8109 echo "$as_me:8109: checking for --enable-validators" >&5
8110echo $ECHO_N "checking for --enable-validators... $ECHO_C" >&6
10f2d63a
VZ
8111 no_cache=0
8112 # Check whether --enable-validators or --disable-validators was given.
8113if test "${enable_validators+set}" = set; then
8114 enableval="$enable_validators"
7b4a847f 8115
10f2d63a
VZ
8116 if test "$enableval" = yes; then
8117 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8118 else
8119 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8120 fi
7b4a847f 8121
10f2d63a 8122else
7b4a847f 8123
10f2d63a
VZ
8124 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8125 if test "x$LINE" != x ; then
8126 eval "DEFAULT_$LINE"
8127 else
8128 no_cache=1
8129 fi
8130
8131 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8132
7b4a847f 8133fi;
10f2d63a
VZ
8134
8135 eval "$ac_cv_use_validators"
8136 if test "$no_cache" != 1; then
8137 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8138 fi
8139
8140 if test "$wxUSE_VALIDATORS" = yes; then
7b4a847f
RR
8141 echo "$as_me:8141: result: yes" >&5
8142echo "${ECHO_T}yes" >&6
10f2d63a 8143 else
7b4a847f
RR
8144 echo "$as_me:8144: result: no" >&5
8145echo "${ECHO_T}no" >&6
10f2d63a 8146 fi
10f2d63a 8147
7b4a847f
RR
8148 echo "$as_me:8148: checking for --enable-busyinfo" >&5
8149echo $ECHO_N "checking for --enable-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8150 no_cache=0
8151 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8152if test "${enable_busyinfo+set}" = set; then
8153 enableval="$enable_busyinfo"
7b4a847f 8154
10f2d63a
VZ
8155 if test "$enableval" = yes; then
8156 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8157 else
8158 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8159 fi
7b4a847f 8160
10f2d63a 8161else
7b4a847f 8162
10f2d63a
VZ
8163 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8164 if test "x$LINE" != x ; then
8165 eval "DEFAULT_$LINE"
8166 else
8167 no_cache=1
8168 fi
8169
8170 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8171
7b4a847f 8172fi;
10f2d63a
VZ
8173
8174 eval "$ac_cv_use_busyinfo"
8175 if test "$no_cache" != 1; then
8176 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8177 fi
8178
8179 if test "$wxUSE_BUSYINFO" = yes; then
7b4a847f
RR
8180 echo "$as_me:8180: result: yes" >&5
8181echo "${ECHO_T}yes" >&6
10f2d63a 8182 else
7b4a847f
RR
8183 echo "$as_me:8183: result: no" >&5
8184echo "${ECHO_T}no" >&6
10f2d63a 8185 fi
10f2d63a 8186
7b4a847f
RR
8187 echo "$as_me:8187: checking for --enable-joystick" >&5
8188echo $ECHO_N "checking for --enable-joystick... $ECHO_C" >&6
f6bcfd97
BP
8189 no_cache=0
8190 # Check whether --enable-joystick or --disable-joystick was given.
8191if test "${enable_joystick+set}" = set; then
8192 enableval="$enable_joystick"
7b4a847f 8193
f6bcfd97
BP
8194 if test "$enableval" = yes; then
8195 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8196 else
8197 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8198 fi
7b4a847f 8199
f6bcfd97 8200else
7b4a847f 8201
f6bcfd97
BP
8202 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8203 if test "x$LINE" != x ; then
8204 eval "DEFAULT_$LINE"
8205 else
8206 no_cache=1
8207 fi
8208
8209 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8210
7b4a847f 8211fi;
f6bcfd97
BP
8212
8213 eval "$ac_cv_use_joystick"
8214 if test "$no_cache" != 1; then
8215 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8216 fi
8217
8218 if test "$wxUSE_JOYSTICK" = yes; then
7b4a847f
RR
8219 echo "$as_me:8219: result: yes" >&5
8220echo "${ECHO_T}yes" >&6
f6bcfd97 8221 else
7b4a847f
RR
8222 echo "$as_me:8222: result: no" >&5
8223echo "${ECHO_T}no" >&6
f6bcfd97 8224 fi
698dcdb6 8225
7b4a847f
RR
8226 echo "$as_me:8226: checking for --enable-metafile" >&5
8227echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6
1e6feb95
VZ
8228 no_cache=0
8229 # Check whether --enable-metafile or --disable-metafile was given.
8230if test "${enable_metafile+set}" = set; then
8231 enableval="$enable_metafile"
7b4a847f 8232
1e6feb95
VZ
8233 if test "$enableval" = yes; then
8234 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8235 else
8236 ac_cv_use_metafile='wxUSE_METAFILE=no'
8237 fi
7b4a847f 8238
1e6feb95 8239else
7b4a847f 8240
1e6feb95
VZ
8241 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8242 if test "x$LINE" != x ; then
8243 eval "DEFAULT_$LINE"
8244 else
8245 no_cache=1
8246 fi
8247
8248 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 8249
7b4a847f 8250fi;
1e6feb95
VZ
8251
8252 eval "$ac_cv_use_metafile"
8253 if test "$no_cache" != 1; then
8254 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8255 fi
8256
8257 if test "$wxUSE_METAFILE" = yes; then
7b4a847f
RR
8258 echo "$as_me:8258: result: yes" >&5
8259echo "${ECHO_T}yes" >&6
1e6feb95 8260 else
7b4a847f
RR
8261 echo "$as_me:8261: result: no" >&5
8262echo "${ECHO_T}no" >&6
1e6feb95 8263 fi
1e6feb95 8264
7b4a847f
RR
8265 echo "$as_me:8265: checking for --enable-dragimage" >&5
8266echo $ECHO_N "checking for --enable-dragimage... $ECHO_C" >&6
24fd6d87
VZ
8267 no_cache=0
8268 # Check whether --enable-dragimage or --disable-dragimage was given.
8269if test "${enable_dragimage+set}" = set; then
8270 enableval="$enable_dragimage"
7b4a847f 8271
24fd6d87
VZ
8272 if test "$enableval" = yes; then
8273 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8274 else
8275 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8276 fi
7b4a847f 8277
24fd6d87 8278else
7b4a847f 8279
24fd6d87
VZ
8280 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8281 if test "x$LINE" != x ; then
8282 eval "DEFAULT_$LINE"
8283 else
8284 no_cache=1
8285 fi
8286
8287 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 8288
7b4a847f 8289fi;
24fd6d87
VZ
8290
8291 eval "$ac_cv_use_dragimage"
8292 if test "$no_cache" != 1; then
8293 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8294 fi
8295
8296 if test "$wxUSE_DRAGIMAGE" = yes; then
7b4a847f
RR
8297 echo "$as_me:8297: result: yes" >&5
8298echo "${ECHO_T}yes" >&6
24fd6d87 8299 else
7b4a847f
RR
8300 echo "$as_me:8300: result: no" >&5
8301echo "${ECHO_T}no" >&6
24fd6d87 8302 fi
24fd6d87 8303
7b4a847f
RR
8304 echo "$as_me:8304: checking for --enable-palette" >&5
8305echo $ECHO_N "checking for --enable-palette... $ECHO_C" >&6
edae8572
VZ
8306 no_cache=0
8307 # Check whether --enable-palette or --disable-palette was given.
8308if test "${enable_palette+set}" = set; then
8309 enableval="$enable_palette"
7b4a847f 8310
edae8572
VZ
8311 if test "$enableval" = yes; then
8312 ac_cv_use_palette='wxUSE_PALETTE=yes'
8313 else
8314 ac_cv_use_palette='wxUSE_PALETTE=no'
8315 fi
7b4a847f 8316
edae8572 8317else
7b4a847f 8318
edae8572
VZ
8319 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 8327
7b4a847f 8328fi;
edae8572
VZ
8329
8330 eval "$ac_cv_use_palette"
8331 if test "$no_cache" != 1; then
8332 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8333 fi
8334
8335 if test "$wxUSE_PALETTE" = yes; then
7b4a847f
RR
8336 echo "$as_me:8336: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
edae8572 8338 else
7b4a847f
RR
8339 echo "$as_me:8339: result: no" >&5
8340echo "${ECHO_T}no" >&6
edae8572 8341 fi
edae8572 8342
7b4a847f
RR
8343 echo "$as_me:8343: checking for --enable-image" >&5
8344echo $ECHO_N "checking for --enable-image... $ECHO_C" >&6
0046ff7c
VS
8345 no_cache=0
8346 # Check whether --enable-image or --disable-image was given.
8347if test "${enable_image+set}" = set; then
8348 enableval="$enable_image"
7b4a847f 8349
0046ff7c
VS
8350 if test "$enableval" = yes; then
8351 ac_cv_use_image='wxUSE_IMAGE=yes'
8352 else
8353 ac_cv_use_image='wxUSE_IMAGE=no'
8354 fi
7b4a847f 8355
0046ff7c 8356else
7b4a847f 8357
0046ff7c
VS
8358 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8359 if test "x$LINE" != x ; then
8360 eval "DEFAULT_$LINE"
8361 else
8362 no_cache=1
8363 fi
8364
8365 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 8366
7b4a847f 8367fi;
0046ff7c
VS
8368
8369 eval "$ac_cv_use_image"
8370 if test "$no_cache" != 1; then
8371 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8372 fi
8373
8374 if test "$wxUSE_IMAGE" = yes; then
7b4a847f
RR
8375 echo "$as_me:8375: result: yes" >&5
8376echo "${ECHO_T}yes" >&6
0046ff7c 8377 else
7b4a847f
RR
8378 echo "$as_me:8378: result: no" >&5
8379echo "${ECHO_T}no" >&6
0046ff7c 8380 fi
0046ff7c 8381
7b4a847f
RR
8382 echo "$as_me:8382: checking for --enable-gif" >&5
8383echo $ECHO_N "checking for --enable-gif... $ECHO_C" >&6
10f2d63a
VZ
8384 no_cache=0
8385 # Check whether --enable-gif or --disable-gif was given.
8386if test "${enable_gif+set}" = set; then
8387 enableval="$enable_gif"
7b4a847f 8388
10f2d63a
VZ
8389 if test "$enableval" = yes; then
8390 ac_cv_use_gif='wxUSE_GIF=yes'
8391 else
8392 ac_cv_use_gif='wxUSE_GIF=no'
8393 fi
7b4a847f 8394
10f2d63a 8395else
7b4a847f 8396
10f2d63a
VZ
8397 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8398 if test "x$LINE" != x ; then
8399 eval "DEFAULT_$LINE"
8400 else
8401 no_cache=1
8402 fi
8403
8404 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 8405
7b4a847f 8406fi;
10f2d63a
VZ
8407
8408 eval "$ac_cv_use_gif"
8409 if test "$no_cache" != 1; then
8410 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8411 fi
8412
8413 if test "$wxUSE_GIF" = yes; then
7b4a847f
RR
8414 echo "$as_me:8414: result: yes" >&5
8415echo "${ECHO_T}yes" >&6
10f2d63a 8416 else
7b4a847f
RR
8417 echo "$as_me:8417: result: no" >&5
8418echo "${ECHO_T}no" >&6
10f2d63a 8419 fi
10f2d63a 8420
7b4a847f
RR
8421 echo "$as_me:8421: checking for --enable-pcx" >&5
8422echo $ECHO_N "checking for --enable-pcx... $ECHO_C" >&6
10f2d63a
VZ
8423 no_cache=0
8424 # Check whether --enable-pcx or --disable-pcx was given.
8425if test "${enable_pcx+set}" = set; then
8426 enableval="$enable_pcx"
7b4a847f 8427
10f2d63a
VZ
8428 if test "$enableval" = yes; then
8429 ac_cv_use_pcx='wxUSE_PCX=yes'
8430 else
8431 ac_cv_use_pcx='wxUSE_PCX=no'
8432 fi
7b4a847f 8433
10f2d63a 8434else
7b4a847f 8435
10f2d63a
VZ
8436 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 8444
7b4a847f 8445fi;
10f2d63a
VZ
8446
8447 eval "$ac_cv_use_pcx"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_PCX" = yes; then
7b4a847f
RR
8453 echo "$as_me:8453: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
10f2d63a 8455 else
7b4a847f
RR
8456 echo "$as_me:8456: result: no" >&5
8457echo "${ECHO_T}no" >&6
10f2d63a 8458 fi
10f2d63a 8459
7b4a847f
RR
8460 echo "$as_me:8460: checking for --enable-iff" >&5
8461echo $ECHO_N "checking for --enable-iff... $ECHO_C" >&6
4b6b4dfc
RR
8462 no_cache=0
8463 # Check whether --enable-iff or --disable-iff was given.
8464if test "${enable_iff+set}" = set; then
8465 enableval="$enable_iff"
7b4a847f 8466
4b6b4dfc
RR
8467 if test "$enableval" = yes; then
8468 ac_cv_use_iff='wxUSE_IFF=yes'
8469 else
8470 ac_cv_use_iff='wxUSE_IFF=no'
8471 fi
7b4a847f 8472
4b6b4dfc 8473else
7b4a847f 8474
4b6b4dfc
RR
8475 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8476 if test "x$LINE" != x ; then
8477 eval "DEFAULT_$LINE"
8478 else
8479 no_cache=1
8480 fi
8481
8482 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 8483
7b4a847f 8484fi;
4b6b4dfc
RR
8485
8486 eval "$ac_cv_use_iff"
8487 if test "$no_cache" != 1; then
8488 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8489 fi
8490
8491 if test "$wxUSE_IFF" = yes; then
7b4a847f
RR
8492 echo "$as_me:8492: result: yes" >&5
8493echo "${ECHO_T}yes" >&6
4b6b4dfc 8494 else
7b4a847f
RR
8495 echo "$as_me:8495: result: no" >&5
8496echo "${ECHO_T}no" >&6
4b6b4dfc 8497 fi
4b6b4dfc 8498
7b4a847f
RR
8499 echo "$as_me:8499: checking for --enable-pnm" >&5
8500echo $ECHO_N "checking for --enable-pnm... $ECHO_C" >&6
10f2d63a
VZ
8501 no_cache=0
8502 # Check whether --enable-pnm or --disable-pnm was given.
8503if test "${enable_pnm+set}" = set; then
8504 enableval="$enable_pnm"
7b4a847f 8505
10f2d63a
VZ
8506 if test "$enableval" = yes; then
8507 ac_cv_use_pnm='wxUSE_PNM=yes'
8508 else
8509 ac_cv_use_pnm='wxUSE_PNM=no'
8510 fi
7b4a847f 8511
10f2d63a 8512else
7b4a847f 8513
10f2d63a
VZ
8514 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 8522
7b4a847f 8523fi;
10f2d63a
VZ
8524
8525 eval "$ac_cv_use_pnm"
8526 if test "$no_cache" != 1; then
8527 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8528 fi
8529
8530 if test "$wxUSE_PNM" = yes; then
7b4a847f
RR
8531 echo "$as_me:8531: result: yes" >&5
8532echo "${ECHO_T}yes" >&6
10f2d63a 8533 else
7b4a847f
RR
8534 echo "$as_me:8534: result: no" >&5
8535echo "${ECHO_T}no" >&6
10f2d63a 8536 fi
10f2d63a 8537
7b4a847f
RR
8538 echo "$as_me:8538: checking for --enable-xpm" >&5
8539echo $ECHO_N "checking for --enable-xpm... $ECHO_C" >&6
0046ff7c 8540 no_cache=0
69d27ff7
MB
8541 # Check whether --enable-xpm or --disable-xpm was given.
8542if test "${enable_xpm+set}" = set; then
8543 enableval="$enable_xpm"
7b4a847f 8544
0046ff7c 8545 if test "$enableval" = yes; then
69d27ff7 8546 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8547 else
69d27ff7 8548 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8549 fi
7b4a847f 8550
0046ff7c 8551else
7b4a847f 8552
0046ff7c
VS
8553 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8554 if test "x$LINE" != x ; then
8555 eval "DEFAULT_$LINE"
8556 else
8557 no_cache=1
8558 fi
8559
69d27ff7 8560 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 8561
7b4a847f 8562fi;
0046ff7c 8563
69d27ff7 8564 eval "$ac_cv_use_xpm"
0046ff7c 8565 if test "$no_cache" != 1; then
69d27ff7 8566 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8567 fi
8568
8569 if test "$wxUSE_XPM" = yes; then
7b4a847f
RR
8570 echo "$as_me:8570: result: yes" >&5
8571echo "${ECHO_T}yes" >&6
0046ff7c 8572 else
7b4a847f
RR
8573 echo "$as_me:8573: result: no" >&5
8574echo "${ECHO_T}no" >&6
0046ff7c 8575 fi
0046ff7c 8576
7b4a847f
RR
8577 echo "$as_me:8577: checking for --enable-ico_cur" >&5
8578echo $ECHO_N "checking for --enable-ico_cur... $ECHO_C" >&6
658974ae 8579 no_cache=0
c7206e64
VS
8580 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8581if test "${enable_ico_cur+set}" = set; then
8582 enableval="$enable_ico_cur"
7b4a847f 8583
658974ae 8584 if test "$enableval" = yes; then
c7206e64 8585 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8586 else
c7206e64 8587 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8588 fi
7b4a847f 8589
658974ae 8590else
7b4a847f 8591
658974ae
VS
8592 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8593 if test "x$LINE" != x ; then
8594 eval "DEFAULT_$LINE"
8595 else
8596 no_cache=1
8597 fi
8598
c7206e64 8599 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 8600
7b4a847f 8601fi;
658974ae 8602
c7206e64 8603 eval "$ac_cv_use_ico_cur"
658974ae 8604 if test "$no_cache" != 1; then
c7206e64 8605 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8606 fi
8607
8608 if test "$wxUSE_ICO_CUR" = yes; then
7b4a847f
RR
8609 echo "$as_me:8609: result: yes" >&5
8610echo "${ECHO_T}yes" >&6
658974ae 8611 else
7b4a847f
RR
8612 echo "$as_me:8612: result: no" >&5
8613echo "${ECHO_T}no" >&6
658974ae 8614 fi
658974ae 8615
b12915c1
VZ
8616fi
8617
d558c907
VS
8618case "${host}" in
8619 *-pc-os2_emx | *-pc-os2-emx )
8620 LEX_STEM="lexyy"
8621 ;;
8622 *)
8623 PATH_IFS=':'
8624 LEX_STEM="lex.yy"
8625 ;;
8626esac
8627
10f2d63a
VZ
8628 echo "saving argument cache $wx_arg_cache_file"
8629 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10f2d63a 8630
7b4a847f
RR
8631echo "$as_me:8631: checking for toolkit" >&5
8632echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10f2d63a
VZ
8633
8634if test "$wxUSE_GUI" = "yes"; then
8635
3a922bb4 8636 if test "$USE_BEOS" = 1; then
7b4a847f
RR
8637 { { echo "$as_me:8637: error: BeOS GUI is not supported yet, use --disable-gui" >&5
8638echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
8639 { (exit 1); exit 1; }; }
3a922bb4 8640 fi
b12915c1 8641
3a922bb4
RL
8642 if test "$TOOLKIT_GIVEN" = 1; then
8643 for toolkit in `echo $ALL_TOOLKITS`; do
8644 var=wxUSE_$toolkit
8645 eval "value=\$${var}"
8646 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8647 done
10f2d63a 8648 else
3a922bb4
RL
8649 for toolkit in `echo $ALL_TOOLKITS`; do
8650 if test "$has_toolkit_in_cache" != 1; then
8651 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8652 else
8653 var=DEFAULT_wxUSE_$toolkit
8654 fi
8655 eval "wxUSE_$toolkit=\$${var}"
8656 done
10f2d63a 8657 fi
10f2d63a 8658
3a922bb4 8659 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8660 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8661
d558c907 8662 case "${host}" in
6fa882bd 8663 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8664 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8665 esac
10f2d63a 8666
3a922bb4
RL
8667 case "$NUM_TOOLKITS" in
8668 1)
8669 ;;
8670 0)
7b4a847f
RR
8671 { { echo "$as_me:8671: error: Please specify a toolkit - cannot determine the default for ${host}" >&5
8672echo "$as_me: error: Please specify a toolkit - cannot determine the default for ${host}" >&2;}
8673 { (exit 1); exit 1; }; }
3a922bb4
RL
8674 ;;
8675 *)
7b4a847f
RR
8676 { { echo "$as_me:8676: error: Please specify at most one toolkit (may be some are cached?)" >&5
8677echo "$as_me: error: Please specify at most one toolkit (may be some are cached?)" >&2;}
8678 { (exit 1); exit 1; }; }
3a922bb4 8679 esac
10f2d63a 8680
3a922bb4
RL
8681 for toolkit in `echo $ALL_TOOLKITS`; do
8682 var=wxUSE_$toolkit
8683 eval "value=\$${var}"
8684 if test "x$value" != x; then
8685 cache_var=CACHE_$toolkit
8686 eval "cache=\$${cache_var}"
8687 if test "$cache" = 1; then
8688 echo "$var=$value" >> ${wx_arg_cache_file}
8689 fi
8690 if test "$value" = 1; then
8691 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7b4a847f
RR
8692 echo "$as_me:8692: result: $toolkit_echo" >&5
8693echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
8694 fi
8695 fi
8696 done
10f2d63a 8697else
7b4a847f
RR
8698 echo "$as_me:8698: result: base ($host_alias hosted) only" >&5
8699echo "${ECHO_T}base ($host_alias hosted) only" >&6
10f2d63a
VZ
8700fi
8701
43d99b6d
VS
8702wants_win32=0
8703doesnt_want_win32=0
17234b26
MB
8704case "${host}" in
8705 *-*-cygwin*)
8706 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8707 wants_win32=1
8708 else
8709 doesnt_want_win32=1
17234b26
MB
8710 fi
8711 ;;
8712 *-*-mingw*)
43d99b6d 8713 wants_win32=1
17234b26
MB
8714 ;;
8715esac
8716
43d99b6d 8717if test "$wants_win32" = 1 ; then
17234b26
MB
8718 USE_UNIX=0
8719 USE_WIN32=1
7b4a847f 8720 cat >>confdefs.h <<\EOF
17234b26
MB
8721#define __WIN32__ 1
8722EOF
8723
7b4a847f 8724 cat >>confdefs.h <<\EOF
17234b26
MB
8725#define __WIN95__ 1
8726EOF
8727
7b4a847f 8728 cat >>confdefs.h <<\EOF
17234b26
MB
8729#define __WINDOWS__ 1
8730EOF
8731
7b4a847f 8732 cat >>confdefs.h <<\EOF
17234b26
MB
8733#define __GNUWIN32__ 1
8734EOF
8735
7b4a847f 8736 cat >>confdefs.h <<\EOF
17234b26
MB
8737#define STRICT 1
8738EOF
8739
7b4a847f 8740 cat >>confdefs.h <<\EOF
17234b26
MB
8741#define WINVER 0x0400
8742EOF
8743
43d99b6d
VS
8744fi
8745if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8746 USE_UNIX=1
8747 USE_WIN32=0
8748fi
8749
8750if test "$USE_UNIX" = 1 ; then
8751 wxUSE_UNIX=yes
7b4a847f 8752 cat >>confdefs.h <<\EOF
17234b26
MB
8753#define __UNIX__ 1
8754EOF
8755
8756fi
8757
7b4a847f 8758cat >confcache <<\_ACEOF
10f2d63a
VZ
8759# This file is a shell script that caches the results of configure
8760# tests run on this system so they can be shared between configure
7b4a847f
RR
8761# scripts and configure runs, see configure's option --config-cache.
8762# It is not useful on other systems. If it contains results you don't
8763# want to keep, you may remove or edit it.
10f2d63a 8764#
7b4a847f
RR
8765# config.status only pays attention to the cache file if you give it
8766# the --recheck option to rerun configure.
10f2d63a 8767#
7b4a847f
RR
8768# `ac_cv_env_foo' variables (set or unset) will be overriden when
8769# loading this file, other *unset* `ac_cv_foo' will be assigned the
8770# following values.
8771
8772_ACEOF
8773
10f2d63a
VZ
8774# The following way of writing the cache mishandles newlines in values,
8775# but we know of no workaround that is simple, portable, and efficient.
8776# So, don't put newlines in cache variables' values.
8777# Ultrix sh set writes to stderr and can't be redirected directly,
8778# and sets the high bit in the cache file unless we assign to the vars.
7b4a847f
RR
8779{
8780 (set) 2>&1 |
8781 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8782 *ac_space=\ *)
8783 # `set' does not quote correctly, so add quotes (double-quote
8784 # substitution turns \\\\ into \\, and sed turns \\ into \).
8785 sed -n \
8786 "s/'/'\\\\''/g;
8787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8788 ;;
8789 *)
8790 # `set' quotes correctly as required by POSIX, so do not add quotes.
8791 sed -n \
8792 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8793 ;;
8794 esac;
8795} |
8796 sed '
8797 t clear
8798 : clear
8799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8800 t end
8801 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8802 : end' >>confcache
8803if cmp -s $cache_file confcache; then :; else
10f2d63a 8804 if test -w $cache_file; then
7b4a847f
RR
8805 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8806 cat confcache >$cache_file
10f2d63a
VZ
8807 else
8808 echo "not updating unwritable cache $cache_file"
8809 fi
8810fi
8811rm -f confcache
8812
e59890c3 8813if test "$build" != "$host" ; then
9d353d4a 8814 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8815 CC=$host_alias-gcc
8816 CXX=$host_alias-c++
8817 AR=$host_alias-ar
8818 RANLIB=$host_alias-ranlib
8819 DLLTOOL=$host_alias-dlltool
8820 RESCOMP=$host_alias-windres
8821 LD=$host_alias-ld
8822 NM=$host_alias-nm
8823 STRIP=$host_alias-strip
8824 else
7b4a847f
RR
8825 { { echo "$as_me:8825: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
8826echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
8827 { (exit 1); exit 1; }; }
3a922bb4 8828 fi
10f2d63a
VZ
8829fi
8830
ec603395 8831CFLAGS=${CFLAGS:=}
7b4a847f
RR
8832ac_ext=c
8833ac_cpp='$CPP $CPPFLAGS'
8834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8836ac_compiler_gnu=$ac_cv_c_compiler_gnu
8837if test -n "$ac_tool_prefix"; then
8838 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8839set dummy ${ac_tool_prefix}gcc; ac_word=$2
8840echo "$as_me:8840: checking for $ac_word" >&5
8841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8842if test "${ac_cv_prog_CC+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
8844else
8845 if test -n "$CC"; then
8846 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8847else
7b4a847f
RR
8848 ac_save_IFS=$IFS; IFS=$ac_path_separator
8849ac_dummy="$PATH"
8850for ac_dir in $ac_dummy; do
8851 IFS=$ac_save_IFS
8852 test -z "$ac_dir" && ac_dir=.
8853 $as_executable_p "$ac_dir/$ac_word" || continue
8854ac_cv_prog_CC="${ac_tool_prefix}gcc"
8855echo "$as_me:8855: found $ac_dir/$ac_word" >&5
8856break
8857done
8858
10f2d63a 8859fi
6232543b 8860fi
7b4a847f 8861CC=$ac_cv_prog_CC
6232543b 8862if test -n "$CC"; then
7b4a847f
RR
8863 echo "$as_me:8863: result: $CC" >&5
8864echo "${ECHO_T}$CC" >&6
8865else
8866 echo "$as_me:8866: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868fi
8869
8870fi
8871if test -z "$ac_cv_prog_CC"; then
8872 ac_ct_CC=$CC
8873 # Extract the first word of "gcc", so it can be a program name with args.
8874set dummy gcc; ac_word=$2
8875echo "$as_me:8875: checking for $ac_word" >&5
8876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8879else
8880 if test -n "$ac_ct_CC"; then
8881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8882else
8883 ac_save_IFS=$IFS; IFS=$ac_path_separator
8884ac_dummy="$PATH"
8885for ac_dir in $ac_dummy; do
8886 IFS=$ac_save_IFS
8887 test -z "$ac_dir" && ac_dir=.
8888 $as_executable_p "$ac_dir/$ac_word" || continue
8889ac_cv_prog_ac_ct_CC="gcc"
8890echo "$as_me:8890: found $ac_dir/$ac_word" >&5
8891break
8892done
8893
8894fi
8895fi
8896ac_ct_CC=$ac_cv_prog_ac_ct_CC
8897if test -n "$ac_ct_CC"; then
8898 echo "$as_me:8898: result: $ac_ct_CC" >&5
8899echo "${ECHO_T}$ac_ct_CC" >&6
8900else
8901 echo "$as_me:8901: result: no" >&5
8902echo "${ECHO_T}no" >&6
8903fi
8904
8905 CC=$ac_ct_CC
1e487827 8906else
7b4a847f 8907 CC="$ac_cv_prog_CC"
1e487827 8908fi
6232543b 8909
1e487827 8910if test -z "$CC"; then
7b4a847f
RR
8911 if test -n "$ac_tool_prefix"; then
8912 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8913set dummy ${ac_tool_prefix}cc; ac_word=$2
8914echo "$as_me:8914: checking for $ac_word" >&5
8915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8916if test "${ac_cv_prog_CC+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c
RR
8918else
8919 if test -n "$CC"; then
8920 ac_cv_prog_CC="$CC" # Let the user override the test.
8921else
7b4a847f
RR
8922 ac_save_IFS=$IFS; IFS=$ac_path_separator
8923ac_dummy="$PATH"
8924for ac_dir in $ac_dummy; do
8925 IFS=$ac_save_IFS
8926 test -z "$ac_dir" && ac_dir=.
8927 $as_executable_p "$ac_dir/$ac_word" || continue
8928ac_cv_prog_CC="${ac_tool_prefix}cc"
8929echo "$as_me:8929: found $ac_dir/$ac_word" >&5
8930break
8931done
8932
8933fi
8934fi
8935CC=$ac_cv_prog_CC
8936if test -n "$CC"; then
8937 echo "$as_me:8937: result: $CC" >&5
8938echo "${ECHO_T}$CC" >&6
8939else
8940 echo "$as_me:8940: result: no" >&5
8941echo "${ECHO_T}no" >&6
8942fi
8943
8944fi
8945if test -z "$ac_cv_prog_CC"; then
8946 ac_ct_CC=$CC
8947 # Extract the first word of "cc", so it can be a program name with args.
8948set dummy cc; ac_word=$2
8949echo "$as_me:8949: checking for $ac_word" >&5
8950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8951if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953else
8954 if test -n "$ac_ct_CC"; then
8955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8956else
8957 ac_save_IFS=$IFS; IFS=$ac_path_separator
8958ac_dummy="$PATH"
8959for ac_dir in $ac_dummy; do
8960 IFS=$ac_save_IFS
8961 test -z "$ac_dir" && ac_dir=.
8962 $as_executable_p "$ac_dir/$ac_word" || continue
8963ac_cv_prog_ac_ct_CC="cc"
8964echo "$as_me:8964: found $ac_dir/$ac_word" >&5
8965break
8966done
8967
8968fi
8969fi
8970ac_ct_CC=$ac_cv_prog_ac_ct_CC
8971if test -n "$ac_ct_CC"; then
8972 echo "$as_me:8972: result: $ac_ct_CC" >&5
8973echo "${ECHO_T}$ac_ct_CC" >&6
8974else
8975 echo "$as_me:8975: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977fi
8978
8979 CC=$ac_ct_CC
8980else
8981 CC="$ac_cv_prog_CC"
8982fi
8983
8984fi
8985if test -z "$CC"; then
8986 # Extract the first word of "cc", so it can be a program name with args.
8987set dummy cc; ac_word=$2
8988echo "$as_me:8988: checking for $ac_word" >&5
8989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8990if test "${ac_cv_prog_CC+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992else
8993 if test -n "$CC"; then
8994 ac_cv_prog_CC="$CC" # Let the user override the test.
8995else
8996 ac_prog_rejected=no
8997 ac_save_IFS=$IFS; IFS=$ac_path_separator
8998ac_dummy="$PATH"
8999for ac_dir in $ac_dummy; do
9000 IFS=$ac_save_IFS
9001 test -z "$ac_dir" && ac_dir=.
9002 $as_executable_p "$ac_dir/$ac_word" || continue
9003if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9004 ac_prog_rejected=yes
9005 continue
9006fi
9007ac_cv_prog_CC="cc"
9008echo "$as_me:9008: found $ac_dir/$ac_word" >&5
9009break
9010done
9011
328a083c
RR
9012if test $ac_prog_rejected = yes; then
9013 # We found a bogon in the path, so make sure we never use it.
9014 set dummy $ac_cv_prog_CC
9015 shift
7b4a847f 9016 if test $# != 0; then
328a083c 9017 # We chose a different compiler from the bogus one.
1e487827
VS
9018 # However, it has the same basename, so the bogon will be chosen
9019 # first if we set CC to just the basename; use the full file name.
9020 shift
7b4a847f 9021 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1e487827
VS
9022 shift
9023 ac_cv_prog_CC="$@"
703e0a69 9024 fi
1e487827
VS
9025fi
9026fi
9027fi
7b4a847f 9028CC=$ac_cv_prog_CC
1e487827 9029if test -n "$CC"; then
7b4a847f
RR
9030 echo "$as_me:9030: result: $CC" >&5
9031echo "${ECHO_T}$CC" >&6
703e0a69 9032else
7b4a847f
RR
9033 echo "$as_me:9033: result: no" >&5
9034echo "${ECHO_T}no" >&6
703e0a69 9035fi
1e487827 9036
7b4a847f
RR
9037fi
9038if test -z "$CC"; then
9039 if test -n "$ac_tool_prefix"; then
9040 for ac_prog in cl
9041 do
9042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9043set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9044echo "$as_me:9044: checking for $ac_word" >&5
9045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9046if test "${ac_cv_prog_CC+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9048else
9049 if test -n "$CC"; then
9050 ac_cv_prog_CC="$CC" # Let the user override the test.
9051else
7b4a847f
RR
9052 ac_save_IFS=$IFS; IFS=$ac_path_separator
9053ac_dummy="$PATH"
9054for ac_dir in $ac_dummy; do
9055 IFS=$ac_save_IFS
9056 test -z "$ac_dir" && ac_dir=.
9057 $as_executable_p "$ac_dir/$ac_word" || continue
9058ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9059echo "$as_me:9059: found $ac_dir/$ac_word" >&5
9060break
9061done
9062
f09359cf
VS
9063fi
9064fi
7b4a847f 9065CC=$ac_cv_prog_CC
f09359cf 9066if test -n "$CC"; then
7b4a847f
RR
9067 echo "$as_me:9067: result: $CC" >&5
9068echo "${ECHO_T}$CC" >&6
f09359cf 9069else
7b4a847f
RR
9070 echo "$as_me:9070: result: no" >&5
9071echo "${ECHO_T}no" >&6
328a083c 9072fi
1e487827 9073
7b4a847f
RR
9074 test -n "$CC" && break
9075 done
9076fi
9077if test -z "$CC"; then
9078 ac_ct_CC=$CC
9079 for ac_prog in cl
9080do
9081 # Extract the first word of "$ac_prog", so it can be a program name with args.
9082set dummy $ac_prog; ac_word=$2
9083echo "$as_me:9083: checking for $ac_word" >&5
9084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087else
9088 if test -n "$ac_ct_CC"; then
9089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9090else
9091 ac_save_IFS=$IFS; IFS=$ac_path_separator
9092ac_dummy="$PATH"
9093for ac_dir in $ac_dummy; do
9094 IFS=$ac_save_IFS
9095 test -z "$ac_dir" && ac_dir=.
9096 $as_executable_p "$ac_dir/$ac_word" || continue
9097ac_cv_prog_ac_ct_CC="$ac_prog"
9098echo "$as_me:9098: found $ac_dir/$ac_word" >&5
9099break
9100done
6232543b 9101
7b4a847f
RR
9102fi
9103fi
9104ac_ct_CC=$ac_cv_prog_ac_ct_CC
9105if test -n "$ac_ct_CC"; then
9106 echo "$as_me:9106: result: $ac_ct_CC" >&5
9107echo "${ECHO_T}$ac_ct_CC" >&6
9108else
9109 echo "$as_me:9109: result: no" >&5
9110echo "${ECHO_T}no" >&6
9111fi
1e487827 9112
7b4a847f
RR
9113 test -n "$ac_ct_CC" && break
9114done
f09359cf 9115
7b4a847f
RR
9116 CC=$ac_ct_CC
9117fi
9118
9119fi
9120
9121test -z "$CC" && { { echo "$as_me:9121: error: no acceptable cc found in \$PATH" >&5
9122echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
9123 { (exit 1); exit 1; }; }
9124
9125# Provide some information about the compiler.
9126echo "$as_me:9126:" \
9127 "checking for C compiler version" >&5
9128ac_compiler=`set X $ac_compile; echo $2`
9129{ (eval echo "$as_me:9129: \"$ac_compiler --version </dev/null >&5\"") >&5
9130 (eval $ac_compiler --version </dev/null >&5) 2>&5
9131 ac_status=$?
9132 echo "$as_me:9132: \$? = $ac_status" >&5
9133 (exit $ac_status); }
9134{ (eval echo "$as_me:9134: \"$ac_compiler -v </dev/null >&5\"") >&5
9135 (eval $ac_compiler -v </dev/null >&5) 2>&5
9136 ac_status=$?
9137 echo "$as_me:9137: \$? = $ac_status" >&5
9138 (exit $ac_status); }
9139{ (eval echo "$as_me:9139: \"$ac_compiler -V </dev/null >&5\"") >&5
9140 (eval $ac_compiler -V </dev/null >&5) 2>&5
9141 ac_status=$?
9142 echo "$as_me:9142: \$? = $ac_status" >&5
9143 (exit $ac_status); }
9144
9145cat >conftest.$ac_ext <<_ACEOF
9146#line 9146 "configure"
579d8138 9147#include "confdefs.h"
f09359cf 9148
7b4a847f
RR
9149int
9150main ()
9151{
9152
9153 ;
9154 return 0;
9155}
9156_ACEOF
9157ac_clean_files_save=$ac_clean_files
9158ac_clean_files="$ac_clean_files a.out a.exe"
9159# Try to create an executable without -o first, disregard a.out.
9160# It will help us diagnose broken compilers, and finding out an intuition
9161# of exeext.
9162echo "$as_me:9162: checking for C compiler default output" >&5
9163echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9164ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9165if { (eval echo "$as_me:9165: \"$ac_link_default\"") >&5
9166 (eval $ac_link_default) 2>&5
9167 ac_status=$?
9168 echo "$as_me:9168: \$? = $ac_status" >&5
9169 (exit $ac_status); }; then
9170 # Find the output, starting from the most likely. This scheme is
9171# not robust to junk in `.', hence go to wildcards (a.*) only as a last
9172# resort.
9173for ac_file in `ls a.exe conftest.exe 2>/dev/null;
9174 ls a.out conftest 2>/dev/null;
9175 ls a.* conftest.* 2>/dev/null`; do
9176 case $ac_file in
9177 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
9178 a.out ) # We found the default executable, but exeext='' is most
9179 # certainly right.
9180 break;;
9181 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9182 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
9183 export ac_cv_exeext
9184 break;;
9185 * ) break;;
9186 esac
9187done
9188else
9189 echo "$as_me: failed program was:" >&5
9190cat conftest.$ac_ext >&5
9191{ { echo "$as_me:9191: error: C compiler cannot create executables" >&5
9192echo "$as_me: error: C compiler cannot create executables" >&2;}
9193 { (exit 77); exit 77; }; }
9194fi
9195
9196ac_exeext=$ac_cv_exeext
9197echo "$as_me:9197: result: $ac_file" >&5
9198echo "${ECHO_T}$ac_file" >&6
9199
9200# Check the compiler produces executables we can run. If not, either
9201# the compiler is broken, or we cross compile.
9202echo "$as_me:9202: checking whether the C compiler works" >&5
9203echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
9204# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
9205# If not cross compiling, check that we can run a simple program.
9206if test "$cross_compiling" != yes; then
9207 if { ac_try='./$ac_file'
9208 { (eval echo "$as_me:9208: \"$ac_try\"") >&5
9209 (eval $ac_try) 2>&5
9210 ac_status=$?
9211 echo "$as_me:9211: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 cross_compiling=no
698dcdb6 9214 else
7b4a847f
RR
9215 if test "$cross_compiling" = maybe; then
9216 cross_compiling=yes
9217 else
9218 { { echo "$as_me:9218: error: cannot run C compiled programs.
9219If you meant to cross compile, use \`--host'." >&5
9220echo "$as_me: error: cannot run C compiled programs.
9221If you meant to cross compile, use \`--host'." >&2;}
9222 { (exit 1); exit 1; }; }
9223 fi
698dcdb6 9224 fi
698dcdb6 9225fi
7b4a847f
RR
9226echo "$as_me:9226: result: yes" >&5
9227echo "${ECHO_T}yes" >&6
9228
9229rm -f a.out a.exe conftest$ac_cv_exeext
9230ac_clean_files=$ac_clean_files_save
9231# Check the compiler produces executables we can run. If not, either
9232# the compiler is broken, or we cross compile.
9233echo "$as_me:9233: checking whether we are cross compiling" >&5
9234echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
9235echo "$as_me:9235: result: $cross_compiling" >&5
9236echo "${ECHO_T}$cross_compiling" >&6
9237
9238echo "$as_me:9238: checking for executable suffix" >&5
9239echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
9240if { (eval echo "$as_me:9240: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>&5
9242 ac_status=$?
9243 echo "$as_me:9243: \$? = $ac_status" >&5
9244 (exit $ac_status); }; then
9245 # If both `conftest.exe' and `conftest' are `present' (well, observable)
9246# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
9247# work properly (i.e., refer to `conftest.exe'), while it won't with
9248# `rm'.
9249for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
9250 case $ac_file in
9251 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
9252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9253 export ac_cv_exeext
9254 break;;
9255 * ) break;;
9256 esac
9257done
328a083c 9258else
7b4a847f
RR
9259 { { echo "$as_me:9259: error: cannot compute EXEEXT: cannot compile and link" >&5
9260echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
9261 { (exit 1); exit 1; }; }
579d8138 9262fi
328a083c 9263
7b4a847f
RR
9264rm -f conftest$ac_cv_exeext
9265echo "$as_me:9265: result: $ac_cv_exeext" >&5
9266echo "${ECHO_T}$ac_cv_exeext" >&6
9267
9268rm -f conftest.$ac_ext
9269EXEEXT=$ac_cv_exeext
9270ac_exeext=$EXEEXT
9271echo "$as_me:9271: checking for object suffix" >&5
9272echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
9273if test "${ac_cv_objext+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275else
9276 cat >conftest.$ac_ext <<_ACEOF
9277#line 9277 "configure"
9278#include "confdefs.h"
9279
9280int
9281main ()
9282{
1e487827 9283
7b4a847f
RR
9284 ;
9285 return 0;
9286}
9287_ACEOF
9288rm -f conftest.o conftest.obj
9289if { (eval echo "$as_me:9289: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>&5
9291 ac_status=$?
9292 echo "$as_me:9292: \$? = $ac_status" >&5
9293 (exit $ac_status); }; then
9294 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
9295 case $ac_file in
9296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
9297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
9298 break;;
9299 esac
9300done
f09359cf 9301else
7b4a847f
RR
9302 echo "$as_me: failed program was:" >&5
9303cat conftest.$ac_ext >&5
9304{ { echo "$as_me:9304: error: cannot compute OBJEXT: cannot compile" >&5
9305echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
9306 { (exit 1); exit 1; }; }
f09359cf
VS
9307fi
9308
7b4a847f
RR
9309rm -f conftest.$ac_cv_objext conftest.$ac_ext
9310fi
9311echo "$as_me:9311: result: $ac_cv_objext" >&5
9312echo "${ECHO_T}$ac_cv_objext" >&6
9313OBJEXT=$ac_cv_objext
9314ac_objext=$OBJEXT
9315echo "$as_me:9315: checking whether we are using the GNU C compiler" >&5
9316echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
9317if test "${ac_cv_c_compiler_gnu+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 9319else
7b4a847f
RR
9320 cat >conftest.$ac_ext <<_ACEOF
9321#line 9321 "configure"
9322#include "confdefs.h"
9323
9324int
9325main ()
9326{
9327#ifndef __GNUC__
9328 choke me
9329#endif
9330
9331 ;
9332 return 0;
9333}
9334_ACEOF
9335rm -f conftest.$ac_objext
9336if { (eval echo "$as_me:9336: \"$ac_compile\"") >&5
9337 (eval $ac_compile) 2>&5
9338 ac_status=$?
9339 echo "$as_me:9339: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -s conftest.$ac_objext'
9342 { (eval echo "$as_me:9342: \"$ac_try\"") >&5
9343 (eval $ac_try) 2>&5
9344 ac_status=$?
9345 echo "$as_me:9345: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 ac_compiler_gnu=yes
9348else
9349 echo "$as_me: failed program was:" >&5
9350cat conftest.$ac_ext >&5
9351ac_compiler_gnu=no
9352fi
9353rm -f conftest.$ac_objext conftest.$ac_ext
9354ac_cv_c_compiler_gnu=$ac_compiler_gnu
9355
9356fi
9357echo "$as_me:9357: result: $ac_cv_c_compiler_gnu" >&5
9358echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
9359GCC=`test $ac_compiler_gnu = yes && echo yes`
9360ac_test_CFLAGS=${CFLAGS+set}
9361ac_save_CFLAGS=$CFLAGS
9362CFLAGS="-g"
9363echo "$as_me:9363: checking whether $CC accepts -g" >&5
9364echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
9365if test "${ac_cv_prog_cc_g+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367else
9368 cat >conftest.$ac_ext <<_ACEOF
9369#line 9369 "configure"
9370#include "confdefs.h"
9371
9372int
9373main ()
9374{
9375
9376 ;
9377 return 0;
9378}
9379_ACEOF
9380rm -f conftest.$ac_objext
9381if { (eval echo "$as_me:9381: \"$ac_compile\"") >&5
9382 (eval $ac_compile) 2>&5
9383 ac_status=$?
9384 echo "$as_me:9384: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -s conftest.$ac_objext'
9387 { (eval echo "$as_me:9387: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:9390: \$? = $ac_status" >&5
9391 (exit $ac_status); }; }; then
10f2d63a
VZ
9392 ac_cv_prog_cc_g=yes
9393else
7b4a847f
RR
9394 echo "$as_me: failed program was:" >&5
9395cat conftest.$ac_ext >&5
9396ac_cv_prog_cc_g=no
10f2d63a 9397fi
7b4a847f 9398rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 9399fi
7b4a847f
RR
9400echo "$as_me:9400: result: $ac_cv_prog_cc_g" >&5
9401echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 9402if test "$ac_test_CFLAGS" = set; then
7b4a847f 9403 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
9404elif test $ac_cv_prog_cc_g = yes; then
9405 if test "$GCC" = yes; then
10f2d63a
VZ
9406 CFLAGS="-g -O2"
9407 else
f09359cf 9408 CFLAGS="-g"
10f2d63a 9409 fi
5c0a20c3 9410else
f09359cf
VS
9411 if test "$GCC" = yes; then
9412 CFLAGS="-O2"
9413 else
9414 CFLAGS=
9415 fi
10f2d63a 9416fi
7b4a847f
RR
9417# Some people use a C++ compiler to compile C. Since we use `exit',
9418# in C++ we need to declare it. In case someone uses the same compiler
9419# for both compiling C and C++ we need to have the C++ compiler decide
9420# the declaration of exit, since it's the most demanding environment.
9421cat >conftest.$ac_ext <<_ACEOF
9422#ifndef __cplusplus
9423 choke me
9424#endif
9425_ACEOF
9426rm -f conftest.$ac_objext
9427if { (eval echo "$as_me:9427: \"$ac_compile\"") >&5
9428 (eval $ac_compile) 2>&5
9429 ac_status=$?
9430 echo "$as_me:9430: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -s conftest.$ac_objext'
9433 { (eval echo "$as_me:9433: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:9436: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 for ac_declaration in \
9439 ''\
9440 '#include <stdlib.h>' \
9441 'extern "C" void std::exit (int) throw (); using std::exit;' \
9442 'extern "C" void std::exit (int); using std::exit;' \
9443 'extern "C" void exit (int) throw ();' \
9444 'extern "C" void exit (int);' \
9445 'void exit (int);'
9446do
9447 cat >conftest.$ac_ext <<_ACEOF
9448#line 9448 "configure"
9449#include "confdefs.h"
9450#include <stdlib.h>
9451$ac_declaration
9452int
9453main ()
9454{
9455exit (42);
9456 ;
9457 return 0;
9458}
9459_ACEOF
9460rm -f conftest.$ac_objext
9461if { (eval echo "$as_me:9461: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>&5
9463 ac_status=$?
9464 echo "$as_me:9464: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -s conftest.$ac_objext'
9467 { (eval echo "$as_me:9467: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:9470: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9472 :
9473else
9474 echo "$as_me: failed program was:" >&5
9475cat conftest.$ac_ext >&5
9476continue
9477fi
9478rm -f conftest.$ac_objext conftest.$ac_ext
9479 cat >conftest.$ac_ext <<_ACEOF
9480#line 9480 "configure"
9481#include "confdefs.h"
9482$ac_declaration
9483int
9484main ()
9485{
9486exit (42);
9487 ;
9488 return 0;
9489}
9490_ACEOF
9491rm -f conftest.$ac_objext
9492if { (eval echo "$as_me:9492: \"$ac_compile\"") >&5
9493 (eval $ac_compile) 2>&5
9494 ac_status=$?
9495 echo "$as_me:9495: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -s conftest.$ac_objext'
9498 { (eval echo "$as_me:9498: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:9501: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 break
9504else
9505 echo "$as_me: failed program was:" >&5
9506cat conftest.$ac_ext >&5
9507fi
9508rm -f conftest.$ac_objext conftest.$ac_ext
9509done
9510rm -f conftest*
9511if test -n "$ac_declaration"; then
9512 echo '#ifdef __cplusplus' >>confdefs.h
9513 echo $ac_declaration >>confdefs.h
9514 echo '#endif' >>confdefs.h
9515fi
10f2d63a 9516
7b4a847f
RR
9517else
9518 echo "$as_me: failed program was:" >&5
9519cat conftest.$ac_ext >&5
9520fi
9521rm -f conftest.$ac_objext conftest.$ac_ext
9522ac_ext=c
9523ac_cpp='$CPP $CPPFLAGS'
9524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9526ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 9527
7b4a847f
RR
9528ac_ext=c
9529ac_cpp='$CPP $CPPFLAGS'
9530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9532ac_compiler_gnu=$ac_cv_c_compiler_gnu
9533echo "$as_me:9533: checking how to run the C preprocessor" >&5
9534echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
9535# On Suns, sometimes $CPP names a directory.
9536if test -n "$CPP" && test -d "$CPP"; then
9537 CPP=
9538fi
9539if test -z "$CPP"; then
7b4a847f
RR
9540 if test "${ac_cv_prog_CPP+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542else
9543 # Double quotes because CPP needs to be expanded
9544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9545 do
9546 ac_preproc_ok=false
9547for ac_c_preproc_warn_flag in '' yes
9548do
9549 # Use a header file that comes with gcc, so configuring glibc
9550 # with a fresh cross-compiler works.
10f2d63a 9551 # On the NeXT, cc -E runs the code through the compiler's parser,
7b4a847f
RR
9552 # not just through cpp. "Syntax error" is here to catch this case.
9553 cat >conftest.$ac_ext <<_ACEOF
9554#line 9554 "configure"
10f2d63a
VZ
9555#include "confdefs.h"
9556#include <assert.h>
7b4a847f
RR
9557 Syntax error
9558_ACEOF
9559if { (eval echo "$as_me:9559: \"$ac_cpp conftest.$ac_ext\"") >&5
9560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9561 ac_status=$?
9562 egrep -v '^ *\+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 echo "$as_me:9565: \$? = $ac_status" >&5
9566 (exit $ac_status); } >/dev/null; then
9567 if test -s conftest.err; then
9568 ac_cpp_err=$ac_c_preproc_warn_flag
9569 else
9570 ac_cpp_err=
9571 fi
9572else
9573 ac_cpp_err=yes
9574fi
9575if test -z "$ac_cpp_err"; then
10f2d63a
VZ
9576 :
9577else
7b4a847f 9578 echo "$as_me: failed program was:" >&5
10f2d63a 9579 cat conftest.$ac_ext >&5
7b4a847f
RR
9580 # Broken: fails on valid input.
9581continue
9582fi
9583rm -f conftest.err conftest.$ac_ext
9584
9585 # OK, works on sane cases. Now check whether non-existent headers
9586 # can be detected and how.
9587 cat >conftest.$ac_ext <<_ACEOF
9588#line 9588 "configure"
f09359cf 9589#include "confdefs.h"
7b4a847f
RR
9590#include <ac_nonexistent.h>
9591_ACEOF
9592if { (eval echo "$as_me:9592: \"$ac_cpp conftest.$ac_ext\"") >&5
9593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9594 ac_status=$?
9595 egrep -v '^ *\+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
9598 echo "$as_me:9598: \$? = $ac_status" >&5
9599 (exit $ac_status); } >/dev/null; then
9600 if test -s conftest.err; then
9601 ac_cpp_err=$ac_c_preproc_warn_flag
9602 else
9603 ac_cpp_err=
9604 fi
9605else
9606 ac_cpp_err=yes
9607fi
9608if test -z "$ac_cpp_err"; then
9609 # Broken: success on invalid input.
9610continue
f09359cf 9611else
7b4a847f 9612 echo "$as_me: failed program was:" >&5
f09359cf 9613 cat conftest.$ac_ext >&5
7b4a847f
RR
9614 # Passes both tests.
9615ac_preproc_ok=:
9616break
9617fi
9618rm -f conftest.err conftest.$ac_ext
9619
9620done
9621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9622rm -f conftest.err conftest.$ac_ext
9623if $ac_preproc_ok; then
9624 break
9625fi
9626
9627 done
9628 ac_cv_prog_CPP=$CPP
9629
9630fi
9631 CPP=$ac_cv_prog_CPP
9632else
9633 ac_cv_prog_CPP=$CPP
9634fi
9635echo "$as_me:9635: result: $CPP" >&5
9636echo "${ECHO_T}$CPP" >&6
9637ac_preproc_ok=false
9638for ac_c_preproc_warn_flag in '' yes
9639do
9640 # Use a header file that comes with gcc, so configuring glibc
9641 # with a fresh cross-compiler works.
9642 # On the NeXT, cc -E runs the code through the compiler's parser,
9643 # not just through cpp. "Syntax error" is here to catch this case.
9644 cat >conftest.$ac_ext <<_ACEOF
9645#line 9645 "configure"
10f2d63a
VZ
9646#include "confdefs.h"
9647#include <assert.h>
7b4a847f
RR
9648 Syntax error
9649_ACEOF
9650if { (eval echo "$as_me:9650: \"$ac_cpp conftest.$ac_ext\"") >&5
9651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9652 ac_status=$?
9653 egrep -v '^ *\+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:9656: \$? = $ac_status" >&5
9657 (exit $ac_status); } >/dev/null; then
9658 if test -s conftest.err; then
9659 ac_cpp_err=$ac_c_preproc_warn_flag
9660 else
9661 ac_cpp_err=
9662 fi
9663else
9664 ac_cpp_err=yes
9665fi
9666if test -z "$ac_cpp_err"; then
10f2d63a
VZ
9667 :
9668else
7b4a847f 9669 echo "$as_me: failed program was:" >&5
10f2d63a 9670 cat conftest.$ac_ext >&5
7b4a847f
RR
9671 # Broken: fails on valid input.
9672continue
703e0a69 9673fi
7b4a847f
RR
9674rm -f conftest.err conftest.$ac_ext
9675
9676 # OK, works on sane cases. Now check whether non-existent headers
9677 # can be detected and how.
9678 cat >conftest.$ac_ext <<_ACEOF
9679#line 9679 "configure"
9680#include "confdefs.h"
9681#include <ac_nonexistent.h>
9682_ACEOF
9683if { (eval echo "$as_me:9683: \"$ac_cpp conftest.$ac_ext\"") >&5
9684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9685 ac_status=$?
9686 egrep -v '^ *\+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:9689: \$? = $ac_status" >&5
9690 (exit $ac_status); } >/dev/null; then
9691 if test -s conftest.err; then
9692 ac_cpp_err=$ac_c_preproc_warn_flag
9693 else
9694 ac_cpp_err=
9695 fi
9696else
9697 ac_cpp_err=yes
f09359cf 9698fi
7b4a847f
RR
9699if test -z "$ac_cpp_err"; then
9700 # Broken: success on invalid input.
9701continue
9702else
9703 echo "$as_me: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 # Passes both tests.
9706ac_preproc_ok=:
9707break
579d8138 9708fi
7b4a847f
RR
9709rm -f conftest.err conftest.$ac_ext
9710
9711done
9712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9713rm -f conftest.err conftest.$ac_ext
9714if $ac_preproc_ok; then
9715 :
10f2d63a 9716else
7b4a847f
RR
9717 { { echo "$as_me:9717: error: C preprocessor \"$CPP\" fails sanity check" >&5
9718echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
9719 { (exit 1); exit 1; }; }
10f2d63a 9720fi
10f2d63a 9721
7b4a847f
RR
9722ac_ext=c
9723ac_cpp='$CPP $CPPFLAGS'
9724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726ac_compiler_gnu=$ac_cv_c_compiler_gnu
9727
9728if test $ac_cv_c_compiler_gnu = yes; then
9729 echo "$as_me:9729: checking whether $CC needs -traditional" >&5
9730echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
9731if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
9733else
9734 ac_pattern="Autoconf.*'x'"
7b4a847f
RR
9735 cat >conftest.$ac_ext <<_ACEOF
9736#line 9736 "configure"
10f2d63a
VZ
9737#include "confdefs.h"
9738#include <sgtty.h>
9739Autoconf TIOCGETP
7b4a847f 9740_ACEOF
10f2d63a
VZ
9741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9742 egrep "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
9743 ac_cv_prog_gcc_traditional=yes
9744else
10f2d63a
VZ
9745 ac_cv_prog_gcc_traditional=no
9746fi
9747rm -f conftest*
9748
10f2d63a 9749 if test $ac_cv_prog_gcc_traditional = no; then
7b4a847f
RR
9750 cat >conftest.$ac_ext <<_ACEOF
9751#line 9751 "configure"
10f2d63a
VZ
9752#include "confdefs.h"
9753#include <termio.h>
9754Autoconf TCGETA
7b4a847f 9755_ACEOF
10f2d63a
VZ
9756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9757 egrep "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
9758 ac_cv_prog_gcc_traditional=yes
9759fi
9760rm -f conftest*
9761
9762 fi
9763fi
7b4a847f
RR
9764echo "$as_me:9764: result: $ac_cv_prog_gcc_traditional" >&5
9765echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
9766 if test $ac_cv_prog_gcc_traditional = yes; then
9767 CC="$CC -traditional"
9768 fi
9769fi
9770
7b4a847f 9771ac_ext=cc
1e487827 9772ac_cpp='$CXXCPP $CPPFLAGS'
7b4a847f
RR
9773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
698dcdb6 9776
ec603395 9777CXXFLAGS=${CXXFLAGS:=}
7b4a847f
RR
9778ac_ext=cc
9779ac_cpp='$CXXCPP $CPPFLAGS'
9780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9783if test -n "$ac_tool_prefix"; then
9784 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9785 do
9786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9788echo "$as_me:9788: checking for $ac_word" >&5
9789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9790if test "${ac_cv_prog_CXX+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
9792else
9793 if test -n "$CXX"; then
9794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9795else
7b4a847f
RR
9796 ac_save_IFS=$IFS; IFS=$ac_path_separator
9797ac_dummy="$PATH"
9798for ac_dir in $ac_dummy; do
9799 IFS=$ac_save_IFS
9800 test -z "$ac_dir" && ac_dir=.
9801 $as_executable_p "$ac_dir/$ac_word" || continue
9802ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9803echo "$as_me:9803: found $ac_dir/$ac_word" >&5
9804break
9805done
9806
10f2d63a
VZ
9807fi
9808fi
7b4a847f 9809CXX=$ac_cv_prog_CXX
10f2d63a 9810if test -n "$CXX"; then
7b4a847f
RR
9811 echo "$as_me:9811: result: $CXX" >&5
9812echo "${ECHO_T}$CXX" >&6
10f2d63a 9813else
7b4a847f
RR
9814 echo "$as_me:9814: result: no" >&5
9815echo "${ECHO_T}no" >&6
10f2d63a
VZ
9816fi
9817
7b4a847f
RR
9818 test -n "$CXX" && break
9819 done
9820fi
9821if test -z "$CXX"; then
9822 ac_ct_CXX=$CXX
9823 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9824do
9825 # Extract the first word of "$ac_prog", so it can be a program name with args.
9826set dummy $ac_prog; ac_word=$2
9827echo "$as_me:9827: checking for $ac_word" >&5
9828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831else
9832 if test -n "$ac_ct_CXX"; then
9833 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9834else
9835 ac_save_IFS=$IFS; IFS=$ac_path_separator
9836ac_dummy="$PATH"
9837for ac_dir in $ac_dummy; do
9838 IFS=$ac_save_IFS
9839 test -z "$ac_dir" && ac_dir=.
9840 $as_executable_p "$ac_dir/$ac_word" || continue
9841ac_cv_prog_ac_ct_CXX="$ac_prog"
9842echo "$as_me:9842: found $ac_dir/$ac_word" >&5
9843break
10f2d63a 9844done
698dcdb6 9845
7b4a847f
RR
9846fi
9847fi
9848ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9849if test -n "$ac_ct_CXX"; then
9850 echo "$as_me:9850: result: $ac_ct_CXX" >&5
9851echo "${ECHO_T}$ac_ct_CXX" >&6
9852else
9853 echo "$as_me:9853: result: no" >&5
9854echo "${ECHO_T}no" >&6
9855fi
f09359cf 9856
7b4a847f
RR
9857 test -n "$ac_ct_CXX" && break
9858done
9859test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
9860
9861 CXX=$ac_ct_CXX
9862fi
9863
9864# Provide some information about the compiler.
9865echo "$as_me:9865:" \
9866 "checking for C++ compiler version" >&5
9867ac_compiler=`set X $ac_compile; echo $2`
9868{ (eval echo "$as_me:9868: \"$ac_compiler --version </dev/null >&5\"") >&5
9869 (eval $ac_compiler --version </dev/null >&5) 2>&5
9870 ac_status=$?
9871 echo "$as_me:9871: \$? = $ac_status" >&5
9872 (exit $ac_status); }
9873{ (eval echo "$as_me:9873: \"$ac_compiler -v </dev/null >&5\"") >&5
9874 (eval $ac_compiler -v </dev/null >&5) 2>&5
9875 ac_status=$?
9876 echo "$as_me:9876: \$? = $ac_status" >&5
9877 (exit $ac_status); }
9878{ (eval echo "$as_me:9878: \"$ac_compiler -V </dev/null >&5\"") >&5
9879 (eval $ac_compiler -V </dev/null >&5) 2>&5
9880 ac_status=$?
9881 echo "$as_me:9881: \$? = $ac_status" >&5
9882 (exit $ac_status); }
9883
9884echo "$as_me:9884: checking whether we are using the GNU C++ compiler" >&5
9885echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
9886if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889 cat >conftest.$ac_ext <<_ACEOF
9890#line 9890 "configure"
10f2d63a 9891#include "confdefs.h"
f09359cf 9892
7b4a847f
RR
9893int
9894main ()
9895{
9896#ifndef __GNUC__
9897 choke me
10f2d63a 9898#endif
10f2d63a 9899
7b4a847f
RR
9900 ;
9901 return 0;
9902}
9903_ACEOF
9904rm -f conftest.$ac_objext
9905if { (eval echo "$as_me:9905: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>&5
9907 ac_status=$?
9908 echo "$as_me:9908: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:9911: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:9914: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_compiler_gnu=yes
9917else
9918 echo "$as_me: failed program was:" >&5
9919cat conftest.$ac_ext >&5
9920ac_compiler_gnu=no
9921fi
9922rm -f conftest.$ac_objext conftest.$ac_ext
9923ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9924
9925fi
9926echo "$as_me:9926: result: $ac_cv_cxx_compiler_gnu" >&5
9927echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
9928GXX=`test $ac_compiler_gnu = yes && echo yes`
9929ac_test_CXXFLAGS=${CXXFLAGS+set}
9930ac_save_CXXFLAGS=$CXXFLAGS
9931CXXFLAGS="-g"
9932echo "$as_me:9932: checking whether $CXX accepts -g" >&5
9933echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
9934if test "${ac_cv_prog_cxx_g+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936else
9937 cat >conftest.$ac_ext <<_ACEOF
9938#line 9938 "configure"
9939#include "confdefs.h"
10f2d63a 9940
7b4a847f
RR
9941int
9942main ()
9943{
f09359cf 9944
7b4a847f
RR
9945 ;
9946 return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext
9950if { (eval echo "$as_me:9950: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>&5
9952 ac_status=$?
9953 echo "$as_me:9953: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -s conftest.$ac_objext'
9956 { (eval echo "$as_me:9956: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:9959: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
10f2d63a
VZ
9961 ac_cv_prog_cxx_g=yes
9962else
7b4a847f
RR
9963 echo "$as_me: failed program was:" >&5
9964cat conftest.$ac_ext >&5
9965ac_cv_prog_cxx_g=no
10f2d63a 9966fi
7b4a847f 9967rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 9968fi
7b4a847f
RR
9969echo "$as_me:9969: result: $ac_cv_prog_cxx_g" >&5
9970echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 9971if test "$ac_test_CXXFLAGS" = set; then
7b4a847f 9972 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
9973elif test $ac_cv_prog_cxx_g = yes; then
9974 if test "$GXX" = yes; then
10f2d63a
VZ
9975 CXXFLAGS="-g -O2"
9976 else
f09359cf 9977 CXXFLAGS="-g"
10f2d63a 9978 fi
5c0a20c3 9979else
f09359cf
VS
9980 if test "$GXX" = yes; then
9981 CXXFLAGS="-O2"
9982 else
9983 CXXFLAGS=
9984 fi
10f2d63a 9985fi
7b4a847f
RR
9986for ac_declaration in \
9987 ''\
9988 '#include <stdlib.h>' \
9989 'extern "C" void std::exit (int) throw (); using std::exit;' \
9990 'extern "C" void std::exit (int); using std::exit;' \
9991 'extern "C" void exit (int) throw ();' \
9992 'extern "C" void exit (int);' \
9993 'void exit (int);'
9994do
9995 cat >conftest.$ac_ext <<_ACEOF
9996#line 9996 "configure"
9997#include "confdefs.h"
9998#include <stdlib.h>
9999$ac_declaration
10000int
10001main ()
10002{
10003exit (42);
10004 ;
10005 return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext
10009if { (eval echo "$as_me:10009: \"$ac_compile\"") >&5
10010 (eval $ac_compile) 2>&5
10011 ac_status=$?
10012 echo "$as_me:10012: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -s conftest.$ac_objext'
10015 { (eval echo "$as_me:10015: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:10018: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 :
10021else
10022 echo "$as_me: failed program was:" >&5
10023cat conftest.$ac_ext >&5
10024continue
10025fi
10026rm -f conftest.$ac_objext conftest.$ac_ext
10027 cat >conftest.$ac_ext <<_ACEOF
10028#line 10028 "configure"
10029#include "confdefs.h"
10030$ac_declaration
10031int
10032main ()
10033{
10034exit (42);
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext
10040if { (eval echo "$as_me:10040: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10042 ac_status=$?
10043 echo "$as_me:10043: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:10046: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 break
10052else
10053 echo "$as_me: failed program was:" >&5
10054cat conftest.$ac_ext >&5
10055fi
10056rm -f conftest.$ac_objext conftest.$ac_ext
10057done
10058rm -f conftest*
10059if test -n "$ac_declaration"; then
10060 echo '#ifdef __cplusplus' >>confdefs.h
10061 echo $ac_declaration >>confdefs.h
10062 echo '#endif' >>confdefs.h
10063fi
10f2d63a 10064
7b4a847f
RR
10065ac_ext=cc
10066ac_cpp='$CXXCPP $CPPFLAGS'
10067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a 10070
10f2d63a 10071ac_ext=c
10f2d63a 10072ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
10073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10075ac_compiler_gnu=$ac_cv_c_compiler_gnu
10076
10077if test -n "$ac_tool_prefix"; then
10078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10079set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10080echo "$as_me:10080: checking for $ac_word" >&5
10081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10082if test "${ac_cv_prog_RANLIB+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10084else
10085 if test -n "$RANLIB"; then
10086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10087else
7b4a847f
RR
10088 ac_save_IFS=$IFS; IFS=$ac_path_separator
10089ac_dummy="$PATH"
10090for ac_dir in $ac_dummy; do
10091 IFS=$ac_save_IFS
10092 test -z "$ac_dir" && ac_dir=.
10093 $as_executable_p "$ac_dir/$ac_word" || continue
10094ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10095echo "$as_me:10095: found $ac_dir/$ac_word" >&5
10096break
10097done
10098
10f2d63a
VZ
10099fi
10100fi
7b4a847f 10101RANLIB=$ac_cv_prog_RANLIB
10f2d63a 10102if test -n "$RANLIB"; then
7b4a847f
RR
10103 echo "$as_me:10103: result: $RANLIB" >&5
10104echo "${ECHO_T}$RANLIB" >&6
328a083c 10105else
7b4a847f
RR
10106 echo "$as_me:10106: result: no" >&5
10107echo "${ECHO_T}no" >&6
328a083c
RR
10108fi
10109
7b4a847f
RR
10110fi
10111if test -z "$ac_cv_prog_RANLIB"; then
10112 ac_ct_RANLIB=$RANLIB
10113 # Extract the first word of "ranlib", so it can be a program name with args.
10114set dummy ranlib; ac_word=$2
10115echo "$as_me:10115: checking for $ac_word" >&5
10116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10117if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119else
10120 if test -n "$ac_ct_RANLIB"; then
10121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10122else
10123 ac_save_IFS=$IFS; IFS=$ac_path_separator
10124ac_dummy="$PATH"
10125for ac_dir in $ac_dummy; do
10126 IFS=$ac_save_IFS
10127 test -z "$ac_dir" && ac_dir=.
10128 $as_executable_p "$ac_dir/$ac_word" || continue
10129ac_cv_prog_ac_ct_RANLIB="ranlib"
10130echo "$as_me:10130: found $ac_dir/$ac_word" >&5
10131break
10132done
10133
10134 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10135fi
10136fi
10137ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10138if test -n "$ac_ct_RANLIB"; then
10139 echo "$as_me:10139: result: $ac_ct_RANLIB" >&5
10140echo "${ECHO_T}$ac_ct_RANLIB" >&6
10141else
10142 echo "$as_me:10142: result: no" >&5
10143echo "${ECHO_T}no" >&6
10144fi
10145
10146 RANLIB=$ac_ct_RANLIB
10147else
10148 RANLIB="$ac_cv_prog_RANLIB"
10149fi
10f2d63a
VZ
10150
10151# Extract the first word of "ar", so it can be a program name with args.
10152set dummy ar; ac_word=$2
7b4a847f
RR
10153echo "$as_me:10153: checking for $ac_word" >&5
10154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10155if test "${ac_cv_prog_AR+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10157else
10158 if test -n "$AR"; then
10159 ac_cv_prog_AR="$AR" # Let the user override the test.
10160else
7b4a847f
RR
10161 ac_save_IFS=$IFS; IFS=$ac_path_separator
10162ac_dummy="$PATH"
10163for ac_dir in $ac_dummy; do
10164 IFS=$ac_save_IFS
10165 test -z "$ac_dir" && ac_dir=.
10166 $as_executable_p "$ac_dir/$ac_word" || continue
10167ac_cv_prog_AR="ar"
10168echo "$as_me:10168: found $ac_dir/$ac_word" >&5
10169break
10170done
10171
10f2d63a
VZ
10172 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
10173fi
10174fi
7b4a847f 10175AR=$ac_cv_prog_AR
10f2d63a 10176if test -n "$AR"; then
7b4a847f
RR
10177 echo "$as_me:10177: result: $AR" >&5
10178echo "${ECHO_T}$AR" >&6
10f2d63a 10179else
7b4a847f
RR
10180 echo "$as_me:10180: result: no" >&5
10181echo "${ECHO_T}no" >&6
10f2d63a
VZ
10182fi
10183
6054113a 10184# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
10185# so one script is as good as another. But avoid the broken or
10186# incompatible versions:
10187# SysV /etc/install, /usr/sbin/install
10188# SunOS /usr/etc/install
10189# IRIX /sbin/install
10190# AIX /bin/install
7b4a847f 10191# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 10192# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
10193# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10194# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10195# ./install, which can be erroneously created by make from ./install.sh.
7b4a847f
RR
10196echo "$as_me:10196: checking for a BSD compatible install" >&5
10197echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
10f2d63a 10198if test -z "$INSTALL"; then
7b4a847f
RR
10199if test "${ac_cv_path_install+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10201else
7b4a847f 10202 ac_save_IFS=$IFS; IFS=$ac_path_separator
10f2d63a 10203 for ac_dir in $PATH; do
7b4a847f 10204 IFS=$ac_save_IFS
10f2d63a 10205 # Account for people who put trailing slashes in PATH elements.
7b4a847f
RR
10206 case $ac_dir/ in
10207 / | ./ | .// | /cC/* \
10208 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
10209 | /usr/ucb/* ) ;;
10f2d63a
VZ
10210 *)
10211 # OSF1 and SCO ODT 3.0 have their own names for install.
f09359cf
VS
10212 # Don't use installbsd from OSF since it installs stuff as root
10213 # by default.
10214 for ac_prog in ginstall scoinst install; do
7b4a847f 10215 if $as_executable_p "$ac_dir/$ac_prog"; then
10f2d63a 10216 if test $ac_prog = install &&
7b4a847f 10217 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
10f2d63a
VZ
10218 # AIX install. It has an incompatible calling convention.
10219 :
7b4a847f
RR
10220 elif test $ac_prog = install &&
10221 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
10222 # program-specific install script used by HP pwplus--don't use.
10223 :
10f2d63a
VZ
10224 else
10225 ac_cv_path_install="$ac_dir/$ac_prog -c"
10226 break 2
10227 fi
10228 fi
10229 done
10230 ;;
10231 esac
10232 done
10f2d63a
VZ
10233
10234fi
10235 if test "${ac_cv_path_install+set}" = set; then
7b4a847f 10236 INSTALL=$ac_cv_path_install
10f2d63a
VZ
10237 else
10238 # As a last resort, use the slow shell script. We don't cache a
10239 # path for INSTALL within a source directory, because that will
10240 # break other packages using the cache if that directory is
10241 # removed, or if the path is relative.
7b4a847f 10242 INSTALL=$ac_install_sh
10f2d63a
VZ
10243 fi
10244fi
7b4a847f
RR
10245echo "$as_me:10245: result: $INSTALL" >&5
10246echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
10247
10248# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10249# It thinks the first close brace ends the variable substitution.
10250test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10251
7b4a847f 10252test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 10253
10f2d63a
VZ
10254test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10255
1d1b75ac
VZ
10256case ${INSTALL} in
10257 /* ) # Absolute
10258 ;;
3bd8fb5f 10259 *)
1d1b75ac
VZ
10260 INSTALL=`pwd`/${INSTALL} ;;
10261esac
10262
6054113a
GD
10263case "${host}" in
10264
b5853384 10265 powerpc-*-darwin* )
eb99ae0b
GD
10266 INSTALL_PROGRAM="cp -fp"
10267 INSTALL_DATA="cp -fp"
6054113a
GD
10268 ;;
10269 *)
10270 ;;
d6853540 10271esac
698dcdb6 10272
10f2d63a
VZ
10273# Extract the first word of "strip", so it can be a program name with args.
10274set dummy strip; ac_word=$2
7b4a847f
RR
10275echo "$as_me:10275: checking for $ac_word" >&5
10276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10277if test "${ac_cv_prog_STRIP+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10279else
10280 if test -n "$STRIP"; then
10281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10282else
7b4a847f
RR
10283 ac_save_IFS=$IFS; IFS=$ac_path_separator
10284ac_dummy="$PATH"
10285for ac_dir in $ac_dummy; do
10286 IFS=$ac_save_IFS
10287 test -z "$ac_dir" && ac_dir=.
10288 $as_executable_p "$ac_dir/$ac_word" || continue
10289ac_cv_prog_STRIP="strip"
10290echo "$as_me:10290: found $ac_dir/$ac_word" >&5
10291break
10292done
10293
10f2d63a
VZ
10294 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
10295fi
10296fi
7b4a847f 10297STRIP=$ac_cv_prog_STRIP
10f2d63a 10298if test -n "$STRIP"; then
7b4a847f
RR
10299 echo "$as_me:10299: result: $STRIP" >&5
10300echo "${ECHO_T}$STRIP" >&6
10f2d63a 10301else
7b4a847f
RR
10302 echo "$as_me:10302: result: no" >&5
10303echo "${ECHO_T}no" >&6
10f2d63a
VZ
10304fi
10305
7b4a847f
RR
10306echo "$as_me:10306: checking if make is GNU make" >&5
10307echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
10308if test "${wx_cv_prog_makeisgnu+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 10310else
7b4a847f 10311
414eab6d 10312 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 10313 egrep -s GNU > /dev/null); then
414eab6d
VZ
10314 wx_cv_prog_makeisgnu="yes"
10315 else
10316 wx_cv_prog_makeisgnu="no"
10317 fi
10318
10319fi
7b4a847f
RR
10320echo "$as_me:10320: result: $wx_cv_prog_makeisgnu" >&5
10321echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
10322
10323if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
10324 IF_GNU_MAKE=""
10325else
10326 IF_GNU_MAKE="#"
10327fi
10328
414eab6d 10329if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
7b4a847f
RR
10330echo "$as_me:10330: checking if make supports VPATH" >&5
10331echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
10332if test "${wx_cv_prog_makevpath+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 10334else
7b4a847f 10335
10f2d63a
VZ
10336cat - << EOF > confMake
10337check : file
10338 cp \$? \$@
10339 cp \$? final_file
10340EOF
10341
10342if test ! -d sub ; then
10343 mkdir sub
10344fi
10345echo dummy > sub/file
f6bcfd97 10346${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
10347RESULT=$?
10348rm -f sub/file check final_file confMake
10349rmdir sub
10350if test "$RESULT" = 0; then
04e7a216 10351 wx_cv_prog_makevpath="yes"
10f2d63a 10352else
04e7a216
VZ
10353 wx_cv_prog_makevpath="no"
10354fi
10355
10356fi
7b4a847f
RR
10357echo "$as_me:10357: result: $wx_cv_prog_makevpath" >&5
10358echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
10359
10360if test "x$wx_cv_prog_makevpath" != "xyes"; then
7b4a847f
RR
10361{ { echo "$as_me:10361: error:
10362You need a make-utility that is able to use the variable
10363VPATH correctly.
10364If your version of make does not support VPATH correctly,
10365please install GNU-make (possibly as gmake), and start
10366configure with the following command:
10367export MAKE=gmake; ./configure for sh-type shells
10368setenv MAKE gmake; ./configure for csh-type shells
10369Also please do remember to use gmake in this case every time
10370you are trying to compile.
10371" >&5
10372echo "$as_me: error:
1e487827
VS
10373You need a make-utility that is able to use the variable
10374VPATH correctly.
10375If your version of make does not support VPATH correctly,
10376please install GNU-make (possibly as gmake), and start
10377configure with the following command:
10378export MAKE=gmake; ./configure for sh-type shells
10379setenv MAKE gmake; ./configure for csh-type shells
10380Also please do remember to use gmake in this case every time
10381you are trying to compile.
7b4a847f
RR
10382" >&2;}
10383 { (exit 1); exit 1; }; }
10384fi fi
10f2d63a
VZ
10385for ac_prog in 'bison -y' byacc
10386do
7b4a847f 10387 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 10388set dummy $ac_prog; ac_word=$2
7b4a847f
RR
10389echo "$as_me:10389: checking for $ac_word" >&5
10390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10391if test "${ac_cv_prog_YACC+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10393else
10394 if test -n "$YACC"; then
10395 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10396else
7b4a847f
RR
10397 ac_save_IFS=$IFS; IFS=$ac_path_separator
10398ac_dummy="$PATH"
10399for ac_dir in $ac_dummy; do
10400 IFS=$ac_save_IFS
10401 test -z "$ac_dir" && ac_dir=.
10402 $as_executable_p "$ac_dir/$ac_word" || continue
10403ac_cv_prog_YACC="$ac_prog"
10404echo "$as_me:10404: found $ac_dir/$ac_word" >&5
10405break
10406done
10407
10f2d63a
VZ
10408fi
10409fi
7b4a847f 10410YACC=$ac_cv_prog_YACC
10f2d63a 10411if test -n "$YACC"; then
7b4a847f
RR
10412 echo "$as_me:10412: result: $YACC" >&5
10413echo "${ECHO_T}$YACC" >&6
10f2d63a 10414else
7b4a847f
RR
10415 echo "$as_me:10415: result: no" >&5
10416echo "${ECHO_T}no" >&6
10f2d63a
VZ
10417fi
10418
7b4a847f 10419 test -n "$YACC" && break
10f2d63a
VZ
10420done
10421test -n "$YACC" || YACC="yacc"
10422
7b4a847f
RR
10423for ac_prog in flex lex
10424do
10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
10426set dummy $ac_prog; ac_word=$2
10427echo "$as_me:10427: checking for $ac_word" >&5
10428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10429if test "${ac_cv_prog_LEX+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10431else
10432 if test -n "$LEX"; then
10433 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10434else
7b4a847f
RR
10435 ac_save_IFS=$IFS; IFS=$ac_path_separator
10436ac_dummy="$PATH"
10437for ac_dir in $ac_dummy; do
10438 IFS=$ac_save_IFS
10439 test -z "$ac_dir" && ac_dir=.
10440 $as_executable_p "$ac_dir/$ac_word" || continue
10441ac_cv_prog_LEX="$ac_prog"
10442echo "$as_me:10442: found $ac_dir/$ac_word" >&5
10443break
10444done
10445
10f2d63a
VZ
10446fi
10447fi
7b4a847f 10448LEX=$ac_cv_prog_LEX
10f2d63a 10449if test -n "$LEX"; then
7b4a847f
RR
10450 echo "$as_me:10450: result: $LEX" >&5
10451echo "${ECHO_T}$LEX" >&6
10f2d63a 10452else
7b4a847f
RR
10453 echo "$as_me:10453: result: no" >&5
10454echo "${ECHO_T}no" >&6
10f2d63a
VZ
10455fi
10456
7b4a847f
RR
10457 test -n "$LEX" && break
10458done
10459test -n "$LEX" || LEX=":"
10460
10f2d63a
VZ
10461if test -z "$LEXLIB"
10462then
7b4a847f
RR
10463 echo "$as_me:10463: checking for yywrap in -lfl" >&5
10464echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10465if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468 ac_check_lib_save_LIBS=$LIBS
10469LIBS="-lfl $LIBS"
10470cat >conftest.$ac_ext <<_ACEOF
10471#line 10471 "configure"
10f2d63a 10472#include "confdefs.h"
7b4a847f 10473
10f2d63a 10474/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
10475#ifdef __cplusplus
10476extern "C"
10477#endif
10f2d63a 10478/* We use char because int might match the return type of a gcc2
7b4a847f
RR
10479 builtin and then its argument prototype would still apply. */
10480char yywrap ();
10481int
10482main ()
10483{
10484yywrap ();
10485 ;
10486 return 0;
10487}
10488_ACEOF
10489rm -f conftest.$ac_objext conftest$ac_exeext
10490if { (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_lib_fl_yywrap=yes
10502else
10503 echo "$as_me: failed program was:" >&5
10504cat conftest.$ac_ext >&5
10505ac_cv_lib_fl_yywrap=no
10506fi
10507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10508LIBS=$ac_check_lib_save_LIBS
10509fi
10510echo "$as_me:10510: result: $ac_cv_lib_fl_yywrap" >&5
10511echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10512if test $ac_cv_lib_fl_yywrap = yes; then
10513 LEXLIB="-lfl"
10514else
10515 echo "$as_me:10515: checking for yywrap in -ll" >&5
10516echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10517if test "${ac_cv_lib_l_yywrap+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520 ac_check_lib_save_LIBS=$LIBS
10521LIBS="-ll $LIBS"
10522cat >conftest.$ac_ext <<_ACEOF
10523#line 10523 "configure"
10524#include "confdefs.h"
10f2d63a 10525
7b4a847f
RR
10526/* Override any gcc2 internal prototype to avoid an error. */
10527#ifdef __cplusplus
10528extern "C"
10529#endif
10530/* We use char because int might match the return type of a gcc2
10531 builtin and then its argument prototype would still apply. */
10532char yywrap ();
10533int
10534main ()
10535{
10536yywrap ();
10537 ;
10538 return 0;
10539}
10540_ACEOF
10541rm -f conftest.$ac_objext conftest$ac_exeext
10542if { (eval echo "$as_me:10542: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>&5
10544 ac_status=$?
10545 echo "$as_me:10545: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -s conftest$ac_exeext'
10548 { (eval echo "$as_me:10548: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:10551: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_cv_lib_l_yywrap=yes
10f2d63a 10554else
7b4a847f
RR
10555 echo "$as_me: failed program was:" >&5
10556cat conftest.$ac_ext >&5
10557ac_cv_lib_l_yywrap=no
10f2d63a 10558fi
7b4a847f
RR
10559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10560LIBS=$ac_check_lib_save_LIBS
10f2d63a 10561fi
7b4a847f
RR
10562echo "$as_me:10562: result: $ac_cv_lib_l_yywrap" >&5
10563echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10564if test $ac_cv_lib_l_yywrap = yes; then
10565 LEXLIB="-ll"
10f2d63a
VZ
10566fi
10567
10568fi
10569
7b4a847f 10570fi
10f2d63a 10571
7b4a847f
RR
10572if test "x$LEX" != "x:"; then
10573 echo "$as_me:10573: checking lex output file root" >&5
10574echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10575if test "${ac_cv_prog_lex_root+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10577else
7b4a847f
RR
10578 # The minimal lex program is just a single line: %%. But some broken lexes
10579# (Solaris, I think it was) want two %% lines, so accommodate them.
10580echo '%%
10581%%' | $LEX
10582if test -f lex.yy.c; then
10583 ac_cv_prog_lex_root=lex.yy
10584elif test -f lexyy.c; then
10585 ac_cv_prog_lex_root=lexyy
10f2d63a 10586else
7b4a847f
RR
10587 { { echo "$as_me:10587: error: cannot find output from $LEX; giving up" >&5
10588echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10589 { (exit 1); exit 1; }; }
10f2d63a
VZ
10590fi
10591fi
7b4a847f
RR
10592echo "$as_me:10592: result: $ac_cv_prog_lex_root" >&5
10593echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10594LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10595
10596echo "$as_me:10596: checking whether yytext is a pointer" >&5
10597echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10598if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10600else
7b4a847f
RR
10601 # POSIX says lex can declare yytext either as a pointer or an array; the
10602# default is implementation-dependent. Figure out which it is, since
10603# not all implementations provide the %pointer and %array declarations.
10604ac_cv_prog_lex_yytext_pointer=no
10605echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10606ac_save_LIBS=$LIBS
10607LIBS="$LIBS $LEXLIB"
10608cat >conftest.$ac_ext <<_ACEOF
10609`cat $LEX_OUTPUT_ROOT.c`
10610_ACEOF
10611rm -f conftest.$ac_objext conftest$ac_exeext
10612if { (eval echo "$as_me:10612: \"$ac_link\"") >&5
10613 (eval $ac_link) 2>&5
10614 ac_status=$?
10615 echo "$as_me:10615: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest$ac_exeext'
10618 { (eval echo "$as_me:10618: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:10621: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_prog_lex_yytext_pointer=yes
10624else
10625 echo "$as_me: failed program was:" >&5
10626cat conftest.$ac_ext >&5
10627fi
10628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10629LIBS=$ac_save_LIBS
10630rm -f "${LEX_OUTPUT_ROOT}.c"
10631
10632fi
10633echo "$as_me:10633: result: $ac_cv_prog_lex_yytext_pointer" >&5
10634echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10635if test $ac_cv_prog_lex_yytext_pointer = yes; then
10636
10637cat >>confdefs.h <<\EOF
10638#define YYTEXT_POINTER 1
10639EOF
10640
10f2d63a
VZ
10641fi
10642
7b4a847f 10643fi
10f2d63a 10644
7b4a847f
RR
10645echo "$as_me:10645: checking whether ln -s works" >&5
10646echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10647LN_S=$as_ln_s
10648if test "$LN_S" = "ln -s"; then
10649 echo "$as_me:10649: result: yes" >&5
10650echo "${ECHO_T}yes" >&6
10651else
10652 echo "$as_me:10652: result: no, using $LN_S" >&5
10653echo "${ECHO_T}no, using $LN_S" >&6
10654fi
10f2d63a 10655
21d1c967 10656if test "$wxUSE_MAC" != 1; then
7b4a847f
RR
10657
10658for ac_header in strings.h
21d1c967 10659do
7b4a847f
RR
10660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661echo "$as_me:10661: checking for $ac_header" >&5
10662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10663if eval "test \"\${$as_ac_Header+set}\" = set"; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666 cat >conftest.$ac_ext <<_ACEOF
10667#line 10667 "configure"
19bc6aad 10668#include "confdefs.h"
7b4a847f
RR
10669#include <$ac_header>
10670_ACEOF
10671if { (eval echo "$as_me:10671: \"$ac_cpp conftest.$ac_ext\"") >&5
10672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10673 ac_status=$?
10674 egrep -v '^ *\+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:10677: \$? = $ac_status" >&5
10678 (exit $ac_status); } >/dev/null; then
10679 if test -s conftest.err; then
10680 ac_cpp_err=$ac_c_preproc_warn_flag
10681 else
10682 ac_cpp_err=
10683 fi
19bc6aad 10684else
7b4a847f
RR
10685 ac_cpp_err=yes
10686fi
10687if test -z "$ac_cpp_err"; then
10688 eval "$as_ac_Header=yes"
10689else
10690 echo "$as_me: failed program was:" >&5
19bc6aad 10691 cat conftest.$ac_ext >&5
7b4a847f 10692 eval "$as_ac_Header=no"
19bc6aad 10693fi
7b4a847f 10694rm -f conftest.err conftest.$ac_ext
19bc6aad 10695fi
7b4a847f
RR
10696echo "$as_me:10696: result: `eval echo '${'$as_ac_Header'}'`" >&5
10697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10698if test `eval echo '${'$as_ac_Header'}'` = yes; then
10699 cat >>confdefs.h <<EOF
10700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19bc6aad 10701EOF
7b4a847f 10702
21d1c967
GD
10703fi
10704done
19bc6aad 10705
19bc6aad
VZ
10706fi
10707
7b4a847f 10708for ac_header in stdlib.h
21d1c967 10709do
7b4a847f
RR
10710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711echo "$as_me:10711: checking for $ac_header" >&5
10712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10713if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716 cat >conftest.$ac_ext <<_ACEOF
10717#line 10717 "configure"
18dbb1f6 10718#include "confdefs.h"
7b4a847f
RR
10719#include <$ac_header>
10720_ACEOF
10721if { (eval echo "$as_me:10721: \"$ac_cpp conftest.$ac_ext\"") >&5
10722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10723 ac_status=$?
10724 egrep -v '^ *\+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
10727 echo "$as_me:10727: \$? = $ac_status" >&5
10728 (exit $ac_status); } >/dev/null; then
10729 if test -s conftest.err; then
10730 ac_cpp_err=$ac_c_preproc_warn_flag
10731 else
10732 ac_cpp_err=
10733 fi
18dbb1f6 10734else
7b4a847f
RR
10735 ac_cpp_err=yes
10736fi
10737if test -z "$ac_cpp_err"; then
10738 eval "$as_ac_Header=yes"
10739else
10740 echo "$as_me: failed program was:" >&5
18dbb1f6 10741 cat conftest.$ac_ext >&5
7b4a847f 10742 eval "$as_ac_Header=no"
18dbb1f6 10743fi
7b4a847f 10744rm -f conftest.err conftest.$ac_ext
90dd450c 10745fi
7b4a847f
RR
10746echo "$as_me:10746: result: `eval echo '${'$as_ac_Header'}'`" >&5
10747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10748if test `eval echo '${'$as_ac_Header'}'` = yes; then
10749 cat >>confdefs.h <<EOF
10750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90dd450c 10751EOF
7b4a847f 10752
21d1c967
GD
10753fi
10754done
90dd450c 10755
7b4a847f 10756for ac_header in malloc.h
21d1c967 10757do
7b4a847f
RR
10758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10759echo "$as_me:10759: checking for $ac_header" >&5
10760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10761if eval "test \"\${$as_ac_Header+set}\" = set"; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763else
10764 cat >conftest.$ac_ext <<_ACEOF
10765#line 10765 "configure"
90dd450c 10766#include "confdefs.h"
7b4a847f
RR
10767#include <$ac_header>
10768_ACEOF
10769if { (eval echo "$as_me:10769: \"$ac_cpp conftest.$ac_ext\"") >&5
10770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10771 ac_status=$?
10772 egrep -v '^ *\+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:10775: \$? = $ac_status" >&5
10776 (exit $ac_status); } >/dev/null; then
10777 if test -s conftest.err; then
10778 ac_cpp_err=$ac_c_preproc_warn_flag
10779 else
10780 ac_cpp_err=
10781 fi
18dbb1f6 10782else
7b4a847f
RR
10783 ac_cpp_err=yes
10784fi
10785if test -z "$ac_cpp_err"; then
10786 eval "$as_ac_Header=yes"
10787else
10788 echo "$as_me: failed program was:" >&5
18dbb1f6 10789 cat conftest.$ac_ext >&5
7b4a847f 10790 eval "$as_ac_Header=no"
18dbb1f6 10791fi
7b4a847f 10792rm -f conftest.err conftest.$ac_ext
18dbb1f6 10793fi
7b4a847f
RR
10794echo "$as_me:10794: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10796if test `eval echo '${'$as_ac_Header'}'` = yes; then
10797 cat >>confdefs.h <<EOF
10798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4f14bcd8 10799EOF
7b4a847f 10800
21d1c967
GD
10801fi
10802done
dad6c0ea 10803
7b4a847f 10804for ac_header in unistd.h
21d1c967 10805do
7b4a847f
RR
10806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10807echo "$as_me:10807: checking for $ac_header" >&5
10808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10809if eval "test \"\${$as_ac_Header+set}\" = set"; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811else
10812 cat >conftest.$ac_ext <<_ACEOF
10813#line 10813 "configure"
3a922bb4 10814#include "confdefs.h"
7b4a847f
RR
10815#include <$ac_header>
10816_ACEOF
10817if { (eval echo "$as_me:10817: \"$ac_cpp conftest.$ac_ext\"") >&5
10818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10819 ac_status=$?
10820 egrep -v '^ *\+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:10823: \$? = $ac_status" >&5
10824 (exit $ac_status); } >/dev/null; then
10825 if test -s conftest.err; then
10826 ac_cpp_err=$ac_c_preproc_warn_flag
10827 else
10828 ac_cpp_err=
10829 fi
328a083c 10830else
7b4a847f
RR
10831 ac_cpp_err=yes
10832fi
10833if test -z "$ac_cpp_err"; then
10834 eval "$as_ac_Header=yes"
10835else
10836 echo "$as_me: failed program was:" >&5
3a922bb4 10837 cat conftest.$ac_ext >&5
7b4a847f 10838 eval "$as_ac_Header=no"
3a922bb4 10839fi
7b4a847f 10840rm -f conftest.err conftest.$ac_ext
90dd450c 10841fi
7b4a847f
RR
10842echo "$as_me:10842: result: `eval echo '${'$as_ac_Header'}'`" >&5
10843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10844if test `eval echo '${'$as_ac_Header'}'` = yes; then
10845 cat >>confdefs.h <<EOF
10846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90dd450c 10847EOF
7b4a847f 10848
21d1c967
GD
10849fi
10850done
90dd450c 10851
7b4a847f 10852for ac_header in wchar.h
21d1c967 10853do
7b4a847f
RR
10854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10855echo "$as_me:10855: checking for $ac_header" >&5
10856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10857if eval "test \"\${$as_ac_Header+set}\" = set"; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859else
10860 cat >conftest.$ac_ext <<_ACEOF
10861#line 10861 "configure"
4f14bcd8 10862#include "confdefs.h"
7b4a847f
RR
10863#include <$ac_header>
10864_ACEOF
10865if { (eval echo "$as_me:10865: \"$ac_cpp conftest.$ac_ext\"") >&5
10866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10867 ac_status=$?
10868 egrep -v '^ *\+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:10871: \$? = $ac_status" >&5
10872 (exit $ac_status); } >/dev/null; then
10873 if test -s conftest.err; then
10874 ac_cpp_err=$ac_c_preproc_warn_flag
10875 else
10876 ac_cpp_err=
10877 fi
328a083c 10878else
7b4a847f
RR
10879 ac_cpp_err=yes
10880fi
10881if test -z "$ac_cpp_err"; then
10882 eval "$as_ac_Header=yes"
10883else
10884 echo "$as_me: failed program was:" >&5
4f14bcd8 10885 cat conftest.$ac_ext >&5
7b4a847f 10886 eval "$as_ac_Header=no"
3a922bb4 10887fi
7b4a847f 10888rm -f conftest.err conftest.$ac_ext
4f14bcd8 10889fi
7b4a847f
RR
10890echo "$as_me:10890: result: `eval echo '${'$as_ac_Header'}'`" >&5
10891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10892if test `eval echo '${'$as_ac_Header'}'` = yes; then
10893 cat >>confdefs.h <<EOF
10894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4f14bcd8 10895EOF
7b4a847f 10896
21d1c967
GD
10897fi
10898done
4f14bcd8 10899
579d8138 10900if test "$ac_cv_header_wchar_h" != "yes"; then
7b4a847f
RR
10901
10902for ac_header in wcstr.h
21d1c967 10903do
7b4a847f
RR
10904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10905echo "$as_me:10905: checking for $ac_header" >&5
10906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10907if eval "test \"\${$as_ac_Header+set}\" = set"; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909else
10910 cat >conftest.$ac_ext <<_ACEOF
10911#line 10911 "configure"
d4158b5d 10912#include "confdefs.h"
7b4a847f
RR
10913#include <$ac_header>
10914_ACEOF
10915if { (eval echo "$as_me:10915: \"$ac_cpp conftest.$ac_ext\"") >&5
10916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10917 ac_status=$?
10918 egrep -v '^ *\+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:10921: \$? = $ac_status" >&5
10922 (exit $ac_status); } >/dev/null; then
10923 if test -s conftest.err; then
10924 ac_cpp_err=$ac_c_preproc_warn_flag
10925 else
10926 ac_cpp_err=
10927 fi
10928else
10929 ac_cpp_err=yes
10930fi
10931if test -z "$ac_cpp_err"; then
10932 eval "$as_ac_Header=yes"
d4158b5d 10933else
7b4a847f 10934 echo "$as_me: failed program was:" >&5
d4158b5d 10935 cat conftest.$ac_ext >&5
7b4a847f 10936 eval "$as_ac_Header=no"
d4158b5d 10937fi
7b4a847f 10938rm -f conftest.err conftest.$ac_ext
21d1c967 10939fi
7b4a847f
RR
10940echo "$as_me:10940: result: `eval echo '${'$as_ac_Header'}'`" >&5
10941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10942if test `eval echo '${'$as_ac_Header'}'` = yes; then
10943 cat >>confdefs.h <<EOF
10944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21d1c967 10945EOF
7b4a847f 10946
d4158b5d 10947fi
21d1c967 10948done
f6bcfd97 10949
90dd450c 10950fi
90dd450c 10951
7b4a847f 10952for ac_header in fnmatch.h
21d1c967 10953do
7b4a847f
RR
10954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10955echo "$as_me:10955: checking for $ac_header" >&5
10956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10957if eval "test \"\${$as_ac_Header+set}\" = set"; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960 cat >conftest.$ac_ext <<_ACEOF
10961#line 10961 "configure"
90dd450c 10962#include "confdefs.h"
7b4a847f
RR
10963#include <$ac_header>
10964_ACEOF
10965if { (eval echo "$as_me:10965: \"$ac_cpp conftest.$ac_ext\"") >&5
10966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10967 ac_status=$?
10968 egrep -v '^ *\+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:10971: \$? = $ac_status" >&5
10972 (exit $ac_status); } >/dev/null; then
10973 if test -s conftest.err; then
10974 ac_cpp_err=$ac_c_preproc_warn_flag
10975 else
10976 ac_cpp_err=
10977 fi
10978else
10979 ac_cpp_err=yes
10980fi
10981if test -z "$ac_cpp_err"; then
10982 eval "$as_ac_Header=yes"
3a922bb4 10983else
7b4a847f 10984 echo "$as_me: failed program was:" >&5
3a922bb4 10985 cat conftest.$ac_ext >&5
7b4a847f 10986 eval "$as_ac_Header=no"
3a922bb4 10987fi
7b4a847f 10988rm -f conftest.err conftest.$ac_ext
4f14bcd8 10989fi
7b4a847f
RR
10990echo "$as_me:10990: result: `eval echo '${'$as_ac_Header'}'`" >&5
10991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10992if test `eval echo '${'$as_ac_Header'}'` = yes; then
10993 cat >>confdefs.h <<EOF
10994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90dd450c 10995EOF
7b4a847f 10996
21d1c967
GD
10997fi
10998done
90dd450c 10999
579d8138 11000if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
7b4a847f
RR
11001
11002for ac_func in fnmatch
21d1c967 11003do
7b4a847f
RR
11004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005echo "$as_me:11005: checking for $ac_func" >&5
11006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11007if eval "test \"\${$as_ac_var+set}\" = set"; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009else
11010 cat >conftest.$ac_ext <<_ACEOF
11011#line 11011 "configure"
90dd450c 11012#include "confdefs.h"
21d1c967 11013/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 11014 which can conflict with char $ac_func (); below. */
21d1c967
GD
11015#include <assert.h>
11016/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
11017#ifdef __cplusplus
11018extern "C"
11019#endif
21d1c967 11020/* We use char because int might match the return type of a gcc2
7b4a847f
RR
11021 builtin and then its argument prototype would still apply. */
11022char $ac_func ();
11023char (*f) ();
21d1c967 11024
7b4a847f
RR
11025int
11026main ()
11027{
21d1c967
GD
11028/* The GNU C library defines this for functions which it implements
11029 to always fail with ENOSYS. Some functions are actually named
11030 something starting with __ and the normal name is an alias. */
11031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11032choke me
11033#else
7b4a847f 11034f = $ac_func;
21d1c967
GD
11035#endif
11036
7b4a847f
RR
11037 ;
11038 return 0;
11039}
11040_ACEOF
11041rm -f conftest.$ac_objext conftest$ac_exeext
11042if { (eval echo "$as_me:11042: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>&5
11044 ac_status=$?
11045 echo "$as_me:11045: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (eval echo "$as_me:11048: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:11051: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 eval "$as_ac_var=yes"
11054else
11055 echo "$as_me: failed program was:" >&5
11056cat conftest.$ac_ext >&5
11057eval "$as_ac_var=no"
11058fi
11059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11060fi
11061echo "$as_me:11061: result: `eval echo '${'$as_ac_var'}'`" >&5
11062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11063if test `eval echo '${'$as_ac_var'}'` = yes; then
11064 cat >>confdefs.h <<EOF
11065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
90dd450c 11066EOF
32832908 11067
21d1c967
GD
11068fi
11069done
90dd450c 11070
21d1c967 11071fi
90dd450c 11072
7b4a847f 11073for ac_header in langinfo.h
21d1c967 11074do
7b4a847f
RR
11075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11076echo "$as_me:11076: checking for $ac_header" >&5
11077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11078if eval "test \"\${$as_ac_Header+set}\" = set"; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080else
11081 cat >conftest.$ac_ext <<_ACEOF
11082#line 11082 "configure"
90dd450c 11083#include "confdefs.h"
7b4a847f
RR
11084#include <$ac_header>
11085_ACEOF
11086if { (eval echo "$as_me:11086: \"$ac_cpp conftest.$ac_ext\"") >&5
11087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11088 ac_status=$?
11089 egrep -v '^ *\+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:11092: \$? = $ac_status" >&5
11093 (exit $ac_status); } >/dev/null; then
11094 if test -s conftest.err; then
11095 ac_cpp_err=$ac_c_preproc_warn_flag
11096 else
11097 ac_cpp_err=
11098 fi
90dd450c 11099else
7b4a847f
RR
11100 ac_cpp_err=yes
11101fi
11102if test -z "$ac_cpp_err"; then
11103 eval "$as_ac_Header=yes"
11104else
11105 echo "$as_me: failed program was:" >&5
90dd450c 11106 cat conftest.$ac_ext >&5
7b4a847f 11107 eval "$as_ac_Header=no"
90dd450c 11108fi
7b4a847f 11109rm -f conftest.err conftest.$ac_ext
4f14bcd8 11110fi
7b4a847f
RR
11111echo "$as_me:11111: result: `eval echo '${'$as_ac_Header'}'`" >&5
11112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11113if test `eval echo '${'$as_ac_Header'}'` = yes; then
11114 cat >>confdefs.h <<EOF
11115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90dd450c 11116EOF
7b4a847f 11117
21d1c967
GD
11118fi
11119done
3a922bb4 11120
21d1c967
GD
11121if test "$wxUSE_GUI" = "yes"; then
11122 if test "$wxUSE_UNIX" = "yes"; then
7b4a847f
RR
11123
11124for ac_header in X11/XKBlib.h
21d1c967 11125do
7b4a847f
RR
11126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127echo "$as_me:11127: checking for $ac_header" >&5
11128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11129if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131else
11132 cat >conftest.$ac_ext <<_ACEOF
11133#line 11133 "configure"
90dd450c 11134#include "confdefs.h"
7b4a847f
RR
11135#include <$ac_header>
11136_ACEOF
11137if { (eval echo "$as_me:11137: \"$ac_cpp conftest.$ac_ext\"") >&5
11138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11139 ac_status=$?
11140 egrep -v '^ *\+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:11143: \$? = $ac_status" >&5
11144 (exit $ac_status); } >/dev/null; then
11145 if test -s conftest.err; then
11146 ac_cpp_err=$ac_c_preproc_warn_flag
11147 else
11148 ac_cpp_err=
11149 fi
11150else
11151 ac_cpp_err=yes
11152fi
11153if test -z "$ac_cpp_err"; then
11154 eval "$as_ac_Header=yes"
328a083c 11155else
7b4a847f 11156 echo "$as_me: failed program was:" >&5
90dd450c 11157 cat conftest.$ac_ext >&5
7b4a847f 11158 eval "$as_ac_Header=no"
3a922bb4 11159fi
7b4a847f 11160rm -f conftest.err conftest.$ac_ext
90dd450c 11161fi
7b4a847f
RR
11162echo "$as_me:11162: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164if test `eval echo '${'$as_ac_Header'}'` = yes; then
11165 cat >>confdefs.h <<EOF
11166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4f14bcd8 11167EOF
7b4a847f 11168
21d1c967
GD
11169fi
11170done
10f2d63a 11171
21d1c967 11172 fi
90dd450c 11173fi
81809c07 11174
7b4a847f
RR
11175echo "$as_me:11175: checking for $CC option to accept ANSI C" >&5
11176echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11177if test "${ac_cv_prog_cc_stdc+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 11179else
7b4a847f
RR
11180 ac_cv_prog_cc_stdc=no
11181ac_save_CC=$CC
11182cat >conftest.$ac_ext <<_ACEOF
11183#line 11183 "configure"
4f14bcd8 11184#include "confdefs.h"
7b4a847f
RR
11185#include <stdarg.h>
11186#include <stdio.h>
11187#include <sys/types.h>
11188#include <sys/stat.h>
11189/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11190struct buf { int x; };
11191FILE * (*rcsopen) (struct buf *, struct stat *, int);
11192static char *e (p, i)
11193 char **p;
11194 int i;
11195{
11196 return p[i];
21d1c967 11197}
7b4a847f
RR
11198static char *f (char * (*g) (char **, int), char **p, ...)
11199{
11200 char *s;
11201 va_list v;
11202 va_start (v,p);
11203 s = g (p, va_arg (v,int));
11204 va_end (v);
11205 return s;
579d8138 11206}
7b4a847f
RR
11207int test (int i, double x);
11208struct s1 {int (*f) (int a);};
11209struct s2 {int (*f) (double a);};
11210int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11211int argc;
11212char **argv;
11213int
11214main ()
11215{
11216return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11217 ;
11218 return 0;
328a083c 11219}
7b4a847f
RR
11220_ACEOF
11221# Don't try gcc -ansi; that turns off useful extensions and
11222# breaks some systems' header files.
11223# AIX -qlanglvl=ansi
11224# Ultrix and OSF/1 -std1
11225# HP-UX 10.20 and later -Ae
11226# HP-UX older versions -Aa -D_HPUX_SOURCE
11227# SVR4 -Xc -D__EXTENSIONS__
11228for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11229do
11230 CC="$ac_save_CC $ac_arg"
11231 rm -f conftest.$ac_objext
11232if { (eval echo "$as_me:11232: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>&5
11234 ac_status=$?
11235 echo "$as_me:11235: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:11238: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:11241: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_prog_cc_stdc=$ac_arg
11244break
11245else
11246 echo "$as_me: failed program was:" >&5
11247cat conftest.$ac_ext >&5
11248fi
11249rm -f conftest.$ac_objext
11250done
11251rm -f conftest.$ac_ext conftest.$ac_objext
11252CC=$ac_save_CC
579d8138 11253
7b4a847f
RR
11254fi
11255
11256case "x$ac_cv_prog_cc_stdc" in
11257 x|xno)
11258 echo "$as_me:11258: result: none needed" >&5
11259echo "${ECHO_T}none needed" >&6 ;;
11260 *)
11261 echo "$as_me:11261: result: $ac_cv_prog_cc_stdc" >&5
11262echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11263 CC="$CC $ac_cv_prog_cc_stdc" ;;
11264esac
11265
11266echo "$as_me:11266: checking for an ANSI C-conforming const" >&5
11267echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11268if test "${ac_cv_c_const+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271 cat >conftest.$ac_ext <<_ACEOF
11272#line 11272 "configure"
11273#include "confdefs.h"
11274
11275int
11276main ()
11277{
11278/* FIXME: Include the comments suggested by Paul. */
11279#ifndef __cplusplus
11280 /* Ultrix mips cc rejects this. */
11281 typedef int charset[2];
11282 const charset x;
11283 /* SunOS 4.1.1 cc rejects this. */
11284 char const *const *ccp;
11285 char **p;
11286 /* NEC SVR4.0.2 mips cc rejects this. */
11287 struct point {int x, y;};
11288 static struct point const zero = {0,0};
11289 /* AIX XL C 1.02.0.0 rejects this.
11290 It does not let you subtract one const X* pointer from another in
11291 an arm of an if-expression whose if-part is not a constant
11292 expression */
11293 const char *g = "string";
11294 ccp = &g + (g ? g-g : 0);
11295 /* HPUX 7.0 cc rejects these. */
11296 ++ccp;
11297 p = (char**) ccp;
11298 ccp = (char const *const *) p;
11299 { /* SCO 3.2v4 cc rejects this. */
11300 char *t;
11301 char const *s = 0 ? (char *) 0 : (char const *) 0;
11302
11303 *t++ = 0;
11304 }
11305 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11306 int x[] = {25, 17};
11307 const int *foo = &x[0];
11308 ++foo;
11309 }
11310 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11311 typedef const int *iptr;
11312 iptr p = 0;
11313 ++p;
11314 }
11315 { /* AIX XL C 1.02.0.0 rejects this saying
11316 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11317 struct s { int j; const int *ap[3]; };
11318 struct s *b; b->j = 5;
11319 }
11320 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11321 const int foo = 10;
11322 }
11323#endif
11324
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (eval echo "$as_me:11330: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>&5
11332 ac_status=$?
11333 echo "$as_me:11333: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -s conftest.$ac_objext'
11336 { (eval echo "$as_me:11336: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:11339: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
21d1c967 11341 ac_cv_c_const=yes
6f72b082 11342else
7b4a847f
RR
11343 echo "$as_me: failed program was:" >&5
11344cat conftest.$ac_ext >&5
11345ac_cv_c_const=no
4f14bcd8 11346fi
7b4a847f 11347rm -f conftest.$ac_objext conftest.$ac_ext
698dcdb6 11348fi
7b4a847f
RR
11349echo "$as_me:11349: result: $ac_cv_c_const" >&5
11350echo "${ECHO_T}$ac_cv_c_const" >&6
579d8138 11351if test $ac_cv_c_const = no; then
7b4a847f
RR
11352
11353cat >>confdefs.h <<\EOF
11354#define const
90dd450c
VZ
11355EOF
11356
21d1c967 11357fi
90dd450c 11358
7b4a847f
RR
11359echo "$as_me:11359: checking for inline" >&5
11360echo $ECHO_N "checking for inline... $ECHO_C" >&6
11361if test "${ac_cv_c_inline+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
6f72b082 11363else
21d1c967
GD
11364 ac_cv_c_inline=no
11365for ac_kw in inline __inline__ __inline; do
7b4a847f
RR
11366 cat >conftest.$ac_ext <<_ACEOF
11367#line 11367 "configure"
4f14bcd8 11368#include "confdefs.h"
7b4a847f
RR
11369#ifndef __cplusplus
11370static $ac_kw int static_foo () {return 0; }
11371$ac_kw int foo () {return 0; }
11372#endif
90dd450c 11373
7b4a847f
RR
11374_ACEOF
11375rm -f conftest.$ac_objext
11376if { (eval echo "$as_me:11376: \"$ac_compile\"") >&5
11377 (eval $ac_compile) 2>&5
11378 ac_status=$?
11379 echo "$as_me:11379: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -s conftest.$ac_objext'
11382 { (eval echo "$as_me:11382: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 echo "$as_me:11385: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
21d1c967 11387 ac_cv_c_inline=$ac_kw; break
6f72b082 11388else
7b4a847f
RR
11389 echo "$as_me: failed program was:" >&5
11390cat conftest.$ac_ext >&5
698dcdb6 11391fi
7b4a847f 11392rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 11393done
4f14bcd8 11394
21d1c967 11395fi
7b4a847f
RR
11396echo "$as_me:11396: result: $ac_cv_c_inline" >&5
11397echo "${ECHO_T}$ac_cv_c_inline" >&6
11398case $ac_cv_c_inline in
21d1c967 11399 inline | yes) ;;
7b4a847f
RR
11400 no)
11401cat >>confdefs.h <<\EOF
11402#define inline
90dd450c 11403EOF
21d1c967 11404 ;;
7b4a847f 11405 *) cat >>confdefs.h <<EOF
21d1c967 11406#define inline $ac_cv_c_inline
4f14bcd8 11407EOF
21d1c967
GD
11408 ;;
11409esac
4f14bcd8 11410
7b4a847f
RR
11411echo "$as_me:11411: checking for ANSI C header files" >&5
11412echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11413if test "${ac_cv_header_stdc+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 11415else
7b4a847f
RR
11416 cat >conftest.$ac_ext <<_ACEOF
11417#line 11417 "configure"
328a083c 11418#include "confdefs.h"
7b4a847f
RR
11419#include <stdlib.h>
11420#include <stdarg.h>
11421#include <string.h>
11422#include <float.h>
11423
11424_ACEOF
11425if { (eval echo "$as_me:11425: \"$ac_cpp conftest.$ac_ext\"") >&5
11426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11427 ac_status=$?
11428 egrep -v '^ *\+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:11431: \$? = $ac_status" >&5
11432 (exit $ac_status); } >/dev/null; then
11433 if test -s conftest.err; then
11434 ac_cpp_err=$ac_c_preproc_warn_flag
11435 else
11436 ac_cpp_err=
11437 fi
328a083c 11438else
7b4a847f 11439 ac_cpp_err=yes
579d8138 11440fi
7b4a847f
RR
11441if test -z "$ac_cpp_err"; then
11442 ac_cv_header_stdc=yes
11443else
11444 echo "$as_me: failed program was:" >&5
11445 cat conftest.$ac_ext >&5
11446 ac_cv_header_stdc=no
328a083c 11447fi
7b4a847f
RR
11448rm -f conftest.err conftest.$ac_ext
11449
11450if test $ac_cv_header_stdc = yes; then
11451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11452 cat >conftest.$ac_ext <<_ACEOF
11453#line 11453 "configure"
11454#include "confdefs.h"
11455#include <string.h>
328a083c 11456
7b4a847f
RR
11457_ACEOF
11458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11459 egrep "memchr" >/dev/null 2>&1; then
11460 :
11461else
11462 ac_cv_header_stdc=no
328a083c 11463fi
7b4a847f 11464rm -f conftest*
328a083c 11465
7b4a847f 11466fi
328a083c 11467
7b4a847f
RR
11468if test $ac_cv_header_stdc = yes; then
11469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11470 cat >conftest.$ac_ext <<_ACEOF
11471#line 11471 "configure"
11472#include "confdefs.h"
11473#include <stdlib.h>
11474
11475_ACEOF
11476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11477 egrep "free" >/dev/null 2>&1; then
11478 :
11479else
11480 ac_cv_header_stdc=no
11481fi
11482rm -f conftest*
11483
11484fi
11485
11486if test $ac_cv_header_stdc = yes; then
11487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21d1c967 11488 if test "$cross_compiling" = yes; then
7b4a847f 11489 :
21d1c967 11490else
7b4a847f
RR
11491 cat >conftest.$ac_ext <<_ACEOF
11492#line 11492 "configure"
21d1c967 11493#include "confdefs.h"
7b4a847f
RR
11494#include <ctype.h>
11495#if ((' ' & 0x0FF) == 0x020)
11496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11498#else
11499# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11500 || ('j' <= (c) && (c) <= 'r') \
11501 || ('s' <= (c) && (c) <= 'z'))
11502# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11503#endif
11504
11505#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11506int
11507main ()
21d1c967 11508{
7b4a847f
RR
11509 int i;
11510 for (i = 0; i < 256; i++)
11511 if (XOR (islower (i), ISLOWER (i))
11512 || toupper (i) != TOUPPER (i))
11513 exit(2);
11514 exit (0);
21d1c967 11515}
7b4a847f
RR
11516_ACEOF
11517rm -f conftest$ac_exeext
11518if { (eval echo "$as_me:11518: \"$ac_link\"") >&5
11519 (eval $ac_link) 2>&5
11520 ac_status=$?
11521 echo "$as_me:11521: \$? = $ac_status" >&5
11522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11523 { (eval echo "$as_me:11523: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:11526: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 :
21d1c967 11529else
7b4a847f
RR
11530 echo "$as_me: program exited with status $ac_status" >&5
11531echo "$as_me: failed program was:" >&5
11532cat conftest.$ac_ext >&5
11533ac_cv_header_stdc=no
21d1c967 11534fi
7b4a847f 11535rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 11536fi
7b4a847f
RR
11537fi
11538fi
11539echo "$as_me:11539: result: $ac_cv_header_stdc" >&5
11540echo "${ECHO_T}$ac_cv_header_stdc" >&6
11541if test $ac_cv_header_stdc = yes; then
11542
11543cat >>confdefs.h <<\EOF
11544#define STDC_HEADERS 1
11545EOF
4f14bcd8 11546
4f14bcd8 11547fi
7b4a847f
RR
11548
11549# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11550
11551for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11552 inttypes.h stdint.h unistd.h
11553do
11554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11555echo "$as_me:11555: checking for $ac_header" >&5
11556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11557if eval "test \"\${$as_ac_Header+set}\" = set"; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559else
11560 cat >conftest.$ac_ext <<_ACEOF
11561#line 11561 "configure"
11562#include "confdefs.h"
11563$ac_includes_default
11564#include <$ac_header>
11565_ACEOF
11566rm -f conftest.$ac_objext
11567if { (eval echo "$as_me:11567: \"$ac_compile\"") >&5
11568 (eval $ac_compile) 2>&5
11569 ac_status=$?
11570 echo "$as_me:11570: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:11573: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11575 ac_status=$?
11576 echo "$as_me:11576: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 eval "$as_ac_Header=yes"
11579else
11580 echo "$as_me: failed program was:" >&5
11581cat conftest.$ac_ext >&5
11582eval "$as_ac_Header=no"
11583fi
11584rm -f conftest.$ac_objext conftest.$ac_ext
11585fi
11586echo "$as_me:11586: result: `eval echo '${'$as_ac_Header'}'`" >&5
11587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11588if test `eval echo '${'$as_ac_Header'}'` = yes; then
11589 cat >>confdefs.h <<EOF
11590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21d1c967 11591EOF
4f14bcd8 11592
7b4a847f
RR
11593fi
11594done
4f14bcd8 11595
7b4a847f
RR
11596echo "$as_me:11596: checking for char" >&5
11597echo $ECHO_N "checking for char... $ECHO_C" >&6
11598if test "${ac_cv_type_char+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11600else
7b4a847f
RR
11601 cat >conftest.$ac_ext <<_ACEOF
11602#line 11602 "configure"
11603#include "confdefs.h"
11604$ac_includes_default
11605int
11606main ()
11607{
11608if ((char *) 0)
11609 return 0;
11610if (sizeof (char))
11611 return 0;
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616rm -f conftest.$ac_objext
11617if { (eval echo "$as_me:11617: \"$ac_compile\"") >&5
11618 (eval $ac_compile) 2>&5
11619 ac_status=$?
11620 echo "$as_me:11620: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -s conftest.$ac_objext'
11623 { (eval echo "$as_me:11623: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11625 ac_status=$?
11626 echo "$as_me:11626: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 ac_cv_type_char=yes
11629else
11630 echo "$as_me: failed program was:" >&5
11631cat conftest.$ac_ext >&5
11632ac_cv_type_char=no
11633fi
11634rm -f conftest.$ac_objext conftest.$ac_ext
11635fi
11636echo "$as_me:11636: result: $ac_cv_type_char" >&5
11637echo "${ECHO_T}$ac_cv_type_char" >&6
11638
11639echo "$as_me:11639: checking size of char" >&5
11640echo $ECHO_N "checking size of char... $ECHO_C" >&6
11641if test "${ac_cv_sizeof_char+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 if test "$ac_cv_type_char" = yes; then
328a083c 11645 if test "$cross_compiling" = yes; then
7b4a847f
RR
11646 # Depending upon the size, compute the lo and hi bounds.
11647cat >conftest.$ac_ext <<_ACEOF
11648#line 11648 "configure"
11649#include "confdefs.h"
11650$ac_includes_default
11651int
11652main ()
11653{
11654int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
11655 ;
11656 return 0;
11657}
11658_ACEOF
11659rm -f conftest.$ac_objext
11660if { (eval echo "$as_me:11660: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>&5
11662 ac_status=$?
11663 echo "$as_me:11663: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -s conftest.$ac_objext'
11666 { (eval echo "$as_me:11666: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:11669: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 ac_lo=0 ac_mid=0
11672 while :; do
11673 cat >conftest.$ac_ext <<_ACEOF
11674#line 11674 "configure"
11675#include "confdefs.h"
11676$ac_includes_default
11677int
11678main ()
11679{
11680int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
11681 ;
11682 return 0;
11683}
11684_ACEOF
11685rm -f conftest.$ac_objext
11686if { (eval echo "$as_me:11686: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>&5
11688 ac_status=$?
11689 echo "$as_me:11689: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:11692: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:11695: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_hi=$ac_mid; break
11698else
11699 echo "$as_me: failed program was:" >&5
11700cat conftest.$ac_ext >&5
11701ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11702fi
11703rm -f conftest.$ac_objext conftest.$ac_ext
11704 done
328a083c 11705else
7b4a847f
RR
11706 echo "$as_me: failed program was:" >&5
11707cat conftest.$ac_ext >&5
11708ac_hi=-1 ac_mid=-1
11709 while :; do
11710 cat >conftest.$ac_ext <<_ACEOF
11711#line 11711 "configure"
328a083c 11712#include "confdefs.h"
7b4a847f
RR
11713$ac_includes_default
11714int
11715main ()
11716{
11717int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
11718 ;
11719 return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext
11723if { (eval echo "$as_me:11723: \"$ac_compile\"") >&5
11724 (eval $ac_compile) 2>&5
11725 ac_status=$?
11726 echo "$as_me:11726: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -s conftest.$ac_objext'
11729 { (eval echo "$as_me:11729: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:11732: \$? = $ac_status" >&5
11733 (exit $ac_status); }; }; then
11734 ac_lo=$ac_mid; break
11735else
11736 echo "$as_me: failed program was:" >&5
11737cat conftest.$ac_ext >&5
11738ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11739fi
11740rm -f conftest.$ac_objext conftest.$ac_ext
11741 done
11742fi
11743rm -f conftest.$ac_objext conftest.$ac_ext
11744# Binary search between lo and hi bounds.
11745while test "x$ac_lo" != "x$ac_hi"; do
11746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11747 cat >conftest.$ac_ext <<_ACEOF
11748#line 11748 "configure"
11749#include "confdefs.h"
11750$ac_includes_default
11751int
11752main ()
11753{
11754int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
11755 ;
11756 return 0;
11757}
11758_ACEOF
11759rm -f conftest.$ac_objext
11760if { (eval echo "$as_me:11760: \"$ac_compile\"") >&5
11761 (eval $ac_compile) 2>&5
11762 ac_status=$?
11763 echo "$as_me:11763: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:11766: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:11769: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_hi=$ac_mid
11772else
11773 echo "$as_me: failed program was:" >&5
11774cat conftest.$ac_ext >&5
11775ac_lo=`expr $ac_mid + 1`
11776fi
11777rm -f conftest.$ac_objext conftest.$ac_ext
11778done
11779ac_cv_sizeof_char=$ac_lo
11780else
11781 if test "$cross_compiling" = yes; then
11782 { { echo "$as_me:11782: error: cannot run test program while cross compiling" >&5
11783echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11784 { (exit 1); exit 1; }; }
11785else
11786 cat >conftest.$ac_ext <<_ACEOF
11787#line 11787 "configure"
11788#include "confdefs.h"
11789$ac_includes_default
11790int
11791main ()
21d1c967 11792{
7b4a847f
RR
11793FILE *f = fopen ("conftest.val", "w");
11794if (!f)
11795 exit (1);
11796fprintf (f, "%d", (sizeof (char)));
11797fclose (f);
11798 ;
11799 return 0;
21d1c967 11800}
7b4a847f
RR
11801_ACEOF
11802rm -f conftest$ac_exeext
11803if { (eval echo "$as_me:11803: \"$ac_link\"") >&5
11804 (eval $ac_link) 2>&5
11805 ac_status=$?
11806 echo "$as_me:11806: \$? = $ac_status" >&5
11807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11808 { (eval echo "$as_me:11808: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:11811: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_cv_sizeof_char=`cat conftest.val`
11814else
11815 echo "$as_me: program exited with status $ac_status" >&5
11816echo "$as_me: failed program was:" >&5
11817cat conftest.$ac_ext >&5
11818fi
11819rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11820fi
11821fi
11822rm -f conftest.val
11823else
11824 ac_cv_sizeof_char=0
11825fi
11826fi
11827echo "$as_me:11827: result: $ac_cv_sizeof_char" >&5
11828echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11829cat >>confdefs.h <<EOF
11830#define SIZEOF_CHAR $ac_cv_sizeof_char
4f14bcd8 11831EOF
7b4a847f
RR
11832
11833echo "$as_me:11833: checking for short" >&5
11834echo $ECHO_N "checking for short... $ECHO_C" >&6
11835if test "${ac_cv_type_short+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11837else
7b4a847f
RR
11838 cat >conftest.$ac_ext <<_ACEOF
11839#line 11839 "configure"
11840#include "confdefs.h"
11841$ac_includes_default
11842int
11843main ()
11844{
11845if ((short *) 0)
11846 return 0;
11847if (sizeof (short))
11848 return 0;
11849 ;
11850 return 0;
11851}
11852_ACEOF
11853rm -f conftest.$ac_objext
11854if { (eval echo "$as_me:11854: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>&5
11856 ac_status=$?
11857 echo "$as_me:11857: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:11860: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:11863: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_type_short=yes
11866else
11867 echo "$as_me: failed program was:" >&5
11868cat conftest.$ac_ext >&5
11869ac_cv_type_short=no
11870fi
11871rm -f conftest.$ac_objext conftest.$ac_ext
11872fi
11873echo "$as_me:11873: result: $ac_cv_type_short" >&5
11874echo "${ECHO_T}$ac_cv_type_short" >&6
11875
11876echo "$as_me:11876: checking size of short" >&5
11877echo $ECHO_N "checking size of short... $ECHO_C" >&6
11878if test "${ac_cv_sizeof_short+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 if test "$ac_cv_type_short" = yes; then
11882 if test "$cross_compiling" = yes; then
11883 # Depending upon the size, compute the lo and hi bounds.
11884cat >conftest.$ac_ext <<_ACEOF
11885#line 11885 "configure"
11886#include "confdefs.h"
11887$ac_includes_default
11888int
11889main ()
11890{
11891int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
11892 ;
11893 return 0;
11894}
11895_ACEOF
11896rm -f conftest.$ac_objext
11897if { (eval echo "$as_me:11897: \"$ac_compile\"") >&5
11898 (eval $ac_compile) 2>&5
11899 ac_status=$?
11900 echo "$as_me:11900: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -s conftest.$ac_objext'
11903 { (eval echo "$as_me:11903: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 echo "$as_me:11906: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 ac_lo=0 ac_mid=0
11909 while :; do
11910 cat >conftest.$ac_ext <<_ACEOF
11911#line 11911 "configure"
11912#include "confdefs.h"
11913$ac_includes_default
11914int
11915main ()
11916{
11917int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
11918 ;
11919 return 0;
11920}
11921_ACEOF
11922rm -f conftest.$ac_objext
11923if { (eval echo "$as_me:11923: \"$ac_compile\"") >&5
11924 (eval $ac_compile) 2>&5
11925 ac_status=$?
11926 echo "$as_me:11926: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -s conftest.$ac_objext'
11929 { (eval echo "$as_me:11929: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:11932: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_hi=$ac_mid; break
11935else
11936 echo "$as_me: failed program was:" >&5
11937cat conftest.$ac_ext >&5
11938ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11939fi
11940rm -f conftest.$ac_objext conftest.$ac_ext
11941 done
11942else
11943 echo "$as_me: failed program was:" >&5
11944cat conftest.$ac_ext >&5
11945ac_hi=-1 ac_mid=-1
11946 while :; do
11947 cat >conftest.$ac_ext <<_ACEOF
11948#line 11948 "configure"
11949#include "confdefs.h"
11950$ac_includes_default
11951int
11952main ()
11953{
11954int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
11955 ;
11956 return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext
11960if { (eval echo "$as_me:11960: \"$ac_compile\"") >&5
11961 (eval $ac_compile) 2>&5
11962 ac_status=$?
11963 echo "$as_me:11963: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -s conftest.$ac_objext'
11966 { (eval echo "$as_me:11966: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:11969: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 ac_lo=$ac_mid; break
11972else
11973 echo "$as_me: failed program was:" >&5
11974cat conftest.$ac_ext >&5
11975ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11976fi
11977rm -f conftest.$ac_objext conftest.$ac_ext
11978 done
11979fi
11980rm -f conftest.$ac_objext conftest.$ac_ext
11981# Binary search between lo and hi bounds.
11982while test "x$ac_lo" != "x$ac_hi"; do
11983 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11984 cat >conftest.$ac_ext <<_ACEOF
11985#line 11985 "configure"
11986#include "confdefs.h"
11987$ac_includes_default
11988int
11989main ()
11990{
11991int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
11992 ;
11993 return 0;
11994}
11995_ACEOF
11996rm -f conftest.$ac_objext
11997if { (eval echo "$as_me:11997: \"$ac_compile\"") >&5
11998 (eval $ac_compile) 2>&5
11999 ac_status=$?
12000 echo "$as_me:12000: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (eval echo "$as_me:12003: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:12006: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_hi=$ac_mid
12009else
12010 echo "$as_me: failed program was:" >&5
12011cat conftest.$ac_ext >&5
12012ac_lo=`expr $ac_mid + 1`
12013fi
12014rm -f conftest.$ac_objext conftest.$ac_ext
12015done
12016ac_cv_sizeof_short=$ac_lo
12017else
12018 if test "$cross_compiling" = yes; then
12019 { { echo "$as_me:12019: error: cannot run test program while cross compiling" >&5
12020echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12021 { (exit 1); exit 1; }; }
12022else
12023 cat >conftest.$ac_ext <<_ACEOF
12024#line 12024 "configure"
12025#include "confdefs.h"
12026$ac_includes_default
12027int
12028main ()
12029{
12030FILE *f = fopen ("conftest.val", "w");
12031if (!f)
12032 exit (1);
12033fprintf (f, "%d", (sizeof (short)));
12034fclose (f);
12035 ;
12036 return 0;
12037}
12038_ACEOF
12039rm -f conftest$ac_exeext
12040if { (eval echo "$as_me:12040: \"$ac_link\"") >&5
12041 (eval $ac_link) 2>&5
12042 ac_status=$?
12043 echo "$as_me:12043: \$? = $ac_status" >&5
12044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12045 { (eval echo "$as_me:12045: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:12048: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_sizeof_short=`cat conftest.val`
12051else
12052 echo "$as_me: program exited with status $ac_status" >&5
12053echo "$as_me: failed program was:" >&5
12054cat conftest.$ac_ext >&5
4f14bcd8 12055fi
7b4a847f 12056rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
328a083c 12057fi
7b4a847f
RR
12058fi
12059rm -f conftest.val
12060else
12061 ac_cv_sizeof_short=0
12062fi
12063fi
12064echo "$as_me:12064: result: $ac_cv_sizeof_short" >&5
12065echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12066cat >>confdefs.h <<EOF
12067#define SIZEOF_SHORT $ac_cv_sizeof_short
12068EOF
4f14bcd8 12069
7b4a847f
RR
12070echo "$as_me:12070: checking for void *" >&5
12071echo $ECHO_N "checking for void *... $ECHO_C" >&6
12072if test "${ac_cv_type_void_p+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074else
12075 cat >conftest.$ac_ext <<_ACEOF
12076#line 12076 "configure"
12077#include "confdefs.h"
12078$ac_includes_default
12079int
12080main ()
12081{
12082if ((void * *) 0)
12083 return 0;
12084if (sizeof (void *))
12085 return 0;
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090rm -f conftest.$ac_objext
12091if { (eval echo "$as_me:12091: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>&5
12093 ac_status=$?
12094 echo "$as_me:12094: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try='test -s conftest.$ac_objext'
12097 { (eval echo "$as_me:12097: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12099 ac_status=$?
12100 echo "$as_me:12100: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12102 ac_cv_type_void_p=yes
12103else
12104 echo "$as_me: failed program was:" >&5
12105cat conftest.$ac_ext >&5
12106ac_cv_type_void_p=no
12107fi
12108rm -f conftest.$ac_objext conftest.$ac_ext
12109fi
12110echo "$as_me:12110: result: $ac_cv_type_void_p" >&5
12111echo "${ECHO_T}$ac_cv_type_void_p" >&6
12112
12113echo "$as_me:12113: checking size of void *" >&5
12114echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12115if test "${ac_cv_sizeof_void_p+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12117else
12118 if test "$ac_cv_type_void_p" = yes; then
12119 if test "$cross_compiling" = yes; then
12120 # Depending upon the size, compute the lo and hi bounds.
12121cat >conftest.$ac_ext <<_ACEOF
12122#line 12122 "configure"
12123#include "confdefs.h"
12124$ac_includes_default
12125int
12126main ()
12127{
12128int _array_ [1 - 2 * !((sizeof (void *)) >= 0)]
12129 ;
12130 return 0;
12131}
12132_ACEOF
12133rm -f conftest.$ac_objext
12134if { (eval echo "$as_me:12134: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>&5
12136 ac_status=$?
12137 echo "$as_me:12137: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:12140: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:12143: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_lo=0 ac_mid=0
12146 while :; do
12147 cat >conftest.$ac_ext <<_ACEOF
12148#line 12148 "configure"
12149#include "confdefs.h"
12150$ac_includes_default
12151int
12152main ()
12153{
12154int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
12155 ;
12156 return 0;
12157}
12158_ACEOF
12159rm -f conftest.$ac_objext
12160if { (eval echo "$as_me:12160: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>&5
12162 ac_status=$?
12163 echo "$as_me:12163: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:12166: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:12169: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_hi=$ac_mid; break
12172else
12173 echo "$as_me: failed program was:" >&5
12174cat conftest.$ac_ext >&5
12175ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12176fi
12177rm -f conftest.$ac_objext conftest.$ac_ext
12178 done
12179else
12180 echo "$as_me: failed program was:" >&5
12181cat conftest.$ac_ext >&5
12182ac_hi=-1 ac_mid=-1
12183 while :; do
12184 cat >conftest.$ac_ext <<_ACEOF
12185#line 12185 "configure"
12186#include "confdefs.h"
12187$ac_includes_default
12188int
12189main ()
12190{
12191int _array_ [1 - 2 * !((sizeof (void *)) >= $ac_mid)]
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext
12197if { (eval echo "$as_me:12197: \"$ac_compile\"") >&5
12198 (eval $ac_compile) 2>&5
12199 ac_status=$?
12200 echo "$as_me:12200: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -s conftest.$ac_objext'
12203 { (eval echo "$as_me:12203: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:12206: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 ac_lo=$ac_mid; break
12209else
12210 echo "$as_me: failed program was:" >&5
12211cat conftest.$ac_ext >&5
12212ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12213fi
12214rm -f conftest.$ac_objext conftest.$ac_ext
12215 done
328a083c 12216fi
7b4a847f
RR
12217rm -f conftest.$ac_objext conftest.$ac_ext
12218# Binary search between lo and hi bounds.
12219while test "x$ac_lo" != "x$ac_hi"; do
12220 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12221 cat >conftest.$ac_ext <<_ACEOF
12222#line 12222 "configure"
12223#include "confdefs.h"
12224$ac_includes_default
12225int
12226main ()
12227{
12228int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
12229 ;
12230 return 0;
12231}
12232_ACEOF
12233rm -f conftest.$ac_objext
12234if { (eval echo "$as_me:12234: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>&5
12236 ac_status=$?
12237 echo "$as_me:12237: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:12240: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:12243: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 ac_hi=$ac_mid
12246else
12247 echo "$as_me: failed program was:" >&5
12248cat conftest.$ac_ext >&5
12249ac_lo=`expr $ac_mid + 1`
12250fi
12251rm -f conftest.$ac_objext conftest.$ac_ext
12252done
12253ac_cv_sizeof_void_p=$ac_lo
12254else
12255 if test "$cross_compiling" = yes; then
12256 { { echo "$as_me:12256: error: cannot run test program while cross compiling" >&5
12257echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12258 { (exit 1); exit 1; }; }
12259else
12260 cat >conftest.$ac_ext <<_ACEOF
12261#line 12261 "configure"
12262#include "confdefs.h"
12263$ac_includes_default
12264int
12265main ()
12266{
12267FILE *f = fopen ("conftest.val", "w");
12268if (!f)
12269 exit (1);
12270fprintf (f, "%d", (sizeof (void *)));
12271fclose (f);
12272 ;
12273 return 0;
12274}
12275_ACEOF
12276rm -f conftest$ac_exeext
12277if { (eval echo "$as_me:12277: \"$ac_link\"") >&5
12278 (eval $ac_link) 2>&5
12279 ac_status=$?
12280 echo "$as_me:12280: \$? = $ac_status" >&5
12281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12282 { (eval echo "$as_me:12282: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:12285: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_sizeof_void_p=`cat conftest.val`
12288else
12289 echo "$as_me: program exited with status $ac_status" >&5
12290echo "$as_me: failed program was:" >&5
12291cat conftest.$ac_ext >&5
12292fi
12293rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12294fi
12295fi
12296rm -f conftest.val
12297else
12298 ac_cv_sizeof_void_p=0
12299fi
12300fi
12301echo "$as_me:12301: result: $ac_cv_sizeof_void_p" >&5
12302echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12303cat >>confdefs.h <<EOF
21d1c967 12304#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
12305EOF
12306
7b4a847f
RR
12307echo "$as_me:12307: checking for int" >&5
12308echo $ECHO_N "checking for int... $ECHO_C" >&6
12309if test "${ac_cv_type_int+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311else
12312 cat >conftest.$ac_ext <<_ACEOF
12313#line 12313 "configure"
12314#include "confdefs.h"
12315$ac_includes_default
12316int
12317main ()
12318{
12319if ((int *) 0)
12320 return 0;
12321if (sizeof (int))
12322 return 0;
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327rm -f conftest.$ac_objext
12328if { (eval echo "$as_me:12328: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>&5
12330 ac_status=$?
12331 echo "$as_me:12331: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -s conftest.$ac_objext'
12334 { (eval echo "$as_me:12334: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:12337: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_type_int=yes
12340else
12341 echo "$as_me: failed program was:" >&5
12342cat conftest.$ac_ext >&5
12343ac_cv_type_int=no
12344fi
12345rm -f conftest.$ac_objext conftest.$ac_ext
12346fi
12347echo "$as_me:12347: result: $ac_cv_type_int" >&5
12348echo "${ECHO_T}$ac_cv_type_int" >&6
12349
12350echo "$as_me:12350: checking size of int" >&5
12351echo $ECHO_N "checking size of int... $ECHO_C" >&6
12352if test "${ac_cv_sizeof_int+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354else
12355 if test "$ac_cv_type_int" = yes; then
12356 if test "$cross_compiling" = yes; then
12357 # Depending upon the size, compute the lo and hi bounds.
12358cat >conftest.$ac_ext <<_ACEOF
12359#line 12359 "configure"
12360#include "confdefs.h"
12361$ac_includes_default
12362int
12363main ()
12364{
12365int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
12366 ;
12367 return 0;
12368}
12369_ACEOF
12370rm -f conftest.$ac_objext
12371if { (eval echo "$as_me:12371: \"$ac_compile\"") >&5
12372 (eval $ac_compile) 2>&5
12373 ac_status=$?
12374 echo "$as_me:12374: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (eval echo "$as_me:12377: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:12380: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_lo=0 ac_mid=0
12383 while :; do
12384 cat >conftest.$ac_ext <<_ACEOF
12385#line 12385 "configure"
12386#include "confdefs.h"
12387$ac_includes_default
12388int
12389main ()
12390{
12391int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
12392 ;
12393 return 0;
12394}
12395_ACEOF
12396rm -f conftest.$ac_objext
12397if { (eval echo "$as_me:12397: \"$ac_compile\"") >&5
12398 (eval $ac_compile) 2>&5
12399 ac_status=$?
12400 echo "$as_me:12400: \$? = $ac_status" >&5
12401 (exit $ac_status); } &&
12402 { ac_try='test -s conftest.$ac_objext'
12403 { (eval echo "$as_me:12403: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 echo "$as_me:12406: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 ac_hi=$ac_mid; break
12409else
12410 echo "$as_me: failed program was:" >&5
12411cat conftest.$ac_ext >&5
12412ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12413fi
12414rm -f conftest.$ac_objext conftest.$ac_ext
12415 done
12416else
12417 echo "$as_me: failed program was:" >&5
12418cat conftest.$ac_ext >&5
12419ac_hi=-1 ac_mid=-1
12420 while :; do
12421 cat >conftest.$ac_ext <<_ACEOF
12422#line 12422 "configure"
12423#include "confdefs.h"
12424$ac_includes_default
12425int
12426main ()
12427{
12428int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
12429 ;
12430 return 0;
12431}
12432_ACEOF
12433rm -f conftest.$ac_objext
12434if { (eval echo "$as_me:12434: \"$ac_compile\"") >&5
12435 (eval $ac_compile) 2>&5
12436 ac_status=$?
12437 echo "$as_me:12437: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try='test -s conftest.$ac_objext'
12440 { (eval echo "$as_me:12440: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:12443: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_lo=$ac_mid; break
12446else
12447 echo "$as_me: failed program was:" >&5
12448cat conftest.$ac_ext >&5
12449ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12450fi
12451rm -f conftest.$ac_objext conftest.$ac_ext
12452 done
12453fi
12454rm -f conftest.$ac_objext conftest.$ac_ext
12455# Binary search between lo and hi bounds.
12456while test "x$ac_lo" != "x$ac_hi"; do
12457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12458 cat >conftest.$ac_ext <<_ACEOF
12459#line 12459 "configure"
12460#include "confdefs.h"
12461$ac_includes_default
12462int
12463main ()
12464{
12465int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
12466 ;
12467 return 0;
12468}
12469_ACEOF
12470rm -f conftest.$ac_objext
12471if { (eval echo "$as_me:12471: \"$ac_compile\"") >&5
12472 (eval $ac_compile) 2>&5
12473 ac_status=$?
12474 echo "$as_me:12474: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:12477: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:12480: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_hi=$ac_mid
12483else
12484 echo "$as_me: failed program was:" >&5
12485cat conftest.$ac_ext >&5
12486ac_lo=`expr $ac_mid + 1`
12487fi
12488rm -f conftest.$ac_objext conftest.$ac_ext
12489done
12490ac_cv_sizeof_int=$ac_lo
4f14bcd8 12491else
328a083c 12492 if test "$cross_compiling" = yes; then
7b4a847f
RR
12493 { { echo "$as_me:12493: error: cannot run test program while cross compiling" >&5
12494echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12495 { (exit 1); exit 1; }; }
328a083c 12496else
7b4a847f
RR
12497 cat >conftest.$ac_ext <<_ACEOF
12498#line 12498 "configure"
328a083c 12499#include "confdefs.h"
7b4a847f
RR
12500$ac_includes_default
12501int
12502main ()
328a083c 12503{
7b4a847f
RR
12504FILE *f = fopen ("conftest.val", "w");
12505if (!f)
12506 exit (1);
12507fprintf (f, "%d", (sizeof (int)));
12508fclose (f);
12509 ;
12510 return 0;
328a083c 12511}
7b4a847f
RR
12512_ACEOF
12513rm -f conftest$ac_exeext
12514if { (eval echo "$as_me:12514: \"$ac_link\"") >&5
12515 (eval $ac_link) 2>&5
12516 ac_status=$?
12517 echo "$as_me:12517: \$? = $ac_status" >&5
12518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12519 { (eval echo "$as_me:12519: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:12522: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_cv_sizeof_int=`cat conftest.val`
328a083c 12525else
7b4a847f
RR
12526 echo "$as_me: program exited with status $ac_status" >&5
12527echo "$as_me: failed program was:" >&5
12528cat conftest.$ac_ext >&5
4f14bcd8 12529fi
7b4a847f
RR
12530rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12531fi
12532fi
12533rm -f conftest.val
12534else
12535 ac_cv_sizeof_int=0
21d1c967 12536fi
579d8138 12537fi
7b4a847f
RR
12538echo "$as_me:12538: result: $ac_cv_sizeof_int" >&5
12539echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12540cat >>confdefs.h <<EOF
21d1c967 12541#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
12542EOF
12543
7b4a847f
RR
12544echo "$as_me:12544: checking for long" >&5
12545echo $ECHO_N "checking for long... $ECHO_C" >&6
12546if test "${ac_cv_type_long+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 12548else
7b4a847f
RR
12549 cat >conftest.$ac_ext <<_ACEOF
12550#line 12550 "configure"
12551#include "confdefs.h"
12552$ac_includes_default
12553int
12554main ()
12555{
12556if ((long *) 0)
12557 return 0;
12558if (sizeof (long))
12559 return 0;
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564rm -f conftest.$ac_objext
12565if { (eval echo "$as_me:12565: \"$ac_compile\"") >&5
12566 (eval $ac_compile) 2>&5
12567 ac_status=$?
12568 echo "$as_me:12568: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -s conftest.$ac_objext'
12571 { (eval echo "$as_me:12571: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:12574: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_type_long=yes
12577else
12578 echo "$as_me: failed program was:" >&5
12579cat conftest.$ac_ext >&5
12580ac_cv_type_long=no
12581fi
12582rm -f conftest.$ac_objext conftest.$ac_ext
12583fi
12584echo "$as_me:12584: result: $ac_cv_type_long" >&5
12585echo "${ECHO_T}$ac_cv_type_long" >&6
12586
12587echo "$as_me:12587: checking size of long" >&5
12588echo $ECHO_N "checking size of long... $ECHO_C" >&6
12589if test "${ac_cv_sizeof_long+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591else
12592 if test "$ac_cv_type_long" = yes; then
328a083c 12593 if test "$cross_compiling" = yes; then
7b4a847f
RR
12594 # Depending upon the size, compute the lo and hi bounds.
12595cat >conftest.$ac_ext <<_ACEOF
12596#line 12596 "configure"
12597#include "confdefs.h"
12598$ac_includes_default
12599int
12600main ()
12601{
12602int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
12603 ;
12604 return 0;
12605}
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:12608: \"$ac_compile\"") >&5
12609 (eval $ac_compile) 2>&5
12610 ac_status=$?
12611 echo "$as_me:12611: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -s conftest.$ac_objext'
12614 { (eval echo "$as_me:12614: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:12617: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_lo=0 ac_mid=0
12620 while :; do
12621 cat >conftest.$ac_ext <<_ACEOF
12622#line 12622 "configure"
12623#include "confdefs.h"
12624$ac_includes_default
12625int
12626main ()
12627{
12628int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
12629 ;
12630 return 0;
12631}
12632_ACEOF
12633rm -f conftest.$ac_objext
12634if { (eval echo "$as_me:12634: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>&5
12636 ac_status=$?
12637 echo "$as_me:12637: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -s conftest.$ac_objext'
12640 { (eval echo "$as_me:12640: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:12643: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_hi=$ac_mid; break
12646else
12647 echo "$as_me: failed program was:" >&5
12648cat conftest.$ac_ext >&5
12649ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12650fi
12651rm -f conftest.$ac_objext conftest.$ac_ext
12652 done
328a083c 12653else
7b4a847f
RR
12654 echo "$as_me: failed program was:" >&5
12655cat conftest.$ac_ext >&5
12656ac_hi=-1 ac_mid=-1
12657 while :; do
12658 cat >conftest.$ac_ext <<_ACEOF
12659#line 12659 "configure"
328a083c 12660#include "confdefs.h"
7b4a847f
RR
12661$ac_includes_default
12662int
12663main ()
328a083c 12664{
7b4a847f
RR
12665int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
12666 ;
12667 return 0;
328a083c 12668}
7b4a847f
RR
12669_ACEOF
12670rm -f conftest.$ac_objext
12671if { (eval echo "$as_me:12671: \"$ac_compile\"") >&5
12672 (eval $ac_compile) 2>&5
12673 ac_status=$?
12674 echo "$as_me:12674: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -s conftest.$ac_objext'
12677 { (eval echo "$as_me:12677: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:12680: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_lo=$ac_mid; break
12683else
12684 echo "$as_me: failed program was:" >&5
12685cat conftest.$ac_ext >&5
12686ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12687fi
12688rm -f conftest.$ac_objext conftest.$ac_ext
12689 done
12690fi
12691rm -f conftest.$ac_objext conftest.$ac_ext
12692# Binary search between lo and hi bounds.
12693while test "x$ac_lo" != "x$ac_hi"; do
12694 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12695 cat >conftest.$ac_ext <<_ACEOF
12696#line 12696 "configure"
12697#include "confdefs.h"
12698$ac_includes_default
12699int
12700main ()
12701{
12702int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
12703 ;
12704 return 0;
12705}
12706_ACEOF
12707rm -f conftest.$ac_objext
12708if { (eval echo "$as_me:12708: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>&5
12710 ac_status=$?
12711 echo "$as_me:12711: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -s conftest.$ac_objext'
12714 { (eval echo "$as_me:12714: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:12717: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_hi=$ac_mid
12720else
12721 echo "$as_me: failed program was:" >&5
12722cat conftest.$ac_ext >&5
12723ac_lo=`expr $ac_mid + 1`
12724fi
12725rm -f conftest.$ac_objext conftest.$ac_ext
12726done
12727ac_cv_sizeof_long=$ac_lo
328a083c 12728else
7b4a847f
RR
12729 if test "$cross_compiling" = yes; then
12730 { { echo "$as_me:12730: error: cannot run test program while cross compiling" >&5
12731echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12732 { (exit 1); exit 1; }; }
12733else
12734 cat >conftest.$ac_ext <<_ACEOF
12735#line 12735 "configure"
12736#include "confdefs.h"
12737$ac_includes_default
12738int
12739main ()
12740{
12741FILE *f = fopen ("conftest.val", "w");
12742if (!f)
12743 exit (1);
12744fprintf (f, "%d", (sizeof (long)));
12745fclose (f);
12746 ;
12747 return 0;
12748}
12749_ACEOF
12750rm -f conftest$ac_exeext
12751if { (eval echo "$as_me:12751: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>&5
12753 ac_status=$?
12754 echo "$as_me:12754: \$? = $ac_status" >&5
12755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12756 { (eval echo "$as_me:12756: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:12759: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_sizeof_long=`cat conftest.val`
12762else
12763 echo "$as_me: program exited with status $ac_status" >&5
12764echo "$as_me: failed program was:" >&5
12765cat conftest.$ac_ext >&5
90dd450c 12766fi
7b4a847f
RR
12767rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12768fi
12769fi
12770rm -f conftest.val
12771else
12772 ac_cv_sizeof_long=0
579d8138 12773fi
21d1c967 12774fi
7b4a847f
RR
12775echo "$as_me:12775: result: $ac_cv_sizeof_long" >&5
12776echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12777cat >>confdefs.h <<EOF
21d1c967 12778#define SIZEOF_LONG $ac_cv_sizeof_long
90dd450c 12779EOF
4f14bcd8 12780
21d1c967
GD
12781case "${host}" in
12782 arm-*-linux* )
7b4a847f
RR
12783 echo "$as_me:12783: checking for long long" >&5
12784echo $ECHO_N "checking for long long... $ECHO_C" >&6
12785if test "${ac_cv_type_long_long+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787else
12788 cat >conftest.$ac_ext <<_ACEOF
12789#line 12789 "configure"
12790#include "confdefs.h"
12791$ac_includes_default
12792int
12793main ()
12794{
12795if ((long long *) 0)
12796 return 0;
12797if (sizeof (long long))
12798 return 0;
12799 ;
12800 return 0;
12801}
12802_ACEOF
12803rm -f conftest.$ac_objext
12804if { (eval echo "$as_me:12804: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>&5
12806 ac_status=$?
12807 echo "$as_me:12807: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:12810: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:12813: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_cv_type_long_long=yes
12816else
12817 echo "$as_me: failed program was:" >&5
12818cat conftest.$ac_ext >&5
12819ac_cv_type_long_long=no
12820fi
12821rm -f conftest.$ac_objext conftest.$ac_ext
12822fi
12823echo "$as_me:12823: result: $ac_cv_type_long_long" >&5
12824echo "${ECHO_T}$ac_cv_type_long_long" >&6
12825
12826echo "$as_me:12826: checking size of long long" >&5
12827echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12828if test "${ac_cv_sizeof_long_long+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830else
12831 if test "$ac_cv_type_long_long" = yes; then
12832 if test "$cross_compiling" = yes; then
12833 # Depending upon the size, compute the lo and hi bounds.
12834cat >conftest.$ac_ext <<_ACEOF
12835#line 12835 "configure"
12836#include "confdefs.h"
12837$ac_includes_default
12838int
12839main ()
12840{
12841int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
12842 ;
12843 return 0;
12844}
12845_ACEOF
12846rm -f conftest.$ac_objext
12847if { (eval echo "$as_me:12847: \"$ac_compile\"") >&5
12848 (eval $ac_compile) 2>&5
12849 ac_status=$?
12850 echo "$as_me:12850: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -s conftest.$ac_objext'
12853 { (eval echo "$as_me:12853: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:12856: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_lo=0 ac_mid=0
12859 while :; do
12860 cat >conftest.$ac_ext <<_ACEOF
12861#line 12861 "configure"
12862#include "confdefs.h"
12863$ac_includes_default
12864int
12865main ()
12866{
12867int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
12868 ;
12869 return 0;
12870}
12871_ACEOF
12872rm -f conftest.$ac_objext
12873if { (eval echo "$as_me:12873: \"$ac_compile\"") >&5
12874 (eval $ac_compile) 2>&5
12875 ac_status=$?
12876 echo "$as_me:12876: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -s conftest.$ac_objext'
12879 { (eval echo "$as_me:12879: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:12882: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_hi=$ac_mid; break
12885else
12886 echo "$as_me: failed program was:" >&5
12887cat conftest.$ac_ext >&5
12888ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12889fi
12890rm -f conftest.$ac_objext conftest.$ac_ext
12891 done
12892else
12893 echo "$as_me: failed program was:" >&5
12894cat conftest.$ac_ext >&5
12895ac_hi=-1 ac_mid=-1
12896 while :; do
12897 cat >conftest.$ac_ext <<_ACEOF
12898#line 12898 "configure"
12899#include "confdefs.h"
12900$ac_includes_default
12901int
12902main ()
12903{
12904int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
12905 ;
12906 return 0;
12907}
12908_ACEOF
12909rm -f conftest.$ac_objext
12910if { (eval echo "$as_me:12910: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>&5
12912 ac_status=$?
12913 echo "$as_me:12913: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:12916: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:12919: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_lo=$ac_mid; break
12922else
12923 echo "$as_me: failed program was:" >&5
12924cat conftest.$ac_ext >&5
12925ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12926fi
12927rm -f conftest.$ac_objext conftest.$ac_ext
12928 done
12929fi
12930rm -f conftest.$ac_objext conftest.$ac_ext
12931# Binary search between lo and hi bounds.
12932while test "x$ac_lo" != "x$ac_hi"; do
12933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12934 cat >conftest.$ac_ext <<_ACEOF
12935#line 12935 "configure"
12936#include "confdefs.h"
12937$ac_includes_default
12938int
12939main ()
12940{
12941int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
12942 ;
12943 return 0;
12944}
12945_ACEOF
12946rm -f conftest.$ac_objext
12947if { (eval echo "$as_me:12947: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>&5
12949 ac_status=$?
12950 echo "$as_me:12950: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -s conftest.$ac_objext'
12953 { (eval echo "$as_me:12953: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:12956: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_hi=$ac_mid
12959else
12960 echo "$as_me: failed program was:" >&5
12961cat conftest.$ac_ext >&5
12962ac_lo=`expr $ac_mid + 1`
12963fi
12964rm -f conftest.$ac_objext conftest.$ac_ext
12965done
12966ac_cv_sizeof_long_long=$ac_lo
21d1c967
GD
12967else
12968 if test "$cross_compiling" = yes; then
7b4a847f
RR
12969 { { echo "$as_me:12969: error: cannot run test program while cross compiling" >&5
12970echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12971 { (exit 1); exit 1; }; }
21d1c967 12972else
7b4a847f
RR
12973 cat >conftest.$ac_ext <<_ACEOF
12974#line 12974 "configure"
21d1c967 12975#include "confdefs.h"
7b4a847f
RR
12976$ac_includes_default
12977int
12978main ()
21d1c967 12979{
7b4a847f
RR
12980FILE *f = fopen ("conftest.val", "w");
12981if (!f)
12982 exit (1);
12983fprintf (f, "%d", (sizeof (long long)));
12984fclose (f);
12985 ;
12986 return 0;
21d1c967 12987}
7b4a847f
RR
12988_ACEOF
12989rm -f conftest$ac_exeext
12990if { (eval echo "$as_me:12990: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>&5
12992 ac_status=$?
12993 echo "$as_me:12993: \$? = $ac_status" >&5
12994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12995 { (eval echo "$as_me:12995: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:12998: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 ac_cv_sizeof_long_long=`cat conftest.val`
328a083c 13001else
7b4a847f
RR
13002 echo "$as_me: program exited with status $ac_status" >&5
13003echo "$as_me: failed program was:" >&5
13004cat conftest.$ac_ext >&5
328a083c 13005fi
7b4a847f 13006rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
579d8138 13007fi
328a083c 13008fi
7b4a847f
RR
13009rm -f conftest.val
13010else
13011 ac_cv_sizeof_long_long=0
13012fi
13013fi
13014echo "$as_me:13014: result: $ac_cv_sizeof_long_long" >&5
13015echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13016cat >>confdefs.h <<EOF
21d1c967
GD
13017#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13018EOF
90dd450c 13019
21d1c967
GD
13020 ;;
13021 * )
7b4a847f
RR
13022 echo "$as_me:13022: checking for long long" >&5
13023echo $ECHO_N "checking for long long... $ECHO_C" >&6
13024if test "${ac_cv_type_long_long+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 13026else
7b4a847f
RR
13027 cat >conftest.$ac_ext <<_ACEOF
13028#line 13028 "configure"
13029#include "confdefs.h"
13030$ac_includes_default
13031int
13032main ()
13033{
13034if ((long long *) 0)
13035 return 0;
13036if (sizeof (long long))
13037 return 0;
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext
13043if { (eval echo "$as_me:13043: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>&5
13045 ac_status=$?
13046 echo "$as_me:13046: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:13049: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:13052: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_type_long_long=yes
13055else
13056 echo "$as_me: failed program was:" >&5
13057cat conftest.$ac_ext >&5
13058ac_cv_type_long_long=no
13059fi
13060rm -f conftest.$ac_objext conftest.$ac_ext
13061fi
13062echo "$as_me:13062: result: $ac_cv_type_long_long" >&5
13063echo "${ECHO_T}$ac_cv_type_long_long" >&6
13064
13065echo "$as_me:13065: checking size of long long" >&5
13066echo $ECHO_N "checking size of long long... $ECHO_C" >&6
13067if test "${ac_cv_sizeof_long_long+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069else
13070 if test "$ac_cv_type_long_long" = yes; then
328a083c 13071 if test "$cross_compiling" = yes; then
7b4a847f
RR
13072 # Depending upon the size, compute the lo and hi bounds.
13073cat >conftest.$ac_ext <<_ACEOF
13074#line 13074 "configure"
13075#include "confdefs.h"
13076$ac_includes_default
13077int
13078main ()
13079{
13080int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
13081 ;
13082 return 0;
13083}
13084_ACEOF
13085rm -f conftest.$ac_objext
13086if { (eval echo "$as_me:13086: \"$ac_compile\"") >&5
13087 (eval $ac_compile) 2>&5
13088 ac_status=$?
13089 echo "$as_me:13089: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -s conftest.$ac_objext'
13092 { (eval echo "$as_me:13092: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:13095: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_lo=0 ac_mid=0
13098 while :; do
13099 cat >conftest.$ac_ext <<_ACEOF
13100#line 13100 "configure"
13101#include "confdefs.h"
13102$ac_includes_default
13103int
13104main ()
13105{
13106int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
13107 ;
13108 return 0;
13109}
13110_ACEOF
13111rm -f conftest.$ac_objext
13112if { (eval echo "$as_me:13112: \"$ac_compile\"") >&5
13113 (eval $ac_compile) 2>&5
13114 ac_status=$?
13115 echo "$as_me:13115: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:13118: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:13121: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_hi=$ac_mid; break
13124else
13125 echo "$as_me: failed program was:" >&5
13126cat conftest.$ac_ext >&5
13127ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13128fi
13129rm -f conftest.$ac_objext conftest.$ac_ext
13130 done
328a083c 13131else
7b4a847f
RR
13132 echo "$as_me: failed program was:" >&5
13133cat conftest.$ac_ext >&5
13134ac_hi=-1 ac_mid=-1
13135 while :; do
13136 cat >conftest.$ac_ext <<_ACEOF
13137#line 13137 "configure"
328a083c 13138#include "confdefs.h"
7b4a847f
RR
13139$ac_includes_default
13140int
13141main ()
328a083c 13142{
7b4a847f
RR
13143int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
13144 ;
13145 return 0;
328a083c 13146}
7b4a847f
RR
13147_ACEOF
13148rm -f conftest.$ac_objext
13149if { (eval echo "$as_me:13149: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>&5
13151 ac_status=$?
13152 echo "$as_me:13152: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:13155: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:13158: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_lo=$ac_mid; break
13161else
13162 echo "$as_me: failed program was:" >&5
13163cat conftest.$ac_ext >&5
13164ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13165fi
13166rm -f conftest.$ac_objext conftest.$ac_ext
13167 done
13168fi
13169rm -f conftest.$ac_objext conftest.$ac_ext
13170# Binary search between lo and hi bounds.
13171while test "x$ac_lo" != "x$ac_hi"; do
13172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13173 cat >conftest.$ac_ext <<_ACEOF
13174#line 13174 "configure"
13175#include "confdefs.h"
13176$ac_includes_default
13177int
13178main ()
13179{
13180int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
13181 ;
13182 return 0;
13183}
13184_ACEOF
13185rm -f conftest.$ac_objext
13186if { (eval echo "$as_me:13186: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>&5
13188 ac_status=$?
13189 echo "$as_me:13189: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -s conftest.$ac_objext'
13192 { (eval echo "$as_me:13192: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:13195: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
13197 ac_hi=$ac_mid
13198else
13199 echo "$as_me: failed program was:" >&5
13200cat conftest.$ac_ext >&5
13201ac_lo=`expr $ac_mid + 1`
13202fi
13203rm -f conftest.$ac_objext conftest.$ac_ext
13204done
13205ac_cv_sizeof_long_long=$ac_lo
328a083c 13206else
7b4a847f
RR
13207 if test "$cross_compiling" = yes; then
13208 { { echo "$as_me:13208: error: cannot run test program while cross compiling" >&5
13209echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13210 { (exit 1); exit 1; }; }
13211else
13212 cat >conftest.$ac_ext <<_ACEOF
13213#line 13213 "configure"
13214#include "confdefs.h"
13215$ac_includes_default
13216int
13217main ()
13218{
13219FILE *f = fopen ("conftest.val", "w");
13220if (!f)
13221 exit (1);
13222fprintf (f, "%d", (sizeof (long long)));
13223fclose (f);
13224 ;
13225 return 0;
13226}
13227_ACEOF
13228rm -f conftest$ac_exeext
13229if { (eval echo "$as_me:13229: \"$ac_link\"") >&5
13230 (eval $ac_link) 2>&5
13231 ac_status=$?
13232 echo "$as_me:13232: \$? = $ac_status" >&5
13233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13234 { (eval echo "$as_me:13234: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:13237: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_cv_sizeof_long_long=`cat conftest.val`
13240else
13241 echo "$as_me: program exited with status $ac_status" >&5
13242echo "$as_me: failed program was:" >&5
13243cat conftest.$ac_ext >&5
4f14bcd8 13244fi
7b4a847f 13245rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
579d8138 13246fi
90dd450c 13247fi
7b4a847f
RR
13248rm -f conftest.val
13249else
13250 ac_cv_sizeof_long_long=0
13251fi
13252fi
13253echo "$as_me:13253: result: $ac_cv_sizeof_long_long" >&5
13254echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13255cat >>confdefs.h <<EOF
21d1c967 13256#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 13257EOF
9e691f46 13258
21d1c967
GD
13259esac
13260
7b4a847f
RR
13261echo "$as_me:13261: checking size of wchar_t" >&5
13262echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
13263if test "${wx_cv_sizeof_wchar_t+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 13265else
7b4a847f 13266
21d1c967
GD
13267 if test "$cross_compiling" = yes; then
13268 wx_cv_sizeof_wchar_t=4
7b4a847f 13269
6f72b082 13270else
7b4a847f
RR
13271 cat >conftest.$ac_ext <<_ACEOF
13272#line 13272 "configure"
6f72b082 13273#include "confdefs.h"
21d1c967
GD
13274
13275 #ifdef HAVE_WCHAR_H
13276 # ifdef __CYGWIN__
13277 # include <stddef.h>
13278 # endif
13279 # include <wchar.h>
13280 #endif
13281 #ifdef HAVE_STDLIB_H
13282 # include <stdlib.h>
13283 #endif
13284 #include <stdio.h>
13285 int main()
13286 {
13287 FILE *f=fopen("conftestval", "w");
13288 if (!f) exit(1);
13289 fprintf(f, "%i", sizeof(wchar_t));
13290 exit(0);
13291 }
7b4a847f
RR
13292
13293_ACEOF
13294rm -f conftest$ac_exeext
13295if { (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
21d1c967 13305 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 13306else
7b4a847f
RR
13307 echo "$as_me: program exited with status $ac_status" >&5
13308echo "$as_me: failed program was:" >&5
13309cat conftest.$ac_ext >&5
13310wx_cv_sizeof_wchar_t=0
6f72b082 13311fi
7b4a847f 13312rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 13313fi
6f72b082 13314
3f345b47 13315fi
7b4a847f
RR
13316echo "$as_me:13316: result: $wx_cv_sizeof_wchar_t" >&5
13317echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 13318
7b4a847f 13319cat >>confdefs.h <<EOF
21d1c967
GD
13320#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13321EOF
90dd450c 13322
21d1c967
GD
13323# Check whether --enable-largefile or --disable-largefile was given.
13324if test "${enable_largefile+set}" = set; then
13325 enableval="$enable_largefile"
3f345b47 13326
7b4a847f 13327fi;
21d1c967
GD
13328if test "$enable_largefile" != no; then
13329 wx_largefile=no
7b4a847f
RR
13330
13331 echo "$as_me:13331: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13332echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13333if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335else
13336
13337 cat >conftest.$ac_ext <<_ACEOF
13338#line 13338 "configure"
90dd450c 13339#include "confdefs.h"
21d1c967
GD
13340#define _FILE_OFFSET_BITS 64
13341 #include <sys/types.h>
7b4a847f
RR
13342int
13343main ()
13344{
21d1c967
GD
13345typedef struct {
13346 unsigned int field: sizeof(off_t) == 8;
13347} wxlf;
13348
7b4a847f
RR
13349 ;
13350 return 0;
13351}
13352_ACEOF
13353rm -f conftest.$ac_objext
13354if { (eval echo "$as_me:13354: \"$ac_compile\"") >&5
13355 (eval $ac_compile) 2>&5
13356 ac_status=$?
13357 echo "$as_me:13357: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (eval echo "$as_me:13360: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:13363: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
21d1c967 13365 ac_cv_sys_file_offset_bits=64
f6bcfd97 13366else
7b4a847f
RR
13367 echo "$as_me: failed program was:" >&5
13368cat conftest.$ac_ext >&5
13369ac_cv_sys_file_offset_bits=no
328a083c 13370fi
7b4a847f 13371rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 13372
7b4a847f
RR
13373fi
13374echo "$as_me:13374: result: $ac_cv_sys_file_offset_bits" >&5
13375echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
13376
13377 if test "$ac_cv_sys_file_offset_bits" != no; then
13378 wx_largefile=yes
7b4a847f 13379 cat >>confdefs.h <<EOF
21d1c967
GD
13380#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13381EOF
13382
13383 fi
13384
13385 if test "x$wx_largefile" != "xyes"; then
7b4a847f
RR
13386
13387 echo "$as_me:13387: checking for _LARGE_FILES value needed for large files" >&5
13388echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13389if test "${ac_cv_sys_large_files+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391else
13392
13393 cat >conftest.$ac_ext <<_ACEOF
13394#line 13394 "configure"
f6bcfd97 13395#include "confdefs.h"
21d1c967
GD
13396#define _LARGE_FILES 1
13397 #include <sys/types.h>
7b4a847f
RR
13398int
13399main ()
13400{
21d1c967
GD
13401typedef struct {
13402 unsigned int field: sizeof(off_t) == 8;
13403} wxlf;
13404
7b4a847f
RR
13405 ;
13406 return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext
13410if { (eval echo "$as_me:13410: \"$ac_compile\"") >&5
13411 (eval $ac_compile) 2>&5
13412 ac_status=$?
13413 echo "$as_me:13413: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (eval echo "$as_me:13416: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:13419: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
21d1c967 13421 ac_cv_sys_large_files=1
f6bcfd97 13422else
7b4a847f
RR
13423 echo "$as_me: failed program was:" >&5
13424cat conftest.$ac_ext >&5
13425ac_cv_sys_large_files=no
328a083c 13426fi
7b4a847f 13427rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 13428
7b4a847f
RR
13429fi
13430echo "$as_me:13430: result: $ac_cv_sys_large_files" >&5
13431echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 13432
21d1c967
GD
13433 if test "$ac_cv_sys_large_files" != no; then
13434 wx_largefile=yes
7b4a847f 13435 cat >>confdefs.h <<EOF
21d1c967
GD
13436#define _LARGE_FILES $ac_cv_sys_large_files
13437EOF
90dd450c 13438
90dd450c
VZ
13439 fi
13440
90dd450c 13441 fi
90dd450c 13442
7b4a847f
RR
13443 echo "$as_me:13443: checking if large file support is available" >&5
13444echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 13445 if test "x$wx_largefile" = "xyes"; then
7b4a847f 13446 cat >>confdefs.h <<\EOF
21d1c967 13447#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
13448EOF
13449
90dd450c 13450 fi
7b4a847f
RR
13451 echo "$as_me:13451: result: $wx_largefile" >&5
13452echo "${ECHO_T}$wx_largefile" >&6
21d1c967 13453fi
90dd450c 13454
7b4a847f
RR
13455echo "$as_me:13455: checking whether byte ordering is bigendian" >&5
13456echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13457if test "${ac_cv_c_bigendian+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 13459else
21d1c967
GD
13460 ac_cv_c_bigendian=unknown
13461# See if sys/param.h defines the BYTE_ORDER macro.
7b4a847f
RR
13462cat >conftest.$ac_ext <<_ACEOF
13463#line 13463 "configure"
90dd450c 13464#include "confdefs.h"
21d1c967
GD
13465#include <sys/types.h>
13466#include <sys/param.h>
7b4a847f
RR
13467int
13468main ()
13469{
21d1c967
GD
13470
13471#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13472 bogus endian macros
13473#endif
7b4a847f
RR
13474 ;
13475 return 0;
13476}
13477_ACEOF
13478rm -f conftest.$ac_objext
13479if { (eval echo "$as_me:13479: \"$ac_compile\"") >&5
13480 (eval $ac_compile) 2>&5
13481 ac_status=$?
13482 echo "$as_me:13482: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:13485: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:13488: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
21d1c967 13490 # It does; now see whether it defined to BIG_ENDIAN or not.
7b4a847f
RR
13491cat >conftest.$ac_ext <<_ACEOF
13492#line 13492 "configure"
90dd450c 13493#include "confdefs.h"
21d1c967
GD
13494#include <sys/types.h>
13495#include <sys/param.h>
7b4a847f
RR
13496int
13497main ()
13498{
21d1c967
GD
13499
13500#if BYTE_ORDER != BIG_ENDIAN
13501 not big endian
13502#endif
7b4a847f
RR
13503 ;
13504 return 0;
13505}
13506_ACEOF
13507rm -f conftest.$ac_objext
13508if { (eval echo "$as_me:13508: \"$ac_compile\"") >&5
13509 (eval $ac_compile) 2>&5
13510 ac_status=$?
13511 echo "$as_me:13511: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -s conftest.$ac_objext'
13514 { (eval echo "$as_me:13514: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 echo "$as_me:13517: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
21d1c967 13519 ac_cv_c_bigendian=yes
3f345b47 13520else
7b4a847f
RR
13521 echo "$as_me: failed program was:" >&5
13522cat conftest.$ac_ext >&5
13523ac_cv_c_bigendian=no
3f345b47 13524fi
7b4a847f 13525rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 13526else
7b4a847f
RR
13527 echo "$as_me: failed program was:" >&5
13528cat conftest.$ac_ext >&5
3f345b47 13529fi
7b4a847f 13530rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
13531if test $ac_cv_c_bigendian = unknown; then
13532if test "$cross_compiling" = yes; then
13533 ac_cv_c_bigendian=unknown
10f2d63a 13534else
7b4a847f
RR
13535 cat >conftest.$ac_ext <<_ACEOF
13536#line 13536 "configure"
90dd450c 13537#include "confdefs.h"
21d1c967
GD
13538main () {
13539 /* Are we little or big endian? From Harbison&Steele. */
13540 union
13541 {
13542 long l;
13543 char c[sizeof (long)];
13544 } u;
13545 u.l = 1;
13546 exit (u.c[sizeof (long) - 1] == 1);
13547}
7b4a847f
RR
13548_ACEOF
13549rm -f conftest$ac_exeext
13550if { (eval echo "$as_me:13550: \"$ac_link\"") >&5
13551 (eval $ac_link) 2>&5
13552 ac_status=$?
13553 echo "$as_me:13553: \$? = $ac_status" >&5
13554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13555 { (eval echo "$as_me:13555: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:13558: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
21d1c967 13560 ac_cv_c_bigendian=no
3f345b47 13561else
7b4a847f
RR
13562 echo "$as_me: program exited with status $ac_status" >&5
13563echo "$as_me: failed program was:" >&5
13564cat conftest.$ac_ext >&5
13565ac_cv_c_bigendian=yes
3f345b47 13566fi
7b4a847f 13567rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8168de4c 13568fi
21d1c967
GD
13569fi
13570fi
7b4a847f
RR
13571echo "$as_me:13571: result: $ac_cv_c_bigendian" >&5
13572echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21d1c967 13573if test $ac_cv_c_bigendian = unknown; then
7b4a847f
RR
13574 { echo "$as_me:13574: 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
13575echo "$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;}
21d1c967
GD
13576fi
13577if test $ac_cv_c_bigendian = yes; then
7b4a847f 13578 cat >>confdefs.h <<\EOF
21d1c967
GD
13579#define WORDS_BIGENDIAN 1
13580EOF
13581
13582fi
13583
7b4a847f
RR
13584ac_ext=cc
13585ac_cpp='$CXXCPP $CPPFLAGS'
13586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13589echo "$as_me:13589: checking how to run the C++ preprocessor" >&5
13590echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
579d8138 13591if test -z "$CXXCPP"; then
7b4a847f
RR
13592 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594else
13595 # Double quotes because CXXCPP needs to be expanded
13596 for CXXCPP in "$CXX -E" "/lib/cpp"
13597 do
13598 ac_preproc_ok=false
13599for ac_cxx_preproc_warn_flag in '' yes
13600do
13601 # Use a header file that comes with gcc, so configuring glibc
13602 # with a fresh cross-compiler works.
13603 # On the NeXT, cc -E runs the code through the compiler's parser,
13604 # not just through cpp. "Syntax error" is here to catch this case.
13605 cat >conftest.$ac_ext <<_ACEOF
13606#line 13606 "configure"
13607#include "confdefs.h"
13608#include <assert.h>
13609 Syntax error
13610_ACEOF
13611if { (eval echo "$as_me:13611: \"$ac_cpp conftest.$ac_ext\"") >&5
13612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13613 ac_status=$?
13614 egrep -v '^ *\+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 echo "$as_me:13617: \$? = $ac_status" >&5
13618 (exit $ac_status); } >/dev/null; then
13619 if test -s conftest.err; then
13620 ac_cpp_err=$ac_cxx_preproc_warn_flag
13621 else
13622 ac_cpp_err=
13623 fi
328a083c 13624else
7b4a847f
RR
13625 ac_cpp_err=yes
13626fi
13627if test -z "$ac_cpp_err"; then
13628 :
13629else
13630 echo "$as_me: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13632 # Broken: fails on valid input.
13633continue
13634fi
13635rm -f conftest.err conftest.$ac_ext
13636
13637 # OK, works on sane cases. Now check whether non-existent headers
13638 # can be detected and how.
13639 cat >conftest.$ac_ext <<_ACEOF
13640#line 13640 "configure"
328a083c 13641#include "confdefs.h"
7b4a847f
RR
13642#include <ac_nonexistent.h>
13643_ACEOF
13644if { (eval echo "$as_me:13644: \"$ac_cpp conftest.$ac_ext\"") >&5
13645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13646 ac_status=$?
13647 egrep -v '^ *\+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:13650: \$? = $ac_status" >&5
13651 (exit $ac_status); } >/dev/null; then
13652 if test -s conftest.err; then
13653 ac_cpp_err=$ac_cxx_preproc_warn_flag
13654 else
13655 ac_cpp_err=
13656 fi
13657else
13658 ac_cpp_err=yes
13659fi
13660if test -z "$ac_cpp_err"; then
13661 # Broken: success on invalid input.
13662continue
13663else
13664 echo "$as_me: failed program was:" >&5
13665 cat conftest.$ac_ext >&5
13666 # Passes both tests.
13667ac_preproc_ok=:
13668break
13669fi
13670rm -f conftest.err conftest.$ac_ext
13671
13672done
13673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13674rm -f conftest.err conftest.$ac_ext
13675if $ac_preproc_ok; then
13676 break
13677fi
13678
13679 done
13680 ac_cv_prog_CXXCPP=$CXXCPP
13681
13682fi
13683 CXXCPP=$ac_cv_prog_CXXCPP
13684else
13685 ac_cv_prog_CXXCPP=$CXXCPP
13686fi
13687echo "$as_me:13687: result: $CXXCPP" >&5
13688echo "${ECHO_T}$CXXCPP" >&6
13689ac_preproc_ok=false
13690for ac_cxx_preproc_warn_flag in '' yes
13691do
13692 # Use a header file that comes with gcc, so configuring glibc
13693 # with a fresh cross-compiler works.
13694 # On the NeXT, cc -E runs the code through the compiler's parser,
13695 # not just through cpp. "Syntax error" is here to catch this case.
13696 cat >conftest.$ac_ext <<_ACEOF
13697#line 13697 "configure"
13698#include "confdefs.h"
13699#include <assert.h>
13700 Syntax error
13701_ACEOF
13702if { (eval echo "$as_me:13702: \"$ac_cpp conftest.$ac_ext\"") >&5
13703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13704 ac_status=$?
13705 egrep -v '^ *\+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 echo "$as_me:13708: \$? = $ac_status" >&5
13709 (exit $ac_status); } >/dev/null; then
13710 if test -s conftest.err; then
13711 ac_cpp_err=$ac_cxx_preproc_warn_flag
13712 else
13713 ac_cpp_err=
13714 fi
13715else
13716 ac_cpp_err=yes
13717fi
13718if test -z "$ac_cpp_err"; then
21d1c967 13719 :
698dcdb6 13720else
7b4a847f 13721 echo "$as_me: failed program was:" >&5
698dcdb6 13722 cat conftest.$ac_ext >&5
7b4a847f
RR
13723 # Broken: fails on valid input.
13724continue
7ec2881a 13725fi
7b4a847f
RR
13726rm -f conftest.err conftest.$ac_ext
13727
13728 # OK, works on sane cases. Now check whether non-existent headers
13729 # can be detected and how.
13730 cat >conftest.$ac_ext <<_ACEOF
13731#line 13731 "configure"
13732#include "confdefs.h"
13733#include <ac_nonexistent.h>
13734_ACEOF
13735if { (eval echo "$as_me:13735: \"$ac_cpp conftest.$ac_ext\"") >&5
13736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13737 ac_status=$?
13738 egrep -v '^ *\+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:13741: \$? = $ac_status" >&5
13742 (exit $ac_status); } >/dev/null; then
13743 if test -s conftest.err; then
13744 ac_cpp_err=$ac_cxx_preproc_warn_flag
13745 else
13746 ac_cpp_err=
13747 fi
13748else
13749 ac_cpp_err=yes
13750fi
13751if test -z "$ac_cpp_err"; then
13752 # Broken: success on invalid input.
13753continue
13754else
13755 echo "$as_me: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 # Passes both tests.
13758ac_preproc_ok=:
13759break
328a083c 13760fi
7b4a847f
RR
13761rm -f conftest.err conftest.$ac_ext
13762
13763done
13764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13765rm -f conftest.err conftest.$ac_ext
13766if $ac_preproc_ok; then
13767 :
13768else
13769 { { echo "$as_me:13769: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
13770echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
13771 { (exit 1); exit 1; }; }
90dd450c 13772fi
1e6feb95 13773
7b4a847f
RR
13774ac_ext=cc
13775ac_cpp='$CXXCPP $CPPFLAGS'
13776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1725144d 13779
21d1c967 13780 if test "$cross_compiling" = "yes"; then
7b4a847f 13781 cat >>confdefs.h <<\EOF
21d1c967 13782#define wxUSE_IOSTREAMH 1
90dd450c 13783EOF
ab9b9eab 13784
21d1c967 13785 else
ba337fe7 13786
7b4a847f
RR
13787 ac_ext=cc
13788ac_cpp='$CXXCPP $CPPFLAGS'
13789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
579d8138 13792
7b4a847f 13793for ac_header in iostream
21d1c967 13794do
7b4a847f
RR
13795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13796echo "$as_me:13796: checking for $ac_header" >&5
13797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13798if eval "test \"\${$as_ac_Header+set}\" = set"; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800else
13801 cat >conftest.$ac_ext <<_ACEOF
13802#line 13802 "configure"
ab9b9eab 13803#include "confdefs.h"
7b4a847f
RR
13804#include <$ac_header>
13805_ACEOF
13806if { (eval echo "$as_me:13806: \"$ac_cpp conftest.$ac_ext\"") >&5
13807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13808 ac_status=$?
13809 egrep -v '^ *\+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:13812: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null; then
13814 if test -s conftest.err; then
13815 ac_cpp_err=$ac_cxx_preproc_warn_flag
13816 else
13817 ac_cpp_err=
13818 fi
ab9b9eab 13819else
7b4a847f
RR
13820 ac_cpp_err=yes
13821fi
13822if test -z "$ac_cpp_err"; then
13823 eval "$as_ac_Header=yes"
13824else
13825 echo "$as_me: failed program was:" >&5
ab9b9eab 13826 cat conftest.$ac_ext >&5
7b4a847f 13827 eval "$as_ac_Header=no"
ab9b9eab 13828fi
7b4a847f 13829rm -f conftest.err conftest.$ac_ext
90dd450c 13830fi
7b4a847f
RR
13831echo "$as_me:13831: result: `eval echo '${'$as_ac_Header'}'`" >&5
13832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13833if test `eval echo '${'$as_ac_Header'}'` = yes; then
13834 cat >>confdefs.h <<EOF
13835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
698dcdb6 13836EOF
7b4a847f 13837
90dd450c 13838fi
21d1c967 13839done
10f2d63a 13840
21d1c967
GD
13841 if test "$ac_cv_header_iostream" = "yes" ; then
13842 :
13843 else
7b4a847f 13844 cat >>confdefs.h <<\EOF
21d1c967
GD
13845#define wxUSE_IOSTREAMH 1
13846EOF
788deba1 13847
90dd450c 13848 fi
ab9b9eab 13849
21d1c967 13850 ac_ext=c
21d1c967 13851ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
13852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13854ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 13855
21d1c967 13856 fi
ab9b9eab 13857
7b4a847f
RR
13858 echo "$as_me:13858: checking if C++ compiler supports bool" >&5
13859echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
13860if test "${wx_cv_cpp_bool+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 13862else
579d8138 13863
7b4a847f
RR
13864 ac_ext=cc
13865ac_cpp='$CXXCPP $CPPFLAGS'
13866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 13869
7b4a847f
RR
13870 cat >conftest.$ac_ext <<_ACEOF
13871#line 13871 "configure"
ab9b9eab 13872#include "confdefs.h"
21d1c967 13873
7b4a847f
RR
13874int
13875main ()
13876{
21d1c967
GD
13877
13878 bool b = true;
13879
13880 return 0;
7b4a847f
RR
13881
13882 ;
13883 return 0;
13884}
13885_ACEOF
13886rm -f conftest.$ac_objext
13887if { (eval echo "$as_me:13887: \"$ac_compile\"") >&5
13888 (eval $ac_compile) 2>&5
13889 ac_status=$?
13890 echo "$as_me:13890: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (eval echo "$as_me:13893: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:13896: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898
21d1c967 13899 wx_cv_cpp_bool=yes
7b4a847f 13900
698dcdb6 13901else
7b4a847f
RR
13902 echo "$as_me: failed program was:" >&5
13903cat conftest.$ac_ext >&5
13904
21d1c967 13905 wx_cv_cpp_bool=no
7b4a847f 13906
698dcdb6 13907fi
7b4a847f 13908rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
13909
13910 ac_ext=c
21d1c967 13911ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
13912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13914ac_compiler_gnu=$ac_cv_c_compiler_gnu
21d1c967 13915
698dcdb6 13916fi
7b4a847f
RR
13917echo "$as_me:13917: result: $wx_cv_cpp_bool" >&5
13918echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
13919
13920 if test "$wx_cv_cpp_bool" = "yes"; then
7b4a847f 13921 cat >>confdefs.h <<\EOF
21d1c967 13922#define HAVE_BOOL 1
90dd450c 13923EOF
ab9b9eab 13924
21d1c967
GD
13925 fi
13926
7b4a847f
RR
13927 echo "$as_me:13927: checking if C++ compiler supports the explicit keyword" >&5
13928echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
13929if test "${wx_cv_explicit+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 13931else
579d8138 13932
7b4a847f
RR
13933 ac_ext=cc
13934ac_cpp='$CXXCPP $CPPFLAGS'
13935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 13938
7b4a847f
RR
13939 cat >conftest.$ac_ext <<_ACEOF
13940#line 13940 "configure"
986ecc86
VZ
13941#include "confdefs.h"
13942
13943 class Foo { public: explicit Foo(int) {} };
7b4a847f
RR
13944
13945int
13946main ()
13947{
986ecc86
VZ
13948
13949 return 0;
7b4a847f
RR
13950
13951 ;
13952 return 0;
13953}
13954_ACEOF
13955rm -f conftest.$ac_objext
13956if { (eval echo "$as_me:13956: \"$ac_compile\"") >&5
13957 (eval $ac_compile) 2>&5
13958 ac_status=$?
13959 echo "$as_me:13959: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
13961 { ac_try='test -s conftest.$ac_objext'
13962 { (eval echo "$as_me:13962: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:13965: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967
13968 cat >conftest.$ac_ext <<_ACEOF
13969#line 13969 "configure"
986ecc86
VZ
13970#include "confdefs.h"
13971
13972 class Foo { public: explicit Foo(int) {} };
13973 static void TakeFoo(const Foo& foo) { }
7b4a847f
RR
13974
13975int
13976main ()
13977{
986ecc86
VZ
13978
13979 TakeFoo(17);
13980 return 0;
7b4a847f
RR
13981
13982 ;
13983 return 0;
13984}
13985_ACEOF
13986rm -f conftest.$ac_objext
13987if { (eval echo "$as_me:13987: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>&5
13989 ac_status=$?
13990 echo "$as_me:13990: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -s conftest.$ac_objext'
13993 { (eval echo "$as_me:13993: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:13996: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
986ecc86
VZ
13998 wx_cv_explicit=no
13999else
7b4a847f
RR
14000 echo "$as_me: failed program was:" >&5
14001cat conftest.$ac_ext >&5
14002wx_cv_explicit=yes
14003
986ecc86 14004fi
7b4a847f
RR
14005rm -f conftest.$ac_objext conftest.$ac_ext
14006
986ecc86 14007else
7b4a847f
RR
14008 echo "$as_me: failed program was:" >&5
14009cat conftest.$ac_ext >&5
14010wx_cv_explicit=no
14011
986ecc86 14012fi
7b4a847f 14013rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
14014
14015 ac_ext=c
986ecc86 14016ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
14017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14019ac_compiler_gnu=$ac_cv_c_compiler_gnu
986ecc86 14020
986ecc86 14021fi
7b4a847f
RR
14022echo "$as_me:14022: result: $wx_cv_explicit" >&5
14023echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
14024
14025 if test "$wx_cv_explicit" = "yes"; then
7b4a847f 14026 cat >>confdefs.h <<\EOF
986ecc86
VZ
14027#define HAVE_EXPLICIT 1
14028EOF
14029
14030 fi
14031
21d1c967
GD
14032SEARCH_INCLUDE="\
14033 /usr/local/include \
14034 \
14035 /usr/Motif-1.2/include \
14036 /usr/Motif-2.1/include \
14037 \
14038 /usr/include/Motif1.2 \
14039 /opt/xpm/include/X11 \
14040 /opt/GBxpm/include/ \
14041 /opt/GBxpm/X11/include/ \
14042 \
14043 /usr/Motif1.2/include \
14044 /usr/dt/include \
14045 /usr/openwin/include \
14046 \
14047 /usr/include/Xm \
14048 \
14049 /usr/X11R6/include \
14050 /usr/X11R6.4/include \
14051 /usr/X11R5/include \
14052 /usr/X11R4/include \
14053 \
14054 /usr/include/X11R6 \
14055 /usr/include/X11R5 \
14056 /usr/include/X11R4 \
14057 \
14058 /usr/local/X11R6/include \
14059 /usr/local/X11R5/include \
14060 /usr/local/X11R4/include \
14061 \
14062 /usr/local/include/X11R6 \
14063 /usr/local/include/X11R5 \
14064 /usr/local/include/X11R4 \
14065 \
14066 /usr/X11/include \
14067 /usr/include/X11 \
14068 /usr/local/X11/include \
14069 /usr/local/include/X11 \
14070 \
14071 /usr/X386/include \
14072 /usr/x386/include \
14073 /usr/XFree86/include/X11 \
14074 \
14075 X:/XFree86/include \
14076 X:/XFree86/include/X11 \
14077 \
14078 /usr/include/gtk \
14079 /usr/local/include/gtk \
14080 /usr/include/glib \
14081 /usr/local/include/glib \
14082 \
14083 /usr/include/qt \
14084 /usr/local/include/qt \
14085 \
14086 /usr/include/windows \
14087 /usr/include/wine \
14088 /usr/local/include/wine \
14089 \
14090 /usr/unsupported/include \
14091 /usr/athena/include \
14092 /usr/local/x11r5/include \
14093 /usr/lpp/Xamples/include \
14094 \
14095 /usr/openwin/share/include \
14096 \
14097 /usr/include"
14098
14099SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
14100
7b4a847f 14101cat >confcache <<\_ACEOF
21d1c967
GD
14102# This file is a shell script that caches the results of configure
14103# tests run on this system so they can be shared between configure
7b4a847f
RR
14104# scripts and configure runs, see configure's option --config-cache.
14105# It is not useful on other systems. If it contains results you don't
14106# want to keep, you may remove or edit it.
21d1c967 14107#
7b4a847f
RR
14108# config.status only pays attention to the cache file if you give it
14109# the --recheck option to rerun configure.
21d1c967 14110#
7b4a847f
RR
14111# `ac_cv_env_foo' variables (set or unset) will be overriden when
14112# loading this file, other *unset* `ac_cv_foo' will be assigned the
14113# following values.
14114
14115_ACEOF
14116
21d1c967
GD
14117# The following way of writing the cache mishandles newlines in values,
14118# but we know of no workaround that is simple, portable, and efficient.
14119# So, don't put newlines in cache variables' values.
14120# Ultrix sh set writes to stderr and can't be redirected directly,
14121# and sets the high bit in the cache file unless we assign to the vars.
7b4a847f
RR
14122{
14123 (set) 2>&1 |
14124 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14125 *ac_space=\ *)
14126 # `set' does not quote correctly, so add quotes (double-quote
14127 # substitution turns \\\\ into \\, and sed turns \\ into \).
14128 sed -n \
14129 "s/'/'\\\\''/g;
14130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14131 ;;
14132 *)
14133 # `set' quotes correctly as required by POSIX, so do not add quotes.
14134 sed -n \
14135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14136 ;;
14137 esac;
14138} |
14139 sed '
14140 t clear
14141 : clear
14142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14143 t end
14144 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14145 : end' >>confcache
14146if cmp -s $cache_file confcache; then :; else
21d1c967 14147 if test -w $cache_file; then
7b4a847f
RR
14148 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14149 cat confcache >$cache_file
21d1c967
GD
14150 else
14151 echo "not updating unwritable cache $cache_file"
14152 fi
ab9b9eab 14153fi
21d1c967 14154rm -f confcache
ab9b9eab 14155
579d8138 14156if test "$USE_LINUX" = 1; then
7b4a847f
RR
14157 echo "$as_me:14157: checking for glibc 2.1 or later" >&5
14158echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
14159if test "${wx_cv_lib_glibc21+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14161else
14162
14163 cat >conftest.$ac_ext <<_ACEOF
14164#line 14164 "configure"
ab9b9eab 14165#include "confdefs.h"
21d1c967 14166#include <features.h>
7b4a847f
RR
14167int
14168main ()
14169{
ab9b9eab 14170
21d1c967
GD
14171 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
14172 #error not glibc2.1
14173 #endif
7b4a847f
RR
14174
14175 ;
14176 return 0;
14177}
14178_ACEOF
14179rm -f conftest.$ac_objext
14180if { (eval echo "$as_me:14180: \"$ac_compile\"") >&5
14181 (eval $ac_compile) 2>&5
14182 ac_status=$?
14183 echo "$as_me:14183: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:14186: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:14189: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191
21d1c967 14192 wx_cv_lib_glibc21=yes
7b4a847f 14193
698dcdb6 14194else
7b4a847f
RR
14195 echo "$as_me: failed program was:" >&5
14196cat conftest.$ac_ext >&5
14197
21d1c967 14198 wx_cv_lib_glibc21=no
7b4a847f 14199
328a083c 14200fi
7b4a847f 14201rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 14202
7b4a847f
RR
14203fi
14204echo "$as_me:14204: result: $wx_cv_lib_glibc21" >&5
14205echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 14206 if test "$wx_cv_lib_glibc21" = "yes"; then
7b4a847f 14207 cat >>confdefs.h <<\EOF
21d1c967
GD
14208#define wxHAVE_GLIBC2 1
14209EOF
1e487827 14210
90dd450c 14211 fi
ab9b9eab
VZ
14212fi
14213
5c0a20c3
VZ
14214if test "x$wx_cv_lib_glibc21" = "xyes"; then
14215 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
7b4a847f 14216 cat >>confdefs.h <<\EOF
5c0a20c3
VZ
14217#define _GNU_SOURCE 1
14218EOF
14219
14220 fi
14221fi
14222
21d1c967
GD
14223REGEX_INCLUDE=
14224if test "$wxUSE_REGEX" != "no"; then
7b4a847f 14225 cat >>confdefs.h <<\EOF
21d1c967
GD
14226#define wxUSE_REGEX 1
14227EOF
698dcdb6 14228
21d1c967 14229 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
7b4a847f
RR
14230 echo "$as_me:14230: checking for regex.h" >&5
14231echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
14232if test "${ac_cv_header_regex_h+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234else
14235 cat >conftest.$ac_ext <<_ACEOF
14236#line 14236 "configure"
21d1c967
GD
14237#include "confdefs.h"
14238#include <regex.h>
7b4a847f
RR
14239_ACEOF
14240if { (eval echo "$as_me:14240: \"$ac_cpp conftest.$ac_ext\"") >&5
14241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14242 ac_status=$?
14243 egrep -v '^ *\+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:14246: \$? = $ac_status" >&5
14247 (exit $ac_status); } >/dev/null; then
14248 if test -s conftest.err; then
14249 ac_cpp_err=$ac_c_preproc_warn_flag
14250 else
14251 ac_cpp_err=
14252 fi
698dcdb6 14253else
7b4a847f
RR
14254 ac_cpp_err=yes
14255fi
14256if test -z "$ac_cpp_err"; then
14257 ac_cv_header_regex_h=yes
14258else
14259 echo "$as_me: failed program was:" >&5
21d1c967 14260 cat conftest.$ac_ext >&5
7b4a847f 14261 ac_cv_header_regex_h=no
21d1c967 14262fi
7b4a847f 14263rm -f conftest.err conftest.$ac_ext
698dcdb6 14264fi
7b4a847f
RR
14265echo "$as_me:14265: result: $ac_cv_header_regex_h" >&5
14266echo "${ECHO_T}$ac_cv_header_regex_h" >&6
14267if test $ac_cv_header_regex_h = yes; then
14268
14269for ac_func in regcomp
21d1c967 14270do
7b4a847f
RR
14271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14272echo "$as_me:14272: checking for $ac_func" >&5
14273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14274if eval "test \"\${$as_ac_var+set}\" = set"; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276else
14277 cat >conftest.$ac_ext <<_ACEOF
14278#line 14278 "configure"
579d8138 14279#include "confdefs.h"
7b4a847f
RR
14280/* System header to define __stub macros and hopefully few prototypes
14281else
14282 which can conflict with char $ac_func (); below. */
21d1c967
GD
14283#include <assert.h>
14284/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
14285#ifdef __cplusplus
14286extern "C"
14287#endif
21d1c967 14288/* We use char because int might match the return type of a gcc2
7b4a847f
RR
14289 builtin and then its argument prototype would still apply. */
14290char $ac_func ();
14291char (*f) ();
90dd450c 14292
7b4a847f
RR
14293int
14294main ()
14295{
21d1c967
GD
14296/* The GNU C library defines this for functions which it implements
14297 to always fail with ENOSYS. Some functions are actually named
14298 something starting with __ and the normal name is an alias. */
14299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14300choke me
14301#else
7b4a847f 14302f = $ac_func;
21d1c967 14303#endif
90dd450c 14304
7b4a847f
RR
14305 ;
14306 return 0;
14307}
14308_ACEOF
14309rm -f conftest.$ac_objext conftest$ac_exeext
14310if { (eval echo "$as_me:14310: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14312 ac_status=$?
14313 echo "$as_me:14313: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -s conftest$ac_exeext'
14316 { (eval echo "$as_me:14316: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:14319: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 eval "$as_ac_var=yes"
14322else
14323 echo "$as_me: failed program was:" >&5
14324cat conftest.$ac_ext >&5
14325eval "$as_ac_var=no"
14326fi
14327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14328fi
14329echo "$as_me:14329: result: `eval echo '${'$as_ac_var'}'`" >&5
14330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14331if test `eval echo '${'$as_ac_var'}'` = yes; then
14332 cat >>confdefs.h <<EOF
14333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21d1c967 14334EOF
90dd450c 14335
698dcdb6 14336fi
21d1c967
GD
14337done
14338
ab9b9eab
VZ
14339fi
14340
21d1c967
GD
14341 if test "x$ac_cv_func_regcomp" != "xyes"; then
14342 if test "$wxUSE_REGEX" = "sys" ; then
7b4a847f
RR
14343 { { echo "$as_me:14343: error: system regex library not found! Use --with-regex to use built-in version" >&5
14344echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
14345 { (exit 1); exit 1; }; }
21d1c967 14346 else
7b4a847f
RR
14347 { echo "$as_me:14347: WARNING: system regex library not found, will use built-in instead" >&5
14348echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
14349 wxUSE_REGEX=builtin
14350 fi
14351 else
14352 wxUSE_REGEX=sys
14353 fi
ab9b9eab 14354 fi
90dd450c 14355
21d1c967
GD
14356 if test "$wxUSE_REGEX" = "builtin" ; then
14357 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 14358 fi
21d1c967 14359fi
90dd450c 14360
21d1c967
GD
14361ZLIB_INCLUDE=
14362ZLIB_LINK=
14363if test "$wxUSE_ZLIB" != "no" ; then
7b4a847f 14364 cat >>confdefs.h <<\EOF
21d1c967
GD
14365#define wxUSE_ZLIB 1
14366EOF
14367
21d1c967 14368 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
7b4a847f
RR
14369 echo "$as_me:14369: checking for zlib.h" >&5
14370echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
14371if test "${ac_cv_header_zlib_h+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373else
14374 cat >conftest.$ac_ext <<_ACEOF
14375#line 14375 "configure"
ab9b9eab 14376#include "confdefs.h"
21d1c967 14377#include <zlib.h>
7b4a847f
RR
14378_ACEOF
14379if { (eval echo "$as_me:14379: \"$ac_cpp conftest.$ac_ext\"") >&5
14380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14381 ac_status=$?
14382 egrep -v '^ *\+' conftest.er1 >conftest.err
14383 rm -f conftest.er1
14384 cat conftest.err >&5
14385 echo "$as_me:14385: \$? = $ac_status" >&5
14386 (exit $ac_status); } >/dev/null; then
14387 if test -s conftest.err; then
14388 ac_cpp_err=$ac_c_preproc_warn_flag
14389 else
14390 ac_cpp_err=
14391 fi
14392else
14393 ac_cpp_err=yes
14394fi
14395if test -z "$ac_cpp_err"; then
14396 ac_cv_header_zlib_h=yes
328a083c 14397else
7b4a847f 14398 echo "$as_me: failed program was:" >&5
698dcdb6 14399 cat conftest.$ac_ext >&5
7b4a847f 14400 ac_cv_header_zlib_h=no
698dcdb6 14401fi
7b4a847f 14402rm -f conftest.err conftest.$ac_ext
ab9b9eab 14403fi
7b4a847f
RR
14404echo "$as_me:14404: result: $ac_cv_header_zlib_h" >&5
14405echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
14406if test $ac_cv_header_zlib_h = yes; then
14407 echo "$as_me:14407: checking for deflate in -lz" >&5
14408echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
14409if test "${ac_cv_lib_z_deflate+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14411else
7b4a847f 14412 ac_check_lib_save_LIBS=$LIBS
21d1c967 14413LIBS="-lz $LIBS"
7b4a847f
RR
14414cat >conftest.$ac_ext <<_ACEOF
14415#line 14415 "configure"
ab9b9eab 14416#include "confdefs.h"
7b4a847f 14417
21d1c967 14418/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
14419#ifdef __cplusplus
14420extern "C"
14421#endif
21d1c967 14422/* We use char because int might match the return type of a gcc2
7b4a847f
RR
14423 builtin and then its argument prototype would still apply. */
14424char deflate ();
14425int
14426main ()
14427{
14428deflate ();
14429 ;
14430 return 0;
14431}
14432_ACEOF
14433rm -f conftest.$ac_objext conftest$ac_exeext
14434if { (eval echo "$as_me:14434: \"$ac_link\"") >&5
14435 (eval $ac_link) 2>&5
14436 ac_status=$?
14437 echo "$as_me:14437: \$? = $ac_status" >&5
14438 (exit $ac_status); } &&
14439 { ac_try='test -s conftest$ac_exeext'
14440 { (eval echo "$as_me:14440: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:14443: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 ac_cv_lib_z_deflate=yes
14446else
14447 echo "$as_me: failed program was:" >&5
14448cat conftest.$ac_ext >&5
14449ac_cv_lib_z_deflate=no
14450fi
14451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14452LIBS=$ac_check_lib_save_LIBS
14453fi
14454echo "$as_me:14454: result: $ac_cv_lib_z_deflate" >&5
14455echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
14456if test $ac_cv_lib_z_deflate = yes; then
21d1c967 14457 ZLIB_LINK=" -lz"
90dd450c 14458fi
698dcdb6 14459
698dcdb6 14460fi
698dcdb6 14461
21d1c967
GD
14462 if test "x$ZLIB_LINK" = "x" ; then
14463 if test "$wxUSE_ZLIB" = "sys" ; then
7b4a847f
RR
14464 { { echo "$as_me:14464: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" >&5
14465echo "$as_me: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" >&2;}
14466 { (exit 1); exit 1; }; }
21d1c967 14467 else
7b4a847f
RR
14468 { echo "$as_me:14468: WARNING: system zlib compression library not found, will use built-in instead" >&5
14469echo "$as_me: WARNING: system zlib compression library not found, will use built-in instead" >&2;}
21d1c967
GD
14470 wxUSE_ZLIB=builtin
14471 fi
14472 else
14473 wxUSE_ZLIB=sys
14474 fi
14475 fi
14476
14477 if test "$wxUSE_ZLIB" = "builtin" ; then
14478 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14479 fi
ab9b9eab
VZ
14480fi
14481
21d1c967
GD
14482PNG_INCLUDE=
14483PNG_LINK=
14484if test "$wxUSE_LIBPNG" != "no" ; then
7b4a847f 14485 cat >>confdefs.h <<\EOF
21d1c967
GD
14486#define wxUSE_LIBPNG 1
14487EOF
90dd450c 14488
21d1c967 14489 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
7b4a847f
RR
14490 { echo "$as_me:14490: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
14491echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
14492 wxUSE_LIBPNG=sys
14493 fi
90dd450c 14494
21d1c967 14495 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
7b4a847f
RR
14496 { echo "$as_me:14496: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
14497echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
14498 wxUSE_LIBPNG=builtin
14499 fi
14500
14501 if test "$wxUSE_MGL" != 1 ; then
14502 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
7b4a847f
RR
14503 echo "$as_me:14503: checking for png.h" >&5
14504echo $ECHO_N "checking for png.h... $ECHO_C" >&6
14505if test "${ac_cv_header_png_h+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14507else
14508 cat >conftest.$ac_ext <<_ACEOF
14509#line 14509 "configure"
21d1c967
GD
14510#include "confdefs.h"
14511#include <png.h>
7b4a847f
RR
14512_ACEOF
14513if { (eval echo "$as_me:14513: \"$ac_cpp conftest.$ac_ext\"") >&5
14514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14515 ac_status=$?
14516 egrep -v '^ *\+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:14519: \$? = $ac_status" >&5
14520 (exit $ac_status); } >/dev/null; then
14521 if test -s conftest.err; then
14522 ac_cpp_err=$ac_c_preproc_warn_flag
14523 else
14524 ac_cpp_err=
14525 fi
14526else
14527 ac_cpp_err=yes
14528fi
14529if test -z "$ac_cpp_err"; then
14530 ac_cv_header_png_h=yes
90dd450c 14531else
7b4a847f 14532 echo "$as_me: failed program was:" >&5
90dd450c 14533 cat conftest.$ac_ext >&5
7b4a847f 14534 ac_cv_header_png_h=no
90dd450c 14535fi
7b4a847f 14536rm -f conftest.err conftest.$ac_ext
90dd450c 14537fi
7b4a847f
RR
14538echo "$as_me:14538: result: $ac_cv_header_png_h" >&5
14539echo "${ECHO_T}$ac_cv_header_png_h" >&6
14540if test $ac_cv_header_png_h = yes; then
14541 echo "$as_me:14541: checking for png_check_sig in -lpng" >&5
14542echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
14543if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14545else
7b4a847f 14546 ac_check_lib_save_LIBS=$LIBS
21d1c967 14547LIBS="-lpng -lz -lm $LIBS"
7b4a847f
RR
14548cat >conftest.$ac_ext <<_ACEOF
14549#line 14549 "configure"
90dd450c 14550#include "confdefs.h"
7b4a847f 14551
21d1c967 14552/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
14553#ifdef __cplusplus
14554extern "C"
14555#endif
21d1c967 14556/* We use char because int might match the return type of a gcc2
7b4a847f
RR
14557 builtin and then its argument prototype would still apply. */
14558char png_check_sig ();
14559int
14560main ()
14561{
14562png_check_sig ();
14563 ;
14564 return 0;
14565}
14566_ACEOF
14567rm -f conftest.$ac_objext conftest$ac_exeext
14568if { (eval echo "$as_me:14568: \"$ac_link\"") >&5
14569 (eval $ac_link) 2>&5
14570 ac_status=$?
14571 echo "$as_me:14571: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -s conftest$ac_exeext'
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 ac_cv_lib_png_png_check_sig=yes
14580else
14581 echo "$as_me: failed program was:" >&5
14582cat conftest.$ac_ext >&5
14583ac_cv_lib_png_png_check_sig=no
14584fi
14585rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14586LIBS=$ac_check_lib_save_LIBS
14587fi
14588echo "$as_me:14588: result: $ac_cv_lib_png_png_check_sig" >&5
14589echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
14590if test $ac_cv_lib_png_png_check_sig = yes; then
21d1c967 14591 PNG_LINK=" -lpng"
90dd450c
VZ
14592fi
14593
90dd450c
VZ
14594fi
14595
21d1c967
GD
14596 if test "x$PNG_LINK" = "x" ; then
14597 if test "$wxUSE_LIBPNG" = "sys" ; then
7b4a847f
RR
14598 { { echo "$as_me:14598: error: system png library not found! Use --with-libpng=builtin to use built-in version" >&5
14599echo "$as_me: error: system png library not found! Use --with-libpng=builtin to use built-in version" >&2;}
14600 { (exit 1); exit 1; }; }
21d1c967 14601 else
7b4a847f
RR
14602 { echo "$as_me:14602: WARNING: system png library not found, will use built-in instead" >&5
14603echo "$as_me: WARNING: system png library not found, will use built-in instead" >&2;}
21d1c967
GD
14604 wxUSE_LIBPNG=builtin
14605 fi
14606 else
14607 wxUSE_LIBPNG=yes
14608 fi
14609 fi
14610 fi
90dd450c 14611
21d1c967
GD
14612 if test "$wxUSE_LIBPNG" = "builtin" ; then
14613 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14614 fi
90dd450c 14615
21d1c967 14616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
14617fi
14618
21d1c967
GD
14619JPEG_INCLUDE=
14620JPEG_LINK=
14621if test "$wxUSE_LIBJPEG" != "no" ; then
7b4a847f 14622 cat >>confdefs.h <<\EOF
21d1c967
GD
14623#define wxUSE_LIBJPEG 1
14624EOF
90dd450c 14625
21d1c967 14626 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
7b4a847f
RR
14627 { echo "$as_me:14627: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
14628echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
14629 wxUSE_LIBJPEG=sys
14630 fi
90dd450c 14631
21d1c967
GD
14632 if test "$wxUSE_MGL" != 1 ; then
14633 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
7b4a847f
RR
14634 echo "$as_me:14634: checking for jpeglib.h" >&5
14635echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
14636 if test "${ac_cv_header_jpeglib_h+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14638else
7b4a847f
RR
14639 cat >conftest.$ac_ext <<_ACEOF
14640#line 14640 "configure"
21d1c967 14641#include "confdefs.h"
90dd450c 14642
21d1c967
GD
14643 #undef HAVE_STDLIB_H
14644 #include <stdio.h>
14645 #include <jpeglib.h>
90dd450c 14646
7b4a847f
RR
14647int
14648main ()
14649{
14650
14651 ;
14652 return 0;
14653}
14654_ACEOF
14655rm -f conftest.$ac_objext
14656if { (eval echo "$as_me:14656: \"$ac_compile\"") >&5
14657 (eval $ac_compile) 2>&5
14658 ac_status=$?
14659 echo "$as_me:14659: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -s conftest.$ac_objext'
14662 { (eval echo "$as_me:14662: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:14665: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
21d1c967 14667 ac_cv_header_jpeglib_h=yes
90dd450c 14668else
7b4a847f
RR
14669 echo "$as_me: failed program was:" >&5
14670cat conftest.$ac_ext >&5
14671ac_cv_header_jpeglib_h=no
14672
90dd450c 14673fi
7b4a847f
RR
14674rm -f conftest.$ac_objext conftest.$ac_ext
14675
90dd450c
VZ
14676fi
14677
7b4a847f
RR
14678 echo "$as_me:14678: result: $ac_cv_header_jpeglib_h" >&5
14679echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 14680
21d1c967 14681 if test "$ac_cv_header_jpeglib_h" = "yes"; then
7b4a847f
RR
14682 echo "$as_me:14682: checking for jpeg_read_header in -ljpeg" >&5
14683echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
14684if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14686else
7b4a847f 14687 ac_check_lib_save_LIBS=$LIBS
21d1c967 14688LIBS="-ljpeg $LIBS"
7b4a847f
RR
14689cat >conftest.$ac_ext <<_ACEOF
14690#line 14690 "configure"
21d1c967 14691#include "confdefs.h"
7b4a847f 14692
21d1c967 14693/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
14694#ifdef __cplusplus
14695extern "C"
14696#endif
21d1c967 14697/* We use char because int might match the return type of a gcc2
7b4a847f
RR
14698 builtin and then its argument prototype would still apply. */
14699char jpeg_read_header ();
14700int
14701main ()
14702{
14703jpeg_read_header ();
14704 ;
14705 return 0;
14706}
14707_ACEOF
14708rm -f conftest.$ac_objext conftest$ac_exeext
14709if { (eval echo "$as_me:14709: \"$ac_link\"") >&5
14710 (eval $ac_link) 2>&5
14711 ac_status=$?
14712 echo "$as_me:14712: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -s conftest$ac_exeext'
14715 { (eval echo "$as_me:14715: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14717 ac_status=$?
14718 echo "$as_me:14718: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 ac_cv_lib_jpeg_jpeg_read_header=yes
14721else
14722 echo "$as_me: failed program was:" >&5
14723cat conftest.$ac_ext >&5
14724ac_cv_lib_jpeg_jpeg_read_header=no
14725fi
14726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14727LIBS=$ac_check_lib_save_LIBS
14728fi
14729echo "$as_me:14729: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
14730echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
14731if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 14732 JPEG_LINK=" -ljpeg"
90dd450c
VZ
14733fi
14734
21d1c967 14735 fi
90dd450c 14736
21d1c967
GD
14737 if test "x$JPEG_LINK" = "x" ; then
14738 if test "$wxUSE_LIBJPEG" = "sys" ; then
7b4a847f
RR
14739 { { echo "$as_me:14739: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
14740echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
14741 { (exit 1); exit 1; }; }
21d1c967 14742 else
7b4a847f
RR
14743 { echo "$as_me:14743: WARNING: system jpeg library not found, will use built-in instead" >&5
14744echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
14745 wxUSE_LIBJPEG=builtin
14746 fi
14747 else
14748 wxUSE_LIBJPEG=sys
14749 fi
14750 fi
14751 fi
90dd450c 14752
21d1c967
GD
14753 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14754 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14755 fi
14756fi
90dd450c 14757
21d1c967
GD
14758TIFF_INCLUDE=
14759TIFF_LINK=
14760if test "$wxUSE_LIBTIFF" != "no" ; then
7b4a847f 14761 cat >>confdefs.h <<\EOF
21d1c967
GD
14762#define wxUSE_LIBTIFF 1
14763EOF
14764
21d1c967 14765 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
7b4a847f
RR
14766 echo "$as_me:14766: checking for tiffio.h" >&5
14767echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
14768if test "${ac_cv_header_tiffio_h+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770else
14771 cat >conftest.$ac_ext <<_ACEOF
14772#line 14772 "configure"
21d1c967
GD
14773#include "confdefs.h"
14774#include <tiffio.h>
7b4a847f
RR
14775_ACEOF
14776if { (eval echo "$as_me:14776: \"$ac_cpp conftest.$ac_ext\"") >&5
14777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14778 ac_status=$?
14779 egrep -v '^ *\+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:14782: \$? = $ac_status" >&5
14783 (exit $ac_status); } >/dev/null; then
14784 if test -s conftest.err; then
14785 ac_cpp_err=$ac_c_preproc_warn_flag
14786 else
14787 ac_cpp_err=
14788 fi
14789else
14790 ac_cpp_err=yes
14791fi
14792if test -z "$ac_cpp_err"; then
14793 ac_cv_header_tiffio_h=yes
21d1c967 14794else
7b4a847f 14795 echo "$as_me: failed program was:" >&5
21d1c967 14796 cat conftest.$ac_ext >&5
7b4a847f 14797 ac_cv_header_tiffio_h=no
21d1c967 14798fi
7b4a847f 14799rm -f conftest.err conftest.$ac_ext
21d1c967 14800fi
7b4a847f
RR
14801echo "$as_me:14801: result: $ac_cv_header_tiffio_h" >&5
14802echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
14803if test $ac_cv_header_tiffio_h = yes; then
14804 echo "$as_me:14804: checking for TIFFError in -ltiff" >&5
14805echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
14806if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 14808else
7b4a847f 14809 ac_check_lib_save_LIBS=$LIBS
21d1c967 14810LIBS="-ltiff -lm $LIBS"
7b4a847f
RR
14811cat >conftest.$ac_ext <<_ACEOF
14812#line 14812 "configure"
ab9b9eab 14813#include "confdefs.h"
7b4a847f 14814
ab9b9eab 14815/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
14816#ifdef __cplusplus
14817extern "C"
14818#endif
ab9b9eab 14819/* We use char because int might match the return type of a gcc2
7b4a847f
RR
14820 builtin and then its argument prototype would still apply. */
14821char TIFFError ();
14822int
14823main ()
14824{
14825TIFFError ();
14826 ;
14827 return 0;
14828}
14829_ACEOF
14830rm -f conftest.$ac_objext conftest$ac_exeext
14831if { (eval echo "$as_me:14831: \"$ac_link\"") >&5
14832 (eval $ac_link) 2>&5
14833 ac_status=$?
14834 echo "$as_me:14834: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -s conftest$ac_exeext'
14837 { (eval echo "$as_me:14837: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14839 ac_status=$?
14840 echo "$as_me:14840: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_cv_lib_tiff_TIFFError=yes
14843else
14844 echo "$as_me: failed program was:" >&5
14845cat conftest.$ac_ext >&5
14846ac_cv_lib_tiff_TIFFError=no
14847fi
14848rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14849LIBS=$ac_check_lib_save_LIBS
14850fi
14851echo "$as_me:14851: result: $ac_cv_lib_tiff_TIFFError" >&5
14852echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
14853if test $ac_cv_lib_tiff_TIFFError = yes; then
21d1c967 14854 TIFF_LINK=" -ltiff"
ab9b9eab
VZ
14855fi
14856
21d1c967 14857fi
cd6d6d5b 14858
21d1c967
GD
14859 if test "x$TIFF_LINK" = "x" ; then
14860 if test "$wxUSE_LIBTIFF" = "sys" ; then
7b4a847f
RR
14861 { { echo "$as_me:14861: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
14862echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
14863 { (exit 1); exit 1; }; }
90dd450c 14864 else
7b4a847f
RR
14865 { echo "$as_me:14865: WARNING: system tiff library not found, will use built-in instead" >&5
14866echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 14867 wxUSE_LIBTIFF=builtin
d8356fa3 14868 fi
d8356fa3 14869 else
21d1c967 14870 wxUSE_LIBTIFF=sys
d8356fa3 14871 fi
21d1c967 14872 fi
d8356fa3 14873
21d1c967
GD
14874 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14875 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 14876 fi
21d1c967 14877fi
10f2d63a 14878
21d1c967 14879AFMINSTALL=
90dd450c 14880
21d1c967
GD
14881TOOLKIT=
14882TOOLKIT_INCLUDE=
14883WIDGET_SET=
14884
14885if test "$USE_WIN32" = 1 ; then
7b4a847f
RR
14886
14887for ac_header in w32api.h
21d1c967 14888do
7b4a847f
RR
14889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14890echo "$as_me:14890: checking for $ac_header" >&5
14891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14892if eval "test \"\${$as_ac_Header+set}\" = set"; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894else
14895 cat >conftest.$ac_ext <<_ACEOF
14896#line 14896 "configure"
f79bd02d 14897#include "confdefs.h"
7b4a847f
RR
14898#include <$ac_header>
14899_ACEOF
14900if { (eval echo "$as_me:14900: \"$ac_cpp conftest.$ac_ext\"") >&5
14901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14902 ac_status=$?
14903 egrep -v '^ *\+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
14906 echo "$as_me:14906: \$? = $ac_status" >&5
14907 (exit $ac_status); } >/dev/null; then
14908 if test -s conftest.err; then
14909 ac_cpp_err=$ac_c_preproc_warn_flag
14910 else
14911 ac_cpp_err=
14912 fi
14913else
14914 ac_cpp_err=yes
14915fi
14916if test -z "$ac_cpp_err"; then
14917 eval "$as_ac_Header=yes"
f79bd02d 14918else
7b4a847f 14919 echo "$as_me: failed program was:" >&5
f79bd02d 14920 cat conftest.$ac_ext >&5
7b4a847f 14921 eval "$as_ac_Header=no"
f79bd02d 14922fi
7b4a847f 14923rm -f conftest.err conftest.$ac_ext
21d1c967 14924fi
7b4a847f
RR
14925echo "$as_me:14925: result: `eval echo '${'$as_ac_Header'}'`" >&5
14926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14927if test `eval echo '${'$as_ac_Header'}'` = yes; then
14928 cat >>confdefs.h <<EOF
14929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21d1c967 14930EOF
7b4a847f 14931
21d1c967
GD
14932fi
14933done
f79bd02d 14934
7b4a847f
RR
14935 echo "$as_me:14935: checking for windows.h" >&5
14936echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
14937if test "${ac_cv_header_windows_h+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14939else
7b4a847f
RR
14940 cat >conftest.$ac_ext <<_ACEOF
14941#line 14941 "configure"
90dd450c 14942#include "confdefs.h"
21d1c967 14943#include <windows.h>
7b4a847f
RR
14944_ACEOF
14945if { (eval echo "$as_me:14945: \"$ac_cpp conftest.$ac_ext\"") >&5
14946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14947 ac_status=$?
14948 egrep -v '^ *\+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
14951 echo "$as_me:14951: \$? = $ac_status" >&5
14952 (exit $ac_status); } >/dev/null; then
14953 if test -s conftest.err; then
14954 ac_cpp_err=$ac_c_preproc_warn_flag
14955 else
14956 ac_cpp_err=
14957 fi
14958else
14959 ac_cpp_err=yes
14960fi
14961if test -z "$ac_cpp_err"; then
14962 ac_cv_header_windows_h=yes
90dd450c 14963else
7b4a847f 14964 echo "$as_me: failed program was:" >&5
90dd450c 14965 cat conftest.$ac_ext >&5
7b4a847f 14966 ac_cv_header_windows_h=no
90dd450c 14967fi
7b4a847f 14968rm -f conftest.err conftest.$ac_ext
90dd450c 14969fi
7b4a847f
RR
14970echo "$as_me:14970: result: $ac_cv_header_windows_h" >&5
14971echo "${ECHO_T}$ac_cv_header_windows_h" >&6
14972if test $ac_cv_header_windows_h = yes; then
21d1c967 14973 :
90dd450c 14974else
21d1c967 14975
7b4a847f
RR
14976 { { echo "$as_me:14976: error: please set CFLAGS to contain the location of windows.h" >&5
14977echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
14978 { (exit 1); exit 1; }; }
f79bd02d 14979
7b4a847f 14980fi
328a083c 14981
7b4a847f
RR
14982 echo "$as_me:14982: checking if w32api has good enough MSIE support" >&5
14983echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
14984if test "${wx_cv_w32api_win32_ie+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 14986else
7b4a847f
RR
14987
14988 cat >conftest.$ac_ext <<_ACEOF
14989#line 14989 "configure"
f79bd02d 14990#include "confdefs.h"
21d1c967 14991#include <w32api.h>
7b4a847f
RR
14992int
14993main ()
14994{
f79bd02d 14995
21d1c967
GD
14996 #define wxCHECK_W32API_VERSION( major, minor ) \
14997 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
14998 && ( ( __W32API_MAJOR_VERSION > (major) ) \
14999 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
15000
15001 #if !wxCHECK_W32API_VERSION(1,1)
15002 #error You need w32api 1.1 or newer
15003 #endif
7b4a847f
RR
15004
15005 ;
15006 return 0;
15007}
15008_ACEOF
15009rm -f conftest.$ac_objext
15010if { (eval echo "$as_me:15010: \"$ac_compile\"") >&5
15011 (eval $ac_compile) 2>&5
15012 ac_status=$?
15013 echo "$as_me:15013: \$? = $ac_status" >&5
15014 (exit $ac_status); } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (eval echo "$as_me:15016: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:15019: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021
21d1c967 15022 wx_cv_w32api_win32_ie=yes
7b4a847f 15023
f79bd02d 15024else
7b4a847f
RR
15025 echo "$as_me: failed program was:" >&5
15026cat conftest.$ac_ext >&5
15027
21d1c967 15028 wx_cv_w32api_win32_ie=no
7b4a847f 15029
328a083c 15030fi
7b4a847f 15031rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 15032
7b4a847f
RR
15033fi
15034echo "$as_me:15034: result: $wx_cv_w32api_win32_ie" >&5
15035echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
21d1c967
GD
15036 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
15037 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
15038 fi
f79bd02d 15039
21d1c967
GD
15040 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
15041
15042 case "${host}" in
15043 *-*-cygwin* )
15044 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
15045 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 15046 esac
f79bd02d 15047
21d1c967
GD
15048 if test "$wxUSE_ODBC" = "yes" ; then
15049 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
15050 fi
f79bd02d 15051
21d1c967
GD
15052 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
15053 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 15054fi
f79bd02d 15055
21d1c967
GD
15056if test "$wxUSE_GUI" = "yes"; then
15057 USE_GUI=1
f79bd02d 15058
21d1c967 15059 GUI_TK_LIBRARY=
f79bd02d 15060
21d1c967
GD
15061 WXGTK12=
15062 WXGTK127=
15063 WXGTK20=
f79bd02d 15064
21d1c967
GD
15065 if test "$wxUSE_MSW" = 1 ; then
15066 TOOLKIT=MSW
15067 GUIDIST=MSW_DIST
f79bd02d 15068
21d1c967
GD
15069 case "${host}" in
15070 *-*-mingw32* )
15071 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
15072 esac
f79bd02d
JS
15073 fi
15074
21d1c967 15075 if test "$wxUSE_GTK" = 1; then
7b4a847f
RR
15076 echo "$as_me:15076: checking for GTK+ version" >&5
15077echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
15078
15079 gtk_version_cached=1
7b4a847f
RR
15080 if test "${wx_cv_lib_gtk+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 15082else
7b4a847f 15083
21d1c967 15084 gtk_version_cached=0
7b4a847f
RR
15085 echo "$as_me:15085: result: " >&5
15086echo "${ECHO_T}" >&6
f79bd02d 15087
21d1c967
GD
15088 GTK_MODULES=
15089 if test "$wxUSE_THREADS" = "yes"; then
15090 GTK_MODULES=gthread
15091 fi
f79bd02d 15092
21d1c967
GD
15093 wx_cv_lib_gtk=
15094 if test "x$wxUSE_GTK2" = "xyes"; then
15095 # Check whether --enable-gtktest or --disable-gtktest was given.
15096if test "${enable_gtktest+set}" = set; then
15097 enableval="$enable_gtktest"
7b4a847f 15098
f79bd02d 15099else
21d1c967 15100 enable_gtktest=yes
7b4a847f 15101fi;
f79bd02d 15102
21d1c967
GD
15103 pkg_config_args=gtk+-2.0
15104 for module in . $GTK_MODULES
15105 do
15106 case "$module" in
7b4a847f 15107 gthread)
21d1c967
GD
15108 pkg_config_args="$pkg_config_args gthread-2.0"
15109 ;;
15110 esac
15111 done
15112
15113 no_gtk=""
f79bd02d 15114
21d1c967
GD
15115 # Extract the first word of "pkg-config", so it can be a program name with args.
15116set dummy pkg-config; ac_word=$2
7b4a847f
RR
15117echo "$as_me:15117: checking for $ac_word" >&5
15118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15119if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 15121else
7b4a847f
RR
15122 case $PKG_CONFIG in
15123 [\\/]* | ?:[\\/]*)
21d1c967
GD
15124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15125 ;;
21d1c967 15126 *)
7b4a847f
RR
15127 ac_save_IFS=$IFS; IFS=$ac_path_separator
15128ac_dummy="$PATH"
15129for ac_dir in $ac_dummy; do
15130 IFS=$ac_save_IFS
15131 test -z "$ac_dir" && ac_dir=.
15132 if $as_executable_p "$ac_dir/$ac_word"; then
15133 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
15134 echo "$as_me:15134: found $ac_dir/$ac_word" >&5
15135 break
15136fi
15137done
15138
21d1c967
GD
15139 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
15140 ;;
15141esac
f79bd02d 15142fi
7b4a847f
RR
15143PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15144
21d1c967 15145if test -n "$PKG_CONFIG"; then
7b4a847f
RR
15146 echo "$as_me:15146: result: $PKG_CONFIG" >&5
15147echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 15148else
7b4a847f
RR
15149 echo "$as_me:15149: result: no" >&5
15150echo "${ECHO_T}no" >&6
f79bd02d
JS
15151fi
15152
21d1c967
GD
15153 if test x$PKG_CONFIG != xno ; then
15154 if pkg-config --atleast-pkgconfig-version 0.7 ; then
15155 :
15156 else
15157 echo *** pkg-config too old; version 0.7 or better required.
15158 no_gtk=yes
15159 PKG_CONFIG=no
15160 fi
15161 else
15162 no_gtk=yes
15163 fi
f79bd02d 15164
21d1c967 15165 min_gtk_version=2.0.0
7b4a847f
RR
15166 echo "$as_me:15166: checking for GTK+ - version >= $min_gtk_version" >&5
15167echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 15168
21d1c967
GD
15169 if test x$PKG_CONFIG != xno ; then
15170 ## don't try to run the test against uninstalled libtool libs
15171 if $PKG_CONFIG --uninstalled $pkg_config_args; then
15172 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
15173 enable_gtktest=no
15174 fi
f79bd02d 15175
21d1c967
GD
15176 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
15177 :
15178 else
15179 no_gtk=yes
15180 fi
15181 fi
f79bd02d 15182
21d1c967
GD
15183 if test x"$no_gtk" = x ; then
15184 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
15185 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
15186 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15187 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15188 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15189 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15190 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15191 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15192 if test "x$enable_gtktest" = "xyes" ; then
15193 ac_save_CFLAGS="$CFLAGS"
15194 ac_save_LIBS="$LIBS"
15195 CFLAGS="$CFLAGS $GTK_CFLAGS"
15196 LIBS="$GTK_LIBS $LIBS"
15197 rm -f conf.gtktest
15198 if test "$cross_compiling" = yes; then
15199 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 15200else
7b4a847f
RR
15201 cat >conftest.$ac_ext <<_ACEOF
15202#line 15202 "configure"
f79bd02d 15203#include "confdefs.h"
f79bd02d 15204
21d1c967
GD
15205#include <gtk/gtk.h>
15206#include <stdio.h>
15207#include <stdlib.h>
f79bd02d 15208
7b4a847f 15209int
21d1c967
GD
15210main ()
15211{
15212 int major, minor, micro;
15213 char *tmp_version;
f79bd02d 15214
21d1c967 15215 system ("touch conf.gtktest");
f79bd02d 15216
21d1c967
GD
15217 /* HP/UX 9 (%@#!) writes to sscanf strings */
15218 tmp_version = g_strdup("$min_gtk_version");
15219 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15220 printf("%s, bad version string\n", "$min_gtk_version");
15221 exit(1);
15222 }
f79bd02d 15223
21d1c967
GD
15224 if ((gtk_major_version != $gtk_config_major_version) ||
15225 (gtk_minor_version != $gtk_config_minor_version) ||
15226 (gtk_micro_version != $gtk_config_micro_version))
15227 {
7b4a847f 15228 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
15229 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
15230 gtk_major_version, gtk_minor_version, gtk_micro_version);
15231 printf ("*** was found! If pkg-config was correct, then it is best\n");
15232 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
15233 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15234 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15235 printf("*** required on your system.\n");
15236 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
15237 printf("*** to point to the correct configuration files\n");
7b4a847f 15238 }
21d1c967
GD
15239 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
15240 (gtk_minor_version != GTK_MINOR_VERSION) ||
15241 (gtk_micro_version != GTK_MICRO_VERSION))
15242 {
15243 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
15244 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
15245 printf("*** library (version %d.%d.%d)\n",
15246 gtk_major_version, gtk_minor_version, gtk_micro_version);
15247 }
15248 else
15249 {
15250 if ((gtk_major_version > major) ||
15251 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
15252 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
15253 {
15254 return 0;
15255 }
15256 else
15257 {
15258 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
15259 gtk_major_version, gtk_minor_version, gtk_micro_version);
15260 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
15261 major, minor, micro);
15262 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
15263 printf("***\n");
15264 printf("*** If you have already installed a sufficiently new version, this error\n");
15265 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
15266 printf("*** being found. The easiest way to fix this is to remove the old version\n");
15267 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
15268 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
15269 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15270 printf("*** so that the correct libraries are found at run-time))\n");
15271 }
15272 }
15273 return 1;
15274}
f79bd02d 15275
7b4a847f
RR
15276_ACEOF
15277rm -f conftest$ac_exeext
15278if { (eval echo "$as_me:15278: \"$ac_link\"") >&5
15279 (eval $ac_link) 2>&5
15280 ac_status=$?
15281 echo "$as_me:15281: \$? = $ac_status" >&5
15282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15283 { (eval echo "$as_me:15283: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:15286: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
21d1c967 15288 :
f79bd02d 15289else
7b4a847f
RR
15290 echo "$as_me: program exited with status $ac_status" >&5
15291echo "$as_me: failed program was:" >&5
15292cat conftest.$ac_ext >&5
15293no_gtk=yes
f79bd02d 15294fi
7b4a847f 15295rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 15296fi
21d1c967
GD
15297 CFLAGS="$ac_save_CFLAGS"
15298 LIBS="$ac_save_LIBS"
15299 fi
15300 fi
15301 if test "x$no_gtk" = x ; then
7b4a847f
RR
15302 echo "$as_me:15302: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
15303echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
15304 wx_cv_lib_gtk=2.0
21d1c967 15305 else
7b4a847f
RR
15306 echo "$as_me:15306: result: no" >&5
15307echo "${ECHO_T}no" >&6
21d1c967
GD
15308 if test "$PKG_CONFIG" = "no" ; then
15309 echo "*** A new enough version of pkg-config was not found."
15310 echo "*** See http://pkgconfig.sourceforge.net"
15311 else
15312 if test -f conf.gtktest ; then
15313 :
15314 else
15315 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
15316 ac_save_CFLAGS="$CFLAGS"
15317 ac_save_LIBS="$LIBS"
21d1c967
GD
15318 CFLAGS="$CFLAGS $GTK_CFLAGS"
15319 LIBS="$LIBS $GTK_LIBS"
7b4a847f
RR
15320 cat >conftest.$ac_ext <<_ACEOF
15321#line 15321 "configure"
f79bd02d 15322#include "confdefs.h"
21d1c967
GD
15323
15324#include <gtk/gtk.h>
15325#include <stdio.h>
f79bd02d 15326
7b4a847f
RR
15327int
15328main ()
15329{
15330 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
15331 ;
15332 return 0;
15333}
15334_ACEOF
15335rm -f conftest.$ac_objext conftest$ac_exeext
15336if { (eval echo "$as_me:15336: \"$ac_link\"") >&5
15337 (eval $ac_link) 2>&5
15338 ac_status=$?
15339 echo "$as_me:15339: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -s conftest$ac_exeext'
15342 { (eval echo "$as_me:15342: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15344 ac_status=$?
15345 echo "$as_me:15345: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
21d1c967
GD
15347 echo "*** The test program compiled, but did not run. This usually means"
15348 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
15349 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
15350 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15351 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15352 echo "*** is required on your system"
15353 echo "***"
15354 echo "*** If you have an old version installed, it is best to remove it, although"
7b4a847f 15355 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 15356else
7b4a847f
RR
15357 echo "$as_me: failed program was:" >&5
15358cat conftest.$ac_ext >&5
15359 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 15360 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 15361fi
7b4a847f 15362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
15363 CFLAGS="$ac_save_CFLAGS"
15364 LIBS="$ac_save_LIBS"
15365 fi
15366 fi
15367 GTK_CFLAGS=""
15368 GTK_LIBS=""
15369 :
15370 fi
7b4a847f 15371
21d1c967 15372 rm -f conf.gtktest
f79bd02d 15373
21d1c967 15374 fi
f79bd02d 15375
21d1c967 15376 if test -z "$wx_cv_lib_gtk"; then
7b4a847f
RR
15377
15378# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
15379if test "${with_gtk_prefix+set}" = set; then
15380 withval="$with_gtk_prefix"
15381 gtk_config_prefix="$withval"
15382else
15383 gtk_config_prefix=""
7b4a847f 15384fi;
f79bd02d 15385
21d1c967
GD
15386# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
15387if test "${with_gtk_exec_prefix+set}" = set; then
15388 withval="$with_gtk_exec_prefix"
15389 gtk_config_exec_prefix="$withval"
15390else
15391 gtk_config_exec_prefix=""
7b4a847f 15392fi;
21d1c967
GD
15393# Check whether --enable-gtktest or --disable-gtktest was given.
15394if test "${enable_gtktest+set}" = set; then
15395 enableval="$enable_gtktest"
7b4a847f 15396
21d1c967
GD
15397else
15398 enable_gtktest=yes
7b4a847f 15399fi;
21d1c967
GD
15400
15401 for module in . $GTK_MODULES
15402 do
15403 case "$module" in
7b4a847f 15404 gthread)
21d1c967
GD
15405 gtk_config_args="$gtk_config_args gthread"
15406 ;;
15407 esac
15408 done
15409
15410 if test x$gtk_config_exec_prefix != x ; then
15411 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
15412 if test x${GTK_CONFIG+set} != xset ; then
15413 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
15414 fi
15415 fi
15416 if test x$gtk_config_prefix != x ; then
15417 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
15418 if test x${GTK_CONFIG+set} != xset ; then
15419 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
15420 fi
15421 fi
15422
15423 # Extract the first word of "gtk-config", so it can be a program name with args.
15424set dummy gtk-config; ac_word=$2
7b4a847f
RR
15425echo "$as_me:15425: checking for $ac_word" >&5
15426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15427if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 15429else
7b4a847f
RR
15430 case $GTK_CONFIG in
15431 [\\/]* | ?:[\\/]*)
21d1c967
GD
15432 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
15433 ;;
21d1c967 15434 *)
7b4a847f
RR
15435 ac_save_IFS=$IFS; IFS=$ac_path_separator
15436ac_dummy="$PATH"
15437for ac_dir in $ac_dummy; do
15438 IFS=$ac_save_IFS
15439 test -z "$ac_dir" && ac_dir=.
15440 if $as_executable_p "$ac_dir/$ac_word"; then
15441 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
15442 echo "$as_me:15442: found $ac_dir/$ac_word" >&5
15443 break
15444fi
15445done
15446
21d1c967
GD
15447 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
15448 ;;
15449esac
15450fi
7b4a847f
RR
15451GTK_CONFIG=$ac_cv_path_GTK_CONFIG
15452
21d1c967 15453if test -n "$GTK_CONFIG"; then
7b4a847f
RR
15454 echo "$as_me:15454: result: $GTK_CONFIG" >&5
15455echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 15456else
7b4a847f
RR
15457 echo "$as_me:15457: result: no" >&5
15458echo "${ECHO_T}no" >&6
21d1c967
GD
15459fi
15460
15461 min_gtk_version=1.2.7
7b4a847f
RR
15462 echo "$as_me:15462: checking for GTK - version >= $min_gtk_version" >&5
15463echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
15464 no_gtk=""
15465 if test "$GTK_CONFIG" = "no" ; then
15466 no_gtk=yes
15467 else
15468 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
15469 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
15470 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
15471 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15472 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
15473 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15474 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
15475 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15476 if test "x$enable_gtktest" = "xyes" ; then
15477 ac_save_CFLAGS="$CFLAGS"
15478 ac_save_LIBS="$LIBS"
15479 CFLAGS="$CFLAGS $GTK_CFLAGS"
15480 LIBS="$GTK_LIBS $LIBS"
15481 rm -f conf.gtktest
15482 if test "$cross_compiling" = yes; then
15483 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 15484else
7b4a847f
RR
15485 cat >conftest.$ac_ext <<_ACEOF
15486#line 15486 "configure"
f79bd02d
JS
15487#include "confdefs.h"
15488
21d1c967
GD
15489#include <gtk/gtk.h>
15490#include <stdio.h>
15491#include <stdlib.h>
f79bd02d 15492
7b4a847f 15493int
21d1c967
GD
15494main ()
15495{
15496 int major, minor, micro;
15497 char *tmp_version;
15498
15499 system ("touch conf.gtktest");
15500
15501 /* HP/UX 9 (%@#!) writes to sscanf strings */
15502 tmp_version = g_strdup("$min_gtk_version");
15503 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15504 printf("%s, bad version string\n", "$min_gtk_version");
15505 exit(1);
15506 }
90dd450c 15507
21d1c967
GD
15508 if ((gtk_major_version != $gtk_config_major_version) ||
15509 (gtk_minor_version != $gtk_config_minor_version) ||
15510 (gtk_micro_version != $gtk_config_micro_version))
15511 {
7b4a847f 15512 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
15513 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
15514 gtk_major_version, gtk_minor_version, gtk_micro_version);
15515 printf ("*** was found! If gtk-config was correct, then it is best\n");
15516 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
15517 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15518 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15519 printf("*** required on your system.\n");
15520 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
15521 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
15522 printf("*** before re-running configure\n");
7b4a847f 15523 }
21d1c967
GD
15524#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
15525 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
15526 (gtk_minor_version != GTK_MINOR_VERSION) ||
15527 (gtk_micro_version != GTK_MICRO_VERSION))
15528 {
15529 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
15530 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
15531 printf("*** library (version %d.%d.%d)\n",
15532 gtk_major_version, gtk_minor_version, gtk_micro_version);
15533 }
15534#endif /* defined (GTK_MAJOR_VERSION) ... */
15535 else
15536 {
15537 if ((gtk_major_version > major) ||
15538 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
15539 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
15540 {
15541 return 0;
15542 }
15543 else
15544 {
15545 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
15546 gtk_major_version, gtk_minor_version, gtk_micro_version);
15547 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
15548 major, minor, micro);
15549 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
15550 printf("***\n");
15551 printf("*** If you have already installed a sufficiently new version, this error\n");
15552 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
15553 printf("*** being found. The easiest way to fix this is to remove the old version\n");
15554 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
15555 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
15556 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15557 printf("*** so that the correct libraries are found at run-time))\n");
15558 }
15559 }
15560 return 1;
15561}
15562
7b4a847f
RR
15563_ACEOF
15564rm -f conftest$ac_exeext
15565if { (eval echo "$as_me:15565: \"$ac_link\"") >&5
15566 (eval $ac_link) 2>&5
15567 ac_status=$?
15568 echo "$as_me:15568: \$? = $ac_status" >&5
15569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15570 { (eval echo "$as_me:15570: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:15573: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
21d1c967
GD
15575 :
15576else
7b4a847f
RR
15577 echo "$as_me: program exited with status $ac_status" >&5
15578echo "$as_me: failed program was:" >&5
15579cat conftest.$ac_ext >&5
15580no_gtk=yes
21d1c967 15581fi
7b4a847f 15582rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 15583fi
21d1c967
GD
15584 CFLAGS="$ac_save_CFLAGS"
15585 LIBS="$ac_save_LIBS"
15586 fi
15587 fi
15588 if test "x$no_gtk" = x ; then
7b4a847f
RR
15589 echo "$as_me:15589: result: yes" >&5
15590echo "${ECHO_T}yes" >&6
15591 wx_cv_lib_gtk=1.2.7
21d1c967 15592 else
7b4a847f
RR
15593 echo "$as_me:15593: result: no" >&5
15594echo "${ECHO_T}no" >&6
21d1c967
GD
15595 if test "$GTK_CONFIG" = "no" ; then
15596 echo "*** The gtk-config script installed by GTK could not be found"
15597 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
15598 echo "*** your path, or set the GTK_CONFIG environment variable to the"
15599 echo "*** full path to gtk-config."
15600 else
15601 if test -f conf.gtktest ; then
15602 :
15603 else
15604 echo "*** Could not run GTK test program, checking why..."
15605 CFLAGS="$CFLAGS $GTK_CFLAGS"
15606 LIBS="$LIBS $GTK_LIBS"
7b4a847f
RR
15607 cat >conftest.$ac_ext <<_ACEOF
15608#line 15608 "configure"
21d1c967
GD
15609#include "confdefs.h"
15610
15611#include <gtk/gtk.h>
15612#include <stdio.h>
15613
7b4a847f
RR
15614int
15615main ()
15616{
15617 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
15618 ;
15619 return 0;
15620}
15621_ACEOF
15622rm -f conftest.$ac_objext conftest$ac_exeext
15623if { (eval echo "$as_me:15623: \"$ac_link\"") >&5
15624 (eval $ac_link) 2>&5
15625 ac_status=$?
15626 echo "$as_me:15626: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -s conftest$ac_exeext'
15629 { (eval echo "$as_me:15629: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:15632: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
21d1c967
GD
15634 echo "*** The test program compiled, but did not run. This usually means"
15635 echo "*** that the run-time linker is not finding GTK or finding the wrong"
15636 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
15637 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15638 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15639 echo "*** is required on your system"
15640 echo "***"
15641 echo "*** If you have an old version installed, it is best to remove it, although"
15642 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15643 echo "***"
15644 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
15645 echo "*** came with the system with the command"
15646 echo "***"
7b4a847f 15647 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 15648else
7b4a847f
RR
15649 echo "$as_me: failed program was:" >&5
15650cat conftest.$ac_ext >&5
15651 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
15652 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
15653 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7b4a847f 15654 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 15655fi
7b4a847f 15656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
15657 CFLAGS="$ac_save_CFLAGS"
15658 LIBS="$ac_save_LIBS"
15659 fi
15660 fi
15661 GTK_CFLAGS=""
15662 GTK_LIBS=""
15663 :
15664 fi
7b4a847f 15665
21d1c967
GD
15666 rm -f conf.gtktest
15667
15668 fi
15669
15670 if test -z "$wx_cv_lib_gtk"; then
7b4a847f
RR
15671
15672# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
15673if test "${with_gtk_prefix+set}" = set; then
15674 withval="$with_gtk_prefix"
15675 gtk_config_prefix="$withval"
15676else
15677 gtk_config_prefix=""
7b4a847f 15678fi;
f79bd02d 15679
21d1c967
GD
15680# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
15681if test "${with_gtk_exec_prefix+set}" = set; then
15682 withval="$with_gtk_exec_prefix"
15683 gtk_config_exec_prefix="$withval"
15684else
15685 gtk_config_exec_prefix=""
7b4a847f 15686fi;
21d1c967
GD
15687# Check whether --enable-gtktest or --disable-gtktest was given.
15688if test "${enable_gtktest+set}" = set; then
15689 enableval="$enable_gtktest"
7b4a847f 15690
90dd450c 15691else
21d1c967 15692 enable_gtktest=yes
7b4a847f 15693fi;
21d1c967
GD
15694
15695 for module in . $GTK_MODULES
15696 do
15697 case "$module" in
7b4a847f 15698 gthread)
21d1c967
GD
15699 gtk_config_args="$gtk_config_args gthread"
15700 ;;
15701 esac
15702 done
15703
15704 if test x$gtk_config_exec_prefix != x ; then
15705 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
15706 if test x${GTK_CONFIG+set} != xset ; then
15707 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
15708 fi
15709 fi
15710 if test x$gtk_config_prefix != x ; then
15711 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
15712 if test x${GTK_CONFIG+set} != xset ; then
15713 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
15714 fi
15715 fi
15716
15717 # Extract the first word of "gtk-config", so it can be a program name with args.
15718set dummy gtk-config; ac_word=$2
7b4a847f
RR
15719echo "$as_me:15719: checking for $ac_word" >&5
15720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15721if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 15723else
7b4a847f
RR
15724 case $GTK_CONFIG in
15725 [\\/]* | ?:[\\/]*)
21d1c967
GD
15726 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
15727 ;;
21d1c967 15728 *)
7b4a847f
RR
15729 ac_save_IFS=$IFS; IFS=$ac_path_separator
15730ac_dummy="$PATH"
15731for ac_dir in $ac_dummy; do
15732 IFS=$ac_save_IFS
15733 test -z "$ac_dir" && ac_dir=.
15734 if $as_executable_p "$ac_dir/$ac_word"; then
15735 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
15736 echo "$as_me:15736: found $ac_dir/$ac_word" >&5
15737 break
15738fi
15739done
15740
21d1c967
GD
15741 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
15742 ;;
15743esac
15744fi
7b4a847f
RR
15745GTK_CONFIG=$ac_cv_path_GTK_CONFIG
15746
21d1c967 15747if test -n "$GTK_CONFIG"; then
7b4a847f
RR
15748 echo "$as_me:15748: result: $GTK_CONFIG" >&5
15749echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 15750else
7b4a847f
RR
15751 echo "$as_me:15751: result: no" >&5
15752echo "${ECHO_T}no" >&6
21d1c967
GD
15753fi
15754
15755 min_gtk_version=1.2.3
7b4a847f
RR
15756 echo "$as_me:15756: checking for GTK - version >= $min_gtk_version" >&5
15757echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
15758 no_gtk=""
15759 if test "$GTK_CONFIG" = "no" ; then
15760 no_gtk=yes
15761 else
15762 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
15763 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
15764 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
15765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15766 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
15767 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15768 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
15769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15770 if test "x$enable_gtktest" = "xyes" ; then
15771 ac_save_CFLAGS="$CFLAGS"
15772 ac_save_LIBS="$LIBS"
15773 CFLAGS="$CFLAGS $GTK_CFLAGS"
15774 LIBS="$GTK_LIBS $LIBS"
15775 rm -f conf.gtktest
15776 if test "$cross_compiling" = yes; then
15777 echo $ac_n "cross compiling; assumed OK... $ac_c"
15778else
7b4a847f
RR
15779 cat >conftest.$ac_ext <<_ACEOF
15780#line 15780 "configure"
f79bd02d 15781#include "confdefs.h"
21d1c967
GD
15782
15783#include <gtk/gtk.h>
15784#include <stdio.h>
15785#include <stdlib.h>
15786
7b4a847f 15787int
21d1c967
GD
15788main ()
15789{
15790 int major, minor, micro;
15791 char *tmp_version;
15792
15793 system ("touch conf.gtktest");
15794
15795 /* HP/UX 9 (%@#!) writes to sscanf strings */
15796 tmp_version = g_strdup("$min_gtk_version");
15797 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15798 printf("%s, bad version string\n", "$min_gtk_version");
15799 exit(1);
15800 }
15801
15802 if ((gtk_major_version != $gtk_config_major_version) ||
15803 (gtk_minor_version != $gtk_config_minor_version) ||
15804 (gtk_micro_version != $gtk_config_micro_version))
15805 {
7b4a847f 15806 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
15807 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
15808 gtk_major_version, gtk_minor_version, gtk_micro_version);
15809 printf ("*** was found! If gtk-config was correct, then it is best\n");
15810 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
15811 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15812 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15813 printf("*** required on your system.\n");
15814 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
15815 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
15816 printf("*** before re-running configure\n");
7b4a847f 15817 }
21d1c967
GD
15818#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
15819 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
15820 (gtk_minor_version != GTK_MINOR_VERSION) ||
15821 (gtk_micro_version != GTK_MICRO_VERSION))
15822 {
15823 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
15824 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
15825 printf("*** library (version %d.%d.%d)\n",
15826 gtk_major_version, gtk_minor_version, gtk_micro_version);
15827 }
15828#endif /* defined (GTK_MAJOR_VERSION) ... */
15829 else
15830 {
15831 if ((gtk_major_version > major) ||
15832 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
15833 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
15834 {
15835 return 0;
15836 }
15837 else
15838 {
15839 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
15840 gtk_major_version, gtk_minor_version, gtk_micro_version);
15841 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
15842 major, minor, micro);
15843 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
15844 printf("***\n");
15845 printf("*** If you have already installed a sufficiently new version, this error\n");
15846 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
15847 printf("*** being found. The easiest way to fix this is to remove the old version\n");
15848 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
15849 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
15850 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15851 printf("*** so that the correct libraries are found at run-time))\n");
15852 }
15853 }
15854 return 1;
15855}
15856
7b4a847f
RR
15857_ACEOF
15858rm -f conftest$ac_exeext
15859if { (eval echo "$as_me:15859: \"$ac_link\"") >&5
15860 (eval $ac_link) 2>&5
15861 ac_status=$?
15862 echo "$as_me:15862: \$? = $ac_status" >&5
15863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15864 { (eval echo "$as_me:15864: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:15867: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
21d1c967
GD
15869 :
15870else
7b4a847f
RR
15871 echo "$as_me: program exited with status $ac_status" >&5
15872echo "$as_me: failed program was:" >&5
15873cat conftest.$ac_ext >&5
15874no_gtk=yes
21d1c967 15875fi
7b4a847f 15876rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 15877fi
21d1c967
GD
15878 CFLAGS="$ac_save_CFLAGS"
15879 LIBS="$ac_save_LIBS"
15880 fi
15881 fi
15882 if test "x$no_gtk" = x ; then
7b4a847f
RR
15883 echo "$as_me:15883: result: yes" >&5
15884echo "${ECHO_T}yes" >&6
15885 wx_cv_lib_gtk=1.2.3
21d1c967 15886 else
7b4a847f
RR
15887 echo "$as_me:15887: result: no" >&5
15888echo "${ECHO_T}no" >&6
21d1c967
GD
15889 if test "$GTK_CONFIG" = "no" ; then
15890 echo "*** The gtk-config script installed by GTK could not be found"
15891 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
15892 echo "*** your path, or set the GTK_CONFIG environment variable to the"
15893 echo "*** full path to gtk-config."
15894 else
15895 if test -f conf.gtktest ; then
15896 :
15897 else
15898 echo "*** Could not run GTK test program, checking why..."
15899 CFLAGS="$CFLAGS $GTK_CFLAGS"
15900 LIBS="$LIBS $GTK_LIBS"
7b4a847f
RR
15901 cat >conftest.$ac_ext <<_ACEOF
15902#line 15902 "configure"
21d1c967
GD
15903#include "confdefs.h"
15904
15905#include <gtk/gtk.h>
15906#include <stdio.h>
f79bd02d 15907
7b4a847f
RR
15908int
15909main ()
15910{
15911 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
15912 ;
15913 return 0;
15914}
15915_ACEOF
15916rm -f conftest.$ac_objext conftest$ac_exeext
15917if { (eval echo "$as_me:15917: \"$ac_link\"") >&5
15918 (eval $ac_link) 2>&5
15919 ac_status=$?
15920 echo "$as_me:15920: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -s conftest$ac_exeext'
15923 { (eval echo "$as_me:15923: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15925 ac_status=$?
15926 echo "$as_me:15926: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
21d1c967
GD
15928 echo "*** The test program compiled, but did not run. This usually means"
15929 echo "*** that the run-time linker is not finding GTK or finding the wrong"
15930 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
15931 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15932 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15933 echo "*** is required on your system"
15934 echo "***"
15935 echo "*** If you have an old version installed, it is best to remove it, although"
15936 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15937 echo "***"
15938 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
15939 echo "*** came with the system with the command"
15940 echo "***"
7b4a847f 15941 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 15942else
7b4a847f
RR
15943 echo "$as_me: failed program was:" >&5
15944cat conftest.$ac_ext >&5
15945 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
15946 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
15947 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7b4a847f 15948 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 15949fi
7b4a847f 15950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
15951 CFLAGS="$ac_save_CFLAGS"
15952 LIBS="$ac_save_LIBS"
15953 fi
15954 fi
15955 GTK_CFLAGS=""
15956 GTK_LIBS=""
15957 :
15958 fi
7b4a847f 15959
21d1c967 15960 rm -f conf.gtktest
f79bd02d 15961
21d1c967
GD
15962 fi
15963
15964 if test -z "$wx_cv_lib_gtk"; then
15965 wx_cv_lib_gtk=none
15966 else
15967 wx_cv_cflags_gtk=$GTK_CFLAGS
15968 wx_cv_libs_gtk=$GTK_LIBS
15969 fi
e07802fc 15970
7b4a847f 15971fi
579d8138 15972
21d1c967 15973 if test "$gtk_version_cached" = 1; then
7b4a847f
RR
15974 echo "$as_me:15974: result: $wx_cv_lib_gtk" >&5
15975echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
15976 fi
15977
15978 case "$wx_cv_lib_gtk" in
15979 2.0) WXGTK20=1
15980 ;;
15981 1.2.7) WXGTK127=1
15982 WXGTK12=1
15983 ;;
15984 1.2.3) WXGTK12=1
15985 ;;
7b4a847f
RR
15986 *) { { echo "$as_me:15986: error:
15987Please check that gtk-config is in path, the directory
15988where GTK+ libraries are installed (returned by
15989'gtk-config --libs' command) is in LD_LIBRARY_PATH or
15990equivalent variable and GTK+ is version 1.2.3 or above.
15991 " >&5
15992echo "$as_me: error:
328a083c
RR
15993Please check that gtk-config is in path, the directory
15994where GTK+ libraries are installed (returned by
15995'gtk-config --libs' command) is in LD_LIBRARY_PATH or
15996equivalent variable and GTK+ is version 1.2.3 or above.
7b4a847f
RR
15997 " >&2;}
15998 { (exit 1); exit 1; }; }
21d1c967
GD
15999 ;;
16000 esac
16001
b13cd66e
VZ
16002 if test "$WXGTK20" = 1; then
16003 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
7b4a847f 16004
f09359cf
VS
16005 succeeded=no
16006
16007 if test -z "$PKG_CONFIG"; then
16008 # Extract the first word of "pkg-config", so it can be a program name with args.
16009set dummy pkg-config; ac_word=$2
7b4a847f
RR
16010echo "$as_me:16010: checking for $ac_word" >&5
16011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16012if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 16014else
7b4a847f
RR
16015 case $PKG_CONFIG in
16016 [\\/]* | ?:[\\/]*)
f09359cf
VS
16017 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16018 ;;
f09359cf 16019 *)
7b4a847f
RR
16020 ac_save_IFS=$IFS; IFS=$ac_path_separator
16021ac_dummy="$PATH"
16022for ac_dir in $ac_dummy; do
16023 IFS=$ac_save_IFS
16024 test -z "$ac_dir" && ac_dir=.
16025 if $as_executable_p "$ac_dir/$ac_word"; then
16026 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
16027 echo "$as_me:16027: found $ac_dir/$ac_word" >&5
16028 break
16029fi
16030done
16031
f09359cf
VS
16032 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16033 ;;
16034esac
16035fi
7b4a847f
RR
16036PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16037
f09359cf 16038if test -n "$PKG_CONFIG"; then
7b4a847f
RR
16039 echo "$as_me:16039: result: $PKG_CONFIG" >&5
16040echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 16041else
7b4a847f
RR
16042 echo "$as_me:16042: result: no" >&5
16043echo "${ECHO_T}no" >&6
f09359cf
VS
16044fi
16045
16046 fi
16047
16048 if test "$PKG_CONFIG" = "no" ; then
16049 echo "*** The pkg-config script could not be found. Make sure it is"
16050 echo "*** in your path, or set the PKG_CONFIG environment variable"
16051 echo "*** to the full path to pkg-config."
16052 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
16053 else
16054 PKG_CONFIG_MIN_VERSION=0.9.0
16055 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7b4a847f
RR
16056 echo "$as_me:16056: checking for pangoft2" >&5
16057echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
16058
16059 if $PKG_CONFIG --exists "pangoft2" ; then
7b4a847f
RR
16060 echo "$as_me:16060: result: yes" >&5
16061echo "${ECHO_T}yes" >&6
f09359cf
VS
16062 succeeded=yes
16063
7b4a847f
RR
16064 echo "$as_me:16064: checking PANGOFT2_CFLAGS" >&5
16065echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 16066 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
7b4a847f
RR
16067 echo "$as_me:16067: result: $PANGOFT2_CFLAGS" >&5
16068echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 16069
7b4a847f
RR
16070 echo "$as_me:16070: checking PANGOFT2_LIBS" >&5
16071echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 16072 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
7b4a847f
RR
16073 echo "$as_me:16073: result: $PANGOFT2_LIBS" >&5
16074echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
16075 else
16076 PANGOFT2_CFLAGS=""
16077 PANGOFT2_LIBS=""
7b4a847f 16078 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
16079 ## do set a variable so people can do so.
16080 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
7b4a847f 16081
f09359cf
VS
16082 fi
16083
f09359cf
VS
16084 else
16085 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16086 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16087 fi
16088 fi
16089
16090 if test $succeeded = yes; then
7b4a847f 16091
b13cd66e
VZ
16092 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
16093 LIBS="$LIBS $PANGOFT2_LIBS"
7b4a847f 16094
f09359cf 16095 else
7b4a847f
RR
16096
16097 { echo "$as_me:16097: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
16098echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 16099 wxUSE_PRINTING_ARCHITECTURE="no"
7b4a847f 16100
f09359cf
VS
16101 fi
16102
b13cd66e 16103 fi
f09359cf
VS
16104 fi
16105
21d1c967
GD
16106 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
16107 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
16108
16109 AFMINSTALL=afminstall
16110 TOOLKIT=GTK
16111 GUIDIST=GTK_DIST
16112
7b4a847f
RR
16113 echo "$as_me:16113: checking for gdk_im_open in -lgdk" >&5
16114echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
16115if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16117else
7b4a847f 16118 ac_check_lib_save_LIBS=$LIBS
21d1c967 16119LIBS="-lgdk $LIBS"
7b4a847f
RR
16120cat >conftest.$ac_ext <<_ACEOF
16121#line 16121 "configure"
90dd450c 16122#include "confdefs.h"
7b4a847f 16123
90dd450c 16124/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
16125#ifdef __cplusplus
16126extern "C"
16127#endif
90dd450c 16128/* We use char because int might match the return type of a gcc2
7b4a847f
RR
16129 builtin and then its argument prototype would still apply. */
16130char gdk_im_open ();
16131int
16132main ()
16133{
16134gdk_im_open ();
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139rm -f conftest.$ac_objext conftest$ac_exeext
16140if { (eval echo "$as_me:16140: \"$ac_link\"") >&5
16141 (eval $ac_link) 2>&5
16142 ac_status=$?
16143 echo "$as_me:16143: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -s conftest$ac_exeext'
16146 { (eval echo "$as_me:16146: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 echo "$as_me:16149: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_lib_gdk_gdk_im_open=yes
16152else
16153 echo "$as_me: failed program was:" >&5
16154cat conftest.$ac_ext >&5
16155ac_cv_lib_gdk_gdk_im_open=no
16156fi
16157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16158LIBS=$ac_check_lib_save_LIBS
16159fi
16160echo "$as_me:16160: result: $ac_cv_lib_gdk_gdk_im_open" >&5
16161echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
16162if test $ac_cv_lib_gdk_gdk_im_open = yes; then
16163 cat >>confdefs.h <<\EOF
21d1c967
GD
16164#define HAVE_XIM 1
16165EOF
16166
90dd450c 16167fi
1e6feb95 16168
21d1c967 16169 fi
1e6feb95 16170
21d1c967 16171 if test "$wxUSE_MGL" = 1; then
7b4a847f
RR
16172 echo "$as_me:16172: checking for SciTech MGL library" >&5
16173echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 16174 if test "x$MGL_ROOT" = x ; then
7b4a847f
RR
16175 echo "$as_me:16175: result: not found" >&5
16176echo "${ECHO_T}not found" >&6
16177 { { echo "$as_me:16177: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
16178echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
16179 { (exit 1); exit 1; }; }
21d1c967 16180 else
7b4a847f
RR
16181 echo "$as_me:16181: result: $MGL_ROOT" >&5
16182echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
16183 fi
16184
16185 case "${host}" in
16186 *-*-linux* )
16187 mgl_os=linux/gcc/glibc
16188 ;;
16189 *-pc-msdosdjgpp )
16190 mgl_os=dos32/dj2
16191 ;;
16192 *)
7b4a847f
RR
16193 { { echo "$as_me:16193: error: This system type ${host} is not yet supported by wxMGL." >&5
16194echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
16195 { (exit 1); exit 1; }; }
21d1c967 16196 esac
1e6feb95 16197
21d1c967 16198 mgl_lib_type=""
3fcdd07b 16199
21d1c967
GD
16200 if test "$wxUSE_DEBUG_FLAG" = yes ; then
16201 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
16202 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
16203 mgl_lib_type=debug
16204 fi
16205 fi
16206 if test "x$mgl_lib_type" = x ; then
16207 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
16208 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
16209 mgl_lib_type=release
16210 else
7b4a847f
RR
16211 { { echo "$as_me:16211: error: Cannot find MGL libraries, make sure they are compiled." >&5
16212echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
16213 { (exit 1); exit 1; }; }
21d1c967 16214 fi
90dd450c 16215 fi
2224580a 16216
1d1b75ac
VZ
16217 wxUSE_UNIVERSAL="yes"
16218
21d1c967
GD
16219 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
16220 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
16221
90dd450c 16222 AFMINSTALL=afminstall
21d1c967
GD
16223 TOOLKIT=MGL
16224 GUIDIST=MGL_DIST
16225 fi
dad6c0ea 16226
21d1c967 16227 if test "$wxUSE_MICROWIN" = 1; then
7b4a847f
RR
16228 echo "$as_me:16228: checking for MicroWindows" >&5
16229echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 16230 if test "x$MICROWINDOWS" = x ; then
7b4a847f
RR
16231 echo "$as_me:16231: result: not found" >&5
16232echo "${ECHO_T}not found" >&6
16233 { { echo "$as_me:16233: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
16234echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
16235 { (exit 1); exit 1; }; }
21d1c967 16236 else
7b4a847f
RR
16237 echo "$as_me:16237: result: $MICROWINDOWS" >&5
16238echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 16239 fi
f6bcfd97 16240
21d1c967 16241 if test -f $MICROWINDOWS/lib/libmwin.a; then
7b4a847f
RR
16242 echo "$as_me:16242: result: MicroWindows' libraries found." >&5
16243echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 16244 else
7b4a847f
RR
16245 { { echo "$as_me:16245: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
16246echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
16247 { (exit 1); exit 1; }; }
90dd450c 16248 fi
0b2effe9 16249
21d1c967
GD
16250 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
16251 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
16252
1d1b75ac
VZ
16253 wxUSE_UNIVERSAL="yes"
16254
21d1c967
GD
16255 AFMINSTALL=afminstall
16256 TOOLKIT=MICROWIN
16257 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
16258
16259 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 16260 fi
f6bcfd97 16261
21d1c967 16262 if test "$wxUSE_X11" = 1; then
7b4a847f
RR
16263 echo "$as_me:16263: checking for X" >&5
16264echo $ECHO_N "checking for X... $ECHO_C" >&6
d8356fa3 16265
21d1c967
GD
16266# Check whether --with-x or --without-x was given.
16267if test "${with_x+set}" = set; then
16268 withval="$with_x"
2224580a 16269
7b4a847f 16270fi;
21d1c967
GD
16271# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16272if test "x$with_x" = xno; then
16273 # The user explicitly disabled X.
16274 have_x=disabled
16275else
16276 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
16277 # Both variables are already set.
16278 have_x=yes
16279 else
7b4a847f
RR
16280 if test "${ac_cv_have_x+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
16282else
16283 # One or both of the vars are not set, and there is no cached value.
7b4a847f
RR
16284ac_x_includes=no ac_x_libraries=no
16285rm -fr conftest.dir
16286if mkdir conftest.dir; then
16287 cd conftest.dir
21d1c967 16288 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7b4a847f 16289 cat >Imakefile <<'EOF'
21d1c967
GD
16290acfindx:
16291 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
16292EOF
16293 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
16294 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16295 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
16296 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16297 for ac_extension in a so sl; do
16298 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7b4a847f 16299 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
16300 ac_im_usrlibdir=$ac_im_libdir; break
16301 fi
16302 done
16303 # Screen out bogus values from the imake configuration. They are
16304 # bogus both because they are the default anyway, and because
16305 # using them would break gcc on systems where it needs fixed includes.
7b4a847f 16306 case $ac_im_incroot in
21d1c967 16307 /usr/include) ;;
7b4a847f 16308 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 16309 esac
7b4a847f 16310 case $ac_im_usrlibdir in
21d1c967 16311 /usr/lib | /lib) ;;
7b4a847f 16312 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
16313 esac
16314 fi
16315 cd ..
7b4a847f 16316 rm -fr conftest.dir
21d1c967 16317fi
10f2d63a 16318
7b4a847f
RR
16319# Standard set of common directories for X headers.
16320# Check X11 before X11Rn because it is often a symlink to the current release.
16321ac_x_header_dirs='
16322/usr/X11/include
16323/usr/X11R6/include
16324/usr/X11R5/include
16325/usr/X11R4/include
16326
16327/usr/include/X11
16328/usr/include/X11R6
16329/usr/include/X11R5
16330/usr/include/X11R4
16331
16332/usr/local/X11/include
16333/usr/local/X11R6/include
16334/usr/local/X11R5/include
16335/usr/local/X11R4/include
16336
16337/usr/local/include/X11
16338/usr/local/include/X11R6
16339/usr/local/include/X11R5
16340/usr/local/include/X11R4
16341
16342/usr/X386/include
16343/usr/x386/include
16344/usr/XFree86/include/X11
16345
16346/usr/include
16347/usr/local/include
16348/usr/unsupported/include
16349/usr/athena/include
16350/usr/local/x11r5/include
16351/usr/lpp/Xamples/include
16352
16353/usr/openwin/include
16354/usr/openwin/share/include'
16355
16356if test "$ac_x_includes" = no; then
16357 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 16358 # First, try using that file with no special directory specified.
7b4a847f
RR
16359 cat >conftest.$ac_ext <<_ACEOF
16360#line 16360 "configure"
21d1c967 16361#include "confdefs.h"
7b4a847f
RR
16362#include <X11/Intrinsic.h>
16363_ACEOF
16364if { (eval echo "$as_me:16364: \"$ac_cpp conftest.$ac_ext\"") >&5
16365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16366 ac_status=$?
16367 egrep -v '^ *\+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 echo "$as_me:16370: \$? = $ac_status" >&5
16371 (exit $ac_status); } >/dev/null; then
16372 if test -s conftest.err; then
16373 ac_cpp_err=$ac_c_preproc_warn_flag
16374 else
16375 ac_cpp_err=
16376 fi
16377else
16378 ac_cpp_err=yes
16379fi
16380if test -z "$ac_cpp_err"; then
21d1c967
GD
16381 # We can compile using X headers with no special include directory.
16382ac_x_includes=
90dd450c 16383else
7b4a847f 16384 echo "$as_me: failed program was:" >&5
90dd450c 16385 cat conftest.$ac_ext >&5
7b4a847f
RR
16386 for ac_dir in $ac_x_header_dirs; do
16387 if test -r "$ac_dir/X11/Intrinsic.h"; then
16388 ac_x_includes=$ac_dir
16389 break
16390 fi
16391done
3a922bb4 16392fi
7b4a847f
RR
16393rm -f conftest.err conftest.$ac_ext
16394fi # $ac_x_includes = no
10f2d63a 16395
7b4a847f 16396if test "$ac_x_libraries" = no; then
21d1c967 16397 # Check for the libraries.
21d1c967
GD
16398 # See if we find them without any special options.
16399 # Don't add to $LIBS permanently.
7b4a847f
RR
16400 ac_save_LIBS=$LIBS
16401 LIBS="-lXt $LIBS"
16402 cat >conftest.$ac_ext <<_ACEOF
16403#line 16403 "configure"
3a922bb4 16404#include "confdefs.h"
7b4a847f
RR
16405#include <X11/Intrinsic.h>
16406int
16407main ()
16408{
16409XtMalloc (0)
16410 ;
16411 return 0;
16412}
16413_ACEOF
16414rm -f conftest.$ac_objext conftest$ac_exeext
16415if { (eval echo "$as_me:16415: \"$ac_link\"") >&5
16416 (eval $ac_link) 2>&5
16417 ac_status=$?
16418 echo "$as_me:16418: \$? = $ac_status" >&5
16419 (exit $ac_status); } &&
16420 { ac_try='test -s conftest$ac_exeext'
16421 { (eval echo "$as_me:16421: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:16424: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
16426 LIBS=$ac_save_LIBS
21d1c967
GD
16427# We can link X programs with no special library path.
16428ac_x_libraries=
3a922bb4 16429else
7b4a847f
RR
16430 echo "$as_me: failed program was:" >&5
16431cat conftest.$ac_ext >&5
16432LIBS=$ac_save_LIBS
16433for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 16434do
7b4a847f 16435 # Don't even attempt the hair of trying to link an X program!
21d1c967 16436 for ac_extension in a so sl; do
7b4a847f 16437 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
16438 ac_x_libraries=$ac_dir
16439 break 2
16440 fi
16441 done
16442done
3a922bb4 16443fi
7b4a847f
RR
16444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16445fi # $ac_x_libraries = no
90dd450c 16446
7b4a847f 16447if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
16448 # Didn't find X anywhere. Cache the known absence of X.
16449 ac_cv_have_x="have_x=no"
16450else
16451 # Record where we found X for the cache.
16452 ac_cv_have_x="have_x=yes \
16453 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 16454fi
21d1c967 16455fi
7b4a847f 16456
21d1c967
GD
16457 fi
16458 eval "$ac_cv_have_x"
16459fi # $with_x != no
90dd450c 16460
21d1c967 16461if test "$have_x" != yes; then
7b4a847f
RR
16462 echo "$as_me:16462: result: $have_x" >&5
16463echo "${ECHO_T}$have_x" >&6
21d1c967
GD
16464 no_x=yes
16465else
16466 # If each of the values was on the command line, it overrides each guess.
16467 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16468 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16469 # Update the cache value to reflect the command line values.
16470 ac_cv_have_x="have_x=yes \
16471 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7b4a847f
RR
16472 echo "$as_me:16472: result: libraries $x_libraries, headers $x_includes" >&5
16473echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 16474fi
90dd450c 16475
21d1c967 16476if test "$no_x" = yes; then
90dd450c 16477 # Not all programs may use this symbol, but it does not hurt to define it.
7b4a847f
RR
16478
16479cat >>confdefs.h <<\EOF
90dd450c
VZ
16480#define X_DISPLAY_MISSING 1
16481EOF
16482
16483 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
16484else
16485 if test -n "$x_includes"; then
16486 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 16487 fi
3a922bb4 16488
90dd450c
VZ
16489 # It would also be nice to do this for all -L options, not just this one.
16490 if test -n "$x_libraries"; then
16491 X_LIBS="$X_LIBS -L$x_libraries"
16492 # For Solaris; some versions of Sun CC require a space after -R and
16493 # others require no space. Words are not sufficient . . . .
7b4a847f 16494 case `(uname -sr) 2>/dev/null` in
90dd450c 16495 "SunOS 5"*)
7b4a847f
RR
16496 echo "$as_me:16496: checking whether -R must be followed by a space" >&5
16497echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
16498 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16499 cat >conftest.$ac_ext <<_ACEOF
16500#line 16500 "configure"
90dd450c
VZ
16501#include "confdefs.h"
16502
7b4a847f
RR
16503int
16504main ()
16505{
90dd450c 16506
7b4a847f
RR
16507 ;
16508 return 0;
16509}
16510_ACEOF
16511rm -f conftest.$ac_objext conftest$ac_exeext
16512if { (eval echo "$as_me:16512: \"$ac_link\"") >&5
16513 (eval $ac_link) 2>&5
16514 ac_status=$?
16515 echo "$as_me:16515: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -s conftest$ac_exeext'
16518 { (eval echo "$as_me:16518: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:16521: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
90dd450c 16523 ac_R_nospace=yes
3a922bb4 16524else
7b4a847f
RR
16525 echo "$as_me: failed program was:" >&5
16526cat conftest.$ac_ext >&5
16527ac_R_nospace=no
3a922bb4 16528fi
7b4a847f 16529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 16530 if test $ac_R_nospace = yes; then
7b4a847f
RR
16531 echo "$as_me:16531: result: no" >&5
16532echo "${ECHO_T}no" >&6
90dd450c
VZ
16533 X_LIBS="$X_LIBS -R$x_libraries"
16534 else
16535 LIBS="$ac_xsave_LIBS -R $x_libraries"
7b4a847f
RR
16536 cat >conftest.$ac_ext <<_ACEOF
16537#line 16537 "configure"
90dd450c 16538#include "confdefs.h"
3a922bb4 16539
7b4a847f
RR
16540int
16541main ()
16542{
6f754473 16543
7b4a847f
RR
16544 ;
16545 return 0;
16546}
16547_ACEOF
16548rm -f conftest.$ac_objext conftest$ac_exeext
16549if { (eval echo "$as_me:16549: \"$ac_link\"") >&5
16550 (eval $ac_link) 2>&5
16551 ac_status=$?
16552 echo "$as_me:16552: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -s conftest$ac_exeext'
16555 { (eval echo "$as_me:16555: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:16558: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
90dd450c
VZ
16560 ac_R_space=yes
16561else
7b4a847f
RR
16562 echo "$as_me: failed program was:" >&5
16563cat conftest.$ac_ext >&5
16564ac_R_space=no
90dd450c 16565fi
7b4a847f 16566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 16567 if test $ac_R_space = yes; then
7b4a847f
RR
16568 echo "$as_me:16568: result: yes" >&5
16569echo "${ECHO_T}yes" >&6
90dd450c
VZ
16570 X_LIBS="$X_LIBS -R $x_libraries"
16571 else
7b4a847f
RR
16572 echo "$as_me:16572: result: neither works" >&5
16573echo "${ECHO_T}neither works" >&6
90dd450c
VZ
16574 fi
16575 fi
7b4a847f 16576 LIBS=$ac_xsave_LIBS
90dd450c
VZ
16577 esac
16578 fi
16579
16580 # Check for system-dependent libraries X programs must link with.
16581 # Do this before checking for the system-independent R6 libraries
16582 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 16583
90dd450c
VZ
16584 if test "$ISC" = yes; then
16585 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16586 else
7b4a847f
RR
16587 # Martyn Johnson says this is needed for Ultrix, if the X
16588 # libraries were built with DECnet support. And Karl Berry says
90dd450c 16589 # the Alpha needs dnet_stub (dnet does not exist).
7b4a847f
RR
16590 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16591 cat >conftest.$ac_ext <<_ACEOF
16592#line 16592 "configure"
328a083c 16593#include "confdefs.h"
7b4a847f 16594
328a083c 16595/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
16596#ifdef __cplusplus
16597extern "C"
16598#endif
328a083c 16599/* We use char because int might match the return type of a gcc2
7b4a847f
RR
16600 builtin and then its argument prototype would still apply. */
16601char XOpenDisplay ();
16602int
16603main ()
16604{
16605XOpenDisplay ();
16606 ;
16607 return 0;
16608}
16609_ACEOF
16610rm -f conftest.$ac_objext conftest$ac_exeext
16611if { (eval echo "$as_me:16611: \"$ac_link\"") >&5
16612 (eval $ac_link) 2>&5
16613 ac_status=$?
16614 echo "$as_me:16614: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (eval echo "$as_me:16617: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:16620: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 :
579d8138 16623else
7b4a847f
RR
16624 echo "$as_me: failed program was:" >&5
16625cat conftest.$ac_ext >&5
16626echo "$as_me:16626: checking for dnet_ntoa in -ldnet" >&5
16627echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
16628if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631 ac_check_lib_save_LIBS=$LIBS
16632LIBS="-ldnet $LIBS"
16633cat >conftest.$ac_ext <<_ACEOF
16634#line 16634 "configure"
16635#include "confdefs.h"
579d8138 16636
7b4a847f
RR
16637/* Override any gcc2 internal prototype to avoid an error. */
16638#ifdef __cplusplus
16639extern "C"
16640#endif
16641/* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16643char dnet_ntoa ();
16644int
16645main ()
16646{
16647dnet_ntoa ();
16648 ;
16649 return 0;
16650}
16651_ACEOF
16652rm -f conftest.$ac_objext conftest$ac_exeext
16653if { (eval echo "$as_me:16653: \"$ac_link\"") >&5
16654 (eval $ac_link) 2>&5
16655 ac_status=$?
16656 echo "$as_me:16656: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
16658 { ac_try='test -s conftest$ac_exeext'
16659 { (eval echo "$as_me:16659: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:16662: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_lib_dnet_dnet_ntoa=yes
16665else
16666 echo "$as_me: failed program was:" >&5
16667cat conftest.$ac_ext >&5
16668ac_cv_lib_dnet_dnet_ntoa=no
16669fi
16670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16671LIBS=$ac_check_lib_save_LIBS
16672fi
16673echo "$as_me:16673: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16674echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
16675if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 16676 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
16677fi
16678
90dd450c 16679 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7b4a847f
RR
16680 echo "$as_me:16680: checking for dnet_ntoa in -ldnet_stub" >&5
16681echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
16682if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16684else
7b4a847f 16685 ac_check_lib_save_LIBS=$LIBS
90dd450c 16686LIBS="-ldnet_stub $LIBS"
7b4a847f
RR
16687cat >conftest.$ac_ext <<_ACEOF
16688#line 16688 "configure"
90dd450c 16689#include "confdefs.h"
7b4a847f 16690
90dd450c 16691/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
16692#ifdef __cplusplus
16693extern "C"
16694#endif
90dd450c 16695/* We use char because int might match the return type of a gcc2
7b4a847f
RR
16696 builtin and then its argument prototype would still apply. */
16697char dnet_ntoa ();
16698int
16699main ()
16700{
16701dnet_ntoa ();
16702 ;
16703 return 0;
16704}
16705_ACEOF
16706rm -f conftest.$ac_objext conftest$ac_exeext
16707if { (eval echo "$as_me:16707: \"$ac_link\"") >&5
16708 (eval $ac_link) 2>&5
16709 ac_status=$?
16710 echo "$as_me:16710: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
16712 { ac_try='test -s conftest$ac_exeext'
16713 { (eval echo "$as_me:16713: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:16716: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 ac_cv_lib_dnet_stub_dnet_ntoa=yes
16719else
16720 echo "$as_me: failed program was:" >&5
16721cat conftest.$ac_ext >&5
16722ac_cv_lib_dnet_stub_dnet_ntoa=no
16723fi
16724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16725LIBS=$ac_check_lib_save_LIBS
16726fi
16727echo "$as_me:16727: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16728echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
16729if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 16730 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
16731fi
16732
90dd450c 16733 fi
7b4a847f
RR
16734fi
16735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16736 LIBS="$ac_xsave_LIBS"
978f1259 16737
90dd450c
VZ
16738 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
16739 # to get the SysV transport functions.
7b4a847f 16740 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
16741 # needs -lnsl.
16742 # The nsl library prevents programs from opening the X display
7b4a847f
RR
16743 # on Irix 5.2, according to T.E. Dickey.
16744 # The functions gethostbyname, getservbyname, and inet_addr are
16745 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
16746 echo "$as_me:16746: checking for gethostbyname" >&5
16747echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
16748if test "${ac_cv_func_gethostbyname+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750else
16751 cat >conftest.$ac_ext <<_ACEOF
16752#line 16752 "configure"
90dd450c
VZ
16753#include "confdefs.h"
16754/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 16755 which can conflict with char gethostbyname (); below. */
90dd450c
VZ
16756#include <assert.h>
16757/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
16758#ifdef __cplusplus
16759extern "C"
16760#endif
90dd450c 16761/* We use char because int might match the return type of a gcc2
7b4a847f
RR
16762 builtin and then its argument prototype would still apply. */
16763char gethostbyname ();
16764char (*f) ();
978f1259 16765
7b4a847f
RR
16766int
16767main ()
16768{
90dd450c
VZ
16769/* The GNU C library defines this for functions which it implements
16770 to always fail with ENOSYS. Some functions are actually named
16771 something starting with __ and the normal name is an alias. */
16772#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
16773choke me
16774#else
7b4a847f 16775f = gethostbyname;
90dd450c 16776#endif
978f1259 16777
7b4a847f
RR
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782rm -f conftest.$ac_objext conftest$ac_exeext
16783if { (eval echo "$as_me:16783: \"$ac_link\"") >&5
16784 (eval $ac_link) 2>&5
16785 ac_status=$?
16786 echo "$as_me:16786: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -s conftest$ac_exeext'
16789 { (eval echo "$as_me:16789: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:16792: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 ac_cv_func_gethostbyname=yes
16795else
16796 echo "$as_me: failed program was:" >&5
16797cat conftest.$ac_ext >&5
16798ac_cv_func_gethostbyname=no
16799fi
16800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16801fi
16802echo "$as_me:16802: result: $ac_cv_func_gethostbyname" >&5
16803echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 16804
90dd450c 16805 if test $ac_cv_func_gethostbyname = no; then
7b4a847f
RR
16806 echo "$as_me:16806: checking for gethostbyname in -lnsl" >&5
16807echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
16808if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16810else
7b4a847f 16811 ac_check_lib_save_LIBS=$LIBS
90dd450c 16812LIBS="-lnsl $LIBS"
7b4a847f
RR
16813cat >conftest.$ac_ext <<_ACEOF
16814#line 16814 "configure"
90dd450c 16815#include "confdefs.h"
7b4a847f 16816
90dd450c 16817/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
16818#ifdef __cplusplus
16819extern "C"
16820#endif
90dd450c 16821/* We use char because int might match the return type of a gcc2
7b4a847f
RR
16822 builtin and then its argument prototype would still apply. */
16823char gethostbyname ();
16824int
16825main ()
16826{
16827gethostbyname ();
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext conftest$ac_exeext
16833if { (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 ac_cv_lib_nsl_gethostbyname=yes
16845else
16846 echo "$as_me: failed program was:" >&5
16847cat conftest.$ac_ext >&5
16848ac_cv_lib_nsl_gethostbyname=no
16849fi
16850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16851LIBS=$ac_check_lib_save_LIBS
16852fi
16853echo "$as_me:16853: result: $ac_cv_lib_nsl_gethostbyname" >&5
16854echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
16855if test $ac_cv_lib_nsl_gethostbyname = yes; then
16856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
579d8138 16857fi
328a083c 16858
7b4a847f
RR
16859 if test $ac_cv_lib_nsl_gethostbyname = no; then
16860 echo "$as_me:16860: checking for gethostbyname in -lbsd" >&5
16861echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
16862if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 16864else
7b4a847f
RR
16865 ac_check_lib_save_LIBS=$LIBS
16866LIBS="-lbsd $LIBS"
16867cat >conftest.$ac_ext <<_ACEOF
16868#line 16868 "configure"
16869#include "confdefs.h"
16870
16871/* Override any gcc2 internal prototype to avoid an error. */
16872#ifdef __cplusplus
16873extern "C"
16874#endif
16875/* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16877char gethostbyname ();
16878int
16879main ()
16880{
16881gethostbyname ();
16882 ;
16883 return 0;
16884}
16885_ACEOF
16886rm -f conftest.$ac_objext conftest$ac_exeext
16887if { (eval echo "$as_me:16887: \"$ac_link\"") >&5
16888 (eval $ac_link) 2>&5
16889 ac_status=$?
16890 echo "$as_me:16890: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -s conftest$ac_exeext'
16893 { (eval echo "$as_me:16893: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:16896: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_cv_lib_bsd_gethostbyname=yes
16899else
16900 echo "$as_me: failed program was:" >&5
16901cat conftest.$ac_ext >&5
16902ac_cv_lib_bsd_gethostbyname=no
16903fi
16904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16905LIBS=$ac_check_lib_save_LIBS
16906fi
16907echo "$as_me:16907: result: $ac_cv_lib_bsd_gethostbyname" >&5
16908echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
16909if test $ac_cv_lib_bsd_gethostbyname = yes; then
16910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 16911fi
b12915c1 16912
7b4a847f 16913 fi
90dd450c
VZ
16914 fi
16915
16916 # lieder@skyler.mavd.honeywell.com says without -lsocket,
16917 # socket/setsockopt and other routines are undefined under SCO ODT
16918 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7b4a847f
RR
16919 # on later versions), says Simon Leinen: it contains gethostby*
16920 # variants that don't use the nameserver (or something). -lsocket
16921 # must be given before -lnsl if both are needed. We assume that
16922 # if connect needs -lnsl, so does gethostbyname.
16923 echo "$as_me:16923: checking for connect" >&5
16924echo $ECHO_N "checking for connect... $ECHO_C" >&6
16925if test "${ac_cv_func_connect+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16927else
16928 cat >conftest.$ac_ext <<_ACEOF
16929#line 16929 "configure"
55e80573 16930#include "confdefs.h"
90dd450c 16931/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 16932 which can conflict with char connect (); below. */
90dd450c
VZ
16933#include <assert.h>
16934/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
16935#ifdef __cplusplus
16936extern "C"
16937#endif
90dd450c 16938/* We use char because int might match the return type of a gcc2
7b4a847f
RR
16939 builtin and then its argument prototype would still apply. */
16940char connect ();
16941char (*f) ();
55e80573 16942
7b4a847f
RR
16943int
16944main ()
16945{
90dd450c
VZ
16946/* The GNU C library defines this for functions which it implements
16947 to always fail with ENOSYS. Some functions are actually named
16948 something starting with __ and the normal name is an alias. */
16949#if defined (__stub_connect) || defined (__stub___connect)
16950choke me
16951#else
7b4a847f 16952f = connect;
90dd450c
VZ
16953#endif
16954
7b4a847f
RR
16955 ;
16956 return 0;
16957}
16958_ACEOF
16959rm -f conftest.$ac_objext conftest$ac_exeext
16960if { (eval echo "$as_me:16960: \"$ac_link\"") >&5
16961 (eval $ac_link) 2>&5
16962 ac_status=$?
16963 echo "$as_me:16963: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -s conftest$ac_exeext'
16966 { (eval echo "$as_me:16966: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:16969: \$? = $ac_status" >&5
16970 (exit $ac_status); }; }; then
16971 ac_cv_func_connect=yes
16972else
16973 echo "$as_me: failed program was:" >&5
16974cat conftest.$ac_ext >&5
16975ac_cv_func_connect=no
16976fi
16977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16978fi
16979echo "$as_me:16979: result: $ac_cv_func_connect" >&5
16980echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 16981
90dd450c 16982 if test $ac_cv_func_connect = no; then
7b4a847f
RR
16983 echo "$as_me:16983: checking for connect in -lsocket" >&5
16984echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
16985if test "${ac_cv_lib_socket_connect+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16987else
7b4a847f 16988 ac_check_lib_save_LIBS=$LIBS
90dd450c 16989LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7b4a847f
RR
16990cat >conftest.$ac_ext <<_ACEOF
16991#line 16991 "configure"
90dd450c 16992#include "confdefs.h"
7b4a847f 16993
90dd450c 16994/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
16995#ifdef __cplusplus
16996extern "C"
16997#endif
90dd450c 16998/* We use char because int might match the return type of a gcc2
7b4a847f
RR
16999 builtin and then its argument prototype would still apply. */
17000char connect ();
17001int
17002main ()
17003{
17004connect ();
17005 ;
17006 return 0;
17007}
17008_ACEOF
17009rm -f conftest.$ac_objext conftest$ac_exeext
17010if { (eval echo "$as_me:17010: \"$ac_link\"") >&5
17011 (eval $ac_link) 2>&5
17012 ac_status=$?
17013 echo "$as_me:17013: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (eval echo "$as_me:17016: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:17019: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_lib_socket_connect=yes
17022else
17023 echo "$as_me: failed program was:" >&5
17024cat conftest.$ac_ext >&5
17025ac_cv_lib_socket_connect=no
17026fi
17027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17028LIBS=$ac_check_lib_save_LIBS
17029fi
17030echo "$as_me:17030: result: $ac_cv_lib_socket_connect" >&5
17031echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
17032if test $ac_cv_lib_socket_connect = yes; then
90dd450c 17033 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 17034fi
77e13408 17035
90dd450c 17036 fi
25d0687a 17037
7b4a847f
RR
17038 # Guillermo Gomez says -lposix is necessary on A/UX.
17039 echo "$as_me:17039: checking for remove" >&5
17040echo $ECHO_N "checking for remove... $ECHO_C" >&6
17041if test "${ac_cv_func_remove+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17043else
7b4a847f
RR
17044 cat >conftest.$ac_ext <<_ACEOF
17045#line 17045 "configure"
90dd450c
VZ
17046#include "confdefs.h"
17047/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 17048 which can conflict with char remove (); below. */
90dd450c
VZ
17049#include <assert.h>
17050/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17051#ifdef __cplusplus
17052extern "C"
17053#endif
90dd450c 17054/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17055 builtin and then its argument prototype would still apply. */
17056char remove ();
17057char (*f) ();
55e80573 17058
7b4a847f
RR
17059int
17060main ()
17061{
90dd450c
VZ
17062/* The GNU C library defines this for functions which it implements
17063 to always fail with ENOSYS. Some functions are actually named
17064 something starting with __ and the normal name is an alias. */
17065#if defined (__stub_remove) || defined (__stub___remove)
17066choke me
17067#else
7b4a847f 17068f = remove;
90dd450c 17069#endif
55e80573 17070
7b4a847f
RR
17071 ;
17072 return 0;
17073}
17074_ACEOF
17075rm -f conftest.$ac_objext conftest$ac_exeext
17076if { (eval echo "$as_me:17076: \"$ac_link\"") >&5
17077 (eval $ac_link) 2>&5
17078 ac_status=$?
17079 echo "$as_me:17079: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -s conftest$ac_exeext'
17082 { (eval echo "$as_me:17082: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17084 ac_status=$?
17085 echo "$as_me:17085: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
17087 ac_cv_func_remove=yes
17088else
17089 echo "$as_me: failed program was:" >&5
17090cat conftest.$ac_ext >&5
17091ac_cv_func_remove=no
17092fi
17093rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17094fi
17095echo "$as_me:17095: result: $ac_cv_func_remove" >&5
17096echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 17097
90dd450c 17098 if test $ac_cv_func_remove = no; then
7b4a847f
RR
17099 echo "$as_me:17099: checking for remove in -lposix" >&5
17100echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
17101if test "${ac_cv_lib_posix_remove+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17103else
7b4a847f 17104 ac_check_lib_save_LIBS=$LIBS
90dd450c 17105LIBS="-lposix $LIBS"
7b4a847f
RR
17106cat >conftest.$ac_ext <<_ACEOF
17107#line 17107 "configure"
90dd450c 17108#include "confdefs.h"
7b4a847f 17109
90dd450c 17110/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17111#ifdef __cplusplus
17112extern "C"
17113#endif
90dd450c 17114/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17115 builtin and then its argument prototype would still apply. */
17116char remove ();
17117int
17118main ()
17119{
17120remove ();
17121 ;
17122 return 0;
17123}
17124_ACEOF
17125rm -f conftest.$ac_objext conftest$ac_exeext
17126if { (eval echo "$as_me:17126: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>&5
17128 ac_status=$?
17129 echo "$as_me:17129: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
17131 { ac_try='test -s conftest$ac_exeext'
17132 { (eval echo "$as_me:17132: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:17135: \$? = $ac_status" >&5
17136 (exit $ac_status); }; }; then
17137 ac_cv_lib_posix_remove=yes
17138else
17139 echo "$as_me: failed program was:" >&5
17140cat conftest.$ac_ext >&5
17141ac_cv_lib_posix_remove=no
17142fi
17143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17144LIBS=$ac_check_lib_save_LIBS
17145fi
17146echo "$as_me:17146: result: $ac_cv_lib_posix_remove" >&5
17147echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
17148if test $ac_cv_lib_posix_remove = yes; then
90dd450c 17149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 17150fi
f6bcfd97 17151
6fa882bd
RR
17152 fi
17153
90dd450c 17154 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7b4a847f
RR
17155 echo "$as_me:17155: checking for shmat" >&5
17156echo $ECHO_N "checking for shmat... $ECHO_C" >&6
17157if test "${ac_cv_func_shmat+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17159else
7b4a847f
RR
17160 cat >conftest.$ac_ext <<_ACEOF
17161#line 17161 "configure"
90dd450c
VZ
17162#include "confdefs.h"
17163/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 17164 which can conflict with char shmat (); below. */
90dd450c
VZ
17165#include <assert.h>
17166/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17167#ifdef __cplusplus
17168extern "C"
17169#endif
90dd450c 17170/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17171 builtin and then its argument prototype would still apply. */
17172char shmat ();
17173char (*f) ();
3a922bb4 17174
7b4a847f
RR
17175int
17176main ()
17177{
90dd450c
VZ
17178/* The GNU C library defines this for functions which it implements
17179 to always fail with ENOSYS. Some functions are actually named
17180 something starting with __ and the normal name is an alias. */
17181#if defined (__stub_shmat) || defined (__stub___shmat)
17182choke me
17183#else
7b4a847f 17184f = shmat;
90dd450c 17185#endif
10f2d63a 17186
7b4a847f
RR
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191rm -f conftest.$ac_objext conftest$ac_exeext
17192if { (eval echo "$as_me:17192: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17194 ac_status=$?
17195 echo "$as_me:17195: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (eval echo "$as_me:17198: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:17201: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_cv_func_shmat=yes
17204else
17205 echo "$as_me: failed program was:" >&5
17206cat conftest.$ac_ext >&5
17207ac_cv_func_shmat=no
17208fi
17209rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17210fi
17211echo "$as_me:17211: result: $ac_cv_func_shmat" >&5
17212echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 17213
90dd450c 17214 if test $ac_cv_func_shmat = no; then
7b4a847f
RR
17215 echo "$as_me:17215: checking for shmat in -lipc" >&5
17216echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
17217if test "${ac_cv_lib_ipc_shmat+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 17219else
7b4a847f 17220 ac_check_lib_save_LIBS=$LIBS
90dd450c 17221LIBS="-lipc $LIBS"
7b4a847f
RR
17222cat >conftest.$ac_ext <<_ACEOF
17223#line 17223 "configure"
90dd450c 17224#include "confdefs.h"
7b4a847f 17225
90dd450c 17226/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17227#ifdef __cplusplus
17228extern "C"
17229#endif
90dd450c 17230/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17231 builtin and then its argument prototype would still apply. */
17232char shmat ();
17233int
17234main ()
17235{
17236shmat ();
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext conftest$ac_exeext
17242if { (eval echo "$as_me:17242: \"$ac_link\"") >&5
17243 (eval $ac_link) 2>&5
17244 ac_status=$?
17245 echo "$as_me:17245: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -s conftest$ac_exeext'
17248 { (eval echo "$as_me:17248: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:17251: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_lib_ipc_shmat=yes
17254else
17255 echo "$as_me: failed program was:" >&5
17256cat conftest.$ac_ext >&5
17257ac_cv_lib_ipc_shmat=no
17258fi
17259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17260LIBS=$ac_check_lib_save_LIBS
17261fi
17262echo "$as_me:17262: result: $ac_cv_lib_ipc_shmat" >&5
17263echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
17264if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 17265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
17266fi
17267
d558c907 17268 fi
90dd450c 17269 fi
3a922bb4 17270
90dd450c 17271 # Check for libraries that X11R6 Xt/Xaw programs need.
7b4a847f 17272 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
17273 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17274 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17275 # check for ICE first), but we must link in the order -lSM -lICE or
17276 # we get undefined symbols. So assume we have SM if we have ICE.
17277 # These have to be linked with before -lX11, unlike the other
17278 # libraries we check for below, so use a different variable.
7b4a847f
RR
17279 # John Interrante, Karl Berry
17280 echo "$as_me:17280: checking for IceConnectionNumber in -lICE" >&5
17281echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
17282if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17284else
17285 ac_check_lib_save_LIBS=$LIBS
f09359cf 17286LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7b4a847f
RR
17287cat >conftest.$ac_ext <<_ACEOF
17288#line 17288 "configure"
9cfadba2 17289#include "confdefs.h"
7b4a847f 17290
90dd450c 17291/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17292#ifdef __cplusplus
17293extern "C"
17294#endif
90dd450c 17295/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17296 builtin and then its argument prototype would still apply. */
17297char IceConnectionNumber ();
17298int
17299main ()
17300{
17301IceConnectionNumber ();
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306rm -f conftest.$ac_objext conftest$ac_exeext
17307if { (eval echo "$as_me:17307: \"$ac_link\"") >&5
17308 (eval $ac_link) 2>&5
17309 ac_status=$?
17310 echo "$as_me:17310: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -s conftest$ac_exeext'
17313 { (eval echo "$as_me:17313: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:17316: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 ac_cv_lib_ICE_IceConnectionNumber=yes
17319else
17320 echo "$as_me: failed program was:" >&5
17321cat conftest.$ac_ext >&5
17322ac_cv_lib_ICE_IceConnectionNumber=no
17323fi
17324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17325LIBS=$ac_check_lib_save_LIBS
17326fi
17327echo "$as_me:17327: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17328echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
17329if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 17330 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 17331fi
10f2d63a 17332
7b4a847f 17333 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
17334
17335fi
17336
90dd450c 17337 if test "$no_x" = "yes"; then
7b4a847f
RR
17338 { { echo "$as_me:17338: error: X11 not found" >&5
17339echo "$as_me: error: X11 not found" >&2;}
17340 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
17341 fi
17342
17343 GUI_TK_LIBRARY="$X_LIBS"
17344 TOOLKIT_INCLUDE="$X_CFLAGS"
17345 AFMINSTALL=afminstall
17346 COMPILED_X_PROGRAM=0
17347
21d1c967 17348 if test "$wxUSE_NANOX" = "yes"; then
7b4a847f
RR
17349 echo "$as_me:17349: checking for MicroWindows/NanoX distribution" >&5
17350echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 17351 if test "x$MICROWIN" = x ; then
7b4a847f
RR
17352 echo "$as_me:17352: result: not found" >&5
17353echo "${ECHO_T}not found" >&6
17354 { { echo "$as_me:17354: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
17355echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
17356 { (exit 1); exit 1; }; }
90dd450c 17357 else
7b4a847f
RR
17358 echo "$as_me:17358: result: $MICROWIN" >&5
17359echo "${ECHO_T}$MICROWIN" >&6
17360 cat >>confdefs.h <<\EOF
21d1c967 17361#define wxUSE_NANOX 1
698dcdb6 17362EOF
21d1c967 17363
90dd450c
VZ
17364 fi
17365 fi
17366
17367 xpm_link=
7b4a847f
RR
17368 echo "$as_me:17368: checking for Xpm library" >&5
17369echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
17370
90dd450c
VZ
17371ac_find_libraries=
17372for ac_dir in $SEARCH_LIB;
17373 do
17374 for ac_extension in a so sl dylib; do
17375 if test -f "$ac_dir/libXpm.$ac_extension"; then
17376 ac_find_libraries=$ac_dir
17377 break 2
17378 fi
17379 done
17380 done
17381
17382 if test "$ac_find_libraries" != "" ; then
7b4a847f 17383
90dd450c
VZ
17384 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
17385 result=$?
17386 if test $result = 0; then
17387 ac_path_to_link=""
17388 else
17389 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 17390 fi
90dd450c 17391
21d1c967
GD
17392 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
17393 xpm_link=" -lXpm"
7b4a847f 17394 cat >>confdefs.h <<\EOF
21d1c967
GD
17395#define wxHAVE_LIB_XPM 1
17396EOF
90dd450c 17397
7b4a847f
RR
17398 echo "$as_me:17398: result: found at $ac_find_libraries" >&5
17399echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 17400 else
7b4a847f
RR
17401 cat >conftest.$ac_ext <<_ACEOF
17402#line 17402 "configure"
21d1c967 17403#include "confdefs.h"
90dd450c 17404
21d1c967 17405 #include <X11/xpm.h>
7b4a847f
RR
17406
17407int
17408main ()
17409{
6f72b082 17410
21d1c967
GD
17411 int version;
17412 version = XpmLibraryVersion();
7b4a847f
RR
17413
17414 ;
17415 return 0;
17416}
17417_ACEOF
17418rm -f conftest.$ac_objext
17419if { (eval echo "$as_me:17419: \"$ac_compile\"") >&5
17420 (eval $ac_compile) 2>&5
17421 ac_status=$?
17422 echo "$as_me:17422: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -s conftest.$ac_objext'
17425 { (eval echo "$as_me:17425: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 echo "$as_me:17428: \$? = $ac_status" >&5
17429 (exit $ac_status); }; }; then
17430
21d1c967 17431 xpm_link=" -lXpm"
7b4a847f 17432 cat >>confdefs.h <<\EOF
21d1c967
GD
17433#define wxHAVE_LIB_XPM 1
17434EOF
90dd450c 17435
7b4a847f
RR
17436 echo "$as_me:17436: result: found in default search path" >&5
17437echo "${ECHO_T}found in default search path" >&6
21d1c967 17438 COMPILED_X_PROGRAM=0
7b4a847f 17439
21d1c967 17440else
7b4a847f
RR
17441 echo "$as_me: failed program was:" >&5
17442cat conftest.$ac_ext >&5
17443
17444 echo "$as_me:17444: result: no" >&5
17445echo "${ECHO_T}no" >&6
17446 { echo "$as_me:17446: WARNING: library will be compiled without support for images in XPM format" >&5
17447echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
17448
6f72b082 17449fi
7b4a847f 17450rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 17451 fi
90dd450c 17452
1d1b75ac
VZ
17453 wxUSE_UNIVERSAL="yes"
17454
21d1c967
GD
17455 if test "$wxUSE_NANOX" = "yes"; then
17456 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
17457 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
17458 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
17459 else
17460 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
17461 fi
6f72b082 17462
21d1c967
GD
17463 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
17464 TOOLKIT=X11
17465 GUIDIST=X11_DIST
17466 fi
90dd450c 17467
21d1c967 17468 if test "$wxUSE_WINE" = 1; then
7b4a847f
RR
17469 echo "$as_me:17469: checking for windows.h" >&5
17470echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
17471if test "${ac_cv_header_windows_h+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473else
17474 cat >conftest.$ac_ext <<_ACEOF
17475#line 17475 "configure"
6f72b082 17476#include "confdefs.h"
21d1c967 17477#include <windows.h>
7b4a847f
RR
17478_ACEOF
17479if { (eval echo "$as_me:17479: \"$ac_cpp conftest.$ac_ext\"") >&5
17480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17481 ac_status=$?
17482 egrep -v '^ *\+' conftest.er1 >conftest.err
17483 rm -f conftest.er1
17484 cat conftest.err >&5
17485 echo "$as_me:17485: \$? = $ac_status" >&5
17486 (exit $ac_status); } >/dev/null; then
17487 if test -s conftest.err; then
17488 ac_cpp_err=$ac_c_preproc_warn_flag
17489 else
17490 ac_cpp_err=
17491 fi
17492else
17493 ac_cpp_err=yes
17494fi
17495if test -z "$ac_cpp_err"; then
17496 ac_cv_header_windows_h=yes
10f2d63a 17497else
7b4a847f 17498 echo "$as_me: failed program was:" >&5
10f2d63a 17499 cat conftest.$ac_ext >&5
7b4a847f 17500 ac_cv_header_windows_h=no
10f2d63a 17501fi
7b4a847f 17502rm -f conftest.err conftest.$ac_ext
10f2d63a 17503fi
7b4a847f
RR
17504echo "$as_me:17504: result: $ac_cv_header_windows_h" >&5
17505echo "${ECHO_T}$ac_cv_header_windows_h" >&6
17506if test $ac_cv_header_windows_h = yes; then
21d1c967
GD
17507 :
17508else
21d1c967 17509
7b4a847f
RR
17510 { { echo "$as_me:17510: error: please set CFLAGS to contain the location of windows.h" >&5
17511echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
17512 { (exit 1); exit 1; }; }
21d1c967 17513
7b4a847f 17514fi
328a083c 17515
579d8138 17516 xpm_link=
7b4a847f
RR
17517 echo "$as_me:17517: checking for Xpm library" >&5
17518echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
17519
90dd450c
VZ
17520ac_find_libraries=
17521for ac_dir in $SEARCH_LIB;
17522 do
17523 for ac_extension in a so sl dylib; do
21d1c967 17524 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
17525 ac_find_libraries=$ac_dir
17526 break 2
17527 fi
17528 done
17529 done
17530
21d1c967
GD
17531 if test "$ac_find_libraries" != "" ; then
17532 GUI_TK_LIBRARY="-L$ac_find_libraries"
17533 xpm_link=" -lXpm"
7b4a847f 17534 cat >>confdefs.h <<\EOF
21d1c967
GD
17535#define wxHAVE_LIB_XPM 1
17536EOF
90dd450c 17537
7b4a847f
RR
17538 echo "$as_me:17538: result: found at $ac_find_libraries" >&5
17539echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 17540 else
7b4a847f
RR
17541 echo "$as_me:17541: result: no" >&5
17542echo "${ECHO_T}no" >&6
17543 { echo "$as_me:17543: WARNING: library will be compiled without support for images in XPM format" >&5
17544echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
21d1c967
GD
17545 fi
17546
17547 mesa_link=
7b4a847f
RR
17548 echo "$as_me:17548: checking for Mesa library" >&5
17549echo $ECHO_N "checking for Mesa library... $ECHO_C" >&6
17550
90dd450c
VZ
17551ac_find_libraries=
17552for ac_dir in $SEARCH_LIB;
17553 do
17554 for ac_extension in a so sl dylib; do
17555 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
17556 ac_find_libraries=$ac_dir
17557 break 2
17558 fi
17559 done
17560 done
17561
21d1c967
GD
17562 if test "$ac_find_libraries" != "" ; then
17563 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
17564 mesa_link=" -lMesaGL"
7b4a847f
RR
17565 echo "$as_me:17565: result: found at $ac_find_libraries" >&5
17566echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 17567 else
7b4a847f
RR
17568 { { echo "$as_me:17568: error: no" >&5
17569echo "$as_me: error: no" >&2;}
17570 { (exit 1); exit 1; }; }
21d1c967
GD
17571 fi
17572
17573 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
17574 TOOLKIT=MSW
17575 GUIDIST=MSW_DIST
17576 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
17577 fi
17578
17579 if test "$wxUSE_MOTIF" = 1; then
17580 if test "$no_x" = yes; then
17581 # Not all programs may use this symbol, but it does not hurt to define it.
7b4a847f
RR
17582
17583cat >>confdefs.h <<\EOF
21d1c967
GD
17584#define X_DISPLAY_MISSING 1
17585EOF
17586
17587 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17588else
17589 if test -n "$x_includes"; then
17590 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
17591 fi
17592
21d1c967
GD
17593 # It would also be nice to do this for all -L options, not just this one.
17594 if test -n "$x_libraries"; then
17595 X_LIBS="$X_LIBS -L$x_libraries"
17596 # For Solaris; some versions of Sun CC require a space after -R and
17597 # others require no space. Words are not sufficient . . . .
7b4a847f 17598 case `(uname -sr) 2>/dev/null` in
21d1c967 17599 "SunOS 5"*)
7b4a847f
RR
17600 echo "$as_me:17600: checking whether -R must be followed by a space" >&5
17601echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17602 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17603 cat >conftest.$ac_ext <<_ACEOF
17604#line 17604 "configure"
21d1c967
GD
17605#include "confdefs.h"
17606
7b4a847f
RR
17607int
17608main ()
17609{
21d1c967 17610
7b4a847f
RR
17611 ;
17612 return 0;
17613}
17614_ACEOF
17615rm -f conftest.$ac_objext conftest$ac_exeext
17616if { (eval echo "$as_me:17616: \"$ac_link\"") >&5
17617 (eval $ac_link) 2>&5
17618 ac_status=$?
17619 echo "$as_me:17619: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -s conftest$ac_exeext'
17622 { (eval echo "$as_me:17622: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:17625: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
21d1c967 17627 ac_R_nospace=yes
698dcdb6 17628else
7b4a847f
RR
17629 echo "$as_me: failed program was:" >&5
17630cat conftest.$ac_ext >&5
17631ac_R_nospace=no
10f2d63a 17632fi
7b4a847f 17633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 17634 if test $ac_R_nospace = yes; then
7b4a847f
RR
17635 echo "$as_me:17635: result: no" >&5
17636echo "${ECHO_T}no" >&6
21d1c967
GD
17637 X_LIBS="$X_LIBS -R$x_libraries"
17638 else
17639 LIBS="$ac_xsave_LIBS -R $x_libraries"
7b4a847f
RR
17640 cat >conftest.$ac_ext <<_ACEOF
17641#line 17641 "configure"
21d1c967 17642#include "confdefs.h"
10f2d63a 17643
7b4a847f
RR
17644int
17645main ()
17646{
f0c87536 17647
7b4a847f
RR
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest.$ac_objext conftest$ac_exeext
17653if { (eval echo "$as_me:17653: \"$ac_link\"") >&5
17654 (eval $ac_link) 2>&5
17655 ac_status=$?
17656 echo "$as_me:17656: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -s conftest$ac_exeext'
17659 { (eval echo "$as_me:17659: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:17662: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
21d1c967
GD
17664 ac_R_space=yes
17665else
7b4a847f
RR
17666 echo "$as_me: failed program was:" >&5
17667cat conftest.$ac_ext >&5
17668ac_R_space=no
21d1c967 17669fi
7b4a847f 17670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 17671 if test $ac_R_space = yes; then
7b4a847f
RR
17672 echo "$as_me:17672: result: yes" >&5
17673echo "${ECHO_T}yes" >&6
21d1c967
GD
17674 X_LIBS="$X_LIBS -R $x_libraries"
17675 else
7b4a847f
RR
17676 echo "$as_me:17676: result: neither works" >&5
17677echo "${ECHO_T}neither works" >&6
21d1c967
GD
17678 fi
17679 fi
7b4a847f 17680 LIBS=$ac_xsave_LIBS
21d1c967
GD
17681 esac
17682 fi
90dd450c 17683
21d1c967
GD
17684 # Check for system-dependent libraries X programs must link with.
17685 # Do this before checking for the system-independent R6 libraries
17686 # (-lICE), since we may need -lsocket or whatever for X linking.
17687
17688 if test "$ISC" = yes; then
17689 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17690 else
7b4a847f
RR
17691 # Martyn Johnson says this is needed for Ultrix, if the X
17692 # libraries were built with DECnet support. And Karl Berry says
21d1c967 17693 # the Alpha needs dnet_stub (dnet does not exist).
7b4a847f
RR
17694 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17695 cat >conftest.$ac_ext <<_ACEOF
17696#line 17696 "configure"
328a083c 17697#include "confdefs.h"
7b4a847f 17698
328a083c 17699/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17700#ifdef __cplusplus
17701extern "C"
17702#endif
328a083c 17703/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17704 builtin and then its argument prototype would still apply. */
17705char XOpenDisplay ();
17706int
17707main ()
17708{
17709XOpenDisplay ();
17710 ;
17711 return 0;
17712}
17713_ACEOF
17714rm -f conftest.$ac_objext conftest$ac_exeext
17715if { (eval echo "$as_me:17715: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>&5
17717 ac_status=$?
17718 echo "$as_me:17718: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -s conftest$ac_exeext'
17721 { (eval echo "$as_me:17721: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:17724: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 :
579d8138 17727else
7b4a847f
RR
17728 echo "$as_me: failed program was:" >&5
17729cat conftest.$ac_ext >&5
17730echo "$as_me:17730: checking for dnet_ntoa in -ldnet" >&5
17731echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17732if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734else
17735 ac_check_lib_save_LIBS=$LIBS
17736LIBS="-ldnet $LIBS"
17737cat >conftest.$ac_ext <<_ACEOF
17738#line 17738 "configure"
17739#include "confdefs.h"
579d8138 17740
7b4a847f
RR
17741/* Override any gcc2 internal prototype to avoid an error. */
17742#ifdef __cplusplus
17743extern "C"
17744#endif
17745/* We use char because int might match the return type of a gcc2
17746 builtin and then its argument prototype would still apply. */
17747char dnet_ntoa ();
17748int
17749main ()
17750{
17751dnet_ntoa ();
17752 ;
17753 return 0;
17754}
17755_ACEOF
17756rm -f conftest.$ac_objext conftest$ac_exeext
17757if { (eval echo "$as_me:17757: \"$ac_link\"") >&5
17758 (eval $ac_link) 2>&5
17759 ac_status=$?
17760 echo "$as_me:17760: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -s conftest$ac_exeext'
17763 { (eval echo "$as_me:17763: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:17766: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_cv_lib_dnet_dnet_ntoa=yes
17769else
17770 echo "$as_me: failed program was:" >&5
17771cat conftest.$ac_ext >&5
17772ac_cv_lib_dnet_dnet_ntoa=no
17773fi
17774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17775LIBS=$ac_check_lib_save_LIBS
17776fi
17777echo "$as_me:17777: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17778echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17779if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 17780 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 17781fi
0fb0dd83 17782
21d1c967 17783 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7b4a847f
RR
17784 echo "$as_me:17784: checking for dnet_ntoa in -ldnet_stub" >&5
17785echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17786if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17788else
7b4a847f 17789 ac_check_lib_save_LIBS=$LIBS
21d1c967 17790LIBS="-ldnet_stub $LIBS"
7b4a847f
RR
17791cat >conftest.$ac_ext <<_ACEOF
17792#line 17792 "configure"
21d1c967 17793#include "confdefs.h"
7b4a847f 17794
21d1c967 17795/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17796#ifdef __cplusplus
17797extern "C"
17798#endif
21d1c967 17799/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17800 builtin and then its argument prototype would still apply. */
17801char dnet_ntoa ();
17802int
17803main ()
17804{
17805dnet_ntoa ();
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810rm -f conftest.$ac_objext conftest$ac_exeext
17811if { (eval echo "$as_me:17811: \"$ac_link\"") >&5
17812 (eval $ac_link) 2>&5
17813 ac_status=$?
17814 echo "$as_me:17814: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -s conftest$ac_exeext'
17817 { (eval echo "$as_me:17817: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:17820: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17823else
17824 echo "$as_me: failed program was:" >&5
17825cat conftest.$ac_ext >&5
17826ac_cv_lib_dnet_stub_dnet_ntoa=no
17827fi
17828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17829LIBS=$ac_check_lib_save_LIBS
17830fi
17831echo "$as_me:17831: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17832echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
17833if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 17834 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
17835fi
17836
21d1c967 17837 fi
7b4a847f
RR
17838fi
17839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17840 LIBS="$ac_xsave_LIBS"
90dd450c 17841
21d1c967
GD
17842 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17843 # to get the SysV transport functions.
7b4a847f 17844 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
17845 # needs -lnsl.
17846 # The nsl library prevents programs from opening the X display
7b4a847f
RR
17847 # on Irix 5.2, according to T.E. Dickey.
17848 # The functions gethostbyname, getservbyname, and inet_addr are
17849 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17850 echo "$as_me:17850: checking for gethostbyname" >&5
17851echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
17852if test "${ac_cv_func_gethostbyname+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17854else
17855 cat >conftest.$ac_ext <<_ACEOF
17856#line 17856 "configure"
21d1c967
GD
17857#include "confdefs.h"
17858/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 17859 which can conflict with char gethostbyname (); below. */
21d1c967
GD
17860#include <assert.h>
17861/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17862#ifdef __cplusplus
17863extern "C"
17864#endif
21d1c967 17865/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17866 builtin and then its argument prototype would still apply. */
17867char gethostbyname ();
17868char (*f) ();
90dd450c 17869
7b4a847f
RR
17870int
17871main ()
17872{
21d1c967
GD
17873/* The GNU C library defines this for functions which it implements
17874 to always fail with ENOSYS. Some functions are actually named
17875 something starting with __ and the normal name is an alias. */
17876#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
17877choke me
17878#else
7b4a847f 17879f = gethostbyname;
21d1c967 17880#endif
90dd450c 17881
7b4a847f
RR
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest.$ac_objext conftest$ac_exeext
17887if { (eval echo "$as_me:17887: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
17889 ac_status=$?
17890 echo "$as_me:17890: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:17893: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:17896: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_func_gethostbyname=yes
17899else
17900 echo "$as_me: failed program was:" >&5
17901cat conftest.$ac_ext >&5
17902ac_cv_func_gethostbyname=no
17903fi
17904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17905fi
17906echo "$as_me:17906: result: $ac_cv_func_gethostbyname" >&5
17907echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 17908
21d1c967 17909 if test $ac_cv_func_gethostbyname = no; then
7b4a847f
RR
17910 echo "$as_me:17910: checking for gethostbyname in -lnsl" >&5
17911echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
17912if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17914else
7b4a847f 17915 ac_check_lib_save_LIBS=$LIBS
21d1c967 17916LIBS="-lnsl $LIBS"
7b4a847f
RR
17917cat >conftest.$ac_ext <<_ACEOF
17918#line 17918 "configure"
21d1c967 17919#include "confdefs.h"
7b4a847f 17920
21d1c967 17921/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
17922#ifdef __cplusplus
17923extern "C"
17924#endif
21d1c967 17925/* We use char because int might match the return type of a gcc2
7b4a847f
RR
17926 builtin and then its argument prototype would still apply. */
17927char gethostbyname ();
17928int
17929main ()
17930{
17931gethostbyname ();
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext conftest$ac_exeext
17937if { (eval echo "$as_me:17937: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>&5
17939 ac_status=$?
17940 echo "$as_me:17940: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (eval echo "$as_me:17943: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:17946: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_lib_nsl_gethostbyname=yes
17949else
17950 echo "$as_me: failed program was:" >&5
17951cat conftest.$ac_ext >&5
17952ac_cv_lib_nsl_gethostbyname=no
17953fi
17954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17955LIBS=$ac_check_lib_save_LIBS
17956fi
17957echo "$as_me:17957: result: $ac_cv_lib_nsl_gethostbyname" >&5
17958echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
17959if test $ac_cv_lib_nsl_gethostbyname = yes; then
17960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
579d8138 17961fi
328a083c 17962
7b4a847f
RR
17963 if test $ac_cv_lib_nsl_gethostbyname = no; then
17964 echo "$as_me:17964: checking for gethostbyname in -lbsd" >&5
17965echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
17966if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 17968else
7b4a847f
RR
17969 ac_check_lib_save_LIBS=$LIBS
17970LIBS="-lbsd $LIBS"
17971cat >conftest.$ac_ext <<_ACEOF
17972#line 17972 "configure"
17973#include "confdefs.h"
17974
17975/* Override any gcc2 internal prototype to avoid an error. */
17976#ifdef __cplusplus
17977extern "C"
17978#endif
17979/* We use char because int might match the return type of a gcc2
17980 builtin and then its argument prototype would still apply. */
17981char gethostbyname ();
17982int
17983main ()
17984{
17985gethostbyname ();
17986 ;
17987 return 0;
17988}
17989_ACEOF
17990rm -f conftest.$ac_objext conftest$ac_exeext
17991if { (eval echo "$as_me:17991: \"$ac_link\"") >&5
17992 (eval $ac_link) 2>&5
17993 ac_status=$?
17994 echo "$as_me:17994: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -s conftest$ac_exeext'
17997 { (eval echo "$as_me:17997: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:18000: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
18002 ac_cv_lib_bsd_gethostbyname=yes
18003else
18004 echo "$as_me: failed program was:" >&5
18005cat conftest.$ac_ext >&5
18006ac_cv_lib_bsd_gethostbyname=no
18007fi
18008rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18009LIBS=$ac_check_lib_save_LIBS
18010fi
18011echo "$as_me:18011: result: $ac_cv_lib_bsd_gethostbyname" >&5
18012echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18013if test $ac_cv_lib_bsd_gethostbyname = yes; then
18014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 18015fi
90dd450c 18016
7b4a847f 18017 fi
90dd450c
VZ
18018 fi
18019
21d1c967
GD
18020 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18021 # socket/setsockopt and other routines are undefined under SCO ODT
18022 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7b4a847f
RR
18023 # on later versions), says Simon Leinen: it contains gethostby*
18024 # variants that don't use the nameserver (or something). -lsocket
18025 # must be given before -lnsl if both are needed. We assume that
18026 # if connect needs -lnsl, so does gethostbyname.
18027 echo "$as_me:18027: checking for connect" >&5
18028echo $ECHO_N "checking for connect... $ECHO_C" >&6
18029if test "${ac_cv_func_connect+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031else
18032 cat >conftest.$ac_ext <<_ACEOF
18033#line 18033 "configure"
21d1c967
GD
18034#include "confdefs.h"
18035/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 18036 which can conflict with char connect (); below. */
21d1c967
GD
18037#include <assert.h>
18038/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
18039#ifdef __cplusplus
18040extern "C"
18041#endif
21d1c967 18042/* We use char because int might match the return type of a gcc2
7b4a847f
RR
18043 builtin and then its argument prototype would still apply. */
18044char connect ();
18045char (*f) ();
90dd450c 18046
7b4a847f
RR
18047int
18048main ()
18049{
21d1c967
GD
18050/* The GNU C library defines this for functions which it implements
18051 to always fail with ENOSYS. Some functions are actually named
18052 something starting with __ and the normal name is an alias. */
18053#if defined (__stub_connect) || defined (__stub___connect)
18054choke me
18055#else
7b4a847f 18056f = connect;
21d1c967 18057#endif
90dd450c 18058
7b4a847f
RR
18059 ;
18060 return 0;
18061}
18062_ACEOF
18063rm -f conftest.$ac_objext conftest$ac_exeext
18064if { (eval echo "$as_me:18064: \"$ac_link\"") >&5
18065 (eval $ac_link) 2>&5
18066 ac_status=$?
18067 echo "$as_me:18067: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -s conftest$ac_exeext'
18070 { (eval echo "$as_me:18070: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:18073: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 ac_cv_func_connect=yes
18076else
18077 echo "$as_me: failed program was:" >&5
18078cat conftest.$ac_ext >&5
18079ac_cv_func_connect=no
18080fi
18081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18082fi
18083echo "$as_me:18083: result: $ac_cv_func_connect" >&5
18084echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 18085
21d1c967 18086 if test $ac_cv_func_connect = no; then
7b4a847f
RR
18087 echo "$as_me:18087: checking for connect in -lsocket" >&5
18088echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18089if test "${ac_cv_lib_socket_connect+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 18091else
7b4a847f 18092 ac_check_lib_save_LIBS=$LIBS
21d1c967 18093LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7b4a847f
RR
18094cat >conftest.$ac_ext <<_ACEOF
18095#line 18095 "configure"
0fbb762e 18096#include "confdefs.h"
7b4a847f 18097
21d1c967 18098/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
18099#ifdef __cplusplus
18100extern "C"
18101#endif
21d1c967 18102/* We use char because int might match the return type of a gcc2
7b4a847f
RR
18103 builtin and then its argument prototype would still apply. */
18104char connect ();
18105int
18106main ()
18107{
18108connect ();
18109 ;
18110 return 0;
18111}
18112_ACEOF
18113rm -f conftest.$ac_objext conftest$ac_exeext
18114if { (eval echo "$as_me:18114: \"$ac_link\"") >&5
18115 (eval $ac_link) 2>&5
18116 ac_status=$?
18117 echo "$as_me:18117: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -s conftest$ac_exeext'
18120 { (eval echo "$as_me:18120: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:18123: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_lib_socket_connect=yes
18126else
18127 echo "$as_me: failed program was:" >&5
18128cat conftest.$ac_ext >&5
18129ac_cv_lib_socket_connect=no
18130fi
18131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18132LIBS=$ac_check_lib_save_LIBS
18133fi
18134echo "$as_me:18134: result: $ac_cv_lib_socket_connect" >&5
18135echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18136if test $ac_cv_lib_socket_connect = yes; then
21d1c967 18137 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 18138fi
90dd450c 18139
21d1c967 18140 fi
90dd450c 18141
7b4a847f
RR
18142 # Guillermo Gomez says -lposix is necessary on A/UX.
18143 echo "$as_me:18143: checking for remove" >&5
18144echo $ECHO_N "checking for remove... $ECHO_C" >&6
18145if test "${ac_cv_func_remove+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18147else
7b4a847f
RR
18148 cat >conftest.$ac_ext <<_ACEOF
18149#line 18149 "configure"
21d1c967
GD
18150#include "confdefs.h"
18151/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 18152 which can conflict with char remove (); below. */
21d1c967
GD
18153#include <assert.h>
18154/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
18155#ifdef __cplusplus
18156extern "C"
18157#endif
21d1c967 18158/* We use char because int might match the return type of a gcc2
7b4a847f
RR
18159 builtin and then its argument prototype would still apply. */
18160char remove ();
18161char (*f) ();
90dd450c 18162
7b4a847f
RR
18163int
18164main ()
18165{
21d1c967
GD
18166/* The GNU C library defines this for functions which it implements
18167 to always fail with ENOSYS. Some functions are actually named
18168 something starting with __ and the normal name is an alias. */
18169#if defined (__stub_remove) || defined (__stub___remove)
18170choke me
18171#else
7b4a847f 18172f = remove;
21d1c967 18173#endif
90dd450c 18174
7b4a847f
RR
18175 ;
18176 return 0;
18177}
18178_ACEOF
18179rm -f conftest.$ac_objext conftest$ac_exeext
18180if { (eval echo "$as_me:18180: \"$ac_link\"") >&5
18181 (eval $ac_link) 2>&5
18182 ac_status=$?
18183 echo "$as_me:18183: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
18185 { ac_try='test -s conftest$ac_exeext'
18186 { (eval echo "$as_me:18186: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:18189: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_cv_func_remove=yes
18192else
18193 echo "$as_me: failed program was:" >&5
18194cat conftest.$ac_ext >&5
18195ac_cv_func_remove=no
18196fi
18197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18198fi
18199echo "$as_me:18199: result: $ac_cv_func_remove" >&5
18200echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 18201
21d1c967 18202 if test $ac_cv_func_remove = no; then
7b4a847f
RR
18203 echo "$as_me:18203: checking for remove in -lposix" >&5
18204echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18205if test "${ac_cv_lib_posix_remove+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18207else
7b4a847f 18208 ac_check_lib_save_LIBS=$LIBS
21d1c967 18209LIBS="-lposix $LIBS"
7b4a847f
RR
18210cat >conftest.$ac_ext <<_ACEOF
18211#line 18211 "configure"
21d1c967 18212#include "confdefs.h"
7b4a847f 18213
21d1c967 18214/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
18215#ifdef __cplusplus
18216extern "C"
18217#endif
21d1c967 18218/* We use char because int might match the return type of a gcc2
7b4a847f
RR
18219 builtin and then its argument prototype would still apply. */
18220char remove ();
18221int
18222main ()
18223{
18224remove ();
18225 ;
18226 return 0;
18227}
18228_ACEOF
18229rm -f conftest.$ac_objext conftest$ac_exeext
18230if { (eval echo "$as_me:18230: \"$ac_link\"") >&5
18231 (eval $ac_link) 2>&5
18232 ac_status=$?
18233 echo "$as_me:18233: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -s conftest$ac_exeext'
18236 { (eval echo "$as_me:18236: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:18239: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241 ac_cv_lib_posix_remove=yes
18242else
18243 echo "$as_me: failed program was:" >&5
18244cat conftest.$ac_ext >&5
18245ac_cv_lib_posix_remove=no
18246fi
18247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18248LIBS=$ac_check_lib_save_LIBS
18249fi
18250echo "$as_me:18250: result: $ac_cv_lib_posix_remove" >&5
18251echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18252if test $ac_cv_lib_posix_remove = yes; then
21d1c967 18253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 18254fi
19bc6aad 18255
90dd450c 18256 fi
19bc6aad 18257
21d1c967 18258 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7b4a847f
RR
18259 echo "$as_me:18259: checking for shmat" >&5
18260echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18261if test "${ac_cv_func_shmat+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18263else
7b4a847f
RR
18264 cat >conftest.$ac_ext <<_ACEOF
18265#line 18265 "configure"
21d1c967
GD
18266#include "confdefs.h"
18267/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 18268 which can conflict with char shmat (); below. */
21d1c967
GD
18269#include <assert.h>
18270/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
18271#ifdef __cplusplus
18272extern "C"
18273#endif
21d1c967 18274/* We use char because int might match the return type of a gcc2
7b4a847f
RR
18275 builtin and then its argument prototype would still apply. */
18276char shmat ();
18277char (*f) ();
90dd450c 18278
7b4a847f
RR
18279int
18280main ()
18281{
21d1c967
GD
18282/* The GNU C library defines this for functions which it implements
18283 to always fail with ENOSYS. Some functions are actually named
18284 something starting with __ and the normal name is an alias. */
18285#if defined (__stub_shmat) || defined (__stub___shmat)
18286choke me
18287#else
7b4a847f 18288f = shmat;
21d1c967 18289#endif
90dd450c 18290
7b4a847f
RR
18291 ;
18292 return 0;
18293}
18294_ACEOF
18295rm -f conftest.$ac_objext conftest$ac_exeext
18296if { (eval echo "$as_me:18296: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>&5
18298 ac_status=$?
18299 echo "$as_me:18299: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -s conftest$ac_exeext'
18302 { (eval echo "$as_me:18302: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:18305: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_func_shmat=yes
18308else
18309 echo "$as_me: failed program was:" >&5
18310cat conftest.$ac_ext >&5
18311ac_cv_func_shmat=no
18312fi
18313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18314fi
18315echo "$as_me:18315: result: $ac_cv_func_shmat" >&5
18316echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 18317
21d1c967 18318 if test $ac_cv_func_shmat = no; then
7b4a847f
RR
18319 echo "$as_me:18319: checking for shmat in -lipc" >&5
18320echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18321if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
9f8148b1 18323else
7b4a847f 18324 ac_check_lib_save_LIBS=$LIBS
21d1c967 18325LIBS="-lipc $LIBS"
7b4a847f
RR
18326cat >conftest.$ac_ext <<_ACEOF
18327#line 18327 "configure"
21d1c967 18328#include "confdefs.h"
7b4a847f 18329
21d1c967 18330/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
18331#ifdef __cplusplus
18332extern "C"
18333#endif
21d1c967 18334/* We use char because int might match the return type of a gcc2
7b4a847f
RR
18335 builtin and then its argument prototype would still apply. */
18336char shmat ();
18337int
18338main ()
18339{
18340shmat ();
18341 ;
18342 return 0;
18343}
18344_ACEOF
18345rm -f conftest.$ac_objext conftest$ac_exeext
18346if { (eval echo "$as_me:18346: \"$ac_link\"") >&5
18347 (eval $ac_link) 2>&5
18348 ac_status=$?
18349 echo "$as_me:18349: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -s conftest$ac_exeext'
18352 { (eval echo "$as_me:18352: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:18355: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_lib_ipc_shmat=yes
18358else
18359 echo "$as_me: failed program was:" >&5
18360cat conftest.$ac_ext >&5
18361ac_cv_lib_ipc_shmat=no
18362fi
18363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18364LIBS=$ac_check_lib_save_LIBS
18365fi
18366echo "$as_me:18366: result: $ac_cv_lib_ipc_shmat" >&5
18367echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18368if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 18369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 18370fi
90dd450c 18371
90dd450c 18372 fi
21d1c967 18373 fi
10f2d63a 18374
21d1c967 18375 # Check for libraries that X11R6 Xt/Xaw programs need.
7b4a847f 18376 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
18377 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18378 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18379 # check for ICE first), but we must link in the order -lSM -lICE or
18380 # we get undefined symbols. So assume we have SM if we have ICE.
18381 # These have to be linked with before -lX11, unlike the other
18382 # libraries we check for below, so use a different variable.
7b4a847f
RR
18383 # John Interrante, Karl Berry
18384 echo "$as_me:18384: checking for IceConnectionNumber in -lICE" >&5
18385echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18386if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18388else
18389 ac_check_lib_save_LIBS=$LIBS
f09359cf 18390LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7b4a847f
RR
18391cat >conftest.$ac_ext <<_ACEOF
18392#line 18392 "configure"
29fd3c0c 18393#include "confdefs.h"
7b4a847f 18394
21d1c967 18395/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
18396#ifdef __cplusplus
18397extern "C"
18398#endif
21d1c967 18399/* We use char because int might match the return type of a gcc2
7b4a847f
RR
18400 builtin and then its argument prototype would still apply. */
18401char IceConnectionNumber ();
18402int
18403main ()
18404{
18405IceConnectionNumber ();
18406 ;
18407 return 0;
18408}
18409_ACEOF
18410rm -f conftest.$ac_objext conftest$ac_exeext
18411if { (eval echo "$as_me:18411: \"$ac_link\"") >&5
18412 (eval $ac_link) 2>&5
18413 ac_status=$?
18414 echo "$as_me:18414: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (eval echo "$as_me:18417: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:18420: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_cv_lib_ICE_IceConnectionNumber=yes
18423else
18424 echo "$as_me: failed program was:" >&5
18425cat conftest.$ac_ext >&5
18426ac_cv_lib_ICE_IceConnectionNumber=no
18427fi
18428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18429LIBS=$ac_check_lib_save_LIBS
18430fi
18431echo "$as_me:18431: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18432echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18433if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 18434 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 18435fi
21d1c967 18436
7b4a847f 18437 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 18438
10f2d63a
VZ
18439fi
18440
21d1c967 18441 if test "$no_x" = "yes"; then
7b4a847f
RR
18442 { { echo "$as_me:18442: error: X11 not found" >&5
18443echo "$as_me: error: X11 not found" >&2;}
18444 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
18445 fi
18446
18447 GUI_TK_LIBRARY="$X_LIBS"
18448 TOOLKIT_INCLUDE="$X_CFLAGS"
18449 AFMINSTALL=afminstall
18450 COMPILED_X_PROGRAM=0
18451
7b4a847f
RR
18452 echo "$as_me:18452: checking for Motif/Lesstif headers" >&5
18453echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
18454
21d1c967
GD
18455ac_find_includes=
18456for ac_dir in $SEARCH_INCLUDE;
18457 do
18458 if test -f "$ac_dir/Xm/Xm.h"; then
18459 ac_find_includes=$ac_dir
18460 break
18461 fi
18462 done
18463
18464 if test "$ac_find_includes" != "" ; then
7b4a847f
RR
18465 echo "$as_me:18465: result: found $ac_find_includes" >&5
18466echo "${ECHO_T}found $ac_find_includes" >&6
21d1c967 18467 else
7b4a847f
RR
18468 cat >conftest.$ac_ext <<_ACEOF
18469#line 18469 "configure"
10f2d63a 18470#include "confdefs.h"
21d1c967
GD
18471
18472 #include <Xm/Xm.h>
7b4a847f
RR
18473
18474int
18475main ()
18476{
21d1c967
GD
18477
18478 int version;
18479 version = xmUseVersion;
7b4a847f
RR
18480
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest.$ac_objext
18486if { (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
18498 echo "$as_me:18498: result: found in default search path" >&5
18499echo "${ECHO_T}found in default search path" >&6
21d1c967 18500 COMPILED_X_PROGRAM=1
7b4a847f 18501
10f2d63a 18502else
7b4a847f
RR
18503 echo "$as_me: failed program was:" >&5
18504cat conftest.$ac_ext >&5
18505
18506 echo "$as_me:18506: result: no" >&5
18507echo "${ECHO_T}no" >&6
18508 { { echo "$as_me:18508: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
18509echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
18510 { (exit 1); exit 1; }; }
18511
10f2d63a 18512fi
7b4a847f 18513rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 18514 fi
10f2d63a 18515
21d1c967 18516 if test "$COMPILED_X_PROGRAM" = 0; then
7b4a847f
RR
18517 echo "$as_me:18517: checking for Motif/Lesstif library" >&5
18518echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
18519
21d1c967
GD
18520ac_find_libraries=
18521for ac_dir in $SEARCH_LIB;
18522 do
18523 for ac_extension in a so sl dylib; do
18524 if test -f "$ac_dir/libXm.$ac_extension"; then
18525 ac_find_libraries=$ac_dir
18526 break 2
18527 fi
18528 done
18529 done
18530
18531 if test "$ac_find_libraries" != "" ; then
7b4a847f 18532
21d1c967
GD
18533 ac_path_to_include=$ac_find_includes
18534 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
18535 result=$?
18536 if test $result = 0; then
18537 ac_path_to_include=""
18538 else
18539 ac_path_to_include=" -I$ac_find_includes"
18540 fi
18541
21d1c967
GD
18542 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
18543 result=$?
18544 if test $result = 0; then
18545 ac_path_to_link=""
18546 else
18547 ac_path_to_link=" -L$ac_find_libraries"
18548 fi
18549
21d1c967
GD
18550 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
18551 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
7b4a847f
RR
18552 echo "$as_me:18552: result: found at $ac_find_libraries" >&5
18553echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 18554 else
7b4a847f
RR
18555 cat >conftest.$ac_ext <<_ACEOF
18556#line 18556 "configure"
d836ee96 18557#include "confdefs.h"
21d1c967
GD
18558
18559 #include <Xm/Xm.h>
7b4a847f
RR
18560
18561int
18562main ()
18563{
21d1c967
GD
18564
18565 int version;
18566 version = xmUseVersion;
7b4a847f
RR
18567
18568 ;
18569 return 0;
18570}
18571_ACEOF
18572rm -f conftest.$ac_objext
18573if { (eval echo "$as_me:18573: \"$ac_compile\"") >&5
18574 (eval $ac_compile) 2>&5
18575 ac_status=$?
18576 echo "$as_me:18576: \$? = $ac_status" >&5
18577 (exit $ac_status); } &&
18578 { ac_try='test -s conftest.$ac_objext'
18579 { (eval echo "$as_me:18579: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18581 ac_status=$?
18582 echo "$as_me:18582: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18584
18585 echo "$as_me:18585: result: found in default search path" >&5
18586echo "${ECHO_T}found in default search path" >&6
21d1c967 18587 COMPILED_X_PROGRAM=1
7b4a847f 18588
d836ee96 18589else
7b4a847f
RR
18590 echo "$as_me: failed program was:" >&5
18591cat conftest.$ac_ext >&5
18592
18593 echo "$as_me:18593: result: no" >&5
18594echo "${ECHO_T}no" >&6
18595 { { echo "$as_me:18595: error: please set LDFLAGS to contain the location of libXm" >&5
18596echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
18597 { (exit 1); exit 1; }; }
18598
d836ee96 18599fi
7b4a847f 18600rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18601 fi
18602 fi
18603
18604 xpm_link=
7b4a847f
RR
18605 echo "$as_me:18605: checking for Xpm library" >&5
18606echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
18607
21d1c967
GD
18608ac_find_libraries=
18609for ac_dir in $SEARCH_LIB;
18610 do
18611 for ac_extension in a so sl dylib; do
18612 if test -f "$ac_dir/libXpm.$ac_extension"; then
18613 ac_find_libraries=$ac_dir
18614 break 2
18615 fi
18616 done
18617 done
18618
18619 if test "$ac_find_libraries" != "" ; then
7b4a847f 18620
21d1c967
GD
18621 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
18622 result=$?
18623 if test $result = 0; then
18624 ac_path_to_link=""
18625 else
18626 ac_path_to_link=" -L$ac_find_libraries"
18627 fi
18628
18629 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
18630 xpm_link=" -lXpm"
7b4a847f 18631 cat >>confdefs.h <<\EOF
21d1c967 18632#define wxHAVE_LIB_XPM 1
d836ee96 18633EOF
90dd450c 18634
7b4a847f
RR
18635 echo "$as_me:18635: result: found at $ac_find_libraries" >&5
18636echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 18637 else
7b4a847f
RR
18638 cat >conftest.$ac_ext <<_ACEOF
18639#line 18639 "configure"
d836ee96 18640#include "confdefs.h"
21d1c967
GD
18641
18642 #include <X11/xpm.h>
7b4a847f
RR
18643
18644int
18645main ()
18646{
21d1c967
GD
18647
18648 int version;
18649 version = XpmLibraryVersion();
7b4a847f
RR
18650
18651 ;
18652 return 0;
18653}
18654_ACEOF
18655rm -f conftest.$ac_objext
18656if { (eval echo "$as_me:18656: \"$ac_compile\"") >&5
18657 (eval $ac_compile) 2>&5
18658 ac_status=$?
18659 echo "$as_me:18659: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -s conftest.$ac_objext'
18662 { (eval echo "$as_me:18662: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:18665: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667
21d1c967 18668 xpm_link=" -lXpm"
7b4a847f 18669 cat >>confdefs.h <<\EOF
21d1c967
GD
18670#define wxHAVE_LIB_XPM 1
18671EOF
18672
7b4a847f
RR
18673 echo "$as_me:18673: result: found in default search path" >&5
18674echo "${ECHO_T}found in default search path" >&6
21d1c967 18675 COMPILED_X_PROGRAM=0
7b4a847f 18676
d836ee96 18677else
7b4a847f
RR
18678 echo "$as_me: failed program was:" >&5
18679cat conftest.$ac_ext >&5
18680
18681 echo "$as_me:18681: result: no" >&5
18682echo "${ECHO_T}no" >&6
18683 { echo "$as_me:18683: WARNING: library will be compiled without support for images in XPM format" >&5
18684echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
18685
d836ee96 18686fi
7b4a847f 18687rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18688 fi
18689
7b4a847f
RR
18690 echo "$as_me:18690: checking if we need -lXp and/or -lSM -lICE" >&5
18691echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
18692 libp_link=""
18693 libsm_ice_link=""
18694 libs_found=0
18695 for libp in "" " -lXp"; do
18696 if test "$libs_found" = "0"; then
18697 for libsm_ice in " -lSM -lICE"; do
7b4a847f 18698 if test "$libs_found" = "0"; then
6a30f1c8
MB
18699 save_LIBS="$LIBS"
18700 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
7b4a847f
RR
18701 cat >conftest.$ac_ext <<_ACEOF
18702#line 18702 "configure"
6a30f1c8 18703#include "confdefs.h"
17234b26 18704
6a30f1c8
MB
18705 #include <Xm/Xm.h>
18706 #include <Xm/List.h>
7b4a847f
RR
18707
18708int
18709main ()
18710{
6a30f1c8
MB
18711
18712 XmString string = NULL;
18713 Widget w = NULL;
18714 int position = 0;
18715 XmListAddItem(w, string, position);
7b4a847f
RR
18716
18717 ;
18718 return 0;
18719}
18720_ACEOF
18721rm -f conftest.$ac_objext conftest$ac_exeext
18722if { (eval echo "$as_me:18722: \"$ac_link\"") >&5
18723 (eval $ac_link) 2>&5
18724 ac_status=$?
18725 echo "$as_me:18725: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -s conftest$ac_exeext'
18728 { (eval echo "$as_me:18728: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:18731: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733
6a30f1c8
MB
18734 libp_link="$libp"
18735 libsm_ice_link="$libsm_ice"
7b4a847f
RR
18736 echo "$as_me:18736: result: need${libp_link}${libsm_ice_link}" >&5
18737echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 18738 libs_found=1
7b4a847f 18739
6a30f1c8 18740else
7b4a847f
RR
18741 echo "$as_me: failed program was:" >&5
18742cat conftest.$ac_ext >&5
18743
6a30f1c8 18744fi
7b4a847f 18745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6a30f1c8
MB
18746 LIBS="$save_LIBS"
18747 fi
18748 done
18749 fi
18750 done
18751
18752 if test "$libs_found" = "0"; then
7b4a847f
RR
18753 echo "$as_me:18753: result: can't find the right libraries" >&5
18754echo "${ECHO_T}can't find the right libraries" >&6
18755 { { echo "$as_me:18755: error: can't link a simple motif program" >&5
18756echo "$as_me: error: can't link a simple motif program" >&2;}
18757 { (exit 1); exit 1; }; }
6a30f1c8
MB
18758 fi
18759
18760 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
18761 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
18762 TOOLKIT=MOTIF
18763 GUIDIST=MOTIF_DIST
18764 fi
18765
18766 if test "$wxUSE_MAC" = 1; then
18767 if test "$wxUSE_PRECOMP" = "yes"; then
18768 CPPFLAGS="$CPPFLAGS -cpp-precomp"
18769 else
18770 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
18771 fi
18772 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
18773 CFLAGS="$CFLAGS -fpascal-strings"
18774 CXXFLAGS="$CXXFLAGS -fpascal-strings"
18775
18776 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
18777 TOOLKIT=MAC
18778 GUIDIST=MACX_DIST
18779 fi
18780
18781 if test "$wxUSE_PM" = 1; then
18782 TOOLKIT=PM
18783 GUIDIST=GTK_DIST
18784 fi
18785
18786 if test "$TOOLKIT" = "PM" ; then
18787 TOOLKIT_DIR="os2"
18788 else
18789 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
18790 fi
18791
18792 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
18793
18794 if test "$wxUSE_UNIVERSAL" = "yes"; then
18795 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
18796
18797 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
18798 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
18799
18800 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
18801 if test "$wxUSE_X11" = 1; then
18802 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
18803 else
18804 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
18805 fi
18806 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
18807 WIDGET_SET=univ
18808 else
18809 ALL_OBJECTS="\$(GUIOBJS)"
18810 ALL_SOURCES="\$(ALL_SOURCES)"
18811 ALL_HEADERS="\$(ALL_HEADERS)"
18812 fi
18813
18814 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
18815
18816 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
18817 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
18818 fi
18819
18820 if test "$wxUSE_HTML" = "yes"; then
18821 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
18822 fi
18823
18824 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18825 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
18826 fi
18827 if test "$wxUSE_LIBTIFF" = "builtin" ; then
18828 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
18829 fi
18830 if test "$wxUSE_LIBPNG" = "builtin" ; then
18831 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
18832 fi
18833
18834 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
18835 DISTDIR="wx\$(TOOLKIT)"
90dd450c 18836else
21d1c967
GD
18837 USE_GUI=0
18838
18839 TOOLKIT_DIR="base"
18840
18841 if test "$USE_WIN32" = 1 ; then
18842 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
18843 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
18844
18845 TOOLKIT="MSW"
18846 else
18847 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
18848 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
18849 fi
18850
18851 ALL_SOURCES="\$(ALL_SOURCES)"
18852 ALL_HEADERS="\$(ALL_HEADERS)"
18853
18854 PORT_FILES="\${top_srcdir}/src/files.lst"
18855
18856 GUIDIST="BASE_DIST"
18857 DISTDIR="wxBase"
d836ee96
VZ
18858fi
18859
21d1c967
GD
18860if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
18861 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 18862fi
21d1c967
GD
18863
18864if test "$wxUSE_REGEX" = "builtin" ; then
18865 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 18866fi
21d1c967
GD
18867if test "$wxUSE_ZLIB" = "builtin" ; then
18868 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
18869fi
18870
21d1c967
GD
18871if test "$wxUSE_OPENGL" = "yes"; then
18872 if test "$wxUSE_MAC" = 1; then
18873 OPENGL_LIBS="-framework OpenGL -framework AGL"
18874 elif test "$wxUSE_MSW" = 1; then
18875 OPENGL_LIBS="-lopengl32 -lglu32"
18876 else
7b4a847f
RR
18877 echo "$as_me:18877: checking for GL/gl.h" >&5
18878echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
18879if test "${ac_cv_header_GL_gl_h+set}" = set; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18881else
18882 cat >conftest.$ac_ext <<_ACEOF
18883#line 18883 "configure"
10f2d63a 18884#include "confdefs.h"
21d1c967 18885#include <GL/gl.h>
7b4a847f
RR
18886_ACEOF
18887if { (eval echo "$as_me:18887: \"$ac_cpp conftest.$ac_ext\"") >&5
18888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18889 ac_status=$?
18890 egrep -v '^ *\+' conftest.er1 >conftest.err
18891 rm -f conftest.er1
18892 cat conftest.err >&5
18893 echo "$as_me:18893: \$? = $ac_status" >&5
18894 (exit $ac_status); } >/dev/null; then
18895 if test -s conftest.err; then
18896 ac_cpp_err=$ac_c_preproc_warn_flag
18897 else
18898 ac_cpp_err=
18899 fi
18900else
18901 ac_cpp_err=yes
18902fi
18903if test -z "$ac_cpp_err"; then
18904 ac_cv_header_GL_gl_h=yes
328a083c 18905else
7b4a847f 18906 echo "$as_me: failed program was:" >&5
698dcdb6 18907 cat conftest.$ac_ext >&5
7b4a847f 18908 ac_cv_header_GL_gl_h=no
703e0a69 18909fi
7b4a847f 18910rm -f conftest.err conftest.$ac_ext
698dcdb6 18911fi
7b4a847f
RR
18912echo "$as_me:18912: result: $ac_cv_header_GL_gl_h" >&5
18913echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
18914if test $ac_cv_header_GL_gl_h = yes; then
18915
18916 echo "$as_me:18916: checking for -lGL" >&5
18917echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
18918
21d1c967
GD
18919ac_find_libraries=
18920for ac_dir in $SEARCH_LIB;
18921 do
18922 for ac_extension in a so sl dylib; do
18923 if test -f "$ac_dir/libGL.$ac_extension"; then
18924 ac_find_libraries=$ac_dir
18925 break 2
18926 fi
18927 done
18928 done
18929
18930 if test "$ac_find_libraries" != "" ; then
7b4a847f 18931
21d1c967
GD
18932 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
18933 result=$?
18934 if test $result = 0; then
18935 ac_path_to_link=""
18936 else
18937 ac_path_to_link=" -L$ac_find_libraries"
18938 fi
18939
18940 if test "$ac_path_to_link" = " -L/usr/lib" ; then
18941 LDFLAGS_GL="$LDFLAGS"
18942 else
18943 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
18944 fi
18945 OPENGL_LIBS="-lGL -lGLU"
7b4a847f
RR
18946 echo "$as_me:18946: result: yes" >&5
18947echo "${ECHO_T}yes" >&6
21d1c967 18948 else
7b4a847f
RR
18949 echo "$as_me:18949: result: no" >&5
18950echo "${ECHO_T}no" >&6
18951 echo "$as_me:18951: checking for -lMesaGL" >&5
18952echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
18953
21d1c967
GD
18954ac_find_libraries=
18955for ac_dir in $SEARCH_LIB;
18956 do
18957 for ac_extension in a so sl dylib; do
18958 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
18959 ac_find_libraries=$ac_dir
18960 break 2
18961 fi
18962 done
18963 done
18964
18965 if test "$ac_find_libraries" != "" ; then
7b4a847f 18966
21d1c967
GD
18967 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
18968 result=$?
18969 if test $result = 0; then
18970 ac_path_to_link=""
18971 else
18972 ac_path_to_link=" -L$ac_find_libraries"
18973 fi
18974
18975 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
18976 OPENGL_LIBS="-lMesaGL -lMesaGLU"
7b4a847f
RR
18977 echo "$as_me:18977: result: yes" >&5
18978echo "${ECHO_T}yes" >&6
21d1c967 18979 else
7b4a847f
RR
18980 echo "$as_me:18980: result: no" >&5
18981echo "${ECHO_T}no" >&6
21d1c967
GD
18982 fi
18983 fi
698dcdb6 18984
7b4a847f 18985fi
579d8138 18986
21d1c967 18987 if test "x$OPENGL_LIBS" = "x"; then
7b4a847f
RR
18988 { { echo "$as_me:18988: error: OpenGL libraries not available" >&5
18989echo "$as_me: error: OpenGL libraries not available" >&2;}
18990 { (exit 1); exit 1; }; }
21d1c967
GD
18991 fi
18992 fi
90dd450c 18993
21d1c967 18994 if test "$wxUSE_OPENGL" = "yes"; then
7b4a847f 18995 cat >>confdefs.h <<\EOF
21d1c967 18996#define wxUSE_OPENGL 1
698dcdb6 18997EOF
21d1c967 18998
7b4a847f 18999 cat >>confdefs.h <<\EOF
21d1c967
GD
19000#define wxUSE_GLCANVAS 1
19001EOF
19002
19003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
19004 fi
10f2d63a 19005fi
21d1c967
GD
19006
19007if test -z "$TOOLKIT_VPATH" ; then
19008 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 19009fi
21d1c967
GD
19010
19011if test -n "$TOOLKIT" ; then
19012 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
19013fi
19014
19015lib_unicode_suffix=
19016if test "$wxUSE_UNICODE" = "yes"; then
19017 lib_unicode_suffix=u
90dd450c 19018fi
698dcdb6 19019
21d1c967
GD
19020lib_debug_suffix=
19021if test "$wxUSE_DEBUG_FLAG" = "yes"; then
19022 lib_debug_suffix=d
19023fi
698dcdb6 19024
21d1c967
GD
19025TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
19026TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
19027
19028if test "$cross_compiling" = "yes"; then
19029 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
19030 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
19031fi
19032
19033WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
19034WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
19035
19036WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
19037WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
19038
19039WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
19040WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
19041WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
19042WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
19043
19044case "${host}" in
19045 *-*-cygwin* | *-*-mingw32* )
19046
17234b26 19047 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
19048 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
19049 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
19050 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
19051 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
19052 else
19053 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
19054 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
19055 fi
19056 ;;
19057
19058 *-*-darwin* )
19059 if test "$wxUSE_MAC" = 1; then
3bd8fb5f 19060 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
21d1c967
GD
19061 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
19062 fi
19063 ;;
19064esac
19065
19066WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
19067WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
19068
19069WXCONFIG_LIBS="-l${WX_LIBRARY}"
19070WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
19071
19072if test "$wxUSE_OPENGL" = "yes"; then
19073 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
19074 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
19075fi
19076
21d1c967
GD
19077if test "$wxUSE_SHARED" = "yes"; then
19078 case "${host}" in
19079 *-pc-os2_emx | *-pc-os2-emx | \
19080 *-pc-msdosdjgpp )
19081 wxUSE_SHARED=no
7b4a847f
RR
19082 { echo "$as_me:19082: WARNING: Host system doesn't support shared libraries, disabling" >&5
19083echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
19084 ;;
19085 esac
19086fi
19087
19088if test "$wxUSE_SHARED" = "yes"; then
19089
19090 if test "$wxUSE_OPENGL" = "yes"; then
19091 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
19092 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
19093 else
19094 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
19095 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
19096 fi
19097
19098 if test "$GCC" = "yes"; then
19099 PIC_FLAG="-fPIC"
19100 fi
19101
19102 SHARED_LD="${CXX} -shared -o"
19103
19104 case "${host}" in
19105 *-hp-hpux* )
19106 if test "$GCC" == "yes"; then
19107 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
19108 else
19109 LDFLAGS="$LDFLAGS -L/usr/lib"
19110
19111 SHARED_LD="${CXX} -b -o"
19112 PIC_FLAG="+Z"
19113 fi
19114
19115 if test "$wxUSE_OPENGL" = "yes"; then
19116 WX_ALL_INSTALLED="preinstall_gl"
19117 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
19118 else
19119 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
19120 fi
19121 ;;
19122
19123 *-*-linux* )
19124 if test "$GCC" != "yes"; then
7b4a847f
RR
19125 echo "$as_me:19125: checking for Intel compiler" >&5
19126echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
19127if test "${wx_cv_prog_icc+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19129else
19130
19131 cat >conftest.$ac_ext <<_ACEOF
19132#line 19132 "configure"
698dcdb6 19133#include "confdefs.h"
90dd450c 19134
7b4a847f
RR
19135int
19136main ()
19137{
90dd450c 19138
21d1c967
GD
19139 #ifndef __INTEL_COMPILER
19140 #error Not icc
19141 #endif
7b4a847f
RR
19142
19143 ;
19144 return 0;
19145}
19146_ACEOF
19147rm -f conftest.$ac_objext
19148if { (eval echo "$as_me:19148: \"$ac_compile\"") >&5
19149 (eval $ac_compile) 2>&5
19150 ac_status=$?
19151 echo "$as_me:19151: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -s conftest.$ac_objext'
19154 { (eval echo "$as_me:19154: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:19157: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
21d1c967 19159 wx_cv_prog_icc=yes
6232543b 19160else
7b4a847f
RR
19161 echo "$as_me: failed program was:" >&5
19162cat conftest.$ac_ext >&5
19163wx_cv_prog_icc=no
19164
328a083c 19165fi
7b4a847f 19166rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 19167
7b4a847f
RR
19168fi
19169echo "$as_me:19169: result: $wx_cv_prog_icc" >&5
19170echo "${ECHO_T}$wx_cv_prog_icc" >&6
21d1c967
GD
19171 if test "$wx_cv_prog_icc" = "yes"; then
19172 PIC_FLAG="-KPIC"
19173 fi
19174 fi
19175
19176 if test "$wxUSE_SONAME" = "yes" ; then
19177 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
19178 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
19179 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
19180 fi
19181 ;;
19182
19183 *-*-solaris2* )
19184 if test "$GCC" = yes ; then
19185 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
19186 else
19187 SHARED_LD="${CXX} -G -o"
19188 PIC_FLAG="-KPIC"
19189 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
19190 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
19191 fi
19192 ;;
19193
19194 *-*-darwin* )
19195 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
19196 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
19197 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
19198 PIC_FLAG="-dynamic -fPIC"
19199 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
19200 SONAME_FLAGS_GL=${SONAME_FLAGS}
19201 ;;
19202
19203 *-*-aix* )
321d2b14
VZ
19204 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
19205set dummy makeC++SharedLib; ac_word=$2
7b4a847f
RR
19206echo "$as_me:19206: checking for $ac_word" >&5
19207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19208if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
321d2b14
VZ
19210else
19211 if test -n "$AIX_CXX_LD"; then
19212 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
19213else
7b4a847f
RR
19214 ac_save_IFS=$IFS; IFS=$ac_path_separator
19215ac_dummy="$PATH"
19216for ac_dir in $ac_dummy; do
19217 IFS=$ac_save_IFS
19218 test -z "$ac_dir" && ac_dir=.
19219 $as_executable_p "$ac_dir/$ac_word" || continue
19220ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
19221echo "$as_me:19221: found $ac_dir/$ac_word" >&5
19222break
19223done
19224
321d2b14
VZ
19225 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
19226fi
19227fi
7b4a847f 19228AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
321d2b14 19229if test -n "$AIX_CXX_LD"; then
7b4a847f
RR
19230 echo "$as_me:19230: result: $AIX_CXX_LD" >&5
19231echo "${ECHO_T}$AIX_CXX_LD" >&6
321d2b14 19232else
7b4a847f
RR
19233 echo "$as_me:19233: result: no" >&5
19234echo "${ECHO_T}no" >&6
321d2b14
VZ
19235fi
19236
321d2b14 19237 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
19238 ;;
19239
19240 *-*-cygwin* | *-*-mingw32* )
19241
19242 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
19243
19244 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
19245 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
19246
19247 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
19248
19249 if test "$wxUSE_OPENGL" = "yes"; then
19250 WX_ALL_INSTALLED="preinstall_gl"
19251 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
19252 else
19253 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
19254 fi
19255 ;;
19256
19257 *-*-beos* )
19258 SHARED_LD="${LD} -shared -o"
19259 ;;
19260
19261 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
19262 *-*-sunos4* | \
19263 *-*-irix5* | *-*-irix6* | \
19264 *-*-osf* | \
19265 *-*-dgux5* | \
19266 *-*-sysv5* )
19267 ;;
19268
19269 *)
7b4a847f
RR
19270 { { echo "$as_me:19270: error: unknown system type $host." >&5
19271echo "$as_me: error: unknown system type $host." >&2;}
19272 { (exit 1); exit 1; }; }
21d1c967
GD
19273 esac
19274
19275 if test "x$WX_TARGET_LIBRARY" = "x"; then
19276 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
19277 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
19278 fi
19279
19280 WX_TARGET_LIBRARY_TYPE="so"
19281 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 19282fi
10f2d63a 19283
21d1c967
GD
19284if test "$wxUSE_SHARED" = "no"; then
19285
19286 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
19287 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
19288 fi
19289
19290 if test "$wxUSE_MAC" = 1; then
19291 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
19292 fi
19293
19294 if test "$wxUSE_OPENGL" = "yes"; then
19295 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
19296 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
19297 else
19298 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
19299 fi
19300
19301 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
19302 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
19303
19304 WX_TARGET_LIBRARY_TYPE="a"
19305 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 19306fi
1e487827 19307
21d1c967
GD
19308if test "$wxUSE_MAC" = 1; then
19309 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
19310 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
19311 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
19312 # Extract the first word of "Rez", so it can be a program name with args.
19313set dummy Rez; ac_word=$2
7b4a847f
RR
19314echo "$as_me:19314: checking for $ac_word" >&5
19315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19316if test "${ac_cv_prog_RESCOMP+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 19318else
21d1c967
GD
19319 if test -n "$RESCOMP"; then
19320 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 19321else
7b4a847f
RR
19322 ac_save_IFS=$IFS; IFS=$ac_path_separator
19323ac_dummy="$PATH"
19324for ac_dir in $ac_dummy; do
19325 IFS=$ac_save_IFS
19326 test -z "$ac_dir" && ac_dir=.
19327 $as_executable_p "$ac_dir/$ac_word" || continue
19328ac_cv_prog_RESCOMP="Rez"
19329echo "$as_me:19329: found $ac_dir/$ac_word" >&5
19330break
19331done
19332
21d1c967 19333 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 19334fi
b93d0d08 19335fi
7b4a847f 19336RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 19337if test -n "$RESCOMP"; then
7b4a847f
RR
19338 echo "$as_me:19338: result: $RESCOMP" >&5
19339echo "${ECHO_T}$RESCOMP" >&6
90dd450c 19340else
7b4a847f
RR
19341 echo "$as_me:19341: result: no" >&5
19342echo "${ECHO_T}no" >&6
90dd450c 19343fi
b93d0d08 19344
21d1c967
GD
19345 # Extract the first word of "DeRez", so it can be a program name with args.
19346set dummy DeRez; ac_word=$2
7b4a847f
RR
19347echo "$as_me:19347: checking for $ac_word" >&5
19348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19349if test "${ac_cv_prog_DEREZ+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 19351else
21d1c967
GD
19352 if test -n "$DEREZ"; then
19353 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 19354else
7b4a847f
RR
19355 ac_save_IFS=$IFS; IFS=$ac_path_separator
19356ac_dummy="$PATH"
19357for ac_dir in $ac_dummy; do
19358 IFS=$ac_save_IFS
19359 test -z "$ac_dir" && ac_dir=.
19360 $as_executable_p "$ac_dir/$ac_word" || continue
19361ac_cv_prog_DEREZ="DeRez"
19362echo "$as_me:19362: found $ac_dir/$ac_word" >&5
19363break
19364done
19365
21d1c967 19366 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 19367fi
90dd450c 19368fi
7b4a847f 19369DEREZ=$ac_cv_prog_DEREZ
21d1c967 19370if test -n "$DEREZ"; then
7b4a847f
RR
19371 echo "$as_me:19371: result: $DEREZ" >&5
19372echo "${ECHO_T}$DEREZ" >&6
90dd450c 19373else
7b4a847f
RR
19374 echo "$as_me:19374: result: no" >&5
19375echo "${ECHO_T}no" >&6
3a922bb4 19376fi
698dcdb6 19377
21d1c967
GD
19378 MACOSX_BUNDLE="bundle"
19379 if test "$wxUSE_SHARED" = "yes"; then
19380 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
19381 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
19382 else
19383 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
19384 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
19385 fi
19386else
19387 if test "$wxUSE_PM" = 1; then
19388 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 19389 fi
4f14bcd8 19390fi
10f2d63a 19391
7b4a847f
RR
19392echo "$as_me:19392: checking for mode_t" >&5
19393echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
19394if test "${ac_cv_type_mode_t+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 19396else
7b4a847f
RR
19397 cat >conftest.$ac_ext <<_ACEOF
19398#line 19398 "configure"
579d8138 19399#include "confdefs.h"
7b4a847f
RR
19400$ac_includes_default
19401int
19402main ()
19403{
19404if ((mode_t *) 0)
19405 return 0;
19406if (sizeof (mode_t))
19407 return 0;
19408 ;
19409 return 0;
19410}
19411_ACEOF
19412rm -f conftest.$ac_objext
19413if { (eval echo "$as_me:19413: \"$ac_compile\"") >&5
19414 (eval $ac_compile) 2>&5
19415 ac_status=$?
19416 echo "$as_me:19416: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (eval echo "$as_me:19419: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:19422: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 ac_cv_type_mode_t=yes
10f2d63a 19425else
7b4a847f
RR
19426 echo "$as_me: failed program was:" >&5
19427cat conftest.$ac_ext >&5
19428ac_cv_type_mode_t=no
579d8138 19429fi
7b4a847f 19430rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 19431fi
7b4a847f
RR
19432echo "$as_me:19432: result: $ac_cv_type_mode_t" >&5
19433echo "${ECHO_T}$ac_cv_type_mode_t" >&6
19434if test $ac_cv_type_mode_t = yes; then
579d8138
VS
19435 :
19436else
579d8138 19437
7b4a847f 19438cat >>confdefs.h <<EOF
579d8138
VS
19439#define mode_t int
19440EOF
19441
19442fi
19443
7b4a847f
RR
19444echo "$as_me:19444: checking for off_t" >&5
19445echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19446if test "${ac_cv_type_off_t+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 19448else
7b4a847f
RR
19449 cat >conftest.$ac_ext <<_ACEOF
19450#line 19450 "configure"
579d8138 19451#include "confdefs.h"
7b4a847f
RR
19452$ac_includes_default
19453int
19454main ()
19455{
19456if ((off_t *) 0)
19457 return 0;
19458if (sizeof (off_t))
19459 return 0;
19460 ;
19461 return 0;
19462}
19463_ACEOF
19464rm -f conftest.$ac_objext
19465if { (eval echo "$as_me:19465: \"$ac_compile\"") >&5
19466 (eval $ac_compile) 2>&5
19467 ac_status=$?
19468 echo "$as_me:19468: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:19471: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:19474: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
579d8138 19476 ac_cv_type_off_t=yes
328a083c 19477else
7b4a847f
RR
19478 echo "$as_me: failed program was:" >&5
19479cat conftest.$ac_ext >&5
19480ac_cv_type_off_t=no
579d8138 19481fi
7b4a847f 19482rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 19483fi
7b4a847f
RR
19484echo "$as_me:19484: result: $ac_cv_type_off_t" >&5
19485echo "${ECHO_T}$ac_cv_type_off_t" >&6
19486if test $ac_cv_type_off_t = yes; then
19487 :
19488else
19489
19490cat >>confdefs.h <<EOF
90dd450c 19491#define off_t long
10f2d63a
VZ
19492EOF
19493
90dd450c 19494fi
10f2d63a 19495
7b4a847f
RR
19496echo "$as_me:19496: checking for pid_t" >&5
19497echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19498if test "${ac_cv_type_pid_t+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 19500else
7b4a847f
RR
19501 cat >conftest.$ac_ext <<_ACEOF
19502#line 19502 "configure"
10f2d63a 19503#include "confdefs.h"
7b4a847f
RR
19504$ac_includes_default
19505int
19506main ()
19507{
19508if ((pid_t *) 0)
19509 return 0;
19510if (sizeof (pid_t))
19511 return 0;
19512 ;
19513 return 0;
19514}
19515_ACEOF
19516rm -f conftest.$ac_objext
19517if { (eval echo "$as_me:19517: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>&5
19519 ac_status=$?
19520 echo "$as_me:19520: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:19523: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:19526: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
90dd450c 19528 ac_cv_type_pid_t=yes
698dcdb6 19529else
7b4a847f
RR
19530 echo "$as_me: failed program was:" >&5
19531cat conftest.$ac_ext >&5
19532ac_cv_type_pid_t=no
698dcdb6 19533fi
7b4a847f 19534rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 19535fi
7b4a847f
RR
19536echo "$as_me:19536: result: $ac_cv_type_pid_t" >&5
19537echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19538if test $ac_cv_type_pid_t = yes; then
19539 :
19540else
19541
19542cat >>confdefs.h <<EOF
90dd450c 19543#define pid_t int
10f2d63a
VZ
19544EOF
19545
7b4a847f
RR
19546fi
19547
19548echo "$as_me:19548: checking for size_t" >&5
19549echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19550if test "${ac_cv_type_size_t+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19552else
19553 cat >conftest.$ac_ext <<_ACEOF
19554#line 19554 "configure"
19555#include "confdefs.h"
19556$ac_includes_default
19557int
19558main ()
19559{
19560if ((size_t *) 0)
19561 return 0;
19562if (sizeof (size_t))
19563 return 0;
19564 ;
19565 return 0;
19566}
19567_ACEOF
19568rm -f conftest.$ac_objext
19569if { (eval echo "$as_me:19569: \"$ac_compile\"") >&5
19570 (eval $ac_compile) 2>&5
19571 ac_status=$?
19572 echo "$as_me:19572: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:19575: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:19578: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
90dd450c 19580 ac_cv_type_size_t=yes
18dbb1f6 19581else
7b4a847f
RR
19582 echo "$as_me: failed program was:" >&5
19583cat conftest.$ac_ext >&5
19584ac_cv_type_size_t=no
18dbb1f6 19585fi
7b4a847f 19586rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 19587fi
7b4a847f
RR
19588echo "$as_me:19588: result: $ac_cv_type_size_t" >&5
19589echo "${ECHO_T}$ac_cv_type_size_t" >&6
19590if test $ac_cv_type_size_t = yes; then
19591 :
19592else
19593
19594cat >>confdefs.h <<EOF
90dd450c
VZ
19595#define size_t unsigned
19596EOF
19597
19598fi
19599
7b4a847f
RR
19600echo "$as_me:19600: checking for uid_t in sys/types.h" >&5
19601echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
19602if test "${ac_cv_type_uid_t+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 19604else
7b4a847f
RR
19605 cat >conftest.$ac_ext <<_ACEOF
19606#line 19606 "configure"
b3e8d00a 19607#include "confdefs.h"
90dd450c 19608#include <sys/types.h>
7b4a847f
RR
19609
19610_ACEOF
90dd450c
VZ
19611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19612 egrep "uid_t" >/dev/null 2>&1; then
90dd450c 19613 ac_cv_type_uid_t=yes
b3e8d00a 19614else
90dd450c 19615 ac_cv_type_uid_t=no
b3e8d00a 19616fi
90dd450c 19617rm -f conftest*
b3e8d00a 19618
4f14bcd8 19619fi
7b4a847f
RR
19620echo "$as_me:19620: result: $ac_cv_type_uid_t" >&5
19621echo "${ECHO_T}$ac_cv_type_uid_t" >&6
579d8138 19622if test $ac_cv_type_uid_t = no; then
7b4a847f
RR
19623
19624cat >>confdefs.h <<\EOF
90dd450c
VZ
19625#define uid_t int
19626EOF
19627
7b4a847f 19628cat >>confdefs.h <<\EOF
90dd450c 19629#define gid_t int
b3e8d00a 19630EOF
4f14bcd8 19631
b3e8d00a 19632fi
b3e8d00a 19633
7b4a847f 19634ac_ext=cc
4f14bcd8 19635ac_cpp='$CXXCPP $CPPFLAGS'
7b4a847f
RR
19636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
90dd450c 19639
7b4a847f
RR
19640echo "$as_me:19640: checking if size_t is unsigned int" >&5
19641echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
19642if test "${wx_cv_size_t_is_uint+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 19644else
7b4a847f
RR
19645 cat >conftest.$ac_ext <<_ACEOF
19646#line 19646 "configure"
10f2d63a 19647#include "confdefs.h"
90dd450c 19648#include <stddef.h>
7b4a847f
RR
19649int
19650main ()
19651{
90dd450c
VZ
19652
19653 return 0; }
19654
19655 struct Foo { void foo(size_t); void foo(unsigned int); };
19656
19657 int bar() {
7b4a847f
RR
19658
19659 ;
19660 return 0;
19661}
19662_ACEOF
19663rm -f conftest.$ac_objext
19664if { (eval echo "$as_me:19664: \"$ac_compile\"") >&5
19665 (eval $ac_compile) 2>&5
19666 ac_status=$?
19667 echo "$as_me:19667: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
19669 { ac_try='test -s conftest.$ac_objext'
19670 { (eval echo "$as_me:19670: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:19673: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
90dd450c 19675 wx_cv_size_t_is_uint=no
698dcdb6 19676else
7b4a847f
RR
19677 echo "$as_me: failed program was:" >&5
19678cat conftest.$ac_ext >&5
19679wx_cv_size_t_is_uint=yes
698dcdb6 19680
328a083c 19681fi
7b4a847f 19682rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 19683
7b4a847f
RR
19684fi
19685echo "$as_me:19685: result: $wx_cv_size_t_is_uint" >&5
19686echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 19687
90dd450c 19688if test "$wx_cv_size_t_is_uint" = "yes"; then
7b4a847f 19689 cat >>confdefs.h <<\EOF
90dd450c 19690#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
19691EOF
19692
90dd450c 19693else
7b4a847f
RR
19694 echo "$as_me:19694: checking if size_t is unsigned long" >&5
19695echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
19696if test "${wx_cv_size_t_is_ulong+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19698else
7b4a847f
RR
19699 cat >conftest.$ac_ext <<_ACEOF
19700#line 19700 "configure"
10f2d63a 19701#include "confdefs.h"
90dd450c 19702#include <stddef.h>
7b4a847f
RR
19703int
19704main ()
19705{
90dd450c
VZ
19706
19707 return 0; }
19708
19709 struct Foo { void foo(size_t); void foo(unsigned long); };
19710
19711 int bar() {
7b4a847f
RR
19712
19713 ;
19714 return 0;
19715}
19716_ACEOF
19717rm -f conftest.$ac_objext
19718if { (eval echo "$as_me:19718: \"$ac_compile\"") >&5
19719 (eval $ac_compile) 2>&5
19720 ac_status=$?
19721 echo "$as_me:19721: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -s conftest.$ac_objext'
19724 { (eval echo "$as_me:19724: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:19727: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
90dd450c 19729 wx_cv_size_t_is_ulong=no
698dcdb6 19730else
7b4a847f
RR
19731 echo "$as_me: failed program was:" >&5
19732cat conftest.$ac_ext >&5
19733wx_cv_size_t_is_ulong=yes
19734
328a083c 19735fi
7b4a847f 19736rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 19737
7b4a847f
RR
19738fi
19739echo "$as_me:19739: result: $wx_cv_size_t_is_ulong" >&5
19740echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 19741
90dd450c 19742 if test "$wx_cv_size_t_is_ulong" = "yes"; then
7b4a847f 19743 cat >>confdefs.h <<\EOF
90dd450c 19744#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
19745EOF
19746
19747 fi
90dd450c 19748fi
1e487827 19749
90dd450c 19750ac_ext=c
4f14bcd8 19751ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
19752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19754ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 19755
7b4a847f
RR
19756echo "$as_me:19756: checking for pw_gecos in struct passwd" >&5
19757echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
19758if test "${wx_cv_struct_pw_gecos+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 19760else
7b4a847f
RR
19761
19762 cat >conftest.$ac_ext <<_ACEOF
19763#line 19763 "configure"
4f14bcd8 19764#include "confdefs.h"
90dd450c 19765#include <pwd.h>
7b4a847f
RR
19766int
19767main ()
19768{
f6bcfd97 19769
90dd450c
VZ
19770 char *p;
19771 struct passwd *pw;
19772 p = pw->pw_gecos;
7b4a847f
RR
19773
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext
19779if { (eval echo "$as_me:19779: \"$ac_compile\"") >&5
19780 (eval $ac_compile) 2>&5
19781 ac_status=$?
19782 echo "$as_me:19782: \$? = $ac_status" >&5
19783 (exit $ac_status); } &&
19784 { ac_try='test -s conftest.$ac_objext'
19785 { (eval echo "$as_me:19785: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:19788: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790
90dd450c 19791 wx_cv_struct_pw_gecos=yes
7b4a847f 19792
10f2d63a 19793else
7b4a847f
RR
19794 echo "$as_me: failed program was:" >&5
19795cat conftest.$ac_ext >&5
19796
90dd450c 19797 wx_cv_struct_pw_gecos=no
c521c494 19798
328a083c 19799fi
7b4a847f 19800rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 19801
7b4a847f
RR
19802fi
19803echo "$as_me:19803: result: $wx_cv_struct_pw_gecos" >&5
19804echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 19805
90dd450c 19806if test "$wx_cv_struct_pw_gecos" = "yes"; then
7b4a847f 19807 cat >>confdefs.h <<\EOF
90dd450c 19808#define HAVE_PW_GECOS 1
4f14bcd8 19809EOF
c521c494 19810
90dd450c 19811fi
4f14bcd8 19812
d29b553b
VZ
19813WCHAR_OK=0
19814if test "$wx_cv_sizeof_wchar_t" != "0"; then
19815 WCHAR_LINK=
7b4a847f
RR
19816
19817for ac_func in wcslen
7a30264c 19818do
7b4a847f
RR
19819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19820echo "$as_me:19820: checking for $ac_func" >&5
19821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19822if eval "test \"\${$as_ac_var+set}\" = set"; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824else
19825 cat >conftest.$ac_ext <<_ACEOF
19826#line 19826 "configure"
4f14bcd8 19827#include "confdefs.h"
7a30264c 19828/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 19829 which can conflict with char $ac_func (); below. */
7a30264c 19830#include <assert.h>
4f14bcd8 19831/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
19832#ifdef __cplusplus
19833extern "C"
19834#endif
4f14bcd8 19835/* We use char because int might match the return type of a gcc2
7b4a847f
RR
19836 builtin and then its argument prototype would still apply. */
19837char $ac_func ();
19838char (*f) ();
7a30264c 19839
7b4a847f
RR
19840int
19841main ()
19842{
7a30264c
VZ
19843/* The GNU C library defines this for functions which it implements
19844 to always fail with ENOSYS. Some functions are actually named
19845 something starting with __ and the normal name is an alias. */
19846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19847choke me
19848#else
7b4a847f 19849f = $ac_func;
7a30264c
VZ
19850#endif
19851
7b4a847f
RR
19852 ;
19853 return 0;
19854}
19855_ACEOF
19856rm -f conftest.$ac_objext conftest$ac_exeext
19857if { (eval echo "$as_me:19857: \"$ac_link\"") >&5
19858 (eval $ac_link) 2>&5
19859 ac_status=$?
19860 echo "$as_me:19860: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -s conftest$ac_exeext'
19863 { (eval echo "$as_me:19863: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:19866: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 eval "$as_ac_var=yes"
19869else
19870 echo "$as_me: failed program was:" >&5
19871cat conftest.$ac_ext >&5
19872eval "$as_ac_var=no"
19873fi
19874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19875fi
19876echo "$as_me:19876: result: `eval echo '${'$as_ac_var'}'`" >&5
19877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19878if test `eval echo '${'$as_ac_var'}'` = yes; then
19879 cat >>confdefs.h <<EOF
19880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19881EOF
19882
19883 cat >>confdefs.h <<\EOF
4f14bcd8 19884#define HAVE_WCSLEN 1
9d8deca0
VZ
19885EOF
19886
7a30264c 19887 WCHAR_OK=1
7b4a847f 19888
7a30264c
VZ
19889fi
19890done
9d8deca0 19891
7a30264c
VZ
19892 if test "$WCHAR_OK" = 0; then
19893 if test "$TOOLKIT" = "MSW"; then
7b4a847f
RR
19894 echo "$as_me:19894: checking for wcslen in -lmsvcrt" >&5
19895echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
19896if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 19898else
7b4a847f 19899 ac_check_lib_save_LIBS=$LIBS
7a30264c 19900LIBS="-lmsvcrt $LIBS"
7b4a847f
RR
19901cat >conftest.$ac_ext <<_ACEOF
19902#line 19902 "configure"
10f2d63a 19903#include "confdefs.h"
7b4a847f 19904
4f14bcd8 19905/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
19906#ifdef __cplusplus
19907extern "C"
19908#endif
4f14bcd8 19909/* We use char because int might match the return type of a gcc2
7b4a847f
RR
19910 builtin and then its argument prototype would still apply. */
19911char wcslen ();
19912int
19913main ()
19914{
19915wcslen ();
19916 ;
19917 return 0;
19918}
19919_ACEOF
19920rm -f conftest.$ac_objext conftest$ac_exeext
19921if { (eval echo "$as_me:19921: \"$ac_link\"") >&5
19922 (eval $ac_link) 2>&5
19923 ac_status=$?
19924 echo "$as_me:19924: \$? = $ac_status" >&5
19925 (exit $ac_status); } &&
19926 { ac_try='test -s conftest$ac_exeext'
19927 { (eval echo "$as_me:19927: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19929 ac_status=$?
19930 echo "$as_me:19930: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
19932 ac_cv_lib_msvcrt_wcslen=yes
19933else
19934 echo "$as_me: failed program was:" >&5
19935cat conftest.$ac_ext >&5
19936ac_cv_lib_msvcrt_wcslen=no
19937fi
19938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19939LIBS=$ac_check_lib_save_LIBS
19940fi
19941echo "$as_me:19941: result: $ac_cv_lib_msvcrt_wcslen" >&5
19942echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
19943if test $ac_cv_lib_msvcrt_wcslen = yes; then
19944
19945 cat >>confdefs.h <<\EOF
4f14bcd8 19946#define HAVE_WCSLEN 1
9d8deca0
VZ
19947EOF
19948
7a30264c 19949 WCHAR_OK=1
7b4a847f 19950
d29b553b 19951fi
698dcdb6 19952
7a30264c 19953 else
7b4a847f
RR
19954 echo "$as_me:19954: checking for wcslen in -lw" >&5
19955echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
19956if test "${ac_cv_lib_w_wcslen+set}" = set; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19958else
7b4a847f 19959 ac_check_lib_save_LIBS=$LIBS
7a30264c 19960LIBS="-lw $LIBS"
7b4a847f
RR
19961cat >conftest.$ac_ext <<_ACEOF
19962#line 19962 "configure"
95c8801c 19963#include "confdefs.h"
7b4a847f 19964
4f14bcd8 19965/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
19966#ifdef __cplusplus
19967extern "C"
19968#endif
4f14bcd8 19969/* We use char because int might match the return type of a gcc2
7b4a847f
RR
19970 builtin and then its argument prototype would still apply. */
19971char wcslen ();
19972int
19973main ()
19974{
19975wcslen ();
19976 ;
19977 return 0;
19978}
19979_ACEOF
19980rm -f conftest.$ac_objext conftest$ac_exeext
19981if { (eval echo "$as_me:19981: \"$ac_link\"") >&5
19982 (eval $ac_link) 2>&5
19983 ac_status=$?
19984 echo "$as_me:19984: \$? = $ac_status" >&5
19985 (exit $ac_status); } &&
19986 { ac_try='test -s conftest$ac_exeext'
19987 { (eval echo "$as_me:19987: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:19990: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_cv_lib_w_wcslen=yes
19993else
19994 echo "$as_me: failed program was:" >&5
19995cat conftest.$ac_ext >&5
19996ac_cv_lib_w_wcslen=no
19997fi
19998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19999LIBS=$ac_check_lib_save_LIBS
20000fi
20001echo "$as_me:20001: result: $ac_cv_lib_w_wcslen" >&5
20002echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
20003if test $ac_cv_lib_w_wcslen = yes; then
20004
20005 cat >>confdefs.h <<\EOF
4f14bcd8
GD
20006#define HAVE_WCSLEN 1
20007EOF
698dcdb6 20008
7a30264c
VZ
20009 WCHAR_LINK=" -lw"
20010 WCHAR_OK=1
7b4a847f 20011
4f14bcd8 20012fi
10f2d63a 20013
7a30264c 20014 fi
d29b553b 20015 fi
4f14bcd8 20016fi
95c8801c 20017
d29b553b 20018if test "$WCHAR_OK" = 1; then
7b4a847f 20019 cat >>confdefs.h <<\EOF
d29b553b
VZ
20020#define wxUSE_WCHAR_T 1
20021EOF
10f2d63a 20022
7b4a847f 20023for ac_func in wcsrtombs
eb4efbdc 20024do
7b4a847f
RR
20025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20026echo "$as_me:20026: checking for $ac_func" >&5
20027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20028if eval "test \"\${$as_ac_var+set}\" = set"; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20030else
20031 cat >conftest.$ac_ext <<_ACEOF
20032#line 20032 "configure"
eb4efbdc
VZ
20033#include "confdefs.h"
20034/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 20035 which can conflict with char $ac_func (); below. */
eb4efbdc
VZ
20036#include <assert.h>
20037/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
20038#ifdef __cplusplus
20039extern "C"
20040#endif
eb4efbdc 20041/* We use char because int might match the return type of a gcc2
7b4a847f
RR
20042 builtin and then its argument prototype would still apply. */
20043char $ac_func ();
20044char (*f) ();
eb4efbdc 20045
7b4a847f
RR
20046int
20047main ()
20048{
eb4efbdc
VZ
20049/* The GNU C library defines this for functions which it implements
20050 to always fail with ENOSYS. Some functions are actually named
20051 something starting with __ and the normal name is an alias. */
20052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20053choke me
20054#else
7b4a847f 20055f = $ac_func;
eb4efbdc
VZ
20056#endif
20057
7b4a847f
RR
20058 ;
20059 return 0;
20060}
20061_ACEOF
20062rm -f conftest.$ac_objext conftest$ac_exeext
20063if { (eval echo "$as_me:20063: \"$ac_link\"") >&5
20064 (eval $ac_link) 2>&5
20065 ac_status=$?
20066 echo "$as_me:20066: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -s conftest$ac_exeext'
20069 { (eval echo "$as_me:20069: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 echo "$as_me:20072: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 eval "$as_ac_var=yes"
20075else
20076 echo "$as_me: failed program was:" >&5
20077cat conftest.$ac_ext >&5
20078eval "$as_ac_var=no"
20079fi
20080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20081fi
20082echo "$as_me:20082: result: `eval echo '${'$as_ac_var'}'`" >&5
20083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20084if test `eval echo '${'$as_ac_var'}'` = yes; then
20085 cat >>confdefs.h <<EOF
20086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
eb4efbdc 20087EOF
eb4efbdc 20088
eb4efbdc
VZ
20089fi
20090done
20091
d29b553b 20092else
a1ea5055 20093 if test "$USE_DARWIN" = 1; then
7b4a847f 20094 cat >>confdefs.h <<\EOF
a1ea5055
GD
20095#define wxUSE_WCHAR_T 1
20096EOF
20097
20098 else
7b4a847f
RR
20099 { echo "$as_me:20099: WARNING: Wide character support is unavailable" >&5
20100echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
a1ea5055 20101 fi
d29b553b 20102fi
698dcdb6 20103
7b4a847f
RR
20104for ac_func in vprintf
20105do
20106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107echo "$as_me:20107: checking for $ac_func" >&5
20108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20109if eval "test \"\${$as_ac_var+set}\" = set"; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111else
20112 cat >conftest.$ac_ext <<_ACEOF
20113#line 20113 "configure"
f6bcfd97 20114#include "confdefs.h"
4f14bcd8 20115/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 20116 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
20117#include <assert.h>
20118/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
20119#ifdef __cplusplus
20120extern "C"
20121#endif
4f14bcd8 20122/* We use char because int might match the return type of a gcc2
7b4a847f
RR
20123 builtin and then its argument prototype would still apply. */
20124char $ac_func ();
20125char (*f) ();
f6bcfd97 20126
7b4a847f
RR
20127int
20128main ()
20129{
4f14bcd8
GD
20130/* The GNU C library defines this for functions which it implements
20131 to always fail with ENOSYS. Some functions are actually named
20132 something starting with __ and the normal name is an alias. */
7b4a847f 20133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4f14bcd8
GD
20134choke me
20135#else
7b4a847f 20136f = $ac_func;
4f14bcd8 20137#endif
f6bcfd97 20138
7b4a847f
RR
20139 ;
20140 return 0;
20141}
20142_ACEOF
20143rm -f conftest.$ac_objext conftest$ac_exeext
20144if { (eval echo "$as_me:20144: \"$ac_link\"") >&5
20145 (eval $ac_link) 2>&5
20146 ac_status=$?
20147 echo "$as_me:20147: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -s conftest$ac_exeext'
20150 { (eval echo "$as_me:20150: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:20153: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 eval "$as_ac_var=yes"
20156else
20157 echo "$as_me: failed program was:" >&5
20158cat conftest.$ac_ext >&5
20159eval "$as_ac_var=no"
20160fi
20161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20162fi
20163echo "$as_me:20163: result: `eval echo '${'$as_ac_var'}'`" >&5
20164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20165if test `eval echo '${'$as_ac_var'}'` = yes; then
20166 cat >>confdefs.h <<EOF
20167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20168EOF
20169
20170echo "$as_me:20170: checking for _doprnt" >&5
20171echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
20172if test "${ac_cv_func__doprnt+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174else
20175 cat >conftest.$ac_ext <<_ACEOF
20176#line 20176 "configure"
10f2d63a
VZ
20177#include "confdefs.h"
20178/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 20179 which can conflict with char _doprnt (); below. */
10f2d63a
VZ
20180#include <assert.h>
20181/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
20182#ifdef __cplusplus
20183extern "C"
20184#endif
10f2d63a 20185/* We use char because int might match the return type of a gcc2
7b4a847f
RR
20186 builtin and then its argument prototype would still apply. */
20187char _doprnt ();
20188char (*f) ();
10f2d63a 20189
7b4a847f
RR
20190int
20191main ()
20192{
10f2d63a
VZ
20193/* The GNU C library defines this for functions which it implements
20194 to always fail with ENOSYS. Some functions are actually named
20195 something starting with __ and the normal name is an alias. */
4f14bcd8 20196#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
20197choke me
20198#else
7b4a847f 20199f = _doprnt;
10f2d63a
VZ
20200#endif
20201
7b4a847f
RR
20202 ;
20203 return 0;
20204}
20205_ACEOF
20206rm -f conftest.$ac_objext conftest$ac_exeext
20207if { (eval echo "$as_me:20207: \"$ac_link\"") >&5
20208 (eval $ac_link) 2>&5
20209 ac_status=$?
20210 echo "$as_me:20210: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -s conftest$ac_exeext'
20213 { (eval echo "$as_me:20213: \"$ac_try\"") >&5
20214 (eval $ac_try) 2>&5
20215 ac_status=$?
20216 echo "$as_me:20216: \$? = $ac_status" >&5
20217 (exit $ac_status); }; }; then
20218 ac_cv_func__doprnt=yes
20219else
20220 echo "$as_me: failed program was:" >&5
20221cat conftest.$ac_ext >&5
20222ac_cv_func__doprnt=no
20223fi
20224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20225fi
20226echo "$as_me:20226: result: $ac_cv_func__doprnt" >&5
20227echo "${ECHO_T}$ac_cv_func__doprnt" >&6
20228if test $ac_cv_func__doprnt = yes; then
20229
20230cat >>confdefs.h <<\EOF
4f14bcd8 20231#define HAVE_DOPRNT 1
698dcdb6 20232EOF
4f14bcd8 20233
270a909e 20234fi
270a909e 20235
4f14bcd8 20236fi
7b4a847f 20237done
1e487827 20238
7b4a847f
RR
20239echo "$as_me:20239: checking for vsnprintf" >&5
20240echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
20241if test "${wx_cv_func_vsnprintf+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 20243else
7b4a847f
RR
20244
20245 cat >conftest.$ac_ext <<_ACEOF
20246#line 20246 "configure"
c63c7106 20247#include "confdefs.h"
698dcdb6 20248
4f14bcd8
GD
20249 #include <stdio.h>
20250 #include <stdarg.h>
7b4a847f
RR
20251
20252int
20253main ()
20254{
af15babd 20255
4f14bcd8
GD
20256 int wx_test_vsnprintf(const char *, ...);
20257
20258 wx_test_vsnprintf("%s");
20259 return 0;
20260 }
20261
20262 int wx_test_vsnprintf(const char *fmt, ...)
20263 {
20264 char *s;
20265
20266 va_list argp;
20267 va_start(argp, fmt);
20268 vsnprintf(s, 42, fmt, argp);
20269 va_end(argp);
7b4a847f
RR
20270
20271 ;
20272 return 0;
20273}
20274_ACEOF
20275rm -f conftest.$ac_objext conftest$ac_exeext
20276if { (eval echo "$as_me:20276: \"$ac_link\"") >&5
20277 (eval $ac_link) 2>&5
20278 ac_status=$?
20279 echo "$as_me:20279: \$? = $ac_status" >&5
20280 (exit $ac_status); } &&
20281 { ac_try='test -s conftest$ac_exeext'
20282 { (eval echo "$as_me:20282: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:20285: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287
4f14bcd8 20288 wx_cv_func_vsnprintf=yes
7b4a847f 20289
af15babd 20290else
7b4a847f
RR
20291 echo "$as_me: failed program was:" >&5
20292cat conftest.$ac_ext >&5
20293
20294 cat >conftest.$ac_ext <<_ACEOF
20295#line 20295 "configure"
af15babd 20296#include "confdefs.h"
af15babd 20297
4f14bcd8
GD
20298 #include <stdio.h>
20299 #include <stdarg.h>
7b4a847f
RR
20300
20301int
20302main ()
20303{
af15babd 20304
4f14bcd8
GD
20305 int wx_test_vsnprintf(const char *, ...);
20306
20307 wx_test_vsnprintf("%s");
20308 return 0;
20309 }
20310
20311 int wx_test_vsnprintf(const char *fmt, ...)
20312 {
20313 char *s;
af15babd 20314
4f14bcd8
GD
20315 va_list argp;
20316 va_start(argp, fmt);
20317 _vsnprintf(s, 42, fmt, argp);
20318 va_end(argp);
7b4a847f
RR
20319
20320 ;
20321 return 0;
20322}
20323_ACEOF
20324rm -f conftest.$ac_objext conftest$ac_exeext
20325if { (eval echo "$as_me:20325: \"$ac_link\"") >&5
20326 (eval $ac_link) 2>&5
20327 ac_status=$?
20328 echo "$as_me:20328: \$? = $ac_status" >&5
20329 (exit $ac_status); } &&
20330 { ac_try='test -s conftest$ac_exeext'
20331 { (eval echo "$as_me:20331: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:20334: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336
4f14bcd8 20337 wx_cv_func_vsnprintf=yes
7b4a847f 20338
af15babd 20339else
7b4a847f
RR
20340 echo "$as_me: failed program was:" >&5
20341cat conftest.$ac_ext >&5
20342
4f14bcd8 20343 wx_cv_func_vsnprintf=no
7b4a847f 20344
af15babd 20345fi
7b4a847f 20346rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
af15babd 20347
328a083c 20348fi
7b4a847f 20349rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
579d8138 20350
7b4a847f
RR
20351fi
20352echo "$as_me:20352: result: $wx_cv_func_vsnprintf" >&5
20353echo "${ECHO_T}$wx_cv_func_vsnprintf" >&6
af15babd 20354
4f14bcd8 20355if test "$wx_cv_func_vsnprintf" = yes; then
7b4a847f 20356 cat >>confdefs.h <<\EOF
4f14bcd8
GD
20357#define HAVE_VSNPRINTF 1
20358EOF
20359
20360else
7b4a847f
RR
20361 { echo "$as_me:20361: WARNING: unsafe function vsprintf will be used instead of vsnprintf" >&5
20362echo "$as_me: WARNING: unsafe function vsprintf will be used instead of vsnprintf" >&2;}
af15babd
VZ
20363fi
20364
7b4a847f
RR
20365echo "$as_me:20365: checking for vsscanf" >&5
20366echo $ECHO_N "checking for vsscanf... $ECHO_C" >&6
20367if test "${wx_cv_func_vsscanf+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 20369else
7b4a847f
RR
20370
20371 cat >conftest.$ac_ext <<_ACEOF
20372#line 20372 "configure"
af15babd 20373#include "confdefs.h"
af15babd 20374
4f14bcd8
GD
20375 #include <stdio.h>
20376 #include <stdarg.h>
7b4a847f
RR
20377
20378int
20379main ()
20380{
af15babd 20381
4f14bcd8
GD
20382 int wx_test_vsscanf(const char *, ...);
20383
20384 wx_test_vsscanf("%d");
20385 return 0;
20386 }
af15babd 20387
4f14bcd8
GD
20388 int wx_test_vsscanf(const char *fmt, ...)
20389 {
20390 va_list argp;
20391 va_start(argp, fmt);
20392 vsscanf("42", fmt, argp);
20393 va_end(argp);
7b4a847f
RR
20394
20395 ;
20396 return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext
20400if { (eval echo "$as_me:20400: \"$ac_compile\"") >&5
20401 (eval $ac_compile) 2>&5
20402 ac_status=$?
20403 echo "$as_me:20403: \$? = $ac_status" >&5
20404 (exit $ac_status); } &&
20405 { ac_try='test -s conftest.$ac_objext'
20406 { (eval echo "$as_me:20406: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:20409: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411
4f14bcd8 20412 wx_cv_func_vsscanf=yes
7b4a847f 20413
af15babd 20414else
7b4a847f
RR
20415 echo "$as_me: failed program was:" >&5
20416cat conftest.$ac_ext >&5
20417
4f14bcd8 20418 wx_cv_func_vsscanf=no
af15babd 20419
328a083c 20420fi
7b4a847f 20421rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 20422
7b4a847f
RR
20423fi
20424echo "$as_me:20424: result: $wx_cv_func_vsscanf" >&5
20425echo "${ECHO_T}$wx_cv_func_vsscanf" >&6
4f14bcd8
GD
20426
20427if test "$wx_cv_func_vsscanf" = yes; then
7b4a847f 20428 cat >>confdefs.h <<\EOF
4f14bcd8 20429#define HAVE_VSSCANF 1
af15babd 20430EOF
4f14bcd8 20431
af15babd 20432fi
af15babd 20433
4f14bcd8 20434if test "$TOOLKIT" != "MSW"; then
af15babd 20435
7b4a847f 20436ac_ext=cc
4f14bcd8 20437ac_cpp='$CXXCPP $CPPFLAGS'
7b4a847f
RR
20438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
579d8138 20441
7b4a847f 20442# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
20443if test "${with_libiconv_prefix+set}" = set; then
20444 withval="$with_libiconv_prefix"
7b4a847f 20445
b040e242
VS
20446 for dir in `echo "$withval" | tr : ' '`; do
20447 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
20448 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
20449 done
b040e242 20450
7b4a847f 20451fi;
b040e242 20452
7b4a847f
RR
20453 echo "$as_me:20453: checking for iconv" >&5
20454echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20455if test "${am_cv_func_iconv+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 20457else
7b4a847f 20458
b040e242
VS
20459 am_cv_func_iconv="no, consider installing GNU libiconv"
20460 am_cv_lib_iconv=no
7b4a847f
RR
20461 cat >conftest.$ac_ext <<_ACEOF
20462#line 20462 "configure"
af15babd 20463#include "confdefs.h"
b040e242 20464#include <stdlib.h>
4f14bcd8 20465#include <iconv.h>
7b4a847f
RR
20466int
20467main ()
20468{
b040e242
VS
20469iconv_t cd = iconv_open("","");
20470 iconv(cd,NULL,NULL,NULL,NULL);
20471 iconv_close(cd);
7b4a847f
RR
20472 ;
20473 return 0;
20474}
20475_ACEOF
20476rm -f conftest.$ac_objext conftest$ac_exeext
20477if { (eval echo "$as_me:20477: \"$ac_link\"") >&5
20478 (eval $ac_link) 2>&5
20479 ac_status=$?
20480 echo "$as_me:20480: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -s conftest$ac_exeext'
20483 { (eval echo "$as_me:20483: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:20486: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
b040e242 20488 am_cv_func_iconv=yes
af15babd 20489else
7b4a847f
RR
20490 echo "$as_me: failed program was:" >&5
20491cat conftest.$ac_ext >&5
b040e242 20492fi
7b4a847f 20493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
20494 if test "$am_cv_func_iconv" != yes; then
20495 am_save_LIBS="$LIBS"
20496 LIBS="$LIBS -liconv"
7b4a847f
RR
20497 cat >conftest.$ac_ext <<_ACEOF
20498#line 20498 "configure"
b040e242
VS
20499#include "confdefs.h"
20500#include <stdlib.h>
20501#include <iconv.h>
7b4a847f
RR
20502int
20503main ()
20504{
b040e242
VS
20505iconv_t cd = iconv_open("","");
20506 iconv(cd,NULL,NULL,NULL,NULL);
20507 iconv_close(cd);
7b4a847f
RR
20508 ;
20509 return 0;
20510}
20511_ACEOF
20512rm -f conftest.$ac_objext conftest$ac_exeext
20513if { (eval echo "$as_me:20513: \"$ac_link\"") >&5
20514 (eval $ac_link) 2>&5
20515 ac_status=$?
20516 echo "$as_me:20516: \$? = $ac_status" >&5
20517 (exit $ac_status); } &&
20518 { ac_try='test -s conftest$ac_exeext'
20519 { (eval echo "$as_me:20519: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:20522: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
b040e242
VS
20524 am_cv_lib_iconv=yes
20525 am_cv_func_iconv=yes
20526else
7b4a847f
RR
20527 echo "$as_me: failed program was:" >&5
20528cat conftest.$ac_ext >&5
af15babd 20529fi
7b4a847f 20530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
20531 LIBS="$am_save_LIBS"
20532 fi
328a083c 20533
7b4a847f
RR
20534fi
20535echo "$as_me:20535: result: $am_cv_func_iconv" >&5
20536echo "${ECHO_T}$am_cv_func_iconv" >&6
579d8138 20537 if test "$am_cv_func_iconv" = yes; then
7b4a847f
RR
20538
20539cat >>confdefs.h <<\EOF
b040e242
VS
20540#define HAVE_ICONV 1
20541EOF
20542
7b4a847f
RR
20543 echo "$as_me:20543: checking if iconv needs const" >&5
20544echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
20545if test "${wx_cv_func_iconv_const+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 20547else
7b4a847f
RR
20548 cat >conftest.$ac_ext <<_ACEOF
20549#line 20549 "configure"
b040e242
VS
20550#include "confdefs.h"
20551
20552#include <stdlib.h>
20553#include <iconv.h>
20554extern
20555#ifdef __cplusplus
20556"C"
20557#endif
20558#if defined(__STDC__) || defined(__cplusplus)
20559size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20560#else
20561size_t iconv();
20562#endif
af15babd 20563
7b4a847f
RR
20564int
20565main ()
20566{
20567
20568 ;
20569 return 0;
20570}
20571_ACEOF
20572rm -f conftest.$ac_objext
20573if { (eval echo "$as_me:20573: \"$ac_compile\"") >&5
20574 (eval $ac_compile) 2>&5
20575 ac_status=$?
20576 echo "$as_me:20576: \$? = $ac_status" >&5
20577 (exit $ac_status); } &&
20578 { ac_try='test -s conftest.$ac_objext'
20579 { (eval echo "$as_me:20579: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:20582: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
b7043674 20584 wx_cv_func_iconv_const="no"
b040e242 20585else
7b4a847f
RR
20586 echo "$as_me: failed program was:" >&5
20587cat conftest.$ac_ext >&5
20588wx_cv_func_iconv_const="yes"
20589
328a083c 20590fi
7b4a847f 20591rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 20592
7b4a847f
RR
20593fi
20594echo "$as_me:20594: result: $wx_cv_func_iconv_const" >&5
20595echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
20596
20597 iconv_const=
1c405bb5 20598 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
20599 iconv_const="const"
20600 fi
20601
7b4a847f 20602cat >>confdefs.h <<EOF
f09359cf 20603#define ICONV_CONST $iconv_const
b040e242
VS
20604EOF
20605
20606 fi
20607 LIBICONV=
20608 if test "$am_cv_lib_iconv" = yes; then
20609 LIBICONV="-liconv"
20610 fi
b040e242
VS
20611
20612LIBS="$LIBICONV $LIBS"
4f14bcd8 20613ac_ext=c
4f14bcd8 20614ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617ac_compiler_gnu=$ac_cv_c_compiler_gnu
328a083c 20618
579d8138 20619if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
7b4a847f
RR
20620
20621for ac_func in sigaction
af15babd 20622do
7b4a847f
RR
20623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20624echo "$as_me:20624: checking for $ac_func" >&5
20625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20626if eval "test \"\${$as_ac_var+set}\" = set"; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628else
20629 cat >conftest.$ac_ext <<_ACEOF
20630#line 20630 "configure"
af15babd
VZ
20631#include "confdefs.h"
20632/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 20633 which can conflict with char $ac_func (); below. */
af15babd
VZ
20634#include <assert.h>
20635/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
20636#ifdef __cplusplus
20637extern "C"
20638#endif
af15babd 20639/* We use char because int might match the return type of a gcc2
7b4a847f
RR
20640 builtin and then its argument prototype would still apply. */
20641char $ac_func ();
20642char (*f) ();
af15babd 20643
7b4a847f
RR
20644int
20645main ()
20646{
af15babd
VZ
20647/* The GNU C library defines this for functions which it implements
20648 to always fail with ENOSYS. Some functions are actually named
20649 something starting with __ and the normal name is an alias. */
20650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20651choke me
20652#else
7b4a847f 20653f = $ac_func;
af15babd
VZ
20654#endif
20655
7b4a847f
RR
20656 ;
20657 return 0;
20658}
20659_ACEOF
20660rm -f conftest.$ac_objext conftest$ac_exeext
20661if { (eval echo "$as_me:20661: \"$ac_link\"") >&5
20662 (eval $ac_link) 2>&5
20663 ac_status=$?
20664 echo "$as_me:20664: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
20666 { ac_try='test -s conftest$ac_exeext'
20667 { (eval echo "$as_me:20667: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20669 ac_status=$?
20670 echo "$as_me:20670: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 eval "$as_ac_var=yes"
20673else
20674 echo "$as_me: failed program was:" >&5
20675cat conftest.$ac_ext >&5
20676eval "$as_ac_var=no"
20677fi
20678rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20679fi
20680echo "$as_me:20680: result: `eval echo '${'$as_ac_var'}'`" >&5
20681echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20682if test `eval echo '${'$as_ac_var'}'` = yes; then
20683 cat >>confdefs.h <<EOF
20684#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
579d8138 20685EOF
7b4a847f 20686
4f14bcd8
GD
20687fi
20688done
20689
4f14bcd8 20690 if test "$ac_cv_func_sigaction" = "no"; then
7b4a847f
RR
20691 { echo "$as_me:20691: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
20692echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
20693 wxUSE_ON_FATAL_EXCEPTION=no
20694 fi
20695
20696 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
4f14bcd8 20697
7b4a847f
RR
20698 ac_ext=cc
20699ac_cpp='$CXXCPP $CPPFLAGS'
20700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
328a083c 20703
7b4a847f
RR
20704 echo "$as_me:20704: checking for sa_handler type" >&5
20705echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
20706if test "${wx_cv_type_sa_handler+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 20708else
7b4a847f
RR
20709
20710 cat >conftest.$ac_ext <<_ACEOF
20711#line 20711 "configure"
af15babd 20712#include "confdefs.h"
4f14bcd8 20713#include <signal.h>
7b4a847f
RR
20714int
20715main ()
20716{
4f14bcd8
GD
20717
20718 extern void testSigHandler(int);
20719
20720 struct sigaction sa;
20721 sa.sa_handler = testSigHandler;
7b4a847f
RR
20722
20723 ;
20724 return 0;
20725}
20726_ACEOF
20727rm -f conftest.$ac_objext
20728if { (eval echo "$as_me:20728: \"$ac_compile\"") >&5
20729 (eval $ac_compile) 2>&5
20730 ac_status=$?
20731 echo "$as_me:20731: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -s conftest.$ac_objext'
20734 { (eval echo "$as_me:20734: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 echo "$as_me:20737: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739
4f14bcd8 20740 wx_cv_type_sa_handler=int
7b4a847f 20741
af15babd 20742else
7b4a847f
RR
20743 echo "$as_me: failed program was:" >&5
20744cat conftest.$ac_ext >&5
20745
4f14bcd8 20746 wx_cv_type_sa_handler=void
7b4a847f 20747
328a083c 20748fi
7b4a847f 20749rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 20750
7b4a847f
RR
20751fi
20752echo "$as_me:20752: result: $wx_cv_type_sa_handler" >&5
20753echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
20754
20755 ac_ext=c
4f14bcd8 20756ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
20757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 20760
7b4a847f 20761 cat >>confdefs.h <<EOF
4f14bcd8 20762#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
20763EOF
20764
4f14bcd8
GD
20765 fi
20766fi
af15babd 20767
4f14bcd8 20768for ac_func in vfork
af15babd 20769do
7b4a847f
RR
20770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20771echo "$as_me:20771: checking for $ac_func" >&5
20772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20773if eval "test \"\${$as_ac_var+set}\" = set"; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20775else
20776 cat >conftest.$ac_ext <<_ACEOF
20777#line 20777 "configure"
af15babd
VZ
20778#include "confdefs.h"
20779/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 20780 which can conflict with char $ac_func (); below. */
af15babd
VZ
20781#include <assert.h>
20782/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
20783#ifdef __cplusplus
20784extern "C"
20785#endif
af15babd 20786/* We use char because int might match the return type of a gcc2
7b4a847f
RR
20787 builtin and then its argument prototype would still apply. */
20788char $ac_func ();
20789char (*f) ();
af15babd 20790
7b4a847f
RR
20791int
20792main ()
20793{
af15babd
VZ
20794/* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20798choke me
20799#else
7b4a847f 20800f = $ac_func;
af15babd
VZ
20801#endif
20802
7b4a847f
RR
20803 ;
20804 return 0;
20805}
20806_ACEOF
20807rm -f conftest.$ac_objext conftest$ac_exeext
20808if { (eval echo "$as_me:20808: \"$ac_link\"") >&5
20809 (eval $ac_link) 2>&5
20810 ac_status=$?
20811 echo "$as_me:20811: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try='test -s conftest$ac_exeext'
20814 { (eval echo "$as_me:20814: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
20817 echo "$as_me:20817: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 eval "$as_ac_var=yes"
20820else
20821 echo "$as_me: failed program was:" >&5
20822cat conftest.$ac_ext >&5
20823eval "$as_ac_var=no"
20824fi
20825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20826fi
20827echo "$as_me:20827: result: `eval echo '${'$as_ac_var'}'`" >&5
20828echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20829if test `eval echo '${'$as_ac_var'}'` = yes; then
20830 cat >>confdefs.h <<EOF
20831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
af15babd 20832EOF
af15babd 20833
af15babd
VZ
20834fi
20835done
20836
ade35f11
VZ
20837for ac_func in mkstemp mktemp
20838do
7b4a847f
RR
20839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20840echo "$as_me:20840: checking for $ac_func" >&5
20841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20842if eval "test \"\${$as_ac_var+set}\" = set"; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20844else
20845 cat >conftest.$ac_ext <<_ACEOF
20846#line 20846 "configure"
ade35f11
VZ
20847#include "confdefs.h"
20848/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 20849 which can conflict with char $ac_func (); below. */
ade35f11
VZ
20850#include <assert.h>
20851/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
20852#ifdef __cplusplus
20853extern "C"
20854#endif
ade35f11 20855/* We use char because int might match the return type of a gcc2
7b4a847f
RR
20856 builtin and then its argument prototype would still apply. */
20857char $ac_func ();
20858char (*f) ();
ade35f11 20859
7b4a847f
RR
20860int
20861main ()
20862{
ade35f11
VZ
20863/* The GNU C library defines this for functions which it implements
20864 to always fail with ENOSYS. Some functions are actually named
20865 something starting with __ and the normal name is an alias. */
20866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20867choke me
20868#else
7b4a847f 20869f = $ac_func;
ade35f11
VZ
20870#endif
20871
7b4a847f
RR
20872 ;
20873 return 0;
20874}
20875_ACEOF
20876rm -f conftest.$ac_objext conftest$ac_exeext
20877if { (eval echo "$as_me:20877: \"$ac_link\"") >&5
20878 (eval $ac_link) 2>&5
20879 ac_status=$?
20880 echo "$as_me:20880: \$? = $ac_status" >&5
20881 (exit $ac_status); } &&
20882 { ac_try='test -s conftest$ac_exeext'
20883 { (eval echo "$as_me:20883: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20885 ac_status=$?
20886 echo "$as_me:20886: \$? = $ac_status" >&5
20887 (exit $ac_status); }; }; then
20888 eval "$as_ac_var=yes"
20889else
20890 echo "$as_me: failed program was:" >&5
20891cat conftest.$ac_ext >&5
20892eval "$as_ac_var=no"
20893fi
20894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20895fi
20896echo "$as_me:20896: result: `eval echo '${'$as_ac_var'}'`" >&5
20897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20898if test `eval echo '${'$as_ac_var'}'` = yes; then
20899 cat >>confdefs.h <<EOF
20900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ade35f11
VZ
20901EOF
20902 break
ade35f11
VZ
20903fi
20904done
20905
7b4a847f
RR
20906echo "$as_me:20906: checking for statfs" >&5
20907echo $ECHO_N "checking for statfs... $ECHO_C" >&6
20908if test "${wx_cv_func_statfs+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 20910else
7b4a847f
RR
20911 cat >conftest.$ac_ext <<_ACEOF
20912#line 20912 "configure"
4f14bcd8
GD
20913#include "confdefs.h"
20914
20915 #if defined(__BSD__)
20916 #include <sys/param.h>
20917 #include <sys/mount.h>
20918 #else
20919 #include <sys/vfs.h>
20920 #endif
7b4a847f
RR
20921
20922int
20923main ()
20924{
4f14bcd8
GD
20925
20926 long l;
20927 struct statfs fs;
20928 statfs("/", &fs);
20929 l = fs.f_bsize;
20930 l += fs.f_blocks;
20931 l += fs.f_bavail;
7b4a847f
RR
20932
20933 ;
20934 return 0;
20935}
20936_ACEOF
20937rm -f conftest.$ac_objext
20938if { (eval echo "$as_me:20938: \"$ac_compile\"") >&5
20939 (eval $ac_compile) 2>&5
20940 ac_status=$?
20941 echo "$as_me:20941: \$? = $ac_status" >&5
20942 (exit $ac_status); } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (eval echo "$as_me:20944: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:20947: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949
4f14bcd8 20950 wx_cv_func_statfs=yes
7b4a847f 20951
4f14bcd8 20952else
7b4a847f
RR
20953 echo "$as_me: failed program was:" >&5
20954cat conftest.$ac_ext >&5
20955
4f14bcd8 20956 wx_cv_func_statfs=no
af15babd 20957
328a083c 20958fi
7b4a847f 20959rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 20960
7b4a847f
RR
20961fi
20962echo "$as_me:20962: result: $wx_cv_func_statfs" >&5
20963echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
20964
20965if test "$wx_cv_func_statfs" = "yes"; then
7b4a847f 20966 cat >>confdefs.h <<\EOF
4f14bcd8
GD
20967#define HAVE_STATFS 1
20968EOF
20969
20970else
7b4a847f
RR
20971 echo "$as_me:20971: checking for statvfs" >&5
20972echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
20973if test "${wx_cv_func_statvfs+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 20975else
7b4a847f
RR
20976 cat >conftest.$ac_ext <<_ACEOF
20977#line 20977 "configure"
af15babd 20978#include "confdefs.h"
af15babd 20979
4f14bcd8 20980 #include <sys/statvfs.h>
7b4a847f
RR
20981
20982int
20983main ()
20984{
af15babd 20985
4f14bcd8
GD
20986 long l;
20987 struct statvfs fs;
20988 statvfs("/", &fs);
20989 l = fs.f_bsize;
20990 l += fs.f_blocks;
20991 l += fs.f_bavail;
7b4a847f
RR
20992
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
20998if { (eval echo "$as_me:20998: \"$ac_compile\"") >&5
20999 (eval $ac_compile) 2>&5
21000 ac_status=$?
21001 echo "$as_me:21001: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:21004: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:21007: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009
4f14bcd8 21010 wx_cv_func_statvfs=yes
7b4a847f 21011
af15babd 21012else
7b4a847f
RR
21013 echo "$as_me: failed program was:" >&5
21014cat conftest.$ac_ext >&5
21015
4f14bcd8 21016 wx_cv_func_statvfs=no
7b4a847f 21017
328a083c 21018fi
7b4a847f 21019rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 21020
7b4a847f
RR
21021fi
21022echo "$as_me:21022: result: $wx_cv_func_statvfs" >&5
21023echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 21024
4f14bcd8 21025 if test "$wx_cv_func_statvfs" = "yes"; then
7b4a847f 21026 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21027#define HAVE_STATVFS 1
21028EOF
af15babd 21029
4f14bcd8 21030 else
7b4a847f
RR
21031 { echo "$as_me:21031: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
21032echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
4f14bcd8
GD
21033 fi
21034fi
af15babd 21035
4f14bcd8 21036if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
7b4a847f
RR
21037
21038for ac_func in fcntl flock
af15babd 21039do
7b4a847f
RR
21040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21041echo "$as_me:21041: checking for $ac_func" >&5
21042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21043if eval "test \"\${$as_ac_var+set}\" = set"; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21045else
21046 cat >conftest.$ac_ext <<_ACEOF
21047#line 21047 "configure"
af15babd
VZ
21048#include "confdefs.h"
21049/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21050 which can conflict with char $ac_func (); below. */
af15babd
VZ
21051#include <assert.h>
21052/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21053#ifdef __cplusplus
21054extern "C"
21055#endif
af15babd 21056/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21057 builtin and then its argument prototype would still apply. */
21058char $ac_func ();
21059char (*f) ();
af15babd 21060
7b4a847f
RR
21061int
21062main ()
21063{
af15babd
VZ
21064/* The GNU C library defines this for functions which it implements
21065 to always fail with ENOSYS. Some functions are actually named
21066 something starting with __ and the normal name is an alias. */
21067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21068choke me
21069#else
7b4a847f 21070f = $ac_func;
af15babd
VZ
21071#endif
21072
7b4a847f
RR
21073 ;
21074 return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext conftest$ac_exeext
21078if { (eval echo "$as_me:21078: \"$ac_link\"") >&5
21079 (eval $ac_link) 2>&5
21080 ac_status=$?
21081 echo "$as_me:21081: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (eval echo "$as_me:21084: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:21087: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 eval "$as_ac_var=yes"
21090else
21091 echo "$as_me: failed program was:" >&5
21092cat conftest.$ac_ext >&5
21093eval "$as_ac_var=no"
21094fi
21095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21096fi
21097echo "$as_me:21097: result: `eval echo '${'$as_ac_var'}'`" >&5
21098echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21099if test `eval echo '${'$as_ac_var'}'` = yes; then
21100 cat >>confdefs.h <<EOF
21101#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
af15babd 21102EOF
4f14bcd8 21103 break
af15babd
VZ
21104fi
21105done
21106
4f14bcd8 21107 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
7b4a847f
RR
21108 { echo "$as_me:21108: WARNING: wxSingleInstanceChecker not available" >&5
21109echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
21110 wxUSE_SNGLINST_CHECKER=no
21111 fi
21112fi
af15babd 21113
4f14bcd8 21114for ac_func in timegm
af15babd 21115do
7b4a847f
RR
21116as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21117echo "$as_me:21117: checking for $ac_func" >&5
21118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21119if eval "test \"\${$as_ac_var+set}\" = set"; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21121else
21122 cat >conftest.$ac_ext <<_ACEOF
21123#line 21123 "configure"
af15babd
VZ
21124#include "confdefs.h"
21125/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21126 which can conflict with char $ac_func (); below. */
af15babd
VZ
21127#include <assert.h>
21128/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21129#ifdef __cplusplus
21130extern "C"
21131#endif
af15babd 21132/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21133 builtin and then its argument prototype would still apply. */
21134char $ac_func ();
21135char (*f) ();
698dcdb6 21136
7b4a847f
RR
21137int
21138main ()
21139{
af15babd
VZ
21140/* The GNU C library defines this for functions which it implements
21141 to always fail with ENOSYS. Some functions are actually named
21142 something starting with __ and the normal name is an alias. */
21143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21144choke me
21145#else
7b4a847f 21146f = $ac_func;
af15babd
VZ
21147#endif
21148
7b4a847f
RR
21149 ;
21150 return 0;
21151}
21152_ACEOF
21153rm -f conftest.$ac_objext conftest$ac_exeext
21154if { (eval echo "$as_me:21154: \"$ac_link\"") >&5
21155 (eval $ac_link) 2>&5
21156 ac_status=$?
21157 echo "$as_me:21157: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -s conftest$ac_exeext'
21160 { (eval echo "$as_me:21160: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
21163 echo "$as_me:21163: \$? = $ac_status" >&5
21164 (exit $ac_status); }; }; then
21165 eval "$as_ac_var=yes"
21166else
21167 echo "$as_me: failed program was:" >&5
21168cat conftest.$ac_ext >&5
21169eval "$as_ac_var=no"
21170fi
21171rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21172fi
21173echo "$as_me:21173: result: `eval echo '${'$as_ac_var'}'`" >&5
21174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21175if test `eval echo '${'$as_ac_var'}'` = yes; then
21176 cat >>confdefs.h <<EOF
21177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
698dcdb6 21178EOF
703e0a69 21179
af15babd
VZ
21180fi
21181done
21182
4f14bcd8 21183for ac_func in putenv setenv
10f2d63a 21184do
7b4a847f
RR
21185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21186echo "$as_me:21186: checking for $ac_func" >&5
21187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21188if eval "test \"\${$as_ac_var+set}\" = set"; then
21189 echo $ECHO_N "(cached) $ECHO_C" >&6
21190else
21191 cat >conftest.$ac_ext <<_ACEOF
21192#line 21192 "configure"
af15babd
VZ
21193#include "confdefs.h"
21194/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21195 which can conflict with char $ac_func (); below. */
af15babd
VZ
21196#include <assert.h>
21197/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21198#ifdef __cplusplus
21199extern "C"
21200#endif
af15babd 21201/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21202 builtin and then its argument prototype would still apply. */
21203char $ac_func ();
21204char (*f) ();
af15babd 21205
7b4a847f
RR
21206int
21207main ()
21208{
af15babd
VZ
21209/* The GNU C library defines this for functions which it implements
21210 to always fail with ENOSYS. Some functions are actually named
21211 something starting with __ and the normal name is an alias. */
21212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21213choke me
21214#else
7b4a847f 21215f = $ac_func;
af15babd
VZ
21216#endif
21217
7b4a847f
RR
21218 ;
21219 return 0;
21220}
21221_ACEOF
21222rm -f conftest.$ac_objext conftest$ac_exeext
21223if { (eval echo "$as_me:21223: \"$ac_link\"") >&5
21224 (eval $ac_link) 2>&5
21225 ac_status=$?
21226 echo "$as_me:21226: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
21228 { ac_try='test -s conftest$ac_exeext'
21229 { (eval echo "$as_me:21229: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:21232: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 eval "$as_ac_var=yes"
21235else
21236 echo "$as_me: failed program was:" >&5
21237cat conftest.$ac_ext >&5
21238eval "$as_ac_var=no"
21239fi
21240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21241fi
21242echo "$as_me:21242: result: `eval echo '${'$as_ac_var'}'`" >&5
21243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21244if test `eval echo '${'$as_ac_var'}'` = yes; then
21245 cat >>confdefs.h <<EOF
21246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
af15babd 21247EOF
4f14bcd8 21248 break
af15babd 21249fi
af15babd
VZ
21250done
21251
4f14bcd8
GD
21252HAVE_SOME_SLEEP_FUNC=0
21253if test "$USE_BEOS" = 1; then
7b4a847f 21254 cat >>confdefs.h <<\EOF
4f14bcd8 21255#define HAVE_SLEEP 1
af15babd
VZ
21256EOF
21257
4f14bcd8 21258 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
21259fi
21260
4f14bcd8 21261if test "$USE_DARWIN" = 1; then
7b4a847f 21262 cat >>confdefs.h <<\EOF
4f14bcd8 21263#define HAVE_USLEEP 1
af15babd 21264EOF
10f2d63a 21265
4f14bcd8 21266 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
21267fi
21268
4f14bcd8
GD
21269if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
21270 POSIX4_LINK=
7b4a847f
RR
21271
21272for ac_func in nanosleep
4f14bcd8 21273do
7b4a847f
RR
21274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21275echo "$as_me:21275: checking for $ac_func" >&5
21276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21277if eval "test \"\${$as_ac_var+set}\" = set"; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21279else
21280 cat >conftest.$ac_ext <<_ACEOF
21281#line 21281 "configure"
10f2d63a 21282#include "confdefs.h"
4f14bcd8 21283/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21284 which can conflict with char $ac_func (); below. */
4f14bcd8 21285#include <assert.h>
10f2d63a 21286/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21287#ifdef __cplusplus
21288extern "C"
21289#endif
10f2d63a 21290/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21291 builtin and then its argument prototype would still apply. */
21292char $ac_func ();
21293char (*f) ();
4f14bcd8 21294
7b4a847f
RR
21295int
21296main ()
21297{
4f14bcd8
GD
21298/* The GNU C library defines this for functions which it implements
21299 to always fail with ENOSYS. Some functions are actually named
21300 something starting with __ and the normal name is an alias. */
21301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21302choke me
21303#else
7b4a847f 21304f = $ac_func;
4f14bcd8
GD
21305#endif
21306
7b4a847f
RR
21307 ;
21308 return 0;
21309}
21310_ACEOF
21311rm -f conftest.$ac_objext conftest$ac_exeext
21312if { (eval echo "$as_me:21312: \"$ac_link\"") >&5
21313 (eval $ac_link) 2>&5
21314 ac_status=$?
21315 echo "$as_me:21315: \$? = $ac_status" >&5
21316 (exit $ac_status); } &&
21317 { ac_try='test -s conftest$ac_exeext'
21318 { (eval echo "$as_me:21318: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:21321: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 eval "$as_ac_var=yes"
21324else
21325 echo "$as_me: failed program was:" >&5
21326cat conftest.$ac_ext >&5
21327eval "$as_ac_var=no"
21328fi
21329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21330fi
21331echo "$as_me:21331: result: `eval echo '${'$as_ac_var'}'`" >&5
21332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21333if test `eval echo '${'$as_ac_var'}'` = yes; then
21334 cat >>confdefs.h <<EOF
21335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21336EOF
21337 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21338#define HAVE_NANOSLEEP 1
21339EOF
21340
10f2d63a 21341else
7b4a847f
RR
21342
21343 echo "$as_me:21343: checking for nanosleep in -lposix4" >&5
21344echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
21345if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 21347else
7b4a847f 21348 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 21349LIBS="-lposix4 $LIBS"
7b4a847f
RR
21350cat >conftest.$ac_ext <<_ACEOF
21351#line 21351 "configure"
10f2d63a 21352#include "confdefs.h"
7b4a847f 21353
10f2d63a 21354/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21355#ifdef __cplusplus
21356extern "C"
21357#endif
10f2d63a 21358/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21359 builtin and then its argument prototype would still apply. */
21360char nanosleep ();
21361int
21362main ()
21363{
21364nanosleep ();
21365 ;
21366 return 0;
21367}
21368_ACEOF
21369rm -f conftest.$ac_objext conftest$ac_exeext
21370if { (eval echo "$as_me:21370: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>&5
21372 ac_status=$?
21373 echo "$as_me:21373: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
21375 { ac_try='test -s conftest$ac_exeext'
21376 { (eval echo "$as_me:21376: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:21379: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 ac_cv_lib_posix4_nanosleep=yes
21382else
21383 echo "$as_me: failed program was:" >&5
21384cat conftest.$ac_ext >&5
21385ac_cv_lib_posix4_nanosleep=no
21386fi
21387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21388LIBS=$ac_check_lib_save_LIBS
21389fi
21390echo "$as_me:21390: result: $ac_cv_lib_posix4_nanosleep" >&5
21391echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
21392if test $ac_cv_lib_posix4_nanosleep = yes; then
21393
21394 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21395#define HAVE_NANOSLEEP 1
21396EOF
21397
3d63bc3a 21398 POSIX4_LINK=" -lposix4"
7b4a847f 21399
10f2d63a 21400else
10f2d63a 21401
7b4a847f 21402for ac_func in usleep
4f14bcd8 21403do
7b4a847f
RR
21404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21405echo "$as_me:21405: checking for $ac_func" >&5
21406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21407if eval "test \"\${$as_ac_var+set}\" = set"; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21409else
21410 cat >conftest.$ac_ext <<_ACEOF
21411#line 21411 "configure"
10f2d63a 21412#include "confdefs.h"
4f14bcd8 21413/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21414 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
21415#include <assert.h>
21416/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21417#ifdef __cplusplus
21418extern "C"
21419#endif
4f14bcd8 21420/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21421 builtin and then its argument prototype would still apply. */
21422char $ac_func ();
21423char (*f) ();
4f14bcd8 21424
7b4a847f
RR
21425int
21426main ()
21427{
4f14bcd8
GD
21428/* The GNU C library defines this for functions which it implements
21429 to always fail with ENOSYS. Some functions are actually named
21430 something starting with __ and the normal name is an alias. */
21431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21432choke me
21433#else
7b4a847f 21434f = $ac_func;
4f14bcd8
GD
21435#endif
21436
7b4a847f
RR
21437 ;
21438 return 0;
21439}
21440_ACEOF
21441rm -f conftest.$ac_objext conftest$ac_exeext
21442if { (eval echo "$as_me:21442: \"$ac_link\"") >&5
21443 (eval $ac_link) 2>&5
21444 ac_status=$?
21445 echo "$as_me:21445: \$? = $ac_status" >&5
21446 (exit $ac_status); } &&
21447 { ac_try='test -s conftest$ac_exeext'
21448 { (eval echo "$as_me:21448: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21450 ac_status=$?
21451 echo "$as_me:21451: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 eval "$as_ac_var=yes"
21454else
21455 echo "$as_me: failed program was:" >&5
21456cat conftest.$ac_ext >&5
21457eval "$as_ac_var=no"
21458fi
21459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21460fi
21461echo "$as_me:21461: result: `eval echo '${'$as_ac_var'}'`" >&5
21462echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21463if test `eval echo '${'$as_ac_var'}'` = yes; then
21464 cat >>confdefs.h <<EOF
21465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21466EOF
21467 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21468#define HAVE_USLEEP 1
21469EOF
21470
698dcdb6 21471else
7b4a847f
RR
21472 { echo "$as_me:21472: WARNING: wxSleep() function will not work" >&5
21473echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
21474
10f2d63a 21475fi
4f14bcd8 21476done
10f2d63a 21477
6232543b 21478fi
10f2d63a 21479
1e487827 21480fi
4f14bcd8 21481done
703e0a69 21482
10f2d63a
VZ
21483fi
21484
4f14bcd8 21485for ac_func in uname gethostname
70846f0a 21486do
7b4a847f
RR
21487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21488echo "$as_me:21488: checking for $ac_func" >&5
21489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21490if eval "test \"\${$as_ac_var+set}\" = set"; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21492else
21493 cat >conftest.$ac_ext <<_ACEOF
21494#line 21494 "configure"
70846f0a
VZ
21495#include "confdefs.h"
21496/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21497 which can conflict with char $ac_func (); below. */
70846f0a
VZ
21498#include <assert.h>
21499/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21500#ifdef __cplusplus
21501extern "C"
21502#endif
70846f0a 21503/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21504 builtin and then its argument prototype would still apply. */
21505char $ac_func ();
21506char (*f) ();
70846f0a 21507
7b4a847f
RR
21508int
21509main ()
21510{
70846f0a
VZ
21511/* The GNU C library defines this for functions which it implements
21512 to always fail with ENOSYS. Some functions are actually named
21513 something starting with __ and the normal name is an alias. */
21514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21515choke me
21516#else
7b4a847f 21517f = $ac_func;
70846f0a
VZ
21518#endif
21519
7b4a847f
RR
21520 ;
21521 return 0;
21522}
21523_ACEOF
21524rm -f conftest.$ac_objext conftest$ac_exeext
21525if { (eval echo "$as_me:21525: \"$ac_link\"") >&5
21526 (eval $ac_link) 2>&5
21527 ac_status=$?
21528 echo "$as_me:21528: \$? = $ac_status" >&5
21529 (exit $ac_status); } &&
21530 { ac_try='test -s conftest$ac_exeext'
21531 { (eval echo "$as_me:21531: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 echo "$as_me:21534: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21536 eval "$as_ac_var=yes"
21537else
21538 echo "$as_me: failed program was:" >&5
21539cat conftest.$ac_ext >&5
21540eval "$as_ac_var=no"
21541fi
21542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21543fi
21544echo "$as_me:21544: result: `eval echo '${'$as_ac_var'}'`" >&5
21545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21546if test `eval echo '${'$as_ac_var'}'` = yes; then
21547 cat >>confdefs.h <<EOF
21548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
698dcdb6 21549EOF
4f14bcd8 21550 break
70846f0a
VZ
21551fi
21552done
21553
7b4a847f 21554ac_ext=cc
4f14bcd8 21555ac_cpp='$CXXCPP $CPPFLAGS'
7b4a847f
RR
21556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4f14bcd8
GD
21559
21560for ac_func in strtok_r
10f2d63a 21561do
7b4a847f
RR
21562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21563echo "$as_me:21563: checking for $ac_func" >&5
21564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21565if eval "test \"\${$as_ac_var+set}\" = set"; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567else
21568 cat >conftest.$ac_ext <<_ACEOF
21569#line 21569 "configure"
10f2d63a 21570#include "confdefs.h"
4f14bcd8 21571/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21572 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
21573#include <assert.h>
21574/* Override any gcc2 internal prototype to avoid an error. */
21575#ifdef __cplusplus
21576extern "C"
21577#endif
21578/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21579 builtin and then its argument prototype would still apply. */
21580char $ac_func ();
21581char (*f) ();
4f14bcd8 21582
7b4a847f
RR
21583int
21584main ()
21585{
4f14bcd8
GD
21586/* The GNU C library defines this for functions which it implements
21587 to always fail with ENOSYS. Some functions are actually named
21588 something starting with __ and the normal name is an alias. */
21589#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21590choke me
21591#else
7b4a847f 21592f = $ac_func;
4f14bcd8
GD
21593#endif
21594
7b4a847f
RR
21595 ;
21596 return 0;
21597}
21598_ACEOF
21599rm -f conftest.$ac_objext conftest$ac_exeext
21600if { (eval echo "$as_me:21600: \"$ac_link\"") >&5
21601 (eval $ac_link) 2>&5
21602 ac_status=$?
21603 echo "$as_me:21603: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -s conftest$ac_exeext'
21606 { (eval echo "$as_me:21606: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:21609: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }; then
21611 eval "$as_ac_var=yes"
21612else
21613 echo "$as_me: failed program was:" >&5
21614cat conftest.$ac_ext >&5
21615eval "$as_ac_var=no"
21616fi
21617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21618fi
21619echo "$as_me:21619: result: `eval echo '${'$as_ac_var'}'`" >&5
21620echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21621if test `eval echo '${'$as_ac_var'}'` = yes; then
21622 cat >>confdefs.h <<EOF
21623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
698dcdb6 21624EOF
4f14bcd8 21625
10f2d63a
VZ
21626fi
21627done
21628
4f14bcd8 21629ac_ext=c
4f14bcd8 21630ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
21631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633ac_compiler_gnu=$ac_cv_c_compiler_gnu
328a083c 21634
579d8138 21635INET_LINK=
7b4a847f 21636
4f14bcd8
GD
21637for ac_func in inet_addr
21638do
7b4a847f
RR
21639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21640echo "$as_me:21640: checking for $ac_func" >&5
21641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21642if eval "test \"\${$as_ac_var+set}\" = set"; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644else
21645 cat >conftest.$ac_ext <<_ACEOF
21646#line 21646 "configure"
10f2d63a 21647#include "confdefs.h"
4f14bcd8 21648/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21649 which can conflict with char $ac_func (); below. */
4f14bcd8 21650#include <assert.h>
10f2d63a 21651/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21652#ifdef __cplusplus
21653extern "C"
21654#endif
10f2d63a 21655/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21656 builtin and then its argument prototype would still apply. */
21657char $ac_func ();
21658char (*f) ();
4f14bcd8 21659
7b4a847f
RR
21660int
21661main ()
21662{
4f14bcd8
GD
21663/* The GNU C library defines this for functions which it implements
21664 to always fail with ENOSYS. Some functions are actually named
21665 something starting with __ and the normal name is an alias. */
21666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21667choke me
21668#else
7b4a847f 21669f = $ac_func;
4f14bcd8
GD
21670#endif
21671
7b4a847f
RR
21672 ;
21673 return 0;
21674}
21675_ACEOF
21676rm -f conftest.$ac_objext conftest$ac_exeext
21677if { (eval echo "$as_me:21677: \"$ac_link\"") >&5
21678 (eval $ac_link) 2>&5
21679 ac_status=$?
21680 echo "$as_me:21680: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
21682 { ac_try='test -s conftest$ac_exeext'
21683 { (eval echo "$as_me:21683: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:21686: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
21688 eval "$as_ac_var=yes"
21689else
21690 echo "$as_me: failed program was:" >&5
21691cat conftest.$ac_ext >&5
21692eval "$as_ac_var=no"
21693fi
21694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21695fi
21696echo "$as_me:21696: result: `eval echo '${'$as_ac_var'}'`" >&5
21697echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21698if test `eval echo '${'$as_ac_var'}'` = yes; then
21699 cat >>confdefs.h <<EOF
21700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21701EOF
21702 cat >>confdefs.h <<\EOF
4f14bcd8 21703#define HAVE_INET_ADDR 1
10f2d63a
VZ
21704EOF
21705
21706else
7b4a847f
RR
21707
21708 echo "$as_me:21708: checking for inet_addr in -lnsl" >&5
21709echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
21710if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 21712else
7b4a847f 21713 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 21714LIBS="-lnsl $LIBS"
7b4a847f
RR
21715cat >conftest.$ac_ext <<_ACEOF
21716#line 21716 "configure"
10f2d63a 21717#include "confdefs.h"
7b4a847f 21718
10f2d63a 21719/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21720#ifdef __cplusplus
21721extern "C"
21722#endif
10f2d63a 21723/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21724 builtin and then its argument prototype would still apply. */
21725char inet_addr ();
21726int
21727main ()
21728{
21729inet_addr ();
21730 ;
21731 return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext conftest$ac_exeext
21735if { (eval echo "$as_me:21735: \"$ac_link\"") >&5
21736 (eval $ac_link) 2>&5
21737 ac_status=$?
21738 echo "$as_me:21738: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -s conftest$ac_exeext'
21741 { (eval echo "$as_me:21741: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21743 ac_status=$?
21744 echo "$as_me:21744: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_cv_lib_nsl_inet_addr=yes
21747else
21748 echo "$as_me: failed program was:" >&5
21749cat conftest.$ac_ext >&5
21750ac_cv_lib_nsl_inet_addr=no
21751fi
21752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21753LIBS=$ac_check_lib_save_LIBS
21754fi
21755echo "$as_me:21755: result: $ac_cv_lib_nsl_inet_addr" >&5
21756echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
21757if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 21758 INET_LINK="nsl"
10f2d63a 21759else
7b4a847f
RR
21760 echo "$as_me:21760: checking for inet_addr in -lresolv" >&5
21761echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
21762if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 21764else
7b4a847f 21765 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 21766LIBS="-lresolv $LIBS"
7b4a847f
RR
21767cat >conftest.$ac_ext <<_ACEOF
21768#line 21768 "configure"
21769#include "confdefs.h"
698dcdb6 21770
7b4a847f
RR
21771/* Override any gcc2 internal prototype to avoid an error. */
21772#ifdef __cplusplus
21773extern "C"
21774#endif
21775/* We use char because int might match the return type of a gcc2
21776 builtin and then its argument prototype would still apply. */
21777char inet_addr ();
21778int
21779main ()
21780{
21781inet_addr ();
21782 ;
21783 return 0;
21784}
21785_ACEOF
21786rm -f conftest.$ac_objext conftest$ac_exeext
21787if { (eval echo "$as_me:21787: \"$ac_link\"") >&5
21788 (eval $ac_link) 2>&5
21789 ac_status=$?
21790 echo "$as_me:21790: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -s conftest$ac_exeext'
21793 { (eval echo "$as_me:21793: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:21796: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_lib_resolv_inet_addr=yes
21799else
21800 echo "$as_me: failed program was:" >&5
21801cat conftest.$ac_ext >&5
21802ac_cv_lib_resolv_inet_addr=no
21803fi
21804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21805LIBS=$ac_check_lib_save_LIBS
21806fi
21807echo "$as_me:21807: result: $ac_cv_lib_resolv_inet_addr" >&5
21808echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
21809if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 21810 INET_LINK="resolv"
698dcdb6 21811else
7b4a847f
RR
21812 echo "$as_me:21812: checking for inet_addr in -lsocket" >&5
21813echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
21814if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 21816else
7b4a847f 21817 ac_check_lib_save_LIBS=$LIBS
3c011993 21818LIBS="-lsocket $LIBS"
7b4a847f
RR
21819cat >conftest.$ac_ext <<_ACEOF
21820#line 21820 "configure"
3c011993 21821#include "confdefs.h"
7b4a847f 21822
3c011993 21823/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21824#ifdef __cplusplus
21825extern "C"
21826#endif
3c011993 21827/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21828 builtin and then its argument prototype would still apply. */
21829char inet_addr ();
21830int
21831main ()
21832{
21833inet_addr ();
21834 ;
21835 return 0;
21836}
21837_ACEOF
21838rm -f conftest.$ac_objext conftest$ac_exeext
21839if { (eval echo "$as_me:21839: \"$ac_link\"") >&5
21840 (eval $ac_link) 2>&5
21841 ac_status=$?
21842 echo "$as_me:21842: \$? = $ac_status" >&5
21843 (exit $ac_status); } &&
21844 { ac_try='test -s conftest$ac_exeext'
21845 { (eval echo "$as_me:21845: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:21848: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ac_cv_lib_socket_inet_addr=yes
21851else
21852 echo "$as_me: failed program was:" >&5
21853cat conftest.$ac_ext >&5
21854ac_cv_lib_socket_inet_addr=no
21855fi
21856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21857LIBS=$ac_check_lib_save_LIBS
21858fi
21859echo "$as_me:21859: result: $ac_cv_lib_socket_inet_addr" >&5
21860echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
21861if test $ac_cv_lib_socket_inet_addr = yes; then
579d8138 21862 INET_LINK="socket"
698dcdb6 21863
698dcdb6 21864fi
4f14bcd8 21865
328a083c 21866fi
698dcdb6 21867
7b4a847f 21868fi
579d8138 21869
698dcdb6 21870fi
4f14bcd8
GD
21871done
21872
4f14bcd8
GD
21873for ac_func in inet_aton
21874do
7b4a847f
RR
21875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21876echo "$as_me:21876: checking for $ac_func" >&5
21877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21878if eval "test \"\${$as_ac_var+set}\" = set"; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21880else
21881 cat >conftest.$ac_ext <<_ACEOF
21882#line 21882 "configure"
f6bcfd97 21883#include "confdefs.h"
4f14bcd8 21884/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 21885 which can conflict with char $ac_func (); below. */
4f14bcd8 21886#include <assert.h>
f6bcfd97 21887/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21888#ifdef __cplusplus
21889extern "C"
21890#endif
f6bcfd97 21891/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21892 builtin and then its argument prototype would still apply. */
21893char $ac_func ();
21894char (*f) ();
4f14bcd8 21895
7b4a847f
RR
21896int
21897main ()
21898{
4f14bcd8
GD
21899/* The GNU C library defines this for functions which it implements
21900 to always fail with ENOSYS. Some functions are actually named
21901 something starting with __ and the normal name is an alias. */
21902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21903choke me
21904#else
7b4a847f 21905f = $ac_func;
4f14bcd8
GD
21906#endif
21907
7b4a847f
RR
21908 ;
21909 return 0;
21910}
21911_ACEOF
21912rm -f conftest.$ac_objext conftest$ac_exeext
21913if { (eval echo "$as_me:21913: \"$ac_link\"") >&5
21914 (eval $ac_link) 2>&5
21915 ac_status=$?
21916 echo "$as_me:21916: \$? = $ac_status" >&5
21917 (exit $ac_status); } &&
21918 { ac_try='test -s conftest$ac_exeext'
21919 { (eval echo "$as_me:21919: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:21922: \$? = $ac_status" >&5
21923 (exit $ac_status); }; }; then
21924 eval "$as_ac_var=yes"
21925else
21926 echo "$as_me: failed program was:" >&5
21927cat conftest.$ac_ext >&5
21928eval "$as_ac_var=no"
21929fi
21930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21931fi
21932echo "$as_me:21932: result: `eval echo '${'$as_ac_var'}'`" >&5
21933echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21934if test `eval echo '${'$as_ac_var'}'` = yes; then
21935 cat >>confdefs.h <<EOF
21936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21937EOF
21938 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21939#define HAVE_INET_ATON 1
21940EOF
21941
10f2d63a 21942else
7b4a847f
RR
21943
21944 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
21945echo "$as_me:21945: checking for inet_aton in -l$INET_LINK" >&5
21946echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
21947if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
1e487827 21949else
7b4a847f 21950 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 21951LIBS="-l$INET_LINK $LIBS"
7b4a847f
RR
21952cat >conftest.$ac_ext <<_ACEOF
21953#line 21953 "configure"
10f2d63a 21954#include "confdefs.h"
7b4a847f 21955
6232543b 21956/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
21957#ifdef __cplusplus
21958extern "C"
21959#endif
6232543b 21960/* We use char because int might match the return type of a gcc2
7b4a847f
RR
21961 builtin and then its argument prototype would still apply. */
21962char inet_aton ();
21963int
21964main ()
21965{
21966inet_aton ();
21967 ;
21968 return 0;
21969}
21970_ACEOF
21971rm -f conftest.$ac_objext conftest$ac_exeext
21972if { (eval echo "$as_me:21972: \"$ac_link\"") >&5
21973 (eval $ac_link) 2>&5
21974 ac_status=$?
21975 echo "$as_me:21975: \$? = $ac_status" >&5
21976 (exit $ac_status); } &&
21977 { ac_try='test -s conftest$ac_exeext'
21978 { (eval echo "$as_me:21978: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 echo "$as_me:21981: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 eval "$as_ac_Lib=yes"
21984else
21985 echo "$as_me: failed program was:" >&5
21986cat conftest.$ac_ext >&5
21987eval "$as_ac_Lib=no"
21988fi
21989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21990LIBS=$ac_check_lib_save_LIBS
21991fi
21992echo "$as_me:21992: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21993echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21994if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21995 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21996#define HAVE_INET_ATON 1
21997EOF
21998
10f2d63a
VZ
21999fi
22000
10f2d63a 22001fi
4f14bcd8 22002done
10f2d63a 22003
4f14bcd8 22004if test "x$INET_LINK" != "x"; then
7b4a847f 22005 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22006#define HAVE_INET_ADDR 1
22007EOF
22008
3d63bc3a 22009 INET_LINK=" -l$INET_LINK"
6232543b 22010fi
10f2d63a 22011
1e487827 22012fi
703e0a69 22013
7b4a847f 22014cat >confcache <<\_ACEOF
4f14bcd8
GD
22015# This file is a shell script that caches the results of configure
22016# tests run on this system so they can be shared between configure
7b4a847f
RR
22017# scripts and configure runs, see configure's option --config-cache.
22018# It is not useful on other systems. If it contains results you don't
22019# want to keep, you may remove or edit it.
4f14bcd8 22020#
7b4a847f
RR
22021# config.status only pays attention to the cache file if you give it
22022# the --recheck option to rerun configure.
4f14bcd8 22023#
7b4a847f
RR
22024# `ac_cv_env_foo' variables (set or unset) will be overriden when
22025# loading this file, other *unset* `ac_cv_foo' will be assigned the
22026# following values.
22027
22028_ACEOF
22029
4f14bcd8
GD
22030# The following way of writing the cache mishandles newlines in values,
22031# but we know of no workaround that is simple, portable, and efficient.
22032# So, don't put newlines in cache variables' values.
22033# Ultrix sh set writes to stderr and can't be redirected directly,
22034# and sets the high bit in the cache file unless we assign to the vars.
7b4a847f
RR
22035{
22036 (set) 2>&1 |
22037 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22038 *ac_space=\ *)
22039 # `set' does not quote correctly, so add quotes (double-quote
22040 # substitution turns \\\\ into \\, and sed turns \\ into \).
22041 sed -n \
22042 "s/'/'\\\\''/g;
22043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22044 ;;
22045 *)
22046 # `set' quotes correctly as required by POSIX, so do not add quotes.
22047 sed -n \
22048 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22049 ;;
22050 esac;
22051} |
22052 sed '
22053 t clear
22054 : clear
22055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22056 t end
22057 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22058 : end' >>confcache
22059if cmp -s $cache_file confcache; then :; else
4f14bcd8 22060 if test -w $cache_file; then
7b4a847f
RR
22061 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22062 cat confcache >$cache_file
f6bcfd97 22063 else
4f14bcd8 22064 echo "not updating unwritable cache $cache_file"
f6bcfd97 22065 fi
4f14bcd8
GD
22066fi
22067rm -f confcache
f6bcfd97 22068
009fead0 22069CPP_MT_FLAG=
4f14bcd8
GD
22070if test "$TOOLKIT" != "MSW"; then
22071
7274f1c7 22072 THREADS_LINK=
009fead0 22073 THREADS_CFLAGS=
7274f1c7
RL
22074
22075 if test "$wxUSE_THREADS" = "yes" ; then
22076 if test "$wxUSE_WINE" = 1 ; then
7b4a847f
RR
22077 { echo "$as_me:22077: WARNING: Threads are not supported under WINE... disabled" >&5
22078echo "$as_me: WARNING: Threads are not supported under WINE... disabled" >&2;}
7274f1c7
RL
22079 wxUSE_THREADS="no"
22080 elif test "$USE_BEOS" = 1; then
7b4a847f
RR
22081 { echo "$as_me:22081: WARNING: BeOS threads are not yet supported... disabled" >&5
22082echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
22083 wxUSE_THREADS="no"
22084 fi
4f14bcd8 22085 fi
4f14bcd8 22086
7274f1c7 22087 if test "$wxUSE_THREADS" = "yes" ; then
7b4a847f 22088
009fead0
VZ
22089 THREAD_OPTS="-pthread"
22090 case "${host}" in
22091 *-*-solaris2* | *-*-sunos4* )
22092 if test "x$GCC" = "xyes"; then
126be6b4 22093 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
22094 else
22095 THREAD_OPTS="-mt $THREAD_OPTS"
22096 fi
22097 ;;
22098 *-*-freebsd*)
22099 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
22100 ;;
17234b26
MB
22101 *-*-darwin* | *-*-cygwin* )
22102 THREAD_OPTS=""
4101db81 22103 ;;
8f4a9a10 22104 *-*-aix*)
009fead0
VZ
22105 THREAD_OPTS="pthreads"
22106 ;;
009fead0 22107 esac
4f14bcd8 22108
02a1dfba 22109 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 22110
009fead0
VZ
22111 THREADS_OK=no
22112 for flag in $THREAD_OPTS; do
22113 case $flag in
22114 none)
7b4a847f
RR
22115 echo "$as_me:22115: checking whether pthreads work without any flags" >&5
22116echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 22117 ;;
698dcdb6 22118
009fead0 22119 -*)
7b4a847f
RR
22120 echo "$as_me:22120: checking whether pthreads work with $flag" >&5
22121echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
22122 THREADS_CFLAGS="$flag"
22123 ;;
698dcdb6 22124
009fead0 22125 *)
7b4a847f
RR
22126 echo "$as_me:22126: checking for the pthreads library -l$flag" >&5
22127echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
22128 THREADS_LINK="-l$flag"
22129 ;;
22130 esac
10f2d63a 22131
009fead0
VZ
22132 save_LIBS="$LIBS"
22133 save_CFLAGS="$CFLAGS"
22134 LIBS="$THREADS_LINK $LIBS"
04727afd 22135 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 22136
7b4a847f
RR
22137 cat >conftest.$ac_ext <<_ACEOF
22138#line 22138 "configure"
009fead0
VZ
22139#include "confdefs.h"
22140#include <pthread.h>
7b4a847f
RR
22141int
22142main ()
22143{
009fead0 22144pthread_create(0,0,0,0);
7b4a847f
RR
22145 ;
22146 return 0;
22147}
22148_ACEOF
22149rm -f conftest.$ac_objext conftest$ac_exeext
22150if { (eval echo "$as_me:22150: \"$ac_link\"") >&5
22151 (eval $ac_link) 2>&5
22152 ac_status=$?
22153 echo "$as_me:22153: \$? = $ac_status" >&5
22154 (exit $ac_status); } &&
22155 { ac_try='test -s conftest$ac_exeext'
22156 { (eval echo "$as_me:22156: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22158 ac_status=$?
22159 echo "$as_me:22159: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
009fead0 22161 THREADS_OK=yes
10f2d63a 22162else
7b4a847f
RR
22163 echo "$as_me: failed program was:" >&5
22164cat conftest.$ac_ext >&5
6232543b 22165fi
7b4a847f 22166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 22167
009fead0
VZ
22168 LIBS="$save_LIBS"
22169 CFLAGS="$save_CFLAGS"
d9b9876f 22170
7b4a847f
RR
22171 echo "$as_me:22171: result: $THREADS_OK" >&5
22172echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
22173 if test "x$THREADS_OK" = "xyes"; then
22174 break;
22175 fi
d9b9876f 22176
009fead0
VZ
22177 THREADS_LINK=""
22178 THREADS_CFLAGS=""
22179 done
4f14bcd8 22180
009fead0
VZ
22181 if test "x$THREADS_OK" != "xyes"; then
22182 wxUSE_THREADS=no
7b4a847f
RR
22183 { echo "$as_me:22183: WARNING: No thread support on this system... disabled" >&5
22184echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 22185 else
fe5a9cab
VZ
22186 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
22187
7b4a847f
RR
22188 echo "$as_me:22188: checking if more special flags are required for pthreads" >&5
22189echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
22190 flag=no
22191 case "${host}" in
22192 *-aix* | *-freebsd*)
22193 flag="-D_THREAD_SAFE"
22194 ;;
22195 *solaris* | alpha*-osf*)
22196 flag="-D_REENTRANT"
22197 ;;
22198 esac
7b4a847f
RR
22199 echo "$as_me:22199: result: ${flag}" >&5
22200echo "${ECHO_T}${flag}" >&6
009fead0 22201 if test "x$flag" != xno; then
04727afd 22202 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
22203 fi
22204
009fead0 22205 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 22206 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
22207 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
22208 fi
22209 fi
4f14bcd8 22210 fi
4f14bcd8 22211
7274f1c7 22212 if test "$wxUSE_THREADS" = "yes" ; then
7b4a847f
RR
22213
22214for ac_func in thr_setconcurrency
4f14bcd8 22215do
7b4a847f
RR
22216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22217echo "$as_me:22217: checking for $ac_func" >&5
22218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22219if eval "test \"\${$as_ac_var+set}\" = set"; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22221else
22222 cat >conftest.$ac_ext <<_ACEOF
22223#line 22223 "configure"
d9b9876f 22224#include "confdefs.h"
4f14bcd8 22225/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 22226 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
22227#include <assert.h>
22228/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
22229#ifdef __cplusplus
22230extern "C"
22231#endif
4f14bcd8 22232/* We use char because int might match the return type of a gcc2
7b4a847f
RR
22233 builtin and then its argument prototype would still apply. */
22234char $ac_func ();
22235char (*f) ();
d9b9876f 22236
7b4a847f
RR
22237int
22238main ()
22239{
4f14bcd8
GD
22240/* The GNU C library defines this for functions which it implements
22241 to always fail with ENOSYS. Some functions are actually named
22242 something starting with __ and the normal name is an alias. */
22243#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22244choke me
22245#else
7b4a847f 22246f = $ac_func;
4f14bcd8
GD
22247#endif
22248
7b4a847f
RR
22249 ;
22250 return 0;
22251}
22252_ACEOF
22253rm -f conftest.$ac_objext conftest$ac_exeext
22254if { (eval echo "$as_me:22254: \"$ac_link\"") >&5
22255 (eval $ac_link) 2>&5
22256 ac_status=$?
22257 echo "$as_me:22257: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
22259 { ac_try='test -s conftest$ac_exeext'
22260 { (eval echo "$as_me:22260: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22262 ac_status=$?
22263 echo "$as_me:22263: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
22265 eval "$as_ac_var=yes"
22266else
22267 echo "$as_me: failed program was:" >&5
22268cat conftest.$ac_ext >&5
22269eval "$as_ac_var=no"
22270fi
22271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22272fi
22273echo "$as_me:22273: result: `eval echo '${'$as_ac_var'}'`" >&5
22274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22275if test `eval echo '${'$as_ac_var'}'` = yes; then
22276 cat >>confdefs.h <<EOF
22277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
698dcdb6 22278EOF
698dcdb6 22279
10f2d63a 22280fi
4f14bcd8 22281done
10f2d63a 22282
7b4a847f 22283for ac_header in sched.h
4f14bcd8 22284do
7b4a847f
RR
22285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22286echo "$as_me:22286: checking for $ac_header" >&5
22287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22288if eval "test \"\${$as_ac_Header+set}\" = set"; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22290else
22291 cat >conftest.$ac_ext <<_ACEOF
22292#line 22292 "configure"
4f14bcd8 22293#include "confdefs.h"
7b4a847f
RR
22294#include <$ac_header>
22295_ACEOF
22296if { (eval echo "$as_me:22296: \"$ac_cpp conftest.$ac_ext\"") >&5
22297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22298 ac_status=$?
22299 egrep -v '^ *\+' conftest.er1 >conftest.err
22300 rm -f conftest.er1
22301 cat conftest.err >&5
22302 echo "$as_me:22302: \$? = $ac_status" >&5
22303 (exit $ac_status); } >/dev/null; then
22304 if test -s conftest.err; then
22305 ac_cpp_err=$ac_c_preproc_warn_flag
22306 else
22307 ac_cpp_err=
22308 fi
22309else
22310 ac_cpp_err=yes
22311fi
22312if test -z "$ac_cpp_err"; then
22313 eval "$as_ac_Header=yes"
4f14bcd8 22314else
7b4a847f 22315 echo "$as_me: failed program was:" >&5
4f14bcd8 22316 cat conftest.$ac_ext >&5
7b4a847f 22317 eval "$as_ac_Header=no"
13111b2a 22318fi
7b4a847f 22319rm -f conftest.err conftest.$ac_ext
10f2d63a 22320fi
7b4a847f
RR
22321echo "$as_me:22321: result: `eval echo '${'$as_ac_Header'}'`" >&5
22322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22323if test `eval echo '${'$as_ac_Header'}'` = yes; then
22324 cat >>confdefs.h <<EOF
22325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
f6bcfd97 22326EOF
7b4a847f 22327
f6bcfd97 22328fi
4f14bcd8 22329done
f6bcfd97 22330
009fead0 22331 if test "$ac_cv_header_sched_h" = "yes"; then
7b4a847f
RR
22332 echo "$as_me:22332: checking for sched_yield" >&5
22333echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
22334if test "${ac_cv_func_sched_yield+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 22336else
7b4a847f
RR
22337 cat >conftest.$ac_ext <<_ACEOF
22338#line 22338 "configure"
4f14bcd8 22339#include "confdefs.h"
009fead0 22340/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 22341 which can conflict with char sched_yield (); below. */
009fead0 22342#include <assert.h>
4f14bcd8 22343/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
22344#ifdef __cplusplus
22345extern "C"
22346#endif
4f14bcd8 22347/* We use char because int might match the return type of a gcc2
7b4a847f
RR
22348 builtin and then its argument prototype would still apply. */
22349char sched_yield ();
22350char (*f) ();
009fead0 22351
7b4a847f
RR
22352int
22353main ()
22354{
009fead0
VZ
22355/* The GNU C library defines this for functions which it implements
22356 to always fail with ENOSYS. Some functions are actually named
22357 something starting with __ and the normal name is an alias. */
22358#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
22359choke me
22360#else
7b4a847f 22361f = sched_yield;
009fead0
VZ
22362#endif
22363
7b4a847f
RR
22364 ;
22365 return 0;
22366}
22367_ACEOF
22368rm -f conftest.$ac_objext conftest$ac_exeext
22369if { (eval echo "$as_me:22369: \"$ac_link\"") >&5
22370 (eval $ac_link) 2>&5
22371 ac_status=$?
22372 echo "$as_me:22372: \$? = $ac_status" >&5
22373 (exit $ac_status); } &&
22374 { ac_try='test -s conftest$ac_exeext'
22375 { (eval echo "$as_me:22375: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:22378: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_func_sched_yield=yes
22381else
22382 echo "$as_me: failed program was:" >&5
22383cat conftest.$ac_ext >&5
22384ac_cv_func_sched_yield=no
22385fi
22386rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22387fi
22388echo "$as_me:22388: result: $ac_cv_func_sched_yield" >&5
22389echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
22390if test $ac_cv_func_sched_yield = yes; then
22391 cat >>confdefs.h <<\EOF
4f14bcd8 22392#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
22393EOF
22394
4f14bcd8 22395else
009fead0 22396
7b4a847f
RR
22397 echo "$as_me:22397: checking for sched_yield in -lposix4" >&5
22398echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
22399if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 22401else
7b4a847f 22402 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 22403LIBS="-lposix4 $LIBS"
7b4a847f
RR
22404cat >conftest.$ac_ext <<_ACEOF
22405#line 22405 "configure"
4f14bcd8 22406#include "confdefs.h"
7b4a847f 22407
4f14bcd8 22408/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
22409#ifdef __cplusplus
22410extern "C"
22411#endif
4f14bcd8 22412/* We use char because int might match the return type of a gcc2
7b4a847f
RR
22413 builtin and then its argument prototype would still apply. */
22414char sched_yield ();
22415int
22416main ()
22417{
22418sched_yield ();
22419 ;
22420 return 0;
22421}
22422_ACEOF
22423rm -f conftest.$ac_objext conftest$ac_exeext
22424if { (eval echo "$as_me:22424: \"$ac_link\"") >&5
22425 (eval $ac_link) 2>&5
22426 ac_status=$?
22427 echo "$as_me:22427: \$? = $ac_status" >&5
22428 (exit $ac_status); } &&
22429 { ac_try='test -s conftest$ac_exeext'
22430 { (eval echo "$as_me:22430: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:22433: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22435 ac_cv_lib_posix4_sched_yield=yes
22436else
22437 echo "$as_me: failed program was:" >&5
22438cat conftest.$ac_ext >&5
22439ac_cv_lib_posix4_sched_yield=no
22440fi
22441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22442LIBS=$ac_check_lib_save_LIBS
22443fi
22444echo "$as_me:22444: result: $ac_cv_lib_posix4_sched_yield" >&5
22445echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
22446if test $ac_cv_lib_posix4_sched_yield = yes; then
22447 cat >>confdefs.h <<\EOF
4f14bcd8 22448#define HAVE_SCHED_YIELD 1
54276ccf 22449EOF
3d63bc3a 22450 POSIX4_LINK=" -lposix4"
4f14bcd8 22451else
7b4a847f
RR
22452 { echo "$as_me:22452: WARNING: wxThread::Yield will not work properly" >&5
22453echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
22454
54276ccf
VZ
22455fi
22456
4f14bcd8 22457fi
698dcdb6 22458
009fead0 22459 fi
10f2d63a 22460
7274f1c7 22461 HAVE_PRIOR_FUNCS=0
7b4a847f
RR
22462 echo "$as_me:22462: checking for pthread_attr_getschedpolicy" >&5
22463echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
22464if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 22466else
7b4a847f
RR
22467 cat >conftest.$ac_ext <<_ACEOF
22468#line 22468 "configure"
422107f9 22469#include "confdefs.h"
009fead0 22470/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 22471 which can conflict with char pthread_attr_getschedpolicy (); below. */
009fead0 22472#include <assert.h>
4f14bcd8 22473/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
22474#ifdef __cplusplus
22475extern "C"
22476#endif
4f14bcd8 22477/* We use char because int might match the return type of a gcc2
7b4a847f
RR
22478 builtin and then its argument prototype would still apply. */
22479char pthread_attr_getschedpolicy ();
22480char (*f) ();
009fead0 22481
7b4a847f
RR
22482int
22483main ()
22484{
009fead0
VZ
22485/* The GNU C library defines this for functions which it implements
22486 to always fail with ENOSYS. Some functions are actually named
22487 something starting with __ and the normal name is an alias. */
22488#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
22489choke me
22490#else
7b4a847f 22491f = pthread_attr_getschedpolicy;
009fead0
VZ
22492#endif
22493
7b4a847f
RR
22494 ;
22495 return 0;
22496}
22497_ACEOF
22498rm -f conftest.$ac_objext conftest$ac_exeext
22499if { (eval echo "$as_me:22499: \"$ac_link\"") >&5
22500 (eval $ac_link) 2>&5
22501 ac_status=$?
22502 echo "$as_me:22502: \$? = $ac_status" >&5
22503 (exit $ac_status); } &&
22504 { ac_try='test -s conftest$ac_exeext'
22505 { (eval echo "$as_me:22505: \"$ac_try\"") >&5
22506 (eval $ac_try) 2>&5
22507 ac_status=$?
22508 echo "$as_me:22508: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 ac_cv_func_pthread_attr_getschedpolicy=yes
22511else
22512 echo "$as_me: failed program was:" >&5
22513cat conftest.$ac_ext >&5
22514ac_cv_func_pthread_attr_getschedpolicy=no
22515fi
22516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22517fi
22518echo "$as_me:22518: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
22519echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
22520if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
22521 echo "$as_me:22521: checking for pthread_attr_setschedparam" >&5
22522echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
22523if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22525else
22526 cat >conftest.$ac_ext <<_ACEOF
22527#line 22527 "configure"
579d8138 22528#include "confdefs.h"
7b4a847f
RR
22529/* System header to define __stub macros and hopefully few prototypes
22530else
22531 which can conflict with char pthread_attr_setschedparam (); below. */
009fead0 22532#include <assert.h>
422107f9 22533/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
22534#ifdef __cplusplus
22535extern "C"
22536#endif
422107f9 22537/* We use char because int might match the return type of a gcc2
7b4a847f
RR
22538 builtin and then its argument prototype would still apply. */
22539char pthread_attr_setschedparam ();
22540char (*f) ();
009fead0 22541
7b4a847f
RR
22542int
22543main ()
22544{
009fead0
VZ
22545/* The GNU C library defines this for functions which it implements
22546 to always fail with ENOSYS. Some functions are actually named
22547 something starting with __ and the normal name is an alias. */
22548#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
22549choke me
22550#else
7b4a847f 22551f = pthread_attr_setschedparam;
009fead0
VZ
22552#endif
22553
7b4a847f
RR
22554 ;
22555 return 0;
22556}
22557_ACEOF
22558rm -f conftest.$ac_objext conftest$ac_exeext
22559if { (eval echo "$as_me:22559: \"$ac_link\"") >&5
22560 (eval $ac_link) 2>&5
22561 ac_status=$?
22562 echo "$as_me:22562: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
22564 { ac_try='test -s conftest$ac_exeext'
22565 { (eval echo "$as_me:22565: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:22568: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 ac_cv_func_pthread_attr_setschedparam=yes
22571else
22572 echo "$as_me: failed program was:" >&5
22573cat conftest.$ac_ext >&5
22574ac_cv_func_pthread_attr_setschedparam=no
22575fi
22576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22577fi
22578echo "$as_me:22578: result: $ac_cv_func_pthread_attr_setschedparam" >&5
22579echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
22580if test $ac_cv_func_pthread_attr_setschedparam = yes; then
22581 echo "$as_me:22581: checking for sched_get_priority_max" >&5
22582echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
22583if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22585else
22586 cat >conftest.$ac_ext <<_ACEOF
22587#line 22587 "configure"
422107f9 22588#include "confdefs.h"
009fead0
VZ
22589/* System header to define __stub macros and hopefully few prototypes
22590else
7b4a847f 22591 which can conflict with char sched_get_priority_max (); below. */
009fead0 22592#include <assert.h>
4f14bcd8 22593/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
22594#ifdef __cplusplus
22595extern "C"
22596#endif
4f14bcd8 22597/* We use char because int might match the return type of a gcc2
7b4a847f
RR
22598 builtin and then its argument prototype would still apply. */
22599char sched_get_priority_max ();
22600char (*f) ();
009fead0 22601
7b4a847f
RR
22602int
22603main ()
22604{
009fead0
VZ
22605/* The GNU C library defines this for functions which it implements
22606 to always fail with ENOSYS. Some functions are actually named
22607 something starting with __ and the normal name is an alias. */
22608#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
22609choke me
22610#else
7b4a847f 22611f = sched_get_priority_max;
009fead0
VZ
22612#endif
22613
7b4a847f
RR
22614 ;
22615 return 0;
22616}
22617_ACEOF
22618rm -f conftest.$ac_objext conftest$ac_exeext
22619if { (eval echo "$as_me:22619: \"$ac_link\"") >&5
22620 (eval $ac_link) 2>&5
22621 ac_status=$?
22622 echo "$as_me:22622: \$? = $ac_status" >&5
22623 (exit $ac_status); } &&
22624 { ac_try='test -s conftest$ac_exeext'
22625 { (eval echo "$as_me:22625: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
22628 echo "$as_me:22628: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 ac_cv_func_sched_get_priority_max=yes
22631else
22632 echo "$as_me: failed program was:" >&5
22633cat conftest.$ac_ext >&5
22634ac_cv_func_sched_get_priority_max=no
22635fi
22636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22637fi
22638echo "$as_me:22638: result: $ac_cv_func_sched_get_priority_max" >&5
22639echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
22640if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
22641 HAVE_PRIOR_FUNCS=1
22642else
7b4a847f
RR
22643 echo "$as_me:22643: checking for sched_get_priority_max in -lposix4" >&5
22644echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
22645if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
22646 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 22647else
7b4a847f 22648 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 22649LIBS="-lposix4 $LIBS"
7b4a847f
RR
22650cat >conftest.$ac_ext <<_ACEOF
22651#line 22651 "configure"
422107f9 22652#include "confdefs.h"
7b4a847f 22653
422107f9 22654/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
22655#ifdef __cplusplus
22656extern "C"
22657#endif
422107f9 22658/* We use char because int might match the return type of a gcc2
7b4a847f
RR
22659 builtin and then its argument prototype would still apply. */
22660char sched_get_priority_max ();
22661int
22662main ()
22663{
22664sched_get_priority_max ();
22665 ;
22666 return 0;
22667}
22668_ACEOF
22669rm -f conftest.$ac_objext conftest$ac_exeext
22670if { (eval echo "$as_me:22670: \"$ac_link\"") >&5
22671 (eval $ac_link) 2>&5
22672 ac_status=$?
22673 echo "$as_me:22673: \$? = $ac_status" >&5
22674 (exit $ac_status); } &&
22675 { ac_try='test -s conftest$ac_exeext'
22676 { (eval echo "$as_me:22676: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 echo "$as_me:22679: \$? = $ac_status" >&5
22680 (exit $ac_status); }; }; then
22681 ac_cv_lib_posix4_sched_get_priority_max=yes
22682else
22683 echo "$as_me: failed program was:" >&5
22684cat conftest.$ac_ext >&5
22685ac_cv_lib_posix4_sched_get_priority_max=no
22686fi
22687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22688LIBS=$ac_check_lib_save_LIBS
22689fi
22690echo "$as_me:22690: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
22691echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
22692if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 22693
7274f1c7
RL
22694 HAVE_PRIOR_FUNCS=1
22695 POSIX4_LINK=" -lposix4"
422107f9 22696
10f2d63a
VZ
22697fi
22698
4f14bcd8 22699fi
463abc64 22700
328a083c 22701fi
463abc64 22702
7b4a847f 22703fi
579d8138 22704
7274f1c7 22705 if test "$HAVE_PRIOR_FUNCS" = 1; then
7b4a847f 22706 cat >>confdefs.h <<\EOF
4f14bcd8 22707#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 22708EOF
463abc64 22709
7274f1c7 22710 else
7b4a847f
RR
22711 { echo "$as_me:22711: WARNING: Setting thread priority will not work" >&5
22712echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 22713 fi
463abc64 22714
7b4a847f
RR
22715 echo "$as_me:22715: checking for pthread_cancel" >&5
22716echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
22717if test "${ac_cv_func_pthread_cancel+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 22719else
7b4a847f
RR
22720 cat >conftest.$ac_ext <<_ACEOF
22721#line 22721 "configure"
422107f9 22722#include "confdefs.h"
009fead0 22723/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 22724 which can conflict with char pthread_cancel (); below. */
009fead0 22725#include <assert.h>
422107f9 22726/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
22727#ifdef __cplusplus
22728extern "C"
22729#endif
422107f9 22730/* We use char because int might match the return type of a gcc2
7b4a847f
RR
22731 builtin and then its argument prototype would still apply. */
22732char pthread_cancel ();
22733char (*f) ();
009fead0 22734
7b4a847f
RR
22735int
22736main ()
22737{
009fead0
VZ
22738/* The GNU C library defines this for functions which it implements
22739 to always fail with ENOSYS. Some functions are actually named
22740 something starting with __ and the normal name is an alias. */
22741#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
22742choke me
22743#else
7b4a847f 22744f = pthread_cancel;
009fead0
VZ
22745#endif
22746
7b4a847f
RR
22747 ;
22748 return 0;
22749}
22750_ACEOF
22751rm -f conftest.$ac_objext conftest$ac_exeext
22752if { (eval echo "$as_me:22752: \"$ac_link\"") >&5
22753 (eval $ac_link) 2>&5
22754 ac_status=$?
22755 echo "$as_me:22755: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
22757 { ac_try='test -s conftest$ac_exeext'
22758 { (eval echo "$as_me:22758: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:22761: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 ac_cv_func_pthread_cancel=yes
22764else
22765 echo "$as_me: failed program was:" >&5
22766cat conftest.$ac_ext >&5
22767ac_cv_func_pthread_cancel=no
22768fi
22769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22770fi
22771echo "$as_me:22771: result: $ac_cv_func_pthread_cancel" >&5
22772echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
22773if test $ac_cv_func_pthread_cancel = yes; then
22774 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22775#define HAVE_PTHREAD_CANCEL 1
22776EOF
22777
698dcdb6 22778else
7b4a847f
RR
22779 { echo "$as_me:22779: WARNING: wxThread::Kill() will not work properly" >&5
22780echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
22781fi
22782
7b4a847f
RR
22783 echo "$as_me:22783: checking for pthread_cleanup_push/pop" >&5
22784echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
22785if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
22786 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 22787else
7b4a847f
RR
22788
22789 cat >conftest.$ac_ext <<_ACEOF
22790#line 22790 "configure"
4f14bcd8
GD
22791#include "confdefs.h"
22792#include <pthread.h>
7b4a847f
RR
22793int
22794main ()
22795{
4f14bcd8 22796
7274f1c7
RL
22797 pthread_cleanup_push(NULL, NULL);
22798 pthread_cleanup_pop(0);
7b4a847f
RR
22799
22800 ;
22801 return 0;
22802}
22803_ACEOF
22804rm -f conftest.$ac_objext
22805if { (eval echo "$as_me:22805: \"$ac_compile\"") >&5
22806 (eval $ac_compile) 2>&5
22807 ac_status=$?
22808 echo "$as_me:22808: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
22810 { ac_try='test -s conftest.$ac_objext'
22811 { (eval echo "$as_me:22811: \"$ac_try\"") >&5
22812 (eval $ac_try) 2>&5
22813 ac_status=$?
22814 echo "$as_me:22814: \$? = $ac_status" >&5
22815 (exit $ac_status); }; }; then
22816
7274f1c7 22817 wx_cv_func_pthread_cleanup_push=yes
7b4a847f 22818
4f14bcd8 22819else
7b4a847f
RR
22820 echo "$as_me: failed program was:" >&5
22821cat conftest.$ac_ext >&5
22822
7274f1c7 22823 wx_cv_func_pthread_cleanup_push=no
7b4a847f 22824
328a083c 22825fi
7b4a847f 22826rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 22827
7b4a847f
RR
22828fi
22829echo "$as_me:22829: result: $wx_cv_func_pthread_cleanup_push" >&5
22830echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 22831
7274f1c7 22832 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
7b4a847f 22833 cat >>confdefs.h <<\EOF
4f14bcd8 22834#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
22835EOF
22836
7274f1c7 22837 fi
4f14bcd8 22838
7b4a847f
RR
22839 echo "$as_me:22839: checking for pthread_mutexattr_t" >&5
22840echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
22841if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
22842 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 22843else
7b4a847f
RR
22844
22845 cat >conftest.$ac_ext <<_ACEOF
22846#line 22846 "configure"
0dcf9893 22847#include "confdefs.h"
4f14bcd8 22848#include <pthread.h>
7b4a847f
RR
22849int
22850main ()
22851{
4f14bcd8 22852
7274f1c7
RL
22853 pthread_mutexattr_t attr;
22854 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
7b4a847f
RR
22855
22856 ;
22857 return 0;
22858}
22859_ACEOF
22860rm -f conftest.$ac_objext
22861if { (eval echo "$as_me:22861: \"$ac_compile\"") >&5
22862 (eval $ac_compile) 2>&5
22863 ac_status=$?
22864 echo "$as_me:22864: \$? = $ac_status" >&5
22865 (exit $ac_status); } &&
22866 { ac_try='test -s conftest.$ac_objext'
22867 { (eval echo "$as_me:22867: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 echo "$as_me:22870: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872
7274f1c7 22873 wx_cv_type_pthread_mutexattr_t=yes
7b4a847f 22874
3fed1840 22875else
7b4a847f
RR
22876 echo "$as_me: failed program was:" >&5
22877cat conftest.$ac_ext >&5
22878
7274f1c7 22879 wx_cv_type_pthread_mutexattr_t=no
7b4a847f 22880
328a083c 22881fi
7b4a847f 22882rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 22883
7b4a847f
RR
22884fi
22885echo "$as_me:22885: result: $wx_cv_type_pthread_mutexattr_t" >&5
22886echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 22887
7274f1c7 22888 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
7b4a847f 22889 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22890#define HAVE_PTHREAD_MUTEXATTR_T 1
22891EOF
22892
7274f1c7 22893 else
7b4a847f
RR
22894 echo "$as_me:22894: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
22895echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
22896if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22898else
22899
22900 cat >conftest.$ac_ext <<_ACEOF
22901#line 22901 "configure"
3fed1840 22902#include "confdefs.h"
4f14bcd8 22903#include <pthread.h>
7b4a847f
RR
22904int
22905main ()
22906{
4f14bcd8 22907
7274f1c7 22908 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
7b4a847f
RR
22909
22910 ;
22911 return 0;
22912}
22913_ACEOF
22914rm -f conftest.$ac_objext
22915if { (eval echo "$as_me:22915: \"$ac_compile\"") >&5
22916 (eval $ac_compile) 2>&5
22917 ac_status=$?
22918 echo "$as_me:22918: \$? = $ac_status" >&5
22919 (exit $ac_status); } &&
22920 { ac_try='test -s conftest.$ac_objext'
22921 { (eval echo "$as_me:22921: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22923 ac_status=$?
22924 echo "$as_me:22924: \$? = $ac_status" >&5
22925 (exit $ac_status); }; }; then
22926
7274f1c7 22927 wx_cv_type_pthread_rec_mutex_init=yes
7b4a847f 22928
698dcdb6 22929else
7b4a847f
RR
22930 echo "$as_me: failed program was:" >&5
22931cat conftest.$ac_ext >&5
22932
7274f1c7 22933 wx_cv_type_pthread_rec_mutex_init=no
7b4a847f 22934
328a083c 22935fi
7b4a847f 22936rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 22937
7b4a847f
RR
22938fi
22939echo "$as_me:22939: result: $wx_cv_type_pthread_rec_mutex_init" >&5
22940echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 22941 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
7b4a847f 22942 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22943#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
22944EOF
3fed1840 22945
7274f1c7 22946 else
7b4a847f
RR
22947 { echo "$as_me:22947: WARNING: wxMutex won't be recursive on this platform" >&5
22948echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
22949 fi
22950 fi
7274f1c7 22951 fi
3fed1840 22952
4f14bcd8
GD
22953fi
22954
22955if test "$wxUSE_THREADS" = "yes"; then
7b4a847f 22956 cat >>confdefs.h <<\EOF
4f14bcd8 22957#define wxUSE_THREADS 1
7b6058cd
GD
22958EOF
22959
4f14bcd8 22960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 22961else
4f14bcd8 22962 if test "$ac_cv_func_strtok_r" = "yes"; then
7b4a847f
RR
22963 echo "$as_me:22963: checking if -D_REENTRANT is needed" >&5
22964echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
22965 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
22966 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
7b4a847f
RR
22967 echo "$as_me:22967: result: yes" >&5
22968echo "${ECHO_T}yes" >&6
4f14bcd8 22969 else
7b4a847f
RR
22970 echo "$as_me:22970: result: no" >&5
22971echo "${ECHO_T}no" >&6
4f14bcd8
GD
22972 fi
22973 fi
22974fi
22975
22976if test "$WXGTK20" = 1 ; then
7b4a847f 22977 cat >>confdefs.h <<EOF
4f14bcd8 22978#define __WXGTK20__ $WXGTK20
698dcdb6 22979EOF
4f14bcd8
GD
22980
22981 WXGTK12=1
10f2d63a 22982fi
4f14bcd8
GD
22983
22984if test "$WXGTK12" = 1 ; then
7b4a847f 22985 cat >>confdefs.h <<EOF
4f14bcd8
GD
22986#define __WXGTK12__ $WXGTK12
22987EOF
22988
10f2d63a 22989fi
698dcdb6 22990
4f14bcd8 22991if test "$WXGTK127" = 1 ; then
7b4a847f 22992 cat >>confdefs.h <<EOF
4f14bcd8 22993#define __WXGTK127__ $WXGTK127
698dcdb6 22994EOF
4f14bcd8 22995
698dcdb6 22996fi
10f2d63a 22997
4f14bcd8
GD
22998WXDEBUG=
22999
23000if test "$wxUSE_DEBUG_INFO" = "yes" ; then
23001 WXDEBUG="-g"
23002 wxUSE_OPTIMISE=no
698dcdb6 23003fi
4f14bcd8
GD
23004
23005if test "$wxUSE_DEBUG_GDB" = "yes" ; then
23006 wxUSE_DEBUG_INFO=yes
23007 WXDEBUG="-ggdb"
10f2d63a
VZ
23008fi
23009
4f14bcd8 23010if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
7b4a847f 23011 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23012#define WXDEBUG 1
23013EOF
23014
23015 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 23016else
4f14bcd8
GD
23017 if test "$wxUSE_GTK" = 1 ; then
23018 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
23019 fi
23020fi
23021
23022if test "$wxUSE_MEM_TRACING" = "yes" ; then
7b4a847f 23023 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23024#define wxUSE_MEMORY_TRACING 1
23025EOF
23026
7b4a847f 23027 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23028#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
23029EOF
23030
7b4a847f 23031 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23032#define wxUSE_DEBUG_NEW_ALWAYS 1
23033EOF
23034
23035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
23036fi
23037
23038if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 23039 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
23040fi
23041
23042PROFILE=
23043if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 23044 PROFILE=" -pg"
10f2d63a
VZ
23045fi
23046
009fead0
VZ
23047CODE_GEN_FLAGS=
23048CODE_GEN_FLAGS_CXX=
88e30f2b 23049if test "$GCC" = "yes" ; then
4f14bcd8
GD
23050 if test "$wxUSE_NO_RTTI" = "yes" ; then
23051 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 23052 fi
4f14bcd8
GD
23053 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
23054 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
23055 fi
23056 if test "$wxUSE_PERMISSIVE" = "yes" ; then
23057 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
23058 fi
4f14bcd8
GD
23059 if test "$USE_WIN32" = 1 ; then
23060 # I'm not even really sure what this was ever added to solve,
23061 # but someone added it for mingw native builds, so I guess
23062 # they had a reason, right??
23063 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
23064 fi
1d1b75ac
VZ
23065
23066 case "${host}" in
23067 powerpc*-*-aix* )
23068 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
23069 ;;
23070 esac
4f14bcd8
GD
23071fi
23072
4f14bcd8
GD
23073if test "$wxUSE_OPTIMISE" = "no" ; then
23074 OPTIMISE=
23075else
23076 if test "$GCC" = yes ; then
23077 OPTIMISE="-O2"
23078 case "${host}" in
23079 i586-*-*|i686-*-* )
23080 OPTIMISE="${OPTIMISE} "
23081 ;;
23082 esac
23083 else
23084 OPTIMISE="-O"
23085 fi
23086fi
23087
23088if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
7b4a847f 23089 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23090#define WXWIN_COMPATIBILITY_2 1
23091EOF
23092
4f14bcd8
GD
23093 WXWIN_COMPATIBILITY_2_2="yes"
23094fi
23095
0c9a1c32 23096if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
7b4a847f 23097 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23098#define WXWIN_COMPATIBILITY_2_2 1
23099EOF
23100
10f2d63a
VZ
23101fi
23102
10f2d63a 23103if test "$wxUSE_GUI" = "yes"; then
7b4a847f 23104 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23105#define wxUSE_GUI 1
23106EOF
23107
10f2d63a 23108 else
7b4a847f 23109 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23110#define wxUSE_NOGUI 1
23111EOF
23112
23113fi
23114
10f2d63a 23115if test "$wxUSE_UNIX" = "yes"; then
7b4a847f 23116 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23117#define wxUSE_UNIX 1
23118EOF
23119
23120fi
23121
10f2d63a 23122if test "$wxUSE_APPLE_IEEE" = "yes"; then
7b4a847f 23123 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23124#define wxUSE_APPLE_IEEE 1
23125EOF
23126
23127fi
23128
1e6feb95 23129if test "$wxUSE_TIMER" = "yes"; then
7b4a847f 23130 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23131#define wxUSE_TIMER 1
23132EOF
23133
23134fi
23135
10f2d63a 23136if test "$wxUSE_WAVE" = "yes"; then
7b4a847f 23137 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23138#define wxUSE_WAVE 1
23139EOF
23140
23141fi
23142
1e6feb95 23143if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
7b4a847f 23144 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23145#define wxUSE_CMDLINE_PARSER 1
23146EOF
23147
23148fi
23149
23150if test "$wxUSE_STOPWATCH" = "yes"; then
7b4a847f 23151 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23152#define wxUSE_STOPWATCH 1
23153EOF
23154
23155fi
23156
23157if test "$wxUSE_DATETIME" = "yes"; then
7b4a847f 23158 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23159#define wxUSE_DATETIME 1
23160EOF
23161
23162fi
23163
23164if test "$wxUSE_TIMEDATE" = "yes"; then
7b4a847f 23165 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23166#define wxUSE_TIMEDATE 1
23167EOF
23168
23169fi
23170
10f2d63a 23171if test "$wxUSE_FILE" = "yes"; then
7b4a847f 23172 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23173#define wxUSE_FILE 1
23174EOF
23175
23176fi
23177
1e6feb95 23178if test "$wxUSE_FFILE" = "yes"; then
7b4a847f 23179 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23180#define wxUSE_FFILE 1
23181EOF
23182
23183fi
23184
24528b0c 23185if test "$wxUSE_FILESYSTEM" = "yes"; then
7b4a847f 23186 cat >>confdefs.h <<\EOF
24528b0c
VS
23187#define wxUSE_FILESYSTEM 1
23188EOF
23189
23190fi
23191
10f2d63a 23192if test "$wxUSE_FS_INET" = "yes"; then
7b4a847f 23193 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23194#define wxUSE_FS_INET 1
23195EOF
23196
23197fi
23198
23199if test "$wxUSE_FS_ZIP" = "yes"; then
7b4a847f 23200 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23201#define wxUSE_FS_ZIP 1
23202EOF
23203
23204fi
23205
23206if test "$wxUSE_ZIPSTREAM" = "yes"; then
7b4a847f 23207 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23208#define wxUSE_ZIPSTREAM 1
23209EOF
23210
23211fi
23212
eb4efbdc 23213if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
7b4a847f 23214 cat >>confdefs.h <<\EOF
eb4efbdc
VZ
23215#define wxUSE_ON_FATAL_EXCEPTION 1
23216EOF
23217
23218fi
23219
4f3c5f06 23220if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
7b4a847f 23221 cat >>confdefs.h <<\EOF
4f3c5f06
VZ
23222#define wxUSE_SNGLINST_CHECKER 1
23223EOF
23224
23225fi
23226
10f2d63a 23227if test "$wxUSE_BUSYINFO" = "yes"; then
7b4a847f 23228 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23229#define wxUSE_BUSYINFO 1
23230EOF
23231
23232fi
23233
23234if test "$wxUSE_STD_IOSTREAM" = "yes"; then
7b4a847f 23235 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23236#define wxUSE_STD_IOSTREAM 1
23237EOF
23238
23239fi
23240
a3a584a7 23241if test "$wxUSE_TEXTBUFFER" = "yes"; then
7b4a847f 23242 cat >>confdefs.h <<\EOF
a3a584a7
VZ
23243#define wxUSE_TEXTBUFFER 1
23244EOF
23245
23246fi
23247
10f2d63a 23248if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 23249 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
7b4a847f
RR
23250 { echo "$as_me:23250: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
23251echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 23252 else
7b4a847f 23253 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23254#define wxUSE_TEXTFILE 1
23255EOF
23256
23257 fi
23258fi
23259
23260if test "$wxUSE_CONFIG" = "yes" ; then
23261 if test "$wxUSE_TEXTFILE" != "yes"; then
7b4a847f
RR
23262 { echo "$as_me:23262: WARNING: wxConfig requires wxTextFile... disabled" >&5
23263echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 23264 else
7b4a847f 23265 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23266#define wxUSE_CONFIG 1
23267EOF
23268
23269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
23270 fi
23271fi
23272
23273if test "$wxUSE_INTL" = "yes" ; then
23274 if test "$wxUSE_FILE" != "yes"; then
7b4a847f
RR
23275 { echo "$as_me:23275: WARNING: I18n code requires wxFile... disabled" >&5
23276echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 23277 else
7b4a847f 23278 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23279#define wxUSE_INTL 1
23280EOF
23281
23282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 23283 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
23284 fi
23285fi
23286
23287if test "$wxUSE_LOG" = "yes"; then
7b4a847f 23288 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23289#define wxUSE_LOG 1
23290EOF
23291
d73be714 23292 if test "$wxUSE_LOGGUI" = "yes"; then
7b4a847f 23293 cat >>confdefs.h <<\EOF
d73be714
VZ
23294#define wxUSE_LOGGUI 1
23295EOF
23296
23297 fi
23298
23299 if test "$wxUSE_LOGWINDOW" = "yes"; then
7b4a847f 23300 cat >>confdefs.h <<\EOF
d73be714 23301#define wxUSE_LOGWINDOW 1
69d27ff7
MB
23302EOF
23303
23304 fi
23305
23306 if test "$wxUSE_LOGDIALOG" = "yes"; then
7b4a847f 23307 cat >>confdefs.h <<\EOF
69d27ff7 23308#define wxUSE_LOG_DIALOG 1
d73be714
VZ
23309EOF
23310
23311 fi
10f2d63a
VZ
23312fi
23313
23314if test "$wxUSE_LONGLONG" = "yes"; then
7b4a847f 23315 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23316#define wxUSE_LONGLONG 1
23317EOF
23318
23319fi
23320
e8f65ba6 23321if test "$wxUSE_GEOMETRY" = "yes"; then
7b4a847f 23322 cat >>confdefs.h <<\EOF
e8f65ba6
RR
23323#define wxUSE_GEOMETRY 1
23324EOF
23325
23326fi
23327
10f2d63a 23328if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
7b4a847f 23329 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23330#define wxUSE_DIALUP_MANAGER 1
23331EOF
23332
70f7a477 23333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
23334fi
23335
23336if test "$wxUSE_STREAMS" = "yes" ; then
7b4a847f 23337 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23338#define wxUSE_STREAMS 1
23339EOF
23340
23341fi
23342
579d8138 23343if test "$wxUSE_DATETIME" = "yes"; then
7b4a847f
RR
23344
23345for ac_func in strptime
83307f33 23346do
7b4a847f
RR
23347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23348echo "$as_me:23348: checking for $ac_func" >&5
23349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23350if eval "test \"\${$as_ac_var+set}\" = set"; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23352else
23353 cat >conftest.$ac_ext <<_ACEOF
23354#line 23354 "configure"
83307f33
VZ
23355#include "confdefs.h"
23356/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 23357 which can conflict with char $ac_func (); below. */
83307f33
VZ
23358#include <assert.h>
23359/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
23360#ifdef __cplusplus
23361extern "C"
23362#endif
83307f33 23363/* We use char because int might match the return type of a gcc2
7b4a847f
RR
23364 builtin and then its argument prototype would still apply. */
23365char $ac_func ();
23366char (*f) ();
83307f33 23367
7b4a847f
RR
23368int
23369main ()
23370{
83307f33
VZ
23371/* The GNU C library defines this for functions which it implements
23372 to always fail with ENOSYS. Some functions are actually named
23373 something starting with __ and the normal name is an alias. */
23374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23375choke me
23376#else
7b4a847f 23377f = $ac_func;
83307f33
VZ
23378#endif
23379
7b4a847f
RR
23380 ;
23381 return 0;
23382}
23383_ACEOF
23384rm -f conftest.$ac_objext conftest$ac_exeext
23385if { (eval echo "$as_me:23385: \"$ac_link\"") >&5
23386 (eval $ac_link) 2>&5
23387 ac_status=$?
23388 echo "$as_me:23388: \$? = $ac_status" >&5
23389 (exit $ac_status); } &&
23390 { ac_try='test -s conftest$ac_exeext'
23391 { (eval echo "$as_me:23391: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 echo "$as_me:23394: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
23396 eval "$as_ac_var=yes"
23397else
23398 echo "$as_me: failed program was:" >&5
23399cat conftest.$ac_ext >&5
23400eval "$as_ac_var=no"
23401fi
23402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23403fi
23404echo "$as_me:23404: result: `eval echo '${'$as_ac_var'}'`" >&5
23405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23406if test `eval echo '${'$as_ac_var'}'` = yes; then
23407 cat >>confdefs.h <<EOF
23408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
83307f33 23409EOF
83307f33 23410
83307f33
VZ
23411fi
23412done
23413
7b4a847f
RR
23414 echo "$as_me:23414: checking for timezone variable in <time.h>" >&5
23415echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
23416if test "${wx_cv_var_timezone+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
579d8138 23418else
7b4a847f
RR
23419
23420 cat >conftest.$ac_ext <<_ACEOF
23421#line 23421 "configure"
360d6699
VZ
23422#include "confdefs.h"
23423
b4085ce6 23424 #include <time.h>
7b4a847f
RR
23425
23426int
23427main ()
23428{
360d6699
VZ
23429
23430 int tz;
4f11a343 23431 tz = timezone;
7b4a847f
RR
23432
23433 ;
23434 return 0;
23435}
23436_ACEOF
23437rm -f conftest.$ac_objext
23438if { (eval echo "$as_me:23438: \"$ac_compile\"") >&5
23439 (eval $ac_compile) 2>&5
23440 ac_status=$?
23441 echo "$as_me:23441: \$? = $ac_status" >&5
23442 (exit $ac_status); } &&
23443 { ac_try='test -s conftest.$ac_objext'
23444 { (eval echo "$as_me:23444: \"$ac_try\"") >&5
23445 (eval $ac_try) 2>&5
23446 ac_status=$?
23447 echo "$as_me:23447: \$? = $ac_status" >&5
23448 (exit $ac_status); }; }; then
23449
4f11a343 23450 wx_cv_var_timezone=timezone
7b4a847f 23451
360d6699 23452else
7b4a847f
RR
23453 echo "$as_me: failed program was:" >&5
23454cat conftest.$ac_ext >&5
23455
23456 cat >conftest.$ac_ext <<_ACEOF
23457#line 23457 "configure"
360d6699
VZ
23458#include "confdefs.h"
23459
b4085ce6 23460 #include <time.h>
7b4a847f
RR
23461
23462int
23463main ()
23464{
360d6699
VZ
23465
23466 int tz;
23467 tz = _timezone;
7b4a847f
RR
23468
23469 ;
23470 return 0;
23471}
23472_ACEOF
23473rm -f conftest.$ac_objext
23474if { (eval echo "$as_me:23474: \"$ac_compile\"") >&5
23475 (eval $ac_compile) 2>&5
23476 ac_status=$?
23477 echo "$as_me:23477: \$? = $ac_status" >&5
23478 (exit $ac_status); } &&
23479 { ac_try='test -s conftest.$ac_objext'
23480 { (eval echo "$as_me:23480: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 echo "$as_me:23483: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485
360d6699 23486 wx_cv_var_timezone=_timezone
7b4a847f 23487
5357c8e8 23488else
7b4a847f
RR
23489 echo "$as_me: failed program was:" >&5
23490cat conftest.$ac_ext >&5
23491
23492 cat >conftest.$ac_ext <<_ACEOF
23493#line 23493 "configure"
5357c8e8
VZ
23494#include "confdefs.h"
23495
b4085ce6 23496 #include <time.h>
7b4a847f
RR
23497
23498int
23499main ()
23500{
5357c8e8
VZ
23501
23502 int tz;
4f11a343 23503 tz = __timezone;
7b4a847f
RR
23504
23505 ;
23506 return 0;
23507}
23508_ACEOF
23509rm -f conftest.$ac_objext
23510if { (eval echo "$as_me:23510: \"$ac_compile\"") >&5
23511 (eval $ac_compile) 2>&5
23512 ac_status=$?
23513 echo "$as_me:23513: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
23515 { ac_try='test -s conftest.$ac_objext'
23516 { (eval echo "$as_me:23516: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23518 ac_status=$?
23519 echo "$as_me:23519: \$? = $ac_status" >&5
23520 (exit $ac_status); }; }; then
23521
4f11a343 23522 wx_cv_var_timezone=__timezone
7b4a847f 23523
360d6699 23524else
7b4a847f
RR
23525 echo "$as_me: failed program was:" >&5
23526cat conftest.$ac_ext >&5
23527
f9bc1684 23528 if test "$USE_DOS" = 0 ; then
7b4a847f
RR
23529 { echo "$as_me:23529: WARNING: no timezone variable" >&5
23530echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 23531 fi
7b4a847f 23532
6232543b 23533fi
7b4a847f
RR
23534rm -f conftest.$ac_objext conftest.$ac_ext
23535
1e487827 23536fi
7b4a847f
RR
23537rm -f conftest.$ac_objext conftest.$ac_ext
23538
328a083c 23539fi
7b4a847f 23540rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 23541
7b4a847f
RR
23542fi
23543echo "$as_me:23543: result: $wx_cv_var_timezone" >&5
23544echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 23545
f9bc1684 23546 if test "x$wx_cv_var_timezone" != x ; then
7b4a847f 23547 cat >>confdefs.h <<EOF
360d6699
VZ
23548#define WX_TIMEZONE $wx_cv_var_timezone
23549EOF
23550
f9bc1684 23551 fi
698dcdb6 23552
7b4a847f 23553for ac_func in localtime
afc31813 23554do
7b4a847f
RR
23555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23556echo "$as_me:23556: checking for $ac_func" >&5
23557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23558if eval "test \"\${$as_ac_var+set}\" = set"; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560else
23561 cat >conftest.$ac_ext <<_ACEOF
23562#line 23562 "configure"
10f2d63a 23563#include "confdefs.h"
afc31813 23564/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 23565 which can conflict with char $ac_func (); below. */
afc31813
VZ
23566#include <assert.h>
23567/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
23568#ifdef __cplusplus
23569extern "C"
23570#endif
afc31813 23571/* We use char because int might match the return type of a gcc2
7b4a847f
RR
23572 builtin and then its argument prototype would still apply. */
23573char $ac_func ();
23574char (*f) ();
afc31813 23575
7b4a847f
RR
23576int
23577main ()
23578{
afc31813
VZ
23579/* The GNU C library defines this for functions which it implements
23580 to always fail with ENOSYS. Some functions are actually named
23581 something starting with __ and the normal name is an alias. */
23582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23583choke me
23584#else
7b4a847f 23585f = $ac_func;
afc31813
VZ
23586#endif
23587
7b4a847f
RR
23588 ;
23589 return 0;
23590}
23591_ACEOF
23592rm -f conftest.$ac_objext conftest$ac_exeext
23593if { (eval echo "$as_me:23593: \"$ac_link\"") >&5
23594 (eval $ac_link) 2>&5
23595 ac_status=$?
23596 echo "$as_me:23596: \$? = $ac_status" >&5
23597 (exit $ac_status); } &&
23598 { ac_try='test -s conftest$ac_exeext'
23599 { (eval echo "$as_me:23599: \"$ac_try\"") >&5
23600 (eval $ac_try) 2>&5
23601 ac_status=$?
23602 echo "$as_me:23602: \$? = $ac_status" >&5
23603 (exit $ac_status); }; }; then
23604 eval "$as_ac_var=yes"
23605else
23606 echo "$as_me: failed program was:" >&5
23607cat conftest.$ac_ext >&5
23608eval "$as_ac_var=no"
23609fi
23610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23611fi
23612echo "$as_me:23612: result: `eval echo '${'$as_ac_var'}'`" >&5
23613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23614if test `eval echo '${'$as_ac_var'}'` = yes; then
23615 cat >>confdefs.h <<EOF
23616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10f2d63a 23617EOF
afc31813 23618
afc31813
VZ
23619fi
23620done
23621
579d8138 23622 if test "$ac_cv_func_localtime" = "yes"; then
7b4a847f
RR
23623 echo "$as_me:23623: checking for tm_gmtoff in struct tm" >&5
23624echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
23625if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627else
23628
23629 cat >conftest.$ac_ext <<_ACEOF
23630#line 23630 "configure"
0470b1e6
VZ
23631#include "confdefs.h"
23632
b4085ce6 23633 #include <time.h>
7b4a847f
RR
23634
23635int
23636main ()
23637{
0470b1e6
VZ
23638
23639 struct tm tm;
23640 tm.tm_gmtoff++;
7b4a847f
RR
23641
23642 ;
23643 return 0;
23644}
23645_ACEOF
23646rm -f conftest.$ac_objext
23647if { (eval echo "$as_me:23647: \"$ac_compile\"") >&5
23648 (eval $ac_compile) 2>&5
23649 ac_status=$?
23650 echo "$as_me:23650: \$? = $ac_status" >&5
23651 (exit $ac_status); } &&
23652 { ac_try='test -s conftest.$ac_objext'
23653 { (eval echo "$as_me:23653: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23655 ac_status=$?
23656 echo "$as_me:23656: \$? = $ac_status" >&5
23657 (exit $ac_status); }; }; then
23658
f03a98d8 23659 wx_cv_struct_tm_has_gmtoff=yes
7b4a847f 23660
0470b1e6 23661else
7b4a847f
RR
23662 echo "$as_me: failed program was:" >&5
23663cat conftest.$ac_ext >&5
23664wx_cv_struct_tm_has_gmtoff=no
23665
328a083c 23666fi
7b4a847f 23667rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 23668
7b4a847f
RR
23669fi
23670echo "$as_me:23670: result: $wx_cv_struct_tm_has_gmtoff" >&5
23671echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
23672 fi
23673
23674 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
7b4a847f 23675 cat >>confdefs.h <<\EOF
6232543b
VS
23676#define WX_GMTOFF_IN_TM 1
23677EOF
0470b1e6 23678
3fcdd07b
VZ
23679 fi
23680
7b4a847f 23681for ac_func in gettimeofday ftime
3fcdd07b 23682do
7b4a847f
RR
23683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23684echo "$as_me:23684: checking for $ac_func" >&5
23685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23686if eval "test \"\${$as_ac_var+set}\" = set"; then
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23688else
23689 cat >conftest.$ac_ext <<_ACEOF
23690#line 23690 "configure"
3fcdd07b
VZ
23691#include "confdefs.h"
23692/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 23693 which can conflict with char $ac_func (); below. */
3fcdd07b
VZ
23694#include <assert.h>
23695/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
23696#ifdef __cplusplus
23697extern "C"
23698#endif
3fcdd07b 23699/* We use char because int might match the return type of a gcc2
7b4a847f
RR
23700 builtin and then its argument prototype would still apply. */
23701char $ac_func ();
23702char (*f) ();
3fcdd07b 23703
7b4a847f
RR
23704int
23705main ()
23706{
3fcdd07b
VZ
23707/* The GNU C library defines this for functions which it implements
23708 to always fail with ENOSYS. Some functions are actually named
23709 something starting with __ and the normal name is an alias. */
23710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23711choke me
23712#else
7b4a847f 23713f = $ac_func;
3fcdd07b
VZ
23714#endif
23715
7b4a847f
RR
23716 ;
23717 return 0;
23718}
23719_ACEOF
23720rm -f conftest.$ac_objext conftest$ac_exeext
23721if { (eval echo "$as_me:23721: \"$ac_link\"") >&5
23722 (eval $ac_link) 2>&5
23723 ac_status=$?
23724 echo "$as_me:23724: \$? = $ac_status" >&5
23725 (exit $ac_status); } &&
23726 { ac_try='test -s conftest$ac_exeext'
23727 { (eval echo "$as_me:23727: \"$ac_try\"") >&5
23728 (eval $ac_try) 2>&5
23729 ac_status=$?
23730 echo "$as_me:23730: \$? = $ac_status" >&5
23731 (exit $ac_status); }; }; then
23732 eval "$as_ac_var=yes"
23733else
23734 echo "$as_me: failed program was:" >&5
23735cat conftest.$ac_ext >&5
23736eval "$as_ac_var=no"
23737fi
23738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23739fi
23740echo "$as_me:23740: result: `eval echo '${'$as_ac_var'}'`" >&5
23741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23742if test `eval echo '${'$as_ac_var'}'` = yes; then
23743 cat >>confdefs.h <<EOF
23744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3fcdd07b
VZ
23745EOF
23746 break
3fcdd07b
VZ
23747fi
23748done
23749
579d8138 23750 if test "$ac_cv_func_gettimeofday" = "yes"; then
7b4a847f
RR
23751 echo "$as_me:23751: checking whether gettimeofday takes two arguments" >&5
23752echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
23753if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23755else
579d8138 23756
7b4a847f
RR
23757 ac_ext=cc
23758ac_cpp='$CXXCPP $CPPFLAGS'
23759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
698dcdb6 23762
7b4a847f
RR
23763 cat >conftest.$ac_ext <<_ACEOF
23764#line 23764 "configure"
10f2d63a 23765#include "confdefs.h"
afc31813
VZ
23766
23767 #include <sys/time.h>
23768 #include <unistd.h>
7b4a847f
RR
23769
23770int
23771main ()
23772{
afc31813
VZ
23773
23774 struct timeval tv;
776862b4 23775 gettimeofday(&tv, NULL);
7b4a847f
RR
23776
23777 ;
23778 return 0;
23779}
23780_ACEOF
23781rm -f conftest.$ac_objext
23782if { (eval echo "$as_me:23782: \"$ac_compile\"") >&5
23783 (eval $ac_compile) 2>&5
23784 ac_status=$?
23785 echo "$as_me:23785: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
23787 { ac_try='test -s conftest.$ac_objext'
23788 { (eval echo "$as_me:23788: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23790 ac_status=$?
23791 echo "$as_me:23791: \$? = $ac_status" >&5
23792 (exit $ac_status); }; }; then
afc31813 23793 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 23794else
7b4a847f
RR
23795 echo "$as_me: failed program was:" >&5
23796cat conftest.$ac_ext >&5
23797cat >conftest.$ac_ext <<_ACEOF
23798#line 23798 "configure"
10f2d63a 23799#include "confdefs.h"
afc31813
VZ
23800
23801 #include <sys/time.h>
23802 #include <unistd.h>
7b4a847f
RR
23803
23804int
23805main ()
23806{
afc31813
VZ
23807
23808 struct timeval tv;
23809 gettimeofday(&tv);
7b4a847f
RR
23810
23811 ;
23812 return 0;
23813}
23814_ACEOF
23815rm -f conftest.$ac_objext
23816if { (eval echo "$as_me:23816: \"$ac_compile\"") >&5
23817 (eval $ac_compile) 2>&5
23818 ac_status=$?
23819 echo "$as_me:23819: \$? = $ac_status" >&5
23820 (exit $ac_status); } &&
23821 { ac_try='test -s conftest.$ac_objext'
23822 { (eval echo "$as_me:23822: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:23825: \$? = $ac_status" >&5
23826 (exit $ac_status); }; }; then
afc31813 23827 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 23828else
7b4a847f
RR
23829 echo "$as_me: failed program was:" >&5
23830cat conftest.$ac_ext >&5
23831
23832 { echo "$as_me:23832: WARNING: failed to determine number of gettimeofday() arguments" >&5
23833echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 23834 wx_cv_func_gettimeofday_has_2_args=unknown
7b4a847f 23835
10f2d63a 23836fi
7b4a847f
RR
23837rm -f conftest.$ac_objext conftest.$ac_ext
23838
10f2d63a 23839fi
7b4a847f 23840rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 23841 ac_ext=c
10f2d63a 23842ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
23843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23845ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 23846
afc31813 23847fi
7b4a847f
RR
23848echo "$as_me:23848: result: $wx_cv_func_gettimeofday_has_2_args" >&5
23849echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 23850
afc31813 23851 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
7b4a847f 23852 cat >>confdefs.h <<\EOF
afc31813
VZ
23853#define WX_GETTIMEOFDAY_NO_TZ 1
23854EOF
23855
23856 fi
23857 fi
23858
7b4a847f 23859 cat >>confdefs.h <<\EOF
afc31813
VZ
23860#define wxUSE_TIMEDATE 1
23861EOF
23862
23863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
23864fi
23865
0feee163 23866if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 23867 if test "$wxUSE_X11" = "1"; then
7b4a847f
RR
23868 { echo "$as_me:23868: WARNING: wxSocket not yet supported under X11... disabled" >&5
23869echo "$as_me: WARNING: wxSocket not yet supported under X11... disabled" >&2;}
0feee163
VZ
23870 wxUSE_SOCKETS="no"
23871 fi
6c657b52
VS
23872
23873 if test "$wxUSE_MGL" = "1"; then
7b4a847f
RR
23874 { echo "$as_me:23874: WARNING: wxSocket not yet supported under MGL... disabled" >&5
23875echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
23876 wxUSE_SOCKETS="no"
23877 fi
0feee163 23878fi
b089607b 23879
0feee163
VZ
23880if test "$wxUSE_SOCKETS" = "yes"; then
23881 if test "$TOOLKIT" != "MSW"; then
7b4a847f
RR
23882 echo "$as_me:23882: checking for socket" >&5
23883echo $ECHO_N "checking for socket... $ECHO_C" >&6
23884if test "${ac_cv_func_socket+set}" = set; then
23885 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 23886else
7b4a847f
RR
23887 cat >conftest.$ac_ext <<_ACEOF
23888#line 23888 "configure"
c63c7106
VZ
23889#include "confdefs.h"
23890/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 23891 which can conflict with char socket (); below. */
c63c7106
VZ
23892#include <assert.h>
23893/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
23894#ifdef __cplusplus
23895extern "C"
23896#endif
c63c7106 23897/* We use char because int might match the return type of a gcc2
7b4a847f
RR
23898 builtin and then its argument prototype would still apply. */
23899char socket ();
23900char (*f) ();
c63c7106 23901
7b4a847f
RR
23902int
23903main ()
23904{
c63c7106
VZ
23905/* The GNU C library defines this for functions which it implements
23906 to always fail with ENOSYS. Some functions are actually named
23907 something starting with __ and the normal name is an alias. */
23908#if defined (__stub_socket) || defined (__stub___socket)
23909choke me
23910#else
7b4a847f 23911f = socket;
c63c7106
VZ
23912#endif
23913
7b4a847f
RR
23914 ;
23915 return 0;
23916}
23917_ACEOF
23918rm -f conftest.$ac_objext conftest$ac_exeext
23919if { (eval echo "$as_me:23919: \"$ac_link\"") >&5
23920 (eval $ac_link) 2>&5
23921 ac_status=$?
23922 echo "$as_me:23922: \$? = $ac_status" >&5
23923 (exit $ac_status); } &&
23924 { ac_try='test -s conftest$ac_exeext'
23925 { (eval echo "$as_me:23925: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 echo "$as_me:23928: \$? = $ac_status" >&5
23929 (exit $ac_status); }; }; then
23930 ac_cv_func_socket=yes
23931else
23932 echo "$as_me: failed program was:" >&5
23933cat conftest.$ac_ext >&5
23934ac_cv_func_socket=no
23935fi
23936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23937fi
23938echo "$as_me:23938: result: $ac_cv_func_socket" >&5
23939echo "${ECHO_T}$ac_cv_func_socket" >&6
23940if test $ac_cv_func_socket = yes; then
c63c7106
VZ
23941 :
23942else
7b4a847f
RR
23943 echo "$as_me:23943: checking for socket in -lsocket" >&5
23944echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
23945if test "${ac_cv_lib_socket_socket+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 23947else
7b4a847f 23948 ac_check_lib_save_LIBS=$LIBS
c63c7106 23949LIBS="-lsocket $LIBS"
7b4a847f
RR
23950cat >conftest.$ac_ext <<_ACEOF
23951#line 23951 "configure"
c63c7106 23952#include "confdefs.h"
7b4a847f 23953
c63c7106 23954/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
23955#ifdef __cplusplus
23956extern "C"
23957#endif
c63c7106 23958/* We use char because int might match the return type of a gcc2
7b4a847f
RR
23959 builtin and then its argument prototype would still apply. */
23960char socket ();
23961int
23962main ()
23963{
23964socket ();
23965 ;
23966 return 0;
23967}
23968_ACEOF
23969rm -f conftest.$ac_objext conftest$ac_exeext
23970if { (eval echo "$as_me:23970: \"$ac_link\"") >&5
23971 (eval $ac_link) 2>&5
23972 ac_status=$?
23973 echo "$as_me:23973: \$? = $ac_status" >&5
23974 (exit $ac_status); } &&
23975 { ac_try='test -s conftest$ac_exeext'
23976 { (eval echo "$as_me:23976: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 echo "$as_me:23979: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 ac_cv_lib_socket_socket=yes
23982else
23983 echo "$as_me: failed program was:" >&5
23984cat conftest.$ac_ext >&5
23985ac_cv_lib_socket_socket=no
23986fi
23987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23988LIBS=$ac_check_lib_save_LIBS
23989fi
23990echo "$as_me:23990: result: $ac_cv_lib_socket_socket" >&5
23991echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
23992if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
23993 if test "$INET_LINK" != " -lsocket"; then
23994 INET_LINK="$INET_LINK -lsocket"
23995 fi
c63c7106 23996else
afc31813 23997
7b4a847f
RR
23998 { echo "$as_me:23998: WARNING: socket library not found - sockets will be disabled" >&5
23999echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 24000 wxUSE_SOCKETS=no
7b4a847f 24001
6232543b 24002fi
b089607b 24003
1e487827 24004fi
afc31813 24005
3a922bb4 24006 fi
0feee163 24007fi
51a9faba 24008
0feee163
VZ
24009if test "$wxUSE_SOCKETS" = "yes" ; then
24010 if test "$TOOLKIT" != "MSW"; then
7b4a847f
RR
24011 echo "$as_me:24011: checking what is the type of the third argument of getsockname" >&5
24012echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
24013if test "${wx_cv_type_getsockname3+set}" = set; then
24014 echo $ECHO_N "(cached) $ECHO_C" >&6
24015else
579d8138 24016
7b4a847f
RR
24017 ac_ext=cc
24018ac_cpp='$CXXCPP $CPPFLAGS'
24019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
698dcdb6 24022
7b4a847f
RR
24023 cat >conftest.$ac_ext <<_ACEOF
24024#line 24024 "configure"
afc31813 24025#include "confdefs.h"
51a9faba 24026
3a922bb4
RL
24027 #include <sys/types.h>
24028 #include <sys/socket.h>
7b4a847f
RR
24029
24030int
24031main ()
24032{
51a9faba 24033
3a922bb4
RL
24034 socklen_t len;
24035 getsockname(0, 0, &len);
7b4a847f
RR
24036
24037 ;
24038 return 0;
24039}
24040_ACEOF
24041rm -f conftest.$ac_objext
24042if { (eval echo "$as_me:24042: \"$ac_compile\"") >&5
24043 (eval $ac_compile) 2>&5
24044 ac_status=$?
24045 echo "$as_me:24045: \$? = $ac_status" >&5
24046 (exit $ac_status); } &&
24047 { ac_try='test -s conftest.$ac_objext'
24048 { (eval echo "$as_me:24048: \"$ac_try\"") >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 echo "$as_me:24051: \$? = $ac_status" >&5
24052 (exit $ac_status); }; }; then
51a9faba 24053 wx_cv_type_getsockname3=socklen_t
afc31813 24054else
7b4a847f
RR
24055 echo "$as_me: failed program was:" >&5
24056cat conftest.$ac_ext >&5
24057cat >conftest.$ac_ext <<_ACEOF
24058#line 24058 "configure"
afc31813 24059#include "confdefs.h"
51a9faba 24060
3a922bb4
RL
24061 #include <sys/types.h>
24062 #include <sys/socket.h>
7b4a847f
RR
24063
24064int
24065main ()
24066{
51a9faba 24067
3a922bb4
RL
24068 size_t len;
24069 getsockname(0, 0, &len);
7b4a847f
RR
24070
24071 ;
24072 return 0;
24073}
24074_ACEOF
24075rm -f conftest.$ac_objext
24076if { (eval echo "$as_me:24076: \"$ac_compile\"") >&5
24077 (eval $ac_compile) 2>&5
24078 ac_status=$?
24079 echo "$as_me:24079: \$? = $ac_status" >&5
24080 (exit $ac_status); } &&
24081 { ac_try='test -s conftest.$ac_objext'
24082 { (eval echo "$as_me:24082: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 echo "$as_me:24085: \$? = $ac_status" >&5
24086 (exit $ac_status); }; }; then
51a9faba 24087 wx_cv_type_getsockname3=size_t
afc31813 24088else
7b4a847f
RR
24089 echo "$as_me: failed program was:" >&5
24090cat conftest.$ac_ext >&5
24091cat >conftest.$ac_ext <<_ACEOF
24092#line 24092 "configure"
afc31813 24093#include "confdefs.h"
51a9faba 24094
3a922bb4
RL
24095 #include <sys/types.h>
24096 #include <sys/socket.h>
7b4a847f
RR
24097
24098int
24099main ()
24100{
51a9faba 24101
3a922bb4
RL
24102 int len;
24103 getsockname(0, 0, &len);
7b4a847f
RR
24104
24105 ;
24106 return 0;
24107}
24108_ACEOF
24109rm -f conftest.$ac_objext
24110if { (eval echo "$as_me:24110: \"$ac_compile\"") >&5
24111 (eval $ac_compile) 2>&5
24112 ac_status=$?
24113 echo "$as_me:24113: \$? = $ac_status" >&5
24114 (exit $ac_status); } &&
24115 { ac_try='test -s conftest.$ac_objext'
24116 { (eval echo "$as_me:24116: \"$ac_try\"") >&5
24117 (eval $ac_try) 2>&5
24118 ac_status=$?
24119 echo "$as_me:24119: \$? = $ac_status" >&5
24120 (exit $ac_status); }; }; then
51a9faba 24121 wx_cv_type_getsockname3=int
afc31813 24122else
7b4a847f
RR
24123 echo "$as_me: failed program was:" >&5
24124cat conftest.$ac_ext >&5
24125wx_cv_type_getsockname3=unknown
24126
afc31813 24127fi
7b4a847f
RR
24128rm -f conftest.$ac_objext conftest.$ac_ext
24129
afc31813 24130fi
7b4a847f
RR
24131rm -f conftest.$ac_objext conftest.$ac_ext
24132
afc31813 24133fi
7b4a847f 24134rm -f conftest.$ac_objext conftest.$ac_ext
51a9faba 24135
3a922bb4 24136 ac_ext=c
afc31813 24137ac_cpp='$CPP $CPPFLAGS'
7b4a847f
RR
24138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24140ac_compiler_gnu=$ac_cv_c_compiler_gnu
afc31813 24141
51a9faba 24142fi
7b4a847f
RR
24143echo "$as_me:24143: result: $wx_cv_type_getsockname3" >&5
24144echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 24145
3a922bb4
RL
24146 if test "$wx_cv_type_getsockname3" = "unknown"; then
24147 wxUSE_SOCKETS=no
7b4a847f
RR
24148 { echo "$as_me:24148: WARNING: Couldn't find socklen_t synonym for this system" >&5
24149echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 24150 else
7b4a847f 24151 cat >>confdefs.h <<EOF
51a9faba
VZ
24152#define SOCKLEN_T $wx_cv_type_getsockname3
24153EOF
24154
3a922bb4 24155 fi
51a9faba
VZ
24156 fi
24157fi
afc31813 24158
51a9faba 24159if test "$wxUSE_SOCKETS" = "yes" ; then
7b4a847f 24160 cat >>confdefs.h <<\EOF
afc31813
VZ
24161#define wxUSE_SOCKETS 1
24162EOF
24163
70f7a477 24164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
24165fi
24166
dc3d889d
VZ
24167if test "$wxUSE_GUI" = "yes"; then
24168
156b2523 24169 if test "$TOOLKIT" = "MAC"; then
7b4a847f
RR
24170 { echo "$as_me:24170: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
24171echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
24172 wxUSE_JOYSTICK=no
24173 fi
24174 if test "$TOOLKIT" = "MOTIF"; then
7b4a847f
RR
24175 { echo "$as_me:24175: WARNING: Joystick not yet supported under Motif... disabled" >&5
24176echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 24177 wxUSE_JOYSTICK=no
f79bd02d
JS
24178 fi
24179 if test "$TOOLKIT" = "X11"; then
7b4a847f
RR
24180 { echo "$as_me:24180: WARNING: Joystick not yet supported under X11... disabled" >&5
24181echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 24182 wxUSE_JOYSTICK=no
156b2523
GD
24183 fi
24184
3a922bb4
RL
24185 if test "$TOOLKIT" != "MSW"; then
24186 if test "$wxUSE_JOYSTICK" = "yes"; then
7b4a847f
RR
24187
24188for ac_header in linux/joystick.h
10f2d63a 24189do
7b4a847f
RR
24190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24191echo "$as_me:24191: checking for $ac_header" >&5
24192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24193if eval "test \"\${$as_ac_Header+set}\" = set"; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24195else
24196 cat >conftest.$ac_ext <<_ACEOF
24197#line 24197 "configure"
10f2d63a 24198#include "confdefs.h"
7b4a847f
RR
24199#include <$ac_header>
24200_ACEOF
24201if { (eval echo "$as_me:24201: \"$ac_cpp conftest.$ac_ext\"") >&5
24202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24203 ac_status=$?
24204 egrep -v '^ *\+' conftest.er1 >conftest.err
24205 rm -f conftest.er1
24206 cat conftest.err >&5
24207 echo "$as_me:24207: \$? = $ac_status" >&5
24208 (exit $ac_status); } >/dev/null; then
24209 if test -s conftest.err; then
24210 ac_cpp_err=$ac_c_preproc_warn_flag
24211 else
24212 ac_cpp_err=
24213 fi
24214else
24215 ac_cpp_err=yes
24216fi
24217if test -z "$ac_cpp_err"; then
24218 eval "$as_ac_Header=yes"
10f2d63a 24219else
7b4a847f 24220 echo "$as_me: failed program was:" >&5
10f2d63a 24221 cat conftest.$ac_ext >&5
7b4a847f 24222 eval "$as_ac_Header=no"
10f2d63a 24223fi
7b4a847f 24224rm -f conftest.err conftest.$ac_ext
10f2d63a 24225fi
7b4a847f
RR
24226echo "$as_me:24226: result: `eval echo '${'$as_ac_Header'}'`" >&5
24227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24228if test `eval echo '${'$as_ac_Header'}'` = yes; then
24229 cat >>confdefs.h <<EOF
24230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10f2d63a 24231EOF
7b4a847f 24232
10f2d63a
VZ
24233fi
24234done
24235
3a922bb4
RL
24236 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
24237 wxUSE_JOYSTICK=no
7b4a847f
RR
24238 { echo "$as_me:24238: WARNING: Joystick not supported by this system... disabled" >&5
24239echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
24240 fi
24241 fi
24242 fi
b089607b 24243
3a922bb4 24244 if test "$wxUSE_JOYSTICK" = "yes"; then
7b4a847f 24245 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24246#define wxUSE_JOYSTICK 1
24247EOF
24248
3a922bb4
RL
24249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
24250 fi
dc3d889d
VZ
24251fi
24252
b089607b
VZ
24253if test "$TOOLKIT" != "MSW"; then
24254
3a922bb4
RL
24255 HAVE_DL_FUNCS=0
24256 HAVE_SHL_FUNCS=0
0b9ab0bd 24257 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
24258 if test "$USE_DARWIN" = 1; then
24259 HAVE_DL_FUNCS=1
24260 else
7b4a847f
RR
24261
24262for ac_func in dlopen
10f2d63a 24263do
7b4a847f
RR
24264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24265echo "$as_me:24265: checking for $ac_func" >&5
24266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24267if eval "test \"\${$as_ac_var+set}\" = set"; then
24268 echo $ECHO_N "(cached) $ECHO_C" >&6
24269else
24270 cat >conftest.$ac_ext <<_ACEOF
24271#line 24271 "configure"
10f2d63a
VZ
24272#include "confdefs.h"
24273/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 24274 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
24275#include <assert.h>
24276/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
24277#ifdef __cplusplus
24278extern "C"
24279#endif
10f2d63a 24280/* We use char because int might match the return type of a gcc2
7b4a847f
RR
24281 builtin and then its argument prototype would still apply. */
24282char $ac_func ();
24283char (*f) ();
10f2d63a 24284
7b4a847f
RR
24285int
24286main ()
24287{
10f2d63a
VZ
24288/* The GNU C library defines this for functions which it implements
24289 to always fail with ENOSYS. Some functions are actually named
24290 something starting with __ and the normal name is an alias. */
24291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24292choke me
24293#else
7b4a847f 24294f = $ac_func;
10f2d63a
VZ
24295#endif
24296
7b4a847f
RR
24297 ;
24298 return 0;
24299}
24300_ACEOF
24301rm -f conftest.$ac_objext conftest$ac_exeext
24302if { (eval echo "$as_me:24302: \"$ac_link\"") >&5
24303 (eval $ac_link) 2>&5
24304 ac_status=$?
24305 echo "$as_me:24305: \$? = $ac_status" >&5
24306 (exit $ac_status); } &&
24307 { ac_try='test -s conftest$ac_exeext'
24308 { (eval echo "$as_me:24308: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 echo "$as_me:24311: \$? = $ac_status" >&5
24312 (exit $ac_status); }; }; then
24313 eval "$as_ac_var=yes"
24314else
24315 echo "$as_me: failed program was:" >&5
24316cat conftest.$ac_ext >&5
24317eval "$as_ac_var=no"
24318fi
24319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24320fi
24321echo "$as_me:24321: result: `eval echo '${'$as_ac_var'}'`" >&5
24322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24323if test `eval echo '${'$as_ac_var'}'` = yes; then
24324 cat >>confdefs.h <<EOF
24325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24326EOF
24327
24328 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24329#define HAVE_DLOPEN 1
24330EOF
24331
3a922bb4 24332 HAVE_DL_FUNCS=1
7b4a847f 24333
10f2d63a 24334else
7b4a847f
RR
24335
24336 echo "$as_me:24336: checking for dlopen in -ldl" >&5
24337echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24338if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24339 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 24340else
7b4a847f 24341 ac_check_lib_save_LIBS=$LIBS
10f2d63a 24342LIBS="-ldl $LIBS"
7b4a847f
RR
24343cat >conftest.$ac_ext <<_ACEOF
24344#line 24344 "configure"
10f2d63a 24345#include "confdefs.h"
7b4a847f 24346
10f2d63a 24347/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
24348#ifdef __cplusplus
24349extern "C"
24350#endif
10f2d63a 24351/* We use char because int might match the return type of a gcc2
7b4a847f
RR
24352 builtin and then its argument prototype would still apply. */
24353char dlopen ();
24354int
24355main ()
24356{
24357dlopen ();
24358 ;
24359 return 0;
24360}
24361_ACEOF
24362rm -f conftest.$ac_objext conftest$ac_exeext
24363if { (eval echo "$as_me:24363: \"$ac_link\"") >&5
24364 (eval $ac_link) 2>&5
24365 ac_status=$?
24366 echo "$as_me:24366: \$? = $ac_status" >&5
24367 (exit $ac_status); } &&
24368 { ac_try='test -s conftest$ac_exeext'
24369 { (eval echo "$as_me:24369: \"$ac_try\"") >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 echo "$as_me:24372: \$? = $ac_status" >&5
24373 (exit $ac_status); }; }; then
24374 ac_cv_lib_dl_dlopen=yes
24375else
24376 echo "$as_me: failed program was:" >&5
24377cat conftest.$ac_ext >&5
24378ac_cv_lib_dl_dlopen=no
24379fi
24380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24381LIBS=$ac_check_lib_save_LIBS
24382fi
24383echo "$as_me:24383: result: $ac_cv_lib_dl_dlopen" >&5
24384echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24385if test $ac_cv_lib_dl_dlopen = yes; then
24386
24387 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24388#define HAVE_DLOPEN 1
24389EOF
24390
3a922bb4 24391 HAVE_DL_FUNCS=1
3d63bc3a 24392 DL_LINK=" -ldl$DL_LINK"
7b4a847f 24393
10f2d63a 24394else
10f2d63a 24395
7b4a847f 24396for ac_func in shl_load
10f2d63a 24397do
7b4a847f
RR
24398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24399echo "$as_me:24399: checking for $ac_func" >&5
24400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24401if eval "test \"\${$as_ac_var+set}\" = set"; then
24402 echo $ECHO_N "(cached) $ECHO_C" >&6
24403else
24404 cat >conftest.$ac_ext <<_ACEOF
24405#line 24405 "configure"
10f2d63a
VZ
24406#include "confdefs.h"
24407/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 24408 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
24409#include <assert.h>
24410/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
24411#ifdef __cplusplus
24412extern "C"
24413#endif
10f2d63a 24414/* We use char because int might match the return type of a gcc2
7b4a847f
RR
24415 builtin and then its argument prototype would still apply. */
24416char $ac_func ();
24417char (*f) ();
10f2d63a 24418
7b4a847f
RR
24419int
24420main ()
24421{
10f2d63a
VZ
24422/* The GNU C library defines this for functions which it implements
24423 to always fail with ENOSYS. Some functions are actually named
24424 something starting with __ and the normal name is an alias. */
24425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24426choke me
24427#else
7b4a847f 24428f = $ac_func;
10f2d63a
VZ
24429#endif
24430
7b4a847f
RR
24431 ;
24432 return 0;
24433}
24434_ACEOF
24435rm -f conftest.$ac_objext conftest$ac_exeext
24436if { (eval echo "$as_me:24436: \"$ac_link\"") >&5
24437 (eval $ac_link) 2>&5
24438 ac_status=$?
24439 echo "$as_me:24439: \$? = $ac_status" >&5
24440 (exit $ac_status); } &&
24441 { ac_try='test -s conftest$ac_exeext'
24442 { (eval echo "$as_me:24442: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 echo "$as_me:24445: \$? = $ac_status" >&5
24446 (exit $ac_status); }; }; then
24447 eval "$as_ac_var=yes"
24448else
24449 echo "$as_me: failed program was:" >&5
24450cat conftest.$ac_ext >&5
24451eval "$as_ac_var=no"
24452fi
24453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24454fi
24455echo "$as_me:24455: result: `eval echo '${'$as_ac_var'}'`" >&5
24456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24457if test `eval echo '${'$as_ac_var'}'` = yes; then
24458 cat >>confdefs.h <<EOF
24459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24460EOF
24461
24462 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24463#define HAVE_SHL_LOAD 1
24464EOF
24465
3a922bb4 24466 HAVE_SHL_FUNCS=1
7b4a847f 24467
10f2d63a 24468else
7b4a847f
RR
24469
24470 echo "$as_me:24470: checking for dld in -lshl_load" >&5
24471echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
24472if test "${ac_cv_lib_shl_load_dld+set}" = set; then
24473 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 24474else
7b4a847f 24475 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 24476LIBS="-lshl_load $LIBS"
7b4a847f
RR
24477cat >conftest.$ac_ext <<_ACEOF
24478#line 24478 "configure"
f6bcfd97 24479#include "confdefs.h"
7b4a847f 24480
f6bcfd97 24481/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
24482#ifdef __cplusplus
24483extern "C"
24484#endif
f6bcfd97 24485/* We use char because int might match the return type of a gcc2
7b4a847f
RR
24486 builtin and then its argument prototype would still apply. */
24487char dld ();
24488int
24489main ()
24490{
24491dld ();
24492 ;
24493 return 0;
24494}
24495_ACEOF
24496rm -f conftest.$ac_objext conftest$ac_exeext
24497if { (eval echo "$as_me:24497: \"$ac_link\"") >&5
24498 (eval $ac_link) 2>&5
24499 ac_status=$?
24500 echo "$as_me:24500: \$? = $ac_status" >&5
24501 (exit $ac_status); } &&
24502 { ac_try='test -s conftest$ac_exeext'
24503 { (eval echo "$as_me:24503: \"$ac_try\"") >&5
24504 (eval $ac_try) 2>&5
24505 ac_status=$?
24506 echo "$as_me:24506: \$? = $ac_status" >&5
24507 (exit $ac_status); }; }; then
24508 ac_cv_lib_shl_load_dld=yes
24509else
24510 echo "$as_me: failed program was:" >&5
24511cat conftest.$ac_ext >&5
24512ac_cv_lib_shl_load_dld=no
24513fi
24514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24515LIBS=$ac_check_lib_save_LIBS
24516fi
24517echo "$as_me:24517: result: $ac_cv_lib_shl_load_dld" >&5
24518echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
24519if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 24520
3a922bb4 24521 HAVE_SHL_FUNCS=1
3d63bc3a 24522 DL_LINK=" -ldld$DL_LINK"
7b4a847f 24523
f6bcfd97
BP
24524fi
24525
10f2d63a
VZ
24526fi
24527done
24528
10f2d63a
VZ
24529fi
24530
10f2d63a
VZ
24531fi
24532done
24533
579d8138 24534 if test "$HAVE_DL_FUNCS" = 1; then
7b4a847f
RR
24535
24536for ac_func in dlerror
f6bcfd97 24537do
7b4a847f
RR
24538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24539echo "$as_me:24539: checking for $ac_func" >&5
24540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24541if eval "test \"\${$as_ac_var+set}\" = set"; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24543else
24544 cat >conftest.$ac_ext <<_ACEOF
24545#line 24545 "configure"
f6bcfd97
BP
24546#include "confdefs.h"
24547/* System header to define __stub macros and hopefully few prototypes,
7b4a847f 24548 which can conflict with char $ac_func (); below. */
f6bcfd97
BP
24549#include <assert.h>
24550/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
24551#ifdef __cplusplus
24552extern "C"
24553#endif
f6bcfd97 24554/* We use char because int might match the return type of a gcc2
7b4a847f
RR
24555 builtin and then its argument prototype would still apply. */
24556char $ac_func ();
24557char (*f) ();
f6bcfd97 24558
7b4a847f
RR
24559int
24560main ()
24561{
f6bcfd97
BP
24562/* The GNU C library defines this for functions which it implements
24563 to always fail with ENOSYS. Some functions are actually named
24564 something starting with __ and the normal name is an alias. */
24565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24566choke me
24567#else
7b4a847f 24568f = $ac_func;
f6bcfd97
BP
24569#endif
24570
7b4a847f
RR
24571 ;
24572 return 0;
24573}
24574_ACEOF
24575rm -f conftest.$ac_objext conftest$ac_exeext
24576if { (eval echo "$as_me:24576: \"$ac_link\"") >&5
24577 (eval $ac_link) 2>&5
24578 ac_status=$?
24579 echo "$as_me:24579: \$? = $ac_status" >&5
24580 (exit $ac_status); } &&
24581 { ac_try='test -s conftest$ac_exeext'
24582 { (eval echo "$as_me:24582: \"$ac_try\"") >&5
24583 (eval $ac_try) 2>&5
24584 ac_status=$?
24585 echo "$as_me:24585: \$? = $ac_status" >&5
24586 (exit $ac_status); }; }; then
24587 eval "$as_ac_var=yes"
24588else
24589 echo "$as_me: failed program was:" >&5
24590cat conftest.$ac_ext >&5
24591eval "$as_ac_var=no"
24592fi
24593rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24594fi
24595echo "$as_me:24595: result: `eval echo '${'$as_ac_var'}'`" >&5
24596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24597if test `eval echo '${'$as_ac_var'}'` = yes; then
24598 cat >>confdefs.h <<EOF
24599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24600EOF
24601 cat >>confdefs.h <<\EOF
f6bcfd97
BP
24602#define HAVE_DLERROR 1
24603EOF
24604
24605else
7b4a847f
RR
24606 echo "$as_me:24606: checking for dlerror in -ldl" >&5
24607echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
24608if test "${ac_cv_lib_dl_dlerror+set}" = set; then
24609 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 24610else
7b4a847f 24611 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 24612LIBS="-ldl $LIBS"
7b4a847f
RR
24613cat >conftest.$ac_ext <<_ACEOF
24614#line 24614 "configure"
f6bcfd97 24615#include "confdefs.h"
7b4a847f 24616
f6bcfd97 24617/* Override any gcc2 internal prototype to avoid an error. */
7b4a847f
RR
24618#ifdef __cplusplus
24619extern "C"
24620#endif
f6bcfd97 24621/* We use char because int might match the return type of a gcc2
7b4a847f
RR
24622 builtin and then its argument prototype would still apply. */
24623char dlerror ();
24624int
24625main ()
24626{
24627dlerror ();
24628 ;
24629 return 0;
24630}
24631_ACEOF
24632rm -f conftest.$ac_objext conftest$ac_exeext
24633if { (eval echo "$as_me:24633: \"$ac_link\"") >&5
24634 (eval $ac_link) 2>&5
24635 ac_status=$?
24636 echo "$as_me:24636: \$? = $ac_status" >&5
24637 (exit $ac_status); } &&
24638 { ac_try='test -s conftest$ac_exeext'
24639 { (eval echo "$as_me:24639: \"$ac_try\"") >&5
24640 (eval $ac_try) 2>&5
24641 ac_status=$?
24642 echo "$as_me:24642: \$? = $ac_status" >&5
24643 (exit $ac_status); }; }; then
24644 ac_cv_lib_dl_dlerror=yes
24645else
24646 echo "$as_me: failed program was:" >&5
24647cat conftest.$ac_ext >&5
24648ac_cv_lib_dl_dlerror=no
24649fi
24650rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24651LIBS=$ac_check_lib_save_LIBS
24652fi
24653echo "$as_me:24653: result: $ac_cv_lib_dl_dlerror" >&5
24654echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
24655if test $ac_cv_lib_dl_dlerror = yes; then
24656 cat >>confdefs.h <<\EOF
f6bcfd97
BP
24657#define HAVE_DLERROR 1
24658EOF
24659
f6bcfd97
BP
24660fi
24661
24662fi
24663done
24664
3a922bb4
RL
24665 fi
24666 fi
f6bcfd97 24667
3a922bb4
RL
24668 if test "$HAVE_DL_FUNCS" = 0; then
24669 if test "$HAVE_SHL_FUNCS" = 0; then
24670 if test "$USE_UNIX" = 1; then
7b4a847f
RR
24671 { echo "$as_me:24671: WARNING: Missing dynamic loading support, several features will be disabled" >&5
24672echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 24673 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
24674 wxUSE_DYNLIB_CLASS=no
24675 else
7b4a847f
RR
24676 { echo "$as_me:24676: WARNING: Assuming wxLibrary class works on this platform" >&5
24677echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
24678 fi
24679 fi
10f2d63a
VZ
24680 fi
24681 fi
24682fi
24683
0b9ab0bd 24684if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
7b4a847f 24685 cat >>confdefs.h <<\EOF
0b9ab0bd
RL
24686#define wxUSE_DYNAMIC_LOADER 1
24687EOF
24688
24689elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
7b4a847f 24690 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24691#define wxUSE_DYNLIB_CLASS 1
24692EOF
24693
24694fi
24695
1e6feb95 24696if test "$wxUSE_FONTMAP" = "yes" ; then
7b4a847f 24697 cat >>confdefs.h <<\EOF
1e6feb95
VZ
24698#define wxUSE_FONTMAP 1
24699EOF
24700
24701fi
24702
10f2d63a 24703if test "$wxUSE_UNICODE" = "yes" ; then
7b4a847f 24704 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24705#define wxUSE_UNICODE 1
24706EOF
24707
bbc3925a
VS
24708 if test "$wxUSE_MSW" != 1; then
24709 wxUSE_UNICODE_MSLU=no
24710 fi
a72a4bfa
VS
24711
24712 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
7b4a847f
RR
24713 echo "$as_me:24713: checking for main in -lunicows" >&5
24714echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
24715if test "${ac_cv_lib_unicows_main+set}" = set; then
24716 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 24717else
7b4a847f 24718 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 24719LIBS="-lunicows $LIBS"
7b4a847f
RR
24720cat >conftest.$ac_ext <<_ACEOF
24721#line 24721 "configure"
a72a4bfa
VS
24722#include "confdefs.h"
24723
7b4a847f
RR
24724int
24725main ()
24726{
24727main ();
24728 ;
24729 return 0;
24730}
24731_ACEOF
24732rm -f conftest.$ac_objext conftest$ac_exeext
24733if { (eval echo "$as_me:24733: \"$ac_link\"") >&5
24734 (eval $ac_link) 2>&5
24735 ac_status=$?
24736 echo "$as_me:24736: \$? = $ac_status" >&5
24737 (exit $ac_status); } &&
24738 { ac_try='test -s conftest$ac_exeext'
24739 { (eval echo "$as_me:24739: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24741 ac_status=$?
24742 echo "$as_me:24742: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24744 ac_cv_lib_unicows_main=yes
24745else
24746 echo "$as_me: failed program was:" >&5
24747cat conftest.$ac_ext >&5
24748ac_cv_lib_unicows_main=no
24749fi
24750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24751LIBS=$ac_check_lib_save_LIBS
24752fi
24753echo "$as_me:24753: result: $ac_cv_lib_unicows_main" >&5
24754echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
24755if test $ac_cv_lib_unicows_main = yes; then
24756
24757 cat >>confdefs.h <<\EOF
a72a4bfa
VS
24758#define wxUSE_UNICODE_MSLU 1
24759EOF
24760
a72a4bfa 24761else
a72a4bfa 24762
7b4a847f
RR
24763 { echo "$as_me:24763: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
24764 Applications will only run on Windows NT/2000/XP!" >&5
24765echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
24766 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 24767 wxUSE_UNICODE_MSLU=no
7b4a847f 24768
a72a4bfa
VS
24769fi
24770
24771 fi
10f2d63a
VZ
24772fi
24773
10f2d63a 24774if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
7b4a847f 24775 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24776#define wxUSE_EXPERIMENTAL_PRINTF 1
24777EOF
24778
24779fi
24780
10f2d63a
VZ
24781IODBC_C_SRC=""
24782if test "$wxUSE_ODBC" = "yes" ; then
7b4a847f 24783 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24784#define wxUSE_ODBC 1
24785EOF
24786
24787 WXODBCFLAG="-D_IODBC_"
24788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
24789fi
24790
10f2d63a 24791if test "$wxUSE_POSTSCRIPT" = "yes" ; then
7b4a847f 24792 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24793#define wxUSE_POSTSCRIPT 1
24794EOF
24795
24796fi
24797
7b4a847f 24798cat >>confdefs.h <<\EOF
10f2d63a
VZ
24799#define wxUSE_AFM_FOR_POSTSCRIPT 1
24800EOF
24801
7b4a847f 24802cat >>confdefs.h <<\EOF
10f2d63a
VZ
24803#define wxUSE_NORMALIZED_PS_FONTS 1
24804EOF
24805
10f2d63a 24806if test "$wxUSE_CONSTRAINTS" = "yes"; then
7b4a847f 24807 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24808#define wxUSE_CONSTRAINTS 1
24809EOF
24810
24811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
24812fi
24813
24814if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 24815 if test "$wxUSE_UNIVERSAL" = "yes"; then
7b4a847f
RR
24816 { echo "$as_me:24816: WARNING: MDI not yet supported for wxUniversal... disabled" >&5
24817echo "$as_me: WARNING: MDI not yet supported for wxUniversal... disabled" >&2;}
fc26f4ab
RL
24818 wxUSE_MDI_ARCHITECTURE=no
24819 fi
24820
24821 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
7b4a847f 24822 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24823#define wxUSE_MDI_ARCHITECTURE 1
24824EOF
24825
fc26f4ab
RL
24826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
24827 fi
10f2d63a
VZ
24828fi
24829
24830if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
7b4a847f 24831 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24832#define wxUSE_DOC_VIEW_ARCHITECTURE 1
24833EOF
24834
24835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
24836 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
24837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
24838 fi
24839fi
24840
24841if test "$wxUSE_HELP" = "yes"; then
7b4a847f 24842 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24843#define wxUSE_HELP 1
24844EOF
24845
24846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 24847
77e13408 24848 if test "$wxUSE_MSW" = 1; then
031d8228 24849 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
7b4a847f 24850 cat >>confdefs.h <<\EOF
29fd3c0c
VS
24851#define wxUSE_MS_HTML_HELP 1
24852EOF
24853
3e44f09d 24854 fi
3379ed37 24855 fi
031d8228
VS
24856
24857 if test "$wxUSE_WXHTML_HELP" = "yes"; then
24858 if test "$wxUSE_HTML" = "yes"; then
7b4a847f 24859 cat >>confdefs.h <<\EOF
031d8228
VS
24860#define wxUSE_WXHTML_HELP 1
24861EOF
24862
24863 else
7b4a847f
RR
24864 { echo "$as_me:24864: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
24865echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
24866 wxUSE_WXHTML_HELP=no
24867 fi
24868 fi
10f2d63a
VZ
24869fi
24870
24871if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
24872 if test "$wxUSE_CONSTRAINTS" != "yes"; then
7b4a847f
RR
24873 { echo "$as_me:24873: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
24874echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 24875 else
7b4a847f 24876 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24877#define wxUSE_PRINTING_ARCHITECTURE 1
24878EOF
24879
24880 fi
24881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
24882fi
24883
24884if test "$wxUSE_PROLOGIO" = "yes" ; then
7b4a847f 24885 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24886#define wxUSE_PROLOGIO 1
24887EOF
24888
24889fi
24890
24891if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 24892 if test "$wxUSE_NANOX" = "yes"; then
7b4a847f
RR
24893 { echo "$as_me:24893: WARNING: Cannot use resource database functions in NanoX" >&5
24894echo "$as_me: WARNING: Cannot use resource database functions in NanoX" >&2;}
e334d0ea 24895 else
7b4a847f 24896 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24897#define wxUSE_RESOURCES 1
24898EOF
24899
e334d0ea
JS
24900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
24901 fi
10f2d63a
VZ
24902fi
24903
24904if test "$wxUSE_X_RESOURCES" = "yes"; then
7b4a847f 24905 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24906#define wxUSE_X_RESOURCES 1
24907EOF
24908
24909fi
24910
77e13408
RL
24911if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
24912 -o "$wxUSE_CLIPBOARD" = "yes" \
24913 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
7b4a847f
RR
24914
24915for ac_header in ole2.h
10f2d63a 24916do
7b4a847f
RR
24917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24918echo "$as_me:24918: checking for $ac_header" >&5
24919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24920if eval "test \"\${$as_ac_Header+set}\" = set"; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24922else
24923 cat >conftest.$ac_ext <<_ACEOF
24924#line 24924 "configure"
10f2d63a 24925#include "confdefs.h"
7b4a847f
RR
24926#include <$ac_header>
24927_ACEOF
24928if { (eval echo "$as_me:24928: \"$ac_cpp conftest.$ac_ext\"") >&5
24929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24930 ac_status=$?
24931 egrep -v '^ *\+' conftest.er1 >conftest.err
24932 rm -f conftest.er1
24933 cat conftest.err >&5
24934 echo "$as_me:24934: \$? = $ac_status" >&5
24935 (exit $ac_status); } >/dev/null; then
24936 if test -s conftest.err; then
24937 ac_cpp_err=$ac_c_preproc_warn_flag
24938 else
24939 ac_cpp_err=
24940 fi
24941else
24942 ac_cpp_err=yes
24943fi
24944if test -z "$ac_cpp_err"; then
24945 eval "$as_ac_Header=yes"
1e487827 24946else
7b4a847f 24947 echo "$as_me: failed program was:" >&5
10f2d63a 24948 cat conftest.$ac_ext >&5
7b4a847f 24949 eval "$as_ac_Header=no"
10f2d63a 24950fi
7b4a847f 24951rm -f conftest.err conftest.$ac_ext
10f2d63a 24952fi
7b4a847f
RR
24953echo "$as_me:24953: result: `eval echo '${'$as_ac_Header'}'`" >&5
24954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24955if test `eval echo '${'$as_ac_Header'}'` = yes; then
24956 cat >>confdefs.h <<EOF
24957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10f2d63a 24958EOF
7b4a847f 24959
10f2d63a
VZ
24960fi
24961done
24962
2b9bdf71
VZ
24963 if test "$ac_cv_header_ole2_h" = "yes" ; then
24964 if test "$GCC" = yes ; then
24965 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 24966 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 24967 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
7b4a847f 24968 cat >>confdefs.h <<\EOF
4f11a343
VS
24969#define wxUSE_OLE 1
24970EOF
24971
2b9bdf71
VZ
24972 fi
24973
7b4a847f 24974 cat >>confdefs.h <<\EOF
2b9bdf71
VZ
24975#define wxUSE_DATAOBJ 1
24976EOF
24977
24978 else
7b4a847f
RR
24979 { echo "$as_me:24979: WARNING: Some features disabled because OLE headers not found" >&5
24980echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
24981
24982 wxUSE_CLIPBOARD=no
24983 wxUSE_DRAG_AND_DROP=no
24984 wxUSE_DATAOBJ=no
24985 fi
24986
77e13408 24987 if test "$wxUSE_METAFILE" = "yes"; then
7b4a847f 24988 cat >>confdefs.h <<\EOF
b64f0a5f
RL
24989#define wxUSE_METAFILE 1
24990EOF
24991
7b4a847f 24992 cat >>confdefs.h <<\EOF
b64f0a5f
RL
24993#define wxUSE_ENH_METAFILE 1
24994EOF
24995
2b9bdf71
VZ
24996 fi
24997fi
24998
24999if test "$wxUSE_IPC" = "yes"; then
25000 if test "$wxUSE_SOCKETS" != "yes"; then
7b4a847f
RR
25001 { echo "$as_me:25001: WARNING: wxWindows IPC classes require sockets... disabled" >&5
25002echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
25003 fi
25004
7b4a847f 25005 cat >>confdefs.h <<\EOF
2b9bdf71
VZ
25006#define wxUSE_IPC 1
25007EOF
25008
25009fi
25010
25011if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 25012 if test "$wxUSE_MGL" = 1; then
7b4a847f
RR
25013 { echo "$as_me:25013: WARNING: Clipboard not yet supported under MGL... disabled" >&5
25014echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
25015 wxUSE_CLIPBOARD=no
25016 fi
25017
25018 if test "$wxUSE_CLIPBOARD" = "yes"; then
7b4a847f 25019 cat >>confdefs.h <<\EOF
2b9bdf71
VZ
25020#define wxUSE_CLIPBOARD 1
25021EOF
25022
7b4a847f 25023 cat >>confdefs.h <<\EOF
673f4220
VZ
25024#define wxUSE_DATAOBJ 1
25025EOF
25026
6c657b52 25027 fi
2b9bdf71
VZ
25028fi
25029
25030if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
25031 if test "$wxUSE_GTK" = 1; then
25032 if test "$WXGTK12" != 1; then
7b4a847f
RR
25033 { echo "$as_me:25033: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
25034echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
25035 wxUSE_DRAG_AND_DROP=no
25036 fi
25037 fi
25038
2b9bdf71 25039 if test "$wxUSE_MOTIF" = 1; then
7b4a847f
RR
25040 { echo "$as_me:25040: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
25041echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
25042 wxUSE_DRAG_AND_DROP=no
25043 fi
25044
f79bd02d 25045 if test "$wxUSE_X11" = 1; then
7b4a847f
RR
25046 { echo "$as_me:25046: WARNING: Drag and drop not yet supported under X11... disabled" >&5
25047echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
25048 wxUSE_DRAG_AND_DROP=no
25049 fi
25050
6c657b52 25051 if test "$wxUSE_MGL" = 1; then
7b4a847f
RR
25052 { echo "$as_me:25052: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
25053echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
25054 wxUSE_DRAG_AND_DROP=no
25055 fi
25056
10f2d63a 25057 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
7b4a847f 25058 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25059#define wxUSE_DRAG_AND_DROP 1
25060EOF
25061
25062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
25063 fi
25064
25065fi
25066
25067if test "$wxUSE_SPLINES" = "yes" ; then
7b4a847f 25068 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25069#define wxUSE_SPLINES 1
25070EOF
25071
25072fi
25073
1e6feb95
VZ
25074USES_CONTROLS=0
25075if test "$wxUSE_CONTROLS" = "yes"; then
25076 USES_CONTROLS=1
25077fi
25078
10f2d63a 25079if test "$wxUSE_ACCEL" = "yes"; then
7b4a847f 25080 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25081#define wxUSE_ACCEL 1
25082EOF
25083
1e6feb95
VZ
25084 USES_CONTROLS=1
25085fi
25086
25087if test "$wxUSE_BUTTON" = "yes"; then
7b4a847f 25088 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25089#define wxUSE_BUTTON 1
25090EOF
25091
25092 USES_CONTROLS=1
25093fi
25094
25095if test "$wxUSE_BMPBUTTON" = "yes"; then
7b4a847f 25096 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25097#define wxUSE_BMPBUTTON 1
25098EOF
25099
25100 USES_CONTROLS=1
25101fi
25102
25103if test "$wxUSE_CALCTRL" = "yes"; then
7b4a847f 25104 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25105#define wxUSE_CALENDARCTRL 1
25106EOF
25107
25108 USES_CONTROLS=1
25109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
25110fi
25111
25112if test "$wxUSE_CARET" = "yes"; then
7b4a847f 25113 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25114#define wxUSE_CARET 1
25115EOF
25116
1e6feb95 25117 USES_CONTROLS=1
10f2d63a
VZ
25118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
25119fi
25120
25121if test "$wxUSE_COMBOBOX" = "yes"; then
7b4a847f 25122 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25123#define wxUSE_COMBOBOX 1
25124EOF
25125
1e6feb95 25126 USES_CONTROLS=1
10f2d63a
VZ
25127fi
25128
25129if test "$wxUSE_CHOICE" = "yes"; then
7b4a847f 25130 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25131#define wxUSE_CHOICE 1
25132EOF
25133
1e6feb95 25134 USES_CONTROLS=1
10f2d63a
VZ
25135fi
25136
25137if test "$wxUSE_CHECKBOX" = "yes"; then
7b4a847f 25138 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25139#define wxUSE_CHECKBOX 1
25140EOF
25141
1e6feb95 25142 USES_CONTROLS=1
10f2d63a
VZ
25143fi
25144
25145if test "$wxUSE_CHECKLST" = "yes"; then
7b4a847f 25146 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25147#define wxUSE_CHECKLISTBOX 1
25148EOF
25149
1e6feb95 25150 USES_CONTROLS=1
10f2d63a
VZ
25151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
25152fi
25153
25154if test "$wxUSE_GAUGE" = "yes"; then
7b4a847f 25155 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25156#define wxUSE_GAUGE 1
25157EOF
25158
1e6feb95 25159 USES_CONTROLS=1
10f2d63a
VZ
25160fi
25161
d6a55c4b
VZ
25162if test "$wxUSE_NEW_GRID" = "yes"; then
25163 wxUSE_GRID="yes"
7b4a847f 25164 cat >>confdefs.h <<\EOF
d6a55c4b 25165#define wxUSE_NEW_GRID 1
10f2d63a
VZ
25166EOF
25167
1e6feb95 25168 USES_CONTROLS=1
d6a55c4b 25169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
25170fi
25171
d6a55c4b 25172if test "$wxUSE_GRID" = "yes"; then
7b4a847f 25173 cat >>confdefs.h <<\EOF
d6a55c4b 25174#define wxUSE_GRID 1
10f2d63a
VZ
25175EOF
25176
1e6feb95 25177 USES_CONTROLS=1
d6a55c4b 25178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
25179fi
25180
25181if test "$wxUSE_IMAGLIST" = "yes"; then
7b4a847f 25182 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25183#define wxUSE_IMAGLIST 1
25184EOF
25185
25186fi
25187
25188if test "$wxUSE_LISTBOX" = "yes"; then
7b4a847f 25189 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25190#define wxUSE_LISTBOX 1
25191EOF
25192
1e6feb95 25193 USES_CONTROLS=1
10f2d63a
VZ
25194fi
25195
25196if test "$wxUSE_LISTCTRL" = "yes"; then
25197 if test "$wxUSE_IMAGLIST" = "yes"; then
7b4a847f 25198 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25199#define wxUSE_LISTCTRL 1
25200EOF
25201
1e6feb95 25202 USES_CONTROLS=1
10f2d63a
VZ
25203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
25204 else
7b4a847f
RR
25205 { echo "$as_me:25205: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
25206echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
25207 fi
25208fi
25209
25210if test "$wxUSE_NOTEBOOK" = "yes"; then
7b4a847f 25211 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25212#define wxUSE_NOTEBOOK 1
25213EOF
25214
1e6feb95 25215 USES_CONTROLS=1
10f2d63a
VZ
25216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
25217fi
25218
24176f2c 25219if test "$wxUSE_PROPSHEET" = "yes"; then
7b4a847f 25220 cat >>confdefs.h <<\EOF
24176f2c
GD
25221#define wxUSE_PROPSHEET 1
25222EOF
25223
25224 USES_CONTROLS=1
25225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
25226fi
25227
10f2d63a 25228if test "$wxUSE_RADIOBOX" = "yes"; then
7b4a847f 25229 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25230#define wxUSE_RADIOBOX 1
25231EOF
25232
1e6feb95 25233 USES_CONTROLS=1
10f2d63a
VZ
25234fi
25235
25236if test "$wxUSE_RADIOBTN" = "yes"; then
7b4a847f 25237 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25238#define wxUSE_RADIOBTN 1
25239EOF
25240
1e6feb95 25241 USES_CONTROLS=1
10f2d63a
VZ
25242fi
25243
25244if test "$wxUSE_SASH" = "yes"; then
7b4a847f 25245 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25246#define wxUSE_SASH 1
25247EOF
25248
25249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
25250fi
25251
25252if test "$wxUSE_SCROLLBAR" = "yes"; then
7b4a847f 25253 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25254#define wxUSE_SCROLLBAR 1
25255EOF
25256
1e6feb95 25257 USES_CONTROLS=1
741a9306 25258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
25259fi
25260
25261if test "$wxUSE_SLIDER" = "yes"; then
7b4a847f 25262 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25263#define wxUSE_SLIDER 1
25264EOF
25265
1e6feb95 25266 USES_CONTROLS=1
10f2d63a
VZ
25267fi
25268
25269if test "$wxUSE_SPINBTN" = "yes"; then
7b4a847f 25270 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25271#define wxUSE_SPINBTN 1
25272EOF
25273
1e6feb95 25274 USES_CONTROLS=1
10f2d63a
VZ
25275fi
25276
56cfaa52 25277if test "$wxUSE_SPINCTRL" = "yes"; then
7b4a847f 25278 cat >>confdefs.h <<\EOF
56cfaa52
RR
25279#define wxUSE_SPINCTRL 1
25280EOF
25281
1e6feb95 25282 USES_CONTROLS=1
56cfaa52
RR
25283fi
25284
10f2d63a 25285if test "$wxUSE_SPLITTER" = "yes"; then
7b4a847f 25286 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25287#define wxUSE_SPLITTER 1
25288EOF
25289
25290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
25291fi
25292
25293if test "$wxUSE_STATBMP" = "yes"; then
7b4a847f 25294 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25295#define wxUSE_STATBMP 1
25296EOF
25297
1e6feb95 25298 USES_CONTROLS=1
10f2d63a
VZ
25299fi
25300
25301if test "$wxUSE_STATBOX" = "yes"; then
7b4a847f 25302 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25303#define wxUSE_STATBOX 1
25304EOF
25305
1e6feb95
VZ
25306 USES_CONTROLS=1
25307fi
25308
25309if test "$wxUSE_STATTEXT" = "yes"; then
7b4a847f 25310 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25311#define wxUSE_STATTEXT 1
25312EOF
25313
25314 USES_CONTROLS=1
10f2d63a
VZ
25315fi
25316
25317if test "$wxUSE_STATLINE" = "yes"; then
25318 if test "$wxUSE_WINE" = 1 ; then
7b4a847f
RR
25319 { echo "$as_me:25319: WARNING: wxStaticLine is not supported under WINE" >&5
25320echo "$as_me: WARNING: wxStaticLine is not supported under WINE" >&2;}
10f2d63a 25321 else
7b4a847f 25322 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25323#define wxUSE_STATLINE 1
25324EOF
25325
1e6feb95 25326 USES_CONTROLS=1
10f2d63a
VZ
25327 fi
25328fi
25329
25330if test "$wxUSE_STATUSBAR" = "yes"; then
7b4a847f 25331 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25332#define wxUSE_STATUSBAR 1
25333EOF
25334
1e6feb95 25335 USES_CONTROLS=1
698dcdb6 25336
2286341c 25337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
25338fi
25339
25340if test "$wxUSE_TABDIALOG" = "yes"; then
7b4a847f 25341 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25342#define wxUSE_TAB_DIALOG 1
25343EOF
25344
25345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
25346fi
25347
1e6feb95 25348if test "$wxUSE_TEXTCTRL" = "yes"; then
7b4a847f 25349 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25350#define wxUSE_TEXTCTRL 1
25351EOF
25352
25353 USES_CONTROLS=1
25354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
25355fi
25356
1db8dc4a 25357if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 25358 if test "$wxUSE_MAC" = 1; then
7b4a847f
RR
25359 { echo "$as_me:25359: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
25360echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
25361 wxUSE_TOGGLEBTN=no
25362 fi
25363 if test "$wxUSE_UNIVERSAL" = "yes"; then
7b4a847f
RR
25364 { echo "$as_me:25364: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
25365echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
25366 wxUSE_TOGGLEBTN=no
25367 fi
25368
25369 if test "$wxUSE_TOGGLEBTN" = "yes"; then
7b4a847f 25370 cat >>confdefs.h <<\EOF
1db8dc4a
VZ
25371#define wxUSE_TOGGLEBTN 1
25372EOF
25373
1e6feb95 25374 USES_CONTROLS=1
a45d7ab7 25375 fi
1db8dc4a
VZ
25376fi
25377
360d6699 25378if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
7b4a847f 25379 cat >>confdefs.h <<\EOF
360d6699
VZ
25380#define wxUSE_TOOLBAR_SIMPLE 1
25381EOF
25382
25383 wxUSE_TOOLBAR="yes"
1e6feb95 25384 USES_CONTROLS=1
360d6699
VZ
25385fi
25386
10f2d63a 25387if test "$wxUSE_TOOLBAR" = "yes"; then
7b4a847f 25388 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25389#define wxUSE_TOOLBAR 1
25390EOF
25391
1e6feb95 25392 USES_CONTROLS=1
698dcdb6 25393
360d6699
VZ
25394 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
25395 wxUSE_TOOLBAR_NATIVE="yes"
25396 fi
25397
1e6feb95 25398 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
7b4a847f 25399 cat >>confdefs.h <<\EOF
360d6699
VZ
25400#define wxUSE_TOOLBAR_NATIVE 1
25401EOF
25402
1e6feb95
VZ
25403 USES_CONTROLS=1
25404 fi
25405
25406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
25407fi
25408
10f2d63a
VZ
25409if test "$wxUSE_TOOLTIPS" = "yes"; then
25410 if test "$wxUSE_MOTIF" = 1; then
7b4a847f
RR
25411 { echo "$as_me:25411: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
25412echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a
VZ
25413 else
25414 if test "$wxUSE_WINE" = 1; then
7b4a847f
RR
25415 { echo "$as_me:25415: WARNING: wxTooltip not supported under WINE... disabled" >&5
25416echo "$as_me: WARNING: wxTooltip not supported under WINE... disabled" >&2;}
10f2d63a 25417 else
69d27ff7 25418 if test "$wxUSE_UNIVERSAL" = "yes"; then
7b4a847f
RR
25419 { echo "$as_me:25419: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
25420echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
69d27ff7 25421 else
7b4a847f 25422 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25423#define wxUSE_TOOLTIPS 1
25424EOF
25425
69d27ff7 25426 fi
10f2d63a
VZ
25427 fi
25428 fi
25429fi
25430
25431if test "$wxUSE_TREECTRL" = "yes"; then
25432 if test "$wxUSE_IMAGLIST" = "yes"; then
7b4a847f 25433 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25434#define wxUSE_TREECTRL 1
25435EOF
25436
1e6feb95 25437 USES_CONTROLS=1
10f2d63a
VZ
25438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
25439 else
7b4a847f
RR
25440 { echo "$as_me:25440: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
25441echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
25442 fi
25443fi
25444
9f41d601 25445if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 25446 if test "$wxUSE_MAC" = 1; then
7b4a847f
RR
25447 { echo "$as_me:25447: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
25448echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 25449 else
485cf710 25450 if test "$wxUSE_MOTIF" = 1; then
7b4a847f
RR
25451 { echo "$as_me:25451: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
25452echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 25453 else
3c011993 25454 if test "$wxUSE_PM" = 1; then
7b4a847f
RR
25455 { echo "$as_me:25455: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
25456echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 25457 else
7b4a847f 25458 cat >>confdefs.h <<\EOF
9f41d601
RR
25459#define wxUSE_POPUPWIN 1
25460EOF
25461
3c011993
VZ
25462 USES_CONTROLS=1
25463 fi
485cf710 25464 fi
6abe4b65 25465 fi
9f41d601
RR
25466fi
25467
dd964dcc 25468if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 25469 if test "$wxUSE_PM" = 1; then
7b4a847f
RR
25470 { echo "$as_me:25470: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
25471echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 25472 else
7b4a847f 25473 cat >>confdefs.h <<\EOF
dd964dcc
VZ
25474#define wxUSE_TIPWINDOW 1
25475EOF
25476
3c011993 25477 fi
dd964dcc
VZ
25478fi
25479
1e6feb95 25480if test "$USES_CONTROLS" = 1; then
7b4a847f 25481 cat >>confdefs.h <<\EOF
1e6feb95 25482#define wxUSE_CONTROLS 1
10f2d63a
VZ
25483EOF
25484
10f2d63a
VZ
25485fi
25486
24176f2c 25487if test "$wxUSE_TREELAYOUT" = "yes"; then
7b4a847f 25488 cat >>confdefs.h <<\EOF
24176f2c
GD
25489#define wxUSE_TREELAYOUT 1
25490EOF
25491
25492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
25493fi
1e6feb95 25494
24fd6d87 25495if test "$wxUSE_DRAGIMAGE" = "yes"; then
7b4a847f 25496 cat >>confdefs.h <<\EOF
24fd6d87
VZ
25497#define wxUSE_DRAGIMAGE 1
25498EOF
25499
25500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
25501fi
25502
1e6feb95 25503if test "$wxUSE_MENUS" = "yes"; then
7b4a847f 25504 cat >>confdefs.h <<\EOF
1e6feb95 25505#define wxUSE_MENUS 1
10f2d63a
VZ
25506EOF
25507
1e6feb95 25508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
25509fi
25510
1e6feb95 25511if test "$wxUSE_METAFILE" = "yes"; then
7b4a847f 25512 cat >>confdefs.h <<\EOF
1e6feb95 25513#define wxUSE_METAFILE 1
10f2d63a
VZ
25514EOF
25515
10f2d63a
VZ
25516fi
25517
1e6feb95 25518if test "$wxUSE_MIMETYPE" = "yes"; then
7b4a847f 25519 cat >>confdefs.h <<\EOF
1e6feb95 25520#define wxUSE_MIMETYPE 1
10f2d63a
VZ
25521EOF
25522
10f2d63a
VZ
25523fi
25524
3e44f09d 25525if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
7b4a847f 25526 cat >>confdefs.h <<\EOF
3e44f09d
VZ
25527#define wxUSE_SYSTEM_OPTIONS 1
25528EOF
25529
321d2b14
VZ
25530if test "$TOOLKIT" = "MSW"; then
25531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
25532fi
25533
3e44f09d
VZ
25534fi
25535
4cdb0ab0 25536if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 25537 if test "$wxUSE_SOCKETS" != "yes"; then
7b4a847f
RR
25538 { echo "$as_me:25538: WARNING: Protocol classes require sockets... disabled" >&5
25539echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
3954f9ca
VS
25540 wxUSE_PROTOCOL=no
25541 fi
25542
25543 if test "$wxUSE_PROTOCOL" = "yes"; then
7b4a847f 25544 cat >>confdefs.h <<\EOF
4cdb0ab0
VS
25545#define wxUSE_PROTOCOL 1
25546EOF
25547
3954f9ca 25548 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
7b4a847f 25549 cat >>confdefs.h <<\EOF
4cdb0ab0
VS
25550#define wxUSE_PROTOCOL_HTTP 1
25551EOF
25552
3954f9ca
VS
25553 fi
25554 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
7b4a847f 25555 cat >>confdefs.h <<\EOF
4cdb0ab0
VS
25556#define wxUSE_PROTOCOL_FTP 1
25557EOF
25558
3954f9ca
VS
25559 fi
25560 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
7b4a847f 25561 cat >>confdefs.h <<\EOF
3954f9ca
VS
25562#define wxUSE_PROTOCOL_FILE 1
25563EOF
25564
25565 fi
4cdb0ab0 25566 fi
3954f9ca
VS
25567fi
25568
25569if test "$wxUSE_URL" = "yes"; then
25570 if test "$wxUSE_PROTOCOL" != "yes"; then
7b4a847f
RR
25571 { echo "$as_me:25571: WARNING: wxURL class requires wxProtocol... disabled" >&5
25572echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
3954f9ca
VS
25573 wxUSE_URL=no
25574 fi
25575 if test "$wxUSE_URL" = "yes"; then
7b4a847f 25576 cat >>confdefs.h <<\EOF
3954f9ca 25577#define wxUSE_URL 1
4cdb0ab0
VS
25578EOF
25579
25580 fi
25581fi
25582
10f2d63a 25583if test "$wxUSE_MINIFRAME" = "yes"; then
7b4a847f 25584 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25585#define wxUSE_MINIFRAME 1
25586EOF
25587
25588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
25589fi
25590
25591if test "$wxUSE_HTML" = "yes"; then
7b4a847f 25592 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25593#define wxUSE_HTML 1
25594EOF
25595
25596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
25597fi
25598
25599if test "$wxUSE_VALIDATORS" = "yes"; then
7b4a847f 25600 cat >>confdefs.h <<\EOF
1e487827
VS
25601#define wxUSE_VALIDATORS 1
25602EOF
703e0a69 25603
698dcdb6
VZ
25604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
25605fi
25606
edae8572 25607if test "$wxUSE_PALETTE" = "yes" ; then
7b4a847f 25608 cat >>confdefs.h <<\EOF
edae8572
VZ
25609#define wxUSE_PALETTE 1
25610EOF
25611
25612fi
25613
698dcdb6 25614if test "$wxUSE_IMAGE" = "yes" ; then
7b4a847f 25615 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25616#define wxUSE_IMAGE 1
25617EOF
25618
25619fi
25620
25621if test "$wxUSE_GIF" = "yes" ; then
7b4a847f 25622 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25623#define wxUSE_GIF 1
25624EOF
25625
25626fi
25627
25628if test "$wxUSE_PCX" = "yes" ; then
7b4a847f 25629 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25630#define wxUSE_PCX 1
25631EOF
25632
25633fi
25634
4b6b4dfc 25635if test "$wxUSE_IFF" = "yes" ; then
7b4a847f 25636 cat >>confdefs.h <<\EOF
4b6b4dfc
RR
25637#define wxUSE_IFF 1
25638EOF
25639
25640fi
25641
698dcdb6 25642if test "$wxUSE_PNM" = "yes" ; then
7b4a847f 25643 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25644#define wxUSE_PNM 1
25645EOF
25646
25647fi
25648
25649if test "$wxUSE_XPM" = "yes" ; then
7b4a847f 25650 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25651#define wxUSE_XPM 1
25652EOF
25653
25654fi
25655
658974ae 25656if test "$wxUSE_ICO_CUR" = "yes" ; then
7b4a847f 25657 cat >>confdefs.h <<\EOF
658974ae
VS
25658#define wxUSE_ICO_CUR 1
25659EOF
25660
25661fi
25662
a72a4bfa
VS
25663if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
25664 LIBS=" -lunicows $LIBS"
25665fi
25666
1e6feb95 25667if test "$wxUSE_CHOICEDLG" = "yes"; then
7b4a847f 25668 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25669#define wxUSE_CHOICEDLG 1
25670EOF
25671
25672fi
25673
25674if test "$wxUSE_COLOURDLG" = "yes"; then
7b4a847f 25675 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25676#define wxUSE_COLOURDLG 1
25677EOF
25678
25679fi
25680
25681if test "$wxUSE_FILEDLG" = "yes"; then
7b4a847f 25682 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25683#define wxUSE_FILEDLG 1
25684EOF
25685
25686fi
25687
8db37e06 25688if test "$wxUSE_FINDREPLDLG" = "yes"; then
7b4a847f 25689 cat >>confdefs.h <<\EOF
8db37e06
VZ
25690#define wxUSE_FINDREPLDLG 1
25691EOF
25692
25693fi
25694
1e6feb95 25695if test "$wxUSE_FONTDLG" = "yes"; then
7b4a847f 25696 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25697#define wxUSE_FONTDLG 1
25698EOF
25699
25700fi
25701
25702if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 25703 if test "$wxUSE_TREECTRL" != "yes"; then
7b4a847f
RR
25704 { echo "$as_me:25704: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
25705echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 25706 else
7b4a847f 25707 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25708#define wxUSE_DIRDLG 1
25709EOF
25710
1e6feb95
VZ
25711 fi
25712fi
25713
25714if test "$wxUSE_MSGDLG" = "yes"; then
7b4a847f 25715 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25716#define wxUSE_MSGDLG 1
25717EOF
25718
25719fi
25720
25721if test "$wxUSE_NUMBERDLG" = "yes"; then
7b4a847f 25722 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25723#define wxUSE_NUMBERDLG 1
25724EOF
25725
25726fi
25727
25728if test "$wxUSE_PROGRESSDLG" = "yes"; then
25729 if test "$wxUSE_CONSTRAINTS" != "yes"; then
7b4a847f
RR
25730 { echo "$as_me:25730: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
25731echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 25732 else
7b4a847f 25733 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25734#define wxUSE_PROGRESSDLG 1
25735EOF
25736
25737 fi
25738fi
25739
cbca9943 25740if test "$wxUSE_SPLASH" = "yes"; then
7b4a847f 25741 cat >>confdefs.h <<\EOF
cbca9943
VZ
25742#define wxUSE_SPLASH 1
25743EOF
25744
25745fi
25746
1e6feb95
VZ
25747if test "$wxUSE_STARTUP_TIPS" = "yes"; then
25748 if test "$wxUSE_CONSTRAINTS" != "yes"; then
7b4a847f
RR
25749 { echo "$as_me:25749: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
25750echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 25751 else
7b4a847f 25752 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25753#define wxUSE_STARTUP_TIPS 1
25754EOF
25755
7b4a847f
RR
25756 fi
25757fi
579d8138 25758
7b4a847f
RR
25759if test "$wxUSE_TEXTDLG" = "yes"; then
25760 cat >>confdefs.h <<\EOF
25761#define wxUSE_TEXTDLG 1
25762EOF
2f51a9ec 25763
7b4a847f 25764fi
2f51a9ec 25765
7b4a847f
RR
25766if test "$wxUSE_WIZARDDLG" = "yes"; then
25767 cat >>confdefs.h <<\EOF
25768#define wxUSE_WIZARDDLG 1
25769EOF
2f51a9ec 25770
7b4a847f
RR
25771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
25772fi
2f51a9ec 25773
7b4a847f
RR
25774if test "$cross_compiling" = "yes"; then
25775 OSINFO="\"$host\""
25776else
25777 OSINFO=`uname -s -r -m`
25778 OSINFO="\"$OSINFO\""
25779fi
f6bcfd97 25780
7b4a847f
RR
25781cat >>confdefs.h <<EOF
25782#define WXWIN_OS_DESCRIPTION $OSINFO
25783EOF
dad6c0ea 25784
7b4a847f
RR
25785if test "x$prefix" != "xNONE"; then
25786 wxPREFIX=$prefix
25787else
25788 wxPREFIX=$ac_default_prefix
25789fi
caa2c79b 25790
7b4a847f
RR
25791cat >>confdefs.h <<EOF
25792#define wxINSTALL_PREFIX "$wxPREFIX"
25793EOF
3711412e 25794
7b4a847f
RR
25795if test "$wxUSE_MAC" = 1 ; then
25796 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
25797fi
1e6feb95 25798
7b4a847f 25799LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
1e6feb95 25800
7b4a847f 25801if test "$wxUSE_GUI" = "yes"; then
885d4bf5 25802
7b4a847f 25803 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
885d4bf5 25804
7b4a847f
RR
25805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
25806 drawing dynamic erase event exec font image \
25807 minimal richedit rotate widgets"
885d4bf5 25808
7b4a847f
RR
25809 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
25810else
25811 SAMPLES_SUBDIRS="console"
25812fi
885d4bf5 25813
7b4a847f
RR
25814INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
25815-I\${top_srcdir}/include \
25816$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
25817$TOOLKIT_INCLUDE"
9b695262 25818
7b4a847f
RR
25819if test "$wxUSE_GTK" = 1; then
25820 WXCONFIG_INCLUDE=
25821else
25822 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
25823fi
9b695262 25824
7b4a847f
RR
25825if test "$GXX" = yes ; then
25826 CXXWARNINGS="-Wall"
62d0491b 25827
7b4a847f
RR
25828 if test "$wxUSE_NO_DEPS" = "no" ; then
25829 CFLAGS="-MMD $CFLAGS"
25830 CXXFLAGS="-MMD $CXXFLAGS"
25831 fi
25832fi
ef7f2189 25833
7b4a847f 25834EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
40f7145c 25835
7b4a847f
RR
25836CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
25837CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
25838LIBS=`echo $LIBS | sed 's/ \+/ /g'`
3bd8fb5f 25839
7b4a847f 25840LDFLAGS="$LDFLAGS $PROFILE"
10f2d63a 25841
7b4a847f 25842SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
10f2d63a 25843
7b4a847f
RR
25844echo "$as_me:25844: checking whether ${MAKE-make} sets \${MAKE}" >&5
25845echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
25846set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
25847if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 25849else
7b4a847f 25850 cat >conftest.make <<\EOF
10f2d63a
VZ
25851all:
25852 @echo 'ac_maketemp="${MAKE}"'
25853EOF
25854# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7b4a847f 25855eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10f2d63a
VZ
25856if test -n "$ac_maketemp"; then
25857 eval ac_cv_prog_make_${ac_make}_set=yes
25858else
25859 eval ac_cv_prog_make_${ac_make}_set=no
25860fi
7b4a847f 25861rm -f conftest.make
10f2d63a
VZ
25862fi
25863if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7b4a847f
RR
25864 echo "$as_me:25864: result: yes" >&5
25865echo "${ECHO_T}yes" >&6
10f2d63a
VZ
25866 SET_MAKE=
25867else
7b4a847f
RR
25868 echo "$as_me:25868: result: no" >&5
25869echo "${ECHO_T}no" >&6
10f2d63a
VZ
25870 SET_MAKE="MAKE=${MAKE-make}"
25871fi
25872
3a922bb4
RL
25873if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
25874 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 25875fi
665bbe97 25876
7b4a847f 25877ac_config_headers="$ac_config_headers setup.h:setup.h.in"
10f2d63a 25878
57973b9c
VZ
25879wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
25880wx_cv_if_gnu_make=$IF_GNU_MAKE
25881wx_cv_path_ifs=$PATH_IFS
25882wx_cv_program_ext=$PROGRAM_EXT
25883wx_cv_target_library=$WX_TARGET_LIBRARY
25884wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
25885wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
25886export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
25887 wx_cv_path_ifs wx_cv_program_ext \
25888 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
25889
7b4a847f 25890subdirs="$subdirs demos samples utils contrib"
10f2d63a 25891
7b4a847f
RR
25892ac_config_files="$ac_config_files wx-config src/make.env src/makeprog.env src/makelib.env Makefile"
25893ac_config_commands="$ac_config_commands default"
25894cat >confcache <<\_ACEOF
10f2d63a
VZ
25895# This file is a shell script that caches the results of configure
25896# tests run on this system so they can be shared between configure
7b4a847f
RR
25897# scripts and configure runs, see configure's option --config-cache.
25898# It is not useful on other systems. If it contains results you don't
25899# want to keep, you may remove or edit it.
10f2d63a 25900#
7b4a847f
RR
25901# config.status only pays attention to the cache file if you give it
25902# the --recheck option to rerun configure.
10f2d63a 25903#
7b4a847f
RR
25904# `ac_cv_env_foo' variables (set or unset) will be overriden when
25905# loading this file, other *unset* `ac_cv_foo' will be assigned the
25906# following values.
25907
25908_ACEOF
25909
10f2d63a
VZ
25910# The following way of writing the cache mishandles newlines in values,
25911# but we know of no workaround that is simple, portable, and efficient.
25912# So, don't put newlines in cache variables' values.
25913# Ultrix sh set writes to stderr and can't be redirected directly,
25914# and sets the high bit in the cache file unless we assign to the vars.
7b4a847f
RR
25915{
25916 (set) 2>&1 |
25917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25918 *ac_space=\ *)
25919 # `set' does not quote correctly, so add quotes (double-quote
25920 # substitution turns \\\\ into \\, and sed turns \\ into \).
25921 sed -n \
25922 "s/'/'\\\\''/g;
25923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25924 ;;
25925 *)
25926 # `set' quotes correctly as required by POSIX, so do not add quotes.
25927 sed -n \
25928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25929 ;;
25930 esac;
25931} |
25932 sed '
25933 t clear
25934 : clear
25935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25936 t end
25937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25938 : end' >>confcache
25939if cmp -s $cache_file confcache; then :; else
10f2d63a 25940 if test -w $cache_file; then
7b4a847f
RR
25941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25942 cat confcache >$cache_file
10f2d63a
VZ
25943 else
25944 echo "not updating unwritable cache $cache_file"
25945 fi
25946fi
25947rm -f confcache
25948
10f2d63a
VZ
25949test "x$prefix" = xNONE && prefix=$ac_default_prefix
25950# Let make expand exec_prefix.
25951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25952
7b4a847f
RR
25953# VPATH may cause trouble with some makes, so we remove $(srcdir),
25954# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25955# trailing colons and then remove the whole line if VPATH becomes empty
25956# (actually we leave an empty line to preserve line numbers).
10f2d63a 25957if test "x$srcdir" = x.; then
7b4a847f
RR
25958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25959s/:*\$(srcdir):*/:/;
25960s/:*\${srcdir}:*/:/;
25961s/:*@srcdir@:*/:/;
25962s/^\([^=]*=[ ]*\):*/\1/;
25963s/:*$//;
25964s/^[^=]*=[ ]*$//;
25965}'
10f2d63a
VZ
25966fi
25967
10f2d63a
VZ
25968DEFS=-DHAVE_CONFIG_H
25969
10f2d63a 25970: ${CONFIG_STATUS=./config.status}
7b4a847f
RR
25971ac_clean_files_save=$ac_clean_files
25972ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25973{ echo "$as_me:25973: creating $CONFIG_STATUS" >&5
25974echo "$as_me: creating $CONFIG_STATUS" >&6;}
25975cat >$CONFIG_STATUS <<_ACEOF
25976#! $SHELL
10f2d63a
VZ
25977# Generated automatically by configure.
25978# Run this file to recreate the current configuration.
579d8138 25979# Compiler output produced by configure, useful for debugging
7b4a847f 25980# configure, is in config.log if it exists.
698dcdb6 25981
7b4a847f
RR
25982debug=false
25983SHELL=\${CONFIG_SHELL-$SHELL}
25984ac_cs_invocation="\$0 \$@"
25985
25986_ACEOF
25987
25988cat >>$CONFIG_STATUS <<\_ACEOF
25989# Be Bourne compatible
25990if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25991 emulate sh
25992 NULLCMD=:
25993elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25994 set -o posix
25995fi
25996
25997# Name of the executable.
25998as_me=`echo "$0" |sed 's,.*[\\/],,'`
25999
26000if expr a : '\(a\)' >/dev/null 2>&1; then
26001 as_expr=expr
26002else
26003 as_expr=false
26004fi
26005
26006rm -f conf$$ conf$$.exe conf$$.file
26007echo >conf$$.file
26008if ln -s conf$$.file conf$$ 2>/dev/null; then
26009 # We could just check for DJGPP; but this test a) works b) is more generic
26010 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26011 if test -f conf$$.exe; then
26012 # Don't use ln at all; we don't have any links
26013 as_ln_s='cp -p'
26014 else
26015 as_ln_s='ln -s'
26016 fi
26017elif ln conf$$.file conf$$ 2>/dev/null; then
26018 as_ln_s=ln
26019else
26020 as_ln_s='cp -p'
26021fi
26022rm -f conf$$ conf$$.exe conf$$.file
26023
26024as_executable_p="test -f"
26025
26026# Support unset when possible.
26027if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26028 as_unset=unset
26029else
26030 as_unset=false
26031fi
26032
26033# NLS nuisances.
26034$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
26035$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
26036$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
26037$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
26038$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
26039$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
26040$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
26041$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
26042
26043# IFS
26044# We need space, tab and new line, in precisely that order.
26045as_nl='
26046'
26047IFS=" $as_nl"
26048
26049# CDPATH.
26050$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
26051
26052exec 6>&1
26053
26054_ACEOF
26055
26056# Files that config.status was made for.
26057if test -n "$ac_config_files"; then
26058 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26059fi
26060
26061if test -n "$ac_config_headers"; then
26062 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26063fi
26064
26065if test -n "$ac_config_links"; then
26066 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26067fi
26068
26069if test -n "$ac_config_commands"; then
26070 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26071fi
26072
26073cat >>$CONFIG_STATUS <<\EOF
26074
26075ac_cs_usage="\
26076\`$as_me' instantiates files from templates according to the
26077current configuration.
26078
26079Usage: $0 [OPTIONS] [FILE]...
26080
26081 -h, --help print this help, then exit
26082 -V, --version print version number, then exit
26083 -d, --debug don't remove temporary files
26084 --recheck update $as_me by reconfiguring in the same conditions
26085 --file=FILE[:TEMPLATE]
26086 instantiate the configuration file FILE
26087 --header=FILE[:TEMPLATE]
26088 instantiate the configuration header FILE
26089
26090Configuration files:
26091$config_files
26092
26093Configuration headers:
26094$config_headers
26095
26096Configuration commands:
26097$config_commands
26098
26099Report bugs to <bug-autoconf@gnu.org>."
26100EOF
26101
26102cat >>$CONFIG_STATUS <<EOF
26103ac_cs_version="\\
26104config.status
26105configured by $0, generated by GNU Autoconf 2.52,
26106 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26107
26108Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
26109Free Software Foundation, Inc.
26110This config.status script is free software; the Free Software Foundation
26111gives unlimited permission to copy, distribute and modify it."
26112srcdir=$srcdir
26113INSTALL="$INSTALL"
26114EOF
26115
26116cat >>$CONFIG_STATUS <<\EOF
26117# If no file are specified by the user, then we need to provide default
26118# value. By we need to know if files were specified by the user.
26119ac_need_defaults=:
26120while test $# != 0
328a083c 26121do
7b4a847f
RR
26122 case $1 in
26123 --*=*)
26124 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26125 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26126 shift
26127 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
26128 shift
26129 ;;
26130 -*);;
26131 *) # This is not an option, so the user has probably given explicit
26132 # arguments.
26133 ac_need_defaults=false;;
26134 esac
26135
26136 case $1 in
26137 # Handling of the options.
26138EOF
26139cat >>$CONFIG_STATUS <<EOF
579d8138 26140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7b4a847f
RR
26141 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
26142 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
26143EOF
26144cat >>$CONFIG_STATUS <<\EOF
26145 --version | --vers* | -V )
26146 echo "$ac_cs_version"; exit 0 ;;
26147 --he | --h)
26148 # Conflict between --help and --header
26149 { { echo "$as_me:26149: error: ambiguous option: $1
26150Try \`$0 --help' for more information." >&5
26151echo "$as_me: error: ambiguous option: $1
26152Try \`$0 --help' for more information." >&2;}
26153 { (exit 1); exit 1; }; };;
26154 --help | --hel | -h )
26155 echo "$ac_cs_usage"; exit 0 ;;
26156 --debug | --d* | -d )
26157 debug=: ;;
26158 --file | --fil | --fi | --f )
26159 shift
26160 CONFIG_FILES="$CONFIG_FILES $1"
26161 ac_need_defaults=false;;
26162 --header | --heade | --head | --hea )
26163 shift
26164 CONFIG_HEADERS="$CONFIG_HEADERS $1"
26165 ac_need_defaults=false;;
26166
26167 # This is an error.
26168 -*) { { echo "$as_me:26168: error: unrecognized option: $1
26169Try \`$0 --help' for more information." >&5
26170echo "$as_me: error: unrecognized option: $1
26171Try \`$0 --help' for more information." >&2;}
26172 { (exit 1); exit 1; }; } ;;
26173
26174 *) ac_config_targets="$ac_config_targets $1" ;;
26175
328a083c 26176 esac
7b4a847f 26177 shift
698dcdb6 26178done
328a083c 26179
7b4a847f
RR
26180exec 5>>config.log
26181cat >&5 << _ACEOF
328a083c 26182
7b4a847f
RR
26183## ----------------------- ##
26184## Running config.status. ##
26185## ----------------------- ##
328a083c 26186
7b4a847f
RR
26187This file was extended by $as_me 2.52, executed with
26188 CONFIG_FILES = $CONFIG_FILES
26189 CONFIG_HEADERS = $CONFIG_HEADERS
26190 CONFIG_LINKS = $CONFIG_LINKS
26191 CONFIG_COMMANDS = $CONFIG_COMMANDS
26192 > $ac_cs_invocation
26193on `(hostname || uname -n) 2>/dev/null | sed 1q`
328a083c 26194
7b4a847f 26195_ACEOF
698dcdb6 26196EOF
10f2d63a 26197
7b4a847f
RR
26198cat >>$CONFIG_STATUS <<EOF
26199#
26200# INIT-COMMANDS section.
26201#
579d8138 26202
7b4a847f
RR
26203 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
26204 LN_S="${LN_S}"
26205
26206EOF
26207
26208cat >>$CONFIG_STATUS <<\EOF
26209for ac_config_target in $ac_config_targets
26210do
26211 case "$ac_config_target" in
26212 # Handling of arguments.
26213 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
26214 "src/make.env" ) CONFIG_FILES="$CONFIG_FILES src/make.env" ;;
26215 "src/makeprog.env" ) CONFIG_FILES="$CONFIG_FILES src/makeprog.env" ;;
26216 "src/makelib.env" ) CONFIG_FILES="$CONFIG_FILES src/makelib.env" ;;
26217 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26218 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26219 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h:setup.h.in" ;;
26220 *) { { echo "$as_me:26220: error: invalid argument: $ac_config_target" >&5
26221echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26222 { (exit 1); exit 1; }; };;
26223 esac
579d8138 26224done
7b4a847f
RR
26225
26226# If the user did not use the arguments to specify the items to instantiate,
26227# then the envvar interface is used. Set only those that are not.
26228# We use the long form for the default assignment because of an extremely
26229# bizarre bug on SunOS 4.1.3.
26230if $ac_need_defaults; then
26231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
579d8138 26234fi
7b4a847f
RR
26235
26236# Create a temporary directory, and hook for its removal unless debugging.
26237$debug ||
26238{
26239 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26240 trap '{ (exit 1); exit 1; }' 1 2 13 15
26241}
26242
26243# Create a (secure) tmp directory for tmp files.
26244: ${TMPDIR=/tmp}
26245{
26246 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
26247 test -n "$tmp" && test -d "$tmp"
26248} ||
26249{
26250 tmp=$TMPDIR/cs$$-$RANDOM
26251 (umask 077 && mkdir $tmp)
26252} ||
26253{
26254 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
26255 { (exit 1); exit 1; }
26256}
26257
26258EOF
26259
26260cat >>$CONFIG_STATUS <<EOF
26261
26262#
26263# CONFIG_FILES section.
26264#
26265
26266# No need to generate the scripts if there are no CONFIG_FILES.
26267# This happens for instance when ./config.status config.h
26268if test -n "\$CONFIG_FILES"; then
26269 # Protect against being on the right side of a sed subst in config.status.
26270 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26271 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26272s,@SHELL@,$SHELL,;t t
26273s,@exec_prefix@,$exec_prefix,;t t
26274s,@prefix@,$prefix,;t t
26275s,@program_transform_name@,$program_transform_name,;t t
26276s,@bindir@,$bindir,;t t
26277s,@sbindir@,$sbindir,;t t
26278s,@libexecdir@,$libexecdir,;t t
26279s,@datadir@,$datadir,;t t
26280s,@sysconfdir@,$sysconfdir,;t t
26281s,@sharedstatedir@,$sharedstatedir,;t t
26282s,@localstatedir@,$localstatedir,;t t
26283s,@libdir@,$libdir,;t t
26284s,@includedir@,$includedir,;t t
26285s,@oldincludedir@,$oldincludedir,;t t
26286s,@infodir@,$infodir,;t t
26287s,@mandir@,$mandir,;t t
26288s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26289s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26290s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26291s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26292s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26293s,@build_alias@,$build_alias,;t t
26294s,@host_alias@,$host_alias,;t t
26295s,@target_alias@,$target_alias,;t t
26296s,@ECHO_C@,$ECHO_C,;t t
26297s,@ECHO_N@,$ECHO_N,;t t
26298s,@ECHO_T@,$ECHO_T,;t t
26299s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26300s,@DEFS@,$DEFS,;t t
26301s,@LIBS@,$LIBS,;t t
26302s,@build@,$build,;t t
26303s,@build_cpu@,$build_cpu,;t t
26304s,@build_vendor@,$build_vendor,;t t
26305s,@build_os@,$build_os,;t t
26306s,@host@,$host,;t t
26307s,@host_cpu@,$host_cpu,;t t
26308s,@host_vendor@,$host_vendor,;t t
26309s,@host_os@,$host_os,;t t
26310s,@target@,$target,;t t
26311s,@target_cpu@,$target_cpu,;t t
26312s,@target_vendor@,$target_vendor,;t t
26313s,@target_os@,$target_os,;t t
26314s,@CC@,$CC,;t t
26315s,@CFLAGS@,$CFLAGS,;t t
26316s,@LDFLAGS@,$LDFLAGS,;t t
26317s,@CPPFLAGS@,$CPPFLAGS,;t t
26318s,@ac_ct_CC@,$ac_ct_CC,;t t
26319s,@EXEEXT@,$EXEEXT,;t t
26320s,@OBJEXT@,$OBJEXT,;t t
26321s,@CPP@,$CPP,;t t
26322s,@CXX@,$CXX,;t t
26323s,@CXXFLAGS@,$CXXFLAGS,;t t
26324s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26325s,@RANLIB@,$RANLIB,;t t
26326s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26327s,@AR@,$AR,;t t
26328s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26329s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26330s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26331s,@STRIP@,$STRIP,;t t
26332s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
26333s,@YACC@,$YACC,;t t
26334s,@LEX@,$LEX,;t t
26335s,@LEXLIB@,$LEXLIB,;t t
26336s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26337s,@LN_S@,$LN_S,;t t
26338s,@CXXCPP@,$CXXCPP,;t t
26339s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26340s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
26341s,@GTK_LIBS@,$GTK_LIBS,;t t
26342s,@GTK_CONFIG@,$GTK_CONFIG,;t t
26343s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
26344s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
26345s,@X_CFLAGS@,$X_CFLAGS,;t t
26346s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
26347s,@X_LIBS@,$X_LIBS,;t t
26348s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
26349s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
26350s,@RESCOMP@,$RESCOMP,;t t
26351s,@DEREZ@,$DEREZ,;t t
26352s,@LIBICONV@,$LIBICONV,;t t
26353s,@LEX_STEM@,$LEX_STEM,;t t
26354s,@PATH_IFS@,$PATH_IFS,;t t
26355s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
26356s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
26357s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
26358s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
26359s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
26360s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
26361s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
26362s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
26363s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
26364s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
26365s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
26366s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
26367s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
26368s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
26369s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
26370s,@WX_ALL@,$WX_ALL,;t t
26371s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
26372s,@SHARED_LD@,$SHARED_LD,;t t
26373s,@PIC_FLAG@,$PIC_FLAG,;t t
26374s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
26375s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
26376s,@SONAME_FLAGS@,$SONAME_FLAGS,;t t
26377s,@SONAME_FLAGS_GL@,$SONAME_FLAGS_GL,;t t
26378s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t
26379s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
26380s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
26381s,@USE_GUI@,$USE_GUI,;t t
26382s,@AFMINSTALL@,$AFMINSTALL,;t t
26383s,@TOOLKIT@,$TOOLKIT,;t t
26384s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
26385s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
26386s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
26387s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
26388s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
26389s,@cross_compiling@,$cross_compiling,;t t
26390s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
26391s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
26392s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
26393s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
26394s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
26395s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
26396s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
26397s,@ALL_HEADERS@,$ALL_HEADERS,;t t
26398s,@ALL_SOURCES@,$ALL_SOURCES,;t t
26399s,@GUIDIST@,$GUIDIST,;t t
26400s,@PORT_FILES@,$PORT_FILES,;t t
26401s,@DISTDIR@,$DISTDIR,;t t
26402s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
26403s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
26404s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
26405s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
26406s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
26407s,@EXTRADEFS@,$EXTRADEFS,;t t
26408s,@RESFLAGS@,$RESFLAGS,;t t
26409s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
26410s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
26411s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
26412s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
26413s,@LIBWXMACRES@,$LIBWXMACRES,;t t
26414s,@LIBWXMACRESCOMP@,$LIBWXMACRESCOMP,;t t
26415s,@LIBWXMACRESWXCONFIG@,$LIBWXMACRESWXCONFIG,;t t
26416s,@DLLTOOL@,$DLLTOOL,;t t
26417s,@AS@,$AS,;t t
26418s,@NM@,$NM,;t t
26419s,@LD@,$LD,;t t
26420s,@MAKEINFO@,$MAKEINFO,;t t
26421s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
26422s,@SET_MAKE@,$SET_MAKE,;t t
26423s,@subdirs@,$subdirs,;t t
26424CEOF
26425
579d8138
VS
26426EOF
26427
7b4a847f
RR
26428 cat >>$CONFIG_STATUS <<\EOF
26429 # Split the substitutions into bite-sized pieces for seds with
26430 # small command number limits, like on Digital OSF/1 and HP-UX.
26431 ac_max_sed_lines=48
26432 ac_sed_frag=1 # Number of current file.
26433 ac_beg=1 # First line for current file.
26434 ac_end=$ac_max_sed_lines # Line after last line for current file.
26435 ac_more_lines=:
26436 ac_sed_cmds=
26437 while $ac_more_lines; do
26438 if test $ac_beg -gt 1; then
26439 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26440 else
26441 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26442 fi
26443 if test ! -s $tmp/subs.frag; then
26444 ac_more_lines=false
26445 else
26446 # The purpose of the label and of the branching condition is to
26447 # speed up the sed processing (if there are no `@' at all, there
26448 # is no need to browse any of the substitutions).
26449 # These are the two extra sed commands mentioned above.
26450 (echo ':t
26451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26452 if test -z "$ac_sed_cmds"; then
26453 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26454 else
26455 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26456 fi
26457 ac_sed_frag=`expr $ac_sed_frag + 1`
26458 ac_beg=$ac_end
26459 ac_end=`expr $ac_end + $ac_max_sed_lines`
26460 fi
26461 done
26462 if test -z "$ac_sed_cmds"; then
26463 ac_sed_cmds=cat
26464 fi
26465fi # test -n "$CONFIG_FILES"
698dcdb6 26466
10f2d63a 26467EOF
7b4a847f
RR
26468cat >>$CONFIG_STATUS <<\EOF
26469for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10f2d63a 26470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7b4a847f
RR
26471 case $ac_file in
26472 - | *:- | *:-:* ) # input from stdin
26473 cat >$tmp/stdin
26474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26478 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
26479 esac
26480
7b4a847f
RR
26481 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26482 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26483 X"$ac_file" : 'X\(//\)[^/]' \| \
26484 X"$ac_file" : 'X\(//\)$' \| \
26485 X"$ac_file" : 'X\(/\)' \| \
26486 . : '\(.\)' 2>/dev/null ||
26487echo X"$ac_file" |
26488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26490 /^X\(\/\/\)$/{ s//\1/; q; }
26491 /^X\(\/\).*/{ s//\1/; q; }
26492 s/.*/./; q'`
579d8138 26493 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7b4a847f
RR
26494 { case "$ac_dir" in
26495 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26496 *) as_incr_dir=.;;
26497esac
26498as_dummy="$ac_dir"
26499for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26500 case $as_mkdir_dir in
26501 # Skip DOS drivespec
26502 ?:) as_incr_dir=$as_mkdir_dir ;;
26503 *)
26504 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26505 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26506 ;;
26507 esac
26508done; }
26509
26510 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
10f2d63a 26511 # A "../" for each directory in $ac_dir_suffix.
7b4a847f 26512 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
10f2d63a
VZ
26513 else
26514 ac_dir_suffix= ac_dots=
26515 fi
26516
7b4a847f
RR
26517 case $srcdir in
26518 .) ac_srcdir=.
26519 if test -z "$ac_dots"; then
26520 ac_top_srcdir=.
26521 else
26522 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
26523 fi ;;
26524 [\\/]* | ?:[\\/]* )
26525 ac_srcdir=$srcdir$ac_dir_suffix;
26526 ac_top_srcdir=$srcdir ;;
10f2d63a 26527 *) # Relative path.
7b4a847f
RR
26528 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
26529 ac_top_srcdir=$ac_dots$srcdir ;;
10f2d63a
VZ
26530 esac
26531
7b4a847f
RR
26532 case $INSTALL in
26533 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26534 *) ac_INSTALL=$ac_dots$INSTALL ;;
10f2d63a
VZ
26535 esac
26536
7b4a847f
RR
26537 if test x"$ac_file" != x-; then
26538 { echo "$as_me:26538: creating $ac_file" >&5
26539echo "$as_me: creating $ac_file" >&6;}
26540 rm -f "$ac_file"
26541 fi
26542 # Let's still pretend it is `configure' which instantiates (i.e., don't
26543 # use $as_me), people would be surprised to read:
26544 # /* config.h. Generated automatically by config.status. */
26545 configure_input="Generated automatically from `echo $ac_file_in |
26546 sed 's,.*/,,'` by configure."
26547
26548 # First look for the input files in the build tree, otherwise in the
26549 # src tree.
26550 ac_file_inputs=`IFS=:
26551 for f in $ac_file_in; do
26552 case $f in
26553 -) echo $tmp/stdin ;;
26554 [\\/$]*)
26555 # Absolute (can't be DOS-style, as IFS=:)
26556 test -f "$f" || { { echo "$as_me:26556: error: cannot find input file: $f" >&5
26557echo "$as_me: error: cannot find input file: $f" >&2;}
26558 { (exit 1); exit 1; }; }
26559 echo $f;;
26560 *) # Relative
26561 if test -f "$f"; then
26562 # Build tree
26563 echo $f
26564 elif test -f "$srcdir/$f"; then
26565 # Source tree
26566 echo $srcdir/$f
26567 else
26568 # /dev/null tree
26569 { { echo "$as_me:26569: error: cannot find input file: $f" >&5
26570echo "$as_me: error: cannot find input file: $f" >&2;}
26571 { (exit 1); exit 1; }; }
26572 fi;;
26573 esac
26574 done` || { (exit 1); exit 1; }
26575EOF
26576cat >>$CONFIG_STATUS <<EOF
26577 sed "$ac_vpsub
26578$extrasub
26579EOF
26580cat >>$CONFIG_STATUS <<\EOF
26581:t
26582/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26583s,@configure_input@,$configure_input,;t t
26584s,@srcdir@,$ac_srcdir,;t t
26585s,@top_srcdir@,$ac_top_srcdir,;t t
26586s,@INSTALL@,$ac_INSTALL,;t t
26587" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26588 rm -f $tmp/stdin
26589 if test x"$ac_file" != x-; then
26590 mv $tmp/out $ac_file
26591 else
26592 cat $tmp/out
26593 rm -f $tmp/out
26594 fi
26595
26596done
26597EOF
26598cat >>$CONFIG_STATUS <<\EOF
10f2d63a 26599
7b4a847f
RR
26600#
26601# CONFIG_HEADER section.
26602#
10f2d63a
VZ
26603
26604# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26605# NAME is the cpp macro being defined and VALUE is the value it is being given.
26606#
26607# ac_d sets the value in "#define NAME VALUE" lines.
7b4a847f
RR
26608ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26609ac_dB='[ ].*$,\1#\2'
26610ac_dC=' '
26611ac_dD=',;t'
26612# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26613ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26614ac_uB='$,\1#\2define\3'
10f2d63a 26615ac_uC=' '
7b4a847f 26616ac_uD=',;t'
10f2d63a 26617
7b4a847f 26618for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 26619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7b4a847f
RR
26620 case $ac_file in
26621 - | *:- | *:-:* ) # input from stdin
26622 cat >$tmp/stdin
26623 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26624 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26625 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26627 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
26628 esac
26629
7b4a847f
RR
26630 test x"$ac_file" != x- && { echo "$as_me:26630: creating $ac_file" >&5
26631echo "$as_me: creating $ac_file" >&6;}
26632
26633 # First look for the input files in the build tree, otherwise in the
26634 # src tree.
26635 ac_file_inputs=`IFS=:
26636 for f in $ac_file_in; do
26637 case $f in
26638 -) echo $tmp/stdin ;;
26639 [\\/$]*)
26640 # Absolute (can't be DOS-style, as IFS=:)
26641 test -f "$f" || { { echo "$as_me:26641: error: cannot find input file: $f" >&5
26642echo "$as_me: error: cannot find input file: $f" >&2;}
26643 { (exit 1); exit 1; }; }
26644 echo $f;;
26645 *) # Relative
26646 if test -f "$f"; then
26647 # Build tree
26648 echo $f
26649 elif test -f "$srcdir/$f"; then
26650 # Source tree
26651 echo $srcdir/$f
26652 else
26653 # /dev/null tree
26654 { { echo "$as_me:26654: error: cannot find input file: $f" >&5
26655echo "$as_me: error: cannot find input file: $f" >&2;}
26656 { (exit 1); exit 1; }; }
26657 fi;;
26658 esac
26659 done` || { (exit 1); exit 1; }
26660 # Remove the trailing spaces.
26661 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26662
26663EOF
26664
26665# Transform confdefs.h into two sed scripts, `conftest.defines' and
26666# `conftest.undefs', that substitutes the proper values into
26667# config.h.in to produce config.h. The first handles `#define'
26668# templates, and the second `#undef' templates.
26669# And first: Protect against being on the right side of a sed subst in
26670# config.status. Protect against being in an unquoted here document
26671# in config.status.
26672rm -f conftest.defines conftest.undefs
26673# Using a here document instead of a string reduces the quoting nightmare.
26674# Putting comments in sed scripts is not portable.
26675#
26676# `end' is used to avoid that the second main sed command (meant for
26677# 0-ary CPP macros) applies to n-ary macro definitions.
26678# See the Autoconf documentation for `clear'.
26679cat >confdef2sed.sed <<\EOF
26680s/[\\&,]/\\&/g
26681s,[\\$`],\\&,g
26682t clear
26683: clear
26684s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
26685t end
26686s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26687: end
26688EOF
26689# If some macros were called several times there might be several times
26690# the same #defines, which is useless. Nevertheless, we may not want to
26691# sort them, since we want the *last* AC-DEFINE to be honored.
26692uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26693sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26694rm -f confdef2sed.sed
10f2d63a
VZ
26695
26696# This sed command replaces #undef with comments. This is necessary, for
26697# example, in the case of _POSIX_SOURCE, which is predefined and required
26698# on some systems where configure will not decide to define it.
7b4a847f
RR
26699cat >>conftest.undefs <<\EOF
26700s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10f2d63a
VZ
26701EOF
26702
7b4a847f
RR
26703# Break up conftest.defines because some shells have a limit on the size
26704# of here documents, and old seds have small limits too (100 cmds).
26705echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26706echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26707echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26708echo ' :' >>$CONFIG_STATUS
26709rm -f conftest.tail
26710while grep . conftest.defines >/dev/null
26711do
26712 # Write a limited-size here document to $tmp/defines.sed.
26713 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26714 # Speed up: don't consider the non `#define' lines.
26715 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26716 # Work around the forget-to-reset-the-flag bug.
26717 echo 't clr' >>$CONFIG_STATUS
26718 echo ': clr' >>$CONFIG_STATUS
26719 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26720 echo 'CEOF
26721 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26722 rm -f $tmp/in
26723 mv $tmp/out $tmp/in
26724' >>$CONFIG_STATUS
26725 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26726 rm -f conftest.defines
26727 mv conftest.tail conftest.defines
26728done
26729rm -f conftest.defines
26730echo ' fi # egrep' >>$CONFIG_STATUS
26731echo >>$CONFIG_STATUS
10f2d63a 26732
7b4a847f
RR
26733# Break up conftest.undefs because some shells have a limit on the size
26734# of here documents, and old seds have small limits too (100 cmds).
26735echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 26736rm -f conftest.tail
7b4a847f 26737while grep . conftest.undefs >/dev/null
10f2d63a 26738do
7b4a847f
RR
26739 # Write a limited-size here document to $tmp/undefs.sed.
26740 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26741 # Speed up: don't consider the non `#undef'
26742 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26743 # Work around the forget-to-reset-the-flag bug.
26744 echo 't clr' >>$CONFIG_STATUS
26745 echo ': clr' >>$CONFIG_STATUS
26746 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 26747 echo 'CEOF
7b4a847f
RR
26748 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26749 rm -f $tmp/in
26750 mv $tmp/out $tmp/in
26751' >>$CONFIG_STATUS
26752 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26753 rm -f conftest.undefs
26754 mv conftest.tail conftest.undefs
10f2d63a 26755done
7b4a847f
RR
26756rm -f conftest.undefs
26757
26758cat >>$CONFIG_STATUS <<\EOF
26759 # Let's still pretend it is `configure' which instantiates (i.e., don't
26760 # use $as_me), people would be surprised to read:
26761 # /* config.h. Generated automatically by config.status. */
26762 if test x"$ac_file" = x-; then
26763 echo "/* Generated automatically by configure. */" >$tmp/config.h
10f2d63a 26764 else
7b4a847f
RR
26765 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
26766 fi
26767 cat $tmp/in >>$tmp/config.h
26768 rm -f $tmp/in
26769 if test x"$ac_file" != x-; then
26770 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
26771 { echo "$as_me:26771: $ac_file is unchanged" >&5
26772echo "$as_me: $ac_file is unchanged" >&6;}
26773 else
26774 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26775 X"$ac_file" : 'X\(//\)[^/]' \| \
26776 X"$ac_file" : 'X\(//\)$' \| \
26777 X"$ac_file" : 'X\(/\)' \| \
26778 . : '\(.\)' 2>/dev/null ||
26779echo X"$ac_file" |
26780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26782 /^X\(\/\/\)$/{ s//\1/; q; }
26783 /^X\(\/\).*/{ s//\1/; q; }
26784 s/.*/./; q'`
10f2d63a 26785 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7b4a847f
RR
26786 { case "$ac_dir" in
26787 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26788 *) as_incr_dir=.;;
26789esac
26790as_dummy="$ac_dir"
26791for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26792 case $as_mkdir_dir in
26793 # Skip DOS drivespec
26794 ?:) as_incr_dir=$as_mkdir_dir ;;
26795 *)
26796 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26797 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26798 ;;
26799 esac
26800done; }
26801
26802 fi
26803 rm -f $ac_file
26804 mv $tmp/config.h $ac_file
10f2d63a 26805 fi
7b4a847f
RR
26806 else
26807 cat $tmp/config.h
26808 rm -f $tmp/config.h
10f2d63a 26809 fi
7b4a847f 26810done
10f2d63a 26811EOF
7b4a847f 26812cat >>$CONFIG_STATUS <<\EOF
10f2d63a 26813
7b4a847f
RR
26814#
26815# CONFIG_COMMANDS section.
26816#
26817for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26818 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26819 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10f2d63a 26820
7b4a847f
RR
26821 case $ac_dest in
26822 default )
652d930d 26823 if test ! -h wx-config; then
991a5759 26824 chmod +x wx-config
3a922bb4
RL
26825 mv wx-config wx${TOOLCHAIN_NAME}-config
26826 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 26827 fi
665bbe97 26828
00cf1208
RR
26829 if test ! -d lib; then
26830 mkdir lib
26831 fi
26832 if test ! -d lib/wx; then
26833 mkdir lib/wx
26834 fi
26835 if test ! -d lib/wx/include; then
26836 mkdir lib/wx/include
26837 fi
3a922bb4
RL
26838 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
26839 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 26840 fi
3a922bb4
RL
26841 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
26842 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
26843 fi
26844 if test -f setup.h; then
3a922bb4 26845 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 26846 fi
7b4a847f
RR
26847 ;;
26848 esac
26849done
26850EOF
26851
26852cat >>$CONFIG_STATUS <<\EOF
26853
26854{ (exit 0); exit 0; }
10f2d63a
VZ
26855EOF
26856chmod +x $CONFIG_STATUS
7b4a847f
RR
26857ac_clean_files=$ac_clean_files_save
26858
26859# configure is writing to config.log, and then calls config.status.
26860# config.status does its own redirection, appending to config.log.
26861# Unfortunately, on DOS this fails, as config.log is still kept open
26862# by configure, so config.status won't be able to write to it; its
26863# output is simply discarded. So we exec the FD to /dev/null,
26864# effectively closing config.log, so it can be properly (re)opened and
26865# appended to by config.status. When coming back to configure, we
26866# need to make the FD available again.
26867if test "$no_create" != yes; then
26868 ac_cs_success=:
26869 exec 5>/dev/null
26870 $SHELL $CONFIG_STATUS || ac_cs_success=false
26871 exec 5>>config.log
26872 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26873 # would make configure fail if this is the last instruction.
26874 $ac_cs_success || { (exit 1); exit 1; }
26875fi
10f2d63a 26876
7b4a847f
RR
26877#
26878# CONFIG_SUBDIRS section.
26879#
2224580a
VZ
26880if test "$no_recursion" != yes; then
26881
26882 # Remove --cache-file and --srcdir arguments so they do not pile up.
26883 ac_sub_configure_args=
26884 ac_prev=
26885 for ac_arg in $ac_configure_args; do
26886 if test -n "$ac_prev"; then
26887 ac_prev=
26888 continue
26889 fi
7b4a847f 26890 case $ac_arg in
2224580a
VZ
26891 -cache-file | --cache-file | --cache-fil | --cache-fi \
26892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26893 ac_prev=cache_file ;;
26894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7b4a847f
RR
26895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26896 | --c=*)
26897 ;;
26898 --config-cache | -C)
2224580a
VZ
26899 ;;
26900 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26901 ac_prev=srcdir ;;
26902 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26903 ;;
26904 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26905 esac
26906 done
26907
7b4a847f 26908 for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
2224580a
VZ
26909
26910 # Do not complain, so a configure script can configure whichever
26911 # parts of a large source tree are present.
7b4a847f 26912 test -d $srcdir/$ac_subdir || continue
2224580a 26913
7b4a847f
RR
26914 { echo "$as_me:26914: configuring in $ac_subdir" >&5
26915echo "$as_me: configuring in $ac_subdir" >&6;}
26916 case $srcdir in
2224580a 26917 .) ;;
7b4a847f
RR
26918 *) { case "./$ac_subdir" in
26919 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26920 *) as_incr_dir=.;;
26921esac
26922as_dummy="./$ac_subdir"
26923for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26924 case $as_mkdir_dir in
26925 # Skip DOS drivespec
26926 ?:) as_incr_dir=$as_mkdir_dir ;;
2224580a 26927 *)
7b4a847f
RR
26928 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26929 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26930 ;;
26931 esac
26932done; }
26933
26934 if test -d ./$ac_subdir; then :;
26935 else
26936 { { echo "$as_me:26936: error: cannot create \`pwd\`/$ac_subdir" >&5
26937echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
26938 { (exit 1); exit 1; }; }
26939 fi
26940 ;;
2224580a
VZ
26941 esac
26942
26943 ac_popdir=`pwd`
7b4a847f 26944 cd $ac_subdir
2224580a 26945
7b4a847f
RR
26946 # A "../" for each directory in /$ac_subdir.
26947 ac_dots=`echo $ac_subdir |
26948 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
2224580a 26949
7b4a847f 26950 case $srcdir in
2224580a
VZ
26951 .) # No --srcdir option. We are building in place.
26952 ac_sub_srcdir=$srcdir ;;
7b4a847f
RR
26953 [\\/]* | ?:[\\/]* ) # Absolute path.
26954 ac_sub_srcdir=$srcdir/$ac_subdir ;;
2224580a 26955 *) # Relative path.
7b4a847f 26956 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
2224580a
VZ
26957 esac
26958
26959 # Check for guested configure; otherwise get Cygnus style configure.
7b4a847f
RR
26960 if test -f $ac_sub_srcdir/configure.gnu; then
26961 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
26962 elif test -f $ac_sub_srcdir/configure; then
26963 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
2224580a
VZ
26964 elif test -f $ac_sub_srcdir/configure.in; then
26965 ac_sub_configure=$ac_configure
26966 else
7b4a847f
RR
26967 { echo "$as_me:26967: WARNING: no configuration information is in $ac_subdir" >&5
26968echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
2224580a
VZ
26969 ac_sub_configure=
26970 fi
26971
26972 # The recursion is here.
26973 if test -n "$ac_sub_configure"; then
2224580a 26974 # Make the cache file name correct relative to the subdirectory.
7b4a847f
RR
26975 case $cache_file in
26976 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
2224580a 26977 *) # Relative path.
7b4a847f 26978 ac_sub_cache_file=$ac_dots$cache_file ;;
2224580a 26979 esac
2224580a 26980
7b4a847f
RR
26981 { echo "$as_me:26981: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
26982echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
2224580a 26983 # The eval makes quoting arguments work.
7b4a847f
RR
26984 eval $ac_sub_configure $ac_sub_configure_args \
26985 --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
26986 { { echo "$as_me:26986: error: $ac_sub_configure failed for $ac_subdir" >&5
26987echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
26988 { (exit 1); exit 1; }; }
2224580a
VZ
26989 fi
26990
26991 cd $ac_popdir
26992 done
26993fi
26994