]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed doc bug
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
6232543b
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by Autoconf 2.50.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7# Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10f2d63a 10
6232543b
VS
11# Be Bourne compatible
12if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13 emulate sh
14 NULLCMD=:
15elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16 set -o posix
17fi
422107f9 18
6232543b
VS
19# Name of the executable.
20as_me=`echo "$0" |sed 's,.*[\\/],,'`
422107f9 21
6232543b
VS
22if expr a : '\(a\)' >/dev/null 2>&1; then
23 as_expr=expr
24else
25 as_expr=false
26fi
10f2d63a 27
6232543b
VS
28rm -f conf$$ conf$$.exe conf$$.file
29echo >conf$$.file
30if ln -s conf$$.file conf$$ 2>/dev/null; then
31 # We could just check for DJGPP; but this test a) works b) is more generic
32 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
33 if test -f conf$$.exe; then
34 # Don't use ln at all; we don't have any links
35 as_ln_s='cp -p'
36 else
37 as_ln_s='ln -s'
38 fi
39elif ln conf$$.file conf$$ 2>/dev/null; then
40 as_ln_s=ln
41else
42 as_ln_s='cp -p'
43fi
44rm -f conf$$ conf$$.exe conf$$.file
6f72b082 45
6232543b 46as_executable_p="test -f"
6f72b082 47
6232543b
VS
48# Support unset when possible.
49if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
50 as_unset=unset
51else
52 as_unset=false
53fi
10f2d63a 54
6232543b
VS
55# NLS nuisances.
56$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
57$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
58$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
59$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
60$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
61$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
62$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
63$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
64
65# IFS
66# We need space, tab and new line, in precisely that order.
67as_nl='
68'
69IFS=" $as_nl"
70
71# CDPATH.
72$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
73
74# Name of the host.
75# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
76# so uname gets run too.
77ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
78
79exec 6>&1
10f2d63a 80
10f2d63a 81#
6232543b
VS
82# Initializations.
83#
10f2d63a 84ac_default_prefix=/usr/local
6232543b
VS
85cross_compiling=no
86subdirs=
87MFLAGS= MAKEFLAGS=
88SHELL=${CONFIG_SHELL-/bin/sh}
89
90# Maximum number of lines to put in a shell here document.
91# This variable seems obsolete. It should probably be removed, and
92# only ac_max_sed_lines should be used.
93: ${ac_max_here_lines=38}
94
95# Avoid depending upon Character Ranges.
96ac_cr_az='abcdefghijklmnopqrstuvwxyz'
97ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
98ac_cr_09='0123456789'
99ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
100
101# Sed expression to map a string onto a valid sh and CPP variable names.
102ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
103ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
104
105ac_unique_file="wx-config.in"
106# Factoring default headers for most tests.
107ac_includes_default="\
108#include <stdio.h>
109#include <sys/types.h>
110#include <sys/stat.h>
111#if STDC_HEADERS
112# include <stdlib.h>
113# include <stddef.h>
114#else
115# if HAVE_STDLIB_H
116# include <stdlib.h>
117# endif
118#endif
119#if HAVE_STRING_H
120# if !STDC_HEADERS && HAVE_MEMORY_H
121# include <memory.h>
122# endif
123# include <string.h>
124#else
125# if HAVE_STRINGS_H
126# include <strings.h>
127# endif
128#endif
129#if HAVE_INTTYPES_H
130# include <inttypes.h>
131#endif
132#if HAVE_UNISTD_H
133# include <unistd.h>
134#endif"
135
136ac_subdirs_all="$ac_subdirs_all demos samples utils contrib"
10f2d63a
VZ
137
138# Initialize some variables set by options.
6232543b
VS
139ac_init_help=
140ac_init_version=false
10f2d63a
VZ
141# The variables have the same names as the options, with
142# dashes changed to underlines.
6232543b 143cache_file=/dev/null
10f2d63a 144exec_prefix=NONE
10f2d63a 145no_create=
10f2d63a
VZ
146no_recursion=
147prefix=NONE
148program_prefix=NONE
149program_suffix=NONE
150program_transform_name=s,x,x,
151silent=
152site=
153srcdir=
10f2d63a
VZ
154verbose=
155x_includes=NONE
156x_libraries=NONE
6232543b
VS
157
158# Installation directory options.
159# These are left unexpanded so users can "make install exec_prefix=/foo"
160# and all the variables that are supposed to be based on exec_prefix
161# by default will actually change.
162# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
163bindir='${exec_prefix}/bin'
164sbindir='${exec_prefix}/sbin'
165libexecdir='${exec_prefix}/libexec'
166datadir='${prefix}/share'
167sysconfdir='${prefix}/etc'
168sharedstatedir='${prefix}/com'
169localstatedir='${prefix}/var'
170libdir='${exec_prefix}/lib'
171includedir='${prefix}/include'
172oldincludedir='/usr/include'
173infodir='${prefix}/info'
174mandir='${prefix}/man'
175
6232543b
VS
176# Identity of this package.
177PACKAGE_NAME=
178PACKAGE_TARNAME=
179PACKAGE_VERSION=
180PACKAGE_STRING=
181PACKAGE_BUGREPORT=
10f2d63a
VZ
182
183ac_prev=
184for ac_option
185do
10f2d63a
VZ
186 # If the previous option needs an argument, assign it.
187 if test -n "$ac_prev"; then
188 eval "$ac_prev=\$ac_option"
189 ac_prev=
190 continue
191 fi
192
6232543b 193 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
194
195 # Accept the important Cygnus configure options, so we can diagnose typos.
196
6232543b 197 case $ac_option in
10f2d63a
VZ
198
199 -bindir | --bindir | --bindi | --bind | --bin | --bi)
200 ac_prev=bindir ;;
201 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6232543b 202 bindir=$ac_optarg ;;
10f2d63a
VZ
203
204 -build | --build | --buil | --bui | --bu)
6232543b 205 ac_prev=build_alias ;;
10f2d63a 206 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6232543b 207 build_alias=$ac_optarg ;;
10f2d63a
VZ
208
209 -cache-file | --cache-file | --cache-fil | --cache-fi \
210 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
211 ac_prev=cache_file ;;
212 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
213 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6232543b
VS
214 cache_file=$ac_optarg ;;
215
216 --config-cache | -C)
217 cache_file=config.cache ;;
10f2d63a
VZ
218
219 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
220 ac_prev=datadir ;;
221 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
222 | --da=*)
6232543b 223 datadir=$ac_optarg ;;
10f2d63a
VZ
224
225 -disable-* | --disable-*)
6232543b 226 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 227 # Reject names that are not valid shell variable names.
6232543b
VS
228 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
229 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
230 { (exit 1); exit 1; }; }
231 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
232 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
233
234 -enable-* | --enable-*)
6232543b 235 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 236 # Reject names that are not valid shell variable names.
6232543b
VS
237 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
238 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
239 { (exit 1); exit 1; }; }
240 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
241 case $ac_option in
242 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
243 *) ac_optarg=yes ;;
244 esac
6232543b 245 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
246
247 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
248 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
249 | --exec | --exe | --ex)
250 ac_prev=exec_prefix ;;
251 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
252 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
253 | --exec=* | --exe=* | --ex=*)
6232543b 254 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
255
256 -gas | --gas | --ga | --g)
257 # Obsolete; use --with-gas.
258 with_gas=yes ;;
259
6232543b
VS
260 -help | --help | --hel | --he | -h)
261 ac_init_help=long ;;
262 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
263 ac_init_help=recursive ;;
264 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
265 ac_init_help=short ;;
10f2d63a
VZ
266
267 -host | --host | --hos | --ho)
6232543b 268 ac_prev=host_alias ;;
10f2d63a 269 -host=* | --host=* | --hos=* | --ho=*)
6232543b 270 host_alias=$ac_optarg ;;
10f2d63a
VZ
271
272 -includedir | --includedir | --includedi | --included | --include \
273 | --includ | --inclu | --incl | --inc)
274 ac_prev=includedir ;;
275 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
276 | --includ=* | --inclu=* | --incl=* | --inc=*)
6232543b 277 includedir=$ac_optarg ;;
10f2d63a
VZ
278
279 -infodir | --infodir | --infodi | --infod | --info | --inf)
280 ac_prev=infodir ;;
281 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6232543b 282 infodir=$ac_optarg ;;
10f2d63a
VZ
283
284 -libdir | --libdir | --libdi | --libd)
285 ac_prev=libdir ;;
286 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6232543b 287 libdir=$ac_optarg ;;
10f2d63a
VZ
288
289 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
290 | --libexe | --libex | --libe)
291 ac_prev=libexecdir ;;
292 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
293 | --libexe=* | --libex=* | --libe=*)
6232543b 294 libexecdir=$ac_optarg ;;
10f2d63a
VZ
295
296 -localstatedir | --localstatedir | --localstatedi | --localstated \
297 | --localstate | --localstat | --localsta | --localst \
298 | --locals | --local | --loca | --loc | --lo)
299 ac_prev=localstatedir ;;
300 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
301 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
302 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6232543b 303 localstatedir=$ac_optarg ;;
10f2d63a
VZ
304
305 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
306 ac_prev=mandir ;;
307 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6232543b 308 mandir=$ac_optarg ;;
10f2d63a
VZ
309
310 -nfp | --nfp | --nf)
311 # Obsolete; use --without-fp.
312 with_fp=no ;;
313
314 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 | --no-cr | --no-c)
316 no_create=yes ;;
317
318 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
319 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
320 no_recursion=yes ;;
321
322 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
323 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
324 | --oldin | --oldi | --old | --ol | --o)
325 ac_prev=oldincludedir ;;
326 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
327 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
328 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6232543b 329 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
330
331 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
332 ac_prev=prefix ;;
333 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6232543b 334 prefix=$ac_optarg ;;
10f2d63a
VZ
335
336 -program-prefix | --program-prefix | --program-prefi | --program-pref \
337 | --program-pre | --program-pr | --program-p)
338 ac_prev=program_prefix ;;
339 -program-prefix=* | --program-prefix=* | --program-prefi=* \
340 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6232543b 341 program_prefix=$ac_optarg ;;
10f2d63a
VZ
342
343 -program-suffix | --program-suffix | --program-suffi | --program-suff \
344 | --program-suf | --program-su | --program-s)
345 ac_prev=program_suffix ;;
346 -program-suffix=* | --program-suffix=* | --program-suffi=* \
347 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6232543b 348 program_suffix=$ac_optarg ;;
10f2d63a
VZ
349
350 -program-transform-name | --program-transform-name \
351 | --program-transform-nam | --program-transform-na \
352 | --program-transform-n | --program-transform- \
353 | --program-transform | --program-transfor \
354 | --program-transfo | --program-transf \
355 | --program-trans | --program-tran \
356 | --progr-tra | --program-tr | --program-t)
357 ac_prev=program_transform_name ;;
358 -program-transform-name=* | --program-transform-name=* \
359 | --program-transform-nam=* | --program-transform-na=* \
360 | --program-transform-n=* | --program-transform-=* \
361 | --program-transform=* | --program-transfor=* \
362 | --program-transfo=* | --program-transf=* \
363 | --program-trans=* | --program-tran=* \
364 | --progr-tra=* | --program-tr=* | --program-t=*)
6232543b 365 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
366
367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
368 | -silent | --silent | --silen | --sile | --sil)
369 silent=yes ;;
370
371 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
372 ac_prev=sbindir ;;
373 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
374 | --sbi=* | --sb=*)
6232543b 375 sbindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -sharedstatedir | --sharedstatedir | --sharedstatedi \
378 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
379 | --sharedst | --shareds | --shared | --share | --shar \
380 | --sha | --sh)
381 ac_prev=sharedstatedir ;;
382 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
383 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
384 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
385 | --sha=* | --sh=*)
6232543b 386 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
387
388 -site | --site | --sit)
389 ac_prev=site ;;
390 -site=* | --site=* | --sit=*)
6232543b 391 site=$ac_optarg ;;
10f2d63a
VZ
392
393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
394 ac_prev=srcdir ;;
395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6232543b 396 srcdir=$ac_optarg ;;
10f2d63a
VZ
397
398 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
399 | --syscon | --sysco | --sysc | --sys | --sy)
400 ac_prev=sysconfdir ;;
401 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
402 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6232543b 403 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
404
405 -target | --target | --targe | --targ | --tar | --ta | --t)
6232543b 406 ac_prev=target_alias ;;
10f2d63a 407 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6232543b 408 target_alias=$ac_optarg ;;
10f2d63a
VZ
409
410 -v | -verbose | --verbose | --verbos | --verbo | --verb)
411 verbose=yes ;;
412
6232543b
VS
413 -version | --version | --versio | --versi | --vers | -V)
414 ac_init_version=: ;;
10f2d63a
VZ
415
416 -with-* | --with-*)
6232543b 417 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 418 # Reject names that are not valid shell variable names.
6232543b
VS
419 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
420 { echo "$as_me: error: invalid package name: $ac_package" >&2
421 { (exit 1); exit 1; }; }
10f2d63a 422 ac_package=`echo $ac_package| sed 's/-/_/g'`
6232543b
VS
423 case $ac_option in
424 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
425 *) ac_optarg=yes ;;
426 esac
6232543b 427 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
428
429 -without-* | --without-*)
6232543b 430 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 431 # Reject names that are not valid shell variable names.
6232543b
VS
432 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
433 { echo "$as_me: error: invalid package name: $ac_package" >&2
434 { (exit 1); exit 1; }; }
435 ac_package=`echo $ac_package | sed 's/-/_/g'`
436 eval "with_$ac_package=no" ;;
10f2d63a
VZ
437
438 --x)
439 # Obsolete; use --with-x.
440 with_x=yes ;;
441
442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443 | --x-incl | --x-inc | --x-in | --x-i)
444 ac_prev=x_includes ;;
445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6232543b 447 x_includes=$ac_optarg ;;
10f2d63a
VZ
448
449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451 ac_prev=x_libraries ;;
452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6232543b 454 x_libraries=$ac_optarg ;;
10f2d63a 455
6232543b
VS
456 -*) { echo "$as_me: error: unrecognized option: $ac_option
457Try \`$0 --help' for more information." >&2
458 { (exit 1); exit 1; }; }
10f2d63a
VZ
459 ;;
460
6232543b
VS
461 *=*)
462 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
463 # Reject names that are not valid shell variable names.
464 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
465 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
466 { (exit 1); exit 1; }; }
467 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
468 eval "$ac_envvar='$ac_optarg'"
469 export $ac_envvar ;;
470
10f2d63a 471 *)
6232543b
VS
472 # FIXME: should be removed in autoconf 3.0.
473 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
474 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
475 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
476 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
477 ;;
478
479 esac
480done
481
482if test -n "$ac_prev"; then
6232543b
VS
483 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
484 { echo "$as_me: error: missing argument to $ac_option" >&2
485 { (exit 1); exit 1; }; }
10f2d63a 486fi
10f2d63a 487
6232543b
VS
488# Be sure to have absolute paths.
489for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
490 localstatedir libdir includedir oldincludedir infodir mandir \
491 exec_prefix prefix
10f2d63a 492do
6232543b
VS
493 eval ac_val=$`echo $ac_var`
494 case $ac_val in
495 [\\/$]* | ?:[\\/]* ) ;;
496 NONE ) ;;
497 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
498 { (exit 1); exit 1; }; };;
10f2d63a
VZ
499 esac
500done
501
6232543b
VS
502# There might be people who depend on the old broken behavior: `$host'
503# used to hold the argument of --host etc.
504build=$build_alias
505host=$host_alias
506target=$target_alias
507
508# FIXME: should be removed in autoconf 3.0.
509if test "x$host_alias" != x; then
510 if test "x$build_alias" = x; then
511 cross_compiling=maybe
512 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
513 If a cross compiler is detected then cross compile mode will be used." >&2
514 elif test "x$build_alias" != "x$host_alias"; then
515 cross_compiling=yes
516 fi
517fi
10f2d63a 518
6232543b
VS
519ac_tool_prefix=
520test -n "$host_alias" && ac_tool_prefix=$host_alias-
10f2d63a 521
6232543b 522test "$silent" = yes && exec 6>/dev/null
10f2d63a
VZ
523
524# Find the source files, if location was not specified.
525if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
528 ac_prog=$0
6232543b 529 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
10f2d63a
VZ
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 srcdir=$ac_confdir
532 if test ! -r $srcdir/$ac_unique_file; then
533 srcdir=..
534 fi
535else
536 ac_srcdir_defaulted=no
537fi
538if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
6232543b
VS
540 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
541 { (exit 1); exit 1; }; }
10f2d63a 542 else
6232543b
VS
543 { echo "$as_me: error: cannot find sources in $srcdir" >&2
544 { (exit 1); exit 1; }; }
10f2d63a
VZ
545 fi
546fi
6232543b
VS
547srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
548ac_env_build_alias_set=${build_alias+set}
549ac_env_build_alias_value=$build_alias
550ac_cv_env_build_alias_set=${build_alias+set}
551ac_cv_env_build_alias_value=$build_alias
552ac_env_host_alias_set=${host_alias+set}
553ac_env_host_alias_value=$host_alias
554ac_cv_env_host_alias_set=${host_alias+set}
555ac_cv_env_host_alias_value=$host_alias
556ac_env_target_alias_set=${target_alias+set}
557ac_env_target_alias_value=$target_alias
558ac_cv_env_target_alias_set=${target_alias+set}
559ac_cv_env_target_alias_value=$target_alias
560ac_env_CC_set=${CC+set}
561ac_env_CC_value=$CC
562ac_cv_env_CC_set=${CC+set}
563ac_cv_env_CC_value=$CC
564ac_env_CFLAGS_set=${CFLAGS+set}
565ac_env_CFLAGS_value=$CFLAGS
566ac_cv_env_CFLAGS_set=${CFLAGS+set}
567ac_cv_env_CFLAGS_value=$CFLAGS
568ac_env_LDFLAGS_set=${LDFLAGS+set}
569ac_env_LDFLAGS_value=$LDFLAGS
570ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
571ac_cv_env_LDFLAGS_value=$LDFLAGS
572ac_env_CPPFLAGS_set=${CPPFLAGS+set}
573ac_env_CPPFLAGS_value=$CPPFLAGS
574ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
575ac_cv_env_CPPFLAGS_value=$CPPFLAGS
576ac_env_CPP_set=${CPP+set}
577ac_env_CPP_value=$CPP
578ac_cv_env_CPP_set=${CPP+set}
579ac_cv_env_CPP_value=$CPP
580ac_env_CXX_set=${CXX+set}
581ac_env_CXX_value=$CXX
582ac_cv_env_CXX_set=${CXX+set}
583ac_cv_env_CXX_value=$CXX
584ac_env_CXXFLAGS_set=${CXXFLAGS+set}
585ac_env_CXXFLAGS_value=$CXXFLAGS
586ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
587ac_cv_env_CXXFLAGS_value=$CXXFLAGS
588ac_env_CXXCPP_set=${CXXCPP+set}
589ac_env_CXXCPP_value=$CXXCPP
590ac_cv_env_CXXCPP_set=${CXXCPP+set}
591ac_cv_env_CXXCPP_value=$CXXCPP
592
593#
594# Report the --help message.
595#
596if test "$ac_init_help" = "long"; then
597 # Omit some internal or obsolete options to make the list less imposing.
598 # This message is too long to be a string in the A/UX 3.1 sh.
599 cat <<EOF
600\`configure' configures this package to adapt to many kinds of systems.
601
602Usage: $0 [OPTION]... [VAR=VALUE]...
603
604To assign environment variables (e.g., CC, CFLAGS...), specify them as
605VAR=VALUE. See below for descriptions of some of the useful variables.
606
607Defaults for the options are specified in brackets.
608
609Configuration:
610 -h, --help display this help and exit
611 --help=short display options specific to this package
612 --help=recursive display the short help of all the included packages
613 -V, --version display version information and exit
614 -q, --quiet, --silent do not print \`checking...' messages
615 --cache-file=FILE cache test results in FILE [disabled]
616 -C, --config-cache alias for \`--cache-file=config.cache'
617 -n, --no-create do not create output files
618 --srcdir=DIR find the sources in DIR [configure dir or \`..']
619
620EOF
621
622 cat <<EOF
623Installation directories:
624 --prefix=PREFIX install architecture-independent files in PREFIX
625 [$ac_default_prefix]
626 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
627 [PREFIX]
628
629By default, \`make install' will install all the files in
630\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
631an installation prefix other than \`$ac_default_prefix' using \`--prefix',
632for instance \`--prefix=\$HOME'.
633
634For better control, use the options below.
635
636Fine tuning of the installation directories:
637 --bindir=DIR user executables [EPREFIX/bin]
638 --sbindir=DIR system admin executables [EPREFIX/sbin]
639 --libexecdir=DIR program executables [EPREFIX/libexec]
640 --datadir=DIR read-only architecture-independent data [PREFIX/share]
641 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
642 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
643 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
644 --libdir=DIR object code libraries [EPREFIX/lib]
645 --includedir=DIR C header files [PREFIX/include]
646 --oldincludedir=DIR C header files for non-gcc [/usr/include]
647 --infodir=DIR info documentation [PREFIX/info]
648 --mandir=DIR man documentation [PREFIX/man]
649EOF
650
651 cat <<\EOF
652
653X features:
654 --x-includes=DIR X include files are in DIR
655 --x-libraries=DIR X library files are in DIR
656
657System types:
658 --build=BUILD configure for building on BUILD [guessed]
659 --host=HOST build programs to run on HOST [BUILD]
660 --target=TARGET configure for building compilers for TARGET [HOST]
661EOF
662fi
663
664if test -n "$ac_init_help"; then
665
666 cat <<\EOF
667
668Optional Features:
669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671--enable-gui use GUI classes
672--enable-shared create shared library code
673--enable-burnt_name create set name in shared library
674--enable-optimise create optimised code
675--enable-debug same as debug_flag and debug_info
676--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
677--enable-debug_info create code with debugging information
678--enable-debug_gdb create code with extra GDB debugging information
679--enable-debug_cntxt use wxDebugContext
680--enable-mem_tracing create code with memory tracing
681--enable-profile create code with profiling information
682--enable-no_rtti create code without RTTI information
683--enable-no_exceptions create code without exceptions information
684--enable-permissive compile code disregarding strict ANSI
685--enable-no_deps create code without dependency information
686--enable-intl use internationalization system
687--enable-config use wxConfig (and derived) classes
688--enable-sockets use socket/network classes
689--enable-ipc use interprocess communication (wxSocket etc.)
690--enable-dialupman use dialup network classes
691--enable-apple_ieee use the Apple IEEE codec
692--enable-timedate use date/time classes
693--enable-wave use wxWave class
694--enable-fraction use wxFraction class
695--enable-dynlib use wxLibrary class for DLL loading
696--enable-longlong use wxLongLong class
697--enable-geometry use geometry class
698--enable-log use logging system
699--enable-streams use wxStream etc classes
700--enable-file use wxFile classes
701--enable-textfile use wxTextFile classes
702--enable-unicode compile wxString with Unicode support
703--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs
704--enable-wxprintfv use wxWindows implementation of vprintf()
705--enable-std_iostreams use standard C++ stream classes
706--enable-filesystem use virtual file systems classes
707--enable-fs_inet use virtual HTTP/FTP filesystems
708--enable-fs_zip use virtual ZIP filesystems
709--enable-zipstream use wxZipInputStream
710--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
711--enable-snglinst use wxSingleInstanceChecker class
712--enable-threads use threads
713--enable-serial use class serialization
714--enable-docview use document view architecture
715--enable-help use help (using external browser at present)
716--enable-constraints use layout-constraints system
717--enable-printarch use printing architecture
718--enable-mdi use multiple document interface architecture
719--enable-postscript use wxPostscriptDC device context (default for gtk+)
720--enable-prologio use Prolog IO library
721--enable-resources use wxWindows resources
722--enable-xresources use X resources for save (default for gtk+)
723--enable-clipboard use wxClipboard classes
724--enable-dnd use Drag'n'Drop classes
725--enable-metafile use win32 metafiles
726--enable-wxtree make wxTree library
727--enable-controls use all usual controls
728--enable-accel use accelerators
729--enable-caret use wxCaret class
730--enable-bmpbutton use wxBitmapButton class
731--enable-checkbox use wxCheckBox class
732--enable-checklst use wxCheckListBox (listbox with checkboxes) class
733--enable-choice use wxChoice class
734--enable-combobox use wxComboBox classes
735--enable-gauge use wxGauge class
736--enable-grid use wxGrid class
737--enable-newgrid use new wxGrid class
738--enable-imaglist use wxImageList class
739--enable-listbox use wxListBox class
740--enable-listctrl use wxListCtrl class
741--enable-notebook use wxNotebook class
742--enable-radiobox use wxRadioBox class
743--enable-radiobtn use wxRadioButton class
744--enable-sash use wxSashWindow class
745--enable-scrollbar use wxScrollBar class and scrollable windows
746--enable-slider use wxSlider class
747--enable-spinbtn use wxSpinButton class
748--enable-spinctrl use wxSpinCtrl class
749--enable-splitter use wxSplitterWindow class
750--enable-statbmp use wxStaticBitmap class
751--enable-statbox use wxStaticBox class
752--enable-statline use wxStaticLine class
753--enable-statusbar use wxStatusBar class
754--enable-tabdialog use wxTabControl class
755--enable-togglebtn use wxToggleButton class
756--enable-toolbar use wxToolBar class
757--enable-tbarnative use native wxToolBar class
758--enable-tbarsmpl use wxToolBarSimple class
759--enable-treectrl use wxTreeCtrl class
760--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)
761--enable-dirdlg use wxDirDialog
762--enable-textdlg use wxTextDialog
763--enable-tipdlg use startup tips
764--enable-progressdlg use wxProgressDialog
765--enable-miniframe use wxMiniFrame class
766--enable-html use wxHTML sub-library
767--enable-tooltips use wxToolTip class
768--enable-splines use spline drawing code
769--enable-validators use wxValidator and derived classes
770--enable-busyinfo use wxBusyInfo
771--enable-joystick compile in joystick support (Linux only)
772--enable-image use wxImage class
773--enable-gif use gif images (GIF file format)
774--enable-pcx use pcx images (PCX file format)
775--enable-pnm use pnm images (PNM file format)
776--enable-xpm use xpm images (XPM file format)
777 --disable-gtktest Do not try to compile and run a test GTK program
778
779Optional Packages:
780 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
781 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
782 --with-gtk use GTK+
783 --with-motif use Motif/Lesstif
784 --with-mac use Mac OS X
785 --with-wine use WINE
786 --with-cygwin use Cygwin for MS-Windows
787 --with-mingw use GCC Minimal MS-Windows
788 --with-pm use OS/2 Presentation Manager
789 --with-gtk-prefix=PFX Prefix where GTK is installed
790 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
791--with-libpng use libpng (PNG image format)
792--with-libjpeg use libjpeg (JPEG file format)
793--with-libtiff use libtiff (TIFF file format)
794--with-freetype use freetype (font rasterizer)
795--with-opengl use OpenGL (or Mesa)
796--with-dmalloc use dmalloc library (www.letters.com/dmalloc)
797--with-zlib use zlib for LZW compression
798--with-odbc use the IODBC and wxODBC classes
799 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
800 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
801 --with-x use the X Window System
802
803Some influential environment variables:
804 CC C compiler command
805 CFLAGS C compiler flags
806 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
807 nonstandard directory <lib dir>
808 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
809 headers in a nonstandard directory <include dir>
810 CPP C preprocessor
811 CXX C++ compiler command
812 CXXFLAGS C++ compiler flags
813 CXXCPP C++ preprocessor
814
815Use these variables to override the choices made by `configure' or to help
816it to find libraries and programs with nonstandard names/locations.
817
818EOF
819fi
820
821if test "$ac_init_help" = "recursive"; then
822 # If there are subdirs, report their specific --help.
823 ac_popdir=`pwd`
824 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
825 cd $ac_subdir
826 # A "../" for each directory in /$ac_subdir.
827 ac_dots=`echo $ac_subdir |
828 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
829
830 case $srcdir in
831 .) # No --srcdir option. We are building in place.
832 ac_sub_srcdir=$srcdir ;;
833 [\\/]* | ?:[\\/]* ) # Absolute path.
834 ac_sub_srcdir=$srcdir/$ac_subdir ;;
835 *) # Relative path.
836 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
837 esac
838
839 # Check for guested configure; otherwise get Cygnus style configure.
840 if test -f $ac_sub_srcdir/configure.gnu; then
841 echo
842 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
843 elif test -f $ac_sub_srcdir/configure; then
844 echo
845 $SHELL $ac_sub_srcdir/configure --help=recursive
846 elif test -f $ac_sub_srcdir/configure.ac ||
847 test -f $ac_sub_srcdir/configure.in; then
848 echo
849 $ac_configure --help
850 else
851 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
852 fi
853 cd $ac_popdir
854 done
855fi
856
857test -n "$ac_init_help" && exit 0
858if $ac_init_version; then
859 cat <<\EOF
860
861Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
862Free Software Foundation, Inc.
863This configure script is free software; the Free Software Foundation
864gives unlimited permission to copy, distribute and modify it.
865EOF
866 exit 0
867fi
868exec 5>config.log
869cat >&5 <<EOF
870This file contains any messages produced by compilers while
871running configure, to aid debugging if configure makes a mistake.
872
873It was created by $as_me, which was
874generated by GNU Autoconf 2.50. Invocation command line was
875
876 $ $0 $@
877
878EOF
879{
880cat <<_ASUNAME
881## ---------- ##
882## Platform. ##
883## ---------- ##
884
885hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
886uname -m = `(uname -m) 2>/dev/null || echo unknown`
887uname -r = `(uname -r) 2>/dev/null || echo unknown`
888uname -s = `(uname -s) 2>/dev/null || echo unknown`
889uname -v = `(uname -v) 2>/dev/null || echo unknown`
890
891/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
892/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
893
894/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
895/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
896/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
897hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
898/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
899/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
900/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
901
902PATH = $PATH
903
904_ASUNAME
905} >&5
906
907cat >&5 <<EOF
908## ------------ ##
909## Core tests. ##
910## ------------ ##
911
912EOF
913
914# Keep a trace of the command line.
915# Strip out --no-create and --no-recursion so they do not pile up.
916# Also quote any args containing shell meta-characters.
917ac_configure_args=
918ac_sep=
919for ac_arg
920do
921 case $ac_arg in
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c) ;;
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
926 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
927 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
928 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
929 ac_sep=" " ;;
930 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
931 ac_sep=" " ;;
932 esac
933 # Get rid of the leading space.
934done
935
936# When interrupted or exit'd, cleanup temporary files, and complete
937# config.log. We remove comments because anyway the quotes in there
938# would cause problems or look ugly.
939trap 'exit_status=$?
940 # Save into config.log some information that might help in debugging.
941 echo >&5
942 echo "## ----------------- ##" >&5
943 echo "## Cache variables. ##" >&5
944 echo "## ----------------- ##" >&5
945 echo >&5
946 # The following way of writing the cache mishandles newlines in values,
947{
948 (set) 2>&1 |
949 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
950 *ac_space=\ *)
951 sed -n \
952 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
953 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
954 ;;
955 *)
956 sed -n \
957 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
958 ;;
959 esac;
960} >&5
961 sed "/^$/d" confdefs.h >conftest.log
962 if test -s conftest.log; then
963 echo >&5
964 echo "## ------------ ##" >&5
965 echo "## confdefs.h. ##" >&5
966 echo "## ------------ ##" >&5
967 echo >&5
968 cat conftest.log >&5
969 fi
970 (echo; echo) >&5
971 test "$ac_signal" != 0 &&
972 echo "$as_me: caught signal $ac_signal" >&5
973 echo "$as_me: exit $exit_status" >&5
974 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
975 exit $exit_status
976 ' 0
977for ac_signal in 1 2 13 15; do
978 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
979done
980ac_signal=0
981
982# confdefs.h avoids OS command line length limits that DEFS can exceed.
983rm -rf conftest* confdefs.h
984# AIX cpp loses on an empty file, so make sure it contains at least a newline.
985echo >confdefs.h
10f2d63a 986
6232543b 987# Let the site file select an alternate cache file if it wants to.
10f2d63a
VZ
988# Prefer explicitly selected file to automatically selected ones.
989if test -z "$CONFIG_SITE"; then
990 if test "x$prefix" != xNONE; then
991 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
992 else
993 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
994 fi
995fi
996for ac_site_file in $CONFIG_SITE; do
997 if test -r "$ac_site_file"; then
6232543b
VS
998 { echo "$as_me:998: loading site script $ac_site_file" >&5
999echo "$as_me: loading site script $ac_site_file" >&6;}
1000 cat "$ac_site_file" >&5
10f2d63a
VZ
1001 . "$ac_site_file"
1002 fi
1003done
1004
1005if test -r "$cache_file"; then
6232543b
VS
1006 # Some versions of bash will fail to source /dev/null (special
1007 # files actually), so we avoid doing that.
1008 if test -f "$cache_file"; then
1009 { echo "$as_me:1009: loading cache $cache_file" >&5
1010echo "$as_me: loading cache $cache_file" >&6;}
1011 case $cache_file in
1012 [\\/]* | ?:[\\/]* ) . $cache_file;;
1013 *) . ./$cache_file;;
1014 esac
1015 fi
10f2d63a 1016else
6232543b
VS
1017 { echo "$as_me:1017: creating cache $cache_file" >&5
1018echo "$as_me: creating cache $cache_file" >&6;}
1019 >$cache_file
1020fi
1021
1022# Check that the precious variables saved in the cache have kept the same
1023# value.
1024ac_suggest_removing_cache=false
1025for ac_var in `(set) 2>&1 |
1026 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1028 eval ac_new_set=\$ac_env_${ac_var}_set
1029 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1030 eval ac_new_val="\$ac_env_${ac_var}_value"
1031 case $ac_old_set,$ac_new_set in
1032 set,)
1033 { echo "$as_me:1033: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1034echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1035 ac_suggest_removing_cache=: ;;
1036 ,set)
1037 { echo "$as_me:1037: WARNING: \`$ac_var' was not set in the previous run" >&5
1038echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1039 ac_suggest_removing_cache=: ;;
1040 ,);;
1041 *)
1042 if test "x$ac_old_val" != "x$ac_new_val"; then
1043 { echo "$as_me:1043: WARNING: \`$ac_var' has changed since the previous run:" >&5
1044echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1045 { echo "$as_me:1045: WARNING: former value: $ac_old_val" >&5
1046echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
1047 { echo "$as_me:1047: WARNING: current value: $ac_new_val" >&5
1048echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
1049 ac_suggest_removing_cache=:
1050 fi;;
1051 esac
1052done
1053if $ac_suggest_removing_cache; then
1054 { echo "$as_me:1054: WARNING: changes in the environment can compromise the build" >&5
1055echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1056 { echo "$as_me:1056: WARNING: consider removing $cache_file and starting over" >&5
1057echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
10f2d63a
VZ
1058fi
1059
1060ac_ext=c
10f2d63a 1061ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
1062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1064ac_compiler_gnu=$ac_cv_c_compiler_gnu
1065
1066case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1067 *c*,-n*) ECHO_N= ECHO_C='
1068' ECHO_T=' ' ;;
1069 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1070 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1071esac
1072echo "#! $SHELL" >conftest.sh
1073echo "exit 0" >>conftest.sh
1074chmod +x conftest.sh
1075if { (echo "$as_me:1075: PATH=\".;.\"; conftest.sh") >&5
1076 (PATH=".;."; conftest.sh) 2>&5
1077 ac_status=$?
1078 echo "$as_me:1078: \$? = $ac_status" >&5
1079 (exit $ac_status); }; then
1080 ac_path_separator=';'
10f2d63a 1081else
6232543b 1082 ac_path_separator=:
10f2d63a 1083fi
6232543b
VS
1084PATH_SEPARATOR="$ac_path_separator"
1085rm -f conftest.sh
10f2d63a 1086
7c66a493
VZ
1087ac_aux_dir=
1088for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1089 if test -f $ac_dir/install-sh; then
1090 ac_aux_dir=$ac_dir
1091 ac_install_sh="$ac_aux_dir/install-sh -c"
1092 break
1093 elif test -f $ac_dir/install.sh; then
1094 ac_aux_dir=$ac_dir
1095 ac_install_sh="$ac_aux_dir/install.sh -c"
1096 break
6232543b
VS
1097 elif test -f $ac_dir/shtool; then
1098 ac_aux_dir=$ac_dir
1099 ac_install_sh="$ac_aux_dir/shtool install -c"
1100 break
7c66a493
VZ
1101 fi
1102done
1103if test -z "$ac_aux_dir"; then
6232543b
VS
1104 { { echo "$as_me:1104: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1105echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1106 { (exit 1); exit 1; }; }
7c66a493 1107fi
6232543b
VS
1108ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1109ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1110ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
7c66a493 1111
6232543b
VS
1112# Make sure we can run config.sub.
1113$ac_config_sub sun4 >/dev/null 2>&1 ||
1114 { { echo "$as_me:1114: error: cannot run $ac_config_sub" >&5
1115echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1116 { (exit 1); exit 1; }; }
1117
1118echo "$as_me:1118: checking build system type" >&5
1119echo $ECHO_N "checking build system type... $ECHO_C" >&6
1120if test "${ac_cv_build+set}" = set; then
1121 echo $ECHO_N "(cached) $ECHO_C" >&6
1122else
1123 ac_cv_build_alias=$build_alias
1124test -z "$ac_cv_build_alias" &&
1125 ac_cv_build_alias=`$ac_config_guess`
1126test -z "$ac_cv_build_alias" &&
1127 { { echo "$as_me:1127: error: cannot guess build type; you must specify one" >&5
1128echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1129 { (exit 1); exit 1; }; }
1130ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1131 { { echo "$as_me:1131: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1132echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1133 { (exit 1); exit 1; }; }
1134
1135fi
1136echo "$as_me:1136: result: $ac_cv_build" >&5
1137echo "${ECHO_T}$ac_cv_build" >&6
1138build=$ac_cv_build
1139build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1140build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1141build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1142
1143echo "$as_me:1143: checking host system type" >&5
1144echo $ECHO_N "checking host system type... $ECHO_C" >&6
1145if test "${ac_cv_host+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1147else
1148 ac_cv_host_alias=$host_alias
1149test -z "$ac_cv_host_alias" &&
1150 ac_cv_host_alias=$ac_cv_build_alias
1151ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1152 { { echo "$as_me:1152: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1153echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1154 { (exit 1); exit 1; }; }
1155
1156fi
1157echo "$as_me:1157: result: $ac_cv_host" >&5
1158echo "${ECHO_T}$ac_cv_host" >&6
1159host=$ac_cv_host
1160host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1161host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1162host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1163
1164echo "$as_me:1164: checking target system type" >&5
1165echo $ECHO_N "checking target system type... $ECHO_C" >&6
1166if test "${ac_cv_target+set}" = set; then
1167 echo $ECHO_N "(cached) $ECHO_C" >&6
1168else
1169 ac_cv_target_alias=$target_alias
1170test "x$ac_cv_target_alias" = "x" &&
1171 ac_cv_target_alias=$ac_cv_host_alias
1172ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1173 { { echo "$as_me:1173: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1174echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1175 { (exit 1); exit 1; }; }
1176
1177fi
1178echo "$as_me:1178: result: $ac_cv_target" >&5
1179echo "${ECHO_T}$ac_cv_target" >&6
1180target=$ac_cv_target
1181target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1182target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1183target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7c66a493
VZ
1184
1185# The aliases save the names the user supplied, while $host etc.
1186# will get canonicalized.
6232543b 1187test -n "$target_alias" &&
7c66a493
VZ
1188 test "$program_prefix$program_suffix$program_transform_name" = \
1189 NONENONEs,x,x, &&
1190 program_prefix=${target_alias}-
1191
10f2d63a 1192WX_MAJOR_VERSION_NUMBER=2
37d403aa 1193WX_MINOR_VERSION_NUMBER=3
665bbe97 1194WX_RELEASE_NUMBER=1
10f2d63a 1195
10f2d63a 1196WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1197WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c
RL
1198
1199WX_CURRENT=0
1200WX_REVISION=0
1201WX_AGE=0
1202
10f2d63a
VZ
1203USE_UNIX=1
1204USE_WIN32=0
b12915c1 1205USE_BEOS=0
1216f52d 1206USE_MAC=0
b12915c1 1207
10f2d63a
VZ
1208USE_LINUX=
1209USE_SGI=
1210USE_HPUX=
1211USE_SYSV=
1212USE_SVR4=
1213USE_AIX=
1214USE_SUN=
1215USE_SOLARIS=
1216USE_SUNOS=
1217USE_ALPHA=
1218USE_OSF=
1219USE_BSD=
1220USE_FREEBSD=
95c8801c 1221USE_OPENBSD=
f6bcfd97 1222USE_NETBSD=
10f2d63a
VZ
1223USE_VMS=
1224USE_ULTRIX=
1225USE_CYGWIN=
1226USE_MINGW=
1227USE_DATA_GENERAL=
1228
ab9b9eab
VZ
1229NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1230
b4085ce6 1231ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
10f2d63a
VZ
1232
1233DEFAULT_wxUSE_GTK=0
1234DEFAULT_wxUSE_MOTIF=0
1235DEFAULT_wxUSE_MSW=0
b4085ce6 1236DEFAULT_wxUSE_MAC=0
10f2d63a 1237DEFAULT_wxUSE_WINE=0
e07802fc 1238DEFAULT_wxUSE_PM=0
10f2d63a
VZ
1239
1240DEFAULT_DEFAULT_wxUSE_GTK=0
1241DEFAULT_DEFAULT_wxUSE_MOTIF=0
1242DEFAULT_DEFAULT_wxUSE_MSW=0
b4085ce6 1243DEFAULT_DEFAULT_wxUSE_MAC=0
10f2d63a 1244DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 1245DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 1246
d6a55c4b
VZ
1247PROGRAM_EXT=
1248
10f2d63a
VZ
1249case "${host}" in
1250 *-hp-hpux* )
1251 USE_HPUX=1
1252 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1253 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
6232543b 1254 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1255#define __HPUX__ 1
1256EOF
1257
1258 ;;
1259 *-*-linux* )
1260 USE_LINUX=1
6232543b 1261 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1262#define __LINUX__ 1
1263EOF
1264
1265 TMP=`uname -m`
1266 if test "x$TMP" = "xalpha"; then
1267 USE_ALPHA=1
6232543b 1268 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1269#define __ALPHA__ 1
1270EOF
1271
1272 fi
1273 DEFAULT_DEFAULT_wxUSE_GTK=1
1274 ;;
1275 *-*-irix5* | *-*-irix6* )
1276 USE_SGI=1
1277 USE_SVR4=1
6232543b 1278 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1279#define __SGI__ 1
1280EOF
1281
6232543b 1282 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1283#define __SVR4__ 1
1284EOF
1285
1286 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1287 ;;
1288 *-*-solaris2* )
1289 USE_SUN=1
1290 USE_SOLARIS=1
1291 USE_SVR4=1
6232543b 1292 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1293#define __SUN__ 1
1294EOF
1295
6232543b 1296 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1297#define __SOLARIS__ 1
1298EOF
1299
6232543b 1300 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1301#define __SVR4__ 1
1302EOF
1303
1304 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1305 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1306 ;;
1307 *-*-sunos4* )
1308 USE_SUN=1
1309 USE_SUNOS=1
1310 USE_BSD=1
6232543b 1311 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1312#define __SUN__ 1
1313EOF
1314
6232543b 1315 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1316#define __SUNOS__ 1
1317EOF
1318
6232543b 1319 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1320#define __BSD__ 1
1321EOF
1322
1323 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1324 ;;
f6bcfd97 1325 *-*-freebsd*)
10f2d63a
VZ
1326 USE_BSD=1
1327 USE_FREEBSD=1
6232543b 1328 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1329#define __FREEBSD__ 1
1330EOF
1331
6232543b 1332 cat >>confdefs.h <<\EOF
10f2d63a 1333#define __BSD__ 1
95c8801c
VS
1334EOF
1335
1336 DEFAULT_DEFAULT_wxUSE_GTK=1
1337 ;;
1338 *-*-openbsd*)
1339 USE_BSD=1
1340 USE_OPENBSD=1
6232543b 1341 cat >>confdefs.h <<\EOF
95c8801c
VS
1342#define __FREEBSD__ 1
1343EOF
1344
6232543b 1345 cat >>confdefs.h <<\EOF
95c8801c 1346#define __OPENBSD__ 1
f6bcfd97
BP
1347EOF
1348
1349 DEFAULT_DEFAULT_wxUSE_GTK=1
1350 ;;
1351 *-*-netbsd*)
1352 USE_BSD=1
1353 USE_NETBSD=1
6232543b 1354 cat >>confdefs.h <<\EOF
f6bcfd97
BP
1355#define __FREEBSD__ 1
1356EOF
1357
6232543b 1358 cat >>confdefs.h <<\EOF
f6bcfd97 1359#define __NETBSD__ 1
10f2d63a
VZ
1360EOF
1361
1362 DEFAULT_DEFAULT_wxUSE_GTK=1
1363 ;;
1364 *-*-osf* )
1365 USE_ALPHA=1
1366 USE_OSF=1
6232543b 1367 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1368#define __ALPHA__ 1
1369EOF
1370
6232543b 1371 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1372#define __OSF__ 1
1373EOF
1374
1375 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1376 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1377 ;;
1378 *-*-dgux5* )
1379 USE_ALPHA=1
1380 USE_SVR4=1
6232543b 1381 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1382#define __ALPHA__ 1
1383EOF
1384
6232543b 1385 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1386#define __SVR4__ 1
1387EOF
1388
1389 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1390 ;;
1391 *-*-sysv5* )
1392 USE_SYSV=1
1393 USE_SVR4=1
6232543b 1394 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1395#define __SYSV__ 1
1396EOF
1397
6232543b 1398 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1399#define __SVR4__ 1
1400EOF
1401
1402 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1403 ;;
1404 *-*-aix* )
1405 USE_AIX=1
1406 USE_SYSV=1
1407 USE_SVR4=1
6232543b 1408 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1409#define __AIX__ 1
1410EOF
1411
6232543b 1412 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1413#define __SYSV__ 1
1414EOF
1415
6232543b 1416 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1417#define __SVR4__ 1
1418EOF
1419
1420 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1421 ;;
1422
1c8183e2 1423 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1424 USE_UNIX=0
1425 USE_WIN32=1
6232543b 1426 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1427#define __WIN32__ 1
1428EOF
1429
6232543b 1430 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1431#define __WIN95__ 1
1432EOF
1433
6232543b 1434 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1435#define __WINDOWS__ 1
1436EOF
1437
6232543b 1438 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1439#define __GNUWIN32__ 1
1440EOF
1441
6232543b 1442 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1443#define STRICT 1
1444EOF
1445
6232543b 1446 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1447#define WINVER 0x0400
1448EOF
1449
cf27ef00 1450 PROGRAM_EXT=".exe"
10f2d63a
VZ
1451 DEFAULT_DEFAULT_wxUSE_MSW=1
1452 ;;
1453
1454 *-pc-os2_emx )
6232543b 1455 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1456#define __EMX__ 1
1457EOF
1458
cf27ef00 1459 PROGRAM_EXT=".exe"
e07802fc 1460 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1461 ;;
1462
b4085ce6
GD
1463 *-*-darwin* )
1464 USE_BSD=1
1465 USE_MAC=1
6232543b 1466 cat >>confdefs.h <<\EOF
b4085ce6
GD
1467#define __MAC__ 1
1468EOF
1469
6232543b 1470 cat >>confdefs.h <<\EOF
b4085ce6
GD
1471#define __BSD__ 1
1472EOF
1473
6232543b 1474 cat >>confdefs.h <<\EOF
b4085ce6
GD
1475#define __UNIX__ 1
1476EOF
1477
1478 DEFAULT_DEFAULT_wxUSE_MAC=1
1479 ;;
1480
b12915c1
VZ
1481 *-*-beos* )
1482 USE_BEOS=1
6232543b 1483 cat >>confdefs.h <<\EOF
b12915c1
VZ
1484#define __BEOS__ 1
1485EOF
1486
1487 ;;
1488
10f2d63a 1489 *)
6232543b
VS
1490 { { echo "$as_me:1490: error: unknown system type ${host}." >&5
1491echo "$as_me: error: unknown system type ${host}." >&2;}
1492 { (exit 1); exit 1; }; }
10f2d63a
VZ
1493esac
1494
1495if test "$USE_UNIX" = 1 ; then
b12915c1 1496 wxUSE_UNIX=yes
6232543b 1497 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1498#define __UNIX__ 1
1499EOF
1500
b12915c1
VZ
1501 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1502 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1503fi
1504
1505if test "$USE_BEOS" = 1; then
1506 SRC_SUBDIRS="$SRC_SUBDIRS be"
1507 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1508fi
1509
1510if test "$USE_LINUX" = 1; then
6232543b
VS
1511 ac_ext=c
1512ac_cpp='$CPP $CPPFLAGS'
1513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1518set dummy ${ac_tool_prefix}gcc; ac_word=$2
1519echo "$as_me:1519: checking for $ac_word" >&5
1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 1523else
6232543b
VS
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1526else
1527 ac_save_IFS=$IFS; IFS=$ac_path_separator
1528ac_dummy="$PATH"
1529for ac_dir in $ac_dummy; do
1530 IFS=$ac_save_IFS
1531 test -z "$ac_dir" && ac_dir=.
1532 $as_executable_p "$ac_dir/$ac_word" || continue
1533ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534echo "$as_me:1534: found $ac_dir/$ac_word" >&5
1535break
1536done
10f2d63a 1537
6232543b
VS
1538fi
1539fi
1540CC=$ac_cv_prog_CC
1541if test -n "$CC"; then
1542 echo "$as_me:1542: result: $CC" >&5
1543echo "${ECHO_T}$CC" >&6
10f2d63a 1544else
6232543b
VS
1545 echo "$as_me:1545: result: no" >&5
1546echo "${ECHO_T}no" >&6
10f2d63a 1547fi
10f2d63a
VZ
1548
1549fi
6232543b
VS
1550if test -z "$ac_cv_prog_CC"; then
1551 ac_ct_CC=$CC
1552 # Extract the first word of "gcc", so it can be a program name with args.
1553set dummy gcc; ac_word=$2
1554echo "$as_me:1554: checking for $ac_word" >&5
1555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561else
1562 ac_save_IFS=$IFS; IFS=$ac_path_separator
1563ac_dummy="$PATH"
1564for ac_dir in $ac_dummy; do
1565 IFS=$ac_save_IFS
1566 test -z "$ac_dir" && ac_dir=.
1567 $as_executable_p "$ac_dir/$ac_word" || continue
1568ac_cv_prog_ac_ct_CC="gcc"
1569echo "$as_me:1569: found $ac_dir/$ac_word" >&5
1570break
1571done
10f2d63a 1572
6232543b
VS
1573fi
1574fi
1575ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576if test -n "$ac_ct_CC"; then
1577 echo "$as_me:1577: result: $ac_ct_CC" >&5
1578echo "${ECHO_T}$ac_ct_CC" >&6
10f2d63a 1579else
6232543b
VS
1580 echo "$as_me:1580: result: no" >&5
1581echo "${ECHO_T}no" >&6
10f2d63a
VZ
1582fi
1583
6232543b
VS
1584 CC=$ac_ct_CC
1585else
1586 CC="$ac_cv_prog_CC"
10f2d63a
VZ
1587fi
1588
6232543b
VS
1589if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1592set dummy ${ac_tool_prefix}cc; ac_word=$2
1593echo "$as_me:1593: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600else
1601 ac_save_IFS=$IFS; IFS=$ac_path_separator
1602ac_dummy="$PATH"
1603for ac_dir in $ac_dummy; do
1604 IFS=$ac_save_IFS
1605 test -z "$ac_dir" && ac_dir=.
1606 $as_executable_p "$ac_dir/$ac_word" || continue
1607ac_cv_prog_CC="${ac_tool_prefix}cc"
1608echo "$as_me:1608: found $ac_dir/$ac_word" >&5
1609break
1610done
1611
1612fi
1613fi
1614CC=$ac_cv_prog_CC
1615if test -n "$CC"; then
1616 echo "$as_me:1616: result: $CC" >&5
1617echo "${ECHO_T}$CC" >&6
1618else
1619 echo "$as_me:1619: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623fi
1624if test -z "$ac_cv_prog_CC"; then
1625 ac_ct_CC=$CC
1626 # Extract the first word of "cc", so it can be a program name with args.
1627set dummy cc; ac_word=$2
1628echo "$as_me:1628: checking for $ac_word" >&5
1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 if test -n "$ac_ct_CC"; then
1634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635else
1636 ac_save_IFS=$IFS; IFS=$ac_path_separator
1637ac_dummy="$PATH"
1638for ac_dir in $ac_dummy; do
1639 IFS=$ac_save_IFS
1640 test -z "$ac_dir" && ac_dir=.
1641 $as_executable_p "$ac_dir/$ac_word" || continue
1642ac_cv_prog_ac_ct_CC="cc"
1643echo "$as_me:1643: found $ac_dir/$ac_word" >&5
1644break
1645done
1646
1647fi
1648fi
1649ac_ct_CC=$ac_cv_prog_ac_ct_CC
1650if test -n "$ac_ct_CC"; then
1651 echo "$as_me:1651: result: $ac_ct_CC" >&5
1652echo "${ECHO_T}$ac_ct_CC" >&6
1653else
1654 echo "$as_me:1654: result: no" >&5
1655echo "${ECHO_T}no" >&6
1656fi
1657
1658 CC=$ac_ct_CC
1659else
1660 CC="$ac_cv_prog_CC"
1661fi
1662
1663fi
1664if test -z "$CC"; then
1665 # Extract the first word of "cc", so it can be a program name with args.
1666set dummy cc; ac_word=$2
1667echo "$as_me:1667: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC="$CC" # Let the user override the test.
1674else
1675 ac_prog_rejected=no
1676 ac_save_IFS=$IFS; IFS=$ac_path_separator
1677ac_dummy="$PATH"
1678for ac_dir in $ac_dummy; do
1679 IFS=$ac_save_IFS
1680 test -z "$ac_dir" && ac_dir=.
1681 $as_executable_p "$ac_dir/$ac_word" || continue
1682if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1683 ac_prog_rejected=yes
1684 continue
1685fi
1686ac_cv_prog_CC="cc"
1687echo "$as_me:1687: found $ac_dir/$ac_word" >&5
1688break
1689done
1690
1691if test $ac_prog_rejected = yes; then
1692 # We found a bogon in the path, so make sure we never use it.
1693 set dummy $ac_cv_prog_CC
1694 shift
1695 if test $# != 0; then
1696 # We chose a different compiler from the bogus one.
1697 # However, it has the same basename, so the bogon will be chosen
1698 # first if we set CC to just the basename; use the full file name.
1699 shift
1700 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1701 shift
1702 ac_cv_prog_CC="$@"
1703 fi
1704fi
1705fi
1706fi
1707CC=$ac_cv_prog_CC
1708if test -n "$CC"; then
1709 echo "$as_me:1709: result: $CC" >&5
1710echo "${ECHO_T}$CC" >&6
1711else
1712 echo "$as_me:1712: result: no" >&5
1713echo "${ECHO_T}no" >&6
1714fi
1715
1716fi
1717if test -z "$CC"; then
1718 if test -n "$ac_tool_prefix"; then
1719 for ac_prog in cl
1720 do
1721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1723echo "$as_me:1723: checking for $ac_word" >&5
1724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725if test "${ac_cv_prog_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728 if test -n "$CC"; then
1729 ac_cv_prog_CC="$CC" # Let the user override the test.
1730else
1731 ac_save_IFS=$IFS; IFS=$ac_path_separator
1732ac_dummy="$PATH"
1733for ac_dir in $ac_dummy; do
1734 IFS=$ac_save_IFS
1735 test -z "$ac_dir" && ac_dir=.
1736 $as_executable_p "$ac_dir/$ac_word" || continue
1737ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1738echo "$as_me:1738: found $ac_dir/$ac_word" >&5
1739break
1740done
1741
1742fi
1743fi
1744CC=$ac_cv_prog_CC
1745if test -n "$CC"; then
1746 echo "$as_me:1746: result: $CC" >&5
1747echo "${ECHO_T}$CC" >&6
1748else
1749 echo "$as_me:1749: result: no" >&5
1750echo "${ECHO_T}no" >&6
1751fi
1752
1753 test -n "$CC" && break
1754 done
1755fi
1756if test -z "$CC"; then
1757 ac_ct_CC=$CC
1758 for ac_prog in cl
1759do
1760 # Extract the first word of "$ac_prog", so it can be a program name with args.
1761set dummy $ac_prog; ac_word=$2
1762echo "$as_me:1762: checking for $ac_word" >&5
1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767 if test -n "$ac_ct_CC"; then
1768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1769else
1770 ac_save_IFS=$IFS; IFS=$ac_path_separator
1771ac_dummy="$PATH"
1772for ac_dir in $ac_dummy; do
1773 IFS=$ac_save_IFS
1774 test -z "$ac_dir" && ac_dir=.
1775 $as_executable_p "$ac_dir/$ac_word" || continue
1776ac_cv_prog_ac_ct_CC="$ac_prog"
1777echo "$as_me:1777: found $ac_dir/$ac_word" >&5
1778break
1779done
1780
1781fi
1782fi
1783ac_ct_CC=$ac_cv_prog_ac_ct_CC
1784if test -n "$ac_ct_CC"; then
1785 echo "$as_me:1785: result: $ac_ct_CC" >&5
1786echo "${ECHO_T}$ac_ct_CC" >&6
1787else
1788 echo "$as_me:1788: result: no" >&5
1789echo "${ECHO_T}no" >&6
1790fi
1791
1792 test -n "$ac_ct_CC" && break
1793done
1794
1795 CC=$ac_ct_CC
1796fi
1797
1798fi
1799
1800test -z "$CC" && { { echo "$as_me:1800: error: no acceptable cc found in \$PATH" >&5
1801echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1802 { (exit 1); exit 1; }; }
1803
1804cat >conftest.$ac_ext <<_ACEOF
1805#line 1805 "configure"
1806#include "confdefs.h"
1807
1808int
1809main ()
1810{
1811
1812 ;
1813 return 0;
1814}
1815_ACEOF
1816ac_clean_files_save=$ac_clean_files
1817ac_clean_files="$ac_clean_files a.out a.exe"
1818# Try to create an executable without -o first, disregard a.out.
1819# It will help us diagnose broken compiler, and finding out an intuition
1820# of exeext.
1821echo "$as_me:1821: checking for C compiler default output" >&5
1822echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1823ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1824if { (eval echo "$as_me:1824: \"$ac_link_default\"") >&5
1825 (eval $ac_link_default) 2>&5
1826 ac_status=$?
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1830 case $ac_file in
1831 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1832 a.out ) # We found the default executable, but exeext='' is most
1833 # certainly right.
1834 break;;
1835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 export ac_cv_exeext
1837 break;;
1838 * ) break;;
1839 esac
1840done
1841else
1842 echo "$as_me: failed program was:" >&5
1843cat conftest.$ac_ext >&5
1844{ { echo "$as_me:1844: error: C compiler cannot create executables" >&5
1845echo "$as_me: error: C compiler cannot create executables" >&2;}
1846 { (exit 77); exit 77; }; }
1847fi
1848
1849ac_exeext=$ac_cv_exeext
1850echo "$as_me:1850: result: $ac_file" >&5
1851echo "${ECHO_T}$ac_file" >&6
1852
1853# Check the compiler produces executables we can run. If not, either
1854# the compiler is broken, or we cross compile.
1855echo "$as_me:1855: checking whether the C compiler works" >&5
1856echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1857# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1858# If not cross compiling, check that we can run a simple program.
1859if test "$cross_compiling" != yes; then
1860 if { ac_try='./$ac_file'
1861 { (eval echo "$as_me:1861: \"$ac_try\"") >&5
1862 (eval $ac_try) 2>&5
1863 ac_status=$?
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); }; }; then
1866 cross_compiling=no
1867 else
1868 if test "$cross_compiling" = maybe; then
1869 cross_compiling=yes
1870 else
1871 { { echo "$as_me:1871: error: cannot run C compiled programs.
1872If you meant to cross compile, use \`--host'." >&5
1873echo "$as_me: error: cannot run C compiled programs.
1874If you meant to cross compile, use \`--host'." >&2;}
1875 { (exit 1); exit 1; }; }
1876 fi
1877 fi
1878fi
1879echo "$as_me:1879: result: yes" >&5
1880echo "${ECHO_T}yes" >&6
1881
1882rm -f a.out a.exe conftest$ac_cv_exeext
1883ac_clean_files=$ac_clean_files_save
1884# Check the compiler produces executables we can run. If not, either
1885# the compiler is broken, or we cross compile.
1886echo "$as_me:1886: checking whether we are cross compiling" >&5
1887echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1888echo "$as_me:1888: result: $cross_compiling" >&5
1889echo "${ECHO_T}$cross_compiling" >&6
1890
1891echo "$as_me:1891: checking for executable suffix" >&5
1892echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1893if { (eval echo "$as_me:1893: \"$ac_link\"") >&5
1894 (eval $ac_link) 2>&5
1895 ac_status=$?
1896 echo "$as_me:1896: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1899# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1900# work properly (i.e., refer to `conftest.exe'), while it won't with
1901# `rm'.
1902for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1903 case $ac_file in
1904 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906 export ac_cv_exeext
1907 break;;
1908 * ) break;;
1909 esac
1910done
1911else
1912 { { echo "$as_me:1912: error: cannot compute EXEEXT: cannot compile and link" >&5
1913echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1914 { (exit 1); exit 1; }; }
1915fi
1916
1917rm -f conftest$ac_cv_exeext
1918echo "$as_me:1918: result: $ac_cv_exeext" >&5
1919echo "${ECHO_T}$ac_cv_exeext" >&6
1920
1921rm -f conftest.$ac_ext
1922EXEEXT=$ac_cv_exeext
1923ac_exeext=$EXEEXT
1924echo "$as_me:1924: checking for object suffix" >&5
1925echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1926if test "${ac_cv_objext+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
1929 cat >conftest.$ac_ext <<_ACEOF
1930#line 1930 "configure"
1931#include "confdefs.h"
1932
1933int
1934main ()
1935{
1936
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941rm -f conftest.o conftest.obj
1942if { (eval echo "$as_me:1942: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1944 ac_status=$?
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1948 case $ac_file in
1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1951 break;;
1952 esac
1953done
1954else
1955 echo "$as_me: failed program was:" >&5
1956cat conftest.$ac_ext >&5
1957{ { echo "$as_me:1957: error: cannot compute OBJEXT: cannot compile" >&5
1958echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1959 { (exit 1); exit 1; }; }
1960fi
1961
1962rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963fi
1964echo "$as_me:1964: result: $ac_cv_objext" >&5
1965echo "${ECHO_T}$ac_cv_objext" >&6
1966OBJEXT=$ac_cv_objext
1967ac_objext=$OBJEXT
1968echo "$as_me:1968: checking whether we are using the GNU C compiler" >&5
1969echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
1974#line 1974 "configure"
1975#include "confdefs.h"
1976
1977int
1978main ()
1979{
1980#ifndef __GNUC__
1981 choke me
1982#endif
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:1989: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>&5
1991 ac_status=$?
1992 echo "$as_me:1992: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
1994 { ac_try='test -s conftest.$ac_objext'
1995 { (eval echo "$as_me:1995: \"$ac_try\"") >&5
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:1998: \$? = $ac_status" >&5
1999 (exit $ac_status); }; }; then
2000 ac_compiler_gnu=yes
2001else
2002 echo "$as_me: failed program was:" >&5
2003cat conftest.$ac_ext >&5
2004ac_compiler_gnu=no
2005fi
2006rm -f conftest.$ac_objext conftest.$ac_ext
2007ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009fi
2010echo "$as_me:2010: result: $ac_cv_c_compiler_gnu" >&5
2011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012GCC=`test $ac_compiler_gnu = yes && echo yes`
2013ac_test_CFLAGS=${CFLAGS+set}
2014ac_save_CFLAGS=$CFLAGS
2015CFLAGS="-g"
2016echo "$as_me:2016: checking whether $CC accepts -g" >&5
2017echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021 cat >conftest.$ac_ext <<_ACEOF
2022#line 2022 "configure"
2023#include "confdefs.h"
2024
2025int
2026main ()
2027{
2028
2029 ;
2030 return 0;
2031}
2032_ACEOF
2033rm -f conftest.$ac_objext
2034if { (eval echo "$as_me:2034: \"$ac_compile\"") >&5
2035 (eval $ac_compile) 2>&5
2036 ac_status=$?
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit $ac_status); } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:2040: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_cv_prog_cc_g=yes
2046else
2047 echo "$as_me: failed program was:" >&5
2048cat conftest.$ac_ext >&5
2049ac_cv_prog_cc_g=no
2050fi
2051rm -f conftest.$ac_objext conftest.$ac_ext
2052fi
2053echo "$as_me:2053: result: $ac_cv_prog_cc_g" >&5
2054echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS=$ac_save_CFLAGS
2057elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2059 CFLAGS="-g -O2"
2060 else
2061 CFLAGS="-g"
2062 fi
2063else
2064 if test "$GCC" = yes; then
2065 CFLAGS="-O2"
2066 else
2067 CFLAGS=
2068 fi
2069fi
2070# Some people use a C++ compiler to compile C. Since we use `exit',
2071# in C++ we need to declare it. In case someone uses the same compiler
2072# for both compiling C and C++ we need to have the C++ compiler decide
2073# the declaration of exit, since it's the most demanding environment.
2074cat >conftest.$ac_ext <<_ACEOF
2075#ifndef __cplusplus
2076 choke me
2077#endif
2078_ACEOF
2079rm -f conftest.$ac_objext
2080if { (eval echo "$as_me:2080: \"$ac_compile\"") >&5
2081 (eval $ac_compile) 2>&5
2082 ac_status=$?
2083 echo "$as_me:2083: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -s conftest.$ac_objext'
2086 { (eval echo "$as_me:2086: \"$ac_try\"") >&5
2087 (eval $ac_try) 2>&5
2088 ac_status=$?
2089 echo "$as_me:2089: \$? = $ac_status" >&5
2090 (exit $ac_status); }; }; then
2091 for ac_declaration in \
2092 ''\
2093 '#include <stdlib.h>' \
2094 'extern "C" void std::exit (int) throw (); using std::exit;' \
2095 'extern "C" void std::exit (int); using std::exit;' \
2096 'extern "C" void exit (int) throw ();' \
2097 'extern "C" void exit (int);' \
2098 'void exit (int);'
2099do
2100 cat >conftest.$ac_ext <<_ACEOF
2101#line 2101 "configure"
2102#include "confdefs.h"
2103#include <stdlib.h>
2104$ac_declaration
2105int
2106main ()
2107{
2108exit (42);
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113rm -f conftest.$ac_objext
2114if { (eval echo "$as_me:2114: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>&5
2116 ac_status=$?
2117 echo "$as_me:2117: \$? = $ac_status" >&5
2118 (exit $ac_status); } &&
2119 { ac_try='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:2120: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:2123: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 :
2126else
2127 echo "$as_me: failed program was:" >&5
2128cat conftest.$ac_ext >&5
2129continue
2130fi
2131rm -f conftest.$ac_objext conftest.$ac_ext
2132 cat >conftest.$ac_ext <<_ACEOF
2133#line 2133 "configure"
2134#include "confdefs.h"
2135$ac_declaration
2136int
2137main ()
2138{
2139exit (42);
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2147 ac_status=$?
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 break
2157else
2158 echo "$as_me: failed program was:" >&5
2159cat conftest.$ac_ext >&5
2160fi
2161rm -f conftest.$ac_objext conftest.$ac_ext
2162done
2163echo '#ifdef __cplusplus' >>confdefs.h
2164echo $ac_declaration >>confdefs.h
2165echo '#endif' >>confdefs.h
2166
2167else
2168 echo "$as_me: failed program was:" >&5
2169cat conftest.$ac_ext >&5
2170fi
2171rm -f conftest.$ac_objext conftest.$ac_ext
2172ac_ext=c
2173ac_cpp='$CPP $CPPFLAGS'
2174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176ac_compiler_gnu=$ac_cv_c_compiler_gnu
2177
2178echo "$as_me:2178: checking for gettext in -lc" >&5
2179echo $ECHO_N "checking for gettext in -lc... $ECHO_C" >&6
2180if test "${ac_cv_lib_c_gettext+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 ac_check_lib_save_LIBS=$LIBS
2184LIBS="-lc $LIBS"
2185cat >conftest.$ac_ext <<_ACEOF
2186#line 2186 "configure"
2187#include "confdefs.h"
2188
2189/* Override any gcc2 internal prototype to avoid an error. */
2190#ifdef __cplusplus
2191extern "C"
2192#endif
2193/* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2195char gettext ();
2196int
2197main ()
2198{
2199gettext ();
2200 ;
2201 return 0;
2202}
2203_ACEOF
2204rm -f conftest.$ac_objext conftest$ac_exeext
2205if { (eval echo "$as_me:2205: \"$ac_link\"") >&5
2206 (eval $ac_link) 2>&5
2207 ac_status=$?
2208 echo "$as_me:2208: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
2210 { ac_try='test -s conftest$ac_exeext'
2211 { (eval echo "$as_me:2211: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:2214: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 ac_cv_lib_c_gettext=yes
2217else
2218 echo "$as_me: failed program was:" >&5
2219cat conftest.$ac_ext >&5
2220ac_cv_lib_c_gettext=no
2221fi
2222rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2223LIBS=$ac_check_lib_save_LIBS
2224fi
2225echo "$as_me:2225: result: $ac_cv_lib_c_gettext" >&5
2226echo "${ECHO_T}$ac_cv_lib_c_gettext" >&6
2227if test $ac_cv_lib_c_gettext = yes; then
2228 cat >>confdefs.h <<\EOF
2229#define wxHAVE_GLIBC2 1
2230EOF
2231
2232fi
2233
2234fi
10f2d63a 2235
10f2d63a
VZ
2236 wx_arg_cache_file="configarg.cache"
2237 echo "loading argument cache $wx_arg_cache_file"
2238 rm -f ${wx_arg_cache_file}.tmp
2239 touch ${wx_arg_cache_file}.tmp
2240 touch ${wx_arg_cache_file}
10f2d63a
VZ
2241
2242DEBUG_CONFIGURE=0
2243if test $DEBUG_CONFIGURE = 1; then
2244 DEFAULT_wxUSE_THREADS=yes
2245
2246 DEFAULT_wxUSE_SHARED=yes
00cf1208 2247 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
2248 DEFAULT_wxUSE_OPTIMISE=yes
2249 DEFAULT_wxUSE_PROFILE=no
2250 DEFAULT_wxUSE_NO_DEPS=no
2251 DEFAULT_wxUSE_NO_RTTI=no
2252 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2253 DEFAULT_wxUSE_PERMISSIVE=no
2254 DEFAULT_wxUSE_DEBUG_FLAG=yes
2255 DEFAULT_wxUSE_DEBUG_INFO=yes
2256 DEFAULT_wxUSE_DEBUG_GDB=yes
2257 DEFAULT_wxUSE_MEM_TRACING=no
2258 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2259 DEFAULT_wxUSE_DMALLOC=no
2260 DEFAULT_wxUSE_APPLE_IEEE=no
2261
2262 DEFAULT_wxUSE_LOG=yes
2263
2264 DEFAULT_wxUSE_GUI=yes
2265
2266 DEFAULT_wxUSE_ZLIB=no
2267 DEFAULT_wxUSE_LIBPNG=no
2268 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2269 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 2270 DEFAULT_wxUSE_ODBC=no
3fed1840 2271 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 2272 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2273
eb4efbdc 2274 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2275 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a
VZ
2276 DEFAULT_wxUSE_STD_IOSTREAM=no
2277 DEFAULT_wxUSE_FILE=no
2278 DEFAULT_wxUSE_TEXTFILE=no
2279 DEFAULT_wxUSE_TIMEDATE=no
2280 DEFAULT_wxUSE_WAVE=no
2281 DEFAULT_wxUSE_INTL=no
2282 DEFAULT_wxUSE_CONFIG=no
2283 DEFAULT_wxUSE_STREAMS=no
2284 DEFAULT_wxUSE_SOCKETS=no
2285 DEFAULT_wxUSE_DIALUP_MANAGER=no
2286 DEFAULT_wxUSE_SERIAL=no
2287 DEFAULT_wxUSE_JOYSTICK=no
2288 DEFAULT_wxUSE_DYNLIB_CLASS=no
2289 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2290 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2291
2292 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2293 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2294 DEFAULT_wxUSE_POSTSCRIPT=no
2295
2296 DEFAULT_wxUSE_X_RESOURCES=no
2297 DEFAULT_wxUSE_CLIPBOARD=no
2298 DEFAULT_wxUSE_TOOLTIPS=no
2299 DEFAULT_wxUSE_DRAG_AND_DROP=no
2300 DEFAULT_wxUSE_SPLINES=no
2301
2302 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2303 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2304 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2305
2306 DEFAULT_wxUSE_PROLOGIO=no
2307 DEFAULT_wxUSE_RESOURCES=no
2308 DEFAULT_wxUSE_CONSTRAINTS=no
2309 DEFAULT_wxUSE_IPC=no
2310 DEFAULT_wxUSE_HELP=no
2311 DEFAULT_wxUSE_WXTREE=no
2312 DEFAULT_wxUSE_METAFILE=no
2313
2314 DEFAULT_wxUSE_COMMONDLGS=no
2315 DEFAULT_wxUSE_DIRDLG=no
2316 DEFAULT_wxUSE_TEXTDLG=no
2317 DEFAULT_wxUSE_STARTUP_TIPS=no
2318 DEFAULT_wxUSE_PROGRESSDLG=no
2319 DEFAULT_wxUSE_MINIFRAME=no
2320 DEFAULT_wxUSE_HTML=no
24528b0c 2321 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2322 DEFAULT_wxUSE_FS_INET=no
2323 DEFAULT_wxUSE_FS_ZIP=no
2324 DEFAULT_wxUSE_BUSYINFO=no
2325 DEFAULT_wxUSE_ZIPSTREAM=no
2326 DEFAULT_wxUSE_VALIDATORS=yes
2327
2328 DEFAULT_wxUSE_ACCEL=no
2329 DEFAULT_wxUSE_CARET=no
2330 DEFAULT_wxUSE_BMPBUTTON=no
2331 DEFAULT_wxUSE_CHECKBOX=no
2332 DEFAULT_wxUSE_CHECKLST=no
2333 DEFAULT_wxUSE_CHOICE=yes
2334 DEFAULT_wxUSE_COMBOBOX=no
2335 DEFAULT_wxUSE_GAUGE=no
2336 DEFAULT_wxUSE_GRID=no
2337 DEFAULT_wxUSE_NEW_GRID=no
2338 DEFAULT_wxUSE_IMAGLIST=no
2339 DEFAULT_wxUSE_LISTBOX=no
2340 DEFAULT_wxUSE_LISTCTRL=no
2341 DEFAULT_wxUSE_NOTEBOOK=no
2342 DEFAULT_wxUSE_RADIOBOX=no
2343 DEFAULT_wxUSE_RADIOBTN=no
2344 DEFAULT_wxUSE_SASH=no
2345 DEFAULT_wxUSE_SCROLLBAR=no
2346 DEFAULT_wxUSE_SLIDER=no
2347 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2348 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2349 DEFAULT_wxUSE_SPLITTER=no
2350 DEFAULT_wxUSE_STATBMP=no
2351 DEFAULT_wxUSE_STATBOX=no
2352 DEFAULT_wxUSE_STATLINE=no
2353 DEFAULT_wxUSE_STATUSBAR=yes
2354 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 2355 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2356 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2357 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2358 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
2359 DEFAULT_wxUSE_TREECTRL=no
2360
2361 DEFAULT_wxUSE_UNICODE=no
2362 DEFAULT_wxUSE_WCSRTOMBS=no
2363
0046ff7c 2364 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2365 DEFAULT_wxUSE_GIF=no
2366 DEFAULT_wxUSE_PCX=no
2367 DEFAULT_wxUSE_PNM=no
0046ff7c 2368 DEFAULT_wxUSE_XPM=no
10f2d63a
VZ
2369else
2370 DEFAULT_wxUSE_THREADS=yes
2371
2372 DEFAULT_wxUSE_SHARED=yes
00cf1208 2373 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
2374 DEFAULT_wxUSE_OPTIMISE=yes
2375 DEFAULT_wxUSE_PROFILE=no
2376 DEFAULT_wxUSE_NO_DEPS=no
2377 DEFAULT_wxUSE_NO_RTTI=no
2378 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2379 DEFAULT_wxUSE_PERMISSIVE=no
2380 DEFAULT_wxUSE_DEBUG_FLAG=no
2381 DEFAULT_wxUSE_DEBUG_INFO=no
2382 DEFAULT_wxUSE_DEBUG_GDB=no
2383 DEFAULT_wxUSE_MEM_TRACING=no
2384 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2385 DEFAULT_wxUSE_DMALLOC=no
2386 DEFAULT_wxUSE_APPLE_IEEE=yes
2387
2388 DEFAULT_wxUSE_LOG=yes
2389
2390 DEFAULT_wxUSE_GUI=yes
2391
2392 DEFAULT_wxUSE_ZLIB=yes
2393 DEFAULT_wxUSE_LIBPNG=yes
2394 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2395 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2396 DEFAULT_wxUSE_ODBC=no
3fed1840 2397 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 2398 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2399
eb4efbdc 2400 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2401 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a
VZ
2402 DEFAULT_wxUSE_STD_IOSTREAM=no
2403 DEFAULT_wxUSE_FILE=yes
2404 DEFAULT_wxUSE_TEXTFILE=yes
2405 DEFAULT_wxUSE_TIMEDATE=yes
2406 DEFAULT_wxUSE_WAVE=no
2407 DEFAULT_wxUSE_INTL=yes
2408 DEFAULT_wxUSE_CONFIG=yes
2409 DEFAULT_wxUSE_STREAMS=yes
2410 DEFAULT_wxUSE_SOCKETS=yes
2411 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2412 DEFAULT_wxUSE_SERIAL=yes
2413 DEFAULT_wxUSE_JOYSTICK=yes
2414 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 2415 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2416 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2417
2418 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2419 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2420 DEFAULT_wxUSE_POSTSCRIPT=yes
2421
2422 DEFAULT_wxUSE_X_RESOURCES=no
2423 DEFAULT_wxUSE_CLIPBOARD=yes
2424 DEFAULT_wxUSE_TOOLTIPS=yes
2425 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2426 DEFAULT_wxUSE_SPLINES=yes
2427
2428 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2429 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2430 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2431
2432 DEFAULT_wxUSE_PROLOGIO=yes
2433 DEFAULT_wxUSE_RESOURCES=yes
2434 DEFAULT_wxUSE_CONSTRAINTS=yes
2435 DEFAULT_wxUSE_IPC=yes
2436 DEFAULT_wxUSE_HELP=yes
2437 DEFAULT_wxUSE_WXTREE=yes
2438 DEFAULT_wxUSE_METAFILE=yes
2439
2440 DEFAULT_wxUSE_COMMONDLGS=yes
2441 DEFAULT_wxUSE_DIRDLG=yes
2442 DEFAULT_wxUSE_TEXTDLG=yes
2443 DEFAULT_wxUSE_STARTUP_TIPS=yes
2444 DEFAULT_wxUSE_PROGRESSDLG=yes
2445 DEFAULT_wxUSE_MINIFRAME=yes
2446 DEFAULT_wxUSE_HTML=yes
24528b0c 2447 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2448 DEFAULT_wxUSE_FS_INET=yes
2449 DEFAULT_wxUSE_FS_ZIP=yes
2450 DEFAULT_wxUSE_BUSYINFO=yes
2451 DEFAULT_wxUSE_ZIPSTREAM=yes
2452 DEFAULT_wxUSE_VALIDATORS=yes
2453
2454 DEFAULT_wxUSE_ACCEL=yes
2455 DEFAULT_wxUSE_CARET=yes
2456 DEFAULT_wxUSE_BMPBUTTON=yes
2457 DEFAULT_wxUSE_CHECKBOX=yes
2458 DEFAULT_wxUSE_CHECKLST=yes
2459 DEFAULT_wxUSE_CHOICE=yes
2460 DEFAULT_wxUSE_COMBOBOX=yes
2461 DEFAULT_wxUSE_GAUGE=yes
2462 DEFAULT_wxUSE_GRID=yes
cc977e5f 2463 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
2464 DEFAULT_wxUSE_IMAGLIST=yes
2465 DEFAULT_wxUSE_LISTBOX=yes
2466 DEFAULT_wxUSE_LISTCTRL=yes
2467 DEFAULT_wxUSE_NOTEBOOK=yes
2468 DEFAULT_wxUSE_RADIOBOX=yes
2469 DEFAULT_wxUSE_RADIOBTN=yes
2470 DEFAULT_wxUSE_SASH=yes
2471 DEFAULT_wxUSE_SCROLLBAR=yes
2472 DEFAULT_wxUSE_SLIDER=yes
2473 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2474 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2475 DEFAULT_wxUSE_SPLITTER=yes
2476 DEFAULT_wxUSE_STATBMP=yes
2477 DEFAULT_wxUSE_STATBOX=yes
2478 DEFAULT_wxUSE_STATLINE=yes
2479 DEFAULT_wxUSE_STATUSBAR=yes
2480 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 2481 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2482 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2483 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2484 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
2485 DEFAULT_wxUSE_TREECTRL=yes
2486
2487 DEFAULT_wxUSE_UNICODE=no
2488 DEFAULT_wxUSE_WCSRTOMBS=no
2489
0046ff7c 2490 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2491 DEFAULT_wxUSE_GIF=yes
2492 DEFAULT_wxUSE_PCX=yes
2493 DEFAULT_wxUSE_PNM=yes
0046ff7c 2494 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
2495fi
2496
10f2d63a
VZ
2497for toolkit in `echo $ALL_TOOLKITS`; do
2498 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 has_toolkit_in_cache=1
2501 eval "DEFAULT_$LINE"
2502 eval "CACHE_$toolkit=1"
2503 fi
2504done
2505
6232543b
VS
2506 echo "$as_me:2506: checking \"for --enable-gui\"" >&5
2507echo $ECHO_N "checking \"for --enable-gui\"... $ECHO_C" >&6
10f2d63a
VZ
2508 no_cache=0
2509 # Check whether --enable-gui or --disable-gui was given.
2510if test "${enable_gui+set}" = set; then
2511 enableval="$enable_gui"
6232543b 2512
10f2d63a
VZ
2513 if test "$enableval" = yes; then
2514 ac_cv_use_gui='wxUSE_GUI=yes'
2515 else
2516 ac_cv_use_gui='wxUSE_GUI=no'
2517 fi
6232543b 2518
10f2d63a 2519else
6232543b 2520
10f2d63a
VZ
2521 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2522 if test "x$LINE" != x ; then
2523 eval "DEFAULT_$LINE"
2524 else
2525 no_cache=1
2526 fi
2527
2528 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2529
6232543b 2530fi;
10f2d63a
VZ
2531
2532 eval "$ac_cv_use_gui"
2533 if test "$no_cache" != 1; then
2534 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2535 fi
2536
2537 if test "$wxUSE_GUI" = yes; then
6232543b
VS
2538 echo "$as_me:2538: result: yes" >&5
2539echo "${ECHO_T}yes" >&6
10f2d63a 2540 else
6232543b
VS
2541 echo "$as_me:2541: result: no" >&5
2542echo "${ECHO_T}no" >&6
10f2d63a 2543 fi
10f2d63a 2544
b12915c1 2545if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
2546
2547# Check whether --with-gtk or --without-gtk was given.
2548if test "${with_gtk+set}" = set; then
2549 withval="$with_gtk"
2550 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
6232543b 2551fi;
10f2d63a
VZ
2552
2553# Check whether --with-motif or --without-motif was given.
2554if test "${with_motif+set}" = set; then
2555 withval="$with_motif"
2556 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
6232543b 2557fi;
10f2d63a 2558
b4085ce6
GD
2559# Check whether --with-mac or --without-mac was given.
2560if test "${with_mac+set}" = set; then
2561 withval="$with_mac"
2562 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
6232543b 2563fi;
b4085ce6 2564
10f2d63a
VZ
2565# Check whether --with-wine or --without-wine was given.
2566if test "${with_wine+set}" = set; then
2567 withval="$with_wine"
2568 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
6232543b 2569fi;
10f2d63a
VZ
2570
2571# Check whether --with-cygwin or --without-cygwin was given.
2572if test "${with_cygwin+set}" = set; then
2573 withval="$with_cygwin"
2574 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
6232543b 2575fi;
10f2d63a
VZ
2576
2577# Check whether --with-mingw or --without-mingw was given.
2578if test "${with_mingw+set}" = set; then
2579 withval="$with_mingw"
2580 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
6232543b 2581fi;
10f2d63a 2582
e07802fc
VZ
2583# Check whether --with-pm or --without-pm was given.
2584if test "${with_pm+set}" = set; then
2585 withval="$with_pm"
2586 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
6232543b 2587fi;
10f2d63a
VZ
2588
2589# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2590if test "${with_gtk_prefix+set}" = set; then
2591 withval="$with_gtk_prefix"
2592 gtk_config_prefix="$withval"
2593else
2594 gtk_config_prefix=""
6232543b 2595fi;
10f2d63a
VZ
2596
2597# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2598if test "${with_gtk_exec_prefix+set}" = set; then
2599 withval="$with_gtk_exec_prefix"
2600 gtk_config_exec_prefix="$withval"
2601else
2602 gtk_config_exec_prefix=""
6232543b 2603fi;
10f2d63a 2604
6232543b
VS
2605 echo "$as_me:2605: checking \"for --with-libpng\"" >&5
2606echo $ECHO_N "checking \"for --with-libpng\"... $ECHO_C" >&6
10f2d63a 2607 no_cache=0
6232543b
VS
2608
2609# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2610if test "${with_libpng+set}" = set; then
2611 withval="$with_libpng"
6232543b 2612
10f2d63a 2613 if test "$withval" = yes; then
b12915c1 2614 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2615 elif test "$withval" = no; then
b12915c1 2616 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2617 elif test "$withval" = sys; then
2618 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2619 else
6232543b
VS
2620 { { echo "$as_me:2620: error: Invalid value for --with-libpng: should be yes, no or sys" >&5
2621echo "$as_me: error: Invalid value for --with-libpng: should be yes, no or sys" >&2;}
2622 { (exit 1); exit 1; }; }
10f2d63a 2623 fi
6232543b 2624
10f2d63a 2625else
6232543b 2626
b12915c1 2627 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
b12915c1 2634 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2635
6232543b 2636fi;
10f2d63a 2637
b12915c1 2638 eval "$ac_cv_use_libpng"
10f2d63a 2639 if test "$no_cache" != 1; then
b12915c1 2640 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2641 fi
2642
b12915c1 2643 if test "$wxUSE_LIBPNG" = yes; then
6232543b
VS
2644 echo "$as_me:2644: result: yes" >&5
2645echo "${ECHO_T}yes" >&6
422107f9 2646 elif test "$wxUSE_LIBPNG" = no; then
6232543b
VS
2647 echo "$as_me:2647: result: no" >&5
2648echo "${ECHO_T}no" >&6
422107f9 2649 elif test "$wxUSE_LIBPNG" = sys; then
6232543b
VS
2650 echo "$as_me:2650: result: system version" >&5
2651echo "${ECHO_T}system version" >&6
422107f9 2652 else
6232543b
VS
2653 { { echo "$as_me:2653: error: Invalid value for --with-libpng: should be yes, no or sys" >&5
2654echo "$as_me: error: Invalid value for --with-libpng: should be yes, no or sys" >&2;}
2655 { (exit 1); exit 1; }; }
10f2d63a 2656 fi
10f2d63a 2657
6232543b
VS
2658 echo "$as_me:2658: checking \"for --with-libjpeg\"" >&5
2659echo $ECHO_N "checking \"for --with-libjpeg\"... $ECHO_C" >&6
10f2d63a 2660 no_cache=0
6232543b
VS
2661
2662# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2663if test "${with_libjpeg+set}" = set; then
2664 withval="$with_libjpeg"
6232543b 2665
10f2d63a 2666 if test "$withval" = yes; then
b12915c1 2667 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2668 elif test "$withval" = no; then
b12915c1 2669 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2670 elif test "$withval" = sys; then
2671 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2672 else
6232543b
VS
2673 { { echo "$as_me:2673: error: Invalid value for --with-libjpeg: should be yes, no or sys" >&5
2674echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no or sys" >&2;}
2675 { (exit 1); exit 1; }; }
10f2d63a 2676 fi
6232543b 2677
10f2d63a 2678else
6232543b 2679
b12915c1 2680 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2681 if test "x$LINE" != x ; then
2682 eval "DEFAULT_$LINE"
2683 else
2684 no_cache=1
2685 fi
2686
b12915c1 2687 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2688
6232543b 2689fi;
10f2d63a 2690
b12915c1 2691 eval "$ac_cv_use_libjpeg"
10f2d63a 2692 if test "$no_cache" != 1; then
b12915c1 2693 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2694 fi
2695
b12915c1 2696 if test "$wxUSE_LIBJPEG" = yes; then
6232543b
VS
2697 echo "$as_me:2697: result: yes" >&5
2698echo "${ECHO_T}yes" >&6
422107f9 2699 elif test "$wxUSE_LIBJPEG" = no; then
6232543b
VS
2700 echo "$as_me:2700: result: no" >&5
2701echo "${ECHO_T}no" >&6
422107f9 2702 elif test "$wxUSE_LIBJPEG" = sys; then
6232543b
VS
2703 echo "$as_me:2703: result: system version" >&5
2704echo "${ECHO_T}system version" >&6
422107f9 2705 else
6232543b
VS
2706 { { echo "$as_me:2706: error: Invalid value for --with-libjpeg: should be yes, no or sys" >&5
2707echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no or sys" >&2;}
2708 { (exit 1); exit 1; }; }
10f2d63a 2709 fi
10f2d63a 2710
6232543b
VS
2711 echo "$as_me:2711: checking \"for --with-libtiff\"" >&5
2712echo $ECHO_N "checking \"for --with-libtiff\"... $ECHO_C" >&6
10f2d63a 2713 no_cache=0
6232543b
VS
2714
2715# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2716if test "${with_libtiff+set}" = set; then
2717 withval="$with_libtiff"
6232543b 2718
10f2d63a 2719 if test "$withval" = yes; then
b12915c1 2720 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2721 elif test "$withval" = no; then
b12915c1 2722 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2723 elif test "$withval" = sys; then
2724 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2725 else
6232543b
VS
2726 { { echo "$as_me:2726: error: Invalid value for --with-libtiff: should be yes, no or sys" >&5
2727echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no or sys" >&2;}
2728 { (exit 1); exit 1; }; }
10f2d63a 2729 fi
6232543b 2730
10f2d63a 2731else
6232543b 2732
b12915c1 2733 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
b12915c1 2740 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2741
6232543b 2742fi;
10f2d63a 2743
b12915c1 2744 eval "$ac_cv_use_libtiff"
10f2d63a 2745 if test "$no_cache" != 1; then
b12915c1 2746 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2747 fi
2748
b12915c1 2749 if test "$wxUSE_LIBTIFF" = yes; then
6232543b
VS
2750 echo "$as_me:2750: result: yes" >&5
2751echo "${ECHO_T}yes" >&6
0dcf9893 2752 elif test "$wxUSE_LIBTIFF" = no; then
6232543b
VS
2753 echo "$as_me:2753: result: no" >&5
2754echo "${ECHO_T}no" >&6
0dcf9893 2755 elif test "$wxUSE_LIBTIFF" = sys; then
6232543b
VS
2756 echo "$as_me:2756: result: system version" >&5
2757echo "${ECHO_T}system version" >&6
0dcf9893 2758 else
6232543b
VS
2759 { { echo "$as_me:2759: error: Invalid value for --with-libtiff: should be yes, no or sys" >&5
2760echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no or sys" >&2;}
2761 { (exit 1); exit 1; }; }
10f2d63a 2762 fi
10f2d63a 2763
6232543b
VS
2764 echo "$as_me:2764: checking \"for --with-freetype\"" >&5
2765echo $ECHO_N "checking \"for --with-freetype\"... $ECHO_C" >&6
3fed1840 2766 no_cache=0
6232543b
VS
2767
2768# Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2769if test "${with_freetype+set}" = set; then
2770 withval="$with_freetype"
6232543b 2771
3fed1840
RR
2772 if test "$withval" = yes; then
2773 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2774 elif test "$withval" = no; then
2775 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2776 elif test "$withval" = sys; then
2777 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2778 else
6232543b
VS
2779 { { echo "$as_me:2779: error: Invalid value for --with-freetype: should be yes, no or sys" >&5
2780echo "$as_me: error: Invalid value for --with-freetype: should be yes, no or sys" >&2;}
2781 { (exit 1); exit 1; }; }
3fed1840 2782 fi
6232543b 2783
3fed1840 2784else
6232543b 2785
3fed1840
RR
2786 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
3fed1840 2794
6232543b 2795fi;
3fed1840
RR
2796
2797 eval "$ac_cv_use_freetype"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_FREETYPE" = yes; then
6232543b
VS
2803 echo "$as_me:2803: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
3fed1840 2805 elif test "$wxUSE_FREETYPE" = no; then
6232543b
VS
2806 echo "$as_me:2806: result: no" >&5
2807echo "${ECHO_T}no" >&6
3fed1840 2808 elif test "$wxUSE_FREETYPE" = sys; then
6232543b
VS
2809 echo "$as_me:2809: result: system version" >&5
2810echo "${ECHO_T}system version" >&6
3fed1840 2811 else
6232543b
VS
2812 { { echo "$as_me:2812: error: Invalid value for --with-freetype: should be yes, no or sys" >&5
2813echo "$as_me: error: Invalid value for --with-freetype: should be yes, no or sys" >&2;}
2814 { (exit 1); exit 1; }; }
3fed1840 2815 fi
3fed1840 2816
6232543b
VS
2817 echo "$as_me:2817: checking \"for --with-opengl\"" >&5
2818echo $ECHO_N "checking \"for --with-opengl\"... $ECHO_C" >&6
10f2d63a 2819 no_cache=0
6232543b
VS
2820
2821# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2822if test "${with_opengl+set}" = set; then
2823 withval="$with_opengl"
6232543b 2824
10f2d63a 2825 if test "$withval" = yes; then
b12915c1 2826 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2827 else
b12915c1 2828 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2829 fi
6232543b 2830
10f2d63a 2831else
6232543b 2832
b12915c1 2833 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
b12915c1 2840 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2841
6232543b 2842fi;
10f2d63a 2843
b12915c1 2844 eval "$ac_cv_use_opengl"
10f2d63a 2845 if test "$no_cache" != 1; then
b12915c1 2846 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2847 fi
2848
b12915c1 2849 if test "$wxUSE_OPENGL" = yes; then
6232543b
VS
2850 echo "$as_me:2850: result: yes" >&5
2851echo "${ECHO_T}yes" >&6
10f2d63a 2852 else
6232543b
VS
2853 echo "$as_me:2853: result: no" >&5
2854echo "${ECHO_T}no" >&6
10f2d63a 2855 fi
10f2d63a 2856
b12915c1
VZ
2857fi
2858
6232543b
VS
2859 echo "$as_me:2859: checking \"for --with-dmalloc\"" >&5
2860echo $ECHO_N "checking \"for --with-dmalloc\"... $ECHO_C" >&6
c7a2bf27 2861 no_cache=0
6232543b
VS
2862
2863# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2864if test "${with_dmalloc+set}" = set; then
2865 withval="$with_dmalloc"
6232543b 2866
c7a2bf27 2867 if test "$withval" = yes; then
b12915c1 2868 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2869 else
b12915c1 2870 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2871 fi
6232543b 2872
c7a2bf27 2873else
6232543b 2874
b12915c1 2875 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2876 if test "x$LINE" != x ; then
2877 eval "DEFAULT_$LINE"
2878 else
2879 no_cache=1
2880 fi
2881
b12915c1 2882 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2883
6232543b 2884fi;
c7a2bf27 2885
b12915c1 2886 eval "$ac_cv_use_dmalloc"
c7a2bf27 2887 if test "$no_cache" != 1; then
b12915c1 2888 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2889 fi
2890
b12915c1 2891 if test "$wxUSE_DMALLOC" = yes; then
6232543b
VS
2892 echo "$as_me:2892: result: yes" >&5
2893echo "${ECHO_T}yes" >&6
c7a2bf27 2894 else
6232543b
VS
2895 echo "$as_me:2895: result: no" >&5
2896echo "${ECHO_T}no" >&6
c7a2bf27 2897 fi
c7a2bf27 2898
6232543b
VS
2899 echo "$as_me:2899: checking \"for --with-zlib\"" >&5
2900echo $ECHO_N "checking \"for --with-zlib\"... $ECHO_C" >&6
10f2d63a 2901 no_cache=0
6232543b
VS
2902
2903# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2904if test "${with_zlib+set}" = set; then
2905 withval="$with_zlib"
6232543b 2906
10f2d63a 2907 if test "$withval" = yes; then
b12915c1 2908 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2909 elif test "$withval" = no; then
b12915c1 2910 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2911 elif test "$withval" = sys; then
2912 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2913 else
6232543b
VS
2914 { { echo "$as_me:2914: error: Invalid value for --with-zlib: should be yes, no or sys" >&5
2915echo "$as_me: error: Invalid value for --with-zlib: should be yes, no or sys" >&2;}
2916 { (exit 1); exit 1; }; }
10f2d63a 2917 fi
6232543b 2918
10f2d63a 2919else
6232543b 2920
b12915c1 2921 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
b12915c1 2928 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2929
6232543b 2930fi;
10f2d63a 2931
b12915c1 2932 eval "$ac_cv_use_zlib"
10f2d63a 2933 if test "$no_cache" != 1; then
b12915c1 2934 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2935 fi
2936
b12915c1 2937 if test "$wxUSE_ZLIB" = yes; then
6232543b
VS
2938 echo "$as_me:2938: result: yes" >&5
2939echo "${ECHO_T}yes" >&6
422107f9 2940 elif test "$wxUSE_ZLIB" = no; then
6232543b
VS
2941 echo "$as_me:2941: result: no" >&5
2942echo "${ECHO_T}no" >&6
422107f9 2943 elif test "$wxUSE_ZLIB" = sys; then
6232543b
VS
2944 echo "$as_me:2944: result: system version" >&5
2945echo "${ECHO_T}system version" >&6
422107f9 2946 else
6232543b
VS
2947 { { echo "$as_me:2947: error: Invalid value for --with-zlib: should be yes, no or sys" >&5
2948echo "$as_me: error: Invalid value for --with-zlib: should be yes, no or sys" >&2;}
2949 { (exit 1); exit 1; }; }
10f2d63a 2950 fi
10f2d63a 2951
6232543b
VS
2952 echo "$as_me:2952: checking \"for --with-odbc\"" >&5
2953echo $ECHO_N "checking \"for --with-odbc\"... $ECHO_C" >&6
10f2d63a 2954 no_cache=0
6232543b
VS
2955
2956# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2957if test "${with_odbc+set}" = set; then
2958 withval="$with_odbc"
6232543b 2959
10f2d63a
VZ
2960 if test "$withval" = yes; then
2961 ac_cv_use_odbc='wxUSE_ODBC=yes'
2962 else
2963 ac_cv_use_odbc='wxUSE_ODBC=no'
2964 fi
6232543b 2965
10f2d63a 2966else
6232543b 2967
10f2d63a
VZ
2968 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2969 if test "x$LINE" != x ; then
2970 eval "DEFAULT_$LINE"
2971 else
2972 no_cache=1
2973 fi
2974
2975 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2976
6232543b 2977fi;
10f2d63a
VZ
2978
2979 eval "$ac_cv_use_odbc"
2980 if test "$no_cache" != 1; then
2981 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2982 fi
2983
2984 if test "$wxUSE_ODBC" = yes; then
6232543b
VS
2985 echo "$as_me:2985: result: yes" >&5
2986echo "${ECHO_T}yes" >&6
10f2d63a 2987 else
6232543b
VS
2988 echo "$as_me:2988: result: no" >&5
2989echo "${ECHO_T}no" >&6
10f2d63a 2990 fi
10f2d63a 2991
6232543b
VS
2992 echo "$as_me:2992: checking \"for --enable-shared\"" >&5
2993echo $ECHO_N "checking \"for --enable-shared\"... $ECHO_C" >&6
10f2d63a
VZ
2994 no_cache=0
2995 # Check whether --enable-shared or --disable-shared was given.
2996if test "${enable_shared+set}" = set; then
2997 enableval="$enable_shared"
6232543b 2998
10f2d63a
VZ
2999 if test "$enableval" = yes; then
3000 ac_cv_use_shared='wxUSE_SHARED=yes'
3001 else
3002 ac_cv_use_shared='wxUSE_SHARED=no'
3003 fi
6232543b 3004
10f2d63a 3005else
6232543b 3006
10f2d63a
VZ
3007 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3015
6232543b 3016fi;
10f2d63a
VZ
3017
3018 eval "$ac_cv_use_shared"
3019 if test "$no_cache" != 1; then
3020 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3021 fi
3022
3023 if test "$wxUSE_SHARED" = yes; then
6232543b
VS
3024 echo "$as_me:3024: result: yes" >&5
3025echo "${ECHO_T}yes" >&6
10f2d63a 3026 else
6232543b
VS
3027 echo "$as_me:3027: result: no" >&5
3028echo "${ECHO_T}no" >&6
10f2d63a 3029 fi
10f2d63a 3030
6232543b
VS
3031 echo "$as_me:3031: checking \"for --enable-burnt_name\"" >&5
3032echo $ECHO_N "checking \"for --enable-burnt_name\"... $ECHO_C" >&6
00cf1208
RR
3033 no_cache=0
3034 # Check whether --enable-burnt_name or --disable-burnt_name was given.
3035if test "${enable_burnt_name+set}" = set; then
3036 enableval="$enable_burnt_name"
6232543b 3037
00cf1208
RR
3038 if test "$enableval" = yes; then
3039 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
3040 else
3041 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
3042 fi
6232543b 3043
00cf1208 3044else
6232543b 3045
00cf1208
RR
3046 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
00cf1208 3054
6232543b 3055fi;
00cf1208
RR
3056
3057 eval "$ac_cv_use_burnt_name"
3058 if test "$no_cache" != 1; then
3059 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
3060 fi
3061
3062 if test "$wxUSE_BURNT_NAME" = yes; then
6232543b
VS
3063 echo "$as_me:3063: result: yes" >&5
3064echo "${ECHO_T}yes" >&6
00cf1208 3065 else
6232543b
VS
3066 echo "$as_me:3066: result: no" >&5
3067echo "${ECHO_T}no" >&6
00cf1208 3068 fi
00cf1208 3069
6232543b
VS
3070 echo "$as_me:3070: checking \"for --enable-optimise\"" >&5
3071echo $ECHO_N "checking \"for --enable-optimise\"... $ECHO_C" >&6
10f2d63a
VZ
3072 no_cache=0
3073 # Check whether --enable-optimise or --disable-optimise was given.
3074if test "${enable_optimise+set}" = set; then
3075 enableval="$enable_optimise"
6232543b 3076
10f2d63a
VZ
3077 if test "$enableval" = yes; then
3078 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3079 else
3080 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3081 fi
6232543b 3082
10f2d63a 3083else
6232543b 3084
10f2d63a
VZ
3085 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3086 if test "x$LINE" != x ; then
3087 eval "DEFAULT_$LINE"
3088 else
3089 no_cache=1
3090 fi
3091
3092 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3093
6232543b 3094fi;
10f2d63a
VZ
3095
3096 eval "$ac_cv_use_optimise"
3097 if test "$no_cache" != 1; then
3098 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3099 fi
3100
3101 if test "$wxUSE_OPTIMISE" = yes; then
6232543b
VS
3102 echo "$as_me:3102: result: yes" >&5
3103echo "${ECHO_T}yes" >&6
10f2d63a 3104 else
6232543b
VS
3105 echo "$as_me:3105: result: no" >&5
3106echo "${ECHO_T}no" >&6
10f2d63a 3107 fi
10f2d63a 3108
6232543b
VS
3109 echo "$as_me:3109: checking \"for --enable-debug\"" >&5
3110echo $ECHO_N "checking \"for --enable-debug\"... $ECHO_C" >&6
10f2d63a
VZ
3111 no_cache=0
3112 # Check whether --enable-debug or --disable-debug was given.
3113if test "${enable_debug+set}" = set; then
3114 enableval="$enable_debug"
6232543b 3115
10f2d63a
VZ
3116 if test "$enableval" = yes; then
3117 ac_cv_use_debug='wxUSE_DEBUG=yes'
3118 else
3119 ac_cv_use_debug='wxUSE_DEBUG=no'
3120 fi
6232543b 3121
10f2d63a 3122else
6232543b 3123
10f2d63a
VZ
3124 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3132
6232543b 3133fi;
10f2d63a
VZ
3134
3135 eval "$ac_cv_use_debug"
3136 if test "$no_cache" != 1; then
3137 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3138 fi
3139
3140 if test "$wxUSE_DEBUG" = yes; then
6232543b
VS
3141 echo "$as_me:3141: result: yes" >&5
3142echo "${ECHO_T}yes" >&6
10f2d63a 3143 else
6232543b
VS
3144 echo "$as_me:3144: result: no" >&5
3145echo "${ECHO_T}no" >&6
10f2d63a 3146 fi
10f2d63a
VZ
3147
3148if test "$wxUSE_DEBUG" = "yes"; then
3149 DEFAULT_wxUSE_DEBUG_FLAG=yes
3150 DEFAULT_wxUSE_DEBUG_INFO=yes
3151elif test "$wxUSE_DEBUG" = "no"; then
3152 DEFAULT_wxUSE_DEBUG_FLAG=no
3153 DEFAULT_wxUSE_DEBUG_INFO=no
3154fi
3155
6232543b
VS
3156 echo "$as_me:3156: checking \"for --enable-debug_flag\"" >&5
3157echo $ECHO_N "checking \"for --enable-debug_flag\"... $ECHO_C" >&6
10f2d63a
VZ
3158 no_cache=0
3159 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3160if test "${enable_debug_flag+set}" = set; then
3161 enableval="$enable_debug_flag"
6232543b 3162
10f2d63a
VZ
3163 if test "$enableval" = yes; then
3164 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3165 else
3166 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3167 fi
6232543b 3168
10f2d63a 3169else
6232543b 3170
10f2d63a
VZ
3171 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3172 if test "x$LINE" != x ; then
3173 eval "DEFAULT_$LINE"
3174 else
3175 no_cache=1
3176 fi
3177
3178 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3179
6232543b 3180fi;
10f2d63a
VZ
3181
3182 eval "$ac_cv_use_debug_flag"
3183 if test "$no_cache" != 1; then
3184 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3185 fi
3186
3187 if test "$wxUSE_DEBUG_FLAG" = yes; then
6232543b
VS
3188 echo "$as_me:3188: result: yes" >&5
3189echo "${ECHO_T}yes" >&6
10f2d63a 3190 else
6232543b
VS
3191 echo "$as_me:3191: result: no" >&5
3192echo "${ECHO_T}no" >&6
10f2d63a 3193 fi
10f2d63a 3194
6232543b
VS
3195 echo "$as_me:3195: checking \"for --enable-debug_info\"" >&5
3196echo $ECHO_N "checking \"for --enable-debug_info\"... $ECHO_C" >&6
10f2d63a
VZ
3197 no_cache=0
3198 # Check whether --enable-debug_info or --disable-debug_info was given.
3199if test "${enable_debug_info+set}" = set; then
3200 enableval="$enable_debug_info"
6232543b 3201
10f2d63a
VZ
3202 if test "$enableval" = yes; then
3203 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3204 else
3205 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3206 fi
6232543b 3207
10f2d63a 3208else
6232543b 3209
10f2d63a
VZ
3210 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3218
6232543b 3219fi;
10f2d63a
VZ
3220
3221 eval "$ac_cv_use_debug_info"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_DEBUG_INFO" = yes; then
6232543b
VS
3227 echo "$as_me:3227: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
10f2d63a 3229 else
6232543b
VS
3230 echo "$as_me:3230: result: no" >&5
3231echo "${ECHO_T}no" >&6
10f2d63a 3232 fi
10f2d63a 3233
6232543b
VS
3234 echo "$as_me:3234: checking \"for --enable-debug_gdb\"" >&5
3235echo $ECHO_N "checking \"for --enable-debug_gdb\"... $ECHO_C" >&6
10f2d63a
VZ
3236 no_cache=0
3237 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3238if test "${enable_debug_gdb+set}" = set; then
3239 enableval="$enable_debug_gdb"
6232543b 3240
10f2d63a
VZ
3241 if test "$enableval" = yes; then
3242 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3243 else
3244 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3245 fi
6232543b 3246
10f2d63a 3247else
6232543b 3248
10f2d63a
VZ
3249 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3250 if test "x$LINE" != x ; then
3251 eval "DEFAULT_$LINE"
3252 else
3253 no_cache=1
3254 fi
3255
3256 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3257
6232543b 3258fi;
10f2d63a
VZ
3259
3260 eval "$ac_cv_use_debug_gdb"
3261 if test "$no_cache" != 1; then
3262 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3263 fi
3264
3265 if test "$wxUSE_DEBUG_GDB" = yes; then
6232543b
VS
3266 echo "$as_me:3266: result: yes" >&5
3267echo "${ECHO_T}yes" >&6
10f2d63a 3268 else
6232543b
VS
3269 echo "$as_me:3269: result: no" >&5
3270echo "${ECHO_T}no" >&6
10f2d63a 3271 fi
10f2d63a 3272
6232543b
VS
3273 echo "$as_me:3273: checking \"for --enable-debug_cntxt\"" >&5
3274echo $ECHO_N "checking \"for --enable-debug_cntxt\"... $ECHO_C" >&6
10f2d63a
VZ
3275 no_cache=0
3276 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3277if test "${enable_debug_cntxt+set}" = set; then
3278 enableval="$enable_debug_cntxt"
6232543b 3279
10f2d63a
VZ
3280 if test "$enableval" = yes; then
3281 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3282 else
3283 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3284 fi
6232543b 3285
10f2d63a 3286else
6232543b 3287
10f2d63a
VZ
3288 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3296
6232543b 3297fi;
10f2d63a
VZ
3298
3299 eval "$ac_cv_use_debug_cntxt"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
6232543b
VS
3305 echo "$as_me:3305: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
10f2d63a 3307 else
6232543b
VS
3308 echo "$as_me:3308: result: no" >&5
3309echo "${ECHO_T}no" >&6
10f2d63a 3310 fi
10f2d63a 3311
6232543b
VS
3312 echo "$as_me:3312: checking \"for --enable-mem_tracing\"" >&5
3313echo $ECHO_N "checking \"for --enable-mem_tracing\"... $ECHO_C" >&6
10f2d63a
VZ
3314 no_cache=0
3315 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3316if test "${enable_mem_tracing+set}" = set; then
3317 enableval="$enable_mem_tracing"
6232543b 3318
10f2d63a
VZ
3319 if test "$enableval" = yes; then
3320 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3321 else
3322 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3323 fi
6232543b 3324
10f2d63a 3325else
6232543b 3326
10f2d63a
VZ
3327 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3335
6232543b 3336fi;
10f2d63a
VZ
3337
3338 eval "$ac_cv_use_mem_tracing"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_MEM_TRACING" = yes; then
6232543b
VS
3344 echo "$as_me:3344: result: yes" >&5
3345echo "${ECHO_T}yes" >&6
10f2d63a 3346 else
6232543b
VS
3347 echo "$as_me:3347: result: no" >&5
3348echo "${ECHO_T}no" >&6
10f2d63a 3349 fi
10f2d63a 3350
6232543b
VS
3351 echo "$as_me:3351: checking \"for --enable-profile\"" >&5
3352echo $ECHO_N "checking \"for --enable-profile\"... $ECHO_C" >&6
10f2d63a
VZ
3353 no_cache=0
3354 # Check whether --enable-profile or --disable-profile was given.
3355if test "${enable_profile+set}" = set; then
3356 enableval="$enable_profile"
6232543b 3357
10f2d63a
VZ
3358 if test "$enableval" = yes; then
3359 ac_cv_use_profile='wxUSE_PROFILE=yes'
3360 else
3361 ac_cv_use_profile='wxUSE_PROFILE=no'
3362 fi
6232543b 3363
10f2d63a 3364else
6232543b 3365
10f2d63a
VZ
3366 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3374
6232543b 3375fi;
10f2d63a
VZ
3376
3377 eval "$ac_cv_use_profile"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_PROFILE" = yes; then
6232543b
VS
3383 echo "$as_me:3383: result: yes" >&5
3384echo "${ECHO_T}yes" >&6
10f2d63a 3385 else
6232543b
VS
3386 echo "$as_me:3386: result: no" >&5
3387echo "${ECHO_T}no" >&6
10f2d63a 3388 fi
10f2d63a 3389
6232543b
VS
3390 echo "$as_me:3390: checking \"for --enable-no_rtti\"" >&5
3391echo $ECHO_N "checking \"for --enable-no_rtti\"... $ECHO_C" >&6
10f2d63a
VZ
3392 no_cache=0
3393 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3394if test "${enable_no_rtti+set}" = set; then
3395 enableval="$enable_no_rtti"
6232543b 3396
10f2d63a
VZ
3397 if test "$enableval" = yes; then
3398 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3399 else
3400 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3401 fi
6232543b 3402
10f2d63a 3403else
6232543b 3404
10f2d63a
VZ
3405 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3413
6232543b 3414fi;
10f2d63a
VZ
3415
3416 eval "$ac_cv_use_no_rtti"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_NO_RTTI" = yes; then
6232543b
VS
3422 echo "$as_me:3422: result: yes" >&5
3423echo "${ECHO_T}yes" >&6
10f2d63a 3424 else
6232543b
VS
3425 echo "$as_me:3425: result: no" >&5
3426echo "${ECHO_T}no" >&6
10f2d63a 3427 fi
10f2d63a 3428
6232543b
VS
3429 echo "$as_me:3429: checking \"for --enable-no_exceptions\"" >&5
3430echo $ECHO_N "checking \"for --enable-no_exceptions\"... $ECHO_C" >&6
10f2d63a
VZ
3431 no_cache=0
3432 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3433if test "${enable_no_exceptions+set}" = set; then
3434 enableval="$enable_no_exceptions"
6232543b 3435
10f2d63a
VZ
3436 if test "$enableval" = yes; then
3437 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3438 else
3439 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3440 fi
6232543b 3441
10f2d63a 3442else
6232543b 3443
10f2d63a
VZ
3444 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3452
6232543b 3453fi;
10f2d63a
VZ
3454
3455 eval "$ac_cv_use_no_exceptions"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
6232543b
VS
3461 echo "$as_me:3461: result: yes" >&5
3462echo "${ECHO_T}yes" >&6
10f2d63a 3463 else
6232543b
VS
3464 echo "$as_me:3464: result: no" >&5
3465echo "${ECHO_T}no" >&6
10f2d63a 3466 fi
10f2d63a 3467
6232543b
VS
3468 echo "$as_me:3468: checking \"for --enable-permissive\"" >&5
3469echo $ECHO_N "checking \"for --enable-permissive\"... $ECHO_C" >&6
10f2d63a
VZ
3470 no_cache=0
3471 # Check whether --enable-permissive or --disable-permissive was given.
3472if test "${enable_permissive+set}" = set; then
3473 enableval="$enable_permissive"
6232543b 3474
10f2d63a
VZ
3475 if test "$enableval" = yes; then
3476 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3477 else
3478 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3479 fi
6232543b 3480
10f2d63a 3481else
6232543b 3482
10f2d63a
VZ
3483 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3491
6232543b 3492fi;
10f2d63a
VZ
3493
3494 eval "$ac_cv_use_permissive"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_PERMISSIVE" = yes; then
6232543b
VS
3500 echo "$as_me:3500: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
10f2d63a 3502 else
6232543b
VS
3503 echo "$as_me:3503: result: no" >&5
3504echo "${ECHO_T}no" >&6
10f2d63a 3505 fi
10f2d63a 3506
6232543b
VS
3507 echo "$as_me:3507: checking \"for --enable-no_deps\"" >&5
3508echo $ECHO_N "checking \"for --enable-no_deps\"... $ECHO_C" >&6
10f2d63a
VZ
3509 no_cache=0
3510 # Check whether --enable-no_deps or --disable-no_deps was given.
3511if test "${enable_no_deps+set}" = set; then
3512 enableval="$enable_no_deps"
6232543b 3513
10f2d63a
VZ
3514 if test "$enableval" = yes; then
3515 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3516 else
3517 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3518 fi
6232543b 3519
10f2d63a 3520else
6232543b 3521
10f2d63a
VZ
3522 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3530
6232543b 3531fi;
10f2d63a
VZ
3532
3533 eval "$ac_cv_use_no_deps"
3534 if test "$no_cache" != 1; then
3535 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3536 fi
3537
3538 if test "$wxUSE_NO_DEPS" = yes; then
6232543b
VS
3539 echo "$as_me:3539: result: yes" >&5
3540echo "${ECHO_T}yes" >&6
10f2d63a 3541 else
6232543b
VS
3542 echo "$as_me:3542: result: no" >&5
3543echo "${ECHO_T}no" >&6
10f2d63a 3544 fi
10f2d63a 3545
6232543b
VS
3546 echo "$as_me:3546: checking \"for --enable-intl\"" >&5
3547echo $ECHO_N "checking \"for --enable-intl\"... $ECHO_C" >&6
10f2d63a
VZ
3548 no_cache=0
3549 # Check whether --enable-intl or --disable-intl was given.
3550if test "${enable_intl+set}" = set; then
3551 enableval="$enable_intl"
6232543b 3552
10f2d63a
VZ
3553 if test "$enableval" = yes; then
3554 ac_cv_use_intl='wxUSE_INTL=yes'
3555 else
3556 ac_cv_use_intl='wxUSE_INTL=no'
3557 fi
6232543b 3558
10f2d63a 3559else
6232543b 3560
10f2d63a
VZ
3561 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
3568 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3569
6232543b 3570fi;
10f2d63a
VZ
3571
3572 eval "$ac_cv_use_intl"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_INTL" = yes; then
6232543b
VS
3578 echo "$as_me:3578: result: yes" >&5
3579echo "${ECHO_T}yes" >&6
10f2d63a 3580 else
6232543b
VS
3581 echo "$as_me:3581: result: no" >&5
3582echo "${ECHO_T}no" >&6
10f2d63a 3583 fi
10f2d63a 3584
6232543b
VS
3585 echo "$as_me:3585: checking \"for --enable-config\"" >&5
3586echo $ECHO_N "checking \"for --enable-config\"... $ECHO_C" >&6
10f2d63a
VZ
3587 no_cache=0
3588 # Check whether --enable-config or --disable-config was given.
3589if test "${enable_config+set}" = set; then
3590 enableval="$enable_config"
6232543b 3591
10f2d63a
VZ
3592 if test "$enableval" = yes; then
3593 ac_cv_use_config='wxUSE_CONFIG=yes'
3594 else
3595 ac_cv_use_config='wxUSE_CONFIG=no'
3596 fi
6232543b 3597
10f2d63a 3598else
6232543b 3599
10f2d63a
VZ
3600 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3608
6232543b 3609fi;
10f2d63a
VZ
3610
3611 eval "$ac_cv_use_config"
3612 if test "$no_cache" != 1; then
3613 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3614 fi
3615
3616 if test "$wxUSE_CONFIG" = yes; then
6232543b
VS
3617 echo "$as_me:3617: result: yes" >&5
3618echo "${ECHO_T}yes" >&6
10f2d63a 3619 else
6232543b
VS
3620 echo "$as_me:3620: result: no" >&5
3621echo "${ECHO_T}no" >&6
10f2d63a 3622 fi
b12915c1 3623
6232543b
VS
3624 echo "$as_me:3624: checking \"for --enable-sockets\"" >&5
3625echo $ECHO_N "checking \"for --enable-sockets\"... $ECHO_C" >&6
10f2d63a
VZ
3626 no_cache=0
3627 # Check whether --enable-sockets or --disable-sockets was given.
3628if test "${enable_sockets+set}" = set; then
3629 enableval="$enable_sockets"
6232543b 3630
10f2d63a
VZ
3631 if test "$enableval" = yes; then
3632 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3633 else
3634 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3635 fi
6232543b 3636
10f2d63a 3637else
6232543b 3638
10f2d63a
VZ
3639 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3640 if test "x$LINE" != x ; then
3641 eval "DEFAULT_$LINE"
3642 else
3643 no_cache=1
3644 fi
3645
3646 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 3647
6232543b 3648fi;
10f2d63a
VZ
3649
3650 eval "$ac_cv_use_sockets"
3651 if test "$no_cache" != 1; then
3652 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3653 fi
3654
3655 if test "$wxUSE_SOCKETS" = yes; then
6232543b
VS
3656 echo "$as_me:3656: result: yes" >&5
3657echo "${ECHO_T}yes" >&6
10f2d63a 3658 else
6232543b
VS
3659 echo "$as_me:3659: result: no" >&5
3660echo "${ECHO_T}no" >&6
10f2d63a 3661 fi
b12915c1 3662
6232543b
VS
3663 echo "$as_me:3663: checking \"for --enable-ipc\"" >&5
3664echo $ECHO_N "checking \"for --enable-ipc\"... $ECHO_C" >&6
10f2d63a 3665 no_cache=0
eb4efbdc
VZ
3666 # Check whether --enable-ipc or --disable-ipc was given.
3667if test "${enable_ipc+set}" = set; then
3668 enableval="$enable_ipc"
6232543b 3669
10f2d63a 3670 if test "$enableval" = yes; then
eb4efbdc 3671 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3672 else
eb4efbdc 3673 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3674 fi
6232543b 3675
10f2d63a 3676else
6232543b 3677
eb4efbdc 3678 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
eb4efbdc 3685 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 3686
6232543b 3687fi;
10f2d63a 3688
eb4efbdc 3689 eval "$ac_cv_use_ipc"
10f2d63a 3690 if test "$no_cache" != 1; then
eb4efbdc 3691 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3692 fi
3693
eb4efbdc 3694 if test "$wxUSE_IPC" = yes; then
6232543b
VS
3695 echo "$as_me:3695: result: yes" >&5
3696echo "${ECHO_T}yes" >&6
10f2d63a 3697 else
6232543b
VS
3698 echo "$as_me:3698: result: no" >&5
3699echo "${ECHO_T}no" >&6
10f2d63a 3700 fi
eb4efbdc 3701
6232543b
VS
3702 echo "$as_me:3702: checking \"for --enable-dialupman\"" >&5
3703echo $ECHO_N "checking \"for --enable-dialupman\"... $ECHO_C" >&6
10f2d63a 3704 no_cache=0
eb4efbdc
VZ
3705 # Check whether --enable-dialupman or --disable-dialupman was given.
3706if test "${enable_dialupman+set}" = set; then
3707 enableval="$enable_dialupman"
6232543b 3708
10f2d63a 3709 if test "$enableval" = yes; then
eb4efbdc 3710 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3711 else
eb4efbdc 3712 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3713 fi
6232543b 3714
10f2d63a 3715else
6232543b 3716
eb4efbdc 3717 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
eb4efbdc 3724 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 3725
6232543b 3726fi;
10f2d63a 3727
eb4efbdc 3728 eval "$ac_cv_use_dialupman"
10f2d63a 3729 if test "$no_cache" != 1; then
eb4efbdc 3730 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3731 fi
3732
eb4efbdc 3733 if test "$wxUSE_DIALUP_MANAGER" = yes; then
6232543b
VS
3734 echo "$as_me:3734: result: yes" >&5
3735echo "${ECHO_T}yes" >&6
10f2d63a 3736 else
6232543b
VS
3737 echo "$as_me:3737: result: no" >&5
3738echo "${ECHO_T}no" >&6
10f2d63a 3739 fi
10f2d63a 3740
6232543b
VS
3741 echo "$as_me:3741: checking \"for --enable-apple_ieee\"" >&5
3742echo $ECHO_N "checking \"for --enable-apple_ieee\"... $ECHO_C" >&6
10f2d63a
VZ
3743 no_cache=0
3744 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3745if test "${enable_apple_ieee+set}" = set; then
3746 enableval="$enable_apple_ieee"
6232543b 3747
10f2d63a
VZ
3748 if test "$enableval" = yes; then
3749 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3750 else
3751 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3752 fi
6232543b 3753
10f2d63a 3754else
6232543b 3755
10f2d63a
VZ
3756 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 3764
6232543b 3765fi;
10f2d63a
VZ
3766
3767 eval "$ac_cv_use_apple_ieee"
3768 if test "$no_cache" != 1; then
3769 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3770 fi
3771
3772 if test "$wxUSE_APPLE_IEEE" = yes; then
6232543b
VS
3773 echo "$as_me:3773: result: yes" >&5
3774echo "${ECHO_T}yes" >&6
10f2d63a 3775 else
6232543b
VS
3776 echo "$as_me:3776: result: no" >&5
3777echo "${ECHO_T}no" >&6
10f2d63a 3778 fi
10f2d63a 3779
6232543b
VS
3780 echo "$as_me:3780: checking \"for --enable-timedate\"" >&5
3781echo $ECHO_N "checking \"for --enable-timedate\"... $ECHO_C" >&6
10f2d63a
VZ
3782 no_cache=0
3783 # Check whether --enable-timedate or --disable-timedate was given.
3784if test "${enable_timedate+set}" = set; then
3785 enableval="$enable_timedate"
6232543b 3786
10f2d63a
VZ
3787 if test "$enableval" = yes; then
3788 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3789 else
3790 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3791 fi
6232543b 3792
10f2d63a 3793else
6232543b 3794
10f2d63a
VZ
3795 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
10f2d63a 3803
6232543b 3804fi;
10f2d63a
VZ
3805
3806 eval "$ac_cv_use_timedate"
3807 if test "$no_cache" != 1; then
3808 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3809 fi
3810
3811 if test "$wxUSE_TIMEDATE" = yes; then
6232543b
VS
3812 echo "$as_me:3812: result: yes" >&5
3813echo "${ECHO_T}yes" >&6
10f2d63a 3814 else
6232543b
VS
3815 echo "$as_me:3815: result: no" >&5
3816echo "${ECHO_T}no" >&6
10f2d63a 3817 fi
10f2d63a 3818
6232543b
VS
3819 echo "$as_me:3819: checking \"for --enable-wave\"" >&5
3820echo $ECHO_N "checking \"for --enable-wave\"... $ECHO_C" >&6
10f2d63a
VZ
3821 no_cache=0
3822 # Check whether --enable-wave or --disable-wave was given.
3823if test "${enable_wave+set}" = set; then
3824 enableval="$enable_wave"
6232543b 3825
10f2d63a
VZ
3826 if test "$enableval" = yes; then
3827 ac_cv_use_wave='wxUSE_WAVE=yes'
3828 else
3829 ac_cv_use_wave='wxUSE_WAVE=no'
3830 fi
6232543b 3831
10f2d63a 3832else
6232543b 3833
10f2d63a
VZ
3834 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3835 if test "x$LINE" != x ; then
3836 eval "DEFAULT_$LINE"
3837 else
3838 no_cache=1
3839 fi
3840
3841 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 3842
6232543b 3843fi;
10f2d63a
VZ
3844
3845 eval "$ac_cv_use_wave"
3846 if test "$no_cache" != 1; then
3847 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3848 fi
3849
3850 if test "$wxUSE_WAVE" = yes; then
6232543b
VS
3851 echo "$as_me:3851: result: yes" >&5
3852echo "${ECHO_T}yes" >&6
10f2d63a 3853 else
6232543b
VS
3854 echo "$as_me:3854: result: no" >&5
3855echo "${ECHO_T}no" >&6
10f2d63a 3856 fi
10f2d63a 3857
6232543b
VS
3858 echo "$as_me:3858: checking \"for --enable-fraction\"" >&5
3859echo $ECHO_N "checking \"for --enable-fraction\"... $ECHO_C" >&6
10f2d63a
VZ
3860 no_cache=0
3861 # Check whether --enable-fraction or --disable-fraction was given.
3862if test "${enable_fraction+set}" = set; then
3863 enableval="$enable_fraction"
6232543b 3864
10f2d63a
VZ
3865 if test "$enableval" = yes; then
3866 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3867 else
3868 ac_cv_use_fraction='wxUSE_FRACTION=no'
3869 fi
6232543b 3870
10f2d63a 3871else
6232543b 3872
10f2d63a
VZ
3873 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3874 if test "x$LINE" != x ; then
3875 eval "DEFAULT_$LINE"
3876 else
3877 no_cache=1
3878 fi
3879
3880 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 3881
6232543b 3882fi;
10f2d63a
VZ
3883
3884 eval "$ac_cv_use_fraction"
3885 if test "$no_cache" != 1; then
3886 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3887 fi
3888
3889 if test "$wxUSE_FRACTION" = yes; then
6232543b
VS
3890 echo "$as_me:3890: result: yes" >&5
3891echo "${ECHO_T}yes" >&6
10f2d63a 3892 else
6232543b
VS
3893 echo "$as_me:3893: result: no" >&5
3894echo "${ECHO_T}no" >&6
10f2d63a 3895 fi
10f2d63a 3896
6232543b
VS
3897 echo "$as_me:3897: checking \"for --enable-dynlib\"" >&5
3898echo $ECHO_N "checking \"for --enable-dynlib\"... $ECHO_C" >&6
10f2d63a
VZ
3899 no_cache=0
3900 # Check whether --enable-dynlib or --disable-dynlib was given.
3901if test "${enable_dynlib+set}" = set; then
3902 enableval="$enable_dynlib"
6232543b 3903
10f2d63a
VZ
3904 if test "$enableval" = yes; then
3905 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3906 else
3907 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3908 fi
6232543b 3909
10f2d63a 3910else
6232543b 3911
10f2d63a
VZ
3912 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 3920
6232543b 3921fi;
10f2d63a
VZ
3922
3923 eval "$ac_cv_use_dynlib"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_DYNLIB_CLASS" = yes; then
6232543b
VS
3929 echo "$as_me:3929: result: yes" >&5
3930echo "${ECHO_T}yes" >&6
10f2d63a 3931 else
6232543b
VS
3932 echo "$as_me:3932: result: no" >&5
3933echo "${ECHO_T}no" >&6
10f2d63a 3934 fi
10f2d63a 3935
6232543b
VS
3936 echo "$as_me:3936: checking \"for --enable-longlong\"" >&5
3937echo $ECHO_N "checking \"for --enable-longlong\"... $ECHO_C" >&6
10f2d63a
VZ
3938 no_cache=0
3939 # Check whether --enable-longlong or --disable-longlong was given.
3940if test "${enable_longlong+set}" = set; then
3941 enableval="$enable_longlong"
6232543b 3942
10f2d63a
VZ
3943 if test "$enableval" = yes; then
3944 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3945 else
3946 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3947 fi
6232543b 3948
10f2d63a 3949else
6232543b 3950
10f2d63a
VZ
3951 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 3959
6232543b 3960fi;
10f2d63a
VZ
3961
3962 eval "$ac_cv_use_longlong"
3963 if test "$no_cache" != 1; then
3964 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3965 fi
3966
3967 if test "$wxUSE_LONGLONG" = yes; then
6232543b
VS
3968 echo "$as_me:3968: result: yes" >&5
3969echo "${ECHO_T}yes" >&6
10f2d63a 3970 else
6232543b
VS
3971 echo "$as_me:3971: result: no" >&5
3972echo "${ECHO_T}no" >&6
10f2d63a 3973 fi
10f2d63a 3974
6232543b
VS
3975 echo "$as_me:3975: checking \"for --enable-geometry\"" >&5
3976echo $ECHO_N "checking \"for --enable-geometry\"... $ECHO_C" >&6
e8f65ba6
RR
3977 no_cache=0
3978 # Check whether --enable-geometry or --disable-geometry was given.
3979if test "${enable_geometry+set}" = set; then
3980 enableval="$enable_geometry"
6232543b 3981
e8f65ba6
RR
3982 if test "$enableval" = yes; then
3983 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3984 else
3985 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3986 fi
6232543b 3987
e8f65ba6 3988else
6232543b 3989
e8f65ba6
RR
3990 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3991 if test "x$LINE" != x ; then
3992 eval "DEFAULT_$LINE"
3993 else
3994 no_cache=1
3995 fi
3996
3997 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 3998
6232543b 3999fi;
e8f65ba6
RR
4000
4001 eval "$ac_cv_use_geometry"
4002 if test "$no_cache" != 1; then
4003 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4004 fi
4005
4006 if test "$wxUSE_GEOMETRY" = yes; then
6232543b
VS
4007 echo "$as_me:4007: result: yes" >&5
4008echo "${ECHO_T}yes" >&6
e8f65ba6 4009 else
6232543b
VS
4010 echo "$as_me:4010: result: no" >&5
4011echo "${ECHO_T}no" >&6
e8f65ba6 4012 fi
e8f65ba6 4013
6232543b
VS
4014 echo "$as_me:4014: checking \"for --enable-log\"" >&5
4015echo $ECHO_N "checking \"for --enable-log\"... $ECHO_C" >&6
10f2d63a
VZ
4016 no_cache=0
4017 # Check whether --enable-log or --disable-log was given.
4018if test "${enable_log+set}" = set; then
4019 enableval="$enable_log"
6232543b 4020
10f2d63a
VZ
4021 if test "$enableval" = yes; then
4022 ac_cv_use_log='wxUSE_LOG=yes'
4023 else
4024 ac_cv_use_log='wxUSE_LOG=no'
4025 fi
6232543b 4026
10f2d63a 4027else
6232543b 4028
10f2d63a
VZ
4029 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4037
6232543b 4038fi;
10f2d63a
VZ
4039
4040 eval "$ac_cv_use_log"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_LOG" = yes; then
6232543b
VS
4046 echo "$as_me:4046: result: yes" >&5
4047echo "${ECHO_T}yes" >&6
10f2d63a 4048 else
6232543b
VS
4049 echo "$as_me:4049: result: no" >&5
4050echo "${ECHO_T}no" >&6
10f2d63a 4051 fi
10f2d63a 4052
6232543b
VS
4053 echo "$as_me:4053: checking \"for --enable-streams\"" >&5
4054echo $ECHO_N "checking \"for --enable-streams\"... $ECHO_C" >&6
10f2d63a
VZ
4055 no_cache=0
4056 # Check whether --enable-streams or --disable-streams was given.
4057if test "${enable_streams+set}" = set; then
4058 enableval="$enable_streams"
6232543b 4059
10f2d63a
VZ
4060 if test "$enableval" = yes; then
4061 ac_cv_use_streams='wxUSE_STREAMS=yes'
4062 else
4063 ac_cv_use_streams='wxUSE_STREAMS=no'
4064 fi
6232543b 4065
10f2d63a 4066else
6232543b 4067
10f2d63a
VZ
4068 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4076
6232543b 4077fi;
10f2d63a
VZ
4078
4079 eval "$ac_cv_use_streams"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_STREAMS" = yes; then
6232543b
VS
4085 echo "$as_me:4085: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
10f2d63a 4087 else
6232543b
VS
4088 echo "$as_me:4088: result: no" >&5
4089echo "${ECHO_T}no" >&6
10f2d63a 4090 fi
10f2d63a 4091
6232543b
VS
4092 echo "$as_me:4092: checking \"for --enable-file\"" >&5
4093echo $ECHO_N "checking \"for --enable-file\"... $ECHO_C" >&6
10f2d63a
VZ
4094 no_cache=0
4095 # Check whether --enable-file or --disable-file was given.
4096if test "${enable_file+set}" = set; then
4097 enableval="$enable_file"
6232543b 4098
10f2d63a
VZ
4099 if test "$enableval" = yes; then
4100 ac_cv_use_file='wxUSE_FILE=yes'
4101 else
4102 ac_cv_use_file='wxUSE_FILE=no'
4103 fi
6232543b 4104
10f2d63a 4105else
6232543b 4106
10f2d63a
VZ
4107 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4115
6232543b 4116fi;
10f2d63a
VZ
4117
4118 eval "$ac_cv_use_file"
4119 if test "$no_cache" != 1; then
4120 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4121 fi
4122
4123 if test "$wxUSE_FILE" = yes; then
6232543b
VS
4124 echo "$as_me:4124: result: yes" >&5
4125echo "${ECHO_T}yes" >&6
10f2d63a 4126 else
6232543b
VS
4127 echo "$as_me:4127: result: no" >&5
4128echo "${ECHO_T}no" >&6
10f2d63a 4129 fi
10f2d63a 4130
6232543b
VS
4131 echo "$as_me:4131: checking \"for --enable-textfile\"" >&5
4132echo $ECHO_N "checking \"for --enable-textfile\"... $ECHO_C" >&6
10f2d63a
VZ
4133 no_cache=0
4134 # Check whether --enable-textfile or --disable-textfile was given.
4135if test "${enable_textfile+set}" = set; then
4136 enableval="$enable_textfile"
6232543b 4137
10f2d63a
VZ
4138 if test "$enableval" = yes; then
4139 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4140 else
4141 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4142 fi
6232543b 4143
10f2d63a 4144else
6232543b 4145
10f2d63a
VZ
4146 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4147 if test "x$LINE" != x ; then
4148 eval "DEFAULT_$LINE"
4149 else
4150 no_cache=1
4151 fi
4152
4153 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4154
6232543b 4155fi;
10f2d63a
VZ
4156
4157 eval "$ac_cv_use_textfile"
4158 if test "$no_cache" != 1; then
4159 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4160 fi
4161
4162 if test "$wxUSE_TEXTFILE" = yes; then
6232543b
VS
4163 echo "$as_me:4163: result: yes" >&5
4164echo "${ECHO_T}yes" >&6
10f2d63a 4165 else
6232543b
VS
4166 echo "$as_me:4166: result: no" >&5
4167echo "${ECHO_T}no" >&6
10f2d63a 4168 fi
10f2d63a 4169
6232543b
VS
4170 echo "$as_me:4170: checking \"for --enable-unicode\"" >&5
4171echo $ECHO_N "checking \"for --enable-unicode\"... $ECHO_C" >&6
10f2d63a
VZ
4172 no_cache=0
4173 # Check whether --enable-unicode or --disable-unicode was given.
4174if test "${enable_unicode+set}" = set; then
4175 enableval="$enable_unicode"
6232543b 4176
10f2d63a
VZ
4177 if test "$enableval" = yes; then
4178 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4179 else
4180 ac_cv_use_unicode='wxUSE_UNICODE=no'
4181 fi
6232543b 4182
10f2d63a 4183else
6232543b 4184
10f2d63a
VZ
4185 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4186 if test "x$LINE" != x ; then
4187 eval "DEFAULT_$LINE"
4188 else
4189 no_cache=1
4190 fi
4191
4192 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
10f2d63a 4193
6232543b 4194fi;
10f2d63a
VZ
4195
4196 eval "$ac_cv_use_unicode"
4197 if test "$no_cache" != 1; then
4198 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4199 fi
4200
4201 if test "$wxUSE_UNICODE" = yes; then
6232543b
VS
4202 echo "$as_me:4202: result: yes" >&5
4203echo "${ECHO_T}yes" >&6
10f2d63a 4204 else
6232543b
VS
4205 echo "$as_me:4205: result: no" >&5
4206echo "${ECHO_T}no" >&6
10f2d63a 4207 fi
10f2d63a 4208
6232543b
VS
4209 echo "$as_me:4209: checking \"for --enable-wcsrtombs\"" >&5
4210echo $ECHO_N "checking \"for --enable-wcsrtombs\"... $ECHO_C" >&6
10f2d63a
VZ
4211 no_cache=0
4212 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
4213if test "${enable_wcsrtombs+set}" = set; then
4214 enableval="$enable_wcsrtombs"
6232543b 4215
10f2d63a
VZ
4216 if test "$enableval" = yes; then
4217 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
4218 else
4219 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
4220 fi
6232543b 4221
10f2d63a 4222else
6232543b 4223
10f2d63a
VZ
4224 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
10f2d63a 4232
6232543b 4233fi;
10f2d63a
VZ
4234
4235 eval "$ac_cv_use_wcsrtombs"
4236 if test "$no_cache" != 1; then
4237 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
4238 fi
4239
4240 if test "$wxUSE_WCSRTOMBS" = yes; then
6232543b
VS
4241 echo "$as_me:4241: result: yes" >&5
4242echo "${ECHO_T}yes" >&6
10f2d63a 4243 else
6232543b
VS
4244 echo "$as_me:4244: result: no" >&5
4245echo "${ECHO_T}no" >&6
10f2d63a 4246 fi
10f2d63a 4247
6232543b
VS
4248 echo "$as_me:4248: checking \"for --enable-wxprintfv\"" >&5
4249echo $ECHO_N "checking \"for --enable-wxprintfv\"... $ECHO_C" >&6
10f2d63a
VZ
4250 no_cache=0
4251 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4252if test "${enable_wxprintfv+set}" = set; then
4253 enableval="$enable_wxprintfv"
6232543b 4254
10f2d63a
VZ
4255 if test "$enableval" = yes; then
4256 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4257 else
4258 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4259 fi
6232543b 4260
10f2d63a 4261else
6232543b 4262
10f2d63a
VZ
4263 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 4271
6232543b 4272fi;
10f2d63a
VZ
4273
4274 eval "$ac_cv_use_wxprintfv"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6232543b
VS
4280 echo "$as_me:4280: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
10f2d63a 4282 else
6232543b
VS
4283 echo "$as_me:4283: result: no" >&5
4284echo "${ECHO_T}no" >&6
10f2d63a 4285 fi
10f2d63a 4286
6232543b
VS
4287 echo "$as_me:4287: checking \"for --enable-std_iostreams\"" >&5
4288echo $ECHO_N "checking \"for --enable-std_iostreams\"... $ECHO_C" >&6
10f2d63a
VZ
4289 no_cache=0
4290 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4291if test "${enable_std_iostreams+set}" = set; then
4292 enableval="$enable_std_iostreams"
6232543b 4293
10f2d63a
VZ
4294 if test "$enableval" = yes; then
4295 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4296 else
4297 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4298 fi
6232543b 4299
10f2d63a 4300else
6232543b 4301
10f2d63a
VZ
4302 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 4310
6232543b 4311fi;
10f2d63a
VZ
4312
4313 eval "$ac_cv_use_std_iostreams"
4314 if test "$no_cache" != 1; then
4315 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4316 fi
4317
4318 if test "$wxUSE_STD_IOSTREAM" = yes; then
6232543b
VS
4319 echo "$as_me:4319: result: yes" >&5
4320echo "${ECHO_T}yes" >&6
10f2d63a 4321 else
6232543b
VS
4322 echo "$as_me:4322: result: no" >&5
4323echo "${ECHO_T}no" >&6
10f2d63a 4324 fi
10f2d63a 4325
6232543b
VS
4326 echo "$as_me:4326: checking \"for --enable-filesystem\"" >&5
4327echo $ECHO_N "checking \"for --enable-filesystem\"... $ECHO_C" >&6
24528b0c
VS
4328 no_cache=0
4329 # Check whether --enable-filesystem or --disable-filesystem was given.
4330if test "${enable_filesystem+set}" = set; then
4331 enableval="$enable_filesystem"
6232543b 4332
24528b0c
VS
4333 if test "$enableval" = yes; then
4334 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4335 else
4336 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4337 fi
6232543b 4338
24528b0c 4339else
6232543b 4340
24528b0c
VS
4341 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 4349
6232543b 4350fi;
24528b0c
VS
4351
4352 eval "$ac_cv_use_filesystem"
4353 if test "$no_cache" != 1; then
4354 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4355 fi
4356
4357 if test "$wxUSE_FILESYSTEM" = yes; then
6232543b
VS
4358 echo "$as_me:4358: result: yes" >&5
4359echo "${ECHO_T}yes" >&6
24528b0c 4360 else
6232543b
VS
4361 echo "$as_me:4361: result: no" >&5
4362echo "${ECHO_T}no" >&6
24528b0c 4363 fi
24528b0c 4364
6232543b
VS
4365 echo "$as_me:4365: checking \"for --enable-fs_inet\"" >&5
4366echo $ECHO_N "checking \"for --enable-fs_inet\"... $ECHO_C" >&6
10f2d63a
VZ
4367 no_cache=0
4368 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4369if test "${enable_fs_inet+set}" = set; then
4370 enableval="$enable_fs_inet"
6232543b 4371
10f2d63a
VZ
4372 if test "$enableval" = yes; then
4373 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4374 else
4375 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4376 fi
6232543b 4377
10f2d63a 4378else
6232543b 4379
10f2d63a
VZ
4380 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4381 if test "x$LINE" != x ; then
4382 eval "DEFAULT_$LINE"
4383 else
4384 no_cache=1
4385 fi
4386
4387 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4388
6232543b 4389fi;
10f2d63a
VZ
4390
4391 eval "$ac_cv_use_fs_inet"
4392 if test "$no_cache" != 1; then
4393 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4394 fi
4395
4396 if test "$wxUSE_FS_INET" = yes; then
6232543b
VS
4397 echo "$as_me:4397: result: yes" >&5
4398echo "${ECHO_T}yes" >&6
10f2d63a 4399 else
6232543b
VS
4400 echo "$as_me:4400: result: no" >&5
4401echo "${ECHO_T}no" >&6
10f2d63a 4402 fi
10f2d63a 4403
6232543b
VS
4404 echo "$as_me:4404: checking \"for --enable-fs_zip\"" >&5
4405echo $ECHO_N "checking \"for --enable-fs_zip\"... $ECHO_C" >&6
10f2d63a
VZ
4406 no_cache=0
4407 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4408if test "${enable_fs_zip+set}" = set; then
4409 enableval="$enable_fs_zip"
6232543b 4410
10f2d63a
VZ
4411 if test "$enableval" = yes; then
4412 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4413 else
4414 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4415 fi
6232543b 4416
10f2d63a 4417else
6232543b 4418
10f2d63a
VZ
4419 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 4427
6232543b 4428fi;
10f2d63a
VZ
4429
4430 eval "$ac_cv_use_fs_zip"
4431 if test "$no_cache" != 1; then
4432 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4433 fi
4434
4435 if test "$wxUSE_FS_ZIP" = yes; then
6232543b
VS
4436 echo "$as_me:4436: result: yes" >&5
4437echo "${ECHO_T}yes" >&6
10f2d63a 4438 else
6232543b
VS
4439 echo "$as_me:4439: result: no" >&5
4440echo "${ECHO_T}no" >&6
10f2d63a 4441 fi
10f2d63a 4442
6232543b
VS
4443 echo "$as_me:4443: checking \"for --enable-zipstream\"" >&5
4444echo $ECHO_N "checking \"for --enable-zipstream\"... $ECHO_C" >&6
10f2d63a
VZ
4445 no_cache=0
4446 # Check whether --enable-zipstream or --disable-zipstream was given.
4447if test "${enable_zipstream+set}" = set; then
4448 enableval="$enable_zipstream"
6232543b 4449
10f2d63a
VZ
4450 if test "$enableval" = yes; then
4451 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4452 else
4453 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4454 fi
6232543b 4455
10f2d63a 4456else
6232543b 4457
10f2d63a
VZ
4458 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4459 if test "x$LINE" != x ; then
4460 eval "DEFAULT_$LINE"
4461 else
4462 no_cache=1
4463 fi
4464
4465 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 4466
6232543b 4467fi;
10f2d63a
VZ
4468
4469 eval "$ac_cv_use_zipstream"
4470 if test "$no_cache" != 1; then
4471 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4472 fi
4473
4474 if test "$wxUSE_ZIPSTREAM" = yes; then
6232543b
VS
4475 echo "$as_me:4475: result: yes" >&5
4476echo "${ECHO_T}yes" >&6
10f2d63a 4477 else
6232543b
VS
4478 echo "$as_me:4478: result: no" >&5
4479echo "${ECHO_T}no" >&6
10f2d63a 4480 fi
10f2d63a 4481
6232543b
VS
4482 echo "$as_me:4482: checking \"for --enable-catch_segvs\"" >&5
4483echo $ECHO_N "checking \"for --enable-catch_segvs\"... $ECHO_C" >&6
eb4efbdc
VZ
4484 no_cache=0
4485 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4486if test "${enable_catch_segvs+set}" = set; then
4487 enableval="$enable_catch_segvs"
6232543b 4488
eb4efbdc
VZ
4489 if test "$enableval" = yes; then
4490 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4491 else
4492 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4493 fi
6232543b 4494
eb4efbdc 4495else
6232543b 4496
eb4efbdc
VZ
4497 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4498 if test "x$LINE" != x ; then
4499 eval "DEFAULT_$LINE"
4500 else
4501 no_cache=1
4502 fi
4503
4504 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 4505
6232543b 4506fi;
eb4efbdc
VZ
4507
4508 eval "$ac_cv_use_catch_segvs"
4509 if test "$no_cache" != 1; then
4510 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4511 fi
4512
4513 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
6232543b
VS
4514 echo "$as_me:4514: result: yes" >&5
4515echo "${ECHO_T}yes" >&6
eb4efbdc 4516 else
6232543b
VS
4517 echo "$as_me:4517: result: no" >&5
4518echo "${ECHO_T}no" >&6
eb4efbdc 4519 fi
eb4efbdc 4520
6232543b
VS
4521 echo "$as_me:4521: checking \"for --enable-snglinst\"" >&5
4522echo $ECHO_N "checking \"for --enable-snglinst\"... $ECHO_C" >&6
4f3c5f06
VZ
4523 no_cache=0
4524 # Check whether --enable-snglinst or --disable-snglinst was given.
4525if test "${enable_snglinst+set}" = set; then
4526 enableval="$enable_snglinst"
6232543b 4527
4f3c5f06
VZ
4528 if test "$enableval" = yes; then
4529 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4530 else
4531 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4532 fi
6232543b 4533
4f3c5f06 4534else
6232543b 4535
4f3c5f06
VZ
4536 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4537 if test "x$LINE" != x ; then
4538 eval "DEFAULT_$LINE"
4539 else
4540 no_cache=1
4541 fi
4542
4543 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 4544
6232543b 4545fi;
4f3c5f06
VZ
4546
4547 eval "$ac_cv_use_snglinst"
4548 if test "$no_cache" != 1; then
4549 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4550 fi
4551
4552 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
6232543b
VS
4553 echo "$as_me:4553: result: yes" >&5
4554echo "${ECHO_T}yes" >&6
4f3c5f06 4555 else
6232543b
VS
4556 echo "$as_me:4556: result: no" >&5
4557echo "${ECHO_T}no" >&6
4f3c5f06 4558 fi
eb4efbdc 4559
6232543b
VS
4560 echo "$as_me:4560: checking \"for --enable-threads\"" >&5
4561echo $ECHO_N "checking \"for --enable-threads\"... $ECHO_C" >&6
10f2d63a
VZ
4562 no_cache=0
4563 # Check whether --enable-threads or --disable-threads was given.
4564if test "${enable_threads+set}" = set; then
4565 enableval="$enable_threads"
6232543b 4566
10f2d63a
VZ
4567 if test "$enableval" = yes; then
4568 ac_cv_use_threads='wxUSE_THREADS=yes'
4569 else
4570 ac_cv_use_threads='wxUSE_THREADS=no'
4571 fi
6232543b 4572
10f2d63a 4573else
6232543b 4574
10f2d63a
VZ
4575 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4576 if test "x$LINE" != x ; then
4577 eval "DEFAULT_$LINE"
4578 else
4579 no_cache=1
4580 fi
4581
4582 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 4583
6232543b 4584fi;
10f2d63a
VZ
4585
4586 eval "$ac_cv_use_threads"
4587 if test "$no_cache" != 1; then
4588 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4589 fi
4590
4591 if test "$wxUSE_THREADS" = yes; then
6232543b
VS
4592 echo "$as_me:4592: result: yes" >&5
4593echo "${ECHO_T}yes" >&6
10f2d63a 4594 else
6232543b
VS
4595 echo "$as_me:4595: result: no" >&5
4596echo "${ECHO_T}no" >&6
10f2d63a 4597 fi
10f2d63a 4598
6232543b
VS
4599 echo "$as_me:4599: checking \"for --enable-serial\"" >&5
4600echo $ECHO_N "checking \"for --enable-serial\"... $ECHO_C" >&6
10f2d63a
VZ
4601 no_cache=0
4602 # Check whether --enable-serial or --disable-serial was given.
4603if test "${enable_serial+set}" = set; then
4604 enableval="$enable_serial"
6232543b 4605
10f2d63a
VZ
4606 if test "$enableval" = yes; then
4607 ac_cv_use_serial='wxUSE_SERIAL=yes'
4608 else
4609 ac_cv_use_serial='wxUSE_SERIAL=no'
4610 fi
6232543b 4611
10f2d63a 4612else
6232543b 4613
10f2d63a
VZ
4614 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4615 if test "x$LINE" != x ; then
4616 eval "DEFAULT_$LINE"
4617 else
4618 no_cache=1
4619 fi
4620
4621 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
10f2d63a 4622
6232543b 4623fi;
10f2d63a
VZ
4624
4625 eval "$ac_cv_use_serial"
4626 if test "$no_cache" != 1; then
4627 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4628 fi
4629
4630 if test "$wxUSE_SERIAL" = yes; then
6232543b
VS
4631 echo "$as_me:4631: result: yes" >&5
4632echo "${ECHO_T}yes" >&6
10f2d63a 4633 else
6232543b
VS
4634 echo "$as_me:4634: result: no" >&5
4635echo "${ECHO_T}no" >&6
10f2d63a 4636 fi
10f2d63a 4637
b12915c1
VZ
4638if test "$wxUSE_GUI" = "yes"; then
4639
6232543b
VS
4640 echo "$as_me:4640: checking \"for --enable-docview\"" >&5
4641echo $ECHO_N "checking \"for --enable-docview\"... $ECHO_C" >&6
10f2d63a
VZ
4642 no_cache=0
4643 # Check whether --enable-docview or --disable-docview was given.
4644if test "${enable_docview+set}" = set; then
4645 enableval="$enable_docview"
6232543b 4646
10f2d63a
VZ
4647 if test "$enableval" = yes; then
4648 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4649 else
4650 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4651 fi
6232543b 4652
10f2d63a 4653else
6232543b 4654
10f2d63a
VZ
4655 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4656 if test "x$LINE" != x ; then
4657 eval "DEFAULT_$LINE"
4658 else
4659 no_cache=1
4660 fi
4661
4662 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 4663
6232543b 4664fi;
10f2d63a
VZ
4665
4666 eval "$ac_cv_use_docview"
4667 if test "$no_cache" != 1; then
4668 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4669 fi
4670
4671 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6232543b
VS
4672 echo "$as_me:4672: result: yes" >&5
4673echo "${ECHO_T}yes" >&6
10f2d63a 4674 else
6232543b
VS
4675 echo "$as_me:4675: result: no" >&5
4676echo "${ECHO_T}no" >&6
10f2d63a 4677 fi
10f2d63a 4678
6232543b
VS
4679 echo "$as_me:4679: checking \"for --enable-help\"" >&5
4680echo $ECHO_N "checking \"for --enable-help\"... $ECHO_C" >&6
10f2d63a
VZ
4681 no_cache=0
4682 # Check whether --enable-help or --disable-help was given.
4683if test "${enable_help+set}" = set; then
4684 enableval="$enable_help"
6232543b 4685
10f2d63a
VZ
4686 if test "$enableval" = yes; then
4687 ac_cv_use_help='wxUSE_HELP=yes'
4688 else
4689 ac_cv_use_help='wxUSE_HELP=no'
4690 fi
6232543b 4691
10f2d63a 4692else
6232543b 4693
10f2d63a
VZ
4694 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
4701 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 4702
6232543b 4703fi;
10f2d63a
VZ
4704
4705 eval "$ac_cv_use_help"
4706 if test "$no_cache" != 1; then
4707 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4708 fi
4709
4710 if test "$wxUSE_HELP" = yes; then
6232543b
VS
4711 echo "$as_me:4711: result: yes" >&5
4712echo "${ECHO_T}yes" >&6
10f2d63a 4713 else
6232543b
VS
4714 echo "$as_me:4714: result: no" >&5
4715echo "${ECHO_T}no" >&6
10f2d63a 4716 fi
10f2d63a 4717
6232543b
VS
4718 echo "$as_me:4718: checking \"for --enable-constraints\"" >&5
4719echo $ECHO_N "checking \"for --enable-constraints\"... $ECHO_C" >&6
10f2d63a
VZ
4720 no_cache=0
4721 # Check whether --enable-constraints or --disable-constraints was given.
4722if test "${enable_constraints+set}" = set; then
4723 enableval="$enable_constraints"
6232543b 4724
10f2d63a
VZ
4725 if test "$enableval" = yes; then
4726 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4727 else
4728 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4729 fi
6232543b 4730
10f2d63a 4731else
6232543b 4732
10f2d63a
VZ
4733 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4734 if test "x$LINE" != x ; then
4735 eval "DEFAULT_$LINE"
4736 else
4737 no_cache=1
4738 fi
4739
4740 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 4741
6232543b 4742fi;
10f2d63a
VZ
4743
4744 eval "$ac_cv_use_constraints"
4745 if test "$no_cache" != 1; then
4746 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4747 fi
4748
4749 if test "$wxUSE_CONSTRAINTS" = yes; then
6232543b
VS
4750 echo "$as_me:4750: result: yes" >&5
4751echo "${ECHO_T}yes" >&6
10f2d63a 4752 else
6232543b
VS
4753 echo "$as_me:4753: result: no" >&5
4754echo "${ECHO_T}no" >&6
10f2d63a 4755 fi
10f2d63a 4756
6232543b
VS
4757 echo "$as_me:4757: checking \"for --enable-printarch\"" >&5
4758echo $ECHO_N "checking \"for --enable-printarch\"... $ECHO_C" >&6
10f2d63a
VZ
4759 no_cache=0
4760 # Check whether --enable-printarch or --disable-printarch was given.
4761if test "${enable_printarch+set}" = set; then
4762 enableval="$enable_printarch"
6232543b 4763
10f2d63a
VZ
4764 if test "$enableval" = yes; then
4765 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4766 else
4767 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4768 fi
6232543b 4769
10f2d63a 4770else
6232543b 4771
10f2d63a
VZ
4772 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4773 if test "x$LINE" != x ; then
4774 eval "DEFAULT_$LINE"
4775 else
4776 no_cache=1
4777 fi
4778
4779 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 4780
6232543b 4781fi;
10f2d63a
VZ
4782
4783 eval "$ac_cv_use_printarch"
4784 if test "$no_cache" != 1; then
4785 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4786 fi
4787
4788 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6232543b
VS
4789 echo "$as_me:4789: result: yes" >&5
4790echo "${ECHO_T}yes" >&6
10f2d63a 4791 else
6232543b
VS
4792 echo "$as_me:4792: result: no" >&5
4793echo "${ECHO_T}no" >&6
10f2d63a 4794 fi
10f2d63a 4795
6232543b
VS
4796 echo "$as_me:4796: checking \"for --enable-mdi\"" >&5
4797echo $ECHO_N "checking \"for --enable-mdi\"... $ECHO_C" >&6
10f2d63a
VZ
4798 no_cache=0
4799 # Check whether --enable-mdi or --disable-mdi was given.
4800if test "${enable_mdi+set}" = set; then
4801 enableval="$enable_mdi"
6232543b 4802
10f2d63a
VZ
4803 if test "$enableval" = yes; then
4804 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4805 else
4806 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4807 fi
6232543b 4808
10f2d63a 4809else
6232543b 4810
10f2d63a
VZ
4811 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 4819
6232543b 4820fi;
10f2d63a
VZ
4821
4822 eval "$ac_cv_use_mdi"
4823 if test "$no_cache" != 1; then
4824 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4825 fi
4826
4827 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6232543b
VS
4828 echo "$as_me:4828: result: yes" >&5
4829echo "${ECHO_T}yes" >&6
10f2d63a 4830 else
6232543b
VS
4831 echo "$as_me:4831: result: no" >&5
4832echo "${ECHO_T}no" >&6
10f2d63a 4833 fi
10f2d63a 4834
6232543b
VS
4835 echo "$as_me:4835: checking \"for --enable-postscript\"" >&5
4836echo $ECHO_N "checking \"for --enable-postscript\"... $ECHO_C" >&6
10f2d63a
VZ
4837 no_cache=0
4838 # Check whether --enable-postscript or --disable-postscript was given.
4839if test "${enable_postscript+set}" = set; then
4840 enableval="$enable_postscript"
6232543b 4841
10f2d63a
VZ
4842 if test "$enableval" = yes; then
4843 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4844 else
4845 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4846 fi
6232543b 4847
10f2d63a 4848else
6232543b 4849
10f2d63a
VZ
4850 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4851 if test "x$LINE" != x ; then
4852 eval "DEFAULT_$LINE"
4853 else
4854 no_cache=1
4855 fi
4856
4857 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 4858
6232543b 4859fi;
10f2d63a
VZ
4860
4861 eval "$ac_cv_use_postscript"
4862 if test "$no_cache" != 1; then
4863 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4864 fi
4865
4866 if test "$wxUSE_POSTSCRIPT" = yes; then
6232543b
VS
4867 echo "$as_me:4867: result: yes" >&5
4868echo "${ECHO_T}yes" >&6
10f2d63a 4869 else
6232543b
VS
4870 echo "$as_me:4870: result: no" >&5
4871echo "${ECHO_T}no" >&6
10f2d63a 4872 fi
10f2d63a 4873
6232543b
VS
4874 echo "$as_me:4874: checking \"for --enable-prologio\"" >&5
4875echo $ECHO_N "checking \"for --enable-prologio\"... $ECHO_C" >&6
10f2d63a
VZ
4876 no_cache=0
4877 # Check whether --enable-prologio or --disable-prologio was given.
4878if test "${enable_prologio+set}" = set; then
4879 enableval="$enable_prologio"
6232543b 4880
10f2d63a
VZ
4881 if test "$enableval" = yes; then
4882 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4883 else
4884 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4885 fi
6232543b 4886
10f2d63a 4887else
6232543b 4888
10f2d63a
VZ
4889 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4890 if test "x$LINE" != x ; then
4891 eval "DEFAULT_$LINE"
4892 else
4893 no_cache=1
4894 fi
4895
4896 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 4897
6232543b 4898fi;
10f2d63a
VZ
4899
4900 eval "$ac_cv_use_prologio"
4901 if test "$no_cache" != 1; then
4902 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4903 fi
4904
4905 if test "$wxUSE_PROLOGIO" = yes; then
6232543b
VS
4906 echo "$as_me:4906: result: yes" >&5
4907echo "${ECHO_T}yes" >&6
10f2d63a 4908 else
6232543b
VS
4909 echo "$as_me:4909: result: no" >&5
4910echo "${ECHO_T}no" >&6
10f2d63a 4911 fi
10f2d63a 4912
6232543b
VS
4913 echo "$as_me:4913: checking \"for --enable-resources\"" >&5
4914echo $ECHO_N "checking \"for --enable-resources\"... $ECHO_C" >&6
10f2d63a
VZ
4915 no_cache=0
4916 # Check whether --enable-resources or --disable-resources was given.
4917if test "${enable_resources+set}" = set; then
4918 enableval="$enable_resources"
6232543b 4919
10f2d63a
VZ
4920 if test "$enableval" = yes; then
4921 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4922 else
4923 ac_cv_use_resources='wxUSE_RESOURCES=no'
4924 fi
6232543b 4925
10f2d63a 4926else
6232543b 4927
10f2d63a
VZ
4928 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 4936
6232543b 4937fi;
10f2d63a
VZ
4938
4939 eval "$ac_cv_use_resources"
4940 if test "$no_cache" != 1; then
4941 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4942 fi
4943
4944 if test "$wxUSE_RESOURCES" = yes; then
6232543b
VS
4945 echo "$as_me:4945: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
10f2d63a 4947 else
6232543b
VS
4948 echo "$as_me:4948: result: no" >&5
4949echo "${ECHO_T}no" >&6
10f2d63a 4950 fi
10f2d63a 4951
6232543b
VS
4952 echo "$as_me:4952: checking \"for --enable-xresources\"" >&5
4953echo $ECHO_N "checking \"for --enable-xresources\"... $ECHO_C" >&6
10f2d63a
VZ
4954 no_cache=0
4955 # Check whether --enable-xresources or --disable-xresources was given.
4956if test "${enable_xresources+set}" = set; then
4957 enableval="$enable_xresources"
6232543b 4958
10f2d63a
VZ
4959 if test "$enableval" = yes; then
4960 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4961 else
4962 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4963 fi
6232543b 4964
10f2d63a 4965else
6232543b 4966
10f2d63a
VZ
4967 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4968 if test "x$LINE" != x ; then
4969 eval "DEFAULT_$LINE"
4970 else
4971 no_cache=1
4972 fi
4973
4974 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
10f2d63a 4975
6232543b 4976fi;
10f2d63a
VZ
4977
4978 eval "$ac_cv_use_xresources"
4979 if test "$no_cache" != 1; then
4980 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4981 fi
4982
4983 if test "$wxUSE_X_RESOURCES" = yes; then
6232543b
VS
4984 echo "$as_me:4984: result: yes" >&5
4985echo "${ECHO_T}yes" >&6
10f2d63a 4986 else
6232543b
VS
4987 echo "$as_me:4987: result: no" >&5
4988echo "${ECHO_T}no" >&6
10f2d63a 4989 fi
10f2d63a 4990
6232543b
VS
4991 echo "$as_me:4991: checking \"for --enable-clipboard\"" >&5
4992echo $ECHO_N "checking \"for --enable-clipboard\"... $ECHO_C" >&6
10f2d63a
VZ
4993 no_cache=0
4994 # Check whether --enable-clipboard or --disable-clipboard was given.
4995if test "${enable_clipboard+set}" = set; then
4996 enableval="$enable_clipboard"
6232543b 4997
10f2d63a
VZ
4998 if test "$enableval" = yes; then
4999 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5000 else
5001 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5002 fi
6232543b 5003
10f2d63a 5004else
6232543b 5005
10f2d63a
VZ
5006 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5007 if test "x$LINE" != x ; then
5008 eval "DEFAULT_$LINE"
5009 else
5010 no_cache=1
5011 fi
5012
5013 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 5014
6232543b 5015fi;
10f2d63a
VZ
5016
5017 eval "$ac_cv_use_clipboard"
5018 if test "$no_cache" != 1; then
5019 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5020 fi
5021
5022 if test "$wxUSE_CLIPBOARD" = yes; then
6232543b
VS
5023 echo "$as_me:5023: result: yes" >&5
5024echo "${ECHO_T}yes" >&6
10f2d63a 5025 else
6232543b
VS
5026 echo "$as_me:5026: result: no" >&5
5027echo "${ECHO_T}no" >&6
10f2d63a 5028 fi
10f2d63a 5029
6232543b
VS
5030 echo "$as_me:5030: checking \"for --enable-dnd\"" >&5
5031echo $ECHO_N "checking \"for --enable-dnd\"... $ECHO_C" >&6
10f2d63a
VZ
5032 no_cache=0
5033 # Check whether --enable-dnd or --disable-dnd was given.
5034if test "${enable_dnd+set}" = set; then
5035 enableval="$enable_dnd"
6232543b 5036
10f2d63a
VZ
5037 if test "$enableval" = yes; then
5038 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5039 else
5040 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5041 fi
6232543b 5042
10f2d63a 5043else
6232543b 5044
10f2d63a
VZ
5045 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 5053
6232543b 5054fi;
10f2d63a
VZ
5055
5056 eval "$ac_cv_use_dnd"
5057 if test "$no_cache" != 1; then
5058 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5059 fi
5060
5061 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6232543b
VS
5062 echo "$as_me:5062: result: yes" >&5
5063echo "${ECHO_T}yes" >&6
10f2d63a 5064 else
6232543b
VS
5065 echo "$as_me:5065: result: no" >&5
5066echo "${ECHO_T}no" >&6
10f2d63a 5067 fi
10f2d63a 5068
6232543b
VS
5069 echo "$as_me:5069: checking \"for --enable-metafile\"" >&5
5070echo $ECHO_N "checking \"for --enable-metafile\"... $ECHO_C" >&6
b64f0a5f
RL
5071 no_cache=0
5072 # Check whether --enable-metafile or --disable-metafile was given.
5073if test "${enable_metafile+set}" = set; then
5074 enableval="$enable_metafile"
6232543b 5075
b64f0a5f
RL
5076 if test "$enableval" = yes; then
5077 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5078 else
5079 ac_cv_use_metafile='wxUSE_METAFILE=no'
5080 fi
6232543b 5081
b64f0a5f 5082else
6232543b 5083
b64f0a5f
RL
5084 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5085 if test "x$LINE" != x ; then
5086 eval "DEFAULT_$LINE"
5087 else
5088 no_cache=1
5089 fi
5090
5091 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 5092
6232543b 5093fi;
b64f0a5f
RL
5094
5095 eval "$ac_cv_use_metafile"
5096 if test "$no_cache" != 1; then
5097 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5098 fi
5099
5100 if test "$wxUSE_METAFILE" = yes; then
6232543b
VS
5101 echo "$as_me:5101: result: yes" >&5
5102echo "${ECHO_T}yes" >&6
b64f0a5f 5103 else
6232543b
VS
5104 echo "$as_me:5104: result: no" >&5
5105echo "${ECHO_T}no" >&6
b64f0a5f 5106 fi
10f2d63a 5107
6232543b
VS
5108 echo "$as_me:5108: checking \"for --enable-wxtree\"" >&5
5109echo $ECHO_N "checking \"for --enable-wxtree\"... $ECHO_C" >&6
10f2d63a
VZ
5110 no_cache=0
5111 # Check whether --enable-wxtree or --disable-wxtree was given.
5112if test "${enable_wxtree+set}" = set; then
5113 enableval="$enable_wxtree"
6232543b 5114
10f2d63a
VZ
5115 if test "$enableval" = yes; then
5116 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
5117 else
5118 ac_cv_use_wxtree='wxUSE_WXTREE=no'
5119 fi
6232543b 5120
10f2d63a 5121else
6232543b 5122
10f2d63a
VZ
5123 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
5124 if test "x$LINE" != x ; then
5125 eval "DEFAULT_$LINE"
5126 else
5127 no_cache=1
5128 fi
5129
5130 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
10f2d63a 5131
6232543b 5132fi;
10f2d63a
VZ
5133
5134 eval "$ac_cv_use_wxtree"
5135 if test "$no_cache" != 1; then
5136 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
5137 fi
5138
5139 if test "$wxUSE_WXTREE" = yes; then
6232543b
VS
5140 echo "$as_me:5140: result: yes" >&5
5141echo "${ECHO_T}yes" >&6
10f2d63a 5142 else
6232543b
VS
5143 echo "$as_me:5143: result: no" >&5
5144echo "${ECHO_T}no" >&6
10f2d63a 5145 fi
10f2d63a 5146
6232543b
VS
5147 echo "$as_me:5147: checking \"for --enable-controls\"" >&5
5148echo $ECHO_N "checking \"for --enable-controls\"... $ECHO_C" >&6
10f2d63a
VZ
5149 no_cache=0
5150 # Check whether --enable-controls or --disable-controls was given.
5151if test "${enable_controls+set}" = set; then
5152 enableval="$enable_controls"
6232543b 5153
10f2d63a
VZ
5154 if test "$enableval" = yes; then
5155 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5156 else
5157 ac_cv_use_controls='wxUSE_CONTROLS=no'
5158 fi
6232543b 5159
10f2d63a 5160else
6232543b 5161
10f2d63a
VZ
5162 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 5170
6232543b 5171fi;
10f2d63a
VZ
5172
5173 eval "$ac_cv_use_controls"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_CONTROLS" = yes; then
6232543b
VS
5179 echo "$as_me:5179: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
10f2d63a 5181 else
6232543b
VS
5182 echo "$as_me:5182: result: no" >&5
5183echo "${ECHO_T}no" >&6
10f2d63a 5184 fi
10f2d63a
VZ
5185
5186if test "$wxUSE_CONTROLS" = "yes"; then
5187 DEFAULT_wxUSE_ACCEL=yes
5188 DEFAULT_wxUSE_CARET=yes
5189 DEFAULT_wxUSE_COMBOBOX=yes
5190 DEFAULT_wxUSE_BMPBUTTON=yes
5191 DEFAULT_wxUSE_CHECKBOX=yes
5192 DEFAULT_wxUSE_CHECKLISTBOX=yes
5193 DEFAULT_wxUSE_CHOICE=yes
5194 DEFAULT_wxUSE_GAUGE=yes
5195 DEFAULT_wxUSE_GRID=yes
cc977e5f 5196 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5197 DEFAULT_wxUSE_IMAGLIST=yes
5198 DEFAULT_wxUSE_LISTBOX=yes
5199 DEFAULT_wxUSE_LISTCTRL=yes
5200 DEFAULT_wxUSE_NOTEBOOK=yes
5201 DEFAULT_wxUSE_RADIOBOX=yes
5202 DEFAULT_wxUSE_RADIOBTN=yes
5203 DEFAULT_wxUSE_SASH=yes
5204 DEFAULT_wxUSE_SCROLLBAR=yes
5205 DEFAULT_wxUSE_SLIDER=yes
5206 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5207 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5208 DEFAULT_wxUSE_SPLITTER=yes
5209 DEFAULT_wxUSE_STATBMP=yes
5210 DEFAULT_wxUSE_STATBOX=yes
5211 DEFAULT_wxUSE_STATLINE=yes
5212 DEFAULT_wxUSE_STATUSBAR=yes
5213 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5214 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5215 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5216 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5217 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5218 DEFAULT_wxUSE_TOOLTIPS=yes
5219 DEFAULT_wxUSE_TREECTRL=yes
5220elif test "$wxUSE_CONTROLS" = "no"; then
5221 DEFAULT_wxUSE_ACCEL=no
5222 DEFAULT_wxUSE_CARET=no
5223 DEFAULT_wxUSE_COMBOBOX=no
5224 DEFAULT_wxUSE_BMPBUTTON=no
5225 DEFAULT_wxUSE_CHECKBOX=no
5226 DEFAULT_wxUSE_CHECKLISTBOX=no
5227 DEFAULT_wxUSE_CHOICE=no
5228 DEFAULT_wxUSE_GAUGE=no
5229 DEFAULT_wxUSE_GRID=no
5230 DEFAULT_wxUSE_NEW_GRID=no
5231 DEFAULT_wxUSE_IMAGLIST=no
5232 DEFAULT_wxUSE_LISTBOX=no
5233 DEFAULT_wxUSE_LISTCTRL=no
5234 DEFAULT_wxUSE_NOTEBOOK=no
5235 DEFAULT_wxUSE_RADIOBOX=no
5236 DEFAULT_wxUSE_RADIOBTN=no
5237 DEFAULT_wxUSE_SASH=no
5238 DEFAULT_wxUSE_SCROLLBAR=no
5239 DEFAULT_wxUSE_SLIDER=no
5240 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5241 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5242 DEFAULT_wxUSE_SPLITTER=no
5243 DEFAULT_wxUSE_STATBMP=no
5244 DEFAULT_wxUSE_STATBOX=no
5245 DEFAULT_wxUSE_STATLINE=no
5246 DEFAULT_wxUSE_STATUSBAR=no
5247 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5248 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5249 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5250 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5251 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5252 DEFAULT_wxUSE_TOOLTIPS=no
5253 DEFAULT_wxUSE_TREECTRL=no
5254fi
5255
6232543b
VS
5256 echo "$as_me:5256: checking \"for --enable-accel\"" >&5
5257echo $ECHO_N "checking \"for --enable-accel\"... $ECHO_C" >&6
10f2d63a
VZ
5258 no_cache=0
5259 # Check whether --enable-accel or --disable-accel was given.
5260if test "${enable_accel+set}" = set; then
5261 enableval="$enable_accel"
6232543b 5262
10f2d63a
VZ
5263 if test "$enableval" = yes; then
5264 ac_cv_use_accel='wxUSE_ACCEL=yes'
5265 else
5266 ac_cv_use_accel='wxUSE_ACCEL=no'
5267 fi
6232543b 5268
10f2d63a 5269else
6232543b 5270
10f2d63a
VZ
5271 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 5279
6232543b 5280fi;
10f2d63a
VZ
5281
5282 eval "$ac_cv_use_accel"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_ACCEL" = yes; then
6232543b
VS
5288 echo "$as_me:5288: result: yes" >&5
5289echo "${ECHO_T}yes" >&6
10f2d63a 5290 else
6232543b
VS
5291 echo "$as_me:5291: result: no" >&5
5292echo "${ECHO_T}no" >&6
10f2d63a 5293 fi
10f2d63a 5294
6232543b
VS
5295 echo "$as_me:5295: checking \"for --enable-caret\"" >&5
5296echo $ECHO_N "checking \"for --enable-caret\"... $ECHO_C" >&6
10f2d63a
VZ
5297 no_cache=0
5298 # Check whether --enable-caret or --disable-caret was given.
5299if test "${enable_caret+set}" = set; then
5300 enableval="$enable_caret"
6232543b 5301
10f2d63a
VZ
5302 if test "$enableval" = yes; then
5303 ac_cv_use_caret='wxUSE_CARET=yes'
5304 else
5305 ac_cv_use_caret='wxUSE_CARET=no'
5306 fi
6232543b 5307
10f2d63a 5308else
6232543b 5309
10f2d63a
VZ
5310 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
10f2d63a 5318
6232543b 5319fi;
10f2d63a
VZ
5320
5321 eval "$ac_cv_use_caret"
5322 if test "$no_cache" != 1; then
5323 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5324 fi
5325
5326 if test "$wxUSE_CARET" = yes; then
6232543b
VS
5327 echo "$as_me:5327: result: yes" >&5
5328echo "${ECHO_T}yes" >&6
10f2d63a 5329 else
6232543b
VS
5330 echo "$as_me:5330: result: no" >&5
5331echo "${ECHO_T}no" >&6
10f2d63a 5332 fi
10f2d63a 5333
6232543b
VS
5334 echo "$as_me:5334: checking \"for --enable-bmpbutton\"" >&5
5335echo $ECHO_N "checking \"for --enable-bmpbutton\"... $ECHO_C" >&6
10f2d63a
VZ
5336 no_cache=0
5337 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5338if test "${enable_bmpbutton+set}" = set; then
5339 enableval="$enable_bmpbutton"
6232543b 5340
10f2d63a
VZ
5341 if test "$enableval" = yes; then
5342 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5343 else
5344 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5345 fi
6232543b 5346
10f2d63a 5347else
6232543b 5348
10f2d63a
VZ
5349 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 5357
6232543b 5358fi;
10f2d63a
VZ
5359
5360 eval "$ac_cv_use_bmpbutton"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_BMPBUTTON" = yes; then
6232543b
VS
5366 echo "$as_me:5366: result: yes" >&5
5367echo "${ECHO_T}yes" >&6
10f2d63a 5368 else
6232543b
VS
5369 echo "$as_me:5369: result: no" >&5
5370echo "${ECHO_T}no" >&6
10f2d63a 5371 fi
10f2d63a 5372
6232543b
VS
5373 echo "$as_me:5373: checking \"for --enable-checkbox\"" >&5
5374echo $ECHO_N "checking \"for --enable-checkbox\"... $ECHO_C" >&6
10f2d63a
VZ
5375 no_cache=0
5376 # Check whether --enable-checkbox or --disable-checkbox was given.
5377if test "${enable_checkbox+set}" = set; then
5378 enableval="$enable_checkbox"
6232543b 5379
10f2d63a
VZ
5380 if test "$enableval" = yes; then
5381 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5382 else
5383 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5384 fi
6232543b 5385
10f2d63a 5386else
6232543b 5387
10f2d63a
VZ
5388 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 5396
6232543b 5397fi;
10f2d63a
VZ
5398
5399 eval "$ac_cv_use_checkbox"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_CHECKBOX" = yes; then
6232543b
VS
5405 echo "$as_me:5405: result: yes" >&5
5406echo "${ECHO_T}yes" >&6
10f2d63a 5407 else
6232543b
VS
5408 echo "$as_me:5408: result: no" >&5
5409echo "${ECHO_T}no" >&6
10f2d63a 5410 fi
10f2d63a 5411
6232543b
VS
5412 echo "$as_me:5412: checking \"for --enable-checklst\"" >&5
5413echo $ECHO_N "checking \"for --enable-checklst\"... $ECHO_C" >&6
10f2d63a
VZ
5414 no_cache=0
5415 # Check whether --enable-checklst or --disable-checklst was given.
5416if test "${enable_checklst+set}" = set; then
5417 enableval="$enable_checklst"
6232543b 5418
10f2d63a
VZ
5419 if test "$enableval" = yes; then
5420 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5421 else
5422 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5423 fi
6232543b 5424
10f2d63a 5425else
6232543b 5426
10f2d63a
VZ
5427 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 5435
6232543b 5436fi;
10f2d63a
VZ
5437
5438 eval "$ac_cv_use_checklst"
5439 if test "$no_cache" != 1; then
5440 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5441 fi
5442
5443 if test "$wxUSE_CHECKLST" = yes; then
6232543b
VS
5444 echo "$as_me:5444: result: yes" >&5
5445echo "${ECHO_T}yes" >&6
10f2d63a 5446 else
6232543b
VS
5447 echo "$as_me:5447: result: no" >&5
5448echo "${ECHO_T}no" >&6
10f2d63a 5449 fi
10f2d63a 5450
6232543b
VS
5451 echo "$as_me:5451: checking \"for --enable-choice\"" >&5
5452echo $ECHO_N "checking \"for --enable-choice\"... $ECHO_C" >&6
10f2d63a
VZ
5453 no_cache=0
5454 # Check whether --enable-choice or --disable-choice was given.
5455if test "${enable_choice+set}" = set; then
5456 enableval="$enable_choice"
6232543b 5457
10f2d63a
VZ
5458 if test "$enableval" = yes; then
5459 ac_cv_use_choice='wxUSE_CHOICE=yes'
5460 else
5461 ac_cv_use_choice='wxUSE_CHOICE=no'
5462 fi
6232543b 5463
10f2d63a 5464else
6232543b 5465
10f2d63a
VZ
5466 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 5474
6232543b 5475fi;
10f2d63a
VZ
5476
5477 eval "$ac_cv_use_choice"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_CHOICE" = yes; then
6232543b
VS
5483 echo "$as_me:5483: result: yes" >&5
5484echo "${ECHO_T}yes" >&6
10f2d63a 5485 else
6232543b
VS
5486 echo "$as_me:5486: result: no" >&5
5487echo "${ECHO_T}no" >&6
10f2d63a 5488 fi
10f2d63a 5489
6232543b
VS
5490 echo "$as_me:5490: checking \"for --enable-combobox\"" >&5
5491echo $ECHO_N "checking \"for --enable-combobox\"... $ECHO_C" >&6
10f2d63a
VZ
5492 no_cache=0
5493 # Check whether --enable-combobox or --disable-combobox was given.
5494if test "${enable_combobox+set}" = set; then
5495 enableval="$enable_combobox"
6232543b 5496
10f2d63a
VZ
5497 if test "$enableval" = yes; then
5498 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5499 else
5500 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5501 fi
6232543b 5502
10f2d63a 5503else
6232543b 5504
10f2d63a
VZ
5505 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 5513
6232543b 5514fi;
10f2d63a
VZ
5515
5516 eval "$ac_cv_use_combobox"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_COMBOBOX" = yes; then
6232543b
VS
5522 echo "$as_me:5522: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
10f2d63a 5524 else
6232543b
VS
5525 echo "$as_me:5525: result: no" >&5
5526echo "${ECHO_T}no" >&6
10f2d63a 5527 fi
10f2d63a 5528
6232543b
VS
5529 echo "$as_me:5529: checking \"for --enable-gauge\"" >&5
5530echo $ECHO_N "checking \"for --enable-gauge\"... $ECHO_C" >&6
10f2d63a
VZ
5531 no_cache=0
5532 # Check whether --enable-gauge or --disable-gauge was given.
5533if test "${enable_gauge+set}" = set; then
5534 enableval="$enable_gauge"
6232543b 5535
10f2d63a
VZ
5536 if test "$enableval" = yes; then
5537 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5538 else
5539 ac_cv_use_gauge='wxUSE_GAUGE=no'
5540 fi
6232543b 5541
10f2d63a 5542else
6232543b 5543
10f2d63a
VZ
5544 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
5551 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 5552
6232543b 5553fi;
10f2d63a
VZ
5554
5555 eval "$ac_cv_use_gauge"
5556 if test "$no_cache" != 1; then
5557 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5558 fi
5559
5560 if test "$wxUSE_GAUGE" = yes; then
6232543b
VS
5561 echo "$as_me:5561: result: yes" >&5
5562echo "${ECHO_T}yes" >&6
10f2d63a 5563 else
6232543b
VS
5564 echo "$as_me:5564: result: no" >&5
5565echo "${ECHO_T}no" >&6
10f2d63a 5566 fi
10f2d63a 5567
6232543b
VS
5568 echo "$as_me:5568: checking \"for --enable-grid\"" >&5
5569echo $ECHO_N "checking \"for --enable-grid\"... $ECHO_C" >&6
10f2d63a
VZ
5570 no_cache=0
5571 # Check whether --enable-grid or --disable-grid was given.
5572if test "${enable_grid+set}" = set; then
5573 enableval="$enable_grid"
6232543b 5574
10f2d63a
VZ
5575 if test "$enableval" = yes; then
5576 ac_cv_use_grid='wxUSE_GRID=yes'
5577 else
5578 ac_cv_use_grid='wxUSE_GRID=no'
5579 fi
6232543b 5580
10f2d63a 5581else
6232543b 5582
10f2d63a
VZ
5583 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5584 if test "x$LINE" != x ; then
5585 eval "DEFAULT_$LINE"
5586 else
5587 no_cache=1
5588 fi
5589
5590 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 5591
6232543b 5592fi;
10f2d63a
VZ
5593
5594 eval "$ac_cv_use_grid"
5595 if test "$no_cache" != 1; then
5596 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5597 fi
5598
5599 if test "$wxUSE_GRID" = yes; then
6232543b
VS
5600 echo "$as_me:5600: result: yes" >&5
5601echo "${ECHO_T}yes" >&6
10f2d63a 5602 else
6232543b
VS
5603 echo "$as_me:5603: result: no" >&5
5604echo "${ECHO_T}no" >&6
10f2d63a 5605 fi
10f2d63a 5606
6232543b
VS
5607 echo "$as_me:5607: checking \"for --enable-newgrid\"" >&5
5608echo $ECHO_N "checking \"for --enable-newgrid\"... $ECHO_C" >&6
10f2d63a
VZ
5609 no_cache=0
5610 # Check whether --enable-newgrid or --disable-newgrid was given.
5611if test "${enable_newgrid+set}" = set; then
5612 enableval="$enable_newgrid"
6232543b 5613
10f2d63a
VZ
5614 if test "$enableval" = yes; then
5615 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5616 else
5617 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5618 fi
6232543b 5619
10f2d63a 5620else
6232543b 5621
10f2d63a
VZ
5622 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
10f2d63a 5630
6232543b 5631fi;
10f2d63a
VZ
5632
5633 eval "$ac_cv_use_newgrid"
5634 if test "$no_cache" != 1; then
5635 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5636 fi
5637
5638 if test "$wxUSE_NEW_GRID" = yes; then
6232543b
VS
5639 echo "$as_me:5639: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
10f2d63a 5641 else
6232543b
VS
5642 echo "$as_me:5642: result: no" >&5
5643echo "${ECHO_T}no" >&6
10f2d63a 5644 fi
10f2d63a 5645
6232543b
VS
5646 echo "$as_me:5646: checking \"for --enable-imaglist\"" >&5
5647echo $ECHO_N "checking \"for --enable-imaglist\"... $ECHO_C" >&6
10f2d63a
VZ
5648 no_cache=0
5649 # Check whether --enable-imaglist or --disable-imaglist was given.
5650if test "${enable_imaglist+set}" = set; then
5651 enableval="$enable_imaglist"
6232543b 5652
10f2d63a
VZ
5653 if test "$enableval" = yes; then
5654 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5655 else
5656 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5657 fi
6232543b 5658
10f2d63a 5659else
6232543b 5660
10f2d63a
VZ
5661 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5662 if test "x$LINE" != x ; then
5663 eval "DEFAULT_$LINE"
5664 else
5665 no_cache=1
5666 fi
5667
5668 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 5669
6232543b 5670fi;
10f2d63a
VZ
5671
5672 eval "$ac_cv_use_imaglist"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_IMAGLIST" = yes; then
6232543b
VS
5678 echo "$as_me:5678: result: yes" >&5
5679echo "${ECHO_T}yes" >&6
10f2d63a 5680 else
6232543b
VS
5681 echo "$as_me:5681: result: no" >&5
5682echo "${ECHO_T}no" >&6
10f2d63a 5683 fi
10f2d63a 5684
6232543b
VS
5685 echo "$as_me:5685: checking \"for --enable-listbox\"" >&5
5686echo $ECHO_N "checking \"for --enable-listbox\"... $ECHO_C" >&6
10f2d63a
VZ
5687 no_cache=0
5688 # Check whether --enable-listbox or --disable-listbox was given.
5689if test "${enable_listbox+set}" = set; then
5690 enableval="$enable_listbox"
6232543b 5691
10f2d63a
VZ
5692 if test "$enableval" = yes; then
5693 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5694 else
5695 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5696 fi
6232543b 5697
10f2d63a 5698else
6232543b 5699
10f2d63a
VZ
5700 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 5708
6232543b 5709fi;
10f2d63a
VZ
5710
5711 eval "$ac_cv_use_listbox"
5712 if test "$no_cache" != 1; then
5713 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5714 fi
5715
5716 if test "$wxUSE_LISTBOX" = yes; then
6232543b
VS
5717 echo "$as_me:5717: result: yes" >&5
5718echo "${ECHO_T}yes" >&6
10f2d63a 5719 else
6232543b
VS
5720 echo "$as_me:5720: result: no" >&5
5721echo "${ECHO_T}no" >&6
10f2d63a 5722 fi
10f2d63a 5723
6232543b
VS
5724 echo "$as_me:5724: checking \"for --enable-listctrl\"" >&5
5725echo $ECHO_N "checking \"for --enable-listctrl\"... $ECHO_C" >&6
10f2d63a
VZ
5726 no_cache=0
5727 # Check whether --enable-listctrl or --disable-listctrl was given.
5728if test "${enable_listctrl+set}" = set; then
5729 enableval="$enable_listctrl"
6232543b 5730
10f2d63a
VZ
5731 if test "$enableval" = yes; then
5732 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5733 else
5734 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5735 fi
6232543b 5736
10f2d63a 5737else
6232543b 5738
10f2d63a
VZ
5739 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5740 if test "x$LINE" != x ; then
5741 eval "DEFAULT_$LINE"
5742 else
5743 no_cache=1
5744 fi
5745
5746 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 5747
6232543b 5748fi;
10f2d63a
VZ
5749
5750 eval "$ac_cv_use_listctrl"
5751 if test "$no_cache" != 1; then
5752 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5753 fi
5754
5755 if test "$wxUSE_LISTCTRL" = yes; then
6232543b
VS
5756 echo "$as_me:5756: result: yes" >&5
5757echo "${ECHO_T}yes" >&6
10f2d63a 5758 else
6232543b
VS
5759 echo "$as_me:5759: result: no" >&5
5760echo "${ECHO_T}no" >&6
10f2d63a 5761 fi
10f2d63a 5762
6232543b
VS
5763 echo "$as_me:5763: checking \"for --enable-notebook\"" >&5
5764echo $ECHO_N "checking \"for --enable-notebook\"... $ECHO_C" >&6
10f2d63a
VZ
5765 no_cache=0
5766 # Check whether --enable-notebook or --disable-notebook was given.
5767if test "${enable_notebook+set}" = set; then
5768 enableval="$enable_notebook"
6232543b 5769
10f2d63a
VZ
5770 if test "$enableval" = yes; then
5771 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5772 else
5773 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5774 fi
6232543b 5775
10f2d63a 5776else
6232543b 5777
10f2d63a
VZ
5778 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 5786
6232543b 5787fi;
10f2d63a
VZ
5788
5789 eval "$ac_cv_use_notebook"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_NOTEBOOK" = yes; then
6232543b
VS
5795 echo "$as_me:5795: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
10f2d63a 5797 else
6232543b
VS
5798 echo "$as_me:5798: result: no" >&5
5799echo "${ECHO_T}no" >&6
10f2d63a 5800 fi
10f2d63a 5801
6232543b
VS
5802 echo "$as_me:5802: checking \"for --enable-radiobox\"" >&5
5803echo $ECHO_N "checking \"for --enable-radiobox\"... $ECHO_C" >&6
10f2d63a
VZ
5804 no_cache=0
5805 # Check whether --enable-radiobox or --disable-radiobox was given.
5806if test "${enable_radiobox+set}" = set; then
5807 enableval="$enable_radiobox"
6232543b 5808
10f2d63a
VZ
5809 if test "$enableval" = yes; then
5810 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5811 else
5812 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5813 fi
6232543b 5814
10f2d63a 5815else
6232543b 5816
10f2d63a
VZ
5817 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5818 if test "x$LINE" != x ; then
5819 eval "DEFAULT_$LINE"
5820 else
5821 no_cache=1
5822 fi
5823
5824 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 5825
6232543b 5826fi;
10f2d63a
VZ
5827
5828 eval "$ac_cv_use_radiobox"
5829 if test "$no_cache" != 1; then
5830 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5831 fi
5832
5833 if test "$wxUSE_RADIOBOX" = yes; then
6232543b
VS
5834 echo "$as_me:5834: result: yes" >&5
5835echo "${ECHO_T}yes" >&6
10f2d63a 5836 else
6232543b
VS
5837 echo "$as_me:5837: result: no" >&5
5838echo "${ECHO_T}no" >&6
10f2d63a 5839 fi
10f2d63a 5840
6232543b
VS
5841 echo "$as_me:5841: checking \"for --enable-radiobtn\"" >&5
5842echo $ECHO_N "checking \"for --enable-radiobtn\"... $ECHO_C" >&6
10f2d63a
VZ
5843 no_cache=0
5844 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5845if test "${enable_radiobtn+set}" = set; then
5846 enableval="$enable_radiobtn"
6232543b 5847
10f2d63a
VZ
5848 if test "$enableval" = yes; then
5849 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5850 else
5851 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5852 fi
6232543b 5853
10f2d63a 5854else
6232543b 5855
10f2d63a
VZ
5856 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5857 if test "x$LINE" != x ; then
5858 eval "DEFAULT_$LINE"
5859 else
5860 no_cache=1
5861 fi
5862
5863 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 5864
6232543b 5865fi;
10f2d63a
VZ
5866
5867 eval "$ac_cv_use_radiobtn"
5868 if test "$no_cache" != 1; then
5869 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5870 fi
5871
5872 if test "$wxUSE_RADIOBTN" = yes; then
6232543b
VS
5873 echo "$as_me:5873: result: yes" >&5
5874echo "${ECHO_T}yes" >&6
10f2d63a 5875 else
6232543b
VS
5876 echo "$as_me:5876: result: no" >&5
5877echo "${ECHO_T}no" >&6
10f2d63a 5878 fi
10f2d63a 5879
6232543b
VS
5880 echo "$as_me:5880: checking \"for --enable-sash\"" >&5
5881echo $ECHO_N "checking \"for --enable-sash\"... $ECHO_C" >&6
10f2d63a
VZ
5882 no_cache=0
5883 # Check whether --enable-sash or --disable-sash was given.
5884if test "${enable_sash+set}" = set; then
5885 enableval="$enable_sash"
6232543b 5886
10f2d63a
VZ
5887 if test "$enableval" = yes; then
5888 ac_cv_use_sash='wxUSE_SASH=yes'
5889 else
5890 ac_cv_use_sash='wxUSE_SASH=no'
5891 fi
6232543b 5892
10f2d63a 5893else
6232543b 5894
10f2d63a
VZ
5895 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5896 if test "x$LINE" != x ; then
5897 eval "DEFAULT_$LINE"
5898 else
5899 no_cache=1
5900 fi
5901
5902 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 5903
6232543b 5904fi;
10f2d63a
VZ
5905
5906 eval "$ac_cv_use_sash"
5907 if test "$no_cache" != 1; then
5908 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5909 fi
5910
5911 if test "$wxUSE_SASH" = yes; then
6232543b
VS
5912 echo "$as_me:5912: result: yes" >&5
5913echo "${ECHO_T}yes" >&6
10f2d63a 5914 else
6232543b
VS
5915 echo "$as_me:5915: result: no" >&5
5916echo "${ECHO_T}no" >&6
10f2d63a 5917 fi
10f2d63a 5918
6232543b
VS
5919 echo "$as_me:5919: checking \"for --enable-scrollbar\"" >&5
5920echo $ECHO_N "checking \"for --enable-scrollbar\"... $ECHO_C" >&6
10f2d63a
VZ
5921 no_cache=0
5922 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5923if test "${enable_scrollbar+set}" = set; then
5924 enableval="$enable_scrollbar"
6232543b 5925
10f2d63a
VZ
5926 if test "$enableval" = yes; then
5927 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5928 else
5929 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5930 fi
6232543b 5931
10f2d63a 5932else
6232543b 5933
10f2d63a
VZ
5934 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5935 if test "x$LINE" != x ; then
5936 eval "DEFAULT_$LINE"
5937 else
5938 no_cache=1
5939 fi
5940
5941 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 5942
6232543b 5943fi;
10f2d63a
VZ
5944
5945 eval "$ac_cv_use_scrollbar"
5946 if test "$no_cache" != 1; then
5947 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5948 fi
5949
5950 if test "$wxUSE_SCROLLBAR" = yes; then
6232543b
VS
5951 echo "$as_me:5951: result: yes" >&5
5952echo "${ECHO_T}yes" >&6
10f2d63a 5953 else
6232543b
VS
5954 echo "$as_me:5954: result: no" >&5
5955echo "${ECHO_T}no" >&6
10f2d63a 5956 fi
10f2d63a 5957
6232543b
VS
5958 echo "$as_me:5958: checking \"for --enable-slider\"" >&5
5959echo $ECHO_N "checking \"for --enable-slider\"... $ECHO_C" >&6
10f2d63a
VZ
5960 no_cache=0
5961 # Check whether --enable-slider or --disable-slider was given.
5962if test "${enable_slider+set}" = set; then
5963 enableval="$enable_slider"
6232543b 5964
10f2d63a
VZ
5965 if test "$enableval" = yes; then
5966 ac_cv_use_slider='wxUSE_SLIDER=yes'
5967 else
5968 ac_cv_use_slider='wxUSE_SLIDER=no'
5969 fi
6232543b 5970
10f2d63a 5971else
6232543b 5972
10f2d63a
VZ
5973 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 5981
6232543b 5982fi;
10f2d63a
VZ
5983
5984 eval "$ac_cv_use_slider"
5985 if test "$no_cache" != 1; then
5986 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5987 fi
5988
5989 if test "$wxUSE_SLIDER" = yes; then
6232543b
VS
5990 echo "$as_me:5990: result: yes" >&5
5991echo "${ECHO_T}yes" >&6
10f2d63a 5992 else
6232543b
VS
5993 echo "$as_me:5993: result: no" >&5
5994echo "${ECHO_T}no" >&6
10f2d63a 5995 fi
10f2d63a 5996
6232543b
VS
5997 echo "$as_me:5997: checking \"for --enable-spinbtn\"" >&5
5998echo $ECHO_N "checking \"for --enable-spinbtn\"... $ECHO_C" >&6
10f2d63a
VZ
5999 no_cache=0
6000 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6001if test "${enable_spinbtn+set}" = set; then
6002 enableval="$enable_spinbtn"
6232543b 6003
10f2d63a
VZ
6004 if test "$enableval" = yes; then
6005 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6006 else
6007 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6008 fi
6232543b 6009
10f2d63a 6010else
6232543b 6011
10f2d63a
VZ
6012 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6013 if test "x$LINE" != x ; then
6014 eval "DEFAULT_$LINE"
6015 else
6016 no_cache=1
6017 fi
6018
6019 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 6020
6232543b 6021fi;
10f2d63a
VZ
6022
6023 eval "$ac_cv_use_spinbtn"
6024 if test "$no_cache" != 1; then
6025 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6026 fi
6027
6028 if test "$wxUSE_SPINBTN" = yes; then
6232543b
VS
6029 echo "$as_me:6029: result: yes" >&5
6030echo "${ECHO_T}yes" >&6
10f2d63a 6031 else
6232543b
VS
6032 echo "$as_me:6032: result: no" >&5
6033echo "${ECHO_T}no" >&6
10f2d63a 6034 fi
10f2d63a 6035
6232543b
VS
6036 echo "$as_me:6036: checking \"for --enable-spinctrl\"" >&5
6037echo $ECHO_N "checking \"for --enable-spinctrl\"... $ECHO_C" >&6
56cfaa52
RR
6038 no_cache=0
6039 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6040if test "${enable_spinctrl+set}" = set; then
6041 enableval="$enable_spinctrl"
6232543b 6042
56cfaa52
RR
6043 if test "$enableval" = yes; then
6044 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6045 else
6046 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6047 fi
6232543b 6048
56cfaa52 6049else
6232543b 6050
56cfaa52
RR
6051 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6052 if test "x$LINE" != x ; then
6053 eval "DEFAULT_$LINE"
6054 else
6055 no_cache=1
6056 fi
6057
6058 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 6059
6232543b 6060fi;
56cfaa52
RR
6061
6062 eval "$ac_cv_use_spinctrl"
6063 if test "$no_cache" != 1; then
6064 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6065 fi
6066
6067 if test "$wxUSE_SPINCTRL" = yes; then
6232543b
VS
6068 echo "$as_me:6068: result: yes" >&5
6069echo "${ECHO_T}yes" >&6
56cfaa52 6070 else
6232543b
VS
6071 echo "$as_me:6071: result: no" >&5
6072echo "${ECHO_T}no" >&6
56cfaa52 6073 fi
56cfaa52 6074
6232543b
VS
6075 echo "$as_me:6075: checking \"for --enable-splitter\"" >&5
6076echo $ECHO_N "checking \"for --enable-splitter\"... $ECHO_C" >&6
10f2d63a
VZ
6077 no_cache=0
6078 # Check whether --enable-splitter or --disable-splitter was given.
6079if test "${enable_splitter+set}" = set; then
6080 enableval="$enable_splitter"
6232543b 6081
10f2d63a
VZ
6082 if test "$enableval" = yes; then
6083 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6084 else
6085 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6086 fi
6232543b 6087
10f2d63a 6088else
6232543b 6089
10f2d63a
VZ
6090 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 6098
6232543b 6099fi;
10f2d63a
VZ
6100
6101 eval "$ac_cv_use_splitter"
6102 if test "$no_cache" != 1; then
6103 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6104 fi
6105
6106 if test "$wxUSE_SPLITTER" = yes; then
6232543b
VS
6107 echo "$as_me:6107: result: yes" >&5
6108echo "${ECHO_T}yes" >&6
10f2d63a 6109 else
6232543b
VS
6110 echo "$as_me:6110: result: no" >&5
6111echo "${ECHO_T}no" >&6
10f2d63a 6112 fi
10f2d63a 6113
6232543b
VS
6114 echo "$as_me:6114: checking \"for --enable-statbmp\"" >&5
6115echo $ECHO_N "checking \"for --enable-statbmp\"... $ECHO_C" >&6
10f2d63a
VZ
6116 no_cache=0
6117 # Check whether --enable-statbmp or --disable-statbmp was given.
6118if test "${enable_statbmp+set}" = set; then
6119 enableval="$enable_statbmp"
6232543b 6120
10f2d63a
VZ
6121 if test "$enableval" = yes; then
6122 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6123 else
6124 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6125 fi
6232543b 6126
10f2d63a 6127else
6232543b 6128
10f2d63a
VZ
6129 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 6137
6232543b 6138fi;
10f2d63a
VZ
6139
6140 eval "$ac_cv_use_statbmp"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_STATBMP" = yes; then
6232543b
VS
6146 echo "$as_me:6146: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
10f2d63a 6148 else
6232543b
VS
6149 echo "$as_me:6149: result: no" >&5
6150echo "${ECHO_T}no" >&6
10f2d63a 6151 fi
10f2d63a 6152
6232543b
VS
6153 echo "$as_me:6153: checking \"for --enable-statbox\"" >&5
6154echo $ECHO_N "checking \"for --enable-statbox\"... $ECHO_C" >&6
10f2d63a
VZ
6155 no_cache=0
6156 # Check whether --enable-statbox or --disable-statbox was given.
6157if test "${enable_statbox+set}" = set; then
6158 enableval="$enable_statbox"
6232543b 6159
10f2d63a
VZ
6160 if test "$enableval" = yes; then
6161 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6162 else
6163 ac_cv_use_statbox='wxUSE_STATBOX=no'
6164 fi
6232543b 6165
10f2d63a 6166else
6232543b 6167
10f2d63a
VZ
6168 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6169 if test "x$LINE" != x ; then
6170 eval "DEFAULT_$LINE"
6171 else
6172 no_cache=1
6173 fi
6174
6175 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 6176
6232543b 6177fi;
10f2d63a
VZ
6178
6179 eval "$ac_cv_use_statbox"
6180 if test "$no_cache" != 1; then
6181 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6182 fi
6183
6184 if test "$wxUSE_STATBOX" = yes; then
6232543b
VS
6185 echo "$as_me:6185: result: yes" >&5
6186echo "${ECHO_T}yes" >&6
10f2d63a 6187 else
6232543b
VS
6188 echo "$as_me:6188: result: no" >&5
6189echo "${ECHO_T}no" >&6
10f2d63a 6190 fi
10f2d63a 6191
6232543b
VS
6192 echo "$as_me:6192: checking \"for --enable-statline\"" >&5
6193echo $ECHO_N "checking \"for --enable-statline\"... $ECHO_C" >&6
10f2d63a
VZ
6194 no_cache=0
6195 # Check whether --enable-statline or --disable-statline was given.
6196if test "${enable_statline+set}" = set; then
6197 enableval="$enable_statline"
6232543b 6198
10f2d63a
VZ
6199 if test "$enableval" = yes; then
6200 ac_cv_use_statline='wxUSE_STATLINE=yes'
6201 else
6202 ac_cv_use_statline='wxUSE_STATLINE=no'
6203 fi
6232543b 6204
10f2d63a 6205else
6232543b 6206
10f2d63a
VZ
6207 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6208 if test "x$LINE" != x ; then
6209 eval "DEFAULT_$LINE"
6210 else
6211 no_cache=1
6212 fi
6213
6214 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 6215
6232543b 6216fi;
10f2d63a
VZ
6217
6218 eval "$ac_cv_use_statline"
6219 if test "$no_cache" != 1; then
6220 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6221 fi
6222
6223 if test "$wxUSE_STATLINE" = yes; then
6232543b
VS
6224 echo "$as_me:6224: result: yes" >&5
6225echo "${ECHO_T}yes" >&6
10f2d63a 6226 else
6232543b
VS
6227 echo "$as_me:6227: result: no" >&5
6228echo "${ECHO_T}no" >&6
10f2d63a 6229 fi
10f2d63a 6230
6232543b
VS
6231 echo "$as_me:6231: checking \"for --enable-statusbar\"" >&5
6232echo $ECHO_N "checking \"for --enable-statusbar\"... $ECHO_C" >&6
10f2d63a
VZ
6233 no_cache=0
6234 # Check whether --enable-statusbar or --disable-statusbar was given.
6235if test "${enable_statusbar+set}" = set; then
6236 enableval="$enable_statusbar"
6232543b 6237
10f2d63a
VZ
6238 if test "$enableval" = yes; then
6239 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6240 else
6241 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6242 fi
6232543b 6243
10f2d63a 6244else
6232543b 6245
10f2d63a
VZ
6246 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6247 if test "x$LINE" != x ; then
6248 eval "DEFAULT_$LINE"
6249 else
6250 no_cache=1
6251 fi
6252
6253 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 6254
6232543b 6255fi;
10f2d63a
VZ
6256
6257 eval "$ac_cv_use_statusbar"
6258 if test "$no_cache" != 1; then
6259 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6260 fi
6261
6262 if test "$wxUSE_STATUSBAR" = yes; then
6232543b
VS
6263 echo "$as_me:6263: result: yes" >&5
6264echo "${ECHO_T}yes" >&6
10f2d63a 6265 else
6232543b
VS
6266 echo "$as_me:6266: result: no" >&5
6267echo "${ECHO_T}no" >&6
10f2d63a 6268 fi
10f2d63a 6269
6232543b
VS
6270 echo "$as_me:6270: checking \"for --enable-tabdialog\"" >&5
6271echo $ECHO_N "checking \"for --enable-tabdialog\"... $ECHO_C" >&6
10f2d63a
VZ
6272 no_cache=0
6273 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6274if test "${enable_tabdialog+set}" = set; then
6275 enableval="$enable_tabdialog"
6232543b 6276
10f2d63a
VZ
6277 if test "$enableval" = yes; then
6278 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6279 else
6280 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6281 fi
6232543b 6282
10f2d63a 6283else
6232543b 6284
10f2d63a
VZ
6285 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6286 if test "x$LINE" != x ; then
6287 eval "DEFAULT_$LINE"
6288 else
6289 no_cache=1
6290 fi
6291
6292 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 6293
6232543b 6294fi;
10f2d63a
VZ
6295
6296 eval "$ac_cv_use_tabdialog"
6297 if test "$no_cache" != 1; then
6298 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6299 fi
6300
6301 if test "$wxUSE_TABDIALOG" = yes; then
6232543b
VS
6302 echo "$as_me:6302: result: yes" >&5
6303echo "${ECHO_T}yes" >&6
10f2d63a 6304 else
6232543b
VS
6305 echo "$as_me:6305: result: no" >&5
6306echo "${ECHO_T}no" >&6
10f2d63a 6307 fi
10f2d63a 6308
6232543b
VS
6309 echo "$as_me:6309: checking \"for --enable-togglebtn\"" >&5
6310echo $ECHO_N "checking \"for --enable-togglebtn\"... $ECHO_C" >&6
1db8dc4a
VZ
6311 no_cache=0
6312 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6313if test "${enable_togglebtn+set}" = set; then
6314 enableval="$enable_togglebtn"
6232543b 6315
1db8dc4a
VZ
6316 if test "$enableval" = yes; then
6317 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6318 else
6319 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6320 fi
6232543b 6321
1db8dc4a 6322else
6232543b 6323
1db8dc4a
VZ
6324 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6325 if test "x$LINE" != x ; then
6326 eval "DEFAULT_$LINE"
6327 else
6328 no_cache=1
6329 fi
6330
6331 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 6332
6232543b 6333fi;
1db8dc4a
VZ
6334
6335 eval "$ac_cv_use_togglebtn"
6336 if test "$no_cache" != 1; then
6337 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6338 fi
6339
6340 if test "$wxUSE_TOGGLEBTN" = yes; then
6232543b
VS
6341 echo "$as_me:6341: result: yes" >&5
6342echo "${ECHO_T}yes" >&6
1db8dc4a 6343 else
6232543b
VS
6344 echo "$as_me:6344: result: no" >&5
6345echo "${ECHO_T}no" >&6
1db8dc4a 6346 fi
1db8dc4a 6347
6232543b
VS
6348 echo "$as_me:6348: checking \"for --enable-toolbar\"" >&5
6349echo $ECHO_N "checking \"for --enable-toolbar\"... $ECHO_C" >&6
10f2d63a
VZ
6350 no_cache=0
6351 # Check whether --enable-toolbar or --disable-toolbar was given.
6352if test "${enable_toolbar+set}" = set; then
6353 enableval="$enable_toolbar"
6232543b 6354
10f2d63a
VZ
6355 if test "$enableval" = yes; then
6356 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6357 else
6358 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6359 fi
6232543b 6360
10f2d63a 6361else
6232543b 6362
10f2d63a
VZ
6363 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6364 if test "x$LINE" != x ; then
6365 eval "DEFAULT_$LINE"
6366 else
6367 no_cache=1
6368 fi
6369
6370 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 6371
6232543b 6372fi;
10f2d63a
VZ
6373
6374 eval "$ac_cv_use_toolbar"
6375 if test "$no_cache" != 1; then
6376 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6377 fi
6378
6379 if test "$wxUSE_TOOLBAR" = yes; then
6232543b
VS
6380 echo "$as_me:6380: result: yes" >&5
6381echo "${ECHO_T}yes" >&6
10f2d63a 6382 else
6232543b
VS
6383 echo "$as_me:6383: result: no" >&5
6384echo "${ECHO_T}no" >&6
10f2d63a 6385 fi
10f2d63a 6386
6232543b
VS
6387 echo "$as_me:6387: checking \"for --enable-tbarnative\"" >&5
6388echo $ECHO_N "checking \"for --enable-tbarnative\"... $ECHO_C" >&6
360d6699
VZ
6389 no_cache=0
6390 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6391if test "${enable_tbarnative+set}" = set; then
6392 enableval="$enable_tbarnative"
6232543b 6393
360d6699
VZ
6394 if test "$enableval" = yes; then
6395 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6396 else
6397 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6398 fi
6232543b 6399
360d6699 6400else
6232543b 6401
360d6699
VZ
6402 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6403 if test "x$LINE" != x ; then
6404 eval "DEFAULT_$LINE"
6405 else
6406 no_cache=1
6407 fi
6408
6409 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 6410
6232543b 6411fi;
360d6699
VZ
6412
6413 eval "$ac_cv_use_tbarnative"
6414 if test "$no_cache" != 1; then
6415 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6416 fi
6417
6418 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6232543b
VS
6419 echo "$as_me:6419: result: yes" >&5
6420echo "${ECHO_T}yes" >&6
360d6699 6421 else
6232543b
VS
6422 echo "$as_me:6422: result: no" >&5
6423echo "${ECHO_T}no" >&6
360d6699 6424 fi
360d6699 6425
6232543b
VS
6426 echo "$as_me:6426: checking \"for --enable-tbarsmpl\"" >&5
6427echo $ECHO_N "checking \"for --enable-tbarsmpl\"... $ECHO_C" >&6
360d6699
VZ
6428 no_cache=0
6429 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6430if test "${enable_tbarsmpl+set}" = set; then
6431 enableval="$enable_tbarsmpl"
6232543b 6432
360d6699
VZ
6433 if test "$enableval" = yes; then
6434 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6435 else
6436 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6437 fi
6232543b 6438
360d6699 6439else
6232543b 6440
360d6699
VZ
6441 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 6449
6232543b 6450fi;
360d6699
VZ
6451
6452 eval "$ac_cv_use_tbarsmpl"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6232543b
VS
6458 echo "$as_me:6458: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
360d6699 6460 else
6232543b
VS
6461 echo "$as_me:6461: result: no" >&5
6462echo "${ECHO_T}no" >&6
360d6699 6463 fi
360d6699 6464
6232543b
VS
6465 echo "$as_me:6465: checking \"for --enable-treectrl\"" >&5
6466echo $ECHO_N "checking \"for --enable-treectrl\"... $ECHO_C" >&6
10f2d63a
VZ
6467 no_cache=0
6468 # Check whether --enable-treectrl or --disable-treectrl was given.
6469if test "${enable_treectrl+set}" = set; then
6470 enableval="$enable_treectrl"
6232543b 6471
10f2d63a
VZ
6472 if test "$enableval" = yes; then
6473 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6474 else
6475 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6476 fi
6232543b 6477
10f2d63a 6478else
6232543b 6479
10f2d63a
VZ
6480 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 6488
6232543b 6489fi;
10f2d63a
VZ
6490
6491 eval "$ac_cv_use_treectrl"
6492 if test "$no_cache" != 1; then
6493 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6494 fi
6495
6496 if test "$wxUSE_TREECTRL" = yes; then
6232543b
VS
6497 echo "$as_me:6497: result: yes" >&5
6498echo "${ECHO_T}yes" >&6
10f2d63a 6499 else
6232543b
VS
6500 echo "$as_me:6500: result: no" >&5
6501echo "${ECHO_T}no" >&6
10f2d63a 6502 fi
10f2d63a 6503
6232543b
VS
6504 echo "$as_me:6504: checking \"for --enable-commondlg\"" >&5
6505echo $ECHO_N "checking \"for --enable-commondlg\"... $ECHO_C" >&6
10f2d63a
VZ
6506 no_cache=0
6507 # Check whether --enable-commondlg or --disable-commondlg was given.
6508if test "${enable_commondlg+set}" = set; then
6509 enableval="$enable_commondlg"
6232543b 6510
10f2d63a
VZ
6511 if test "$enableval" = yes; then
6512 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6513 else
6514 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6515 fi
6232543b 6516
10f2d63a 6517else
6232543b 6518
10f2d63a
VZ
6519 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10f2d63a 6527
6232543b 6528fi;
10f2d63a
VZ
6529
6530 eval "$ac_cv_use_commondlg"
6531 if test "$no_cache" != 1; then
6532 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6533 fi
6534
6535 if test "$wxUSE_COMMONDLGS" = yes; then
6232543b
VS
6536 echo "$as_me:6536: result: yes" >&5
6537echo "${ECHO_T}yes" >&6
10f2d63a 6538 else
6232543b
VS
6539 echo "$as_me:6539: result: no" >&5
6540echo "${ECHO_T}no" >&6
10f2d63a 6541 fi
10f2d63a 6542
6232543b
VS
6543 echo "$as_me:6543: checking \"for --enable-dirdlg\"" >&5
6544echo $ECHO_N "checking \"for --enable-dirdlg\"... $ECHO_C" >&6
10f2d63a
VZ
6545 no_cache=0
6546 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6547if test "${enable_dirdlg+set}" = set; then
6548 enableval="$enable_dirdlg"
6232543b 6549
10f2d63a
VZ
6550 if test "$enableval" = yes; then
6551 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6552 else
6553 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6554 fi
6232543b 6555
10f2d63a 6556else
6232543b 6557
10f2d63a
VZ
6558 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6559 if test "x$LINE" != x ; then
6560 eval "DEFAULT_$LINE"
6561 else
6562 no_cache=1
6563 fi
6564
6565 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10f2d63a 6566
6232543b 6567fi;
10f2d63a
VZ
6568
6569 eval "$ac_cv_use_dirdlg"
6570 if test "$no_cache" != 1; then
6571 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6572 fi
6573
6574 if test "$wxUSE_DIRDLG" = yes; then
6232543b
VS
6575 echo "$as_me:6575: result: yes" >&5
6576echo "${ECHO_T}yes" >&6
10f2d63a 6577 else
6232543b
VS
6578 echo "$as_me:6578: result: no" >&5
6579echo "${ECHO_T}no" >&6
10f2d63a 6580 fi
10f2d63a 6581
6232543b
VS
6582 echo "$as_me:6582: checking \"for --enable-textdlg\"" >&5
6583echo $ECHO_N "checking \"for --enable-textdlg\"... $ECHO_C" >&6
10f2d63a
VZ
6584 no_cache=0
6585 # Check whether --enable-textdlg or --disable-textdlg was given.
6586if test "${enable_textdlg+set}" = set; then
6587 enableval="$enable_textdlg"
6232543b 6588
10f2d63a
VZ
6589 if test "$enableval" = yes; then
6590 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6591 else
6592 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6593 fi
6232543b 6594
10f2d63a 6595else
6232543b 6596
10f2d63a
VZ
6597 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
6604 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 6605
6232543b 6606fi;
10f2d63a
VZ
6607
6608 eval "$ac_cv_use_textdlg"
6609 if test "$no_cache" != 1; then
6610 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6611 fi
6612
6613 if test "$wxUSE_TEXTDLG" = yes; then
6232543b
VS
6614 echo "$as_me:6614: result: yes" >&5
6615echo "${ECHO_T}yes" >&6
10f2d63a 6616 else
6232543b
VS
6617 echo "$as_me:6617: result: no" >&5
6618echo "${ECHO_T}no" >&6
10f2d63a 6619 fi
10f2d63a 6620
6232543b
VS
6621 echo "$as_me:6621: checking \"for --enable-tipdlg\"" >&5
6622echo $ECHO_N "checking \"for --enable-tipdlg\"... $ECHO_C" >&6
10f2d63a
VZ
6623 no_cache=0
6624 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6625if test "${enable_tipdlg+set}" = set; then
6626 enableval="$enable_tipdlg"
6232543b 6627
10f2d63a
VZ
6628 if test "$enableval" = yes; then
6629 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6630 else
6631 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6632 fi
6232543b 6633
10f2d63a 6634else
6232543b 6635
10f2d63a
VZ
6636 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6637 if test "x$LINE" != x ; then
6638 eval "DEFAULT_$LINE"
6639 else
6640 no_cache=1
6641 fi
6642
6643 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 6644
6232543b 6645fi;
10f2d63a
VZ
6646
6647 eval "$ac_cv_use_tipdlg"
6648 if test "$no_cache" != 1; then
6649 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6650 fi
6651
6652 if test "$wxUSE_STARTUP_TIPS" = yes; then
6232543b
VS
6653 echo "$as_me:6653: result: yes" >&5
6654echo "${ECHO_T}yes" >&6
10f2d63a 6655 else
6232543b
VS
6656 echo "$as_me:6656: result: no" >&5
6657echo "${ECHO_T}no" >&6
10f2d63a 6658 fi
10f2d63a 6659
6232543b
VS
6660 echo "$as_me:6660: checking \"for --enable-progressdlg\"" >&5
6661echo $ECHO_N "checking \"for --enable-progressdlg\"... $ECHO_C" >&6
10f2d63a
VZ
6662 no_cache=0
6663 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6664if test "${enable_progressdlg+set}" = set; then
6665 enableval="$enable_progressdlg"
6232543b 6666
10f2d63a
VZ
6667 if test "$enableval" = yes; then
6668 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6669 else
6670 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6671 fi
6232543b 6672
10f2d63a 6673else
6232543b 6674
10f2d63a
VZ
6675 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6676 if test "x$LINE" != x ; then
6677 eval "DEFAULT_$LINE"
6678 else
6679 no_cache=1
6680 fi
6681
6682 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 6683
6232543b 6684fi;
10f2d63a
VZ
6685
6686 eval "$ac_cv_use_progressdlg"
6687 if test "$no_cache" != 1; then
6688 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6689 fi
6690
6691 if test "$wxUSE_PROGRESSDLG" = yes; then
6232543b
VS
6692 echo "$as_me:6692: result: yes" >&5
6693echo "${ECHO_T}yes" >&6
10f2d63a 6694 else
6232543b
VS
6695 echo "$as_me:6695: result: no" >&5
6696echo "${ECHO_T}no" >&6
10f2d63a 6697 fi
10f2d63a 6698
6232543b
VS
6699 echo "$as_me:6699: checking \"for --enable-miniframe\"" >&5
6700echo $ECHO_N "checking \"for --enable-miniframe\"... $ECHO_C" >&6
10f2d63a
VZ
6701 no_cache=0
6702 # Check whether --enable-miniframe or --disable-miniframe was given.
6703if test "${enable_miniframe+set}" = set; then
6704 enableval="$enable_miniframe"
6232543b 6705
10f2d63a
VZ
6706 if test "$enableval" = yes; then
6707 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6708 else
6709 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6710 fi
6232543b 6711
10f2d63a 6712else
6232543b 6713
10f2d63a
VZ
6714 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6715 if test "x$LINE" != x ; then
6716 eval "DEFAULT_$LINE"
6717 else
6718 no_cache=1
6719 fi
6720
6721 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 6722
6232543b 6723fi;
10f2d63a
VZ
6724
6725 eval "$ac_cv_use_miniframe"
6726 if test "$no_cache" != 1; then
6727 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6728 fi
6729
6730 if test "$wxUSE_MINIFRAME" = yes; then
6232543b
VS
6731 echo "$as_me:6731: result: yes" >&5
6732echo "${ECHO_T}yes" >&6
10f2d63a 6733 else
6232543b
VS
6734 echo "$as_me:6734: result: no" >&5
6735echo "${ECHO_T}no" >&6
10f2d63a 6736 fi
10f2d63a 6737
6232543b
VS
6738 echo "$as_me:6738: checking \"for --enable-html\"" >&5
6739echo $ECHO_N "checking \"for --enable-html\"... $ECHO_C" >&6
10f2d63a
VZ
6740 no_cache=0
6741 # Check whether --enable-html or --disable-html was given.
6742if test "${enable_html+set}" = set; then
6743 enableval="$enable_html"
6232543b 6744
10f2d63a
VZ
6745 if test "$enableval" = yes; then
6746 ac_cv_use_html='wxUSE_HTML=yes'
6747 else
6748 ac_cv_use_html='wxUSE_HTML=no'
6749 fi
6232543b 6750
10f2d63a 6751else
6232543b 6752
10f2d63a
VZ
6753 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6754 if test "x$LINE" != x ; then
6755 eval "DEFAULT_$LINE"
6756 else
6757 no_cache=1
6758 fi
6759
6760 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
10f2d63a 6761
6232543b 6762fi;
10f2d63a
VZ
6763
6764 eval "$ac_cv_use_html"
6765 if test "$no_cache" != 1; then
6766 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6767 fi
6768
6769 if test "$wxUSE_HTML" = yes; then
6232543b
VS
6770 echo "$as_me:6770: result: yes" >&5
6771echo "${ECHO_T}yes" >&6
10f2d63a 6772 else
6232543b
VS
6773 echo "$as_me:6773: result: no" >&5
6774echo "${ECHO_T}no" >&6
10f2d63a 6775 fi
10f2d63a 6776
6232543b
VS
6777 echo "$as_me:6777: checking \"for --enable-tooltips\"" >&5
6778echo $ECHO_N "checking \"for --enable-tooltips\"... $ECHO_C" >&6
10f2d63a
VZ
6779 no_cache=0
6780 # Check whether --enable-tooltips or --disable-tooltips was given.
6781if test "${enable_tooltips+set}" = set; then
6782 enableval="$enable_tooltips"
6232543b 6783
10f2d63a
VZ
6784 if test "$enableval" = yes; then
6785 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6786 else
6787 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6788 fi
6232543b 6789
10f2d63a 6790else
6232543b 6791
10f2d63a
VZ
6792 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 6800
6232543b 6801fi;
10f2d63a
VZ
6802
6803 eval "$ac_cv_use_tooltips"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_TOOLTIPS" = yes; then
6232543b
VS
6809 echo "$as_me:6809: result: yes" >&5
6810echo "${ECHO_T}yes" >&6
10f2d63a 6811 else
6232543b
VS
6812 echo "$as_me:6812: result: no" >&5
6813echo "${ECHO_T}no" >&6
10f2d63a 6814 fi
10f2d63a 6815
6232543b
VS
6816 echo "$as_me:6816: checking \"for --enable-splines\"" >&5
6817echo $ECHO_N "checking \"for --enable-splines\"... $ECHO_C" >&6
10f2d63a
VZ
6818 no_cache=0
6819 # Check whether --enable-splines or --disable-splines was given.
6820if test "${enable_splines+set}" = set; then
6821 enableval="$enable_splines"
6232543b 6822
10f2d63a
VZ
6823 if test "$enableval" = yes; then
6824 ac_cv_use_splines='wxUSE_SPLINES=yes'
6825 else
6826 ac_cv_use_splines='wxUSE_SPLINES=no'
6827 fi
6232543b 6828
10f2d63a 6829else
6232543b 6830
10f2d63a
VZ
6831 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 6839
6232543b 6840fi;
10f2d63a
VZ
6841
6842 eval "$ac_cv_use_splines"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_SPLINES" = yes; then
6232543b
VS
6848 echo "$as_me:6848: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
10f2d63a 6850 else
6232543b
VS
6851 echo "$as_me:6851: result: no" >&5
6852echo "${ECHO_T}no" >&6
10f2d63a 6853 fi
10f2d63a 6854
6232543b
VS
6855 echo "$as_me:6855: checking \"for --enable-validators\"" >&5
6856echo $ECHO_N "checking \"for --enable-validators\"... $ECHO_C" >&6
10f2d63a
VZ
6857 no_cache=0
6858 # Check whether --enable-validators or --disable-validators was given.
6859if test "${enable_validators+set}" = set; then
6860 enableval="$enable_validators"
6232543b 6861
10f2d63a
VZ
6862 if test "$enableval" = yes; then
6863 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6864 else
6865 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6866 fi
6232543b 6867
10f2d63a 6868else
6232543b 6869
10f2d63a
VZ
6870 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6871 if test "x$LINE" != x ; then
6872 eval "DEFAULT_$LINE"
6873 else
6874 no_cache=1
6875 fi
6876
6877 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 6878
6232543b 6879fi;
10f2d63a
VZ
6880
6881 eval "$ac_cv_use_validators"
6882 if test "$no_cache" != 1; then
6883 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6884 fi
6885
6886 if test "$wxUSE_VALIDATORS" = yes; then
6232543b
VS
6887 echo "$as_me:6887: result: yes" >&5
6888echo "${ECHO_T}yes" >&6
10f2d63a 6889 else
6232543b
VS
6890 echo "$as_me:6890: result: no" >&5
6891echo "${ECHO_T}no" >&6
10f2d63a 6892 fi
10f2d63a 6893
6232543b
VS
6894 echo "$as_me:6894: checking \"for --enable-busyinfo\"" >&5
6895echo $ECHO_N "checking \"for --enable-busyinfo\"... $ECHO_C" >&6
10f2d63a
VZ
6896 no_cache=0
6897 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6898if test "${enable_busyinfo+set}" = set; then
6899 enableval="$enable_busyinfo"
6232543b 6900
10f2d63a
VZ
6901 if test "$enableval" = yes; then
6902 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6903 else
6904 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6905 fi
6232543b 6906
10f2d63a 6907else
6232543b 6908
10f2d63a
VZ
6909 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6910 if test "x$LINE" != x ; then
6911 eval "DEFAULT_$LINE"
6912 else
6913 no_cache=1
6914 fi
6915
6916 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 6917
6232543b 6918fi;
10f2d63a
VZ
6919
6920 eval "$ac_cv_use_busyinfo"
6921 if test "$no_cache" != 1; then
6922 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6923 fi
6924
6925 if test "$wxUSE_BUSYINFO" = yes; then
6232543b
VS
6926 echo "$as_me:6926: result: yes" >&5
6927echo "${ECHO_T}yes" >&6
10f2d63a 6928 else
6232543b
VS
6929 echo "$as_me:6929: result: no" >&5
6930echo "${ECHO_T}no" >&6
10f2d63a 6931 fi
10f2d63a 6932
6232543b
VS
6933 echo "$as_me:6933: checking \"for --enable-joystick\"" >&5
6934echo $ECHO_N "checking \"for --enable-joystick\"... $ECHO_C" >&6
f6bcfd97
BP
6935 no_cache=0
6936 # Check whether --enable-joystick or --disable-joystick was given.
6937if test "${enable_joystick+set}" = set; then
6938 enableval="$enable_joystick"
6232543b 6939
f6bcfd97
BP
6940 if test "$enableval" = yes; then
6941 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6942 else
6943 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6944 fi
6232543b 6945
f6bcfd97 6946else
6232543b 6947
f6bcfd97
BP
6948 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 6956
6232543b 6957fi;
f6bcfd97
BP
6958
6959 eval "$ac_cv_use_joystick"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_JOYSTICK" = yes; then
6232543b
VS
6965 echo "$as_me:6965: result: yes" >&5
6966echo "${ECHO_T}yes" >&6
f6bcfd97 6967 else
6232543b
VS
6968 echo "$as_me:6968: result: no" >&5
6969echo "${ECHO_T}no" >&6
f6bcfd97 6970 fi
10f2d63a 6971
6232543b
VS
6972 echo "$as_me:6972: checking \"for --enable-image\"" >&5
6973echo $ECHO_N "checking \"for --enable-image\"... $ECHO_C" >&6
0046ff7c
VS
6974 no_cache=0
6975 # Check whether --enable-image or --disable-image was given.
6976if test "${enable_image+set}" = set; then
6977 enableval="$enable_image"
6232543b 6978
0046ff7c
VS
6979 if test "$enableval" = yes; then
6980 ac_cv_use_image='wxUSE_IMAGE=yes'
6981 else
6982 ac_cv_use_image='wxUSE_IMAGE=no'
6983 fi
6232543b 6984
0046ff7c 6985else
6232543b 6986
0046ff7c
VS
6987 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
6988 if test "x$LINE" != x ; then
6989 eval "DEFAULT_$LINE"
6990 else
6991 no_cache=1
6992 fi
6993
6994 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 6995
6232543b 6996fi;
0046ff7c
VS
6997
6998 eval "$ac_cv_use_image"
6999 if test "$no_cache" != 1; then
7000 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7001 fi
7002
7003 if test "$wxUSE_IMAGE" = yes; then
6232543b
VS
7004 echo "$as_me:7004: result: yes" >&5
7005echo "${ECHO_T}yes" >&6
0046ff7c 7006 else
6232543b
VS
7007 echo "$as_me:7007: result: no" >&5
7008echo "${ECHO_T}no" >&6
0046ff7c 7009 fi
0046ff7c 7010
6232543b
VS
7011 echo "$as_me:7011: checking \"for --enable-gif\"" >&5
7012echo $ECHO_N "checking \"for --enable-gif\"... $ECHO_C" >&6
10f2d63a
VZ
7013 no_cache=0
7014 # Check whether --enable-gif or --disable-gif was given.
7015if test "${enable_gif+set}" = set; then
7016 enableval="$enable_gif"
6232543b 7017
10f2d63a
VZ
7018 if test "$enableval" = yes; then
7019 ac_cv_use_gif='wxUSE_GIF=yes'
7020 else
7021 ac_cv_use_gif='wxUSE_GIF=no'
7022 fi
6232543b 7023
10f2d63a 7024else
6232543b 7025
10f2d63a
VZ
7026 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7027 if test "x$LINE" != x ; then
7028 eval "DEFAULT_$LINE"
7029 else
7030 no_cache=1
7031 fi
7032
7033 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 7034
6232543b 7035fi;
10f2d63a
VZ
7036
7037 eval "$ac_cv_use_gif"
7038 if test "$no_cache" != 1; then
7039 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7040 fi
7041
7042 if test "$wxUSE_GIF" = yes; then
6232543b
VS
7043 echo "$as_me:7043: result: yes" >&5
7044echo "${ECHO_T}yes" >&6
10f2d63a 7045 else
6232543b
VS
7046 echo "$as_me:7046: result: no" >&5
7047echo "${ECHO_T}no" >&6
10f2d63a 7048 fi
10f2d63a 7049
6232543b
VS
7050 echo "$as_me:7050: checking \"for --enable-pcx\"" >&5
7051echo $ECHO_N "checking \"for --enable-pcx\"... $ECHO_C" >&6
10f2d63a
VZ
7052 no_cache=0
7053 # Check whether --enable-pcx or --disable-pcx was given.
7054if test "${enable_pcx+set}" = set; then
7055 enableval="$enable_pcx"
6232543b 7056
10f2d63a
VZ
7057 if test "$enableval" = yes; then
7058 ac_cv_use_pcx='wxUSE_PCX=yes'
7059 else
7060 ac_cv_use_pcx='wxUSE_PCX=no'
7061 fi
6232543b 7062
10f2d63a 7063else
6232543b 7064
10f2d63a
VZ
7065 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 7073
6232543b 7074fi;
10f2d63a
VZ
7075
7076 eval "$ac_cv_use_pcx"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_PCX" = yes; then
6232543b
VS
7082 echo "$as_me:7082: result: yes" >&5
7083echo "${ECHO_T}yes" >&6
10f2d63a 7084 else
6232543b
VS
7085 echo "$as_me:7085: result: no" >&5
7086echo "${ECHO_T}no" >&6
10f2d63a 7087 fi
10f2d63a 7088
6232543b
VS
7089 echo "$as_me:7089: checking \"for --enable-pnm\"" >&5
7090echo $ECHO_N "checking \"for --enable-pnm\"... $ECHO_C" >&6
10f2d63a
VZ
7091 no_cache=0
7092 # Check whether --enable-pnm or --disable-pnm was given.
7093if test "${enable_pnm+set}" = set; then
7094 enableval="$enable_pnm"
6232543b 7095
10f2d63a
VZ
7096 if test "$enableval" = yes; then
7097 ac_cv_use_pnm='wxUSE_PNM=yes'
7098 else
7099 ac_cv_use_pnm='wxUSE_PNM=no'
7100 fi
6232543b 7101
10f2d63a 7102else
6232543b 7103
10f2d63a
VZ
7104 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 7112
6232543b 7113fi;
10f2d63a
VZ
7114
7115 eval "$ac_cv_use_pnm"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_PNM" = yes; then
6232543b
VS
7121 echo "$as_me:7121: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
10f2d63a 7123 else
6232543b
VS
7124 echo "$as_me:7124: result: no" >&5
7125echo "${ECHO_T}no" >&6
10f2d63a 7126 fi
10f2d63a 7127
6232543b
VS
7128 echo "$as_me:7128: checking \"for --enable-pnm\"" >&5
7129echo $ECHO_N "checking \"for --enable-pnm\"... $ECHO_C" >&6
0046ff7c
VS
7130 no_cache=0
7131 # Check whether --enable-pnm or --disable-pnm was given.
7132if test "${enable_pnm+set}" = set; then
7133 enableval="$enable_pnm"
6232543b 7134
0046ff7c
VS
7135 if test "$enableval" = yes; then
7136 ac_cv_use_pnm='wxUSE_XPM=yes'
7137 else
7138 ac_cv_use_pnm='wxUSE_XPM=no'
7139 fi
6232543b 7140
0046ff7c 7141else
6232543b 7142
0046ff7c
VS
7143 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7144 if test "x$LINE" != x ; then
7145 eval "DEFAULT_$LINE"
7146 else
7147 no_cache=1
7148 fi
7149
7150 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 7151
6232543b 7152fi;
0046ff7c
VS
7153
7154 eval "$ac_cv_use_pnm"
7155 if test "$no_cache" != 1; then
7156 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7157 fi
7158
7159 if test "$wxUSE_XPM" = yes; then
6232543b
VS
7160 echo "$as_me:7160: result: yes" >&5
7161echo "${ECHO_T}yes" >&6
0046ff7c 7162 else
6232543b
VS
7163 echo "$as_me:7163: result: no" >&5
7164echo "${ECHO_T}no" >&6
0046ff7c 7165 fi
0046ff7c 7166
b12915c1
VZ
7167fi
7168
10f2d63a
VZ
7169 echo "saving argument cache $wx_arg_cache_file"
7170 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10f2d63a 7171
6232543b
VS
7172echo "$as_me:7172: checking for toolkit" >&5
7173echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10f2d63a
VZ
7174
7175if test "$wxUSE_GUI" = "yes"; then
7176
b12915c1 7177if test "$USE_BEOS" = 1; then
6232543b
VS
7178 { { echo "$as_me:7178: error: BeOS GUI is not supported yet, use --disable-gui" >&5
7179echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
7180 { (exit 1); exit 1; }; }
b12915c1
VZ
7181fi
7182
10f2d63a
VZ
7183if test "$TOOLKIT_GIVEN" = 1; then
7184 for toolkit in `echo $ALL_TOOLKITS`; do
7185 var=wxUSE_$toolkit
7186 eval "value=\$${var}"
7187 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7188 done
7189else
7190 for toolkit in `echo $ALL_TOOLKITS`; do
7191 if test "$has_toolkit_in_cache" != 1; then
7192 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7193 else
7194 var=DEFAULT_wxUSE_$toolkit
7195 fi
7196 eval "wxUSE_$toolkit=\$${var}"
7197 done
7198fi
7199
b4085ce6 7200NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 7201
ec14dd32
VZ
7202case "${host}" in
7203 *-pc-os2_emx )
7204 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7205 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7206 LEX_STEM="lexyy"
7207 ;;
7208 *)
7209 PATH_IFS=':'
7210 LEX_STEM="lex.yy"
7211 ;;
7212esac
10f2d63a
VZ
7213
7214case "$NUM_TOOLKITS" in
7215 1)
7216 ;;
7217 0)
6232543b
VS
7218 { { echo "$as_me:7218: error: Please specify a toolkit - cannot determine the default for ${host}" >&5
7219echo "$as_me: error: Please specify a toolkit - cannot determine the default for ${host}" >&2;}
7220 { (exit 1); exit 1; }; }
10f2d63a
VZ
7221 ;;
7222 *)
6232543b
VS
7223 { { echo "$as_me:7223: error: Please specify at most one toolkit (may be some are cached?)" >&5
7224echo "$as_me: error: Please specify at most one toolkit (may be some are cached?)" >&2;}
7225 { (exit 1); exit 1; }; }
10f2d63a
VZ
7226esac
7227
7228for toolkit in `echo $ALL_TOOLKITS`; do
7229 var=wxUSE_$toolkit
7230 eval "value=\$${var}"
7231 if test "x$value" != x; then
7232 cache_var=CACHE_$toolkit
7233 eval "cache=\$${cache_var}"
7234 if test "$cache" = 1; then
7235 echo "$var=$value" >> ${wx_arg_cache_file}
7236 fi
7237 if test "$value" = 1; then
6232543b
VS
7238 echo "$as_me:7238: result: \`echo $toolkit | tr A-Z a-z\`" >&5
7239echo "${ECHO_T}\`echo $toolkit | tr A-Z a-z\`" >&6
10f2d63a
VZ
7240 fi
7241 fi
7242done
7243
7244else
cf27ef00 7245 PATH_IFS=':'
6232543b
VS
7246 echo "$as_me:7246: result: base only" >&5
7247echo "${ECHO_T}base only" >&6
10f2d63a
VZ
7248fi
7249
6232543b 7250cat >confcache <<\_ACEOF
10f2d63a
VZ
7251# This file is a shell script that caches the results of configure
7252# tests run on this system so they can be shared between configure
6232543b
VS
7253# scripts and configure runs, see configure's option --config-cache.
7254# It is not useful on other systems. If it contains results you don't
7255# want to keep, you may remove or edit it.
10f2d63a 7256#
6232543b
VS
7257# config.status only pays attention to the cache file if you give it
7258# the --recheck option to rerun configure.
10f2d63a 7259#
6232543b
VS
7260# `ac_cv_env_foo' variables (set or unset) will be overriden when
7261# loading this file, other *unset* `ac_cv_foo' will be assigned the
7262# following values.
7263
7264_ACEOF
7265
10f2d63a
VZ
7266# The following way of writing the cache mishandles newlines in values,
7267# but we know of no workaround that is simple, portable, and efficient.
7268# So, don't put newlines in cache variables' values.
7269# Ultrix sh set writes to stderr and can't be redirected directly,
7270# and sets the high bit in the cache file unless we assign to the vars.
6232543b
VS
7271{
7272 (set) 2>&1 |
7273 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7274 *ac_space=\ *)
7275 # `set' does not quote correctly, so add quotes (double-quote
7276 # substitution turns \\\\ into \\, and sed turns \\ into \).
7277 sed -n \
7278 "s/'/'\\\\''/g;
7279 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7280 ;;
7281 *)
7282 # `set' quotes correctly as required by POSIX, so do not add quotes.
7283 sed -n \
7284 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7285 ;;
7286 esac;
7287} |
7288 sed '
7289 t clear
7290 : clear
7291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7292 t end
7293 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7294 : end' >>confcache
7295if cmp -s $cache_file confcache; then :; else
10f2d63a 7296 if test -w $cache_file; then
6232543b
VS
7297 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7298 cat confcache >$cache_file
10f2d63a
VZ
7299 else
7300 echo "not updating unwritable cache $cache_file"
7301 fi
7302fi
7303rm -f confcache
7304
e59890c3 7305if test "$build" != "$host" ; then
10f2d63a
VZ
7306 CC=$host_alias-gcc
7307 CXX=$host_alias-c++
7308 AR=$host_alias-ar
7309 RANLIB=$host_alias-ranlib
7310 DLLTOOL=$host_alias-dlltool
32832908 7311 RESCOMP=$host_alias-windres
10f2d63a
VZ
7312 LD=$host_alias-ld
7313 NM=$host_alias-nm
7314 STRIP=$host_alias-strip
10f2d63a
VZ
7315fi
7316
6232543b
VS
7317ac_ext=c
7318ac_cpp='$CPP $CPPFLAGS'
7319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7324set dummy ${ac_tool_prefix}gcc; ac_word=$2
7325echo "$as_me:7325: checking for $ac_word" >&5
7326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7327if test "${ac_cv_prog_CC+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
7329else
7330 if test -n "$CC"; then
7331 ac_cv_prog_CC="$CC" # Let the user override the test.
7332else
6232543b
VS
7333 ac_save_IFS=$IFS; IFS=$ac_path_separator
7334ac_dummy="$PATH"
7335for ac_dir in $ac_dummy; do
7336 IFS=$ac_save_IFS
7337 test -z "$ac_dir" && ac_dir=.
7338 $as_executable_p "$ac_dir/$ac_word" || continue
7339ac_cv_prog_CC="${ac_tool_prefix}gcc"
7340echo "$as_me:7340: found $ac_dir/$ac_word" >&5
7341break
7342done
7343
10f2d63a
VZ
7344fi
7345fi
6232543b 7346CC=$ac_cv_prog_CC
10f2d63a 7347if test -n "$CC"; then
6232543b
VS
7348 echo "$as_me:7348: result: $CC" >&5
7349echo "${ECHO_T}$CC" >&6
10f2d63a 7350else
6232543b
VS
7351 echo "$as_me:7351: result: no" >&5
7352echo "${ECHO_T}no" >&6
10f2d63a
VZ
7353fi
7354
6232543b
VS
7355fi
7356if test -z "$ac_cv_prog_CC"; then
7357 ac_ct_CC=$CC
7358 # Extract the first word of "gcc", so it can be a program name with args.
7359set dummy gcc; ac_word=$2
7360echo "$as_me:7360: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365 if test -n "$ac_ct_CC"; then
7366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7367else
7368 ac_save_IFS=$IFS; IFS=$ac_path_separator
7369ac_dummy="$PATH"
7370for ac_dir in $ac_dummy; do
7371 IFS=$ac_save_IFS
7372 test -z "$ac_dir" && ac_dir=.
7373 $as_executable_p "$ac_dir/$ac_word" || continue
7374ac_cv_prog_ac_ct_CC="gcc"
7375echo "$as_me:7375: found $ac_dir/$ac_word" >&5
7376break
7377done
7378
10f2d63a
VZ
7379fi
7380fi
6232543b
VS
7381ac_ct_CC=$ac_cv_prog_ac_ct_CC
7382if test -n "$ac_ct_CC"; then
7383 echo "$as_me:7383: result: $ac_ct_CC" >&5
7384echo "${ECHO_T}$ac_ct_CC" >&6
7385else
7386 echo "$as_me:7386: result: no" >&5
7387echo "${ECHO_T}no" >&6
10f2d63a 7388fi
6232543b
VS
7389
7390 CC=$ac_ct_CC
10f2d63a 7391else
6232543b 7392 CC="$ac_cv_prog_CC"
10f2d63a
VZ
7393fi
7394
6232543b
VS
7395if test -z "$CC"; then
7396 if test -n "$ac_tool_prefix"; then
7397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7398set dummy ${ac_tool_prefix}cc; ac_word=$2
7399echo "$as_me:7399: checking for $ac_word" >&5
7400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7401if test "${ac_cv_prog_CC+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
7403else
7404 if test -n "$CC"; then
7405 ac_cv_prog_CC="$CC" # Let the user override the test.
7406else
6232543b
VS
7407 ac_save_IFS=$IFS; IFS=$ac_path_separator
7408ac_dummy="$PATH"
7409for ac_dir in $ac_dummy; do
7410 IFS=$ac_save_IFS
7411 test -z "$ac_dir" && ac_dir=.
7412 $as_executable_p "$ac_dir/$ac_word" || continue
7413ac_cv_prog_CC="${ac_tool_prefix}cc"
7414echo "$as_me:7414: found $ac_dir/$ac_word" >&5
7415break
7416done
7417
10f2d63a
VZ
7418fi
7419fi
6232543b 7420CC=$ac_cv_prog_CC
10f2d63a 7421if test -n "$CC"; then
6232543b
VS
7422 echo "$as_me:7422: result: $CC" >&5
7423echo "${ECHO_T}$CC" >&6
10f2d63a 7424else
6232543b
VS
7425 echo "$as_me:7425: result: no" >&5
7426echo "${ECHO_T}no" >&6
10f2d63a
VZ
7427fi
7428
6232543b
VS
7429fi
7430if test -z "$ac_cv_prog_CC"; then
7431 ac_ct_CC=$CC
7432 # Extract the first word of "cc", so it can be a program name with args.
7433set dummy cc; ac_word=$2
7434echo "$as_me:7434: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439 if test -n "$ac_ct_CC"; then
7440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7441else
7442 ac_save_IFS=$IFS; IFS=$ac_path_separator
7443ac_dummy="$PATH"
7444for ac_dir in $ac_dummy; do
7445 IFS=$ac_save_IFS
7446 test -z "$ac_dir" && ac_dir=.
7447 $as_executable_p "$ac_dir/$ac_word" || continue
7448ac_cv_prog_ac_ct_CC="cc"
7449echo "$as_me:7449: found $ac_dir/$ac_word" >&5
7450break
7451done
10f2d63a 7452
6232543b
VS
7453fi
7454fi
7455ac_ct_CC=$ac_cv_prog_ac_ct_CC
7456if test -n "$ac_ct_CC"; then
7457 echo "$as_me:7457: result: $ac_ct_CC" >&5
7458echo "${ECHO_T}$ac_ct_CC" >&6
7459else
7460 echo "$as_me:7460: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462fi
10f2d63a 7463
6232543b
VS
7464 CC=$ac_ct_CC
7465else
7466 CC="$ac_cv_prog_CC"
7467fi
10f2d63a 7468
6232543b
VS
7469fi
7470if test -z "$CC"; then
7471 # Extract the first word of "cc", so it can be a program name with args.
7472set dummy cc; ac_word=$2
7473echo "$as_me:7473: checking for $ac_word" >&5
7474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7475if test "${ac_cv_prog_CC+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
7478 if test -n "$CC"; then
7479 ac_cv_prog_CC="$CC" # Let the user override the test.
7480else
7481 ac_prog_rejected=no
7482 ac_save_IFS=$IFS; IFS=$ac_path_separator
7483ac_dummy="$PATH"
7484for ac_dir in $ac_dummy; do
7485 IFS=$ac_save_IFS
7486 test -z "$ac_dir" && ac_dir=.
7487 $as_executable_p "$ac_dir/$ac_word" || continue
7488if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7489 ac_prog_rejected=yes
7490 continue
7491fi
7492ac_cv_prog_CC="cc"
7493echo "$as_me:7493: found $ac_dir/$ac_word" >&5
7494break
7495done
7496
7497if test $ac_prog_rejected = yes; then
7498 # We found a bogon in the path, so make sure we never use it.
7499 set dummy $ac_cv_prog_CC
7500 shift
7501 if test $# != 0; then
7502 # We chose a different compiler from the bogus one.
7503 # However, it has the same basename, so the bogon will be chosen
7504 # first if we set CC to just the basename; use the full file name.
7505 shift
7506 set dummy "$ac_dir/$ac_word" ${1+"$@"}
7507 shift
7508 ac_cv_prog_CC="$@"
10f2d63a 7509 fi
6232543b
VS
7510fi
7511fi
7512fi
7513CC=$ac_cv_prog_CC
7514if test -n "$CC"; then
7515 echo "$as_me:7515: result: $CC" >&5
7516echo "${ECHO_T}$CC" >&6
10f2d63a 7517else
6232543b
VS
7518 echo "$as_me:7518: result: no" >&5
7519echo "${ECHO_T}no" >&6
10f2d63a 7520fi
6232543b
VS
7521
7522fi
7523if test -z "$CC"; then
7524 if test -n "$ac_tool_prefix"; then
7525 for ac_prog in cl
7526 do
7527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7529echo "$as_me:7529: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531if test "${ac_cv_prog_CC+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534 if test -n "$CC"; then
7535 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7536else
6232543b
VS
7537 ac_save_IFS=$IFS; IFS=$ac_path_separator
7538ac_dummy="$PATH"
7539for ac_dir in $ac_dummy; do
7540 IFS=$ac_save_IFS
7541 test -z "$ac_dir" && ac_dir=.
7542 $as_executable_p "$ac_dir/$ac_word" || continue
7543ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7544echo "$as_me:7544: found $ac_dir/$ac_word" >&5
7545break
7546done
7547
10f2d63a 7548fi
6232543b
VS
7549fi
7550CC=$ac_cv_prog_CC
7551if test -n "$CC"; then
7552 echo "$as_me:7552: result: $CC" >&5
7553echo "${ECHO_T}$CC" >&6
7554else
7555 echo "$as_me:7555: result: no" >&5
7556echo "${ECHO_T}no" >&6
10f2d63a
VZ
7557fi
7558
6232543b
VS
7559 test -n "$CC" && break
7560 done
7561fi
7562if test -z "$CC"; then
7563 ac_ct_CC=$CC
7564 for ac_prog in cl
7565do
7566 # Extract the first word of "$ac_prog", so it can be a program name with args.
7567set dummy $ac_prog; ac_word=$2
7568echo "$as_me:7568: checking for $ac_word" >&5
7569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7570if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573 if test -n "$ac_ct_CC"; then
7574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7575else
7576 ac_save_IFS=$IFS; IFS=$ac_path_separator
7577ac_dummy="$PATH"
7578for ac_dir in $ac_dummy; do
7579 IFS=$ac_save_IFS
7580 test -z "$ac_dir" && ac_dir=.
7581 $as_executable_p "$ac_dir/$ac_word" || continue
7582ac_cv_prog_ac_ct_CC="$ac_prog"
7583echo "$as_me:7583: found $ac_dir/$ac_word" >&5
7584break
7585done
10f2d63a 7586
6232543b
VS
7587fi
7588fi
7589ac_ct_CC=$ac_cv_prog_ac_ct_CC
7590if test -n "$ac_ct_CC"; then
7591 echo "$as_me:7591: result: $ac_ct_CC" >&5
7592echo "${ECHO_T}$ac_ct_CC" >&6
10f2d63a 7593else
6232543b
VS
7594 echo "$as_me:7594: result: no" >&5
7595echo "${ECHO_T}no" >&6
7596fi
7597
7598 test -n "$ac_ct_CC" && break
7599done
7600
7601 CC=$ac_ct_CC
7602fi
7603
10f2d63a
VZ
7604fi
7605
6232543b
VS
7606test -z "$CC" && { { echo "$as_me:7606: error: no acceptable cc found in \$PATH" >&5
7607echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
7608 { (exit 1); exit 1; }; }
7609
7610echo "$as_me:7610: checking whether we are using the GNU C compiler" >&5
7611echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7612if test "${ac_cv_c_compiler_gnu+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 7614else
6232543b
VS
7615 cat >conftest.$ac_ext <<_ACEOF
7616#line 7616 "configure"
7617#include "confdefs.h"
7618
7619int
7620main ()
7621{
7622#ifndef __GNUC__
7623 choke me
7624#endif
7625
7626 ;
7627 return 0;
7628}
7629_ACEOF
7630rm -f conftest.$ac_objext
7631if { (eval echo "$as_me:7631: \"$ac_compile\"") >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 echo "$as_me:7634: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:7637: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:7640: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_compiler_gnu=yes
7643else
7644 echo "$as_me: failed program was:" >&5
7645cat conftest.$ac_ext >&5
7646ac_compiler_gnu=no
7647fi
7648rm -f conftest.$ac_objext conftest.$ac_ext
7649ac_cv_c_compiler_gnu=$ac_compiler_gnu
7650
7651fi
7652echo "$as_me:7652: result: $ac_cv_c_compiler_gnu" >&5
7653echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7654GCC=`test $ac_compiler_gnu = yes && echo yes`
7655ac_test_CFLAGS=${CFLAGS+set}
7656ac_save_CFLAGS=$CFLAGS
7657CFLAGS="-g"
7658echo "$as_me:7658: checking whether $CC accepts -g" >&5
7659echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7660if test "${ac_cv_prog_cc_g+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663 cat >conftest.$ac_ext <<_ACEOF
7664#line 7664 "configure"
7665#include "confdefs.h"
7666
7667int
7668main ()
7669{
7670
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675rm -f conftest.$ac_objext
7676if { (eval echo "$as_me:7676: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>&5
7678 ac_status=$?
7679 echo "$as_me:7679: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -s conftest.$ac_objext'
7682 { (eval echo "$as_me:7682: \"$ac_try\"") >&5
7683 (eval $ac_try) 2>&5
7684 ac_status=$?
7685 echo "$as_me:7685: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
10f2d63a
VZ
7687 ac_cv_prog_cc_g=yes
7688else
6232543b
VS
7689 echo "$as_me: failed program was:" >&5
7690cat conftest.$ac_ext >&5
7691ac_cv_prog_cc_g=no
10f2d63a 7692fi
6232543b 7693rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 7694fi
6232543b
VS
7695echo "$as_me:7695: result: $ac_cv_prog_cc_g" >&5
7696echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10f2d63a 7697if test "$ac_test_CFLAGS" = set; then
6232543b 7698 CFLAGS=$ac_save_CFLAGS
10f2d63a
VZ
7699elif test $ac_cv_prog_cc_g = yes; then
7700 if test "$GCC" = yes; then
7701 CFLAGS="-g -O2"
7702 else
7703 CFLAGS="-g"
7704 fi
7705else
7706 if test "$GCC" = yes; then
7707 CFLAGS="-O2"
7708 else
7709 CFLAGS=
7710 fi
7711fi
6232543b
VS
7712# Some people use a C++ compiler to compile C. Since we use `exit',
7713# in C++ we need to declare it. In case someone uses the same compiler
7714# for both compiling C and C++ we need to have the C++ compiler decide
7715# the declaration of exit, since it's the most demanding environment.
7716cat >conftest.$ac_ext <<_ACEOF
7717#ifndef __cplusplus
7718 choke me
7719#endif
7720_ACEOF
7721rm -f conftest.$ac_objext
7722if { (eval echo "$as_me:7722: \"$ac_compile\"") >&5
7723 (eval $ac_compile) 2>&5
7724 ac_status=$?
7725 echo "$as_me:7725: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -s conftest.$ac_objext'
7728 { (eval echo "$as_me:7728: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:7731: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 for ac_declaration in \
7734 ''\
7735 '#include <stdlib.h>' \
7736 'extern "C" void std::exit (int) throw (); using std::exit;' \
7737 'extern "C" void std::exit (int); using std::exit;' \
7738 'extern "C" void exit (int) throw ();' \
7739 'extern "C" void exit (int);' \
7740 'void exit (int);'
7741do
7742 cat >conftest.$ac_ext <<_ACEOF
7743#line 7743 "configure"
7744#include "confdefs.h"
7745#include <stdlib.h>
7746$ac_declaration
7747int
7748main ()
7749{
7750exit (42);
7751 ;
7752 return 0;
7753}
7754_ACEOF
7755rm -f conftest.$ac_objext
7756if { (eval echo "$as_me:7756: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>&5
7758 ac_status=$?
7759 echo "$as_me:7759: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -s conftest.$ac_objext'
7762 { (eval echo "$as_me:7762: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:7765: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 :
7768else
7769 echo "$as_me: failed program was:" >&5
7770cat conftest.$ac_ext >&5
7771continue
7772fi
7773rm -f conftest.$ac_objext conftest.$ac_ext
7774 cat >conftest.$ac_ext <<_ACEOF
7775#line 7775 "configure"
7776#include "confdefs.h"
7777$ac_declaration
7778int
7779main ()
7780{
7781exit (42);
7782 ;
7783 return 0;
7784}
7785_ACEOF
7786rm -f conftest.$ac_objext
7787if { (eval echo "$as_me:7787: \"$ac_compile\"") >&5
7788 (eval $ac_compile) 2>&5
7789 ac_status=$?
7790 echo "$as_me:7790: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest.$ac_objext'
7793 { (eval echo "$as_me:7793: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:7796: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 break
7799else
7800 echo "$as_me: failed program was:" >&5
7801cat conftest.$ac_ext >&5
7802fi
7803rm -f conftest.$ac_objext conftest.$ac_ext
7804done
7805echo '#ifdef __cplusplus' >>confdefs.h
7806echo $ac_declaration >>confdefs.h
7807echo '#endif' >>confdefs.h
10f2d63a 7808
6232543b
VS
7809else
7810 echo "$as_me: failed program was:" >&5
7811cat conftest.$ac_ext >&5
7812fi
7813rm -f conftest.$ac_objext conftest.$ac_ext
7814ac_ext=c
7815ac_cpp='$CPP $CPPFLAGS'
7816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
7819
7820CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7821
6232543b
VS
7822ac_ext=c
7823ac_cpp='$CPP $CPPFLAGS'
7824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827echo "$as_me:7827: checking how to run the C preprocessor" >&5
7828echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
7829# On Suns, sometimes $CPP names a directory.
7830if test -n "$CPP" && test -d "$CPP"; then
7831 CPP=
7832fi
7833if test -z "$CPP"; then
6232543b
VS
7834 if test "${ac_cv_prog_CPP+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
7837 # Double quotes because CPP needs to be expanded
7838 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7839 do
7840 # break 2 since there is a loop in there.
7841 ac_preproc_ok=false
7842for ac_c_preproc_warn_flag in '' yes
7843do
7844 # Use a header file that comes with gcc, so configuring glibc
7845 # with a fresh cross-compiler works.
10f2d63a 7846 # On the NeXT, cc -E runs the code through the compiler's parser,
6232543b
VS
7847 # not just through cpp. "Syntax error" is here to catch this case.
7848 cat >conftest.$ac_ext <<_ACEOF
7849#line 7849 "configure"
10f2d63a
VZ
7850#include "confdefs.h"
7851#include <assert.h>
6232543b
VS
7852 Syntax error
7853_ACEOF
7854if { (eval echo "$as_me:7854: \"$ac_cpp conftest.$ac_ext\"") >&5
7855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7856 ac_status=$?
7857 egrep -v '^ *\+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 echo "$as_me:7860: \$? = $ac_status" >&5
7861 (exit $ac_status); } >/dev/null; then
7862 if test -s conftest.err; then
7863 ac_cpp_err=$ac_c_preproc_warn_flag
7864 else
7865 ac_cpp_err=
7866 fi
7867else
7868 ac_cpp_err=yes
7869fi
7870if test -z "$ac_cpp_err"; then
10f2d63a
VZ
7871 :
7872else
6232543b 7873 echo "$as_me: failed program was:" >&5
10f2d63a 7874 cat conftest.$ac_ext >&5
6232543b
VS
7875 # Broken: fails on valid input.
7876continue
7877fi
7878rm -f conftest.err conftest.$ac_ext
7879
7880 # OK, works on sane cases. Now check whether non-existent headers
7881 # can be detected and how.
7882 cat >conftest.$ac_ext <<_ACEOF
7883#line 7883 "configure"
10f2d63a 7884#include "confdefs.h"
6232543b
VS
7885#include <ac_nonexistent.h>
7886_ACEOF
7887if { (eval echo "$as_me:7887: \"$ac_cpp conftest.$ac_ext\"") >&5
7888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7889 ac_status=$?
7890 egrep -v '^ *\+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 echo "$as_me:7893: \$? = $ac_status" >&5
7894 (exit $ac_status); } >/dev/null; then
7895 if test -s conftest.err; then
7896 ac_cpp_err=$ac_c_preproc_warn_flag
7897 else
7898 ac_cpp_err=
7899 fi
7900else
7901 ac_cpp_err=yes
7902fi
7903if test -z "$ac_cpp_err"; then
7904 # Broken: success on invalid input.
7905continue
10f2d63a 7906else
6232543b 7907 echo "$as_me: failed program was:" >&5
10f2d63a 7908 cat conftest.$ac_ext >&5
6232543b
VS
7909 # Passes both tests.
7910ac_preproc_ok=:
7911break
7912fi
7913rm -f conftest.err conftest.$ac_ext
7914
7915done
7916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7917rm -f conftest.err conftest.$ac_ext
7918if $ac_preproc_ok; then
7919 break 2
7920fi
7921
7922 done
7923 ac_cv_prog_CPP=$CPP
7924
7925fi
7926 CPP=$ac_cv_prog_CPP
7927else
7928 ac_cv_prog_CPP=$CPP
7929fi
7930echo "$as_me:7930: result: $CPP" >&5
7931echo "${ECHO_T}$CPP" >&6
7932ac_preproc_ok=false
7933for ac_c_preproc_warn_flag in '' yes
7934do
7935 # Use a header file that comes with gcc, so configuring glibc
7936 # with a fresh cross-compiler works.
7937 # On the NeXT, cc -E runs the code through the compiler's parser,
7938 # not just through cpp. "Syntax error" is here to catch this case.
7939 cat >conftest.$ac_ext <<_ACEOF
7940#line 7940 "configure"
10f2d63a
VZ
7941#include "confdefs.h"
7942#include <assert.h>
6232543b
VS
7943 Syntax error
7944_ACEOF
7945if { (eval echo "$as_me:7945: \"$ac_cpp conftest.$ac_ext\"") >&5
7946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7947 ac_status=$?
7948 egrep -v '^ *\+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:7951: \$? = $ac_status" >&5
7952 (exit $ac_status); } >/dev/null; then
7953 if test -s conftest.err; then
7954 ac_cpp_err=$ac_c_preproc_warn_flag
7955 else
7956 ac_cpp_err=
7957 fi
7958else
7959 ac_cpp_err=yes
7960fi
7961if test -z "$ac_cpp_err"; then
10f2d63a
VZ
7962 :
7963else
6232543b 7964 echo "$as_me: failed program was:" >&5
10f2d63a 7965 cat conftest.$ac_ext >&5
6232543b
VS
7966 # Broken: fails on valid input.
7967continue
10f2d63a 7968fi
6232543b
VS
7969rm -f conftest.err conftest.$ac_ext
7970
7971 # OK, works on sane cases. Now check whether non-existent headers
7972 # can be detected and how.
7973 cat >conftest.$ac_ext <<_ACEOF
7974#line 7974 "configure"
7975#include "confdefs.h"
7976#include <ac_nonexistent.h>
7977_ACEOF
7978if { (eval echo "$as_me:7978: \"$ac_cpp conftest.$ac_ext\"") >&5
7979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7980 ac_status=$?
7981 egrep -v '^ *\+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:7984: \$? = $ac_status" >&5
7985 (exit $ac_status); } >/dev/null; then
7986 if test -s conftest.err; then
7987 ac_cpp_err=$ac_c_preproc_warn_flag
7988 else
7989 ac_cpp_err=
7990 fi
7991else
7992 ac_cpp_err=yes
10f2d63a 7993fi
6232543b
VS
7994if test -z "$ac_cpp_err"; then
7995 # Broken: success on invalid input.
7996continue
7997else
7998 echo "$as_me: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8000 # Passes both tests.
8001ac_preproc_ok=:
8002break
10f2d63a 8003fi
6232543b
VS
8004rm -f conftest.err conftest.$ac_ext
8005
8006done
8007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8008rm -f conftest.err conftest.$ac_ext
8009if $ac_preproc_ok; then
8010 :
10f2d63a 8011else
6232543b
VS
8012 { { echo "$as_me:8012: error: C preprocessor \"$CPP\" fails sanity check" >&5
8013echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
8014 { (exit 1); exit 1; }; }
10f2d63a 8015fi
10f2d63a 8016
6232543b
VS
8017ac_ext=c
8018ac_cpp='$CPP $CPPFLAGS'
8019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8021ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 8022
6232543b
VS
8023if test $ac_cv_c_compiler_gnu = yes; then
8024 echo "$as_me:8024: checking whether $CC needs -traditional" >&5
8025echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
8026if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
8028else
8029 ac_pattern="Autoconf.*'x'"
6232543b
VS
8030 cat >conftest.$ac_ext <<_ACEOF
8031#line 8031 "configure"
10f2d63a
VZ
8032#include "confdefs.h"
8033#include <sgtty.h>
8034Autoconf TIOCGETP
6232543b 8035_ACEOF
10f2d63a
VZ
8036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8037 egrep "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
8038 ac_cv_prog_gcc_traditional=yes
8039else
10f2d63a
VZ
8040 ac_cv_prog_gcc_traditional=no
8041fi
8042rm -f conftest*
8043
10f2d63a 8044 if test $ac_cv_prog_gcc_traditional = no; then
6232543b
VS
8045 cat >conftest.$ac_ext <<_ACEOF
8046#line 8046 "configure"
10f2d63a
VZ
8047#include "confdefs.h"
8048#include <termio.h>
8049Autoconf TCGETA
6232543b 8050_ACEOF
10f2d63a
VZ
8051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8052 egrep "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
8053 ac_cv_prog_gcc_traditional=yes
8054fi
8055rm -f conftest*
8056
8057 fi
8058fi
6232543b
VS
8059echo "$as_me:8059: result: $ac_cv_prog_gcc_traditional" >&5
8060echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
8061 if test $ac_cv_prog_gcc_traditional = yes; then
8062 CC="$CC -traditional"
8063 fi
8064fi
8065
6232543b 8066ac_ext=cc
10f2d63a 8067ac_cpp='$CXXCPP $CPPFLAGS'
6232543b
VS
8068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a 8071
6232543b
VS
8072ac_ext=cc
8073ac_cpp='$CXXCPP $CPPFLAGS'
8074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8077if test -n "$ac_tool_prefix"; then
8078 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
8079 do
8080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8082echo "$as_me:8082: checking for $ac_word" >&5
8083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8084if test "${ac_cv_prog_CXX+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
8086else
8087 if test -n "$CXX"; then
8088 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8089else
6232543b
VS
8090 ac_save_IFS=$IFS; IFS=$ac_path_separator
8091ac_dummy="$PATH"
8092for ac_dir in $ac_dummy; do
8093 IFS=$ac_save_IFS
8094 test -z "$ac_dir" && ac_dir=.
8095 $as_executable_p "$ac_dir/$ac_word" || continue
8096ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8097echo "$as_me:8097: found $ac_dir/$ac_word" >&5
8098break
8099done
8100
10f2d63a
VZ
8101fi
8102fi
6232543b 8103CXX=$ac_cv_prog_CXX
10f2d63a 8104if test -n "$CXX"; then
6232543b
VS
8105 echo "$as_me:8105: result: $CXX" >&5
8106echo "${ECHO_T}$CXX" >&6
10f2d63a 8107else
6232543b
VS
8108 echo "$as_me:8108: result: no" >&5
8109echo "${ECHO_T}no" >&6
10f2d63a
VZ
8110fi
8111
6232543b
VS
8112 test -n "$CXX" && break
8113 done
8114fi
8115if test -z "$CXX"; then
8116 ac_ct_CXX=$CXX
8117 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
8118do
8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
8120set dummy $ac_prog; ac_word=$2
8121echo "$as_me:8121: checking for $ac_word" >&5
8122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8123if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125else
8126 if test -n "$ac_ct_CXX"; then
8127 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8128else
8129 ac_save_IFS=$IFS; IFS=$ac_path_separator
8130ac_dummy="$PATH"
8131for ac_dir in $ac_dummy; do
8132 IFS=$ac_save_IFS
8133 test -z "$ac_dir" && ac_dir=.
8134 $as_executable_p "$ac_dir/$ac_word" || continue
8135ac_cv_prog_ac_ct_CXX="$ac_prog"
8136echo "$as_me:8136: found $ac_dir/$ac_word" >&5
8137break
10f2d63a 8138done
10f2d63a 8139
6232543b
VS
8140fi
8141fi
8142ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8143if test -n "$ac_ct_CXX"; then
8144 echo "$as_me:8144: result: $ac_ct_CXX" >&5
8145echo "${ECHO_T}$ac_ct_CXX" >&6
8146else
8147 echo "$as_me:8147: result: no" >&5
8148echo "${ECHO_T}no" >&6
8149fi
10f2d63a 8150
6232543b
VS
8151 test -n "$ac_ct_CXX" && break
8152done
8153test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10f2d63a 8154
6232543b
VS
8155 CXX=$ac_ct_CXX
8156fi
10f2d63a 8157
6232543b
VS
8158echo "$as_me:8158: checking whether we are using the GNU C++ compiler" >&5
8159echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8160if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162else
8163 cat >conftest.$ac_ext <<_ACEOF
8164#line 8164 "configure"
10f2d63a
VZ
8165#include "confdefs.h"
8166
6232543b
VS
8167int
8168main ()
8169{
8170#ifndef __GNUC__
8171 choke me
10f2d63a 8172#endif
10f2d63a 8173
6232543b
VS
8174 ;
8175 return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext
8179if { (eval echo "$as_me:8179: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>&5
8181 ac_status=$?
8182 echo "$as_me:8182: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -s conftest.$ac_objext'
8185 { (eval echo "$as_me:8185: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:8188: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_compiler_gnu=yes
8191else
8192 echo "$as_me: failed program was:" >&5
8193cat conftest.$ac_ext >&5
8194ac_compiler_gnu=no
8195fi
8196rm -f conftest.$ac_objext conftest.$ac_ext
8197ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8198
8199fi
8200echo "$as_me:8200: result: $ac_cv_cxx_compiler_gnu" >&5
8201echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8202GXX=`test $ac_compiler_gnu = yes && echo yes`
8203ac_test_CXXFLAGS=${CXXFLAGS+set}
8204ac_save_CXXFLAGS=$CXXFLAGS
8205CXXFLAGS="-g"
8206echo "$as_me:8206: checking whether $CXX accepts -g" >&5
8207echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8208if test "${ac_cv_prog_cxx_g+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211 cat >conftest.$ac_ext <<_ACEOF
8212#line 8212 "configure"
8213#include "confdefs.h"
10f2d63a 8214
6232543b
VS
8215int
8216main ()
8217{
10f2d63a 8218
6232543b
VS
8219 ;
8220 return 0;
8221}
8222_ACEOF
8223rm -f conftest.$ac_objext
8224if { (eval echo "$as_me:8224: \"$ac_compile\"") >&5
8225 (eval $ac_compile) 2>&5
8226 ac_status=$?
8227 echo "$as_me:8227: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (eval echo "$as_me:8230: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:8233: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
10f2d63a
VZ
8235 ac_cv_prog_cxx_g=yes
8236else
6232543b
VS
8237 echo "$as_me: failed program was:" >&5
8238cat conftest.$ac_ext >&5
8239ac_cv_prog_cxx_g=no
10f2d63a 8240fi
6232543b 8241rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 8242fi
6232543b
VS
8243echo "$as_me:8243: result: $ac_cv_prog_cxx_g" >&5
8244echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
10f2d63a 8245if test "$ac_test_CXXFLAGS" = set; then
6232543b 8246 CXXFLAGS=$ac_save_CXXFLAGS
10f2d63a
VZ
8247elif test $ac_cv_prog_cxx_g = yes; then
8248 if test "$GXX" = yes; then
8249 CXXFLAGS="-g -O2"
8250 else
8251 CXXFLAGS="-g"
8252 fi
8253else
8254 if test "$GXX" = yes; then
8255 CXXFLAGS="-O2"
8256 else
8257 CXXFLAGS=
8258 fi
8259fi
6232543b
VS
8260for ac_declaration in \
8261 ''\
8262 '#include <stdlib.h>' \
8263 'extern "C" void std::exit (int) throw (); using std::exit;' \
8264 'extern "C" void std::exit (int); using std::exit;' \
8265 'extern "C" void exit (int) throw ();' \
8266 'extern "C" void exit (int);' \
8267 'void exit (int);'
8268do
8269 cat >conftest.$ac_ext <<_ACEOF
8270#line 8270 "configure"
8271#include "confdefs.h"
8272#include <stdlib.h>
8273$ac_declaration
8274int
8275main ()
8276{
8277exit (42);
8278 ;
8279 return 0;
8280}
8281_ACEOF
8282rm -f conftest.$ac_objext
8283if { (eval echo "$as_me:8283: \"$ac_compile\"") >&5
8284 (eval $ac_compile) 2>&5
8285 ac_status=$?
8286 echo "$as_me:8286: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (eval echo "$as_me:8289: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:8292: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 :
8295else
8296 echo "$as_me: failed program was:" >&5
8297cat conftest.$ac_ext >&5
8298continue
8299fi
8300rm -f conftest.$ac_objext conftest.$ac_ext
8301 cat >conftest.$ac_ext <<_ACEOF
8302#line 8302 "configure"
8303#include "confdefs.h"
8304$ac_declaration
8305int
8306main ()
8307{
8308exit (42);
8309 ;
8310 return 0;
8311}
8312_ACEOF
8313rm -f conftest.$ac_objext
8314if { (eval echo "$as_me:8314: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>&5
8316 ac_status=$?
8317 echo "$as_me:8317: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -s conftest.$ac_objext'
8320 { (eval echo "$as_me:8320: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:8323: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 break
8326else
8327 echo "$as_me: failed program was:" >&5
8328cat conftest.$ac_ext >&5
8329fi
8330rm -f conftest.$ac_objext conftest.$ac_ext
8331done
8332echo '#ifdef __cplusplus' >>confdefs.h
8333echo $ac_declaration >>confdefs.h
8334echo '#endif' >>confdefs.h
10f2d63a 8335
6232543b
VS
8336ac_ext=cc
8337ac_cpp='$CXXCPP $CPPFLAGS'
8338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a 8341
6232543b 8342ac_ext=cc
10f2d63a 8343ac_cpp='$CXXCPP $CPPFLAGS'
6232543b
VS
8344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347echo "$as_me:8347: checking how to run the C++ preprocessor" >&5
8348echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8349if test -z "$CXXCPP"; then
8350 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 # Double quotes because CXXCPP needs to be expanded
8354 for CXXCPP in "$CXX -E" "/lib/cpp"
8355 do
8356 # break 2 since there is a loop in there.
8357 ac_preproc_ok=false
8358for ac_cxx_preproc_warn_flag in '' yes
8359do
8360 # Use a header file that comes with gcc, so configuring glibc
8361 # with a fresh cross-compiler works.
8362 # On the NeXT, cc -E runs the code through the compiler's parser,
8363 # not just through cpp. "Syntax error" is here to catch this case.
8364 cat >conftest.$ac_ext <<_ACEOF
8365#line 8365 "configure"
10f2d63a 8366#include "confdefs.h"
6232543b
VS
8367#include <assert.h>
8368 Syntax error
8369_ACEOF
8370if { (eval echo "$as_me:8370: \"$ac_cpp conftest.$ac_ext\"") >&5
8371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8372 ac_status=$?
8373 egrep -v '^ *\+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:8376: \$? = $ac_status" >&5
8377 (exit $ac_status); } >/dev/null; then
8378 if test -s conftest.err; then
8379 ac_cpp_err=$ac_cxx_preproc_warn_flag
8380 else
8381 ac_cpp_err=
8382 fi
8383else
8384 ac_cpp_err=yes
8385fi
8386if test -z "$ac_cpp_err"; then
10f2d63a
VZ
8387 :
8388else
6232543b 8389 echo "$as_me: failed program was:" >&5
10f2d63a 8390 cat conftest.$ac_ext >&5
6232543b
VS
8391 # Broken: fails on valid input.
8392continue
10f2d63a 8393fi
6232543b
VS
8394rm -f conftest.err conftest.$ac_ext
8395
8396 # OK, works on sane cases. Now check whether non-existent headers
8397 # can be detected and how.
8398 cat >conftest.$ac_ext <<_ACEOF
8399#line 8399 "configure"
8400#include "confdefs.h"
8401#include <ac_nonexistent.h>
8402_ACEOF
8403if { (eval echo "$as_me:8403: \"$ac_cpp conftest.$ac_ext\"") >&5
8404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8405 ac_status=$?
8406 egrep -v '^ *\+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:8409: \$? = $ac_status" >&5
8410 (exit $ac_status); } >/dev/null; then
8411 if test -s conftest.err; then
8412 ac_cpp_err=$ac_cxx_preproc_warn_flag
8413 else
8414 ac_cpp_err=
8415 fi
8416else
8417 ac_cpp_err=yes
10f2d63a 8418fi
6232543b
VS
8419if test -z "$ac_cpp_err"; then
8420 # Broken: success on invalid input.
8421continue
8422else
8423 echo "$as_me: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8425 # Passes both tests.
8426ac_preproc_ok=:
8427break
10f2d63a 8428fi
6232543b
VS
8429rm -f conftest.err conftest.$ac_ext
8430
8431done
8432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8433rm -f conftest.err conftest.$ac_ext
8434if $ac_preproc_ok; then
8435 break 2
8436fi
8437
8438 done
8439 ac_cv_prog_CXXCPP=$CXXCPP
8440
8441fi
8442 CXXCPP=$ac_cv_prog_CXXCPP
8443else
8444 ac_cv_prog_CXXCPP=$CXXCPP
8445fi
8446echo "$as_me:8446: result: $CXXCPP" >&5
8447echo "${ECHO_T}$CXXCPP" >&6
8448ac_preproc_ok=false
8449for ac_cxx_preproc_warn_flag in '' yes
8450do
8451 # Use a header file that comes with gcc, so configuring glibc
8452 # with a fresh cross-compiler works.
8453 # On the NeXT, cc -E runs the code through the compiler's parser,
8454 # not just through cpp. "Syntax error" is here to catch this case.
8455 cat >conftest.$ac_ext <<_ACEOF
8456#line 8456 "configure"
8457#include "confdefs.h"
8458#include <assert.h>
8459 Syntax error
8460_ACEOF
8461if { (eval echo "$as_me:8461: \"$ac_cpp conftest.$ac_ext\"") >&5
8462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8463 ac_status=$?
8464 egrep -v '^ *\+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:8467: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev/null; then
8469 if test -s conftest.err; then
8470 ac_cpp_err=$ac_cxx_preproc_warn_flag
8471 else
8472 ac_cpp_err=
8473 fi
8474else
8475 ac_cpp_err=yes
8476fi
8477if test -z "$ac_cpp_err"; then
8478 :
8479else
8480 echo "$as_me: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8482 # Broken: fails on valid input.
8483continue
8484fi
8485rm -f conftest.err conftest.$ac_ext
8486
8487 # OK, works on sane cases. Now check whether non-existent headers
8488 # can be detected and how.
8489 cat >conftest.$ac_ext <<_ACEOF
8490#line 8490 "configure"
8491#include "confdefs.h"
8492#include <ac_nonexistent.h>
8493_ACEOF
8494if { (eval echo "$as_me:8494: \"$ac_cpp conftest.$ac_ext\"") >&5
8495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8496 ac_status=$?
8497 egrep -v '^ *\+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:8500: \$? = $ac_status" >&5
8501 (exit $ac_status); } >/dev/null; then
8502 if test -s conftest.err; then
8503 ac_cpp_err=$ac_cxx_preproc_warn_flag
8504 else
8505 ac_cpp_err=
8506 fi
8507else
8508 ac_cpp_err=yes
8509fi
8510if test -z "$ac_cpp_err"; then
8511 # Broken: success on invalid input.
8512continue
8513else
8514 echo "$as_me: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8516 # Passes both tests.
8517ac_preproc_ok=:
8518break
8519fi
8520rm -f conftest.err conftest.$ac_ext
8521
8522done
8523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8524rm -f conftest.err conftest.$ac_ext
8525if $ac_preproc_ok; then
8526 :
8527else
8528 { { echo "$as_me:8528: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
8529echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
8530 { (exit 1); exit 1; }; }
8531fi
8532
8533ac_ext=cc
8534ac_cpp='$CXXCPP $CPPFLAGS'
8535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
8538
8539CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8540
8541ac_ext=c
10f2d63a 8542ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547if test -n "$ac_tool_prefix"; then
8548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8549set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8550echo "$as_me:8550: checking for $ac_word" >&5
8551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8552if test "${ac_cv_prog_RANLIB+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
8554else
8555 if test -n "$RANLIB"; then
8556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8557else
6232543b
VS
8558 ac_save_IFS=$IFS; IFS=$ac_path_separator
8559ac_dummy="$PATH"
8560for ac_dir in $ac_dummy; do
8561 IFS=$ac_save_IFS
8562 test -z "$ac_dir" && ac_dir=.
8563 $as_executable_p "$ac_dir/$ac_word" || continue
8564ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8565echo "$as_me:8565: found $ac_dir/$ac_word" >&5
8566break
8567done
8568
10f2d63a
VZ
8569fi
8570fi
6232543b 8571RANLIB=$ac_cv_prog_RANLIB
10f2d63a 8572if test -n "$RANLIB"; then
6232543b
VS
8573 echo "$as_me:8573: result: $RANLIB" >&5
8574echo "${ECHO_T}$RANLIB" >&6
8575else
8576 echo "$as_me:8576: result: no" >&5
8577echo "${ECHO_T}no" >&6
8578fi
8579
8580fi
8581if test -z "$ac_cv_prog_RANLIB"; then
8582 ac_ct_RANLIB=$RANLIB
8583 # Extract the first word of "ranlib", so it can be a program name with args.
8584set dummy ranlib; ac_word=$2
8585echo "$as_me:8585: checking for $ac_word" >&5
8586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8587if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589else
8590 if test -n "$ac_ct_RANLIB"; then
8591 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8592else
8593 ac_save_IFS=$IFS; IFS=$ac_path_separator
8594ac_dummy="$PATH"
8595for ac_dir in $ac_dummy; do
8596 IFS=$ac_save_IFS
8597 test -z "$ac_dir" && ac_dir=.
8598 $as_executable_p "$ac_dir/$ac_word" || continue
8599ac_cv_prog_ac_ct_RANLIB="ranlib"
8600echo "$as_me:8600: found $ac_dir/$ac_word" >&5
8601break
8602done
8603
8604 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8605fi
8606fi
8607ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8608if test -n "$ac_ct_RANLIB"; then
8609 echo "$as_me:8609: result: $ac_ct_RANLIB" >&5
8610echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 8611else
6232543b
VS
8612 echo "$as_me:8612: result: no" >&5
8613echo "${ECHO_T}no" >&6
10f2d63a
VZ
8614fi
8615
6232543b
VS
8616 RANLIB=$ac_ct_RANLIB
8617else
8618 RANLIB="$ac_cv_prog_RANLIB"
8619fi
10f2d63a
VZ
8620
8621# Extract the first word of "ar", so it can be a program name with args.
8622set dummy ar; ac_word=$2
6232543b
VS
8623echo "$as_me:8623: checking for $ac_word" >&5
8624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625if test "${ac_cv_prog_AR+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
8627else
8628 if test -n "$AR"; then
8629 ac_cv_prog_AR="$AR" # Let the user override the test.
8630else
6232543b
VS
8631 ac_save_IFS=$IFS; IFS=$ac_path_separator
8632ac_dummy="$PATH"
8633for ac_dir in $ac_dummy; do
8634 IFS=$ac_save_IFS
8635 test -z "$ac_dir" && ac_dir=.
8636 $as_executable_p "$ac_dir/$ac_word" || continue
8637ac_cv_prog_AR="ar"
8638echo "$as_me:8638: found $ac_dir/$ac_word" >&5
8639break
8640done
8641
10f2d63a
VZ
8642 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8643fi
8644fi
6232543b 8645AR=$ac_cv_prog_AR
10f2d63a 8646if test -n "$AR"; then
6232543b
VS
8647 echo "$as_me:8647: result: $AR" >&5
8648echo "${ECHO_T}$AR" >&6
10f2d63a 8649else
6232543b
VS
8650 echo "$as_me:8650: result: no" >&5
8651echo "${ECHO_T}no" >&6
10f2d63a
VZ
8652fi
8653
10f2d63a
VZ
8654# Find a good install program. We prefer a C program (faster),
8655# so one script is as good as another. But avoid the broken or
8656# incompatible versions:
8657# SysV /etc/install, /usr/sbin/install
8658# SunOS /usr/etc/install
8659# IRIX /sbin/install
8660# AIX /bin/install
6232543b 8661# AmigaOS /C/install, which installs bootblocks on floppy discs
10f2d63a
VZ
8662# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8663# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8664# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8665# ./install, which can be erroneously created by make from ./install.sh.
6232543b
VS
8666echo "$as_me:8666: checking for a BSD compatible install" >&5
8667echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
10f2d63a 8668if test -z "$INSTALL"; then
6232543b
VS
8669if test "${ac_cv_path_install+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 8671else
6232543b 8672 ac_save_IFS=$IFS; IFS=$ac_path_separator
10f2d63a 8673 for ac_dir in $PATH; do
6232543b 8674 IFS=$ac_save_IFS
10f2d63a 8675 # Account for people who put trailing slashes in PATH elements.
6232543b
VS
8676 case $ac_dir/ in
8677 / | ./ | .// | /cC/* \
8678 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
8679 | /usr/ucb/* ) ;;
10f2d63a
VZ
8680 *)
8681 # OSF1 and SCO ODT 3.0 have their own names for install.
8682 # Don't use installbsd from OSF since it installs stuff as root
8683 # by default.
8684 for ac_prog in ginstall scoinst install; do
6232543b 8685 if $as_executable_p "$ac_dir/$ac_prog"; then
10f2d63a 8686 if test $ac_prog = install &&
6232543b 8687 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
10f2d63a
VZ
8688 # AIX install. It has an incompatible calling convention.
8689 :
6232543b
VS
8690 elif test $ac_prog = install &&
8691 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
8692 # program-specific install script used by HP pwplus--don't use.
8693 :
10f2d63a
VZ
8694 else
8695 ac_cv_path_install="$ac_dir/$ac_prog -c"
8696 break 2
8697 fi
8698 fi
8699 done
8700 ;;
8701 esac
8702 done
10f2d63a
VZ
8703
8704fi
8705 if test "${ac_cv_path_install+set}" = set; then
6232543b 8706 INSTALL=$ac_cv_path_install
10f2d63a
VZ
8707 else
8708 # As a last resort, use the slow shell script. We don't cache a
8709 # path for INSTALL within a source directory, because that will
8710 # break other packages using the cache if that directory is
8711 # removed, or if the path is relative.
6232543b 8712 INSTALL=$ac_install_sh
10f2d63a
VZ
8713 fi
8714fi
6232543b
VS
8715echo "$as_me:8715: result: $INSTALL" >&5
8716echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
8717
8718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8719# It thinks the first close brace ends the variable substitution.
8720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8721
6232543b 8722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10f2d63a
VZ
8723
8724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8725
10f2d63a
VZ
8726# Extract the first word of "strip", so it can be a program name with args.
8727set dummy strip; ac_word=$2
6232543b
VS
8728echo "$as_me:8728: checking for $ac_word" >&5
8729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8730if test "${ac_cv_prog_STRIP+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
8732else
8733 if test -n "$STRIP"; then
8734 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8735else
6232543b
VS
8736 ac_save_IFS=$IFS; IFS=$ac_path_separator
8737ac_dummy="$PATH"
8738for ac_dir in $ac_dummy; do
8739 IFS=$ac_save_IFS
8740 test -z "$ac_dir" && ac_dir=.
8741 $as_executable_p "$ac_dir/$ac_word" || continue
8742ac_cv_prog_STRIP="strip"
8743echo "$as_me:8743: found $ac_dir/$ac_word" >&5
8744break
8745done
8746
10f2d63a
VZ
8747 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8748fi
8749fi
6232543b 8750STRIP=$ac_cv_prog_STRIP
10f2d63a 8751if test -n "$STRIP"; then
6232543b
VS
8752 echo "$as_me:8752: result: $STRIP" >&5
8753echo "${ECHO_T}$STRIP" >&6
10f2d63a 8754else
6232543b
VS
8755 echo "$as_me:8755: result: no" >&5
8756echo "${ECHO_T}no" >&6
10f2d63a
VZ
8757fi
8758
6232543b
VS
8759echo "$as_me:8759: checking \"make for VPATH support\"" >&5
8760echo $ECHO_N "checking \"make for VPATH support\"... $ECHO_C" >&6
10f2d63a
VZ
8761cat - << EOF > confMake
8762check : file
8763 cp \$? \$@
8764 cp \$? final_file
8765EOF
8766
8767if test ! -d sub ; then
8768 mkdir sub
8769fi
8770echo dummy > sub/file
f6bcfd97 8771${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8772RESULT=$?
8773rm -f sub/file check final_file confMake
8774rmdir sub
8775if test "$RESULT" = 0; then
6232543b
VS
8776 echo "$as_me:8776: result: yes" >&5
8777echo "${ECHO_T}yes" >&6
10f2d63a 8778else
6232543b
VS
8779 echo "$as_me:8779: result: no" >&5
8780echo "${ECHO_T}no" >&6
8781 { { echo "$as_me:8781: error: You need a make-utility that is able to use the variable
10f2d63a 8782VPATH correctly.
6232543b
VS
8783If your version of make does not support VPATH correctly" >&5
8784echo "$as_me: error: You need a make-utility that is able to use the variable
8785VPATH correctly.
8786If your version of make does not support VPATH correctly" >&2;}
8787 { (exit please install GNU-make (possibly as gmake)); exit please install GNU-make (possibly as gmake); }; }
10f2d63a
VZ
8788fi
8789
8790for ac_prog in 'bison -y' byacc
8791do
6232543b 8792 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8793set dummy $ac_prog; ac_word=$2
6232543b
VS
8794echo "$as_me:8794: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8796if test "${ac_cv_prog_YACC+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
8798else
8799 if test -n "$YACC"; then
8800 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8801else
6232543b
VS
8802 ac_save_IFS=$IFS; IFS=$ac_path_separator
8803ac_dummy="$PATH"
8804for ac_dir in $ac_dummy; do
8805 IFS=$ac_save_IFS
8806 test -z "$ac_dir" && ac_dir=.
8807 $as_executable_p "$ac_dir/$ac_word" || continue
8808ac_cv_prog_YACC="$ac_prog"
8809echo "$as_me:8809: found $ac_dir/$ac_word" >&5
8810break
8811done
8812
10f2d63a
VZ
8813fi
8814fi
6232543b 8815YACC=$ac_cv_prog_YACC
10f2d63a 8816if test -n "$YACC"; then
6232543b
VS
8817 echo "$as_me:8817: result: $YACC" >&5
8818echo "${ECHO_T}$YACC" >&6
10f2d63a 8819else
6232543b
VS
8820 echo "$as_me:8820: result: no" >&5
8821echo "${ECHO_T}no" >&6
10f2d63a
VZ
8822fi
8823
6232543b 8824 test -n "$YACC" && break
10f2d63a
VZ
8825done
8826test -n "$YACC" || YACC="yacc"
8827
6232543b
VS
8828for ac_prog in flex lex
8829do
8830 # Extract the first word of "$ac_prog", so it can be a program name with args.
8831set dummy $ac_prog; ac_word=$2
8832echo "$as_me:8832: checking for $ac_word" >&5
8833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8834if test "${ac_cv_prog_LEX+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
8836else
8837 if test -n "$LEX"; then
8838 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8839else
6232543b
VS
8840 ac_save_IFS=$IFS; IFS=$ac_path_separator
8841ac_dummy="$PATH"
8842for ac_dir in $ac_dummy; do
8843 IFS=$ac_save_IFS
8844 test -z "$ac_dir" && ac_dir=.
8845 $as_executable_p "$ac_dir/$ac_word" || continue
8846ac_cv_prog_LEX="$ac_prog"
8847echo "$as_me:8847: found $ac_dir/$ac_word" >&5
8848break
8849done
8850
10f2d63a
VZ
8851fi
8852fi
6232543b 8853LEX=$ac_cv_prog_LEX
10f2d63a 8854if test -n "$LEX"; then
6232543b
VS
8855 echo "$as_me:8855: result: $LEX" >&5
8856echo "${ECHO_T}$LEX" >&6
10f2d63a 8857else
6232543b
VS
8858 echo "$as_me:8858: result: no" >&5
8859echo "${ECHO_T}no" >&6
10f2d63a
VZ
8860fi
8861
6232543b
VS
8862 test -n "$LEX" && break
8863done
8864test -n "$LEX" || LEX=":"
8865
10f2d63a
VZ
8866if test -z "$LEXLIB"
8867then
6232543b
VS
8868 echo "$as_me:8868: checking for yywrap in -lfl" >&5
8869echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8870if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872else
8873 ac_check_lib_save_LIBS=$LIBS
8874LIBS="-lfl $LIBS"
8875cat >conftest.$ac_ext <<_ACEOF
8876#line 8876 "configure"
10f2d63a 8877#include "confdefs.h"
6232543b 8878
10f2d63a 8879/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
8880#ifdef __cplusplus
8881extern "C"
8882#endif
10f2d63a 8883/* We use char because int might match the return type of a gcc2
6232543b
VS
8884 builtin and then its argument prototype would still apply. */
8885char yywrap ();
8886int
8887main ()
8888{
8889yywrap ();
8890 ;
8891 return 0;
8892}
8893_ACEOF
8894rm -f conftest.$ac_objext conftest$ac_exeext
8895if { (eval echo "$as_me:8895: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>&5
8897 ac_status=$?
8898 echo "$as_me:8898: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -s conftest$ac_exeext'
8901 { (eval echo "$as_me:8901: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:8904: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_lib_fl_yywrap=yes
8907else
8908 echo "$as_me: failed program was:" >&5
8909cat conftest.$ac_ext >&5
8910ac_cv_lib_fl_yywrap=no
8911fi
8912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8913LIBS=$ac_check_lib_save_LIBS
8914fi
8915echo "$as_me:8915: result: $ac_cv_lib_fl_yywrap" >&5
8916echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8917if test $ac_cv_lib_fl_yywrap = yes; then
8918 LEXLIB="-lfl"
8919else
8920 echo "$as_me:8920: checking for yywrap in -ll" >&5
8921echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8922if test "${ac_cv_lib_l_yywrap+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925 ac_check_lib_save_LIBS=$LIBS
8926LIBS="-ll $LIBS"
8927cat >conftest.$ac_ext <<_ACEOF
8928#line 8928 "configure"
8929#include "confdefs.h"
10f2d63a 8930
6232543b
VS
8931/* Override any gcc2 internal prototype to avoid an error. */
8932#ifdef __cplusplus
8933extern "C"
8934#endif
8935/* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8937char yywrap ();
8938int
8939main ()
8940{
8941yywrap ();
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946rm -f conftest.$ac_objext conftest$ac_exeext
8947if { (eval echo "$as_me:8947: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>&5
8949 ac_status=$?
8950 echo "$as_me:8950: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:8953: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:8956: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_lib_l_yywrap=yes
10f2d63a 8959else
6232543b
VS
8960 echo "$as_me: failed program was:" >&5
8961cat conftest.$ac_ext >&5
8962ac_cv_lib_l_yywrap=no
10f2d63a 8963fi
6232543b
VS
8964rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8965LIBS=$ac_check_lib_save_LIBS
10f2d63a 8966fi
6232543b
VS
8967echo "$as_me:8967: result: $ac_cv_lib_l_yywrap" >&5
8968echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8969if test $ac_cv_lib_l_yywrap = yes; then
8970 LEXLIB="-ll"
10f2d63a
VZ
8971fi
8972
8973fi
8974
6232543b 8975fi
10f2d63a 8976
6232543b
VS
8977if test "x$LEX" != "x:"; then
8978 echo "$as_me:8978: checking lex output file root" >&5
8979echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8980if test "${ac_cv_prog_lex_root+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 8982else
6232543b
VS
8983 # The minimal lex program is just a single line: %%. But some broken lexes
8984# (Solaris, I think it was) want two %% lines, so accommodate them.
8985echo '%%
8986%%' | $LEX
8987if test -f lex.yy.c; then
8988 ac_cv_prog_lex_root=lex.yy
8989elif test -f lexyy.c; then
8990 ac_cv_prog_lex_root=lexyy
10f2d63a 8991else
6232543b
VS
8992 { { echo "$as_me:8992: error: cannot find output from $LEX; giving up" >&5
8993echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8994 { (exit 1); exit 1; }; }
10f2d63a
VZ
8995fi
8996fi
6232543b
VS
8997echo "$as_me:8997: result: $ac_cv_prog_lex_root" >&5
8998echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8999LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9000
9001echo "$as_me:9001: checking whether yytext is a pointer" >&5
9002echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9003if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005else
9006 # POSIX says lex can declare yytext either as a pointer or an array; the
9007# default is implementation-dependent. Figure out which it is, since
9008# not all implementations provide the %pointer and %array declarations.
9009ac_cv_prog_lex_yytext_pointer=no
9010echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9011ac_save_LIBS=$LIBS
9012LIBS="$LIBS $LEXLIB"
9013cat >conftest.$ac_ext <<_ACEOF
9014`cat $LEX_OUTPUT_ROOT.c`
9015_ACEOF
9016rm -f conftest.$ac_objext conftest$ac_exeext
9017if { (eval echo "$as_me:9017: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>&5
9019 ac_status=$?
9020 echo "$as_me:9020: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -s conftest$ac_exeext'
9023 { (eval echo "$as_me:9023: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:9026: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 9029else
6232543b
VS
9030 echo "$as_me: failed program was:" >&5
9031cat conftest.$ac_ext >&5
9032fi
9033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9034LIBS=$ac_save_LIBS
9035rm -f "${LEX_OUTPUT_ROOT}.c"
9036
9037fi
9038echo "$as_me:9038: result: $ac_cv_prog_lex_yytext_pointer" >&5
9039echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9040if test $ac_cv_prog_lex_yytext_pointer = yes; then
9041
9042cat >>confdefs.h <<\EOF
9043#define YYTEXT_POINTER 1
9044EOF
9045
10f2d63a
VZ
9046fi
9047
6232543b 9048fi
10f2d63a 9049
6232543b
VS
9050echo "$as_me:9050: checking whether ln -s works" >&5
9051echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9052LN_S=$as_ln_s
9053if test "$LN_S" = "ln -s"; then
9054 echo "$as_me:9054: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056else
9057 echo "$as_me:9057: result: no, using $LN_S" >&5
9058echo "${ECHO_T}no, using $LN_S" >&6
9059fi
10f2d63a
VZ
9060
9061SEARCH_INCLUDE="\
9062 /usr/local/include \
9063 \
9064 /usr/Motif-1.2/include \
9065 /usr/Motif-2.1/include \
9066 \
9067 /usr/include/Motif1.2 \
9068 /opt/xpm/include/X11 \
9069 /opt/GBxpm/include/ \
9070 /opt/GBxpm/X11/include/ \
9071 \
9072 /usr/Motif1.2/include \
9073 /usr/dt/include \
afc31813
VZ
9074 /usr/openwin/include \
9075 \
10f2d63a
VZ
9076 /usr/include/Xm \
9077 \
9078 /usr/X11R6/include \
afc31813 9079 /usr/X11R6.4/include \
10f2d63a
VZ
9080 /usr/X11R5/include \
9081 /usr/X11R4/include \
9082 \
10f2d63a
VZ
9083 /usr/include/X11R6 \
9084 /usr/include/X11R5 \
9085 /usr/include/X11R4 \
9086 \
9087 /usr/local/X11R6/include \
9088 /usr/local/X11R5/include \
9089 /usr/local/X11R4/include \
9090 \
9091 /usr/local/include/X11R6 \
9092 /usr/local/include/X11R5 \
9093 /usr/local/include/X11R4 \
9094 \
9095 /usr/X11/include \
9096 /usr/include/X11 \
9097 /usr/local/X11/include \
9098 /usr/local/include/X11 \
9099 \
9100 /usr/X386/include \
9101 /usr/x386/include \
9102 /usr/XFree86/include/X11 \
9103 \
cf27ef00 9104 X:/XFree86/include \
ec14dd32
VZ
9105 X:/XFree86/include/X11 \
9106 \
10f2d63a
VZ
9107 /usr/include/gtk \
9108 /usr/local/include/gtk \
9109 /usr/include/glib \
9110 /usr/local/include/glib \
9111 \
9112 /usr/include/qt \
9113 /usr/local/include/qt \
9114 \
9115 /usr/include/windows \
9116 /usr/include/wine \
9117 /usr/local/include/wine \
9118 \
9119 /usr/unsupported/include \
9120 /usr/athena/include \
9121 /usr/local/x11r5/include \
9122 /usr/lpp/Xamples/include \
9123 \
10f2d63a 9124 /usr/openwin/share/include \
928b5c08
VZ
9125 \
9126 /usr/include"
10f2d63a
VZ
9127
9128SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9129
6232543b 9130cat >confcache <<\_ACEOF
10f2d63a
VZ
9131# This file is a shell script that caches the results of configure
9132# tests run on this system so they can be shared between configure
6232543b
VS
9133# scripts and configure runs, see configure's option --config-cache.
9134# It is not useful on other systems. If it contains results you don't
9135# want to keep, you may remove or edit it.
10f2d63a 9136#
6232543b
VS
9137# config.status only pays attention to the cache file if you give it
9138# the --recheck option to rerun configure.
10f2d63a 9139#
6232543b
VS
9140# `ac_cv_env_foo' variables (set or unset) will be overriden when
9141# loading this file, other *unset* `ac_cv_foo' will be assigned the
9142# following values.
9143
9144_ACEOF
9145
10f2d63a
VZ
9146# The following way of writing the cache mishandles newlines in values,
9147# but we know of no workaround that is simple, portable, and efficient.
9148# So, don't put newlines in cache variables' values.
9149# Ultrix sh set writes to stderr and can't be redirected directly,
9150# and sets the high bit in the cache file unless we assign to the vars.
6232543b
VS
9151{
9152 (set) 2>&1 |
9153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9154 *ac_space=\ *)
9155 # `set' does not quote correctly, so add quotes (double-quote
9156 # substitution turns \\\\ into \\, and sed turns \\ into \).
9157 sed -n \
9158 "s/'/'\\\\''/g;
9159 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9160 ;;
9161 *)
9162 # `set' quotes correctly as required by POSIX, so do not add quotes.
9163 sed -n \
9164 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9165 ;;
9166 esac;
9167} |
9168 sed '
9169 t clear
9170 : clear
9171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9172 t end
9173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9174 : end' >>confcache
9175if cmp -s $cache_file confcache; then :; else
10f2d63a 9176 if test -w $cache_file; then
6232543b
VS
9177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9178 cat confcache >$cache_file
10f2d63a
VZ
9179 else
9180 echo "not updating unwritable cache $cache_file"
9181 fi
9182fi
9183rm -f confcache
9184
dad6c0ea
VZ
9185AFMINSTALL=
9186
10f2d63a
VZ
9187if test "$wxUSE_GUI" = "yes"; then
9188
dad6c0ea
VZ
9189USE_GUI=1
9190
10f2d63a
VZ
9191TOOLKIT=
9192TOOLKIT_INCLUDE=
9193
10f2d63a
VZ
9194GUI_TK_LIBRARY=
9195GUI_TK_LINK=
9196
9197WXGTK12=
f6bcfd97 9198WXGTK127=
6f72b082 9199WXGTK20=
10f2d63a
VZ
9200
9201WXWINE=
9202
10f2d63a
VZ
9203if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9204 if test "$cross_compiling" = "yes" ; then
6232543b
VS
9205 { echo "$as_me:9205: WARNING: skipping windows.h check for cross-compilation" >&5
9206echo "$as_me: WARNING: skipping windows.h check for cross-compilation" >&2;}
10f2d63a 9207 else
6232543b
VS
9208 echo "$as_me:9208: checking for Windows headers" >&5
9209echo $ECHO_N "checking for Windows headers... $ECHO_C" >&6
9210
10f2d63a
VZ
9211ac_find_includes=
9212for ac_dir in $SEARCH_INCLUDE;
9213 do
9214 if test -f "$ac_dir/windows.h"; then
9215 ac_find_includes=$ac_dir
9216 break
9217 fi
9218 done
9219
9220 if test "$ac_find_includes" != "" ; then
6232543b
VS
9221 echo "$as_me:9221: result: found $ac_find_includes" >&5
9222echo "${ECHO_T}found $ac_find_includes" >&6
10f2d63a
VZ
9223 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9224 else
6232543b
VS
9225 echo "$as_me:9225: result: no" >&5
9226echo "${ECHO_T}no" >&6
9227 { { echo "$as_me:9227: error: please set CFLAGS to contain the location of windows.h" >&5
9228echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
9229 { (exit 1); exit 1; }; }
10f2d63a
VZ
9230 fi
9231 fi
9232
9233 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
9234 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
9235
f6bcfd97
BP
9236 if test "$wxUSE_ODBC" = "yes" ; then
9237 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9238 fi
9239
10f2d63a
VZ
9240 if test "$wxUSE_MINGW" = 1; then
9241 LDFLAGS="$LDFLAGS -mwindows"
9242 fi
9243
9244 TOOLKIT=MSW
10f2d63a 9245 GUIDIST=MSW_DIST
32832908
VZ
9246
9247 RCINCSWITCH="--include-dir"
9248 RCDEFSWITCH="--define"
9249 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
9250 RCINPUTSWITCH="-i"
9251 RCOUTPUTSWITCH="-o"
9252 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
9253
9254 RESPROGRAM="\$(RES_PROGRAM)"
9255
10f2d63a
VZ
9256fi
9257
9258if test "$wxUSE_GTK" = 1; then
6232543b
VS
9259
9260# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9261if test "${with_gtk_prefix+set}" = set; then
9262 withval="$with_gtk_prefix"
9263 gtk_config_prefix="$withval"
9264else
9265 gtk_config_prefix=""
6232543b 9266fi;
6f72b082
OK
9267
9268# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9269if test "${with_gtk_exec_prefix+set}" = set; then
9270 withval="$with_gtk_exec_prefix"
9271 gtk_config_exec_prefix="$withval"
9272else
9273 gtk_config_exec_prefix=""
6232543b 9274fi;
6f72b082
OK
9275# Check whether --enable-gtktest or --disable-gtktest was given.
9276if test "${enable_gtktest+set}" = set; then
9277 enableval="$enable_gtktest"
6232543b 9278
6f72b082
OK
9279else
9280 enable_gtktest=yes
6232543b 9281fi;
6f72b082
OK
9282
9283 for module in . gthread
9284 do
9285 case "$module" in
6232543b 9286 gthread)
6f72b082
OK
9287 gtk_config_args="$gtk_config_args gthread"
9288 ;;
9289 esac
9290 done
9291
9292 if test x$gtk_config_exec_prefix != x ; then
9293 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9294 if test x${GTK_CONFIG_2_0+set} != xset ; then
9295 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9296 fi
9297 fi
9298 if test x$gtk_config_prefix != x ; then
9299 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9300 if test x${GTK_CONFIG_2_0+set} != xset ; then
9301 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9302 fi
9303 fi
9304
9305 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9306set dummy gtk-config-2.0; ac_word=$2
6232543b
VS
9307echo "$as_me:9307: checking for $ac_word" >&5
9308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9309if test "${ac_cv_path_GTK_CONFIG_2_0+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
6f72b082 9311else
6232543b
VS
9312 case $GTK_CONFIG_2_0 in
9313 [\\/]* | ?:[\\/]*)
6f72b082
OK
9314 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9315 ;;
6f72b082 9316 *)
6232543b
VS
9317 ac_save_IFS=$IFS; IFS=$ac_path_separator
9318ac_dummy="$PATH"
9319for ac_dir in $ac_dummy; do
9320 IFS=$ac_save_IFS
9321 test -z "$ac_dir" && ac_dir=.
9322 if $as_executable_p "$ac_dir/$ac_word"; then
9323 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9324 echo "$as_me:9324: found $ac_dir/$ac_word" >&5
9325 break
9326fi
9327done
9328
6f72b082
OK
9329 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9330 ;;
9331esac
9332fi
6232543b
VS
9333GTK_CONFIG_2_0=$ac_cv_path_GTK_CONFIG_2_0
9334
6f72b082 9335if test -n "$GTK_CONFIG_2_0"; then
6232543b
VS
9336 echo "$as_me:9336: result: $GTK_CONFIG_2_0" >&5
9337echo "${ECHO_T}$GTK_CONFIG_2_0" >&6
6f72b082 9338else
6232543b
VS
9339 echo "$as_me:9339: result: no" >&5
9340echo "${ECHO_T}no" >&6
6f72b082
OK
9341fi
9342
9343 min_gtk_version=1.3.1
6232543b
VS
9344 echo "$as_me:9344: checking for GTK - version >= $min_gtk_version" >&5
9345echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
6f72b082
OK
9346 no_gtk=""
9347 if test "$GTK_CONFIG_2_0" = "no" ; then
9348 no_gtk=yes
9349 else
9350 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9351 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9352 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9353 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9354 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9355 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9356 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9358 if test "x$enable_gtktest" = "xyes" ; then
9359 ac_save_CFLAGS="$CFLAGS"
9360 ac_save_LIBS="$LIBS"
9361 CFLAGS="$CFLAGS $GTK_CFLAGS"
9362 LIBS="$GTK_LIBS $LIBS"
9363 rm -f conf.gtktest
9364 if test "$cross_compiling" = yes; then
9365 echo $ac_n "cross compiling; assumed OK... $ac_c"
9366else
6232543b
VS
9367 cat >conftest.$ac_ext <<_ACEOF
9368#line 9368 "configure"
6f72b082
OK
9369#include "confdefs.h"
9370
9371#include <gtk/gtk.h>
9372#include <stdio.h>
9373#include <stdlib.h>
9374
6232543b 9375int
6f72b082
OK
9376main ()
9377{
9378 int major, minor, micro;
9379 char *tmp_version;
9380
9381 system ("touch conf.gtktest");
9382
9383 /* HP/UX 9 (%@#!) writes to sscanf strings */
9384 tmp_version = g_strdup("$min_gtk_version");
9385 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9386 printf("%s, bad version string\n", "$min_gtk_version");
9387 exit(1);
9388 }
9389
9390 if ((gtk_major_version != $gtk_config_major_version) ||
9391 (gtk_minor_version != $gtk_config_minor_version) ||
9392 (gtk_micro_version != $gtk_config_micro_version))
9393 {
6232543b 9394 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9395 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9396 gtk_major_version, gtk_minor_version, gtk_micro_version);
9397 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9398 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9399 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9400 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9401 printf("*** required on your system.\n");
9402 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9403 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9404 printf("*** before re-running configure\n");
6232543b 9405 }
6f72b082
OK
9406#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9407 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9408 (gtk_minor_version != GTK_MINOR_VERSION) ||
9409 (gtk_micro_version != GTK_MICRO_VERSION))
9410 {
9411 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9412 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9413 printf("*** library (version %d.%d.%d)\n",
9414 gtk_major_version, gtk_minor_version, gtk_micro_version);
9415 }
9416#endif /* defined (GTK_MAJOR_VERSION) ... */
9417 else
9418 {
9419 if ((gtk_major_version > major) ||
9420 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9421 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9422 {
9423 return 0;
9424 }
9425 else
9426 {
9427 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9428 gtk_major_version, gtk_minor_version, gtk_micro_version);
9429 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9430 major, minor, micro);
9431 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9432 printf("***\n");
9433 printf("*** If you have already installed a sufficiently new version, this error\n");
9434 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9435 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9436 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9437 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9438 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9439 printf("*** so that the correct libraries are found at run-time))\n");
9440 }
9441 }
9442 return 1;
9443}
9444
6232543b
VS
9445_ACEOF
9446rm -f conftest$ac_exeext
9447if { (eval echo "$as_me:9447: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>&5
9449 ac_status=$?
9450 echo "$as_me:9450: \$? = $ac_status" >&5
9451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9452 { (eval echo "$as_me:9452: \"$ac_try\"") >&5
9453 (eval $ac_try) 2>&5
9454 ac_status=$?
9455 echo "$as_me:9455: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
6f72b082
OK
9457 :
9458else
6232543b
VS
9459 echo "$as_me: program exited with status $ac_status" >&5
9460echo "$as_me: failed program was:" >&5
9461cat conftest.$ac_ext >&5
9462no_gtk=yes
6f72b082 9463fi
6232543b 9464rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
6f72b082 9465fi
6f72b082
OK
9466 CFLAGS="$ac_save_CFLAGS"
9467 LIBS="$ac_save_LIBS"
9468 fi
9469 fi
9470 if test "x$no_gtk" = x ; then
6232543b
VS
9471 echo "$as_me:9471: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
9472echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
9473 WXGTK20=1
6f72b082 9474 else
6232543b
VS
9475 echo "$as_me:9475: result: no" >&5
9476echo "${ECHO_T}no" >&6
6f72b082
OK
9477 if test "$GTK_CONFIG_2_0" = "no" ; then
9478 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9479 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9480 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9481 echo "*** full path to gtk-config-2.0."
9482 else
9483 if test -f conf.gtktest ; then
9484 :
9485 else
9486 echo "*** Could not run GTK test program, checking why..."
9487 CFLAGS="$CFLAGS $GTK_CFLAGS"
9488 LIBS="$LIBS $GTK_LIBS"
6232543b
VS
9489 cat >conftest.$ac_ext <<_ACEOF
9490#line 9490 "configure"
6f72b082
OK
9491#include "confdefs.h"
9492
9493#include <gtk/gtk.h>
9494#include <stdio.h>
9495
6232543b
VS
9496int
9497main ()
9498{
9499 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9500 ;
9501 return 0;
9502}
9503_ACEOF
9504rm -f conftest.$ac_objext conftest$ac_exeext
9505if { (eval echo "$as_me:9505: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>&5
9507 ac_status=$?
9508 echo "$as_me:9508: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -s conftest$ac_exeext'
9511 { (eval echo "$as_me:9511: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:9514: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
6f72b082
OK
9516 echo "*** The test program compiled, but did not run. This usually means"
9517 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9518 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9519 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9520 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9521 echo "*** is required on your system"
9522 echo "***"
9523 echo "*** If you have an old version installed, it is best to remove it, although"
9524 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9525 echo "***"
9526 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9527 echo "*** came with the system with the command"
9528 echo "***"
6232543b 9529 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9530else
6232543b
VS
9531 echo "$as_me: failed program was:" >&5
9532cat conftest.$ac_ext >&5
9533 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9534 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9535 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
6232543b 9536 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9537fi
6232543b 9538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6f72b082
OK
9539 CFLAGS="$ac_save_CFLAGS"
9540 LIBS="$ac_save_LIBS"
9541 fi
9542 fi
9543 GTK_CFLAGS=""
9544 GTK_LIBS=""
6232543b 9545
10f2d63a
VZ
9546 if test x$gtk_config_exec_prefix != x ; then
9547 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9548 if test x${GTK_CONFIG+set} != xset ; then
9549 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9550 fi
9551 fi
9552 if test x$gtk_config_prefix != x ; then
9553 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9554 if test x${GTK_CONFIG+set} != xset ; then
9555 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9556 fi
9557 fi
9558
9559 # Extract the first word of "gtk-config", so it can be a program name with args.
9560set dummy gtk-config; ac_word=$2
6232543b
VS
9561echo "$as_me:9561: checking for $ac_word" >&5
9562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9563if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 9565else
6232543b
VS
9566 case $GTK_CONFIG in
9567 [\\/]* | ?:[\\/]*)
f6bcfd97
BP
9568 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9569 ;;
f6bcfd97 9570 *)
6232543b
VS
9571 ac_save_IFS=$IFS; IFS=$ac_path_separator
9572ac_dummy="$PATH"
9573for ac_dir in $ac_dummy; do
9574 IFS=$ac_save_IFS
9575 test -z "$ac_dir" && ac_dir=.
9576 if $as_executable_p "$ac_dir/$ac_word"; then
9577 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9578 echo "$as_me:9578: found $ac_dir/$ac_word" >&5
9579 break
9580fi
9581done
9582
f6bcfd97
BP
9583 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9584 ;;
9585esac
9586fi
6232543b
VS
9587GTK_CONFIG=$ac_cv_path_GTK_CONFIG
9588
f6bcfd97 9589if test -n "$GTK_CONFIG"; then
6232543b
VS
9590 echo "$as_me:9590: result: $GTK_CONFIG" >&5
9591echo "${ECHO_T}$GTK_CONFIG" >&6
f6bcfd97 9592else
6232543b
VS
9593 echo "$as_me:9593: result: no" >&5
9594echo "${ECHO_T}no" >&6
f6bcfd97
BP
9595fi
9596
9597 min_gtk_version=1.2.7
6232543b
VS
9598 echo "$as_me:9598: checking for GTK - version >= $min_gtk_version" >&5
9599echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
f6bcfd97
BP
9600 no_gtk=""
9601 if test "$GTK_CONFIG" != "no" ; then
9602 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9603 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9604 ac_save_CFLAGS="$CFLAGS"
9605 ac_save_LIBS="$LIBS"
9606 CFLAGS="$CFLAGS $GTK_CFLAGS"
9607 LIBS="$LIBS $GTK_LIBS"
9608 if test "$cross_compiling" = yes; then
9609 echo $ac_n "cross compiling; assumed OK... $ac_c"
9610else
6232543b
VS
9611 cat >conftest.$ac_ext <<_ACEOF
9612#line 9612 "configure"
f6bcfd97
BP
9613#include "confdefs.h"
9614
9615#include <gtk/gtk.h>
9616#include <gtk/gtkfeatures.h>
9617#include <stdio.h>
9618#include <stdlib.h>
9619
9620int
9621main ()
9622{
9623 int major, minor, micro;
9624
9625 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9626 printf("%s, bad version string\n", "$min_gtk_version");
9627 exit(1);
9628 }
9629
9630 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9631 (GTK_MINOR_VERSION != gtk_minor_version) ||
9632 (GTK_MICRO_VERSION != gtk_micro_version)) {
9633 printf("Headers vs. library version mismatch!\n");
9634 exit(1);
9635 }
9636
9637 if (gtk_minor_version == 1) return FALSE;
9638
9639 return !((gtk_major_version > major) ||
9640 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9641 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9642}
9643
6232543b
VS
9644_ACEOF
9645rm -f conftest$ac_exeext
9646if { (eval echo "$as_me:9646: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>&5
9648 ac_status=$?
9649 echo "$as_me:9649: \$? = $ac_status" >&5
9650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9651 { (eval echo "$as_me:9651: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:9654: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
f6bcfd97
BP
9656 :
9657else
6232543b
VS
9658 echo "$as_me: program exited with status $ac_status" >&5
9659echo "$as_me: failed program was:" >&5
9660cat conftest.$ac_ext >&5
9661no_gtk=yes
f6bcfd97 9662fi
6232543b 9663rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
f6bcfd97 9664fi
f6bcfd97
BP
9665 CFLAGS="$ac_save_CFLAGS"
9666 LIBS="$ac_save_LIBS"
9667 else
9668 no_gtk=yes
9669 fi
9670 if test "x$no_gtk" = x ; then
6232543b
VS
9671 echo "$as_me:9671: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
f6bcfd97
BP
9673 WXGTK127=1
9674 else
6232543b
VS
9675 echo "$as_me:9675: result: no" >&5
9676echo "${ECHO_T}no" >&6
f6bcfd97
BP
9677 GTK_CFLAGS=""
9678 GTK_LIBS=""
9679 :
9680 fi
f6bcfd97 9681
f6bcfd97
BP
9682 if test x$gtk_config_exec_prefix != x ; then
9683 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9684 if test x${GTK_CONFIG+set} != xset ; then
9685 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9686 fi
9687 fi
9688 if test x$gtk_config_prefix != x ; then
9689 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9690 if test x${GTK_CONFIG+set} != xset ; then
9691 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9692 fi
9693 fi
9694
9695 # Extract the first word of "gtk-config", so it can be a program name with args.
9696set dummy gtk-config; ac_word=$2
6232543b
VS
9697echo "$as_me:9697: checking for $ac_word" >&5
9698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9699if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 9701else
6232543b
VS
9702 case $GTK_CONFIG in
9703 [\\/]* | ?:[\\/]*)
10f2d63a
VZ
9704 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9705 ;;
10f2d63a 9706 *)
6232543b
VS
9707 ac_save_IFS=$IFS; IFS=$ac_path_separator
9708ac_dummy="$PATH"
9709for ac_dir in $ac_dummy; do
9710 IFS=$ac_save_IFS
9711 test -z "$ac_dir" && ac_dir=.
9712 if $as_executable_p "$ac_dir/$ac_word"; then
9713 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9714 echo "$as_me:9714: found $ac_dir/$ac_word" >&5
9715 break
9716fi
9717done
9718
10f2d63a
VZ
9719 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9720 ;;
9721esac
9722fi
6232543b
VS
9723GTK_CONFIG=$ac_cv_path_GTK_CONFIG
9724
10f2d63a 9725if test -n "$GTK_CONFIG"; then
6232543b
VS
9726 echo "$as_me:9726: result: $GTK_CONFIG" >&5
9727echo "${ECHO_T}$GTK_CONFIG" >&6
10f2d63a 9728else
6232543b
VS
9729 echo "$as_me:9729: result: no" >&5
9730echo "${ECHO_T}no" >&6
10f2d63a
VZ
9731fi
9732
04165bec 9733 min_gtk_version=1.2.3
6232543b
VS
9734 echo "$as_me:9734: checking for GTK - version >= $min_gtk_version" >&5
9735echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
10f2d63a
VZ
9736 no_gtk=""
9737 if test "$GTK_CONFIG" != "no" ; then
9738 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9739 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9740 ac_save_CFLAGS="$CFLAGS"
9741 ac_save_LIBS="$LIBS"
9742 CFLAGS="$CFLAGS $GTK_CFLAGS"
9743 LIBS="$LIBS $GTK_LIBS"
9744 if test "$cross_compiling" = yes; then
9745 echo $ac_n "cross compiling; assumed OK... $ac_c"
9746else
6232543b
VS
9747 cat >conftest.$ac_ext <<_ACEOF
9748#line 9748 "configure"
10f2d63a
VZ
9749#include "confdefs.h"
9750
9751#include <gtk/gtk.h>
f49f2b0c 9752#include <gtk/gtkfeatures.h>
10f2d63a 9753#include <stdio.h>
32832908 9754#include <stdlib.h>
10f2d63a
VZ
9755
9756int
9757main ()
9758{
9759 int major, minor, micro;
9760
9761 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9762 printf("%s, bad version string\n", "$min_gtk_version");
9763 exit(1);
9764 }
9765
f49f2b0c
RR
9766 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9767 (GTK_MINOR_VERSION != gtk_minor_version) ||
9768 (GTK_MICRO_VERSION != gtk_micro_version)) {
9769 printf("Headers vs. library version mismatch!\n");
9770 exit(1);
9771 }
9772
10f2d63a
VZ
9773 if (gtk_minor_version == 1) return FALSE;
9774
9775 return !((gtk_major_version > major) ||
9776 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9777 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9778}
9779
6232543b
VS
9780_ACEOF
9781rm -f conftest$ac_exeext
9782if { (eval echo "$as_me:9782: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>&5
9784 ac_status=$?
9785 echo "$as_me:9785: \$? = $ac_status" >&5
9786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9787 { (eval echo "$as_me:9787: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:9790: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
10f2d63a
VZ
9792 :
9793else
6232543b
VS
9794 echo "$as_me: program exited with status $ac_status" >&5
9795echo "$as_me: failed program was:" >&5
9796cat conftest.$ac_ext >&5
9797no_gtk=yes
10f2d63a 9798fi
6232543b 9799rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10f2d63a 9800fi
10f2d63a
VZ
9801 CFLAGS="$ac_save_CFLAGS"
9802 LIBS="$ac_save_LIBS"
9803 else
9804 no_gtk=yes
9805 fi
9806 if test "x$no_gtk" = x ; then
6232543b
VS
9807 echo "$as_me:9807: result: yes" >&5
9808echo "${ECHO_T}yes" >&6
10f2d63a
VZ
9809 WXGTK12=1
9810 else
6232543b
VS
9811 echo "$as_me:9811: result: no" >&5
9812echo "${ECHO_T}no" >&6
10f2d63a
VZ
9813 GTK_CFLAGS=""
9814 GTK_LIBS=""
7e99ad86 9815 :
10f2d63a 9816 fi
10f2d63a 9817
6f72b082 9818 fi
6f72b082 9819
6232543b 9820 rm -f conf.gtktest
10f2d63a 9821
6f72b082 9822 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
6232543b
VS
9823 { { echo "$as_me:9823: error:
9824 Please check that gtk-config is in path, the directory
9825 where GTK+ libraries are installed (returned by
9826 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9827 equivalent variable and GTK+ is version 1.2.3 or above.
9828 " >&5
9829echo "$as_me: error:
7e99ad86
VZ
9830 Please check that gtk-config is in path, the directory
9831 where GTK+ libraries are installed (returned by
9832 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9833 equivalent variable and GTK+ is version 1.2.3 or above.
6232543b
VS
9834 " >&2;}
9835 { (exit 1); exit 1; }; }
7e99ad86
VZ
9836 fi
9837
10f2d63a 9838 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a 9839
2224580a
VZ
9840 GUI_TK_LIBRARY="$GTK_LIBS"
9841
dad6c0ea 9842 AFMINSTALL=afminstall
9ad43c8b 9843 TOOLKIT=GTK
10f2d63a 9844 GUIDIST=GTK_DIST
7ec2881a 9845
6232543b
VS
9846 echo "$as_me:9846: checking for gdk_im_open in -lgdk" >&5
9847echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
9848if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
7ec2881a 9850else
6232543b 9851 ac_check_lib_save_LIBS=$LIBS
7ec2881a 9852LIBS="-lgdk $LIBS"
6232543b
VS
9853cat >conftest.$ac_ext <<_ACEOF
9854#line 9854 "configure"
7ec2881a 9855#include "confdefs.h"
6232543b 9856
7ec2881a 9857/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
9858#ifdef __cplusplus
9859extern "C"
9860#endif
7ec2881a 9861/* We use char because int might match the return type of a gcc2
6232543b
VS
9862 builtin and then its argument prototype would still apply. */
9863char gdk_im_open ();
9864int
9865main ()
9866{
9867gdk_im_open ();
9868 ;
9869 return 0;
9870}
9871_ACEOF
9872rm -f conftest.$ac_objext conftest$ac_exeext
9873if { (eval echo "$as_me:9873: \"$ac_link\"") >&5
9874 (eval $ac_link) 2>&5
9875 ac_status=$?
9876 echo "$as_me:9876: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (eval echo "$as_me:9879: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:9882: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_lib_gdk_gdk_im_open=yes
9885else
9886 echo "$as_me: failed program was:" >&5
9887cat conftest.$ac_ext >&5
9888ac_cv_lib_gdk_gdk_im_open=no
9889fi
9890rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9891LIBS=$ac_check_lib_save_LIBS
9892fi
9893echo "$as_me:9893: result: $ac_cv_lib_gdk_gdk_im_open" >&5
9894echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
9895if test $ac_cv_lib_gdk_gdk_im_open = yes; then
9896 cat >>confdefs.h <<\EOF
7ec2881a
RR
9897#define HAVE_XIM 1
9898EOF
9899
7ec2881a
RR
9900fi
9901
10f2d63a
VZ
9902fi
9903
9904if test "$wxUSE_WINE" = 1; then
6232543b
VS
9905 echo "$as_me:9905: checking for WINE includes" >&5
9906echo $ECHO_N "checking for WINE includes... $ECHO_C" >&6
9907
10f2d63a
VZ
9908ac_find_includes=
9909for ac_dir in $SEARCH_INCLUDE;
9910 do
9911 if test -f "$ac_dir/windows.h"; then
9912 ac_find_includes=$ac_dir
9913 break
9914 fi
9915 done
9916
9917 if test "$ac_find_includes" != "" ; then
6232543b
VS
9918 echo "$as_me:9918: result: found $ac_find_includes" >&5
9919echo "${ECHO_T}found $ac_find_includes" >&6
10f2d63a
VZ
9920 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9921 else
6232543b
VS
9922 echo "$as_me:9922: result: no" >&5
9923echo "${ECHO_T}no" >&6
9924 { { echo "$as_me:9924: error: please set CFLAGS to contain the location of windows.h" >&5
9925echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
9926 { (exit 1); exit 1; }; }
10f2d63a
VZ
9927 fi
9928
9929 XPM_LINK=""
6232543b
VS
9930 echo "$as_me:9930: checking for Xpm library" >&5
9931echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
9932
10f2d63a
VZ
9933ac_find_libraries=
9934for ac_dir in $SEARCH_LIB;
9935 do
9936 for ac_extension in a so sl; do
9937 if test -f "$ac_dir/libXpm.$ac_extension"; then
9938 ac_find_libraries=$ac_dir
9939 break 2
9940 fi
9941 done
9942 done
9943
9944 if test "$ac_find_libraries" != "" ; then
9945 GUI_TK_LIBRARY="-L$ac_find_libraries"
9946 XPM_LINK="-lXpm"
6232543b 9947 cat >>confdefs.h <<\EOF
10f2d63a
VZ
9948#define wxHAVE_LIB_XPM 1
9949EOF
9950
6232543b
VS
9951 echo "$as_me:9951: result: found at $ac_find_libraries" >&5
9952echo "${ECHO_T}found at $ac_find_libraries" >&6
10f2d63a 9953 else
6232543b
VS
9954 echo "$as_me:9954: result: no" >&5
9955echo "${ECHO_T}no" >&6
9956 { echo "$as_me:9956: WARNING: library will be compiled without support for images in XPM format" >&5
9957echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
10f2d63a
VZ
9958 fi
9959
9960 MESA_LINK=""
6232543b
VS
9961 echo "$as_me:9961: checking for Mesa library" >&5
9962echo $ECHO_N "checking for Mesa library... $ECHO_C" >&6
9963
10f2d63a
VZ
9964ac_find_libraries=
9965for ac_dir in $SEARCH_LIB;
9966 do
9967 for ac_extension in a so sl; do
9968 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9969 ac_find_libraries=$ac_dir
9970 break 2
9971 fi
9972 done
9973 done
9974
9975 if test "$ac_find_libraries" != "" ; then
9976 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9977 MESA_LINK="-lMesaGL"
6232543b
VS
9978 echo "$as_me:9978: result: found at $ac_find_libraries" >&5
9979echo "${ECHO_T}found at $ac_find_libraries" >&6
10f2d63a 9980 else
6232543b
VS
9981 { { echo "$as_me:9981: error: no" >&5
9982echo "$as_me: error: no" >&2;}
9983 { (exit 1); exit 1; }; }
10f2d63a
VZ
9984 fi
9985
8916026b 9986 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
9987 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9988 WXWINE=1
9989 TOOLKIT=MSW
10f2d63a
VZ
9990 GUIDIST=MSW_DIST
9991fi
9992
6232543b
VS
9993echo "$as_me:9993: checking for X" >&5
9994echo $ECHO_N "checking for X... $ECHO_C" >&6
ab9b9eab
VZ
9995
9996# Check whether --with-x or --without-x was given.
9997if test "${with_x+set}" = set; then
9998 withval="$with_x"
ba337fe7 9999
6232543b 10000fi;
ab9b9eab
VZ
10001# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10002if test "x$with_x" = xno; then
10003 # The user explicitly disabled X.
10004 have_x=disabled
10005else
10006 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10007 # Both variables are already set.
10008 have_x=yes
10009 else
6232543b
VS
10010 if test "${ac_cv_have_x+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab
VZ
10012else
10013 # One or both of the vars are not set, and there is no cached value.
6232543b
VS
10014ac_x_includes=no ac_x_libraries=no
10015rm -fr conftest.dir
10016if mkdir conftest.dir; then
10017 cd conftest.dir
ab9b9eab 10018 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6232543b 10019 cat >Imakefile <<'EOF'
ab9b9eab
VZ
10020acfindx:
10021 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10022EOF
10023 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10025 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10026 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 10027 for ac_extension in a so sl; do
ab9b9eab 10028 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6232543b 10029 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 10030 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
10031 fi
10032 done
ab9b9eab
VZ
10033 # Screen out bogus values from the imake configuration. They are
10034 # bogus both because they are the default anyway, and because
10035 # using them would break gcc on systems where it needs fixed includes.
6232543b 10036 case $ac_im_incroot in
ab9b9eab 10037 /usr/include) ;;
6232543b 10038 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
ab9b9eab 10039 esac
6232543b 10040 case $ac_im_usrlibdir in
ab9b9eab 10041 /usr/lib | /lib) ;;
6232543b 10042 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
ab9b9eab 10043 esac
ba337fe7 10044 fi
ab9b9eab 10045 cd ..
6232543b 10046 rm -fr conftest.dir
ab9b9eab 10047fi
10f2d63a 10048
6232543b
VS
10049# Standard set of common directories for X headers.
10050# Check X11 before X11Rn because it is often a symlink to the current release.
10051ac_x_header_dirs='
10052/usr/X11/include
10053/usr/X11R6/include
10054/usr/X11R5/include
10055/usr/X11R4/include
10056
10057/usr/include/X11
10058/usr/include/X11R6
10059/usr/include/X11R5
10060/usr/include/X11R4
10061
10062/usr/local/X11/include
10063/usr/local/X11R6/include
10064/usr/local/X11R5/include
10065/usr/local/X11R4/include
10066
10067/usr/local/include/X11
10068/usr/local/include/X11R6
10069/usr/local/include/X11R5
10070/usr/local/include/X11R4
10071
10072/usr/X386/include
10073/usr/x386/include
10074/usr/XFree86/include/X11
10075
10076/usr/include
10077/usr/local/include
10078/usr/unsupported/include
10079/usr/athena/include
10080/usr/local/x11r5/include
10081/usr/lpp/Xamples/include
10082
10083/usr/openwin/include
10084/usr/openwin/share/include'
10085
10086if test "$ac_x_includes" = no; then
10087 # Guess where to find include files, by looking for Intrinsic.h.
ab9b9eab 10088 # First, try using that file with no special directory specified.
6232543b
VS
10089 cat >conftest.$ac_ext <<_ACEOF
10090#line 10090 "configure"
ab9b9eab 10091#include "confdefs.h"
6232543b
VS
10092#include <X11/Intrinsic.h>
10093_ACEOF
10094if { (eval echo "$as_me:10094: \"$ac_cpp conftest.$ac_ext\"") >&5
10095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10096 ac_status=$?
10097 egrep -v '^ *\+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
10100 echo "$as_me:10100: \$? = $ac_status" >&5
10101 (exit $ac_status); } >/dev/null; then
10102 if test -s conftest.err; then
10103 ac_cpp_err=$ac_c_preproc_warn_flag
10104 else
10105 ac_cpp_err=
10106 fi
10107else
10108 ac_cpp_err=yes
10109fi
10110if test -z "$ac_cpp_err"; then
ab9b9eab
VZ
10111 # We can compile using X headers with no special include directory.
10112ac_x_includes=
10113else
6232543b 10114 echo "$as_me: failed program was:" >&5
ab9b9eab 10115 cat conftest.$ac_ext >&5
6232543b
VS
10116 for ac_dir in $ac_x_header_dirs; do
10117 if test -r "$ac_dir/X11/Intrinsic.h"; then
10118 ac_x_includes=$ac_dir
10119 break
10120 fi
10121done
ab9b9eab 10122fi
6232543b
VS
10123rm -f conftest.err conftest.$ac_ext
10124fi # $ac_x_includes = no
10f2d63a 10125
6232543b 10126if test "$ac_x_libraries" = no; then
ab9b9eab 10127 # Check for the libraries.
ab9b9eab
VZ
10128 # See if we find them without any special options.
10129 # Don't add to $LIBS permanently.
6232543b
VS
10130 ac_save_LIBS=$LIBS
10131 LIBS="-lXt $LIBS"
10132 cat >conftest.$ac_ext <<_ACEOF
10133#line 10133 "configure"
ab9b9eab 10134#include "confdefs.h"
6232543b
VS
10135#include <X11/Intrinsic.h>
10136int
10137main ()
10138{
10139XtMalloc (0)
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (eval echo "$as_me:10145: \"$ac_link\"") >&5
10146 (eval $ac_link) 2>&5
10147 ac_status=$?
10148 echo "$as_me:10148: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (eval echo "$as_me:10151: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:10154: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 LIBS=$ac_save_LIBS
ab9b9eab
VZ
10157# We can link X programs with no special library path.
10158ac_x_libraries=
10159else
6232543b
VS
10160 echo "$as_me: failed program was:" >&5
10161cat conftest.$ac_ext >&5
10162LIBS=$ac_save_LIBS
10163for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
ab9b9eab 10164do
6232543b 10165 # Don't even attempt the hair of trying to link an X program!
ab9b9eab 10166 for ac_extension in a so sl; do
6232543b 10167 if test -r $ac_dir/libXt.$ac_extension; then
ab9b9eab
VZ
10168 ac_x_libraries=$ac_dir
10169 break 2
10f2d63a 10170 fi
10f2d63a 10171 done
ab9b9eab
VZ
10172done
10173fi
6232543b
VS
10174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10175fi # $ac_x_libraries = no
10f2d63a 10176
6232543b 10177if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
ab9b9eab
VZ
10178 # Didn't find X anywhere. Cache the known absence of X.
10179 ac_cv_have_x="have_x=no"
10180else
10181 # Record where we found X for the cache.
10182 ac_cv_have_x="have_x=yes \
10183 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10184fi
10185fi
6232543b 10186
10f2d63a 10187 fi
ab9b9eab
VZ
10188 eval "$ac_cv_have_x"
10189fi # $with_x != no
10f2d63a 10190
ab9b9eab 10191if test "$have_x" != yes; then
6232543b
VS
10192 echo "$as_me:10192: result: $have_x" >&5
10193echo "${ECHO_T}$have_x" >&6
ab9b9eab
VZ
10194 no_x=yes
10195else
10196 # If each of the values was on the command line, it overrides each guess.
10197 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10198 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10199 # Update the cache value to reflect the command line values.
10200 ac_cv_have_x="have_x=yes \
10201 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6232543b
VS
10202 echo "$as_me:10202: result: libraries $x_libraries, headers $x_includes" >&5
10203echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
ab9b9eab 10204fi
10f2d63a 10205
ab9b9eab
VZ
10206if test "$no_x" = yes; then
10207 # Not all programs may use this symbol, but it does not hurt to define it.
6232543b
VS
10208
10209cat >>confdefs.h <<\EOF
ab9b9eab
VZ
10210#define X_DISPLAY_MISSING 1
10211EOF
10f2d63a 10212
ab9b9eab
VZ
10213 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10214else
10215 if test -n "$x_includes"; then
10216 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10217 fi
10218
ab9b9eab
VZ
10219 # It would also be nice to do this for all -L options, not just this one.
10220 if test -n "$x_libraries"; then
10221 X_LIBS="$X_LIBS -L$x_libraries"
10222 # For Solaris; some versions of Sun CC require a space after -R and
10223 # others require no space. Words are not sufficient . . . .
6232543b 10224 case `(uname -sr) 2>/dev/null` in
ab9b9eab 10225 "SunOS 5"*)
6232543b
VS
10226 echo "$as_me:10226: checking whether -R must be followed by a space" >&5
10227echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10228 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10229 cat >conftest.$ac_ext <<_ACEOF
10230#line 10230 "configure"
ab9b9eab 10231#include "confdefs.h"
10f2d63a 10232
6232543b
VS
10233int
10234main ()
10235{
788deba1 10236
6232543b
VS
10237 ;
10238 return 0;
10239}
10240_ACEOF
10241rm -f conftest.$ac_objext conftest$ac_exeext
10242if { (eval echo "$as_me:10242: \"$ac_link\"") >&5
10243 (eval $ac_link) 2>&5
10244 ac_status=$?
10245 echo "$as_me:10245: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (eval echo "$as_me:10248: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:10251: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
ab9b9eab
VZ
10253 ac_R_nospace=yes
10254else
6232543b
VS
10255 echo "$as_me: failed program was:" >&5
10256cat conftest.$ac_ext >&5
10257ac_R_nospace=no
ab9b9eab 10258fi
6232543b 10259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ab9b9eab 10260 if test $ac_R_nospace = yes; then
6232543b
VS
10261 echo "$as_me:10261: result: no" >&5
10262echo "${ECHO_T}no" >&6
ab9b9eab
VZ
10263 X_LIBS="$X_LIBS -R$x_libraries"
10264 else
10265 LIBS="$ac_xsave_LIBS -R $x_libraries"
6232543b
VS
10266 cat >conftest.$ac_ext <<_ACEOF
10267#line 10267 "configure"
ab9b9eab 10268#include "confdefs.h"
788deba1 10269
6232543b
VS
10270int
10271main ()
10272{
ab9b9eab 10273
6232543b
VS
10274 ;
10275 return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext conftest$ac_exeext
10279if { (eval echo "$as_me:10279: \"$ac_link\"") >&5
10280 (eval $ac_link) 2>&5
10281 ac_status=$?
10282 echo "$as_me:10282: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -s conftest$ac_exeext'
10285 { (eval echo "$as_me:10285: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:10288: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
ab9b9eab
VZ
10290 ac_R_space=yes
10291else
6232543b
VS
10292 echo "$as_me: failed program was:" >&5
10293cat conftest.$ac_ext >&5
10294ac_R_space=no
ab9b9eab 10295fi
6232543b 10296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ab9b9eab 10297 if test $ac_R_space = yes; then
6232543b
VS
10298 echo "$as_me:10298: result: yes" >&5
10299echo "${ECHO_T}yes" >&6
ab9b9eab
VZ
10300 X_LIBS="$X_LIBS -R $x_libraries"
10301 else
6232543b
VS
10302 echo "$as_me:10302: result: neither works" >&5
10303echo "${ECHO_T}neither works" >&6
ab9b9eab
VZ
10304 fi
10305 fi
6232543b 10306 LIBS=$ac_xsave_LIBS
ab9b9eab
VZ
10307 esac
10308 fi
10309
10310 # Check for system-dependent libraries X programs must link with.
10311 # Do this before checking for the system-independent R6 libraries
10312 # (-lICE), since we may need -lsocket or whatever for X linking.
10313
10314 if test "$ISC" = yes; then
10315 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10316 else
6232543b
VS
10317 # Martyn Johnson says this is needed for Ultrix, if the X
10318 # libraries were built with DECnet support. And Karl Berry says
ab9b9eab 10319 # the Alpha needs dnet_stub (dnet does not exist).
6232543b
VS
10320 echo "$as_me:10320: checking for dnet_ntoa in -ldnet" >&5
10321echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10322if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10324else
6232543b 10325 ac_check_lib_save_LIBS=$LIBS
ab9b9eab 10326LIBS="-ldnet $LIBS"
6232543b
VS
10327cat >conftest.$ac_ext <<_ACEOF
10328#line 10328 "configure"
ab9b9eab 10329#include "confdefs.h"
6232543b 10330
ab9b9eab 10331/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10332#ifdef __cplusplus
10333extern "C"
10334#endif
ab9b9eab 10335/* We use char because int might match the return type of a gcc2
6232543b
VS
10336 builtin and then its argument prototype would still apply. */
10337char dnet_ntoa ();
10338int
10339main ()
10340{
10341dnet_ntoa ();
10342 ;
10343 return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext conftest$ac_exeext
10347if { (eval echo "$as_me:10347: \"$ac_link\"") >&5
10348 (eval $ac_link) 2>&5
10349 ac_status=$?
10350 echo "$as_me:10350: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:10353: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:10356: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_lib_dnet_dnet_ntoa=yes
10359else
10360 echo "$as_me: failed program was:" >&5
10361cat conftest.$ac_ext >&5
10362ac_cv_lib_dnet_dnet_ntoa=no
10363fi
10364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10365LIBS=$ac_check_lib_save_LIBS
10366fi
10367echo "$as_me:10367: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10368echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10369if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
ab9b9eab 10370 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
ab9b9eab
VZ
10371fi
10372
10373 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6232543b
VS
10374 echo "$as_me:10374: checking for dnet_ntoa in -ldnet_stub" >&5
10375echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10376if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10378else
6232543b 10379 ac_check_lib_save_LIBS=$LIBS
ab9b9eab 10380LIBS="-ldnet_stub $LIBS"
6232543b
VS
10381cat >conftest.$ac_ext <<_ACEOF
10382#line 10382 "configure"
ab9b9eab 10383#include "confdefs.h"
6232543b 10384
ab9b9eab 10385/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10386#ifdef __cplusplus
10387extern "C"
10388#endif
ab9b9eab 10389/* We use char because int might match the return type of a gcc2
6232543b
VS
10390 builtin and then its argument prototype would still apply. */
10391char dnet_ntoa ();
10392int
10393main ()
10394{
10395dnet_ntoa ();
10396 ;
10397 return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext conftest$ac_exeext
10401if { (eval echo "$as_me:10401: \"$ac_link\"") >&5
10402 (eval $ac_link) 2>&5
10403 ac_status=$?
10404 echo "$as_me:10404: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:10407: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:10410: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10413else
10414 echo "$as_me: failed program was:" >&5
10415cat conftest.$ac_ext >&5
10416ac_cv_lib_dnet_stub_dnet_ntoa=no
10417fi
10418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10419LIBS=$ac_check_lib_save_LIBS
10420fi
10421echo "$as_me:10421: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10422echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10423if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
ab9b9eab 10424 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
ab9b9eab
VZ
10425fi
10426
10427 fi
10428
10429 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10430 # to get the SysV transport functions.
6232543b 10431 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10432 # needs -lnsl.
10433 # The nsl library prevents programs from opening the X display
6232543b
VS
10434 # on Irix 5.2, according to T.E. Dickey.
10435 # The functions gethostbyname, getservbyname, and inet_addr are
10436 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10437 echo "$as_me:10437: checking for gethostbyname" >&5
10438echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10439if test "${ac_cv_func_gethostbyname+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442 cat >conftest.$ac_ext <<_ACEOF
10443#line 10443 "configure"
ab9b9eab
VZ
10444#include "confdefs.h"
10445/* System header to define __stub macros and hopefully few prototypes,
6232543b 10446 which can conflict with char gethostbyname (); below. */
ab9b9eab
VZ
10447#include <assert.h>
10448/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10449#ifdef __cplusplus
10450extern "C"
10451#endif
ab9b9eab 10452/* We use char because int might match the return type of a gcc2
6232543b
VS
10453 builtin and then its argument prototype would still apply. */
10454char gethostbyname ();
10455char (*f) ();
ab9b9eab 10456
6232543b
VS
10457int
10458main ()
10459{
ab9b9eab
VZ
10460/* The GNU C library defines this for functions which it implements
10461 to always fail with ENOSYS. Some functions are actually named
10462 something starting with __ and the normal name is an alias. */
10463#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10464choke me
10465#else
6232543b 10466f = gethostbyname;
ab9b9eab
VZ
10467#endif
10468
6232543b
VS
10469 ;
10470 return 0;
10471}
10472_ACEOF
10473rm -f conftest.$ac_objext conftest$ac_exeext
10474if { (eval echo "$as_me:10474: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>&5
10476 ac_status=$?
10477 echo "$as_me:10477: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -s conftest$ac_exeext'
10480 { (eval echo "$as_me:10480: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:10483: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_func_gethostbyname=yes
10486else
10487 echo "$as_me: failed program was:" >&5
10488cat conftest.$ac_ext >&5
10489ac_cv_func_gethostbyname=no
10490fi
10491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10492fi
10493echo "$as_me:10493: result: $ac_cv_func_gethostbyname" >&5
10494echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
ab9b9eab
VZ
10495
10496 if test $ac_cv_func_gethostbyname = no; then
6232543b
VS
10497 echo "$as_me:10497: checking for gethostbyname in -lnsl" >&5
10498echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10499if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10501else
6232543b 10502 ac_check_lib_save_LIBS=$LIBS
ab9b9eab 10503LIBS="-lnsl $LIBS"
6232543b
VS
10504cat >conftest.$ac_ext <<_ACEOF
10505#line 10505 "configure"
ab9b9eab 10506#include "confdefs.h"
6232543b 10507
ab9b9eab 10508/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10509#ifdef __cplusplus
10510extern "C"
10511#endif
ab9b9eab 10512/* We use char because int might match the return type of a gcc2
6232543b
VS
10513 builtin and then its argument prototype would still apply. */
10514char gethostbyname ();
10515int
10516main ()
10517{
10518gethostbyname ();
10519 ;
10520 return 0;
10521}
10522_ACEOF
10523rm -f conftest.$ac_objext conftest$ac_exeext
10524if { (eval echo "$as_me:10524: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>&5
10526 ac_status=$?
10527 echo "$as_me:10527: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest$ac_exeext'
10530 { (eval echo "$as_me:10530: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:10533: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_cv_lib_nsl_gethostbyname=yes
10536else
10537 echo "$as_me: failed program was:" >&5
10538cat conftest.$ac_ext >&5
10539ac_cv_lib_nsl_gethostbyname=no
10540fi
10541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10542LIBS=$ac_check_lib_save_LIBS
10543fi
10544echo "$as_me:10544: result: $ac_cv_lib_nsl_gethostbyname" >&5
10545echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10546if test $ac_cv_lib_nsl_gethostbyname = yes; then
10547 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
ab9b9eab 10548fi
ab9b9eab 10549
6232543b
VS
10550 if test $ac_cv_lib_nsl_gethostbyname = no; then
10551 echo "$as_me:10551: checking for gethostbyname in -lbsd" >&5
10552echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10553if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10555else
6232543b
VS
10556 ac_check_lib_save_LIBS=$LIBS
10557LIBS="-lbsd $LIBS"
10558cat >conftest.$ac_ext <<_ACEOF
10559#line 10559 "configure"
10560#include "confdefs.h"
10561
10562/* Override any gcc2 internal prototype to avoid an error. */
10563#ifdef __cplusplus
10564extern "C"
10565#endif
10566/* We use char because int might match the return type of a gcc2
10567 builtin and then its argument prototype would still apply. */
10568char gethostbyname ();
10569int
10570main ()
10571{
10572gethostbyname ();
10573 ;
10574 return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext conftest$ac_exeext
10578if { (eval echo "$as_me:10578: \"$ac_link\"") >&5
10579 (eval $ac_link) 2>&5
10580 ac_status=$?
10581 echo "$as_me:10581: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (eval echo "$as_me:10584: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:10587: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_lib_bsd_gethostbyname=yes
10590else
10591 echo "$as_me: failed program was:" >&5
10592cat conftest.$ac_ext >&5
10593ac_cv_lib_bsd_gethostbyname=no
10594fi
10595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10596LIBS=$ac_check_lib_save_LIBS
10597fi
10598echo "$as_me:10598: result: $ac_cv_lib_bsd_gethostbyname" >&5
10599echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10600if test $ac_cv_lib_bsd_gethostbyname = yes; then
10601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
ab9b9eab
VZ
10602fi
10603
6232543b 10604 fi
ab9b9eab
VZ
10605 fi
10606
10607 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10608 # socket/setsockopt and other routines are undefined under SCO ODT
10609 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6232543b
VS
10610 # on later versions), says Simon Leinen: it contains gethostby*
10611 # variants that don't use the nameserver (or something). -lsocket
10612 # must be given before -lnsl if both are needed. We assume that
10613 # if connect needs -lnsl, so does gethostbyname.
10614 echo "$as_me:10614: checking for connect" >&5
10615echo $ECHO_N "checking for connect... $ECHO_C" >&6
10616if test "${ac_cv_func_connect+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618else
10619 cat >conftest.$ac_ext <<_ACEOF
10620#line 10620 "configure"
ab9b9eab
VZ
10621#include "confdefs.h"
10622/* System header to define __stub macros and hopefully few prototypes,
6232543b 10623 which can conflict with char connect (); below. */
ab9b9eab
VZ
10624#include <assert.h>
10625/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10626#ifdef __cplusplus
10627extern "C"
10628#endif
ab9b9eab 10629/* We use char because int might match the return type of a gcc2
6232543b
VS
10630 builtin and then its argument prototype would still apply. */
10631char connect ();
10632char (*f) ();
ab9b9eab 10633
6232543b
VS
10634int
10635main ()
10636{
ab9b9eab
VZ
10637/* The GNU C library defines this for functions which it implements
10638 to always fail with ENOSYS. Some functions are actually named
10639 something starting with __ and the normal name is an alias. */
10640#if defined (__stub_connect) || defined (__stub___connect)
10641choke me
10642#else
6232543b 10643f = connect;
ab9b9eab
VZ
10644#endif
10645
6232543b
VS
10646 ;
10647 return 0;
10648}
10649_ACEOF
10650rm -f conftest.$ac_objext conftest$ac_exeext
10651if { (eval echo "$as_me:10651: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>&5
10653 ac_status=$?
10654 echo "$as_me:10654: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -s conftest$ac_exeext'
10657 { (eval echo "$as_me:10657: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:10660: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_func_connect=yes
10663else
10664 echo "$as_me: failed program was:" >&5
10665cat conftest.$ac_ext >&5
10666ac_cv_func_connect=no
10667fi
10668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10669fi
10670echo "$as_me:10670: result: $ac_cv_func_connect" >&5
10671echo "${ECHO_T}$ac_cv_func_connect" >&6
ab9b9eab
VZ
10672
10673 if test $ac_cv_func_connect = no; then
6232543b
VS
10674 echo "$as_me:10674: checking for connect in -lsocket" >&5
10675echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10676if test "${ac_cv_lib_socket_connect+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10678else
6232543b 10679 ac_check_lib_save_LIBS=$LIBS
ab9b9eab 10680LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6232543b
VS
10681cat >conftest.$ac_ext <<_ACEOF
10682#line 10682 "configure"
ab9b9eab 10683#include "confdefs.h"
6232543b 10684
ab9b9eab 10685/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10686#ifdef __cplusplus
10687extern "C"
10688#endif
ab9b9eab 10689/* We use char because int might match the return type of a gcc2
6232543b
VS
10690 builtin and then its argument prototype would still apply. */
10691char connect ();
10692int
10693main ()
10694{
10695connect ();
10696 ;
10697 return 0;
10698}
10699_ACEOF
10700rm -f conftest.$ac_objext conftest$ac_exeext
10701if { (eval echo "$as_me:10701: \"$ac_link\"") >&5
10702 (eval $ac_link) 2>&5
10703 ac_status=$?
10704 echo "$as_me:10704: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -s conftest$ac_exeext'
10707 { (eval echo "$as_me:10707: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10709 ac_status=$?
10710 echo "$as_me:10710: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_cv_lib_socket_connect=yes
10713else
10714 echo "$as_me: failed program was:" >&5
10715cat conftest.$ac_ext >&5
10716ac_cv_lib_socket_connect=no
10717fi
10718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10719LIBS=$ac_check_lib_save_LIBS
10720fi
10721echo "$as_me:10721: result: $ac_cv_lib_socket_connect" >&5
10722echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10723if test $ac_cv_lib_socket_connect = yes; then
ab9b9eab 10724 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ab9b9eab
VZ
10725fi
10726
10727 fi
10728
6232543b
VS
10729 # Guillermo Gomez says -lposix is necessary on A/UX.
10730 echo "$as_me:10730: checking for remove" >&5
10731echo $ECHO_N "checking for remove... $ECHO_C" >&6
10732if test "${ac_cv_func_remove+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10734else
6232543b
VS
10735 cat >conftest.$ac_ext <<_ACEOF
10736#line 10736 "configure"
ab9b9eab
VZ
10737#include "confdefs.h"
10738/* System header to define __stub macros and hopefully few prototypes,
6232543b 10739 which can conflict with char remove (); below. */
ab9b9eab
VZ
10740#include <assert.h>
10741/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10742#ifdef __cplusplus
10743extern "C"
10744#endif
ab9b9eab 10745/* We use char because int might match the return type of a gcc2
6232543b
VS
10746 builtin and then its argument prototype would still apply. */
10747char remove ();
10748char (*f) ();
ab9b9eab 10749
6232543b
VS
10750int
10751main ()
10752{
ab9b9eab
VZ
10753/* The GNU C library defines this for functions which it implements
10754 to always fail with ENOSYS. Some functions are actually named
10755 something starting with __ and the normal name is an alias. */
10756#if defined (__stub_remove) || defined (__stub___remove)
10757choke me
10758#else
6232543b 10759f = remove;
ab9b9eab
VZ
10760#endif
10761
6232543b
VS
10762 ;
10763 return 0;
10764}
10765_ACEOF
10766rm -f conftest.$ac_objext conftest$ac_exeext
10767if { (eval echo "$as_me:10767: \"$ac_link\"") >&5
10768 (eval $ac_link) 2>&5
10769 ac_status=$?
10770 echo "$as_me:10770: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -s conftest$ac_exeext'
10773 { (eval echo "$as_me:10773: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:10776: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_func_remove=yes
10779else
10780 echo "$as_me: failed program was:" >&5
10781cat conftest.$ac_ext >&5
10782ac_cv_func_remove=no
10783fi
10784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10785fi
10786echo "$as_me:10786: result: $ac_cv_func_remove" >&5
10787echo "${ECHO_T}$ac_cv_func_remove" >&6
ab9b9eab
VZ
10788
10789 if test $ac_cv_func_remove = no; then
6232543b
VS
10790 echo "$as_me:10790: checking for remove in -lposix" >&5
10791echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10792if test "${ac_cv_lib_posix_remove+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10794else
6232543b 10795 ac_check_lib_save_LIBS=$LIBS
ab9b9eab 10796LIBS="-lposix $LIBS"
6232543b
VS
10797cat >conftest.$ac_ext <<_ACEOF
10798#line 10798 "configure"
ab9b9eab 10799#include "confdefs.h"
6232543b 10800
ab9b9eab 10801/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10802#ifdef __cplusplus
10803extern "C"
10804#endif
ab9b9eab 10805/* We use char because int might match the return type of a gcc2
6232543b
VS
10806 builtin and then its argument prototype would still apply. */
10807char remove ();
10808int
10809main ()
10810{
10811remove ();
10812 ;
10813 return 0;
10814}
10815_ACEOF
10816rm -f conftest.$ac_objext conftest$ac_exeext
10817if { (eval echo "$as_me:10817: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>&5
10819 ac_status=$?
10820 echo "$as_me:10820: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try='test -s conftest$ac_exeext'
10823 { (eval echo "$as_me:10823: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:10826: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_cv_lib_posix_remove=yes
10829else
10830 echo "$as_me: failed program was:" >&5
10831cat conftest.$ac_ext >&5
10832ac_cv_lib_posix_remove=no
10833fi
10834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10835LIBS=$ac_check_lib_save_LIBS
10836fi
10837echo "$as_me:10837: result: $ac_cv_lib_posix_remove" >&5
10838echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10839if test $ac_cv_lib_posix_remove = yes; then
ab9b9eab 10840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
ab9b9eab
VZ
10841fi
10842
10843 fi
10844
10845 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6232543b
VS
10846 echo "$as_me:10846: checking for shmat" >&5
10847echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10848if test "${ac_cv_func_shmat+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10850else
6232543b
VS
10851 cat >conftest.$ac_ext <<_ACEOF
10852#line 10852 "configure"
ab9b9eab
VZ
10853#include "confdefs.h"
10854/* System header to define __stub macros and hopefully few prototypes,
6232543b 10855 which can conflict with char shmat (); below. */
ab9b9eab
VZ
10856#include <assert.h>
10857/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10858#ifdef __cplusplus
10859extern "C"
10860#endif
ab9b9eab 10861/* We use char because int might match the return type of a gcc2
6232543b
VS
10862 builtin and then its argument prototype would still apply. */
10863char shmat ();
10864char (*f) ();
ab9b9eab 10865
6232543b
VS
10866int
10867main ()
10868{
ab9b9eab
VZ
10869/* The GNU C library defines this for functions which it implements
10870 to always fail with ENOSYS. Some functions are actually named
10871 something starting with __ and the normal name is an alias. */
10872#if defined (__stub_shmat) || defined (__stub___shmat)
10873choke me
10874#else
6232543b 10875f = shmat;
ab9b9eab
VZ
10876#endif
10877
6232543b
VS
10878 ;
10879 return 0;
10880}
10881_ACEOF
10882rm -f conftest.$ac_objext conftest$ac_exeext
10883if { (eval echo "$as_me:10883: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>&5
10885 ac_status=$?
10886 echo "$as_me:10886: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (eval echo "$as_me:10889: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:10892: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_func_shmat=yes
10895else
10896 echo "$as_me: failed program was:" >&5
10897cat conftest.$ac_ext >&5
10898ac_cv_func_shmat=no
10899fi
10900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10901fi
10902echo "$as_me:10902: result: $ac_cv_func_shmat" >&5
10903echo "${ECHO_T}$ac_cv_func_shmat" >&6
ab9b9eab
VZ
10904
10905 if test $ac_cv_func_shmat = no; then
6232543b
VS
10906 echo "$as_me:10906: checking for shmat in -lipc" >&5
10907echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10908if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
ab9b9eab 10910else
6232543b 10911 ac_check_lib_save_LIBS=$LIBS
ab9b9eab 10912LIBS="-lipc $LIBS"
6232543b
VS
10913cat >conftest.$ac_ext <<_ACEOF
10914#line 10914 "configure"
ab9b9eab 10915#include "confdefs.h"
6232543b 10916
ab9b9eab 10917/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10918#ifdef __cplusplus
10919extern "C"
10920#endif
ab9b9eab 10921/* We use char because int might match the return type of a gcc2
6232543b
VS
10922 builtin and then its argument prototype would still apply. */
10923char shmat ();
10924int
10925main ()
10926{
10927shmat ();
10928 ;
10929 return 0;
10930}
10931_ACEOF
10932rm -f conftest.$ac_objext conftest$ac_exeext
10933if { (eval echo "$as_me:10933: \"$ac_link\"") >&5
10934 (eval $ac_link) 2>&5
10935 ac_status=$?
10936 echo "$as_me:10936: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -s conftest$ac_exeext'
10939 { (eval echo "$as_me:10939: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:10942: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 ac_cv_lib_ipc_shmat=yes
10945else
10946 echo "$as_me: failed program was:" >&5
10947cat conftest.$ac_ext >&5
10948ac_cv_lib_ipc_shmat=no
10949fi
10950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
10953echo "$as_me:10953: result: $ac_cv_lib_ipc_shmat" >&5
10954echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10955if test $ac_cv_lib_ipc_shmat = yes; then
ab9b9eab 10956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
ab9b9eab
VZ
10957fi
10958
10959 fi
10960 fi
10961
10962 # Check for libraries that X11R6 Xt/Xaw programs need.
6232543b 10963 ac_save_LDFLAGS=$LDFLAGS
ab9b9eab
VZ
10964 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10965 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10966 # check for ICE first), but we must link in the order -lSM -lICE or
10967 # we get undefined symbols. So assume we have SM if we have ICE.
10968 # These have to be linked with before -lX11, unlike the other
10969 # libraries we check for below, so use a different variable.
6232543b
VS
10970 # John Interrante, Karl Berry
10971 echo "$as_me:10971: checking for IceConnectionNumber in -lICE" >&5
10972echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10973if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975else
10976 ac_check_lib_save_LIBS=$LIBS
ab9b9eab 10977LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6232543b
VS
10978cat >conftest.$ac_ext <<_ACEOF
10979#line 10979 "configure"
ab9b9eab 10980#include "confdefs.h"
6232543b 10981
ab9b9eab 10982/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
10983#ifdef __cplusplus
10984extern "C"
10985#endif
ab9b9eab 10986/* We use char because int might match the return type of a gcc2
6232543b
VS
10987 builtin and then its argument prototype would still apply. */
10988char IceConnectionNumber ();
10989int
10990main ()
10991{
10992IceConnectionNumber ();
10993 ;
10994 return 0;
10995}
10996_ACEOF
10997rm -f conftest.$ac_objext conftest$ac_exeext
10998if { (eval echo "$as_me:10998: \"$ac_link\"") >&5
10999 (eval $ac_link) 2>&5
11000 ac_status=$?
11001 echo "$as_me:11001: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -s conftest$ac_exeext'
11004 { (eval echo "$as_me:11004: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:11007: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 ac_cv_lib_ICE_IceConnectionNumber=yes
11010else
11011 echo "$as_me: failed program was:" >&5
11012cat conftest.$ac_ext >&5
11013ac_cv_lib_ICE_IceConnectionNumber=no
11014fi
11015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11016LIBS=$ac_check_lib_save_LIBS
11017fi
11018echo "$as_me:11018: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11019echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11020if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
ab9b9eab 11021 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
ab9b9eab
VZ
11022fi
11023
6232543b 11024 LDFLAGS=$ac_save_LDFLAGS
ab9b9eab
VZ
11025
11026fi
11027
37d403aa
JS
11028CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11029LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 11030
37d403aa 11031if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 11032 if test "$no_x" = "yes"; then
6232543b
VS
11033 { { echo "$as_me:11033: error: X11 not found" >&5
11034echo "$as_me: error: X11 not found" >&2;}
11035 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
ab9b9eab
VZ
11036 fi
11037
11038 GUI_TK_LIBRARY="$X_LIBS"
11039 TOOLKIT_INCLUDE="$X_CFLAGS"
11040
dad6c0ea
VZ
11041 AFMINSTALL=afminstall
11042
cd6d6d5b
VZ
11043 COMPILED_X_PROGRAM=0
11044
6232543b
VS
11045 echo "$as_me:11045: checking for Motif/Lesstif headers" >&5
11046echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
11047
ab9b9eab
VZ
11048ac_find_includes=
11049for ac_dir in $SEARCH_INCLUDE;
11050 do
11051 if test -f "$ac_dir/Xm/Xm.h"; then
11052 ac_find_includes=$ac_dir
11053 break
11054 fi
11055 done
11056
11057 if test "$ac_find_includes" != "" ; then
6232543b
VS
11058 echo "$as_me:11058: result: found $ac_find_includes" >&5
11059echo "${ECHO_T}found $ac_find_includes" >&6
ab9b9eab 11060 else
6232543b
VS
11061 cat >conftest.$ac_ext <<_ACEOF
11062#line 11062 "configure"
cd6d6d5b
VZ
11063#include "confdefs.h"
11064
11065 #include <Xm/Xm.h>
6232543b
VS
11066
11067int
11068main ()
11069{
cd6d6d5b
VZ
11070
11071 int version;
11072
11073 version = xmUseVersion;
6232543b
VS
11074
11075 ;
11076 return 0;
11077}
11078_ACEOF
11079rm -f conftest.$ac_objext
11080if { (eval echo "$as_me:11080: \"$ac_compile\"") >&5
11081 (eval $ac_compile) 2>&5
11082 ac_status=$?
11083 echo "$as_me:11083: \$? = $ac_status" >&5
11084 (exit $ac_status); } &&
11085 { ac_try='test -s conftest.$ac_objext'
11086 { (eval echo "$as_me:11086: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:11089: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091
11092 echo "$as_me:11092: result: found in default search path" >&5
11093echo "${ECHO_T}found in default search path" >&6
cd6d6d5b 11094 COMPILED_X_PROGRAM=1
6232543b 11095
cd6d6d5b 11096else
6232543b
VS
11097 echo "$as_me: failed program was:" >&5
11098cat conftest.$ac_ext >&5
11099
11100 echo "$as_me:11100: result: no" >&5
11101echo "${ECHO_T}no" >&6
11102 { { echo "$as_me:11102: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
11103echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
11104 { (exit 1); exit 1; }; }
11105
cd6d6d5b 11106fi
6232543b 11107rm -f conftest.$ac_objext conftest.$ac_ext
ab9b9eab
VZ
11108 fi
11109
cd6d6d5b 11110 if test "$COMPILED_X_PROGRAM" = 0; then
6232543b
VS
11111 echo "$as_me:11111: checking for Motif/Lesstif library" >&5
11112echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
11113
ab9b9eab
VZ
11114ac_find_libraries=
11115for ac_dir in $SEARCH_LIB;
11116 do
11117 for ac_extension in a so sl; do
11118 if test -f "$ac_dir/libXm.$ac_extension"; then
11119 ac_find_libraries=$ac_dir
11120 break 2
11121 fi
11122 done
11123 done
11124
cd6d6d5b 11125 if test "$ac_find_libraries" != "" ; then
6232543b 11126
ab9b9eab
VZ
11127 ac_path_to_include=$ac_find_includes
11128 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11129 result=$?
11130 if test $result = 0; then
11131 ac_path_to_include=""
11132 else
11133 ac_path_to_include="-I$ac_find_includes"
11134 fi
11135
ab9b9eab
VZ
11136 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11137 result=$?
11138 if test $result = 0; then
11139 ac_path_to_link=""
11140 else
11141 ac_path_to_link="-L$ac_find_libraries"
11142 fi
11143
cd6d6d5b
VZ
11144 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
11145 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
6232543b
VS
11146 echo "$as_me:11146: result: found at $ac_find_libraries" >&5
11147echo "${ECHO_T}found at $ac_find_libraries" >&6
cd6d6d5b 11148 else
6232543b
VS
11149 cat >conftest.$ac_ext <<_ACEOF
11150#line 11150 "configure"
cd6d6d5b 11151#include "confdefs.h"
ab9b9eab 11152
cd6d6d5b 11153 #include <Xm/Xm.h>
6232543b
VS
11154
11155int
11156main ()
11157{
ab9b9eab 11158
cd6d6d5b 11159 int version;
ab9b9eab 11160
cd6d6d5b 11161 version = xmUseVersion;
6232543b
VS
11162
11163 ;
11164 return 0;
11165}
11166_ACEOF
11167rm -f conftest.$ac_objext
11168if { (eval echo "$as_me:11168: \"$ac_compile\"") >&5
11169 (eval $ac_compile) 2>&5
11170 ac_status=$?
11171 echo "$as_me:11171: \$? = $ac_status" >&5
11172 (exit $ac_status); } &&
11173 { ac_try='test -s conftest.$ac_objext'
11174 { (eval echo "$as_me:11174: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:11177: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179
11180 echo "$as_me:11180: result: found in default search path" >&5
11181echo "${ECHO_T}found in default search path" >&6
cd6d6d5b 11182 COMPILED_X_PROGRAM=1
6232543b 11183
cd6d6d5b 11184else
6232543b
VS
11185 echo "$as_me: failed program was:" >&5
11186cat conftest.$ac_ext >&5
11187
11188 echo "$as_me:11188: result: no" >&5
11189echo "${ECHO_T}no" >&6
11190 { { echo "$as_me:11190: error: please set LDFLAGS to contain the location of libXm" >&5
11191echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
11192 { (exit 1); exit 1; }; }
11193
cd6d6d5b 11194fi
6232543b 11195rm -f conftest.$ac_objext conftest.$ac_ext
cd6d6d5b 11196 fi
ab9b9eab
VZ
11197 fi
11198
11199 XPM_LINK=""
6232543b
VS
11200 echo "$as_me:11200: checking for Xpm library" >&5
11201echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
11202
ab9b9eab
VZ
11203ac_find_libraries=
11204for ac_dir in $SEARCH_LIB;
11205 do
11206 for ac_extension in a so sl; do
11207 if test -f "$ac_dir/libXpm.$ac_extension"; then
11208 ac_find_libraries=$ac_dir
11209 break 2
11210 fi
11211 done
11212 done
11213
11214 if test "$ac_find_libraries" != "" ; then
6232543b 11215
ab9b9eab
VZ
11216 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11217 result=$?
11218 if test $result = 0; then
11219 ac_path_to_link=""
11220 else
11221 ac_path_to_link="-L$ac_find_libraries"
11222 fi
11223
11224 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
11225 XPM_LINK="-lXpm "
6232543b 11226 cat >>confdefs.h <<\EOF
ab9b9eab
VZ
11227#define wxHAVE_LIB_XPM 1
11228EOF
11229
6232543b
VS
11230 echo "$as_me:11230: result: found at $ac_find_libraries" >&5
11231echo "${ECHO_T}found at $ac_find_libraries" >&6
ab9b9eab 11232 else
6232543b
VS
11233 cat >conftest.$ac_ext <<_ACEOF
11234#line 11234 "configure"
cd6d6d5b
VZ
11235#include "confdefs.h"
11236
11237 #include <X11/xpm.h>
6232543b
VS
11238
11239int
11240main ()
11241{
cd6d6d5b
VZ
11242
11243 int version;
11244
11245 version = XpmLibraryVersion();
6232543b
VS
11246
11247 ;
11248 return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (eval echo "$as_me:11252: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 2>&5
11254 ac_status=$?
11255 echo "$as_me:11255: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try='test -s conftest.$ac_objext'
11258 { (eval echo "$as_me:11258: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:11261: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263
f6bcfd97 11264 XPM_LINK="-lXpm "
6232543b 11265 cat >>confdefs.h <<\EOF
3ace2e6d
SN
11266#define wxHAVE_LIB_XPM 1
11267EOF
11268
6232543b
VS
11269 echo "$as_me:11269: result: found in default search path" >&5
11270echo "${ECHO_T}found in default search path" >&6
cd6d6d5b 11271 COMPILED_X_PROGRAM=0
6232543b 11272
cd6d6d5b 11273else
6232543b
VS
11274 echo "$as_me: failed program was:" >&5
11275cat conftest.$ac_ext >&5
11276
11277 echo "$as_me:11277: result: no" >&5
11278echo "${ECHO_T}no" >&6
11279 { echo "$as_me:11279: WARNING: library will be compiled without support for images in XPM format" >&5
11280echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
11281
cd6d6d5b 11282fi
6232543b 11283rm -f conftest.$ac_objext conftest.$ac_ext
ab9b9eab
VZ
11284 fi
11285
8916026b 11286 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
11287 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
11288 TOOLKIT=MOTIF
10f2d63a
VZ
11289 GUIDIST=MOTIF_DIST
11290fi
11291
b4085ce6
GD
11292if test "$wxUSE_MAC" = 1; then
11293 TOOLKIT=MAC
c521c494 11294 GUIDIST=MACX_DIST
b4085ce6
GD
11295fi
11296
e07802fc
VZ
11297if test "$wxUSE_PM" = 1; then
11298 TOOLKIT=PM
e07802fc
VZ
11299 GUIDIST=GTK_DIST
11300fi
11301
11302if test "$TOOLKIT" != "PM" ; then
ec14dd32 11303 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
11304else
11305 TOOLKIT_DIR="os2"
11306fi
10f2d63a 11307
f6bcfd97
BP
11308 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11309 TOOLKIT_NAME="${TOOLKIT_DIR}d"
11310 else
11311 TOOLKIT_NAME="${TOOLKIT_DIR}"
11312 fi
11313
2224580a 11314 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 11315
f6bcfd97 11316 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 11317
bdad4e7e 11318 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 11319
9ad43c8b
RL
11320 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11321 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
3fcdd07b
VZ
11322 fi
11323
d9d8273d 11324 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 11325 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
11326 fi
11327 if test "$wxUSE_LIBTIFF" = "yes" ; then
11328 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11329 fi
11330 if test "$wxUSE_LIBPNG" = "yes" ; then
11331 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11332 fi
11333 if test "$wxUSE_ZLIB" = "yes" ; then
11334 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11335 fi
3fed1840
RR
11336 if test "$wxUSE_FREETYPE" = "yes" ; then
11337 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11338 fi
bdad4e7e 11339 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
11340
11341 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
11342 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
11343 RPM_SPEC="wx\$(TOOLKIT).spec"
11344
11345 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11346 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 11347else
dad6c0ea
VZ
11348 USE_GUI=0
11349
f6bcfd97
BP
11350 TOOLKIT_DIR="base"
11351
11352 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11353 TOOLKIT_NAME="${TOOLKIT_DIR}d"
11354 else
11355 TOOLKIT_NAME="${TOOLKIT_DIR}"
11356 fi
11357
07eb77a6
RL
11358 TOOLKIT_DEF="-D__WXBASE__"
11359
b4085ce6
GD
11360 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
11361 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 11362
a20b6d3a
VZ
11363 if test "$wxUSE_ZLIB" = "yes" ; then
11364 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11365 fi
11366
f6bcfd97 11367 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
11368
11369 PORT_FILES="src/files.lst"
11370 RPM_FILES="src/rpmfiles.lst"
11371 RPM_SPEC="wxBase.spec"
11372
11373 GUIDIST="BASE_DIST"
11374 DISTDIR="wxBase"
10f2d63a
VZ
11375fi
11376
11377WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 11378WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
11379
11380WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 11381WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
11382
11383WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 11384WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
11385
11386WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
11387WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
11388WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
11389WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
11390WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
11391WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
11392
11393SHARED_LD=
11394PIC_FLAG=
11395WX_ALL=
11396WX_ALL_INSTALLED=
1d62a8b4 11397BURNT_LIBRARY_NAME=
f6bcfd97 11398WX_TARGET_LIBRARY_SONAME=
10f2d63a
VZ
11399
11400if test "$wxUSE_SHARED" = "yes"; then
11401 case "${host}" in
11402 *-hp-hpux* )
11403 if test "$GCC" = yes ; then
69ffe1d2 11404 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
11405 PIC_FLAG="-fPIC"
11406 else
f6bcfd97
BP
11407 LDFLAGS="-L/usr/lib"
11408
10f2d63a
VZ
11409 SHARED_LD="${CXX} -b -o"
11410 PIC_FLAG="+Z"
11411 fi
f6bcfd97
BP
11412 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
11413 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 11414 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11415 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
11416 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
11417 else
11418 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
11419 fi
10f2d63a 11420 ;;
b12915c1
VZ
11421
11422 *-*-linux* )
10f2d63a
VZ
11423 SHARED_LD="${CC} -shared -o"
11424 PIC_FLAG="-fPIC"
00cf1208 11425 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 11426 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 11427 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11428 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11429 fi
c661ecca
RR
11430 if test "$wxUSE_OPENGL" = "yes"; then
11431 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11432 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11433 else
11434 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11435 WX_ALL="CREATE_LINKS"
422107f9 11436 fi
00cf1208 11437 ;;
10f2d63a
VZ
11438 *-*-irix5* | *-*-irix6* )
11439 if test "$GCC" = yes ; then
11440 SHARED_LD="${CC} -shared -o"
11441 PIC_FLAG="-fPIC"
11442 else
11443 SHARED_LD="${CXX} -shared -o"
11444 fi
c661ecca
RR
11445 if test "$wxUSE_OPENGL" = "yes"; then
11446 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11447 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11448 else
11449 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11450 WX_ALL="CREATE_LINKS"
422107f9 11451 fi
10f2d63a
VZ
11452 ;;
11453 *-*-solaris2* )
11454 if test "$GCC" = yes ; then
11455 SHARED_LD="${CC} -shared -o"
11456 PIC_FLAG="-fPIC"
f6bcfd97
BP
11457
11458 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11459 else
11460 SHARED_LD="${CXX} -G -o"
11461 PIC_FLAG="-KPIC"
11462 fi
c661ecca
RR
11463 if test "$wxUSE_OPENGL" = "yes"; then
11464 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11465 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11466 else
11467 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11468 WX_ALL="CREATE_LINKS"
11469 fi
10f2d63a
VZ
11470 ;;
11471 *-*-sunos4* )
11472 SHARED_LD="${CC} -shared -o"
11473 PIC_FLAG="-fPIC"
11474 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11475 WX_ALL="CREATE_LINKS"
11476 ;;
95c8801c 11477 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
11478 SHARED_LD="${CC} -shared -o"
11479 PIC_FLAG="-fPIC"
37d403aa
JS
11480 if test "$wxUSE_OPENGL" = "yes"; then
11481 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11482 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11483 else
11484 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11485 WX_ALL="CREATE_LINKS"
11486 fi
10f2d63a 11487 ;;
b4085ce6 11488 *-*-darwin* )
ea5999b9
GD
11489 SHARED_LD="${CXX} -dynamiclib -o"
11490 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
11491 if test "$wxUSE_OPENGL" = "yes"; then
11492 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11493 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11494 else
11495 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11496 WX_ALL="CREATE_LINKS"
11497 fi
1f8ae82f
GD
11498 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
11499 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11500 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11501 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
f3c067d2
GD
11502 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
11503 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
1f8ae82f 11504 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
f3c067d2
GD
11505 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
11506 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 11507 ;;
10f2d63a
VZ
11508 *-*-osf* )
11509 SHARED_LD="${CXX} -shared -o"
11510 PIC_FLAG="-fPIC"
11511 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11512 WX_ALL="CREATE_LINKS"
11513 ;;
11514 *-*-dgux5* )
11515 SHARED_LD="${CXX} -shared -o"
11516 PIC_FLAG="-fPIC"
11517 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11518 WX_ALL="CREATE_LINKS"
11519 ;;
11520 *-*-sysv5* )
11521 SHARED_LD="${CC} -shared -o"
11522 PIC_FLAG="-fPIC"
11523 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11524 WX_ALL="CREATE_LINKS"
11525 ;;
11526 *-*-aix* )
11527 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11528 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11529 ;;
1c8183e2 11530 *-*-cygwin* )
10f2d63a 11531 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11532 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11533 if test "$wxUSE_OPENGL" = "yes"; then
11534 WX_ALL_INSTALLED="preinstall_gl"
11535 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11536 else
11537 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11538 fi
10f2d63a 11539 ;;
b12915c1 11540 *-*-mingw32* )
10f2d63a 11541 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11542 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11543 if test "$wxUSE_OPENGL" = "yes"; then
11544 WX_ALL_INSTALLED="preinstall_gl"
11545 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11546 else
11547 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11548 fi
10f2d63a
VZ
11549 ;;
11550 *-pc-os2_emx )
e07802fc
VZ
11551 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11552 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 11553 ;;
b12915c1 11554 *-*-beos* )
e2b8b066 11555 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
11556 PIC_FLAG="-fPIC"
11557 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11558 WX_ALL="CREATE_LINKS"
11559 ;;
10f2d63a 11560 *)
6232543b
VS
11561 { { echo "$as_me:11561: error: unknown system type ${host}." >&5
11562echo "$as_me: error: unknown system type ${host}." >&2;}
11563 { (exit 1); exit 1; }; }
10f2d63a
VZ
11564 esac
11565
11566 if test "x$WX_TARGET_LIBRARY" = "x"; then
11567 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11568 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11569 fi
3711412e 11570 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
11571else
11572 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11573 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11574
11575 if test "$wxUSE_OPENGL" = "yes"; then
11576 WX_ALL_INSTALLED="preinstall_gl"
11577 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11578 else
11579 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11580 fi
11581
11582 if test "$wxUSE_GUI" = "no"; then
11583 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11584 fi
11585
3711412e 11586 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
11587fi
11588
6232543b 11589for ac_header in strings.h
10f2d63a 11590do
6232543b
VS
11591ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11592echo "$as_me:11592: checking for $ac_header" >&5
11593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11594if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 cat >conftest.$ac_ext <<_ACEOF
11598#line 11598 "configure"
10f2d63a 11599#include "confdefs.h"
6232543b
VS
11600#include <$ac_header>
11601_ACEOF
11602if { (eval echo "$as_me:11602: \"$ac_cpp conftest.$ac_ext\"") >&5
11603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11604 ac_status=$?
11605 egrep -v '^ *\+' conftest.er1 >conftest.err
11606 rm -f conftest.er1
11607 cat conftest.err >&5
11608 echo "$as_me:11608: \$? = $ac_status" >&5
11609 (exit $ac_status); } >/dev/null; then
11610 if test -s conftest.err; then
11611 ac_cpp_err=$ac_c_preproc_warn_flag
11612 else
11613 ac_cpp_err=
11614 fi
10f2d63a 11615else
6232543b
VS
11616 ac_cpp_err=yes
11617fi
11618if test -z "$ac_cpp_err"; then
11619 eval "$ac_ac_Header=yes"
11620else
11621 echo "$as_me: failed program was:" >&5
10f2d63a 11622 cat conftest.$ac_ext >&5
6232543b 11623 eval "$ac_ac_Header=no"
10f2d63a 11624fi
6232543b 11625rm -f conftest.err conftest.$ac_ext
10f2d63a 11626fi
6232543b
VS
11627echo "$as_me:11627: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11628echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11629if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11630 cat >>confdefs.h <<EOF
11631#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 11632EOF
6232543b 11633
10f2d63a
VZ
11634fi
11635done
11636
6232543b 11637for ac_header in stdlib.h
9cfadba2 11638do
6232543b
VS
11639ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11640echo "$as_me:11640: checking for $ac_header" >&5
11641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11642if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645 cat >conftest.$ac_ext <<_ACEOF
11646#line 11646 "configure"
9cfadba2 11647#include "confdefs.h"
6232543b
VS
11648#include <$ac_header>
11649_ACEOF
11650if { (eval echo "$as_me:11650: \"$ac_cpp conftest.$ac_ext\"") >&5
11651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11652 ac_status=$?
11653 egrep -v '^ *\+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 echo "$as_me:11656: \$? = $ac_status" >&5
11657 (exit $ac_status); } >/dev/null; then
11658 if test -s conftest.err; then
11659 ac_cpp_err=$ac_c_preproc_warn_flag
11660 else
11661 ac_cpp_err=
11662 fi
9cfadba2 11663else
6232543b
VS
11664 ac_cpp_err=yes
11665fi
11666if test -z "$ac_cpp_err"; then
11667 eval "$ac_ac_Header=yes"
11668else
11669 echo "$as_me: failed program was:" >&5
9cfadba2 11670 cat conftest.$ac_ext >&5
6232543b 11671 eval "$ac_ac_Header=no"
9cfadba2 11672fi
6232543b 11673rm -f conftest.err conftest.$ac_ext
9cfadba2 11674fi
6232543b
VS
11675echo "$as_me:11675: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11676echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11677if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11678 cat >>confdefs.h <<EOF
11679#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9cfadba2 11680EOF
6232543b 11681
9cfadba2
VZ
11682fi
11683done
10f2d63a 11684
6232543b 11685for ac_header in unistd.h
10f2d63a 11686do
6232543b
VS
11687ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11688echo "$as_me:11688: checking for $ac_header" >&5
11689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11690if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692else
11693 cat >conftest.$ac_ext <<_ACEOF
11694#line 11694 "configure"
10f2d63a 11695#include "confdefs.h"
6232543b
VS
11696#include <$ac_header>
11697_ACEOF
11698if { (eval echo "$as_me:11698: \"$ac_cpp conftest.$ac_ext\"") >&5
11699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11700 ac_status=$?
11701 egrep -v '^ *\+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 echo "$as_me:11704: \$? = $ac_status" >&5
11705 (exit $ac_status); } >/dev/null; then
11706 if test -s conftest.err; then
11707 ac_cpp_err=$ac_c_preproc_warn_flag
11708 else
11709 ac_cpp_err=
11710 fi
10f2d63a 11711else
6232543b
VS
11712 ac_cpp_err=yes
11713fi
11714if test -z "$ac_cpp_err"; then
11715 eval "$ac_ac_Header=yes"
11716else
11717 echo "$as_me: failed program was:" >&5
10f2d63a 11718 cat conftest.$ac_ext >&5
6232543b 11719 eval "$ac_ac_Header=no"
10f2d63a 11720fi
6232543b 11721rm -f conftest.err conftest.$ac_ext
10f2d63a 11722fi
6232543b
VS
11723echo "$as_me:11723: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11724echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11725if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<EOF
11727#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 11728EOF
6232543b 11729
10f2d63a
VZ
11730fi
11731done
11732
6232543b 11733for ac_header in wchar.h
10f2d63a 11734do
6232543b
VS
11735ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11736echo "$as_me:11736: checking for $ac_header" >&5
11737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11738if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740else
11741 cat >conftest.$ac_ext <<_ACEOF
11742#line 11742 "configure"
10f2d63a 11743#include "confdefs.h"
6232543b
VS
11744#include <$ac_header>
11745_ACEOF
11746if { (eval echo "$as_me:11746: \"$ac_cpp conftest.$ac_ext\"") >&5
11747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11748 ac_status=$?
11749 egrep -v '^ *\+' conftest.er1 >conftest.err
11750 rm -f conftest.er1
11751 cat conftest.err >&5
11752 echo "$as_me:11752: \$? = $ac_status" >&5
11753 (exit $ac_status); } >/dev/null; then
11754 if test -s conftest.err; then
11755 ac_cpp_err=$ac_c_preproc_warn_flag
11756 else
11757 ac_cpp_err=
11758 fi
11759else
11760 ac_cpp_err=yes
11761fi
11762if test -z "$ac_cpp_err"; then
11763 eval "$ac_ac_Header=yes"
6f72b082 11764else
6232543b 11765 echo "$as_me: failed program was:" >&5
6f72b082 11766 cat conftest.$ac_ext >&5
6232543b 11767 eval "$ac_ac_Header=no"
6f72b082 11768fi
6232543b 11769rm -f conftest.err conftest.$ac_ext
6f72b082 11770fi
6232543b
VS
11771echo "$as_me:11771: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11772echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11773if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11774 cat >>confdefs.h <<EOF
11775#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6f72b082 11776EOF
6232543b 11777
6f72b082
OK
11778fi
11779done
11780
6232543b 11781for ac_header in wcstr.h
6f72b082 11782do
6232543b
VS
11783ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11784echo "$as_me:11784: checking for $ac_header" >&5
11785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11786if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 cat >conftest.$ac_ext <<_ACEOF
11790#line 11790 "configure"
6f72b082 11791#include "confdefs.h"
6232543b
VS
11792#include <$ac_header>
11793_ACEOF
11794if { (eval echo "$as_me:11794: \"$ac_cpp conftest.$ac_ext\"") >&5
11795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11796 ac_status=$?
11797 egrep -v '^ *\+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:11800: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null; then
11802 if test -s conftest.err; then
11803 ac_cpp_err=$ac_c_preproc_warn_flag
11804 else
11805 ac_cpp_err=
11806 fi
11807else
11808 ac_cpp_err=yes
11809fi
11810if test -z "$ac_cpp_err"; then
11811 eval "$ac_ac_Header=yes"
6f72b082 11812else
6232543b 11813 echo "$as_me: failed program was:" >&5
6f72b082 11814 cat conftest.$ac_ext >&5
6232543b 11815 eval "$ac_ac_Header=no"
6f72b082 11816fi
6232543b 11817rm -f conftest.err conftest.$ac_ext
6f72b082 11818fi
6232543b
VS
11819echo "$as_me:11819: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11820echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11821if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11822 cat >>confdefs.h <<EOF
11823#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6f72b082 11824EOF
6232543b 11825
6f72b082
OK
11826fi
11827done
11828
6232543b 11829for ac_header in fnmatch.h
6f72b082 11830do
6232543b
VS
11831ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11832echo "$as_me:11832: checking for $ac_header" >&5
11833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11834if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836else
11837 cat >conftest.$ac_ext <<_ACEOF
11838#line 11838 "configure"
6f72b082 11839#include "confdefs.h"
6232543b
VS
11840#include <$ac_header>
11841_ACEOF
11842if { (eval echo "$as_me:11842: \"$ac_cpp conftest.$ac_ext\"") >&5
11843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11844 ac_status=$?
11845 egrep -v '^ *\+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:11848: \$? = $ac_status" >&5
11849 (exit $ac_status); } >/dev/null; then
11850 if test -s conftest.err; then
11851 ac_cpp_err=$ac_c_preproc_warn_flag
11852 else
11853 ac_cpp_err=
11854 fi
11855else
11856 ac_cpp_err=yes
11857fi
11858if test -z "$ac_cpp_err"; then
11859 eval "$ac_ac_Header=yes"
10f2d63a 11860else
6232543b 11861 echo "$as_me: failed program was:" >&5
10f2d63a 11862 cat conftest.$ac_ext >&5
6232543b 11863 eval "$ac_ac_Header=no"
10f2d63a 11864fi
6232543b 11865rm -f conftest.err conftest.$ac_ext
10f2d63a 11866fi
6232543b
VS
11867echo "$as_me:11867: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11868echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11869if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11870 cat >>confdefs.h <<EOF
11871#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 11872EOF
6232543b 11873
10f2d63a
VZ
11874fi
11875done
11876
6232543b 11877for ac_header in iconv.h
0fb0dd83 11878do
6232543b
VS
11879ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11880echo "$as_me:11880: checking for $ac_header" >&5
11881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11882if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884else
11885 cat >conftest.$ac_ext <<_ACEOF
11886#line 11886 "configure"
0fb0dd83 11887#include "confdefs.h"
6232543b
VS
11888#include <$ac_header>
11889_ACEOF
11890if { (eval echo "$as_me:11890: \"$ac_cpp conftest.$ac_ext\"") >&5
11891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11892 ac_status=$?
11893 egrep -v '^ *\+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:11896: \$? = $ac_status" >&5
11897 (exit $ac_status); } >/dev/null; then
11898 if test -s conftest.err; then
11899 ac_cpp_err=$ac_c_preproc_warn_flag
11900 else
11901 ac_cpp_err=
11902 fi
11903else
11904 ac_cpp_err=yes
11905fi
11906if test -z "$ac_cpp_err"; then
11907 eval "$ac_ac_Header=yes"
0fb0dd83 11908else
6232543b 11909 echo "$as_me: failed program was:" >&5
0fb0dd83 11910 cat conftest.$ac_ext >&5
6232543b 11911 eval "$ac_ac_Header=no"
0fb0dd83 11912fi
6232543b 11913rm -f conftest.err conftest.$ac_ext
0fb0dd83 11914fi
6232543b
VS
11915echo "$as_me:11915: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11916echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11917if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11918 cat >>confdefs.h <<EOF
11919#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
0fb0dd83 11920EOF
6232543b 11921
0fb0dd83
RR
11922fi
11923done
11924
6232543b 11925for ac_header in langinfo.h
1f8ae82f 11926do
6232543b
VS
11927ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11928echo "$as_me:11928: checking for $ac_header" >&5
11929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11930if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932else
11933 cat >conftest.$ac_ext <<_ACEOF
11934#line 11934 "configure"
1f8ae82f 11935#include "confdefs.h"
6232543b
VS
11936#include <$ac_header>
11937_ACEOF
11938if { (eval echo "$as_me:11938: \"$ac_cpp conftest.$ac_ext\"") >&5
11939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11940 ac_status=$?
11941 egrep -v '^ *\+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:11944: \$? = $ac_status" >&5
11945 (exit $ac_status); } >/dev/null; then
11946 if test -s conftest.err; then
11947 ac_cpp_err=$ac_c_preproc_warn_flag
11948 else
11949 ac_cpp_err=
11950 fi
11951else
11952 ac_cpp_err=yes
11953fi
11954if test -z "$ac_cpp_err"; then
11955 eval "$ac_ac_Header=yes"
1f8ae82f 11956else
6232543b 11957 echo "$as_me: failed program was:" >&5
1f8ae82f 11958 cat conftest.$ac_ext >&5
6232543b 11959 eval "$ac_ac_Header=no"
1f8ae82f 11960fi
6232543b 11961rm -f conftest.err conftest.$ac_ext
1f8ae82f 11962fi
6232543b
VS
11963echo "$as_me:11963: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11964echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11965if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11966 cat >>confdefs.h <<EOF
11967#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
1f8ae82f 11968EOF
6232543b 11969
1f8ae82f
GD
11970fi
11971done
11972
73fd4a60
VZ
11973if test "$wxUSE_GUI" = "yes"; then
11974 if test "$wxUSE_UNIX" = "yes"; then
6232543b
VS
11975
11976for ac_header in X11/XKBlib.h
10f2d63a 11977do
6232543b
VS
11978ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11979echo "$as_me:11979: checking for $ac_header" >&5
11980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11981if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983else
11984 cat >conftest.$ac_ext <<_ACEOF
11985#line 11985 "configure"
10f2d63a 11986#include "confdefs.h"
6232543b
VS
11987#include <$ac_header>
11988_ACEOF
11989if { (eval echo "$as_me:11989: \"$ac_cpp conftest.$ac_ext\"") >&5
11990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11991 ac_status=$?
11992 egrep -v '^ *\+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:11995: \$? = $ac_status" >&5
11996 (exit $ac_status); } >/dev/null; then
11997 if test -s conftest.err; then
11998 ac_cpp_err=$ac_c_preproc_warn_flag
11999 else
12000 ac_cpp_err=
12001 fi
12002else
12003 ac_cpp_err=yes
12004fi
12005if test -z "$ac_cpp_err"; then
12006 eval "$ac_ac_Header=yes"
10f2d63a 12007else
6232543b 12008 echo "$as_me: failed program was:" >&5
10f2d63a 12009 cat conftest.$ac_ext >&5
6232543b 12010 eval "$ac_ac_Header=no"
10f2d63a 12011fi
6232543b 12012rm -f conftest.err conftest.$ac_ext
10f2d63a 12013fi
6232543b
VS
12014echo "$as_me:12014: result: `eval echo '${'$ac_ac_Header'}'`" >&5
12015echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
12016if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12017 cat >>confdefs.h <<EOF
12018#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 12019EOF
6232543b 12020
10f2d63a
VZ
12021fi
12022done
12023
73fd4a60 12024 fi
10f2d63a
VZ
12025fi
12026
6232543b
VS
12027echo "$as_me:12027: checking for ANSI C header files" >&5
12028echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12029if test "${ac_cv_header_stdc+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 12031else
6232543b
VS
12032 cat >conftest.$ac_ext <<_ACEOF
12033#line 12033 "configure"
10f2d63a
VZ
12034#include "confdefs.h"
12035#include <stdlib.h>
12036#include <stdarg.h>
12037#include <string.h>
12038#include <float.h>
6232543b
VS
12039
12040_ACEOF
12041if { (eval echo "$as_me:12041: \"$ac_cpp conftest.$ac_ext\"") >&5
12042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12043 ac_status=$?
12044 egrep -v '^ *\+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:12047: \$? = $ac_status" >&5
12048 (exit $ac_status); } >/dev/null; then
12049 if test -s conftest.err; then
12050 ac_cpp_err=$ac_c_preproc_warn_flag
12051 else
12052 ac_cpp_err=
12053 fi
12054else
12055 ac_cpp_err=yes
12056fi
12057if test -z "$ac_cpp_err"; then
10f2d63a
VZ
12058 ac_cv_header_stdc=yes
12059else
6232543b 12060 echo "$as_me: failed program was:" >&5
10f2d63a 12061 cat conftest.$ac_ext >&5
10f2d63a
VZ
12062 ac_cv_header_stdc=no
12063fi
6232543b 12064rm -f conftest.err conftest.$ac_ext
10f2d63a
VZ
12065
12066if test $ac_cv_header_stdc = yes; then
12067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6232543b
VS
12068 cat >conftest.$ac_ext <<_ACEOF
12069#line 12069 "configure"
10f2d63a
VZ
12070#include "confdefs.h"
12071#include <string.h>
6232543b
VS
12072
12073_ACEOF
10f2d63a
VZ
12074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12075 egrep "memchr" >/dev/null 2>&1; then
12076 :
12077else
10f2d63a
VZ
12078 ac_cv_header_stdc=no
12079fi
12080rm -f conftest*
12081
12082fi
12083
12084if test $ac_cv_header_stdc = yes; then
12085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6232543b
VS
12086 cat >conftest.$ac_ext <<_ACEOF
12087#line 12087 "configure"
10f2d63a
VZ
12088#include "confdefs.h"
12089#include <stdlib.h>
6232543b
VS
12090
12091_ACEOF
10f2d63a
VZ
12092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12093 egrep "free" >/dev/null 2>&1; then
12094 :
12095else
10f2d63a
VZ
12096 ac_cv_header_stdc=no
12097fi
12098rm -f conftest*
12099
12100fi
12101
12102if test $ac_cv_header_stdc = yes; then
12103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6232543b 12104 if test "$cross_compiling" = yes; then
10f2d63a
VZ
12105 :
12106else
6232543b
VS
12107 cat >conftest.$ac_ext <<_ACEOF
12108#line 12108 "configure"
10f2d63a
VZ
12109#include "confdefs.h"
12110#include <ctype.h>
6232543b
VS
12111#if ((' ' & 0x0FF) == 0x020)
12112# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12113# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12114#else
12115# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12116 || ('j' <= (c) && (c) <= 'r') \
12117 || ('s' <= (c) && (c) <= 'z'))
12118# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12119#endif
10f2d63a 12120
6232543b
VS
12121#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12122int
12123main ()
12124{
12125 int i;
12126 for (i = 0; i < 256; i++)
12127 if (XOR (islower (i), ISLOWER (i))
12128 || toupper (i) != TOUPPER (i))
12129 exit(2);
12130 exit (0);
12131}
12132_ACEOF
12133rm -f conftest$ac_exeext
12134if { (eval echo "$as_me:12134: \"$ac_link\"") >&5
12135 (eval $ac_link) 2>&5
12136 ac_status=$?
12137 echo "$as_me:12137: \$? = $ac_status" >&5
12138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12139 { (eval echo "$as_me:12139: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:12142: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
10f2d63a
VZ
12144 :
12145else
6232543b
VS
12146 echo "$as_me: program exited with status $ac_status" >&5
12147echo "$as_me: failed program was:" >&5
12148cat conftest.$ac_ext >&5
12149ac_cv_header_stdc=no
10f2d63a 12150fi
6232543b 12151rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10f2d63a 12152fi
10f2d63a
VZ
12153fi
12154fi
6232543b
VS
12155echo "$as_me:12155: result: $ac_cv_header_stdc" >&5
12156echo "${ECHO_T}$ac_cv_header_stdc" >&6
10f2d63a 12157if test $ac_cv_header_stdc = yes; then
6232543b
VS
12158
12159cat >>confdefs.h <<\EOF
10f2d63a
VZ
12160#define STDC_HEADERS 1
12161EOF
12162
12163fi
12164
6232543b
VS
12165for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
12166do
12167ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12168echo "$as_me:12168: checking for $ac_header" >&5
12169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12170if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172else
12173 cat >conftest.$ac_ext <<_ACEOF
12174#line 12174 "configure"
10f2d63a 12175#include "confdefs.h"
6232543b
VS
12176#include <$ac_header>
12177_ACEOF
12178if { (eval echo "$as_me:12178: \"$ac_cpp conftest.$ac_ext\"") >&5
12179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12180 ac_status=$?
12181 egrep -v '^ *\+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:12184: \$? = $ac_status" >&5
12185 (exit $ac_status); } >/dev/null; then
12186 if test -s conftest.err; then
12187 ac_cpp_err=$ac_c_preproc_warn_flag
12188 else
12189 ac_cpp_err=
12190 fi
12191else
12192 ac_cpp_err=yes
12193fi
12194if test -z "$ac_cpp_err"; then
12195 eval "$ac_ac_Header=yes"
12196else
12197 echo "$as_me: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12199 eval "$ac_ac_Header=no"
12200fi
12201rm -f conftest.err conftest.$ac_ext
12202fi
12203echo "$as_me:12203: result: `eval echo '${'$ac_ac_Header'}'`" >&5
12204echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
12205if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12206 cat >>confdefs.h <<EOF
12207#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 12208EOF
6232543b
VS
12209
12210fi
12211done
12212
12213echo "$as_me:12213: checking for mode_t" >&5
12214echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12215if test "${ac_cv_type_mode_t+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217else
12218 cat >conftest.$ac_ext <<_ACEOF
12219#line 12219 "configure"
12220#include "confdefs.h"
12221$ac_includes_default
12222int
12223main ()
12224{
12225if ((mode_t *) 0)
12226 return 0;
12227if (sizeof (mode_t))
12228 return 0;
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
10f2d63a
VZ
12245 ac_cv_type_mode_t=yes
12246else
6232543b
VS
12247 echo "$as_me: failed program was:" >&5
12248cat conftest.$ac_ext >&5
12249ac_cv_type_mode_t=no
10f2d63a 12250fi
6232543b 12251rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 12252fi
6232543b
VS
12253echo "$as_me:12253: result: $ac_cv_type_mode_t" >&5
12254echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12255if test $ac_cv_type_mode_t = yes; then
12256 :
12257else
12258
12259cat >>confdefs.h <<EOF
10f2d63a
VZ
12260#define mode_t int
12261EOF
12262
12263fi
12264
6232543b
VS
12265echo "$as_me:12265: checking for off_t" >&5
12266echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12267if test "${ac_cv_type_off_t+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 12269else
6232543b
VS
12270 cat >conftest.$ac_ext <<_ACEOF
12271#line 12271 "configure"
10f2d63a 12272#include "confdefs.h"
6232543b
VS
12273$ac_includes_default
12274int
12275main ()
12276{
12277if ((off_t *) 0)
12278 return 0;
12279if (sizeof (off_t))
12280 return 0;
12281 ;
12282 return 0;
12283}
12284_ACEOF
12285rm -f conftest.$ac_objext
12286if { (eval echo "$as_me:12286: \"$ac_compile\"") >&5
12287 (eval $ac_compile) 2>&5
12288 ac_status=$?
12289 echo "$as_me:12289: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:12292: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:12295: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
10f2d63a
VZ
12297 ac_cv_type_off_t=yes
12298else
6232543b
VS
12299 echo "$as_me: failed program was:" >&5
12300cat conftest.$ac_ext >&5
12301ac_cv_type_off_t=no
10f2d63a 12302fi
6232543b 12303rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 12304fi
6232543b
VS
12305echo "$as_me:12305: result: $ac_cv_type_off_t" >&5
12306echo "${ECHO_T}$ac_cv_type_off_t" >&6
12307if test $ac_cv_type_off_t = yes; then
12308 :
12309else
12310
12311cat >>confdefs.h <<EOF
10f2d63a
VZ
12312#define off_t long
12313EOF
12314
12315fi
12316
6232543b
VS
12317echo "$as_me:12317: checking for pid_t" >&5
12318echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12319if test "${ac_cv_type_pid_t+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 12321else
6232543b
VS
12322 cat >conftest.$ac_ext <<_ACEOF
12323#line 12323 "configure"
10f2d63a 12324#include "confdefs.h"
6232543b
VS
12325$ac_includes_default
12326int
12327main ()
12328{
12329if ((pid_t *) 0)
12330 return 0;
12331if (sizeof (pid_t))
12332 return 0;
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (eval echo "$as_me:12338: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>&5
12340 ac_status=$?
12341 echo "$as_me:12341: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:12344: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:12347: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
10f2d63a
VZ
12349 ac_cv_type_pid_t=yes
12350else
6232543b
VS
12351 echo "$as_me: failed program was:" >&5
12352cat conftest.$ac_ext >&5
12353ac_cv_type_pid_t=no
10f2d63a 12354fi
6232543b 12355rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 12356fi
6232543b
VS
12357echo "$as_me:12357: result: $ac_cv_type_pid_t" >&5
12358echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12359if test $ac_cv_type_pid_t = yes; then
12360 :
12361else
12362
12363cat >>confdefs.h <<EOF
10f2d63a
VZ
12364#define pid_t int
12365EOF
12366
12367fi
12368
6232543b
VS
12369echo "$as_me:12369: checking for size_t" >&5
12370echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12371if test "${ac_cv_type_size_t+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 12373else
6232543b
VS
12374 cat >conftest.$ac_ext <<_ACEOF
12375#line 12375 "configure"
10f2d63a 12376#include "confdefs.h"
6232543b
VS
12377$ac_includes_default
12378int
12379main ()
12380{
12381if ((size_t *) 0)
12382 return 0;
12383if (sizeof (size_t))
12384 return 0;
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext
12390if { (eval echo "$as_me:12390: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>&5
12392 ac_status=$?
12393 echo "$as_me:12393: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:12396: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:12399: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
10f2d63a
VZ
12401 ac_cv_type_size_t=yes
12402else
6232543b
VS
12403 echo "$as_me: failed program was:" >&5
12404cat conftest.$ac_ext >&5
12405ac_cv_type_size_t=no
10f2d63a 12406fi
6232543b 12407rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 12408fi
6232543b
VS
12409echo "$as_me:12409: result: $ac_cv_type_size_t" >&5
12410echo "${ECHO_T}$ac_cv_type_size_t" >&6
12411if test $ac_cv_type_size_t = yes; then
12412 :
12413else
12414
12415cat >>confdefs.h <<EOF
10f2d63a
VZ
12416#define size_t unsigned
12417EOF
12418
12419fi
12420
6232543b
VS
12421echo "$as_me:12421: checking for uid_t in sys/types.h" >&5
12422echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12423if test "${ac_cv_type_uid_t+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 12425else
6232543b
VS
12426 cat >conftest.$ac_ext <<_ACEOF
12427#line 12427 "configure"
10f2d63a
VZ
12428#include "confdefs.h"
12429#include <sys/types.h>
6232543b
VS
12430
12431_ACEOF
10f2d63a
VZ
12432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12433 egrep "uid_t" >/dev/null 2>&1; then
10f2d63a
VZ
12434 ac_cv_type_uid_t=yes
12435else
10f2d63a
VZ
12436 ac_cv_type_uid_t=no
12437fi
12438rm -f conftest*
12439
12440fi
6232543b
VS
12441echo "$as_me:12441: result: $ac_cv_type_uid_t" >&5
12442echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10f2d63a 12443if test $ac_cv_type_uid_t = no; then
6232543b
VS
12444
12445cat >>confdefs.h <<\EOF
10f2d63a
VZ
12446#define uid_t int
12447EOF
12448
6232543b 12449cat >>confdefs.h <<\EOF
10f2d63a
VZ
12450#define gid_t int
12451EOF
12452
12453fi
12454
6232543b
VS
12455echo "$as_me:12455: checking for wchar_t" >&5
12456echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
12457if test "${wx_cv_type_wchar_t+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
0046ff7c 12459else
6232543b
VS
12460
12461 cat >conftest.$ac_ext <<_ACEOF
12462#line 12462 "configure"
0046ff7c
VS
12463#include "confdefs.h"
12464#include <wchar.h>
6232543b
VS
12465int
12466main ()
12467{
0046ff7c
VS
12468
12469 wchar_t wc, *ws;
12470 wc = L'a';
12471 ws = L"Hello, world!";
6232543b
VS
12472
12473 ;
12474 return 0;
12475}
12476_ACEOF
12477rm -f conftest.$ac_objext
12478if { (eval echo "$as_me:12478: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>&5
12480 ac_status=$?
12481 echo "$as_me:12481: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:12484: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:12487: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
1f8ae82f
GD
12489 wx_cv_type_wchar_t=yes
12490else
6232543b
VS
12491 echo "$as_me: failed program was:" >&5
12492cat conftest.$ac_ext >&5
12493cat >conftest.$ac_ext <<_ACEOF
12494#line 12494 "configure"
1f8ae82f
GD
12495#include "confdefs.h"
12496#include <stdlib.h>
6232543b
VS
12497int
12498main ()
12499{
1f8ae82f
GD
12500
12501 wchar_t wc, *ws;
12502 wc = L'a';
12503 ws = L"Hello, world!";
6232543b
VS
12504
12505 ;
12506 return 0;
12507}
12508_ACEOF
12509rm -f conftest.$ac_objext
12510if { (eval echo "$as_me:12510: \"$ac_compile\"") >&5
12511 (eval $ac_compile) 2>&5
12512 ac_status=$?
12513 echo "$as_me:12513: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -s conftest.$ac_objext'
12516 { (eval echo "$as_me:12516: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:12519: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
0046ff7c
VS
12521 wx_cv_type_wchar_t=yes
12522else
6232543b
VS
12523 echo "$as_me: failed program was:" >&5
12524cat conftest.$ac_ext >&5
12525wx_cv_type_wchar_t=no
1f8ae82f 12526fi
6232543b 12527rm -f conftest.$ac_objext conftest.$ac_ext
0046ff7c
VS
12528
12529fi
6232543b 12530rm -f conftest.$ac_objext conftest.$ac_ext
0046ff7c 12531
6232543b
VS
12532fi
12533echo "$as_me:12533: result: $wx_cv_type_wchar_t" >&5
12534echo "${ECHO_T}$wx_cv_type_wchar_t" >&6
0046ff7c 12535if test "$wx_cv_type_wchar_t" = yes ; then
6232543b 12536 cat >>confdefs.h <<\EOF
0046ff7c
VS
12537#define wxUSE_WCHAR_T 1
12538EOF
12539
12540fi
12541
6232543b
VS
12542echo "$as_me:12542: checking for pw_gecos in struct passwd" >&5
12543echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
12544if test "${wx_cv_struct_pw_gecos+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
b12915c1 12546else
6232543b
VS
12547
12548 cat >conftest.$ac_ext <<_ACEOF
12549#line 12549 "configure"
b12915c1
VZ
12550#include "confdefs.h"
12551#include <pwd.h>
6232543b
VS
12552int
12553main ()
12554{
b12915c1
VZ
12555
12556 char *p;
12557 struct passwd *pw;
12558 p = pw->pw_gecos;
6232543b
VS
12559
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
b12915c1 12577 wx_cv_struct_pw_gecos=yes
6232543b 12578
b12915c1 12579else
6232543b
VS
12580 echo "$as_me: failed program was:" >&5
12581cat conftest.$ac_ext >&5
12582
b12915c1 12583 wx_cv_struct_pw_gecos=no
b12915c1
VZ
12584
12585fi
6232543b 12586rm -f conftest.$ac_objext conftest.$ac_ext
b12915c1 12587
6232543b
VS
12588fi
12589echo "$as_me:12589: result: $wx_cv_struct_pw_gecos" >&5
12590echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
b12915c1 12591
bd3277fe 12592if test "$wx_cv_struct_pw_gecos" = "yes"; then
6232543b 12593 cat >>confdefs.h <<\EOF
bd3277fe
VZ
12594#define HAVE_PW_GECOS 1
12595EOF
12596
12597fi
12598
6232543b
VS
12599echo "$as_me:12599: checking for $CC option to accept ANSI C" >&5
12600echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12601if test "${ac_cv_prog_cc_stdc+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 12603else
6232543b
VS
12604 ac_cv_prog_cc_stdc=no
12605ac_save_CC=$CC
12606cat >conftest.$ac_ext <<_ACEOF
12607#line 12607 "configure"
10f2d63a 12608#include "confdefs.h"
6232543b
VS
12609#include <stdarg.h>
12610#include <stdio.h>
12611#include <sys/types.h>
12612#include <sys/stat.h>
12613/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12614struct buf { int x; };
12615FILE * (*rcsopen) (struct buf *, struct stat *, int);
12616static char *e (p, i)
12617 char **p;
12618 int i;
12619{
12620 return p[i];
10f2d63a 12621}
6232543b
VS
12622static char *f (char * (*g) (char **, int), char **p, ...)
12623{
12624 char *s;
12625 va_list v;
12626 va_start (v,p);
12627 s = g (p, va_arg (v,int));
12628 va_end (v);
12629 return s;
10f2d63a 12630}
6232543b
VS
12631int test (int i, double x);
12632struct s1 {int (*f) (int a);};
12633struct s2 {int (*f) (double a);};
12634int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12635int argc;
12636char **argv;
12637int
12638main ()
12639{
12640return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12641 ;
12642 return 0;
10f2d63a 12643}
6232543b
VS
12644_ACEOF
12645# Don't try gcc -ansi; that turns off useful extensions and
12646# breaks some systems' header files.
12647# AIX -qlanglvl=ansi
12648# Ultrix and OSF/1 -std1
12649# HP-UX 10.20 and later -Ae
12650# HP-UX older versions -Aa -D_HPUX_SOURCE
12651# SVR4 -Xc -D__EXTENSIONS__
12652for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12653do
12654 CC="$ac_save_CC $ac_arg"
12655 rm -f conftest.$ac_objext
12656if { (eval echo "$as_me:12656: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>&5
12658 ac_status=$?
12659 echo "$as_me:12659: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -s conftest.$ac_objext'
12662 { (eval echo "$as_me:12662: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:12665: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_prog_cc_stdc=$ac_arg
12668break
12669else
12670 echo "$as_me: failed program was:" >&5
12671cat conftest.$ac_ext >&5
12672fi
12673rm -f conftest.$ac_objext
12674done
12675rm -f conftest.$ac_ext conftest.$ac_objext
12676CC=$ac_save_CC
10f2d63a 12677
6232543b
VS
12678fi
12679
12680case "x$ac_cv_prog_cc_stdc" in
12681 x|xno)
12682 echo "$as_me:12682: result: none needed" >&5
12683echo "${ECHO_T}none needed" >&6 ;;
12684 *)
12685 echo "$as_me:12685: result: $ac_cv_prog_cc_stdc" >&5
12686echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12687 CC="$CC $ac_cv_prog_cc_stdc" ;;
12688esac
12689
12690echo "$as_me:12690: checking for an ANSI C-conforming const" >&5
12691echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12692if test "${ac_cv_c_const+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694else
12695 cat >conftest.$ac_ext <<_ACEOF
12696#line 12696 "configure"
12697#include "confdefs.h"
12698
12699int
12700main ()
12701{
12702/* FIXME: Include the comments suggested by Paul. */
12703#ifndef __cplusplus
12704 /* Ultrix mips cc rejects this. */
12705 typedef int charset[2];
12706 const charset x;
12707 /* SunOS 4.1.1 cc rejects this. */
12708 char const *const *ccp;
12709 char **p;
12710 /* NEC SVR4.0.2 mips cc rejects this. */
12711 struct point {int x, y;};
12712 static struct point const zero = {0,0};
12713 /* AIX XL C 1.02.0.0 rejects this.
12714 It does not let you subtract one const X* pointer from another in
12715 an arm of an if-expression whose if-part is not a constant
12716 expression */
12717 const char *g = "string";
12718 ccp = &g + (g ? g-g : 0);
12719 /* HPUX 7.0 cc rejects these. */
12720 ++ccp;
12721 p = (char**) ccp;
12722 ccp = (char const *const *) p;
12723 { /* SCO 3.2v4 cc rejects this. */
12724 char *t;
12725 char const *s = 0 ? (char *) 0 : (char const *) 0;
12726
12727 *t++ = 0;
12728 }
12729 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12730 int x[] = {25, 17};
12731 const int *foo = &x[0];
12732 ++foo;
12733 }
12734 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12735 typedef const int *iptr;
12736 iptr p = 0;
12737 ++p;
12738 }
12739 { /* AIX XL C 1.02.0.0 rejects this saying
12740 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12741 struct s { int j; const int *ap[3]; };
12742 struct s *b; b->j = 5;
12743 }
12744 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12745 const int foo = 10;
12746 }
12747#endif
12748
12749 ;
12750 return 0;
12751}
12752_ACEOF
12753rm -f conftest.$ac_objext
12754if { (eval echo "$as_me:12754: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>&5
12756 ac_status=$?
12757 echo "$as_me:12757: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:12760: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:12763: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
10f2d63a
VZ
12765 ac_cv_c_const=yes
12766else
6232543b
VS
12767 echo "$as_me: failed program was:" >&5
12768cat conftest.$ac_ext >&5
12769ac_cv_c_const=no
10f2d63a 12770fi
6232543b 12771rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 12772fi
6232543b
VS
12773echo "$as_me:12773: result: $ac_cv_c_const" >&5
12774echo "${ECHO_T}$ac_cv_c_const" >&6
10f2d63a 12775if test $ac_cv_c_const = no; then
6232543b
VS
12776
12777cat >>confdefs.h <<\EOF
12778#define const
10f2d63a
VZ
12779EOF
12780
12781fi
12782
6232543b
VS
12783echo "$as_me:12783: checking for inline" >&5
12784echo $ECHO_N "checking for inline... $ECHO_C" >&6
12785if test "${ac_cv_c_inline+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
12787else
12788 ac_cv_c_inline=no
12789for ac_kw in inline __inline__ __inline; do
6232543b
VS
12790 cat >conftest.$ac_ext <<_ACEOF
12791#line 12791 "configure"
10f2d63a 12792#include "confdefs.h"
6232543b
VS
12793#ifndef __cplusplus
12794static $ac_kw int static_foo () {return 0; }
12795$ac_kw int foo () {return 0; }
12796#endif
10f2d63a 12797
6232543b
VS
12798_ACEOF
12799rm -f conftest.$ac_objext
12800if { (eval echo "$as_me:12800: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>&5
12802 ac_status=$?
12803 echo "$as_me:12803: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:12806: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
10f2d63a
VZ
12811 ac_cv_c_inline=$ac_kw; break
12812else
6232543b
VS
12813 echo "$as_me: failed program was:" >&5
12814cat conftest.$ac_ext >&5
10f2d63a 12815fi
6232543b 12816rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a
VZ
12817done
12818
12819fi
6232543b
VS
12820echo "$as_me:12820: result: $ac_cv_c_inline" >&5
12821echo "${ECHO_T}$ac_cv_c_inline" >&6
12822case $ac_cv_c_inline in
10f2d63a 12823 inline | yes) ;;
6232543b
VS
12824 no)
12825cat >>confdefs.h <<\EOF
12826#define inline
10f2d63a
VZ
12827EOF
12828 ;;
6232543b 12829 *) cat >>confdefs.h <<EOF
10f2d63a
VZ
12830#define inline $ac_cv_c_inline
12831EOF
12832 ;;
12833esac
12834
6232543b
VS
12835echo "$as_me:12835: checking for char" >&5
12836echo $ECHO_N "checking for char... $ECHO_C" >&6
12837if test "${ac_cv_type_char+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 12839else
6232543b
VS
12840 cat >conftest.$ac_ext <<_ACEOF
12841#line 12841 "configure"
12842#include "confdefs.h"
12843$ac_includes_default
12844int
12845main ()
12846{
12847if ((char *) 0)
12848 return 0;
12849if (sizeof (char))
12850 return 0;
12851 ;
12852 return 0;
12853}
12854_ACEOF
12855rm -f conftest.$ac_objext
12856if { (eval echo "$as_me:12856: \"$ac_compile\"") >&5
12857 (eval $ac_compile) 2>&5
12858 ac_status=$?
12859 echo "$as_me:12859: \$? = $ac_status" >&5
12860 (exit $ac_status); } &&
12861 { ac_try='test -s conftest.$ac_objext'
12862 { (eval echo "$as_me:12862: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:12865: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 ac_cv_type_char=yes
12868else
12869 echo "$as_me: failed program was:" >&5
12870cat conftest.$ac_ext >&5
12871ac_cv_type_char=no
12872fi
12873rm -f conftest.$ac_objext conftest.$ac_ext
12874fi
12875echo "$as_me:12875: result: $ac_cv_type_char" >&5
12876echo "${ECHO_T}$ac_cv_type_char" >&6
12877
12878echo "$as_me:12878: checking size of char" >&5
12879echo $ECHO_N "checking size of char... $ECHO_C" >&6
12880if test "${ac_cv_sizeof_char+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882else
12883 if test "$ac_cv_type_char" = yes; then
10f2d63a 12884 if test "$cross_compiling" = yes; then
6232543b
VS
12885 # Depending upon the size, compute the lo and hi bounds.
12886cat >conftest.$ac_ext <<_ACEOF
12887#line 12887 "configure"
12888#include "confdefs.h"
12889$ac_includes_default
12890int
12891main ()
12892{
12893int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
12894 ;
12895 return 0;
12896}
12897_ACEOF
12898rm -f conftest.$ac_objext
12899if { (eval echo "$as_me:12899: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>&5
12901 ac_status=$?
12902 echo "$as_me:12902: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -s conftest.$ac_objext'
12905 { (eval echo "$as_me:12905: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:12908: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 ac_lo=0 ac_mid=0
12911 while :; do
12912 cat >conftest.$ac_ext <<_ACEOF
12913#line 12913 "configure"
12914#include "confdefs.h"
12915$ac_includes_default
12916int
12917main ()
12918{
12919int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
12920 ;
12921 return 0;
12922}
12923_ACEOF
12924rm -f conftest.$ac_objext
12925if { (eval echo "$as_me:12925: \"$ac_compile\"") >&5
12926 (eval $ac_compile) 2>&5
12927 ac_status=$?
12928 echo "$as_me:12928: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -s conftest.$ac_objext'
12931 { (eval echo "$as_me:12931: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:12934: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_hi=$ac_mid; break
12937else
12938 echo "$as_me: failed program was:" >&5
12939cat conftest.$ac_ext >&5
12940ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12941fi
12942rm -f conftest.$ac_objext conftest.$ac_ext
12943 done
10f2d63a 12944else
6232543b
VS
12945 echo "$as_me: failed program was:" >&5
12946cat conftest.$ac_ext >&5
12947ac_hi=-1 ac_mid=-1
12948 while :; do
12949 cat >conftest.$ac_ext <<_ACEOF
12950#line 12950 "configure"
10f2d63a 12951#include "confdefs.h"
6232543b
VS
12952$ac_includes_default
12953int
12954main ()
10f2d63a 12955{
6232543b
VS
12956int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
12957 ;
12958 return 0;
10f2d63a 12959}
6232543b
VS
12960_ACEOF
12961rm -f conftest.$ac_objext
12962if { (eval echo "$as_me:12962: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>&5
12964 ac_status=$?
12965 echo "$as_me:12965: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:12968: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:12971: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_lo=$ac_mid; break
12974else
12975 echo "$as_me: failed program was:" >&5
12976cat conftest.$ac_ext >&5
12977ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12978fi
12979rm -f conftest.$ac_objext conftest.$ac_ext
12980 done
12981fi
12982rm -f conftest.$ac_objext conftest.$ac_ext
12983# Binary search between lo and hi bounds.
12984while test "x$ac_lo" != "x$ac_hi"; do
12985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12986 cat >conftest.$ac_ext <<_ACEOF
12987#line 12987 "configure"
12988#include "confdefs.h"
12989$ac_includes_default
12990int
12991main ()
12992{
12993int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
12994 ;
12995 return 0;
12996}
12997_ACEOF
12998rm -f conftest.$ac_objext
12999if { (eval echo "$as_me:12999: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>&5
13001 ac_status=$?
13002 echo "$as_me:13002: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -s conftest.$ac_objext'
13005 { (eval echo "$as_me:13005: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:13008: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_hi=$ac_mid
13011else
13012 echo "$as_me: failed program was:" >&5
13013cat conftest.$ac_ext >&5
13014ac_lo=`expr $ac_mid + 1`
13015fi
13016rm -f conftest.$ac_objext conftest.$ac_ext
13017done
13018ac_cv_sizeof_char=$ac_lo
10f2d63a 13019else
6232543b
VS
13020 if test "$cross_compiling" = yes; then
13021 { { echo "$as_me:13021: error: cannot run test program while cross compiling" >&5
13022echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13023 { (exit 1); exit 1; }; }
13024else
13025 cat >conftest.$ac_ext <<_ACEOF
13026#line 13026 "configure"
13027#include "confdefs.h"
13028$ac_includes_default
13029int
13030main ()
13031{
13032FILE *f = fopen ("conftest.val", "w");
13033if (!f)
13034 exit (1);
13035fprintf (f, "%d", (sizeof (char)));
13036fclose (f);
13037 ;
13038 return 0;
13039}
13040_ACEOF
13041rm -f conftest$ac_exeext
13042if { (eval echo "$as_me:13042: \"$ac_link\"") >&5
13043 (eval $ac_link) 2>&5
13044 ac_status=$?
13045 echo "$as_me:13045: \$? = $ac_status" >&5
13046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13047 { (eval echo "$as_me:13047: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:13050: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_sizeof_char=`cat conftest.val`
13053else
13054 echo "$as_me: program exited with status $ac_status" >&5
13055echo "$as_me: failed program was:" >&5
13056cat conftest.$ac_ext >&5
10f2d63a 13057fi
6232543b 13058rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10f2d63a 13059fi
10f2d63a 13060fi
6232543b
VS
13061rm -f conftest.val
13062else
13063 ac_cv_sizeof_char=0
13064fi
13065fi
13066echo "$as_me:13066: result: $ac_cv_sizeof_char" >&5
13067echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13068cat >>confdefs.h <<EOF
10f2d63a
VZ
13069#define SIZEOF_CHAR $ac_cv_sizeof_char
13070EOF
13071
6232543b
VS
13072echo "$as_me:13072: checking for short" >&5
13073echo $ECHO_N "checking for short... $ECHO_C" >&6
13074if test "${ac_cv_type_short+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 13076else
6232543b
VS
13077 cat >conftest.$ac_ext <<_ACEOF
13078#line 13078 "configure"
13079#include "confdefs.h"
13080$ac_includes_default
13081int
13082main ()
13083{
13084if ((short *) 0)
13085 return 0;
13086if (sizeof (short))
13087 return 0;
13088 ;
13089 return 0;
13090}
13091_ACEOF
13092rm -f conftest.$ac_objext
13093if { (eval echo "$as_me:13093: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>&5
13095 ac_status=$?
13096 echo "$as_me:13096: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
13098 { ac_try='test -s conftest.$ac_objext'
13099 { (eval echo "$as_me:13099: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:13102: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 ac_cv_type_short=yes
13105else
13106 echo "$as_me: failed program was:" >&5
13107cat conftest.$ac_ext >&5
13108ac_cv_type_short=no
13109fi
13110rm -f conftest.$ac_objext conftest.$ac_ext
13111fi
13112echo "$as_me:13112: result: $ac_cv_type_short" >&5
13113echo "${ECHO_T}$ac_cv_type_short" >&6
13114
13115echo "$as_me:13115: checking size of short" >&5
13116echo $ECHO_N "checking size of short... $ECHO_C" >&6
13117if test "${ac_cv_sizeof_short+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119else
13120 if test "$ac_cv_type_short" = yes; then
10f2d63a 13121 if test "$cross_compiling" = yes; then
6232543b
VS
13122 # Depending upon the size, compute the lo and hi bounds.
13123cat >conftest.$ac_ext <<_ACEOF
13124#line 13124 "configure"
13125#include "confdefs.h"
13126$ac_includes_default
13127int
13128main ()
13129{
13130int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
13131 ;
13132 return 0;
13133}
13134_ACEOF
13135rm -f conftest.$ac_objext
13136if { (eval echo "$as_me:13136: \"$ac_compile\"") >&5
13137 (eval $ac_compile) 2>&5
13138 ac_status=$?
13139 echo "$as_me:13139: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -s conftest.$ac_objext'
13142 { (eval echo "$as_me:13142: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:13145: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_lo=0 ac_mid=0
13148 while :; do
13149 cat >conftest.$ac_ext <<_ACEOF
13150#line 13150 "configure"
13151#include "confdefs.h"
13152$ac_includes_default
13153int
13154main ()
13155{
13156int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
13157 ;
13158 return 0;
13159}
13160_ACEOF
13161rm -f conftest.$ac_objext
13162if { (eval echo "$as_me:13162: \"$ac_compile\"") >&5
13163 (eval $ac_compile) 2>&5
13164 ac_status=$?
13165 echo "$as_me:13165: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -s conftest.$ac_objext'
13168 { (eval echo "$as_me:13168: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 echo "$as_me:13171: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_hi=$ac_mid; break
13174else
13175 echo "$as_me: failed program was:" >&5
13176cat conftest.$ac_ext >&5
13177ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13178fi
13179rm -f conftest.$ac_objext conftest.$ac_ext
13180 done
10f2d63a 13181else
6232543b
VS
13182 echo "$as_me: failed program was:" >&5
13183cat conftest.$ac_ext >&5
13184ac_hi=-1 ac_mid=-1
13185 while :; do
13186 cat >conftest.$ac_ext <<_ACEOF
13187#line 13187 "configure"
10f2d63a 13188#include "confdefs.h"
6232543b
VS
13189$ac_includes_default
13190int
13191main ()
10f2d63a 13192{
6232543b
VS
13193int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
13194 ;
13195 return 0;
10f2d63a 13196}
6232543b
VS
13197_ACEOF
13198rm -f conftest.$ac_objext
13199if { (eval echo "$as_me:13199: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>&5
13201 ac_status=$?
13202 echo "$as_me:13202: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:13205: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 echo "$as_me:13208: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_lo=$ac_mid; break
13211else
13212 echo "$as_me: failed program was:" >&5
13213cat conftest.$ac_ext >&5
13214ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13215fi
13216rm -f conftest.$ac_objext conftest.$ac_ext
13217 done
13218fi
13219rm -f conftest.$ac_objext conftest.$ac_ext
13220# Binary search between lo and hi bounds.
13221while test "x$ac_lo" != "x$ac_hi"; do
13222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13223 cat >conftest.$ac_ext <<_ACEOF
13224#line 13224 "configure"
13225#include "confdefs.h"
13226$ac_includes_default
13227int
13228main ()
13229{
13230int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
13231 ;
13232 return 0;
13233}
13234_ACEOF
13235rm -f conftest.$ac_objext
13236if { (eval echo "$as_me:13236: \"$ac_compile\"") >&5
13237 (eval $ac_compile) 2>&5
13238 ac_status=$?
13239 echo "$as_me:13239: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -s conftest.$ac_objext'
13242 { (eval echo "$as_me:13242: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:13245: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247 ac_hi=$ac_mid
13248else
13249 echo "$as_me: failed program was:" >&5
13250cat conftest.$ac_ext >&5
13251ac_lo=`expr $ac_mid + 1`
13252fi
13253rm -f conftest.$ac_objext conftest.$ac_ext
13254done
13255ac_cv_sizeof_short=$ac_lo
10f2d63a 13256else
6232543b
VS
13257 if test "$cross_compiling" = yes; then
13258 { { echo "$as_me:13258: error: cannot run test program while cross compiling" >&5
13259echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13260 { (exit 1); exit 1; }; }
13261else
13262 cat >conftest.$ac_ext <<_ACEOF
13263#line 13263 "configure"
13264#include "confdefs.h"
13265$ac_includes_default
13266int
13267main ()
13268{
13269FILE *f = fopen ("conftest.val", "w");
13270if (!f)
13271 exit (1);
13272fprintf (f, "%d", (sizeof (short)));
13273fclose (f);
13274 ;
13275 return 0;
13276}
13277_ACEOF
13278rm -f conftest$ac_exeext
13279if { (eval echo "$as_me:13279: \"$ac_link\"") >&5
13280 (eval $ac_link) 2>&5
13281 ac_status=$?
13282 echo "$as_me:13282: \$? = $ac_status" >&5
13283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13284 { (eval echo "$as_me:13284: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:13287: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_sizeof_short=`cat conftest.val`
13290else
13291 echo "$as_me: program exited with status $ac_status" >&5
13292echo "$as_me: failed program was:" >&5
13293cat conftest.$ac_ext >&5
10f2d63a 13294fi
6232543b 13295rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10f2d63a 13296fi
10f2d63a 13297fi
6232543b
VS
13298rm -f conftest.val
13299else
13300 ac_cv_sizeof_short=0
13301fi
13302fi
13303echo "$as_me:13303: result: $ac_cv_sizeof_short" >&5
13304echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13305cat >>confdefs.h <<EOF
10f2d63a
VZ
13306#define SIZEOF_SHORT $ac_cv_sizeof_short
13307EOF
13308
6232543b
VS
13309echo "$as_me:13309: checking for int *" >&5
13310echo $ECHO_N "checking for int *... $ECHO_C" >&6
13311if test "${ac_cv_type_int_p+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 13313else
6232543b
VS
13314 cat >conftest.$ac_ext <<_ACEOF
13315#line 13315 "configure"
13316#include "confdefs.h"
13317$ac_includes_default
13318int
13319main ()
13320{
13321if ((int * *) 0)
13322 return 0;
13323if (sizeof (int *))
13324 return 0;
13325 ;
13326 return 0;
13327}
13328_ACEOF
13329rm -f conftest.$ac_objext
13330if { (eval echo "$as_me:13330: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>&5
13332 ac_status=$?
13333 echo "$as_me:13333: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -s conftest.$ac_objext'
13336 { (eval echo "$as_me:13336: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13338 ac_status=$?
13339 echo "$as_me:13339: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_cv_type_int_p=yes
13342else
13343 echo "$as_me: failed program was:" >&5
13344cat conftest.$ac_ext >&5
13345ac_cv_type_int_p=no
13346fi
13347rm -f conftest.$ac_objext conftest.$ac_ext
13348fi
13349echo "$as_me:13349: result: $ac_cv_type_int_p" >&5
13350echo "${ECHO_T}$ac_cv_type_int_p" >&6
13351
13352echo "$as_me:13352: checking size of int *" >&5
13353echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13354if test "${ac_cv_sizeof_int_p+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356else
13357 if test "$ac_cv_type_int_p" = yes; then
10f2d63a 13358 if test "$cross_compiling" = yes; then
6232543b
VS
13359 # Depending upon the size, compute the lo and hi bounds.
13360cat >conftest.$ac_ext <<_ACEOF
13361#line 13361 "configure"
13362#include "confdefs.h"
13363$ac_includes_default
13364int
13365main ()
13366{
13367int _array_ [1 - 2 * !((sizeof (int *)) >= 0)]
13368 ;
13369 return 0;
13370}
13371_ACEOF
13372rm -f conftest.$ac_objext
13373if { (eval echo "$as_me:13373: \"$ac_compile\"") >&5
13374 (eval $ac_compile) 2>&5
13375 ac_status=$?
13376 echo "$as_me:13376: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -s conftest.$ac_objext'
13379 { (eval echo "$as_me:13379: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:13382: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 ac_lo=0 ac_mid=0
13385 while :; do
13386 cat >conftest.$ac_ext <<_ACEOF
13387#line 13387 "configure"
13388#include "confdefs.h"
13389$ac_includes_default
13390int
13391main ()
13392{
13393int _array_ [1 - 2 * !((sizeof (int *)) <= $ac_mid)]
13394 ;
13395 return 0;
13396}
13397_ACEOF
13398rm -f conftest.$ac_objext
13399if { (eval echo "$as_me:13399: \"$ac_compile\"") >&5
13400 (eval $ac_compile) 2>&5
13401 ac_status=$?
13402 echo "$as_me:13402: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -s conftest.$ac_objext'
13405 { (eval echo "$as_me:13405: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:13408: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 ac_hi=$ac_mid; break
13411else
13412 echo "$as_me: failed program was:" >&5
13413cat conftest.$ac_ext >&5
13414ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13415fi
13416rm -f conftest.$ac_objext conftest.$ac_ext
13417 done
10f2d63a 13418else
6232543b
VS
13419 echo "$as_me: failed program was:" >&5
13420cat conftest.$ac_ext >&5
13421ac_hi=-1 ac_mid=-1
13422 while :; do
13423 cat >conftest.$ac_ext <<_ACEOF
13424#line 13424 "configure"
10f2d63a 13425#include "confdefs.h"
6232543b
VS
13426$ac_includes_default
13427int
13428main ()
10f2d63a 13429{
6232543b
VS
13430int _array_ [1 - 2 * !((sizeof (int *)) >= $ac_mid)]
13431 ;
13432 return 0;
10f2d63a 13433}
6232543b
VS
13434_ACEOF
13435rm -f conftest.$ac_objext
13436if { (eval echo "$as_me:13436: \"$ac_compile\"") >&5
13437 (eval $ac_compile) 2>&5
13438 ac_status=$?
13439 echo "$as_me:13439: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -s conftest.$ac_objext'
13442 { (eval echo "$as_me:13442: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:13445: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_lo=$ac_mid; break
13448else
13449 echo "$as_me: failed program was:" >&5
13450cat conftest.$ac_ext >&5
13451ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13452fi
13453rm -f conftest.$ac_objext conftest.$ac_ext
13454 done
13455fi
13456rm -f conftest.$ac_objext conftest.$ac_ext
13457# Binary search between lo and hi bounds.
13458while test "x$ac_lo" != "x$ac_hi"; do
13459 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13460 cat >conftest.$ac_ext <<_ACEOF
13461#line 13461 "configure"
13462#include "confdefs.h"
13463$ac_includes_default
13464int
13465main ()
13466{
13467int _array_ [1 - 2 * !((sizeof (int *)) <= $ac_mid)]
13468 ;
13469 return 0;
13470}
13471_ACEOF
13472rm -f conftest.$ac_objext
13473if { (eval echo "$as_me:13473: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>&5
13475 ac_status=$?
13476 echo "$as_me:13476: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -s conftest.$ac_objext'
13479 { (eval echo "$as_me:13479: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:13482: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 ac_hi=$ac_mid
13485else
13486 echo "$as_me: failed program was:" >&5
13487cat conftest.$ac_ext >&5
13488ac_lo=`expr $ac_mid + 1`
13489fi
13490rm -f conftest.$ac_objext conftest.$ac_ext
13491done
13492ac_cv_sizeof_int_p=$ac_lo
13493else
13494 if test "$cross_compiling" = yes; then
13495 { { echo "$as_me:13495: error: cannot run test program while cross compiling" >&5
13496echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13497 { (exit 1); exit 1; }; }
13498else
13499 cat >conftest.$ac_ext <<_ACEOF
13500#line 13500 "configure"
13501#include "confdefs.h"
13502$ac_includes_default
13503int
13504main ()
13505{
13506FILE *f = fopen ("conftest.val", "w");
13507if (!f)
13508 exit (1);
13509fprintf (f, "%d", (sizeof (int *)));
13510fclose (f);
13511 ;
13512 return 0;
13513}
13514_ACEOF
13515rm -f conftest$ac_exeext
13516if { (eval echo "$as_me:13516: \"$ac_link\"") >&5
13517 (eval $ac_link) 2>&5
13518 ac_status=$?
13519 echo "$as_me:13519: \$? = $ac_status" >&5
13520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13521 { (eval echo "$as_me:13521: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:13524: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 ac_cv_sizeof_int_p=`cat conftest.val`
13527else
13528 echo "$as_me: program exited with status $ac_status" >&5
13529echo "$as_me: failed program was:" >&5
13530cat conftest.$ac_ext >&5
13531fi
13532rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
13533fi
13534fi
13535rm -f conftest.val
10f2d63a 13536else
10f2d63a
VZ
13537 ac_cv_sizeof_int_p=0
13538fi
10f2d63a 13539fi
6232543b
VS
13540echo "$as_me:13540: result: $ac_cv_sizeof_int_p" >&5
13541echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13542cat >>confdefs.h <<EOF
13543#define SIZEOF_INT_P $ac_cv_sizeof_int_p
13544EOF
10f2d63a 13545
6232543b
VS
13546echo "$as_me:13546: checking for int" >&5
13547echo $ECHO_N "checking for int... $ECHO_C" >&6
13548if test "${ac_cv_type_int+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550else
13551 cat >conftest.$ac_ext <<_ACEOF
13552#line 13552 "configure"
13553#include "confdefs.h"
13554$ac_includes_default
13555int
13556main ()
13557{
13558if ((int *) 0)
13559 return 0;
13560if (sizeof (int))
13561 return 0;
13562 ;
13563 return 0;
13564}
13565_ACEOF
13566rm -f conftest.$ac_objext
13567if { (eval echo "$as_me:13567: \"$ac_compile\"") >&5
13568 (eval $ac_compile) 2>&5
13569 ac_status=$?
13570 echo "$as_me:13570: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:13573: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:13576: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_cv_type_int=yes
13579else
13580 echo "$as_me: failed program was:" >&5
13581cat conftest.$ac_ext >&5
13582ac_cv_type_int=no
13583fi
13584rm -f conftest.$ac_objext conftest.$ac_ext
13585fi
13586echo "$as_me:13586: result: $ac_cv_type_int" >&5
13587echo "${ECHO_T}$ac_cv_type_int" >&6
13588
13589echo "$as_me:13589: checking size of int" >&5
13590echo $ECHO_N "checking size of int... $ECHO_C" >&6
13591if test "${ac_cv_sizeof_int+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593else
13594 if test "$ac_cv_type_int" = yes; then
13595 if test "$cross_compiling" = yes; then
13596 # Depending upon the size, compute the lo and hi bounds.
13597cat >conftest.$ac_ext <<_ACEOF
13598#line 13598 "configure"
13599#include "confdefs.h"
13600$ac_includes_default
13601int
13602main ()
13603{
13604int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
13605 ;
13606 return 0;
13607}
13608_ACEOF
13609rm -f conftest.$ac_objext
13610if { (eval echo "$as_me:13610: \"$ac_compile\"") >&5
13611 (eval $ac_compile) 2>&5
13612 ac_status=$?
13613 echo "$as_me:13613: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
13615 { ac_try='test -s conftest.$ac_objext'
13616 { (eval echo "$as_me:13616: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:13619: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_lo=0 ac_mid=0
13622 while :; do
13623 cat >conftest.$ac_ext <<_ACEOF
13624#line 13624 "configure"
13625#include "confdefs.h"
13626$ac_includes_default
13627int
13628main ()
13629{
13630int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
13631 ;
13632 return 0;
13633}
13634_ACEOF
13635rm -f conftest.$ac_objext
13636if { (eval echo "$as_me:13636: \"$ac_compile\"") >&5
13637 (eval $ac_compile) 2>&5
13638 ac_status=$?
13639 echo "$as_me:13639: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -s conftest.$ac_objext'
13642 { (eval echo "$as_me:13642: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:13645: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_hi=$ac_mid; break
13648else
13649 echo "$as_me: failed program was:" >&5
13650cat conftest.$ac_ext >&5
13651ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13652fi
13653rm -f conftest.$ac_objext conftest.$ac_ext
13654 done
13655else
13656 echo "$as_me: failed program was:" >&5
13657cat conftest.$ac_ext >&5
13658ac_hi=-1 ac_mid=-1
13659 while :; do
13660 cat >conftest.$ac_ext <<_ACEOF
13661#line 13661 "configure"
13662#include "confdefs.h"
13663$ac_includes_default
13664int
13665main ()
13666{
13667int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
13668 ;
13669 return 0;
13670}
13671_ACEOF
13672rm -f conftest.$ac_objext
13673if { (eval echo "$as_me:13673: \"$ac_compile\"") >&5
13674 (eval $ac_compile) 2>&5
13675 ac_status=$?
13676 echo "$as_me:13676: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (eval echo "$as_me:13679: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:13682: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 ac_lo=$ac_mid; break
13685else
13686 echo "$as_me: failed program was:" >&5
13687cat conftest.$ac_ext >&5
13688ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13689fi
13690rm -f conftest.$ac_objext conftest.$ac_ext
13691 done
13692fi
13693rm -f conftest.$ac_objext conftest.$ac_ext
13694# Binary search between lo and hi bounds.
13695while test "x$ac_lo" != "x$ac_hi"; do
13696 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13697 cat >conftest.$ac_ext <<_ACEOF
13698#line 13698 "configure"
13699#include "confdefs.h"
13700$ac_includes_default
13701int
13702main ()
13703{
13704int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
13705 ;
13706 return 0;
13707}
13708_ACEOF
13709rm -f conftest.$ac_objext
13710if { (eval echo "$as_me:13710: \"$ac_compile\"") >&5
13711 (eval $ac_compile) 2>&5
13712 ac_status=$?
13713 echo "$as_me:13713: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:13716: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:13719: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_hi=$ac_mid
13722else
13723 echo "$as_me: failed program was:" >&5
13724cat conftest.$ac_ext >&5
13725ac_lo=`expr $ac_mid + 1`
13726fi
13727rm -f conftest.$ac_objext conftest.$ac_ext
13728done
13729ac_cv_sizeof_int=$ac_lo
13730else
13731 if test "$cross_compiling" = yes; then
13732 { { echo "$as_me:13732: error: cannot run test program while cross compiling" >&5
13733echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13734 { (exit 1); exit 1; }; }
13735else
13736 cat >conftest.$ac_ext <<_ACEOF
13737#line 13737 "configure"
13738#include "confdefs.h"
13739$ac_includes_default
13740int
13741main ()
13742{
13743FILE *f = fopen ("conftest.val", "w");
13744if (!f)
13745 exit (1);
13746fprintf (f, "%d", (sizeof (int)));
13747fclose (f);
13748 ;
13749 return 0;
13750}
13751_ACEOF
13752rm -f conftest$ac_exeext
13753if { (eval echo "$as_me:13753: \"$ac_link\"") >&5
13754 (eval $ac_link) 2>&5
13755 ac_status=$?
13756 echo "$as_me:13756: \$? = $ac_status" >&5
13757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13758 { (eval echo "$as_me:13758: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:13761: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_sizeof_int=`cat conftest.val`
13764else
13765 echo "$as_me: program exited with status $ac_status" >&5
13766echo "$as_me: failed program was:" >&5
13767cat conftest.$ac_ext >&5
13768fi
13769rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
13770fi
13771fi
13772rm -f conftest.val
13773else
13774 ac_cv_sizeof_int=0
13775fi
13776fi
13777echo "$as_me:13777: result: $ac_cv_sizeof_int" >&5
13778echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13779cat >>confdefs.h <<EOF
13780#define SIZEOF_INT $ac_cv_sizeof_int
13781EOF
13782
13783echo "$as_me:13783: checking for long" >&5
13784echo $ECHO_N "checking for long... $ECHO_C" >&6
13785if test "${ac_cv_type_long+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13787else
13788 cat >conftest.$ac_ext <<_ACEOF
13789#line 13789 "configure"
13790#include "confdefs.h"
13791$ac_includes_default
13792int
13793main ()
13794{
13795if ((long *) 0)
13796 return 0;
13797if (sizeof (long))
13798 return 0;
13799 ;
13800 return 0;
13801}
13802_ACEOF
13803rm -f conftest.$ac_objext
13804if { (eval echo "$as_me:13804: \"$ac_compile\"") >&5
13805 (eval $ac_compile) 2>&5
13806 ac_status=$?
13807 echo "$as_me:13807: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -s conftest.$ac_objext'
13810 { (eval echo "$as_me:13810: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:13813: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_type_long=yes
13816else
13817 echo "$as_me: failed program was:" >&5
13818cat conftest.$ac_ext >&5
13819ac_cv_type_long=no
13820fi
13821rm -f conftest.$ac_objext conftest.$ac_ext
13822fi
13823echo "$as_me:13823: result: $ac_cv_type_long" >&5
13824echo "${ECHO_T}$ac_cv_type_long" >&6
13825
13826echo "$as_me:13826: checking size of long" >&5
13827echo $ECHO_N "checking size of long... $ECHO_C" >&6
13828if test "${ac_cv_sizeof_long+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
13831 if test "$ac_cv_type_long" = yes; then
13832 if test "$cross_compiling" = yes; then
13833 # Depending upon the size, compute the lo and hi bounds.
13834cat >conftest.$ac_ext <<_ACEOF
13835#line 13835 "configure"
13836#include "confdefs.h"
13837$ac_includes_default
13838int
13839main ()
13840{
13841int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
13842 ;
13843 return 0;
13844}
13845_ACEOF
13846rm -f conftest.$ac_objext
13847if { (eval echo "$as_me:13847: \"$ac_compile\"") >&5
13848 (eval $ac_compile) 2>&5
13849 ac_status=$?
13850 echo "$as_me:13850: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (eval echo "$as_me:13853: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:13856: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 ac_lo=0 ac_mid=0
13859 while :; do
13860 cat >conftest.$ac_ext <<_ACEOF
13861#line 13861 "configure"
13862#include "confdefs.h"
13863$ac_includes_default
13864int
13865main ()
13866{
13867int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
13868 ;
13869 return 0;
13870}
13871_ACEOF
13872rm -f conftest.$ac_objext
13873if { (eval echo "$as_me:13873: \"$ac_compile\"") >&5
13874 (eval $ac_compile) 2>&5
13875 ac_status=$?
13876 echo "$as_me:13876: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -s conftest.$ac_objext'
13879 { (eval echo "$as_me:13879: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:13882: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_hi=$ac_mid; break
13885else
13886 echo "$as_me: failed program was:" >&5
13887cat conftest.$ac_ext >&5
13888ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13889fi
13890rm -f conftest.$ac_objext conftest.$ac_ext
13891 done
13892else
13893 echo "$as_me: failed program was:" >&5
13894cat conftest.$ac_ext >&5
13895ac_hi=-1 ac_mid=-1
13896 while :; do
13897 cat >conftest.$ac_ext <<_ACEOF
13898#line 13898 "configure"
13899#include "confdefs.h"
13900$ac_includes_default
13901int
13902main ()
13903{
13904int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
13905 ;
13906 return 0;
13907}
13908_ACEOF
13909rm -f conftest.$ac_objext
13910if { (eval echo "$as_me:13910: \"$ac_compile\"") >&5
13911 (eval $ac_compile) 2>&5
13912 ac_status=$?
13913 echo "$as_me:13913: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -s conftest.$ac_objext'
13916 { (eval echo "$as_me:13916: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:13919: \$? = $ac_status" >&5
13920 (exit $ac_status); }; }; then
13921 ac_lo=$ac_mid; break
13922else
13923 echo "$as_me: failed program was:" >&5
13924cat conftest.$ac_ext >&5
13925ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13926fi
13927rm -f conftest.$ac_objext conftest.$ac_ext
13928 done
10f2d63a 13929fi
6232543b
VS
13930rm -f conftest.$ac_objext conftest.$ac_ext
13931# Binary search between lo and hi bounds.
13932while test "x$ac_lo" != "x$ac_hi"; do
13933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13934 cat >conftest.$ac_ext <<_ACEOF
13935#line 13935 "configure"
13936#include "confdefs.h"
13937$ac_includes_default
13938int
13939main ()
13940{
13941int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
13942 ;
13943 return 0;
13944}
13945_ACEOF
13946rm -f conftest.$ac_objext
13947if { (eval echo "$as_me:13947: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>&5
13949 ac_status=$?
13950 echo "$as_me:13950: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -s conftest.$ac_objext'
13953 { (eval echo "$as_me:13953: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:13956: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_hi=$ac_mid
13959else
13960 echo "$as_me: failed program was:" >&5
13961cat conftest.$ac_ext >&5
13962ac_lo=`expr $ac_mid + 1`
13963fi
13964rm -f conftest.$ac_objext conftest.$ac_ext
13965done
13966ac_cv_sizeof_long=$ac_lo
10f2d63a
VZ
13967else
13968 if test "$cross_compiling" = yes; then
6232543b
VS
13969 { { echo "$as_me:13969: error: cannot run test program while cross compiling" >&5
13970echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13971 { (exit 1); exit 1; }; }
10f2d63a 13972else
6232543b
VS
13973 cat >conftest.$ac_ext <<_ACEOF
13974#line 13974 "configure"
10f2d63a 13975#include "confdefs.h"
6232543b
VS
13976$ac_includes_default
13977int
13978main ()
10f2d63a 13979{
6232543b
VS
13980FILE *f = fopen ("conftest.val", "w");
13981if (!f)
13982 exit (1);
13983fprintf (f, "%d", (sizeof (long)));
13984fclose (f);
13985 ;
13986 return 0;
10f2d63a 13987}
6232543b
VS
13988_ACEOF
13989rm -f conftest$ac_exeext
13990if { (eval echo "$as_me:13990: \"$ac_link\"") >&5
13991 (eval $ac_link) 2>&5
13992 ac_status=$?
13993 echo "$as_me:13993: \$? = $ac_status" >&5
13994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13995 { (eval echo "$as_me:13995: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 echo "$as_me:13998: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_sizeof_long=`cat conftest.val`
10f2d63a 14001else
6232543b
VS
14002 echo "$as_me: program exited with status $ac_status" >&5
14003echo "$as_me: failed program was:" >&5
14004cat conftest.$ac_ext >&5
10f2d63a 14005fi
6232543b 14006rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10f2d63a 14007fi
10f2d63a 14008fi
6232543b
VS
14009rm -f conftest.val
14010else
14011 ac_cv_sizeof_long=0
14012fi
14013fi
14014echo "$as_me:14014: result: $ac_cv_sizeof_long" >&5
14015echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14016cat >>confdefs.h <<EOF
14017#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
14018EOF
14019
6232543b
VS
14020echo "$as_me:14020: checking for long long" >&5
14021echo $ECHO_N "checking for long long... $ECHO_C" >&6
14022if test "${ac_cv_type_long_long+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 14024else
6232543b
VS
14025 cat >conftest.$ac_ext <<_ACEOF
14026#line 14026 "configure"
14027#include "confdefs.h"
14028$ac_includes_default
14029int
14030main ()
14031{
14032if ((long long *) 0)
14033 return 0;
14034if (sizeof (long long))
14035 return 0;
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040rm -f conftest.$ac_objext
14041if { (eval echo "$as_me:14041: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>&5
14043 ac_status=$?
14044 echo "$as_me:14044: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -s conftest.$ac_objext'
14047 { (eval echo "$as_me:14047: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14049 ac_status=$?
14050 echo "$as_me:14050: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_cv_type_long_long=yes
14053else
14054 echo "$as_me: failed program was:" >&5
14055cat conftest.$ac_ext >&5
14056ac_cv_type_long_long=no
14057fi
14058rm -f conftest.$ac_objext conftest.$ac_ext
14059fi
14060echo "$as_me:14060: result: $ac_cv_type_long_long" >&5
14061echo "${ECHO_T}$ac_cv_type_long_long" >&6
14062
14063echo "$as_me:14063: checking size of long long" >&5
14064echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14065if test "${ac_cv_sizeof_long_long+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067else
14068 if test "$ac_cv_type_long_long" = yes; then
10f2d63a 14069 if test "$cross_compiling" = yes; then
6232543b
VS
14070 # Depending upon the size, compute the lo and hi bounds.
14071cat >conftest.$ac_ext <<_ACEOF
14072#line 14072 "configure"
10f2d63a 14073#include "confdefs.h"
6232543b
VS
14074$ac_includes_default
14075int
14076main ()
10f2d63a 14077{
6232543b
VS
14078int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
14079 ;
14080 return 0;
10f2d63a 14081}
6232543b
VS
14082_ACEOF
14083rm -f conftest.$ac_objext
14084if { (eval echo "$as_me:14084: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>&5
14086 ac_status=$?
14087 echo "$as_me:14087: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:14090: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:14093: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 ac_lo=0 ac_mid=0
14096 while :; do
14097 cat >conftest.$ac_ext <<_ACEOF
14098#line 14098 "configure"
14099#include "confdefs.h"
14100$ac_includes_default
14101int
14102main ()
14103{
14104int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
14105 ;
14106 return 0;
14107}
14108_ACEOF
14109rm -f conftest.$ac_objext
14110if { (eval echo "$as_me:14110: \"$ac_compile\"") >&5
14111 (eval $ac_compile) 2>&5
14112 ac_status=$?
14113 echo "$as_me:14113: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -s conftest.$ac_objext'
14116 { (eval echo "$as_me:14116: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:14119: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_hi=$ac_mid; break
14122else
14123 echo "$as_me: failed program was:" >&5
14124cat conftest.$ac_ext >&5
14125ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
14126fi
14127rm -f conftest.$ac_objext conftest.$ac_ext
14128 done
10f2d63a 14129else
6232543b
VS
14130 echo "$as_me: failed program was:" >&5
14131cat conftest.$ac_ext >&5
14132ac_hi=-1 ac_mid=-1
14133 while :; do
14134 cat >conftest.$ac_ext <<_ACEOF
14135#line 14135 "configure"
14136#include "confdefs.h"
14137$ac_includes_default
14138int
14139main ()
14140{
14141int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
14142 ;
14143 return 0;
14144}
14145_ACEOF
14146rm -f conftest.$ac_objext
14147if { (eval echo "$as_me:14147: \"$ac_compile\"") >&5
14148 (eval $ac_compile) 2>&5
14149 ac_status=$?
14150 echo "$as_me:14150: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (eval echo "$as_me:14153: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:14156: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 ac_lo=$ac_mid; break
14159else
14160 echo "$as_me: failed program was:" >&5
14161cat conftest.$ac_ext >&5
14162ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
14163fi
14164rm -f conftest.$ac_objext conftest.$ac_ext
14165 done
10f2d63a 14166fi
6232543b
VS
14167rm -f conftest.$ac_objext conftest.$ac_ext
14168# Binary search between lo and hi bounds.
14169while test "x$ac_lo" != "x$ac_hi"; do
14170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14171 cat >conftest.$ac_ext <<_ACEOF
14172#line 14172 "configure"
14173#include "confdefs.h"
14174$ac_includes_default
14175int
14176main ()
14177{
14178int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
14179 ;
14180 return 0;
14181}
14182_ACEOF
14183rm -f conftest.$ac_objext
14184if { (eval echo "$as_me:14184: \"$ac_compile\"") >&5
14185 (eval $ac_compile) 2>&5
14186 ac_status=$?
14187 echo "$as_me:14187: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -s conftest.$ac_objext'
14190 { (eval echo "$as_me:14190: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:14193: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_hi=$ac_mid
14196else
14197 echo "$as_me: failed program was:" >&5
14198cat conftest.$ac_ext >&5
14199ac_lo=`expr $ac_mid + 1`
14200fi
14201rm -f conftest.$ac_objext conftest.$ac_ext
14202done
14203ac_cv_sizeof_long_long=$ac_lo
10f2d63a
VZ
14204else
14205 if test "$cross_compiling" = yes; then
6232543b
VS
14206 { { echo "$as_me:14206: error: cannot run test program while cross compiling" >&5
14207echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14208 { (exit 1); exit 1; }; }
10f2d63a 14209else
6232543b
VS
14210 cat >conftest.$ac_ext <<_ACEOF
14211#line 14211 "configure"
10f2d63a 14212#include "confdefs.h"
6232543b
VS
14213$ac_includes_default
14214int
14215main ()
10f2d63a 14216{
6232543b
VS
14217FILE *f = fopen ("conftest.val", "w");
14218if (!f)
14219 exit (1);
14220fprintf (f, "%d", (sizeof (long long)));
14221fclose (f);
14222 ;
14223 return 0;
10f2d63a 14224}
6232543b
VS
14225_ACEOF
14226rm -f conftest$ac_exeext
14227if { (eval echo "$as_me:14227: \"$ac_link\"") >&5
14228 (eval $ac_link) 2>&5
14229 ac_status=$?
14230 echo "$as_me:14230: \$? = $ac_status" >&5
14231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14232 { (eval echo "$as_me:14232: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:14235: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_sizeof_long_long=`cat conftest.val`
10f2d63a 14238else
6232543b
VS
14239 echo "$as_me: program exited with status $ac_status" >&5
14240echo "$as_me: failed program was:" >&5
14241cat conftest.$ac_ext >&5
10f2d63a 14242fi
6232543b 14243rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10f2d63a 14244fi
10f2d63a 14245fi
6232543b
VS
14246rm -f conftest.val
14247else
14248 ac_cv_sizeof_long_long=0
14249fi
14250fi
14251echo "$as_me:14251: result: $ac_cv_sizeof_long_long" >&5
14252echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14253cat >>confdefs.h <<EOF
10f2d63a
VZ
14254#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14255EOF
14256
6232543b
VS
14257echo "$as_me:14257: checking size of wchar_t" >&5
14258echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
14259if test "${wx_cv_sizeof_wchar_t+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 14261else
6232543b 14262
b93d0d08
VS
14263 if test "$cross_compiling" = yes; then
14264 wx_cv_sizeof_wchar_t=4
6232543b 14265
b93d0d08 14266else
6232543b
VS
14267 cat >conftest.$ac_ext <<_ACEOF
14268#line 14268 "configure"
b93d0d08
VS
14269#include "confdefs.h"
14270
1f8ae82f
GD
14271 #ifdef HAVE_WCHAR_H
14272 # include <wchar.h>
14273 #endif
14274 #ifdef HAVE_STDLIB_H
14275 # include <stdlib.h>
14276 #endif
b93d0d08
VS
14277 #include <stdio.h>
14278 int main()
14279 {
14280 FILE *f=fopen("conftestval", "w");
14281 if (!f) exit(1);
14282 fprintf(f, "%i", sizeof(wchar_t));
14283 exit(0);
14284 }
6232543b
VS
14285
14286_ACEOF
14287rm -f conftest$ac_exeext
14288if { (eval echo "$as_me:14288: \"$ac_link\"") >&5
14289 (eval $ac_link) 2>&5
14290 ac_status=$?
14291 echo "$as_me:14291: \$? = $ac_status" >&5
14292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14293 { (eval echo "$as_me:14293: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 echo "$as_me:14296: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
b93d0d08
VS
14298 wx_cv_sizeof_wchar_t=`cat conftestval`
14299else
6232543b
VS
14300 echo "$as_me: program exited with status $ac_status" >&5
14301echo "$as_me: failed program was:" >&5
14302cat conftest.$ac_ext >&5
14303wx_cv_sizeof_wchar_t=0
b93d0d08 14304fi
6232543b 14305rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
b93d0d08
VS
14306fi
14307
b93d0d08 14308fi
6232543b
VS
14309echo "$as_me:14309: result: $wx_cv_sizeof_wchar_t" >&5
14310echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
b93d0d08 14311
6232543b 14312cat >>confdefs.h <<EOF
28c6addc 14313#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
14314EOF
14315
6232543b
VS
14316echo "$as_me:14316: checking whether byte ordering is bigendian" >&5
14317echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14318if test "${ac_cv_c_bigendian+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
14320else
14321 ac_cv_c_bigendian=unknown
14322# See if sys/param.h defines the BYTE_ORDER macro.
6232543b
VS
14323cat >conftest.$ac_ext <<_ACEOF
14324#line 14324 "configure"
10f2d63a
VZ
14325#include "confdefs.h"
14326#include <sys/types.h>
14327#include <sys/param.h>
6232543b
VS
14328int
14329main ()
14330{
10f2d63a
VZ
14331
14332#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14333 bogus endian macros
14334#endif
6232543b
VS
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339rm -f conftest.$ac_objext
14340if { (eval echo "$as_me:14340: \"$ac_compile\"") >&5
14341 (eval $ac_compile) 2>&5
14342 ac_status=$?
14343 echo "$as_me:14343: \$? = $ac_status" >&5
14344 (exit $ac_status); } &&
14345 { ac_try='test -s conftest.$ac_objext'
14346 { (eval echo "$as_me:14346: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 echo "$as_me:14349: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
10f2d63a 14351 # It does; now see whether it defined to BIG_ENDIAN or not.
6232543b
VS
14352cat >conftest.$ac_ext <<_ACEOF
14353#line 14353 "configure"
10f2d63a
VZ
14354#include "confdefs.h"
14355#include <sys/types.h>
14356#include <sys/param.h>
6232543b
VS
14357int
14358main ()
14359{
10f2d63a
VZ
14360
14361#if BYTE_ORDER != BIG_ENDIAN
14362 not big endian
14363#endif
6232543b
VS
14364 ;
14365 return 0;
14366}
14367_ACEOF
14368rm -f conftest.$ac_objext
14369if { (eval echo "$as_me:14369: \"$ac_compile\"") >&5
14370 (eval $ac_compile) 2>&5
14371 ac_status=$?
14372 echo "$as_me:14372: \$? = $ac_status" >&5
14373 (exit $ac_status); } &&
14374 { ac_try='test -s conftest.$ac_objext'
14375 { (eval echo "$as_me:14375: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:14378: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
10f2d63a
VZ
14380 ac_cv_c_bigendian=yes
14381else
6232543b
VS
14382 echo "$as_me: failed program was:" >&5
14383cat conftest.$ac_ext >&5
14384ac_cv_c_bigendian=no
10f2d63a 14385fi
6232543b 14386rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 14387else
6232543b
VS
14388 echo "$as_me: failed program was:" >&5
14389cat conftest.$ac_ext >&5
10f2d63a 14390fi
6232543b 14391rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a
VZ
14392if test $ac_cv_c_bigendian = unknown; then
14393if test "$cross_compiling" = yes; then
14394 ac_cv_c_bigendian=unknown
14395else
6232543b
VS
14396 cat >conftest.$ac_ext <<_ACEOF
14397#line 14397 "configure"
10f2d63a
VZ
14398#include "confdefs.h"
14399main () {
14400 /* Are we little or big endian? From Harbison&Steele. */
14401 union
14402 {
14403 long l;
14404 char c[sizeof (long)];
14405 } u;
14406 u.l = 1;
14407 exit (u.c[sizeof (long) - 1] == 1);
14408}
6232543b
VS
14409_ACEOF
14410rm -f conftest$ac_exeext
14411if { (eval echo "$as_me:14411: \"$ac_link\"") >&5
14412 (eval $ac_link) 2>&5
14413 ac_status=$?
14414 echo "$as_me:14414: \$? = $ac_status" >&5
14415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14416 { (eval echo "$as_me:14416: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:14419: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
10f2d63a
VZ
14421 ac_cv_c_bigendian=no
14422else
6232543b
VS
14423 echo "$as_me: program exited with status $ac_status" >&5
14424echo "$as_me: failed program was:" >&5
14425cat conftest.$ac_ext >&5
14426ac_cv_c_bigendian=yes
10f2d63a 14427fi
6232543b 14428rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10f2d63a 14429fi
10f2d63a
VZ
14430fi
14431fi
6232543b
VS
14432echo "$as_me:14432: result: $ac_cv_c_bigendian" >&5
14433echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10f2d63a 14434if test $ac_cv_c_bigendian = unknown; then
6232543b
VS
14435 { echo "$as_me:14435: 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
14436echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
10f2d63a
VZ
14437fi
14438if test $ac_cv_c_bigendian = yes; then
6232543b 14439 cat >>confdefs.h <<\EOF
10f2d63a
VZ
14440#define WORDS_BIGENDIAN 1
14441EOF
14442
14443fi
14444
10f2d63a 14445 if test "$cross_compiling" = "yes"; then
6232543b 14446 cat >>confdefs.h <<\EOF
10f2d63a
VZ
14447#define wxUSE_IOSTREAMH 1
14448EOF
14449
14450 else
10f2d63a 14451
6232543b
VS
14452 ac_ext=cc
14453ac_cpp='$CXXCPP $CPPFLAGS'
14454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a 14457
6232543b 14458for ac_header in iostream
10f2d63a 14459do
6232543b
VS
14460ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14461echo "$as_me:14461: checking for $ac_header" >&5
14462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14463if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465else
14466 cat >conftest.$ac_ext <<_ACEOF
14467#line 14467 "configure"
10f2d63a 14468#include "confdefs.h"
6232543b
VS
14469#include <$ac_header>
14470_ACEOF
14471if { (eval echo "$as_me:14471: \"$ac_cpp conftest.$ac_ext\"") >&5
14472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14473 ac_status=$?
14474 egrep -v '^ *\+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:14477: \$? = $ac_status" >&5
14478 (exit $ac_status); } >/dev/null; then
14479 if test -s conftest.err; then
14480 ac_cpp_err=$ac_cxx_preproc_warn_flag
14481 else
14482 ac_cpp_err=
14483 fi
14484else
14485 ac_cpp_err=yes
14486fi
14487if test -z "$ac_cpp_err"; then
14488 eval "$ac_ac_Header=yes"
10f2d63a 14489else
6232543b 14490 echo "$as_me: failed program was:" >&5
10f2d63a 14491 cat conftest.$ac_ext >&5
6232543b 14492 eval "$ac_ac_Header=no"
10f2d63a 14493fi
6232543b 14494rm -f conftest.err conftest.$ac_ext
10f2d63a 14495fi
6232543b
VS
14496echo "$as_me:14496: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14497echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14498if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14499 cat >>confdefs.h <<EOF
14500#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 14501EOF
6232543b 14502
10f2d63a
VZ
14503fi
14504done
14505
10f2d63a 14506 if test "x$HAVE_IOSTREAM" = x ; then
6232543b 14507 cat >>confdefs.h <<\EOF
10f2d63a
VZ
14508#define wxUSE_IOSTREAMH 1
14509EOF
14510
14511 else
14512 :
14513 fi
14514
14515 ac_ext=c
10f2d63a 14516ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
14517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
14520
14521 fi
14522
6232543b
VS
14523 echo "$as_me:14523: checking if C++ compiler supports bool" >&5
14524echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
14525if test "${wx_cv_cpp_bool+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 14527else
10f2d63a 14528
6232543b
VS
14529 ac_ext=cc
14530ac_cpp='$CXXCPP $CPPFLAGS'
14531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a 14534
6232543b
VS
14535 cat >conftest.$ac_ext <<_ACEOF
14536#line 14536 "configure"
10f2d63a
VZ
14537#include "confdefs.h"
14538
6232543b
VS
14539int
14540main ()
14541{
10f2d63a
VZ
14542
14543 bool b = true;
14544
14545 return 0;
6232543b
VS
14546
14547 ;
14548 return 0;
14549}
14550_ACEOF
14551rm -f conftest.$ac_objext
14552if { (eval echo "$as_me:14552: \"$ac_compile\"") >&5
14553 (eval $ac_compile) 2>&5
14554 ac_status=$?
14555 echo "$as_me:14555: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try='test -s conftest.$ac_objext'
14558 { (eval echo "$as_me:14558: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:14561: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
10f2d63a
VZ
14563
14564 wx_cv_cpp_bool=yes
6232543b 14565
10f2d63a 14566else
6232543b
VS
14567 echo "$as_me: failed program was:" >&5
14568cat conftest.$ac_ext >&5
14569
10f2d63a 14570 wx_cv_cpp_bool=no
6232543b 14571
10f2d63a 14572fi
6232543b 14573rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a
VZ
14574
14575 ac_ext=c
10f2d63a 14576ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
14577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14579ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 14580
10f2d63a 14581fi
6232543b
VS
14582echo "$as_me:14582: result: $wx_cv_cpp_bool" >&5
14583echo "${ECHO_T}$wx_cv_cpp_bool" >&6
10f2d63a
VZ
14584
14585 if test "$wx_cv_cpp_bool" = "yes"; then
6232543b 14586 cat >>confdefs.h <<\EOF
10f2d63a
VZ
14587#define HAVE_BOOL 1
14588EOF
14589
14590 fi
14591
6232543b
VS
14592echo "$as_me:14592: checking if you need GNU extensions" >&5
14593echo $ECHO_N "checking if you need GNU extensions... $ECHO_C" >&6
14594if test "${wx_cv_gnu_extensions+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 14596else
6232543b
VS
14597
14598 cat >conftest.$ac_ext <<_ACEOF
14599#line 14599 "configure"
10f2d63a
VZ
14600#include "confdefs.h"
14601#include <features.h>
6232543b
VS
14602int
14603main ()
14604{
10f2d63a
VZ
14605
14606#ifndef __GNU_LIBRARY__
14607 Compile error wanted
14608#endif
14609
6232543b
VS
14610 ;
14611 return 0;
14612}
14613_ACEOF
14614rm -f conftest.$ac_objext
14615if { (eval echo "$as_me:14615: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>&5
14617 ac_status=$?
14618 echo "$as_me:14618: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try='test -s conftest.$ac_objext'
14621 { (eval echo "$as_me:14621: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
10f2d63a
VZ
14626 wx_cv_gnu_extensions=yes
14627else
6232543b
VS
14628 echo "$as_me: failed program was:" >&5
14629cat conftest.$ac_ext >&5
14630wx_cv_gnu_extensions=no
10f2d63a 14631fi
6232543b 14632rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a
VZ
14633
14634fi
14635
6232543b
VS
14636echo "$as_me:14636: result: $wx_cv_gnu_extensions" >&5
14637echo "${ECHO_T}$wx_cv_gnu_extensions" >&6
10f2d63a 14638if test "$wx_cv_gnu_extensions" = "yes"; then
6232543b 14639 cat >>confdefs.h <<EOF
10f2d63a
VZ
14640#define _GNU_SOURCE 1
14641EOF
14642
14643fi
14644
6232543b
VS
14645echo "$as_me:14645: checking for wcslen in -lc" >&5
14646echo $ECHO_N "checking for wcslen in -lc... $ECHO_C" >&6
14647if test "${ac_cv_lib_c_wcslen+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 14649else
6232543b 14650 ac_check_lib_save_LIBS=$LIBS
10f2d63a 14651LIBS="-lc $LIBS"
6232543b
VS
14652cat >conftest.$ac_ext <<_ACEOF
14653#line 14653 "configure"
10f2d63a 14654#include "confdefs.h"
6232543b 14655
10f2d63a 14656/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
14657#ifdef __cplusplus
14658extern "C"
14659#endif
10f2d63a 14660/* We use char because int might match the return type of a gcc2
6232543b
VS
14661 builtin and then its argument prototype would still apply. */
14662char wcslen ();
14663int
14664main ()
14665{
14666wcslen ();
14667 ;
14668 return 0;
14669}
14670_ACEOF
14671rm -f conftest.$ac_objext conftest$ac_exeext
14672if { (eval echo "$as_me:14672: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>&5
14674 ac_status=$?
14675 echo "$as_me:14675: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try='test -s conftest$ac_exeext'
14678 { (eval echo "$as_me:14678: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14680 ac_status=$?
14681 echo "$as_me:14681: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 ac_cv_lib_c_wcslen=yes
14684else
14685 echo "$as_me: failed program was:" >&5
14686cat conftest.$ac_ext >&5
14687ac_cv_lib_c_wcslen=no
14688fi
14689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14690LIBS=$ac_check_lib_save_LIBS
14691fi
14692echo "$as_me:14692: result: $ac_cv_lib_c_wcslen" >&5
14693echo "${ECHO_T}$ac_cv_lib_c_wcslen" >&6
14694if test $ac_cv_lib_c_wcslen = yes; then
14695
14696 cat >>confdefs.h <<\EOF
10f2d63a
VZ
14697#define HAVE_WCSLEN 1
14698EOF
14699
14700 WCHAR_LINK=""
6232543b 14701
10f2d63a 14702else
10f2d63a 14703
6232543b
VS
14704 echo "$as_me:14704: checking for wcslen in -lw" >&5
14705echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
14706if test "${ac_cv_lib_w_wcslen+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 14708else
6232543b 14709 ac_check_lib_save_LIBS=$LIBS
10f2d63a 14710LIBS="-lw $LIBS"
6232543b
VS
14711cat >conftest.$ac_ext <<_ACEOF
14712#line 14712 "configure"
10f2d63a 14713#include "confdefs.h"
6232543b 14714
10f2d63a 14715/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
14716#ifdef __cplusplus
14717extern "C"
14718#endif
10f2d63a 14719/* We use char because int might match the return type of a gcc2
6232543b
VS
14720 builtin and then its argument prototype would still apply. */
14721char wcslen ();
14722int
14723main ()
14724{
14725wcslen ();
14726 ;
14727 return 0;
14728}
14729_ACEOF
14730rm -f conftest.$ac_objext conftest$ac_exeext
14731if { (eval echo "$as_me:14731: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>&5
14733 ac_status=$?
14734 echo "$as_me:14734: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:14737: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:14740: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_lib_w_wcslen=yes
14743else
14744 echo "$as_me: failed program was:" >&5
14745cat conftest.$ac_ext >&5
14746ac_cv_lib_w_wcslen=no
14747fi
14748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14749LIBS=$ac_check_lib_save_LIBS
14750fi
14751echo "$as_me:14751: result: $ac_cv_lib_w_wcslen" >&5
14752echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
14753if test $ac_cv_lib_w_wcslen = yes; then
14754
14755 cat >>confdefs.h <<\EOF
10f2d63a
VZ
14756#define HAVE_WCSLEN 1
14757EOF
14758
14759 WCHAR_LINK="-lw"
10f2d63a 14760
10f2d63a
VZ
14761fi
14762
6232543b 14763fi
10f2d63a 14764
6232543b
VS
14765for ac_func in vprintf
14766do
14767ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14768echo "$as_me:14768: checking for $ac_func" >&5
14769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14770if eval "test \"\${$ac_ac_var+set}\" = set"; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772else
14773 cat >conftest.$ac_ext <<_ACEOF
14774#line 14774 "configure"
10f2d63a
VZ
14775#include "confdefs.h"
14776/* System header to define __stub macros and hopefully few prototypes,
6232543b 14777 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
14778#include <assert.h>
14779/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
14780#ifdef __cplusplus
14781extern "C"
14782#endif
10f2d63a 14783/* We use char because int might match the return type of a gcc2
6232543b
VS
14784 builtin and then its argument prototype would still apply. */
14785char $ac_func ();
14786char (*f) ();
10f2d63a 14787
6232543b
VS
14788int
14789main ()
14790{
10f2d63a
VZ
14791/* The GNU C library defines this for functions which it implements
14792 to always fail with ENOSYS. Some functions are actually named
14793 something starting with __ and the normal name is an alias. */
6232543b 14794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
14795choke me
14796#else
6232543b 14797f = $ac_func;
10f2d63a
VZ
14798#endif
14799
6232543b
VS
14800 ;
14801 return 0;
14802}
14803_ACEOF
14804rm -f conftest.$ac_objext conftest$ac_exeext
14805if { (eval echo "$as_me:14805: \"$ac_link\"") >&5
14806 (eval $ac_link) 2>&5
14807 ac_status=$?
14808 echo "$as_me:14808: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -s conftest$ac_exeext'
14811 { (eval echo "$as_me:14811: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:14814: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 eval "$ac_ac_var=yes"
14817else
14818 echo "$as_me: failed program was:" >&5
14819cat conftest.$ac_ext >&5
14820eval "$ac_ac_var=no"
14821fi
14822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14823fi
14824echo "$as_me:14824: result: `eval echo '${'$ac_ac_var'}'`" >&5
14825echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14826if test `eval echo '${'$ac_ac_var'}'` = yes; then
14827 cat >>confdefs.h <<EOF
14828#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14829EOF
14830
14831echo "$as_me:14831: checking for _doprnt" >&5
14832echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
14833if test "${ac_cv_func__doprnt+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835else
14836 cat >conftest.$ac_ext <<_ACEOF
14837#line 14837 "configure"
10f2d63a
VZ
14838#include "confdefs.h"
14839/* System header to define __stub macros and hopefully few prototypes,
6232543b 14840 which can conflict with char _doprnt (); below. */
10f2d63a
VZ
14841#include <assert.h>
14842/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
14843#ifdef __cplusplus
14844extern "C"
14845#endif
10f2d63a 14846/* We use char because int might match the return type of a gcc2
6232543b
VS
14847 builtin and then its argument prototype would still apply. */
14848char _doprnt ();
14849char (*f) ();
10f2d63a 14850
6232543b
VS
14851int
14852main ()
14853{
10f2d63a
VZ
14854/* The GNU C library defines this for functions which it implements
14855 to always fail with ENOSYS. Some functions are actually named
14856 something starting with __ and the normal name is an alias. */
14857#if defined (__stub__doprnt) || defined (__stub____doprnt)
14858choke me
14859#else
6232543b 14860f = _doprnt;
10f2d63a
VZ
14861#endif
14862
6232543b
VS
14863 ;
14864 return 0;
14865}
14866_ACEOF
14867rm -f conftest.$ac_objext conftest$ac_exeext
14868if { (eval echo "$as_me:14868: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>&5
14870 ac_status=$?
14871 echo "$as_me:14871: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -s conftest$ac_exeext'
14874 { (eval echo "$as_me:14874: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:14877: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_func__doprnt=yes
14880else
14881 echo "$as_me: failed program was:" >&5
14882cat conftest.$ac_ext >&5
14883ac_cv_func__doprnt=no
14884fi
14885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14886fi
14887echo "$as_me:14887: result: $ac_cv_func__doprnt" >&5
14888echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14889if test $ac_cv_func__doprnt = yes; then
14890
14891cat >>confdefs.h <<\EOF
10f2d63a
VZ
14892#define HAVE_DOPRNT 1
14893EOF
14894
10f2d63a
VZ
14895fi
14896
14897fi
6232543b 14898done
10f2d63a 14899
6232543b
VS
14900echo "$as_me:14900: checking for vsnprintf" >&5
14901echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
14902if test "${wx_cv_func_vsnprintf+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 14904else
6232543b
VS
14905
14906 cat >conftest.$ac_ext <<_ACEOF
14907#line 14907 "configure"
f6bcfd97
BP
14908#include "confdefs.h"
14909
14910 #include <stdio.h>
14911 #include <stdarg.h>
6232543b
VS
14912
14913int
14914main ()
14915{
10f2d63a 14916
f6bcfd97 14917 int wx_test_vsnprintf(const char *, ...);
10f2d63a 14918
f6bcfd97
BP
14919 wx_test_vsnprintf("%s");
14920 return 0;
14921 }
14922
14923 int wx_test_vsnprintf(const char *fmt, ...)
14924 {
14925 char *s;
14926
14927 va_list argp;
14928 va_start(argp, fmt);
14929 vsnprintf(s, 42, fmt, argp);
14930 va_end(argp);
6232543b
VS
14931
14932 ;
14933 return 0;
14934}
14935_ACEOF
14936rm -f conftest.$ac_objext
14937if { (eval echo "$as_me:14937: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>&5
14939 ac_status=$?
14940 echo "$as_me:14940: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -s conftest.$ac_objext'
14943 { (eval echo "$as_me:14943: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:14946: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948
f6bcfd97 14949 wx_cv_func_vsnprintf=yes
6232543b 14950
10f2d63a 14951else
6232543b
VS
14952 echo "$as_me: failed program was:" >&5
14953cat conftest.$ac_ext >&5
14954
14955 cat >conftest.$ac_ext <<_ACEOF
14956#line 14956 "configure"
c521c494
RL
14957#include "confdefs.h"
14958
14959 #include <stdio.h>
14960 #include <stdarg.h>
6232543b
VS
14961
14962int
14963main ()
14964{
c521c494
RL
14965
14966 int wx_test_vsnprintf(const char *, ...);
14967
14968 wx_test_vsnprintf("%s");
14969 return 0;
14970 }
14971
14972 int wx_test_vsnprintf(const char *fmt, ...)
14973 {
14974 char *s;
14975
14976 va_list argp;
14977 va_start(argp, fmt);
14978 _vsnprintf(s, 42, fmt, argp);
14979 va_end(argp);
6232543b
VS
14980
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:14986: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>&5
14988 ac_status=$?
14989 echo "$as_me:14989: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:14992: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:14995: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997
c521c494 14998 wx_cv_func_vsnprintf=yes
6232543b 14999
c521c494 15000else
6232543b
VS
15001 echo "$as_me: failed program was:" >&5
15002cat conftest.$ac_ext >&5
15003
c521c494 15004 wx_cv_func_vsnprintf=no
6232543b 15005
10f2d63a 15006fi
6232543b 15007rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 15008
10f2d63a 15009fi
6232543b 15010rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 15011
6232543b
VS
15012fi
15013echo "$as_me:15013: result: $wx_cv_func_vsnprintf" >&5
15014echo "${ECHO_T}$wx_cv_func_vsnprintf" >&6
10f2d63a 15015
9d8deca0 15016if test "$wx_cv_func_vsnprintf" = yes; then
6232543b 15017 cat >>confdefs.h <<\EOF
9d8deca0
VZ
15018#define HAVE_VSNPRINTF 1
15019EOF
15020
15021else
6232543b
VS
15022 { echo "$as_me:15022: WARNING: unsafe function sprintf will be used instead of snprintf" >&5
15023echo "$as_me: WARNING: unsafe function sprintf will be used instead of snprintf" >&2;}
9d8deca0
VZ
15024fi
15025
6232543b
VS
15026echo "$as_me:15026: checking for vsscanf" >&5
15027echo $ECHO_N "checking for vsscanf... $ECHO_C" >&6
15028if test "${wx_cv_func_vsscanf+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 15030else
6232543b
VS
15031
15032 cat >conftest.$ac_ext <<_ACEOF
15033#line 15033 "configure"
10f2d63a 15034#include "confdefs.h"
10f2d63a 15035
f6bcfd97
BP
15036 #include <stdio.h>
15037 #include <stdarg.h>
6232543b
VS
15038
15039int
15040main ()
15041{
10f2d63a 15042
f6bcfd97 15043 int wx_test_vsscanf(const char *, ...);
10f2d63a 15044
f6bcfd97
BP
15045 wx_test_vsscanf("%d");
15046 return 0;
10f2d63a
VZ
15047 }
15048
f6bcfd97 15049 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 15050 {
f6bcfd97
BP
15051 va_list argp;
15052 va_start(argp, fmt);
15053 vsscanf("42", fmt, argp);
15054 va_end(argp);
6232543b
VS
15055
15056 ;
15057 return 0;
15058}
15059_ACEOF
15060rm -f conftest.$ac_objext
15061if { (eval echo "$as_me:15061: \"$ac_compile\"") >&5
15062 (eval $ac_compile) 2>&5
15063 ac_status=$?
15064 echo "$as_me:15064: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -s conftest.$ac_objext'
15067 { (eval echo "$as_me:15067: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:15070: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072
f6bcfd97 15073 wx_cv_func_vsscanf=yes
6232543b 15074
10f2d63a 15075else
6232543b
VS
15076 echo "$as_me: failed program was:" >&5
15077cat conftest.$ac_ext >&5
15078
f6bcfd97 15079 wx_cv_func_vsscanf=no
10f2d63a
VZ
15080
15081fi
6232543b 15082rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 15083
6232543b
VS
15084fi
15085echo "$as_me:15085: result: $wx_cv_func_vsscanf" >&5
15086echo "${ECHO_T}$wx_cv_func_vsscanf" >&6
10f2d63a 15087
9d8deca0 15088if test "$wx_cv_func_vsscanf" = yes; then
6232543b 15089 cat >>confdefs.h <<\EOF
9d8deca0
VZ
15090#define HAVE_VSSCANF 1
15091EOF
15092
15093fi
15094
95c8801c
VS
15095if test "$TOOLKIT" != "MSW"; then
15096
6232543b
VS
15097ac_ext=cc
15098ac_cpp='$CXXCPP $CPPFLAGS'
15099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
95c8801c 15102
6232543b
VS
15103echo "$as_me:15103: checking if iconv() takes char**" >&5
15104echo $ECHO_N "checking if iconv() takes char**... $ECHO_C" >&6
15105if test "${wx_cv_iconv_takes_char+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107else
95c8801c 15108
6232543b
VS
15109 cat >conftest.$ac_ext <<_ACEOF
15110#line 15110 "configure"
95c8801c
VS
15111#include "confdefs.h"
15112#include <iconv.h>
6232543b
VS
15113int
15114main ()
15115{
95c8801c
VS
15116
15117 char **inbuf, **outbuf;
15118 iconv_t cd;
15119 size_t insz, outsz;
15120 iconv(cd, inbuf, &insz, outbuf, &outsz);
6232543b
VS
15121
15122 ;
15123 return 0;
15124}
15125_ACEOF
15126rm -f conftest.$ac_objext
15127if { (eval echo "$as_me:15127: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>&5
15129 ac_status=$?
15130 echo "$as_me:15130: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:15133: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:15136: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
95c8801c
VS
15138 wx_cv_iconv_takes_char=yes
15139else
6232543b
VS
15140 echo "$as_me: failed program was:" >&5
15141cat conftest.$ac_ext >&5
15142wx_cv_iconv_takes_char=no
95c8801c 15143fi
6232543b 15144rm -f conftest.$ac_objext conftest.$ac_ext
95c8801c
VS
15145
15146fi
6232543b
VS
15147echo "$as_me:15147: result: $wx_cv_iconv_takes_char" >&5
15148echo "${ECHO_T}$wx_cv_iconv_takes_char" >&6
10f2d63a 15149ac_ext=c
10f2d63a 15150ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
15151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15153ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 15154
95c8801c 15155if test "$wx_cv_iconv_takes_char" = yes ; then
6232543b 15156 cat >>confdefs.h <<\EOF
95c8801c
VS
15157#define WX_ICONV_TAKES_CHAR 1
15158EOF
15159
15160fi
10f2d63a 15161
eb4efbdc 15162if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
6232543b
VS
15163
15164for ac_func in sigaction
eb4efbdc 15165do
6232543b
VS
15166ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15167echo "$as_me:15167: checking for $ac_func" >&5
15168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15169if eval "test \"\${$ac_ac_var+set}\" = set"; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
15172 cat >conftest.$ac_ext <<_ACEOF
15173#line 15173 "configure"
eb4efbdc
VZ
15174#include "confdefs.h"
15175/* System header to define __stub macros and hopefully few prototypes,
6232543b 15176 which can conflict with char $ac_func (); below. */
eb4efbdc
VZ
15177#include <assert.h>
15178/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15179#ifdef __cplusplus
15180extern "C"
15181#endif
eb4efbdc 15182/* We use char because int might match the return type of a gcc2
6232543b
VS
15183 builtin and then its argument prototype would still apply. */
15184char $ac_func ();
15185char (*f) ();
eb4efbdc 15186
6232543b
VS
15187int
15188main ()
15189{
eb4efbdc
VZ
15190/* The GNU C library defines this for functions which it implements
15191 to always fail with ENOSYS. Some functions are actually named
15192 something starting with __ and the normal name is an alias. */
15193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15194choke me
15195#else
6232543b 15196f = $ac_func;
eb4efbdc
VZ
15197#endif
15198
6232543b
VS
15199 ;
15200 return 0;
15201}
15202_ACEOF
15203rm -f conftest.$ac_objext conftest$ac_exeext
15204if { (eval echo "$as_me:15204: \"$ac_link\"") >&5
15205 (eval $ac_link) 2>&5
15206 ac_status=$?
15207 echo "$as_me:15207: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:15210: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 eval "$ac_ac_var=yes"
15216else
15217 echo "$as_me: failed program was:" >&5
15218cat conftest.$ac_ext >&5
15219eval "$ac_ac_var=no"
15220fi
15221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15222fi
15223echo "$as_me:15223: result: `eval echo '${'$ac_ac_var'}'`" >&5
15224echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15225if test `eval echo '${'$ac_ac_var'}'` = yes; then
15226 cat >>confdefs.h <<EOF
15227#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
eb4efbdc 15228EOF
eb4efbdc 15229
eb4efbdc
VZ
15230fi
15231done
15232
eb4efbdc 15233 if test "$ac_cv_func_sigaction" = "no"; then
6232543b
VS
15234 { echo "$as_me:15234: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
15235echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
eb4efbdc
VZ
15236 wxUSE_ON_FATAL_EXCEPTION=no
15237 fi
f6bcfd97
BP
15238
15239 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
f6bcfd97 15240
6232543b
VS
15241 ac_ext=cc
15242ac_cpp='$CXXCPP $CPPFLAGS'
15243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
f6bcfd97 15246
6232543b
VS
15247 echo "$as_me:15247: checking for sa_handler type" >&5
15248echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
15249if test "${wx_cv_type_sa_handler+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 15251else
6232543b
VS
15252
15253 cat >conftest.$ac_ext <<_ACEOF
15254#line 15254 "configure"
f6bcfd97
BP
15255#include "confdefs.h"
15256#include <signal.h>
6232543b
VS
15257int
15258main ()
15259{
f6bcfd97
BP
15260
15261 extern void testSigHandler(int);
15262
15263 struct sigaction sa;
15264 sa.sa_handler = testSigHandler;
6232543b
VS
15265
15266 ;
15267 return 0;
15268}
15269_ACEOF
15270rm -f conftest.$ac_objext
15271if { (eval echo "$as_me:15271: \"$ac_compile\"") >&5
15272 (eval $ac_compile) 2>&5
15273 ac_status=$?
15274 echo "$as_me:15274: \$? = $ac_status" >&5
15275 (exit $ac_status); } &&
15276 { ac_try='test -s conftest.$ac_objext'
15277 { (eval echo "$as_me:15277: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:15280: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282
f6bcfd97 15283 wx_cv_type_sa_handler=int
6232543b 15284
f6bcfd97 15285else
6232543b
VS
15286 echo "$as_me: failed program was:" >&5
15287cat conftest.$ac_ext >&5
15288
f6bcfd97 15289 wx_cv_type_sa_handler=void
6232543b 15290
f6bcfd97 15291fi
6232543b 15292rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 15293
6232543b
VS
15294fi
15295echo "$as_me:15295: result: $wx_cv_type_sa_handler" >&5
15296echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
f6bcfd97
BP
15297
15298 ac_ext=c
f6bcfd97 15299ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
15300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302ac_compiler_gnu=$ac_cv_c_compiler_gnu
f6bcfd97 15303
6232543b 15304 cat >>confdefs.h <<EOF
f6bcfd97
BP
15305#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
15306EOF
15307
15308 fi
eb4efbdc
VZ
15309fi
15310
10f2d63a
VZ
15311for ac_func in vfork
15312do
6232543b
VS
15313ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15314echo "$as_me:15314: checking for $ac_func" >&5
15315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15316if eval "test \"\${$ac_ac_var+set}\" = set"; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318else
15319 cat >conftest.$ac_ext <<_ACEOF
15320#line 15320 "configure"
10f2d63a
VZ
15321#include "confdefs.h"
15322/* System header to define __stub macros and hopefully few prototypes,
6232543b 15323 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
15324#include <assert.h>
15325/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15326#ifdef __cplusplus
15327extern "C"
15328#endif
10f2d63a 15329/* We use char because int might match the return type of a gcc2
6232543b
VS
15330 builtin and then its argument prototype would still apply. */
15331char $ac_func ();
15332char (*f) ();
10f2d63a 15333
6232543b
VS
15334int
15335main ()
15336{
10f2d63a
VZ
15337/* The GNU C library defines this for functions which it implements
15338 to always fail with ENOSYS. Some functions are actually named
15339 something starting with __ and the normal name is an alias. */
15340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15341choke me
15342#else
6232543b 15343f = $ac_func;
10f2d63a
VZ
15344#endif
15345
6232543b
VS
15346 ;
15347 return 0;
15348}
15349_ACEOF
15350rm -f conftest.$ac_objext conftest$ac_exeext
15351if { (eval echo "$as_me:15351: \"$ac_link\"") >&5
15352 (eval $ac_link) 2>&5
15353 ac_status=$?
15354 echo "$as_me:15354: \$? = $ac_status" >&5
15355 (exit $ac_status); } &&
15356 { ac_try='test -s conftest$ac_exeext'
15357 { (eval echo "$as_me:15357: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:15360: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 eval "$ac_ac_var=yes"
15363else
15364 echo "$as_me: failed program was:" >&5
15365cat conftest.$ac_ext >&5
15366eval "$ac_ac_var=no"
15367fi
15368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15369fi
15370echo "$as_me:15370: result: `eval echo '${'$ac_ac_var'}'`" >&5
15371echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15372if test `eval echo '${'$ac_ac_var'}'` = yes; then
15373 cat >>confdefs.h <<EOF
15374#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10f2d63a 15375EOF
270a909e 15376
270a909e
VZ
15377fi
15378done
15379
4f3c5f06 15380if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
6232543b
VS
15381
15382for ac_func in fcntl flock
4f3c5f06 15383do
6232543b
VS
15384ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15385echo "$as_me:15385: checking for $ac_func" >&5
15386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15387if eval "test \"\${$ac_ac_var+set}\" = set"; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15389else
15390 cat >conftest.$ac_ext <<_ACEOF
15391#line 15391 "configure"
4f3c5f06
VZ
15392#include "confdefs.h"
15393/* System header to define __stub macros and hopefully few prototypes,
6232543b 15394 which can conflict with char $ac_func (); below. */
4f3c5f06
VZ
15395#include <assert.h>
15396/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15397#ifdef __cplusplus
15398extern "C"
15399#endif
4f3c5f06 15400/* We use char because int might match the return type of a gcc2
6232543b
VS
15401 builtin and then its argument prototype would still apply. */
15402char $ac_func ();
15403char (*f) ();
4f3c5f06 15404
6232543b
VS
15405int
15406main ()
15407{
4f3c5f06
VZ
15408/* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15412choke me
15413#else
6232543b 15414f = $ac_func;
4f3c5f06
VZ
15415#endif
15416
6232543b
VS
15417 ;
15418 return 0;
15419}
15420_ACEOF
15421rm -f conftest.$ac_objext conftest$ac_exeext
15422if { (eval echo "$as_me:15422: \"$ac_link\"") >&5
15423 (eval $ac_link) 2>&5
15424 ac_status=$?
15425 echo "$as_me:15425: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -s conftest$ac_exeext'
15428 { (eval echo "$as_me:15428: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:15431: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 eval "$ac_ac_var=yes"
15434else
15435 echo "$as_me: failed program was:" >&5
15436cat conftest.$ac_ext >&5
15437eval "$ac_ac_var=no"
15438fi
15439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15440fi
15441echo "$as_me:15441: result: `eval echo '${'$ac_ac_var'}'`" >&5
15442echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15443if test `eval echo '${'$ac_ac_var'}'` = yes; then
15444 cat >>confdefs.h <<EOF
15445#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4f3c5f06
VZ
15446EOF
15447 break
4f3c5f06
VZ
15448fi
15449done
15450
15451 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
6232543b
VS
15452 { echo "$as_me:15452: WARNING: wxSingleInstanceChecker not available" >&5
15453echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f3c5f06
VZ
15454 wxUSE_SNGLINST_CHECKER=no
15455 fi
15456fi
15457
270a909e
VZ
15458for ac_func in timegm
15459do
6232543b
VS
15460ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15461echo "$as_me:15461: checking for $ac_func" >&5
15462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15463if eval "test \"\${$ac_ac_var+set}\" = set"; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465else
15466 cat >conftest.$ac_ext <<_ACEOF
15467#line 15467 "configure"
270a909e
VZ
15468#include "confdefs.h"
15469/* System header to define __stub macros and hopefully few prototypes,
6232543b 15470 which can conflict with char $ac_func (); below. */
270a909e
VZ
15471#include <assert.h>
15472/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15473#ifdef __cplusplus
15474extern "C"
15475#endif
270a909e 15476/* We use char because int might match the return type of a gcc2
6232543b
VS
15477 builtin and then its argument prototype would still apply. */
15478char $ac_func ();
15479char (*f) ();
270a909e 15480
6232543b
VS
15481int
15482main ()
15483{
270a909e
VZ
15484/* The GNU C library defines this for functions which it implements
15485 to always fail with ENOSYS. Some functions are actually named
15486 something starting with __ and the normal name is an alias. */
15487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15488choke me
15489#else
6232543b 15490f = $ac_func;
270a909e
VZ
15491#endif
15492
6232543b
VS
15493 ;
15494 return 0;
15495}
15496_ACEOF
15497rm -f conftest.$ac_objext conftest$ac_exeext
15498if { (eval echo "$as_me:15498: \"$ac_link\"") >&5
15499 (eval $ac_link) 2>&5
15500 ac_status=$?
15501 echo "$as_me:15501: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -s conftest$ac_exeext'
15504 { (eval echo "$as_me:15504: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:15507: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 eval "$ac_ac_var=yes"
15510else
15511 echo "$as_me: failed program was:" >&5
15512cat conftest.$ac_ext >&5
15513eval "$ac_ac_var=no"
15514fi
15515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15516fi
15517echo "$as_me:15517: result: `eval echo '${'$ac_ac_var'}'`" >&5
15518echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15519if test `eval echo '${'$ac_ac_var'}'` = yes; then
15520 cat >>confdefs.h <<EOF
15521#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
270a909e 15522EOF
10f2d63a 15523
10f2d63a
VZ
15524fi
15525done
15526
8fd0d89b
VZ
15527for ac_func in putenv setenv
15528do
6232543b
VS
15529ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15530echo "$as_me:15530: checking for $ac_func" >&5
15531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15532if eval "test \"\${$ac_ac_var+set}\" = set"; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534else
15535 cat >conftest.$ac_ext <<_ACEOF
15536#line 15536 "configure"
8fd0d89b
VZ
15537#include "confdefs.h"
15538/* System header to define __stub macros and hopefully few prototypes,
6232543b 15539 which can conflict with char $ac_func (); below. */
8fd0d89b
VZ
15540#include <assert.h>
15541/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15542#ifdef __cplusplus
15543extern "C"
15544#endif
8fd0d89b 15545/* We use char because int might match the return type of a gcc2
6232543b
VS
15546 builtin and then its argument prototype would still apply. */
15547char $ac_func ();
15548char (*f) ();
8fd0d89b 15549
6232543b
VS
15550int
15551main ()
15552{
8fd0d89b
VZ
15553/* The GNU C library defines this for functions which it implements
15554 to always fail with ENOSYS. Some functions are actually named
15555 something starting with __ and the normal name is an alias. */
15556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15557choke me
15558#else
6232543b 15559f = $ac_func;
8fd0d89b
VZ
15560#endif
15561
6232543b
VS
15562 ;
15563 return 0;
15564}
15565_ACEOF
15566rm -f conftest.$ac_objext conftest$ac_exeext
15567if { (eval echo "$as_me:15567: \"$ac_link\"") >&5
15568 (eval $ac_link) 2>&5
15569 ac_status=$?
15570 echo "$as_me:15570: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -s conftest$ac_exeext'
15573 { (eval echo "$as_me:15573: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:15576: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 eval "$ac_ac_var=yes"
15579else
15580 echo "$as_me: failed program was:" >&5
15581cat conftest.$ac_ext >&5
15582eval "$ac_ac_var=no"
15583fi
15584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15585fi
15586echo "$as_me:15586: result: `eval echo '${'$ac_ac_var'}'`" >&5
15587echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15588if test `eval echo '${'$ac_ac_var'}'` = yes; then
15589 cat >>confdefs.h <<EOF
15590#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8fd0d89b
VZ
15591EOF
15592 break
8fd0d89b
VZ
15593fi
15594done
15595
b12915c1
VZ
15596HAVE_SOME_SLEEP_FUNC=0
15597if test "$USE_BEOS" = 1; then
6232543b 15598 cat >>confdefs.h <<\EOF
b12915c1
VZ
15599#define HAVE_SLEEP 1
15600EOF
15601
15602 HAVE_SOME_SLEEP_FUNC=1
15603fi
15604
b4085ce6 15605if test "$USE_MAC" = 1; then
6232543b 15606 cat >>confdefs.h <<\EOF
b4085ce6
GD
15607#define HAVE_USLEEP 1
15608EOF
15609
15610 HAVE_SOME_SLEEP_FUNC=1
15611fi
15612
b12915c1
VZ
15613if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15614 POSIX4_LINK=
6232543b
VS
15615
15616for ac_func in nanosleep
10f2d63a 15617do
6232543b
VS
15618ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15619echo "$as_me:15619: checking for $ac_func" >&5
15620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15621if eval "test \"\${$ac_ac_var+set}\" = set"; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623else
15624 cat >conftest.$ac_ext <<_ACEOF
15625#line 15625 "configure"
10f2d63a
VZ
15626#include "confdefs.h"
15627/* System header to define __stub macros and hopefully few prototypes,
6232543b 15628 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
15629#include <assert.h>
15630/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15631#ifdef __cplusplus
15632extern "C"
15633#endif
10f2d63a 15634/* We use char because int might match the return type of a gcc2
6232543b
VS
15635 builtin and then its argument prototype would still apply. */
15636char $ac_func ();
15637char (*f) ();
10f2d63a 15638
6232543b
VS
15639int
15640main ()
15641{
10f2d63a
VZ
15642/* The GNU C library defines this for functions which it implements
15643 to always fail with ENOSYS. Some functions are actually named
15644 something starting with __ and the normal name is an alias. */
15645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15646choke me
15647#else
6232543b 15648f = $ac_func;
10f2d63a
VZ
15649#endif
15650
6232543b
VS
15651 ;
15652 return 0;
15653}
15654_ACEOF
15655rm -f conftest.$ac_objext conftest$ac_exeext
15656if { (eval echo "$as_me:15656: \"$ac_link\"") >&5
15657 (eval $ac_link) 2>&5
15658 ac_status=$?
15659 echo "$as_me:15659: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
15661 { ac_try='test -s conftest$ac_exeext'
15662 { (eval echo "$as_me:15662: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:15665: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 eval "$ac_ac_var=yes"
15668else
15669 echo "$as_me: failed program was:" >&5
15670cat conftest.$ac_ext >&5
15671eval "$ac_ac_var=no"
15672fi
15673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15674fi
15675echo "$as_me:15675: result: `eval echo '${'$ac_ac_var'}'`" >&5
15676echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15677if test `eval echo '${'$ac_ac_var'}'` = yes; then
15678 cat >>confdefs.h <<EOF
15679#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15680EOF
15681 cat >>confdefs.h <<\EOF
10f2d63a
VZ
15682#define HAVE_NANOSLEEP 1
15683EOF
15684
15685else
6232543b
VS
15686
15687 echo "$as_me:15687: checking for nanosleep in -lposix4" >&5
15688echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
15689if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 15691else
6232543b 15692 ac_check_lib_save_LIBS=$LIBS
10f2d63a 15693LIBS="-lposix4 $LIBS"
6232543b
VS
15694cat >conftest.$ac_ext <<_ACEOF
15695#line 15695 "configure"
10f2d63a 15696#include "confdefs.h"
6232543b 15697
10f2d63a 15698/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15699#ifdef __cplusplus
15700extern "C"
15701#endif
10f2d63a 15702/* We use char because int might match the return type of a gcc2
6232543b
VS
15703 builtin and then its argument prototype would still apply. */
15704char nanosleep ();
15705int
15706main ()
15707{
15708nanosleep ();
15709 ;
15710 return 0;
15711}
15712_ACEOF
15713rm -f conftest.$ac_objext conftest$ac_exeext
15714if { (eval echo "$as_me:15714: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>&5
15716 ac_status=$?
15717 echo "$as_me:15717: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -s conftest$ac_exeext'
15720 { (eval echo "$as_me:15720: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:15723: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 ac_cv_lib_posix4_nanosleep=yes
15726else
15727 echo "$as_me: failed program was:" >&5
15728cat conftest.$ac_ext >&5
15729ac_cv_lib_posix4_nanosleep=no
15730fi
15731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15732LIBS=$ac_check_lib_save_LIBS
15733fi
15734echo "$as_me:15734: result: $ac_cv_lib_posix4_nanosleep" >&5
15735echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
15736if test $ac_cv_lib_posix4_nanosleep = yes; then
15737
15738 cat >>confdefs.h <<\EOF
10f2d63a
VZ
15739#define HAVE_NANOSLEEP 1
15740EOF
15741
b12915c1 15742 POSIX4_LINK="-lposix4"
6232543b 15743
10f2d63a 15744else
10f2d63a 15745
6232543b 15746for ac_func in usleep
10f2d63a 15747do
6232543b
VS
15748ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15749echo "$as_me:15749: checking for $ac_func" >&5
15750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15751if eval "test \"\${$ac_ac_var+set}\" = set"; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753else
15754 cat >conftest.$ac_ext <<_ACEOF
15755#line 15755 "configure"
10f2d63a
VZ
15756#include "confdefs.h"
15757/* System header to define __stub macros and hopefully few prototypes,
6232543b 15758 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
15759#include <assert.h>
15760/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15761#ifdef __cplusplus
15762extern "C"
15763#endif
10f2d63a 15764/* We use char because int might match the return type of a gcc2
6232543b
VS
15765 builtin and then its argument prototype would still apply. */
15766char $ac_func ();
15767char (*f) ();
10f2d63a 15768
6232543b
VS
15769int
15770main ()
15771{
10f2d63a
VZ
15772/* The GNU C library defines this for functions which it implements
15773 to always fail with ENOSYS. Some functions are actually named
15774 something starting with __ and the normal name is an alias. */
15775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15776choke me
15777#else
6232543b 15778f = $ac_func;
10f2d63a
VZ
15779#endif
15780
6232543b
VS
15781 ;
15782 return 0;
15783}
15784_ACEOF
15785rm -f conftest.$ac_objext conftest$ac_exeext
15786if { (eval echo "$as_me:15786: \"$ac_link\"") >&5
15787 (eval $ac_link) 2>&5
15788 ac_status=$?
15789 echo "$as_me:15789: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -s conftest$ac_exeext'
15792 { (eval echo "$as_me:15792: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:15795: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 eval "$ac_ac_var=yes"
15798else
15799 echo "$as_me: failed program was:" >&5
15800cat conftest.$ac_ext >&5
15801eval "$ac_ac_var=no"
15802fi
15803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15804fi
15805echo "$as_me:15805: result: `eval echo '${'$ac_ac_var'}'`" >&5
15806echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15807if test `eval echo '${'$ac_ac_var'}'` = yes; then
15808 cat >>confdefs.h <<EOF
15809#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15810EOF
15811 cat >>confdefs.h <<\EOF
b4085ce6
GD
15812#define HAVE_USLEEP 1
15813EOF
15814
10f2d63a 15815else
6232543b
VS
15816 { echo "$as_me:15816: WARNING: wxSleep() function will not work" >&5
15817echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
15818
10f2d63a
VZ
15819fi
15820done
15821
10f2d63a
VZ
15822fi
15823
10f2d63a
VZ
15824fi
15825done
15826
b12915c1 15827fi
10f2d63a
VZ
15828
15829for ac_func in uname gethostname
15830do
6232543b
VS
15831ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15832echo "$as_me:15832: checking for $ac_func" >&5
15833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15834if eval "test \"\${$ac_ac_var+set}\" = set"; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836else
15837 cat >conftest.$ac_ext <<_ACEOF
15838#line 15838 "configure"
10f2d63a
VZ
15839#include "confdefs.h"
15840/* System header to define __stub macros and hopefully few prototypes,
6232543b 15841 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
15842#include <assert.h>
15843/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15844#ifdef __cplusplus
15845extern "C"
15846#endif
10f2d63a 15847/* We use char because int might match the return type of a gcc2
6232543b
VS
15848 builtin and then its argument prototype would still apply. */
15849char $ac_func ();
15850char (*f) ();
10f2d63a 15851
6232543b
VS
15852int
15853main ()
15854{
10f2d63a
VZ
15855/* The GNU C library defines this for functions which it implements
15856 to always fail with ENOSYS. Some functions are actually named
15857 something starting with __ and the normal name is an alias. */
15858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15859choke me
15860#else
6232543b 15861f = $ac_func;
10f2d63a
VZ
15862#endif
15863
6232543b
VS
15864 ;
15865 return 0;
15866}
15867_ACEOF
15868rm -f conftest.$ac_objext conftest$ac_exeext
15869if { (eval echo "$as_me:15869: \"$ac_link\"") >&5
15870 (eval $ac_link) 2>&5
15871 ac_status=$?
15872 echo "$as_me:15872: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -s conftest$ac_exeext'
15875 { (eval echo "$as_me:15875: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:15878: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15880 eval "$ac_ac_var=yes"
15881else
15882 echo "$as_me: failed program was:" >&5
15883cat conftest.$ac_ext >&5
15884eval "$ac_ac_var=no"
15885fi
15886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15887fi
15888echo "$as_me:15888: result: `eval echo '${'$ac_ac_var'}'`" >&5
15889echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15890if test `eval echo '${'$ac_ac_var'}'` = yes; then
15891 cat >>confdefs.h <<EOF
15892#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10f2d63a
VZ
15893EOF
15894 break
10f2d63a
VZ
15895fi
15896done
15897
6232543b 15898ac_ext=cc
6098c7f9 15899ac_cpp='$CXXCPP $CPPFLAGS'
6232543b
VS
15900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6098c7f9 15903
10f2d63a
VZ
15904for ac_func in strtok_r
15905do
6232543b
VS
15906ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15907echo "$as_me:15907: checking for $ac_func" >&5
15908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15909if eval "test \"\${$ac_ac_var+set}\" = set"; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911else
15912 cat >conftest.$ac_ext <<_ACEOF
15913#line 15913 "configure"
10f2d63a
VZ
15914#include "confdefs.h"
15915/* System header to define __stub macros and hopefully few prototypes,
6232543b 15916 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
15917#include <assert.h>
15918/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
15919#ifdef __cplusplus
15920extern "C"
15921#endif
10f2d63a 15922/* We use char because int might match the return type of a gcc2
6232543b
VS
15923 builtin and then its argument prototype would still apply. */
15924char $ac_func ();
15925char (*f) ();
10f2d63a 15926
6232543b
VS
15927int
15928main ()
15929{
10f2d63a
VZ
15930/* The GNU C library defines this for functions which it implements
15931 to always fail with ENOSYS. Some functions are actually named
15932 something starting with __ and the normal name is an alias. */
15933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15934choke me
15935#else
6232543b 15936f = $ac_func;
10f2d63a
VZ
15937#endif
15938
6232543b
VS
15939 ;
15940 return 0;
15941}
15942_ACEOF
15943rm -f conftest.$ac_objext conftest$ac_exeext
15944if { (eval echo "$as_me:15944: \"$ac_link\"") >&5
15945 (eval $ac_link) 2>&5
15946 ac_status=$?
15947 echo "$as_me:15947: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:15950: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:15953: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 eval "$ac_ac_var=yes"
15956else
15957 echo "$as_me: failed program was:" >&5
15958cat conftest.$ac_ext >&5
15959eval "$ac_ac_var=no"
15960fi
15961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15962fi
15963echo "$as_me:15963: result: `eval echo '${'$ac_ac_var'}'`" >&5
15964echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15965if test `eval echo '${'$ac_ac_var'}'` = yes; then
15966 cat >>confdefs.h <<EOF
15967#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10f2d63a 15968EOF
10f2d63a 15969
10f2d63a
VZ
15970fi
15971done
15972
6098c7f9 15973ac_ext=c
6098c7f9 15974ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
15975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15977ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098c7f9 15978
c63c7106 15979INET_LINK=
6232543b 15980
10f2d63a
VZ
15981for ac_func in inet_addr
15982do
6232543b
VS
15983ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15984echo "$as_me:15984: checking for $ac_func" >&5
15985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15986if eval "test \"\${$ac_ac_var+set}\" = set"; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988else
15989 cat >conftest.$ac_ext <<_ACEOF
15990#line 15990 "configure"
10f2d63a
VZ
15991#include "confdefs.h"
15992/* System header to define __stub macros and hopefully few prototypes,
6232543b 15993 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
15994#include <assert.h>
15995/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
15996#ifdef __cplusplus
15997extern "C"
15998#endif
10f2d63a 15999/* We use char because int might match the return type of a gcc2
6232543b
VS
16000 builtin and then its argument prototype would still apply. */
16001char $ac_func ();
16002char (*f) ();
10f2d63a 16003
6232543b
VS
16004int
16005main ()
16006{
10f2d63a
VZ
16007/* The GNU C library defines this for functions which it implements
16008 to always fail with ENOSYS. Some functions are actually named
16009 something starting with __ and the normal name is an alias. */
16010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16011choke me
6232543b
VS
16012#else
16013f = $ac_func;
16014#endif
10f2d63a 16015
6232543b
VS
16016 ;
16017 return 0;
16018}
16019_ACEOF
16020rm -f conftest.$ac_objext conftest$ac_exeext
16021if { (eval echo "$as_me:16021: \"$ac_link\"") >&5
16022 (eval $ac_link) 2>&5
16023 ac_status=$?
16024 echo "$as_me:16024: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -s conftest$ac_exeext'
16027 { (eval echo "$as_me:16027: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:16030: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 eval "$ac_ac_var=yes"
16033else
16034 echo "$as_me: failed program was:" >&5
16035cat conftest.$ac_ext >&5
16036eval "$ac_ac_var=no"
16037fi
16038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16039fi
16040echo "$as_me:16040: result: `eval echo '${'$ac_ac_var'}'`" >&5
16041echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16042if test `eval echo '${'$ac_ac_var'}'` = yes; then
16043 cat >>confdefs.h <<EOF
16044#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16045EOF
16046 cat >>confdefs.h <<\EOF
c63c7106
VZ
16047#define HAVE_INET_ADDR 1
16048EOF
16049
10f2d63a 16050else
6232543b
VS
16051
16052 echo "$as_me:16052: checking for inet_addr in -lnsl" >&5
16053echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
16054if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 16056else
6232543b 16057 ac_check_lib_save_LIBS=$LIBS
c63c7106 16058LIBS="-lnsl $LIBS"
6232543b
VS
16059cat >conftest.$ac_ext <<_ACEOF
16060#line 16060 "configure"
c63c7106 16061#include "confdefs.h"
6232543b 16062
c63c7106 16063/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16064#ifdef __cplusplus
16065extern "C"
16066#endif
c63c7106 16067/* We use char because int might match the return type of a gcc2
6232543b
VS
16068 builtin and then its argument prototype would still apply. */
16069char inet_addr ();
16070int
16071main ()
16072{
16073inet_addr ();
16074 ;
16075 return 0;
16076}
16077_ACEOF
16078rm -f conftest.$ac_objext conftest$ac_exeext
16079if { (eval echo "$as_me:16079: \"$ac_link\"") >&5
16080 (eval $ac_link) 2>&5
16081 ac_status=$?
16082 echo "$as_me:16082: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
16084 { ac_try='test -s conftest$ac_exeext'
16085 { (eval echo "$as_me:16085: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:16088: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 ac_cv_lib_nsl_inet_addr=yes
16091else
16092 echo "$as_me: failed program was:" >&5
16093cat conftest.$ac_ext >&5
16094ac_cv_lib_nsl_inet_addr=no
16095fi
16096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16097LIBS=$ac_check_lib_save_LIBS
16098fi
16099echo "$as_me:16099: result: $ac_cv_lib_nsl_inet_addr" >&5
16100echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
16101if test $ac_cv_lib_nsl_inet_addr = yes; then
c63c7106
VZ
16102 INET_LINK="nsl"
16103else
6232543b
VS
16104 echo "$as_me:16104: checking for inet_addr in -lresolv" >&5
16105echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
16106if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 16108else
6232543b 16109 ac_check_lib_save_LIBS=$LIBS
c63c7106 16110LIBS="-lresolv $LIBS"
6232543b
VS
16111cat >conftest.$ac_ext <<_ACEOF
16112#line 16112 "configure"
c63c7106 16113#include "confdefs.h"
6232543b 16114
c63c7106 16115/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16116#ifdef __cplusplus
16117extern "C"
16118#endif
c63c7106 16119/* We use char because int might match the return type of a gcc2
6232543b
VS
16120 builtin and then its argument prototype would still apply. */
16121char inet_addr ();
16122int
16123main ()
16124{
16125inet_addr ();
16126 ;
16127 return 0;
16128}
16129_ACEOF
16130rm -f conftest.$ac_objext conftest$ac_exeext
16131if { (eval echo "$as_me:16131: \"$ac_link\"") >&5
16132 (eval $ac_link) 2>&5
16133 ac_status=$?
16134 echo "$as_me:16134: \$? = $ac_status" >&5
16135 (exit $ac_status); } &&
16136 { ac_try='test -s conftest$ac_exeext'
16137 { (eval echo "$as_me:16137: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:16140: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_cv_lib_resolv_inet_addr=yes
16143else
16144 echo "$as_me: failed program was:" >&5
16145cat conftest.$ac_ext >&5
16146ac_cv_lib_resolv_inet_addr=no
16147fi
16148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16149LIBS=$ac_check_lib_save_LIBS
16150fi
16151echo "$as_me:16151: result: $ac_cv_lib_resolv_inet_addr" >&5
16152echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
16153if test $ac_cv_lib_resolv_inet_addr = yes; then
c63c7106 16154 INET_LINK="resolv"
c63c7106 16155
c63c7106
VZ
16156fi
16157
6232543b 16158fi
c63c7106 16159
10f2d63a
VZ
16160fi
16161done
16162
16163for ac_func in inet_aton
16164do
6232543b
VS
16165ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16166echo "$as_me:16166: checking for $ac_func" >&5
16167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16168if eval "test \"\${$ac_ac_var+set}\" = set"; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170else
16171 cat >conftest.$ac_ext <<_ACEOF
16172#line 16172 "configure"
10f2d63a
VZ
16173#include "confdefs.h"
16174/* System header to define __stub macros and hopefully few prototypes,
6232543b 16175 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
16176#include <assert.h>
16177/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16178#ifdef __cplusplus
16179extern "C"
16180#endif
10f2d63a 16181/* We use char because int might match the return type of a gcc2
6232543b
VS
16182 builtin and then its argument prototype would still apply. */
16183char $ac_func ();
16184char (*f) ();
10f2d63a 16185
6232543b
VS
16186int
16187main ()
16188{
10f2d63a
VZ
16189/* The GNU C library defines this for functions which it implements
16190 to always fail with ENOSYS. Some functions are actually named
16191 something starting with __ and the normal name is an alias. */
16192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16193choke me
16194#else
6232543b 16195f = $ac_func;
10f2d63a
VZ
16196#endif
16197
6232543b
VS
16198 ;
16199 return 0;
16200}
16201_ACEOF
16202rm -f conftest.$ac_objext conftest$ac_exeext
16203if { (eval echo "$as_me:16203: \"$ac_link\"") >&5
16204 (eval $ac_link) 2>&5
16205 ac_status=$?
16206 echo "$as_me:16206: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try='test -s conftest$ac_exeext'
16209 { (eval echo "$as_me:16209: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:16212: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 eval "$ac_ac_var=yes"
16215else
16216 echo "$as_me: failed program was:" >&5
16217cat conftest.$ac_ext >&5
16218eval "$ac_ac_var=no"
16219fi
16220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16221fi
16222echo "$as_me:16222: result: `eval echo '${'$ac_ac_var'}'`" >&5
16223echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16224if test `eval echo '${'$ac_ac_var'}'` = yes; then
16225 cat >>confdefs.h <<EOF
16226#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16227EOF
16228 cat >>confdefs.h <<\EOF
c63c7106
VZ
16229#define HAVE_INET_ATON 1
16230EOF
16231
10f2d63a 16232else
6232543b
VS
16233
16234 ac_ac_Lib=`echo "ac_cv_lib_$INET_LINK_inet_aton" | $ac_tr_sh`
16235echo "$as_me:16235: checking for inet_aton in -l$INET_LINK" >&5
16236echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
16237if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 16239else
6232543b 16240 ac_check_lib_save_LIBS=$LIBS
c63c7106 16241LIBS="-l$INET_LINK $LIBS"
6232543b
VS
16242cat >conftest.$ac_ext <<_ACEOF
16243#line 16243 "configure"
10f2d63a 16244#include "confdefs.h"
6232543b 16245
10f2d63a 16246/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16247#ifdef __cplusplus
16248extern "C"
16249#endif
10f2d63a 16250/* We use char because int might match the return type of a gcc2
6232543b
VS
16251 builtin and then its argument prototype would still apply. */
16252char inet_aton ();
16253int
16254main ()
16255{
16256inet_aton ();
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261rm -f conftest.$ac_objext conftest$ac_exeext
16262if { (eval echo "$as_me:16262: \"$ac_link\"") >&5
16263 (eval $ac_link) 2>&5
16264 ac_status=$?
16265 echo "$as_me:16265: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -s conftest$ac_exeext'
16268 { (eval echo "$as_me:16268: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16270 ac_status=$?
16271 echo "$as_me:16271: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16273 eval "$ac_ac_Lib=yes"
16274else
16275 echo "$as_me: failed program was:" >&5
16276cat conftest.$ac_ext >&5
16277eval "$ac_ac_Lib=no"
16278fi
16279rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16280LIBS=$ac_check_lib_save_LIBS
16281fi
16282echo "$as_me:16282: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
16283echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
16284if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
16285 cat >>confdefs.h <<\EOF
c63c7106 16286#define HAVE_INET_ATON 1
10f2d63a
VZ
16287EOF
16288
10f2d63a
VZ
16289fi
16290
c63c7106
VZ
16291fi
16292done
16293
c63c7106 16294if test "x$INET_LINK" != "x"; then
6232543b 16295 cat >>confdefs.h <<\EOF
c63c7106
VZ
16296#define HAVE_INET_ADDR 1
16297EOF
16298
16299 INET_LINK="-l$INET_LINK"
16300fi
10f2d63a
VZ
16301
16302fi
16303
6232543b 16304cat >confcache <<\_ACEOF
10f2d63a
VZ
16305# This file is a shell script that caches the results of configure
16306# tests run on this system so they can be shared between configure
6232543b
VS
16307# scripts and configure runs, see configure's option --config-cache.
16308# It is not useful on other systems. If it contains results you don't
16309# want to keep, you may remove or edit it.
10f2d63a 16310#
6232543b
VS
16311# config.status only pays attention to the cache file if you give it
16312# the --recheck option to rerun configure.
10f2d63a 16313#
6232543b
VS
16314# `ac_cv_env_foo' variables (set or unset) will be overriden when
16315# loading this file, other *unset* `ac_cv_foo' will be assigned the
16316# following values.
16317
16318_ACEOF
16319
10f2d63a
VZ
16320# The following way of writing the cache mishandles newlines in values,
16321# but we know of no workaround that is simple, portable, and efficient.
16322# So, don't put newlines in cache variables' values.
16323# Ultrix sh set writes to stderr and can't be redirected directly,
16324# and sets the high bit in the cache file unless we assign to the vars.
6232543b
VS
16325{
16326 (set) 2>&1 |
16327 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16328 *ac_space=\ *)
16329 # `set' does not quote correctly, so add quotes (double-quote
16330 # substitution turns \\\\ into \\, and sed turns \\ into \).
16331 sed -n \
16332 "s/'/'\\\\''/g;
16333 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16334 ;;
16335 *)
16336 # `set' quotes correctly as required by POSIX, so do not add quotes.
16337 sed -n \
16338 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16339 ;;
16340 esac;
16341} |
16342 sed '
16343 t clear
16344 : clear
16345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16346 t end
16347 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16348 : end' >>confcache
16349if cmp -s $cache_file confcache; then :; else
10f2d63a 16350 if test -w $cache_file; then
6232543b
VS
16351 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16352 cat confcache >$cache_file
10f2d63a
VZ
16353 else
16354 echo "not updating unwritable cache $cache_file"
16355 fi
16356fi
16357rm -f confcache
16358
b089607b 16359if test "$TOOLKIT" != "MSW"; then
10f2d63a 16360
10f2d63a
VZ
16361THREADS_LINK=""
16362THREADS_OBJ=""
16363
16364if test "$wxUSE_THREADS" = "yes" ; then
16365 if test "$wxUSE_WINE" = 1 ; then
6232543b
VS
16366 { echo "$as_me:16366: WARNING: Threads are not supported under WINE" >&5
16367echo "$as_me: WARNING: Threads are not supported under WINE" >&2;}
10f2d63a 16368 wxUSE_THREADS="no"
b12915c1 16369 elif test "$USE_BEOS" = 1; then
6232543b
VS
16370 { echo "$as_me:16370: WARNING: BeOS threads are not yet supported" >&5
16371echo "$as_me: WARNING: BeOS threads are not yet supported" >&2;}
b12915c1 16372 wxUSE_THREADS="no"
10f2d63a
VZ
16373 fi
16374fi
16375
16376if test "$wxUSE_THREADS" = "yes" ; then
6232543b 16377
186837b0 16378 if test "$USE_AIX" = 1; then
f6bcfd97
BP
16379 THREADS_LIB=pthreads
16380 else
16381 THREADS_LIB=pthread
16382 fi
16383
6232543b
VS
16384 ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LIB_pthread_create" | $ac_tr_sh`
16385echo "$as_me:16385: checking for pthread_create in -l$THREADS_LIB" >&5
16386echo $ECHO_N "checking for pthread_create in -l$THREADS_LIB... $ECHO_C" >&6
16387if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 16389else
6232543b 16390 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 16391LIBS="-l$THREADS_LIB $LIBS"
6232543b
VS
16392cat >conftest.$ac_ext <<_ACEOF
16393#line 16393 "configure"
10f2d63a 16394#include "confdefs.h"
6232543b 16395
10f2d63a 16396/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16397#ifdef __cplusplus
16398extern "C"
16399#endif
10f2d63a 16400/* We use char because int might match the return type of a gcc2
6232543b
VS
16401 builtin and then its argument prototype would still apply. */
16402char pthread_create ();
16403int
16404main ()
16405{
16406pthread_create ();
16407 ;
16408 return 0;
16409}
16410_ACEOF
16411rm -f conftest.$ac_objext conftest$ac_exeext
16412if { (eval echo "$as_me:16412: \"$ac_link\"") >&5
16413 (eval $ac_link) 2>&5
16414 ac_status=$?
16415 echo "$as_me:16415: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -s conftest$ac_exeext'
16418 { (eval echo "$as_me:16418: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:16421: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 eval "$ac_ac_Lib=yes"
16424else
16425 echo "$as_me: failed program was:" >&5
16426cat conftest.$ac_ext >&5
16427eval "$ac_ac_Lib=no"
16428fi
16429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16430LIBS=$ac_check_lib_save_LIBS
16431fi
16432echo "$as_me:16432: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
16433echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
16434if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
10f2d63a 16435
10f2d63a 16436 THREADS_OBJ="threadpsx.lo"
f6bcfd97 16437 THREADS_LINK=$THREADS_LIB
6232543b 16438
10f2d63a 16439else
10f2d63a 16440
6232543b
VS
16441 echo "$as_me:16441: checking for pthread_create in -lc_r" >&5
16442echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
16443if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 16445else
6232543b 16446 ac_check_lib_save_LIBS=$LIBS
10f2d63a 16447LIBS="-lc_r $LIBS"
6232543b
VS
16448cat >conftest.$ac_ext <<_ACEOF
16449#line 16449 "configure"
10f2d63a 16450#include "confdefs.h"
6232543b 16451
10f2d63a 16452/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16453#ifdef __cplusplus
16454extern "C"
16455#endif
10f2d63a 16456/* We use char because int might match the return type of a gcc2
6232543b
VS
16457 builtin and then its argument prototype would still apply. */
16458char pthread_create ();
16459int
16460main ()
16461{
16462pthread_create ();
16463 ;
16464 return 0;
16465}
16466_ACEOF
16467rm -f conftest.$ac_objext conftest$ac_exeext
16468if { (eval echo "$as_me:16468: \"$ac_link\"") >&5
16469 (eval $ac_link) 2>&5
16470 ac_status=$?
16471 echo "$as_me:16471: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -s conftest$ac_exeext'
16474 { (eval echo "$as_me:16474: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16476 ac_status=$?
16477 echo "$as_me:16477: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16479 ac_cv_lib_c_r_pthread_create=yes
16480else
16481 echo "$as_me: failed program was:" >&5
16482cat conftest.$ac_ext >&5
16483ac_cv_lib_c_r_pthread_create=no
16484fi
16485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16486LIBS=$ac_check_lib_save_LIBS
16487fi
16488echo "$as_me:16488: result: $ac_cv_lib_c_r_pthread_create" >&5
16489echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
16490if test $ac_cv_lib_c_r_pthread_create = yes; then
10f2d63a 16491
10f2d63a
VZ
16492 THREADS_OBJ="threadpsx.lo"
16493 THREADS_LINK="c_r"
6232543b 16494
10f2d63a 16495else
10f2d63a 16496
6232543b
VS
16497 echo "$as_me:16497: checking for sys/prctl.h" >&5
16498echo $ECHO_N "checking for sys/prctl.h... $ECHO_C" >&6
16499if test "${ac_cv_header_sys_prctl_h+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 16501else
6232543b
VS
16502 cat >conftest.$ac_ext <<_ACEOF
16503#line 16503 "configure"
10f2d63a
VZ
16504#include "confdefs.h"
16505#include <sys/prctl.h>
6232543b
VS
16506_ACEOF
16507if { (eval echo "$as_me:16507: \"$ac_cpp conftest.$ac_ext\"") >&5
16508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16509 ac_status=$?
16510 egrep -v '^ *\+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 echo "$as_me:16513: \$? = $ac_status" >&5
16514 (exit $ac_status); } >/dev/null; then
16515 if test -s conftest.err; then
16516 ac_cpp_err=$ac_c_preproc_warn_flag
16517 else
16518 ac_cpp_err=
16519 fi
16520else
16521 ac_cpp_err=yes
16522fi
16523if test -z "$ac_cpp_err"; then
16524 ac_cv_header_sys_prctl_h=yes
10f2d63a 16525else
6232543b 16526 echo "$as_me: failed program was:" >&5
10f2d63a 16527 cat conftest.$ac_ext >&5
6232543b 16528 ac_cv_header_sys_prctl_h=no
10f2d63a 16529fi
6232543b 16530rm -f conftest.err conftest.$ac_ext
10f2d63a 16531fi
6232543b
VS
16532echo "$as_me:16532: result: $ac_cv_header_sys_prctl_h" >&5
16533echo "${ECHO_T}$ac_cv_header_sys_prctl_h" >&6
16534if test $ac_cv_header_sys_prctl_h = yes; then
16535
1f8ae82f 16536 THREADS_OBJ="threadsgi.lo"
10f2d63a 16537
10f2d63a
VZ
16538fi
16539
10f2d63a
VZ
16540fi
16541
6232543b 16542fi
10f2d63a
VZ
16543
16544 if test -z "$THREADS_OBJ" ; then
16545 wxUSE_THREADS=no
6232543b
VS
16546 { echo "$as_me:16546: WARNING: No thread support on this system" >&5
16547echo "$as_me: WARNING: No thread support on this system" >&2;}
10f2d63a
VZ
16548 fi
16549fi
16550
16551if test "$wxUSE_THREADS" = "yes" ; then
6232543b
VS
16552
16553for ac_func in thr_setconcurrency
70846f0a 16554do
6232543b
VS
16555ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16556echo "$as_me:16556: checking for $ac_func" >&5
16557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16558if eval "test \"\${$ac_ac_var+set}\" = set"; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560else
16561 cat >conftest.$ac_ext <<_ACEOF
16562#line 16562 "configure"
70846f0a
VZ
16563#include "confdefs.h"
16564/* System header to define __stub macros and hopefully few prototypes,
6232543b 16565 which can conflict with char $ac_func (); below. */
70846f0a
VZ
16566#include <assert.h>
16567/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16568#ifdef __cplusplus
16569extern "C"
16570#endif
70846f0a 16571/* We use char because int might match the return type of a gcc2
6232543b
VS
16572 builtin and then its argument prototype would still apply. */
16573char $ac_func ();
16574char (*f) ();
70846f0a 16575
6232543b
VS
16576int
16577main ()
16578{
70846f0a
VZ
16579/* The GNU C library defines this for functions which it implements
16580 to always fail with ENOSYS. Some functions are actually named
16581 something starting with __ and the normal name is an alias. */
16582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16583choke me
16584#else
6232543b 16585f = $ac_func;
70846f0a
VZ
16586#endif
16587
6232543b
VS
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext conftest$ac_exeext
16593if { (eval echo "$as_me:16593: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>&5
16595 ac_status=$?
16596 echo "$as_me:16596: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -s conftest$ac_exeext'
16599 { (eval echo "$as_me:16599: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:16602: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 eval "$ac_ac_var=yes"
16605else
16606 echo "$as_me: failed program was:" >&5
16607cat conftest.$ac_ext >&5
16608eval "$ac_ac_var=no"
16609fi
16610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16611fi
16612echo "$as_me:16612: result: `eval echo '${'$ac_ac_var'}'`" >&5
16613echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16614if test `eval echo '${'$ac_ac_var'}'` = yes; then
16615 cat >>confdefs.h <<EOF
16616#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
70846f0a 16617EOF
70846f0a 16618
70846f0a
VZ
16619fi
16620done
16621
6232543b 16622for ac_header in sched.h
10f2d63a 16623do
6232543b
VS
16624ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16625echo "$as_me:16625: checking for $ac_header" >&5
16626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16627if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16629else
16630 cat >conftest.$ac_ext <<_ACEOF
16631#line 16631 "configure"
10f2d63a 16632#include "confdefs.h"
6232543b
VS
16633#include <$ac_header>
16634_ACEOF
16635if { (eval echo "$as_me:16635: \"$ac_cpp conftest.$ac_ext\"") >&5
16636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16637 ac_status=$?
16638 egrep -v '^ *\+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 echo "$as_me:16641: \$? = $ac_status" >&5
16642 (exit $ac_status); } >/dev/null; then
16643 if test -s conftest.err; then
16644 ac_cpp_err=$ac_c_preproc_warn_flag
16645 else
16646 ac_cpp_err=
16647 fi
16648else
16649 ac_cpp_err=yes
16650fi
16651if test -z "$ac_cpp_err"; then
16652 eval "$ac_ac_Header=yes"
10f2d63a 16653else
6232543b 16654 echo "$as_me: failed program was:" >&5
10f2d63a 16655 cat conftest.$ac_ext >&5
6232543b 16656 eval "$ac_ac_Header=no"
10f2d63a 16657fi
6232543b 16658rm -f conftest.err conftest.$ac_ext
10f2d63a 16659fi
6232543b
VS
16660echo "$as_me:16660: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16661echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16662if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16663 cat >>confdefs.h <<EOF
16664#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 16665EOF
6232543b 16666
10f2d63a
VZ
16667fi
16668done
16669
6232543b
VS
16670 ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_sched_yield" | $ac_tr_sh`
16671echo "$as_me:16671: checking for sched_yield in -l$THREADS_LINK" >&5
16672echo $ECHO_N "checking for sched_yield in -l$THREADS_LINK... $ECHO_C" >&6
16673if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 16675else
6232543b 16676 ac_check_lib_save_LIBS=$LIBS
10f2d63a 16677LIBS="-l$THREADS_LINK $LIBS"
6232543b
VS
16678cat >conftest.$ac_ext <<_ACEOF
16679#line 16679 "configure"
10f2d63a 16680#include "confdefs.h"
6232543b 16681
10f2d63a 16682/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16683#ifdef __cplusplus
16684extern "C"
16685#endif
10f2d63a 16686/* We use char because int might match the return type of a gcc2
6232543b
VS
16687 builtin and then its argument prototype would still apply. */
16688char sched_yield ();
16689int
16690main ()
16691{
16692sched_yield ();
16693 ;
16694 return 0;
16695}
16696_ACEOF
16697rm -f conftest.$ac_objext conftest$ac_exeext
16698if { (eval echo "$as_me:16698: \"$ac_link\"") >&5
16699 (eval $ac_link) 2>&5
16700 ac_status=$?
16701 echo "$as_me:16701: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
16703 { ac_try='test -s conftest$ac_exeext'
16704 { (eval echo "$as_me:16704: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:16707: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 eval "$ac_ac_Lib=yes"
16710else
16711 echo "$as_me: failed program was:" >&5
16712cat conftest.$ac_ext >&5
16713eval "$ac_ac_Lib=no"
16714fi
16715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16716LIBS=$ac_check_lib_save_LIBS
16717fi
16718echo "$as_me:16718: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
16719echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
16720if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
16721 cat >>confdefs.h <<\EOF
10f2d63a
VZ
16722#define HAVE_SCHED_YIELD 1
16723EOF
16724
16725else
6232543b
VS
16726 echo "$as_me:16726: checking for sched_yield in -l\"posix4\"" >&5
16727echo $ECHO_N "checking for sched_yield in -l\"posix4\"... $ECHO_C" >&6
16728if test "${ac_cv_lib__posix4__sched_yield+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 16730else
6232543b 16731 ac_check_lib_save_LIBS=$LIBS
10f2d63a 16732LIBS="-l"posix4" $LIBS"
6232543b
VS
16733cat >conftest.$ac_ext <<_ACEOF
16734#line 16734 "configure"
10f2d63a 16735#include "confdefs.h"
6232543b 16736
10f2d63a 16737/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16738#ifdef __cplusplus
16739extern "C"
16740#endif
10f2d63a 16741/* We use char because int might match the return type of a gcc2
6232543b
VS
16742 builtin and then its argument prototype would still apply. */
16743char sched_yield ();
16744int
16745main ()
16746{
16747sched_yield ();
16748 ;
16749 return 0;
16750}
16751_ACEOF
16752rm -f conftest.$ac_objext conftest$ac_exeext
16753if { (eval echo "$as_me:16753: \"$ac_link\"") >&5
16754 (eval $ac_link) 2>&5
16755 ac_status=$?
16756 echo "$as_me:16756: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -s conftest$ac_exeext'
16759 { (eval echo "$as_me:16759: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:16762: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_lib__posix4__sched_yield=yes
16765else
16766 echo "$as_me: failed program was:" >&5
16767cat conftest.$ac_ext >&5
16768ac_cv_lib__posix4__sched_yield=no
16769fi
16770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16771LIBS=$ac_check_lib_save_LIBS
16772fi
16773echo "$as_me:16773: result: $ac_cv_lib__posix4__sched_yield" >&5
16774echo "${ECHO_T}$ac_cv_lib__posix4__sched_yield" >&6
16775if test $ac_cv_lib__posix4__sched_yield = yes; then
16776 cat >>confdefs.h <<\EOF
10f2d63a
VZ
16777#define HAVE_SCHED_YIELD 1
16778EOF
16779 POSIX4_LINK="-lposix4"
16780else
6232543b
VS
16781 { echo "$as_me:16781: WARNING: wxThread::Yield will not work properly" >&5
16782echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
10f2d63a 16783
10f2d63a
VZ
16784fi
16785
6232543b 16786fi
10f2d63a 16787
f6bcfd97 16788 HAVE_PRIOR_FUNCS=0
6232543b
VS
16789 ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_pthread_attr_getschedpolicy" | $ac_tr_sh`
16790echo "$as_me:16790: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
16791echo $ECHO_N "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK... $ECHO_C" >&6
16792if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 16794else
6232543b 16795 ac_check_lib_save_LIBS=$LIBS
10f2d63a 16796LIBS="-l$THREADS_LINK $LIBS"
6232543b
VS
16797cat >conftest.$ac_ext <<_ACEOF
16798#line 16798 "configure"
10f2d63a 16799#include "confdefs.h"
6232543b 16800
10f2d63a 16801/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16802#ifdef __cplusplus
16803extern "C"
16804#endif
10f2d63a 16805/* We use char because int might match the return type of a gcc2
6232543b
VS
16806 builtin and then its argument prototype would still apply. */
16807char pthread_attr_getschedpolicy ();
16808int
16809main ()
16810{
16811pthread_attr_getschedpolicy ();
16812 ;
16813 return 0;
16814}
16815_ACEOF
16816rm -f conftest.$ac_objext conftest$ac_exeext
16817if { (eval echo "$as_me:16817: \"$ac_link\"") >&5
16818 (eval $ac_link) 2>&5
16819 ac_status=$?
16820 echo "$as_me:16820: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -s conftest$ac_exeext'
16823 { (eval echo "$as_me:16823: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:16826: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 eval "$ac_ac_Lib=yes"
16829else
16830 echo "$as_me: failed program was:" >&5
16831cat conftest.$ac_ext >&5
16832eval "$ac_ac_Lib=no"
16833fi
16834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16835LIBS=$ac_check_lib_save_LIBS
16836fi
16837echo "$as_me:16837: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
16838echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
16839if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
16840 ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_pthread_attr_setschedparam" | $ac_tr_sh`
16841echo "$as_me:16841: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
16842echo $ECHO_N "checking for pthread_attr_setschedparam in -l$THREADS_LINK... $ECHO_C" >&6
16843if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845else
16846 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 16847LIBS="-l$THREADS_LINK $LIBS"
6232543b
VS
16848cat >conftest.$ac_ext <<_ACEOF
16849#line 16849 "configure"
f6bcfd97 16850#include "confdefs.h"
6232543b 16851
f6bcfd97 16852/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16853#ifdef __cplusplus
16854extern "C"
16855#endif
f6bcfd97 16856/* We use char because int might match the return type of a gcc2
6232543b
VS
16857 builtin and then its argument prototype would still apply. */
16858char pthread_attr_setschedparam ();
16859int
16860main ()
16861{
16862pthread_attr_setschedparam ();
16863 ;
16864 return 0;
16865}
16866_ACEOF
16867rm -f conftest.$ac_objext conftest$ac_exeext
16868if { (eval echo "$as_me:16868: \"$ac_link\"") >&5
16869 (eval $ac_link) 2>&5
16870 ac_status=$?
16871 echo "$as_me:16871: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -s conftest$ac_exeext'
16874 { (eval echo "$as_me:16874: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:16877: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 eval "$ac_ac_Lib=yes"
16880else
16881 echo "$as_me: failed program was:" >&5
16882cat conftest.$ac_ext >&5
16883eval "$ac_ac_Lib=no"
16884fi
16885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16886LIBS=$ac_check_lib_save_LIBS
16887fi
16888echo "$as_me:16888: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
16889echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
16890if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
16891 ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_sched_get_priority_max" | $ac_tr_sh`
16892echo "$as_me:16892: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
16893echo $ECHO_N "checking for sched_get_priority_max in -l$THREADS_LINK... $ECHO_C" >&6
16894if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896else
16897 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 16898LIBS="-l$THREADS_LINK $LIBS"
6232543b
VS
16899cat >conftest.$ac_ext <<_ACEOF
16900#line 16900 "configure"
f6bcfd97 16901#include "confdefs.h"
6232543b 16902
f6bcfd97 16903/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
16904#ifdef __cplusplus
16905extern "C"
16906#endif
f6bcfd97 16907/* We use char because int might match the return type of a gcc2
6232543b
VS
16908 builtin and then its argument prototype would still apply. */
16909char sched_get_priority_max ();
16910int
16911main ()
16912{
16913sched_get_priority_max ();
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext conftest$ac_exeext
16919if { (eval echo "$as_me:16919: \"$ac_link\"") >&5
16920 (eval $ac_link) 2>&5
16921 ac_status=$?
16922 echo "$as_me:16922: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -s conftest$ac_exeext'
16925 { (eval echo "$as_me:16925: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:16928: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 eval "$ac_ac_Lib=yes"
16931else
16932 echo "$as_me: failed program was:" >&5
16933cat conftest.$ac_ext >&5
16934eval "$ac_ac_Lib=no"
16935fi
16936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16937LIBS=$ac_check_lib_save_LIBS
16938fi
16939echo "$as_me:16939: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
16940echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
16941if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
f6bcfd97 16942 HAVE_PRIOR_FUNCS=1
10f2d63a 16943else
6232543b
VS
16944 echo "$as_me:16944: checking for sched_get_priority_max in -l\"posix4\"" >&5
16945echo $ECHO_N "checking for sched_get_priority_max in -l\"posix4\"... $ECHO_C" >&6
16946if test "${ac_cv_lib__posix4__sched_get_priority_max+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 16948else
6232543b 16949 ac_check_lib_save_LIBS=$LIBS
10f2d63a 16950LIBS="-l"posix4" $LIBS"
6232543b
VS
16951cat >conftest.$ac_ext <<_ACEOF
16952#line 16952 "configure"
10f2d63a 16953#include "confdefs.h"
10f2d63a 16954
6232543b
VS
16955/* Override any gcc2 internal prototype to avoid an error. */
16956#ifdef __cplusplus
16957extern "C"
16958#endif
16959/* We use char because int might match the return type of a gcc2
16960 builtin and then its argument prototype would still apply. */
16961char sched_get_priority_max ();
16962int
16963main ()
16964{
16965sched_get_priority_max ();
16966 ;
16967 return 0;
16968}
16969_ACEOF
16970rm -f conftest.$ac_objext conftest$ac_exeext
16971if { (eval echo "$as_me:16971: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>&5
16973 ac_status=$?
16974 echo "$as_me:16974: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try='test -s conftest$ac_exeext'
16977 { (eval echo "$as_me:16977: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16979 ac_status=$?
16980 echo "$as_me:16980: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 ac_cv_lib__posix4__sched_get_priority_max=yes
16983else
16984 echo "$as_me: failed program was:" >&5
16985cat conftest.$ac_ext >&5
16986ac_cv_lib__posix4__sched_get_priority_max=no
16987fi
16988rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16989LIBS=$ac_check_lib_save_LIBS
16990fi
16991echo "$as_me:16991: result: $ac_cv_lib__posix4__sched_get_priority_max" >&5
16992echo "${ECHO_T}$ac_cv_lib__posix4__sched_get_priority_max" >&6
16993if test $ac_cv_lib__posix4__sched_get_priority_max = yes; then
10f2d63a 16994
f6bcfd97
BP
16995 HAVE_PRIOR_FUNCS=1
16996 POSIX4_LINK="-lposix4"
f6bcfd97 16997
f6bcfd97
BP
16998fi
16999
10f2d63a
VZ
17000fi
17001
10f2d63a
VZ
17002fi
17003
6232543b 17004fi
10f2d63a 17005
f6bcfd97 17006 if test "$HAVE_PRIOR_FUNCS" = 1; then
6232543b 17007 cat >>confdefs.h <<\EOF
f6bcfd97
BP
17008#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17009EOF
17010
17011 else
6232543b
VS
17012 { echo "$as_me:17012: WARNING: Setting thread priority will not work" >&5
17013echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
f6bcfd97
BP
17014 fi
17015
6232543b
VS
17016 ac_ac_Lib=`echo "ac_cv_lib_$THREADS_LINK_pthread_cancel" | $ac_tr_sh`
17017echo "$as_me:17017: checking for pthread_cancel in -l$THREADS_LINK" >&5
17018echo $ECHO_N "checking for pthread_cancel in -l$THREADS_LINK... $ECHO_C" >&6
17019if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 17021else
6232543b 17022 ac_check_lib_save_LIBS=$LIBS
10f2d63a 17023LIBS="-l$THREADS_LINK $LIBS"
6232543b
VS
17024cat >conftest.$ac_ext <<_ACEOF
17025#line 17025 "configure"
10f2d63a 17026#include "confdefs.h"
6232543b 17027
10f2d63a 17028/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
17029#ifdef __cplusplus
17030extern "C"
17031#endif
10f2d63a 17032/* We use char because int might match the return type of a gcc2
6232543b
VS
17033 builtin and then its argument prototype would still apply. */
17034char pthread_cancel ();
17035int
17036main ()
17037{
17038pthread_cancel ();
17039 ;
17040 return 0;
17041}
17042_ACEOF
17043rm -f conftest.$ac_objext conftest$ac_exeext
17044if { (eval echo "$as_me:17044: \"$ac_link\"") >&5
17045 (eval $ac_link) 2>&5
17046 ac_status=$?
17047 echo "$as_me:17047: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:17050: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:17053: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$ac_ac_Lib=yes"
17056else
17057 echo "$as_me: failed program was:" >&5
17058cat conftest.$ac_ext >&5
17059eval "$ac_ac_Lib=no"
17060fi
17061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17062LIBS=$ac_check_lib_save_LIBS
17063fi
17064echo "$as_me:17064: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
17065echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
17066if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
17067 cat >>confdefs.h <<\EOF
10f2d63a
VZ
17068#define HAVE_PTHREAD_CANCEL 1
17069EOF
17070
17071else
6232543b
VS
17072 { echo "$as_me:17072: WARNING: wxThread::Kill() will not work properly" >&5
17073echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
10f2d63a
VZ
17074fi
17075
6232543b
VS
17076 echo "$as_me:17076: checking for pthread_cleanup_push/pop" >&5
17077echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
17078if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 17080else
6232543b
VS
17081
17082 cat >conftest.$ac_ext <<_ACEOF
17083#line 17083 "configure"
10f2d63a
VZ
17084#include "confdefs.h"
17085#include <pthread.h>
6232543b
VS
17086int
17087main ()
17088{
10f2d63a
VZ
17089
17090 pthread_cleanup_push(NULL, NULL);
17091 pthread_cleanup_pop(0);
6232543b
VS
17092
17093 ;
17094 return 0;
17095}
17096_ACEOF
17097rm -f conftest.$ac_objext
17098if { (eval echo "$as_me:17098: \"$ac_compile\"") >&5
17099 (eval $ac_compile) 2>&5
17100 ac_status=$?
17101 echo "$as_me:17101: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -s conftest.$ac_objext'
17104 { (eval echo "$as_me:17104: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:17107: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109
10f2d63a 17110 wx_cv_func_pthread_cleanup_push=yes
6232543b 17111
10f2d63a 17112else
6232543b
VS
17113 echo "$as_me: failed program was:" >&5
17114cat conftest.$ac_ext >&5
17115
10f2d63a 17116 wx_cv_func_pthread_cleanup_push=no
6232543b 17117
10f2d63a 17118fi
6232543b 17119rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 17120
6232543b
VS
17121fi
17122echo "$as_me:17122: result: $wx_cv_func_pthread_cleanup_push" >&5
17123echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
10f2d63a 17124
d9b9876f 17125 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
6232543b 17126 cat >>confdefs.h <<\EOF
d9b9876f
VZ
17127#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17128EOF
17129
17130 fi
17131
6232543b
VS
17132 echo "$as_me:17132: checking for pthread_mutexattr_t" >&5
17133echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
17134if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
d9b9876f 17136else
6232543b
VS
17137
17138 cat >conftest.$ac_ext <<_ACEOF
17139#line 17139 "configure"
d9b9876f
VZ
17140#include "confdefs.h"
17141#include <pthread.h>
6232543b
VS
17142int
17143main ()
17144{
d9b9876f
VZ
17145
17146 pthread_mutexattr_t attr;
17147 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
6232543b
VS
17148
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext
17154if { (eval echo "$as_me:17154: \"$ac_compile\"") >&5
17155 (eval $ac_compile) 2>&5
17156 ac_status=$?
17157 echo "$as_me:17157: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
17159 { ac_try='test -s conftest.$ac_objext'
17160 { (eval echo "$as_me:17160: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:17163: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165
d9b9876f 17166 wx_cv_type_pthread_mutexattr_t=yes
6232543b 17167
d9b9876f 17168else
6232543b
VS
17169 echo "$as_me: failed program was:" >&5
17170cat conftest.$ac_ext >&5
17171
d9b9876f 17172 wx_cv_type_pthread_mutexattr_t=no
6232543b 17173
d9b9876f 17174fi
6232543b 17175rm -f conftest.$ac_objext conftest.$ac_ext
d9b9876f 17176
6232543b
VS
17177fi
17178echo "$as_me:17178: result: $wx_cv_type_pthread_mutexattr_t" >&5
17179echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
d9b9876f
VZ
17180
17181 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
6232543b 17182 cat >>confdefs.h <<\EOF
d9b9876f
VZ
17183#define HAVE_PTHREAD_MUTEXATTR_T 1
17184EOF
17185
17186 else
6232543b
VS
17187 echo "$as_me:17187: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17188echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
17189if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191else
17192
17193 cat >conftest.$ac_ext <<_ACEOF
17194#line 17194 "configure"
d9b9876f
VZ
17195#include "confdefs.h"
17196#include <pthread.h>
6232543b
VS
17197int
17198main ()
17199{
d9b9876f
VZ
17200
17201 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6232543b
VS
17202
17203 ;
17204 return 0;
17205}
17206_ACEOF
17207rm -f conftest.$ac_objext
17208if { (eval echo "$as_me:17208: \"$ac_compile\"") >&5
17209 (eval $ac_compile) 2>&5
17210 ac_status=$?
17211 echo "$as_me:17211: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try='test -s conftest.$ac_objext'
17214 { (eval echo "$as_me:17214: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:17217: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219
d9b9876f 17220 wx_cv_type_pthread_rec_mutex_init=yes
6232543b 17221
d9b9876f 17222else
6232543b
VS
17223 echo "$as_me: failed program was:" >&5
17224cat conftest.$ac_ext >&5
17225
d9b9876f 17226 wx_cv_type_pthread_rec_mutex_init=no
6232543b 17227
d9b9876f 17228fi
6232543b 17229rm -f conftest.$ac_objext conftest.$ac_ext
d9b9876f 17230
6232543b
VS
17231fi
17232echo "$as_me:17232: result: $wx_cv_type_pthread_rec_mutex_init" >&5
17233echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
3765e936 17234 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
6232543b 17235 cat >>confdefs.h <<\EOF
d9b9876f
VZ
17236#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17237EOF
17238
17239 else
6232543b
VS
17240 { echo "$as_me:17240: WARNING: wxMutex won't be recursive on this platform" >&5
17241echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
d9b9876f
VZ
17242 fi
17243 fi
17244
10f2d63a 17245 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
17246
17247 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17248 CFLAGS="${CFLAGS} -mt"
17249 CXXFLAGS="${CXXFLAGS} -mt"
17250 LDFLAGS="${LDFLAGS} -mt"
17251 fi
10f2d63a
VZ
17252fi
17253
17254fi
17255
17256if test "$wxUSE_THREADS" = "yes"; then
6232543b 17257 cat >>confdefs.h <<\EOF
10f2d63a
VZ
17258#define wxUSE_THREADS 1
17259EOF
17260
2c6025bc 17261 if test "$wxUSE_MAC" = "0"; then
10f2d63a 17262 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
17263 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
17264 fi
10f2d63a
VZ
17265
17266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17267else
17268 if test "$ac_cv_func_strtok_r" = "yes"; then
6232543b
VS
17269 echo "$as_me:17269: checking if -D_REENTRANT is needed" >&5
17270echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
ab9b9eab
VZ
17271 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17272 CFLAGS="${CFLAGS} -D_REENTRANT"
17273 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
6232543b
VS
17274 echo "$as_me:17274: result: yes" >&5
17275echo "${ECHO_T}yes" >&6
ab9b9eab 17276 else
6232543b
VS
17277 echo "$as_me:17277: result: no" >&5
17278echo "${ECHO_T}no" >&6
10f2d63a
VZ
17279 fi
17280 fi
17281fi
17282
6f72b082 17283if test "$WXGTK20" = 1 ; then
6232543b 17284 cat >>confdefs.h <<EOF
6f72b082 17285#define __WXGTK20__ $WXGTK20
13111b2a
VZ
17286EOF
17287
17288 WXGTK12=1
17289fi
17290
10f2d63a 17291if test "$WXGTK12" = 1 ; then
6232543b 17292 cat >>confdefs.h <<EOF
10f2d63a
VZ
17293#define __WXGTK12__ $WXGTK12
17294EOF
17295
17296fi
17297
f6bcfd97 17298if test "$WXGTK127" = 1 ; then
6232543b 17299 cat >>confdefs.h <<EOF
f6bcfd97
BP
17300#define __WXGTK127__ $WXGTK127
17301EOF
17302
17303fi
17304
10f2d63a
VZ
17305if test "$WXWINE" = 1 ; then
17306 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
17307fi
17308
b4085ce6 17309if test "$wxUSE_MAC" = 1 ; then
2c6025bc 17310 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9
GD
17311 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
17312 CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings"
2f51a9ec
GD
17313 # Extract the first word of "Rez", so it can be a program name with args.
17314set dummy Rez; ac_word=$2
6232543b
VS
17315echo "$as_me:17315: checking for $ac_word" >&5
17316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17317if test "${ac_cv_prog_REZ+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
2f51a9ec
GD
17319else
17320 if test -n "$REZ"; then
17321 ac_cv_prog_REZ="$REZ" # Let the user override the test.
17322else
6232543b
VS
17323 ac_save_IFS=$IFS; IFS=$ac_path_separator
17324ac_dummy="$PATH"
17325for ac_dir in $ac_dummy; do
17326 IFS=$ac_save_IFS
17327 test -z "$ac_dir" && ac_dir=.
17328 $as_executable_p "$ac_dir/$ac_word" || continue
17329ac_cv_prog_REZ="Rez"
17330echo "$as_me:17330: found $ac_dir/$ac_word" >&5
17331break
17332done
17333
2f51a9ec
GD
17334 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
17335fi
17336fi
6232543b 17337REZ=$ac_cv_prog_REZ
2f51a9ec 17338if test -n "$REZ"; then
6232543b
VS
17339 echo "$as_me:17339: result: $REZ" >&5
17340echo "${ECHO_T}$REZ" >&6
2f51a9ec 17341else
6232543b
VS
17342 echo "$as_me:17342: result: no" >&5
17343echo "${ECHO_T}no" >&6
2f51a9ec
GD
17344fi
17345
17346 # Extract the first word of "Derez", so it can be a program name with args.
17347set dummy Derez; ac_word=$2
6232543b
VS
17348echo "$as_me:17348: checking for $ac_word" >&5
17349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17350if test "${ac_cv_prog_DEREZ+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
2f51a9ec
GD
17352else
17353 if test -n "$DEREZ"; then
17354 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
17355else
6232543b
VS
17356 ac_save_IFS=$IFS; IFS=$ac_path_separator
17357ac_dummy="$PATH"
17358for ac_dir in $ac_dummy; do
17359 IFS=$ac_save_IFS
17360 test -z "$ac_dir" && ac_dir=.
17361 $as_executable_p "$ac_dir/$ac_word" || continue
17362ac_cv_prog_DEREZ="Derez"
17363echo "$as_me:17363: found $ac_dir/$ac_word" >&5
17364break
17365done
17366
2f51a9ec
GD
17367 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
17368fi
17369fi
6232543b 17370DEREZ=$ac_cv_prog_DEREZ
2f51a9ec 17371if test -n "$DEREZ"; then
6232543b
VS
17372 echo "$as_me:17372: result: $DEREZ" >&5
17373echo "${ECHO_T}$DEREZ" >&6
2f51a9ec 17374else
6232543b
VS
17375 echo "$as_me:17375: result: no" >&5
17376echo "${ECHO_T}no" >&6
2f51a9ec
GD
17377fi
17378
17379 RESCOMP=${REZ}
17380 REZFLAGS="-d __UNIX__ -useDF"
17381 DEREZFLAGS="Carbon.r -useDF"
17382 RESFLAGS="Carbon.r -t APPL"
17383 LIBWXMACRES="\$(LIBWX_MACRES)"
17384 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
17385fi
17386
10f2d63a
VZ
17387if test "$wxUSE_CYGWIN" = 1 ; then
17388 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
17389fi
17390
17391WXDEBUG=
17392
17393if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17394 WXDEBUG="-g"
17395 wxUSE_OPTIMISE=no
17396fi
17397
17398if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17399 wxUSE_DEBUG_INFO=yes
17400 WXDEBUG="-ggdb"
17401fi
17402
17403if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
6232543b 17404 cat >>confdefs.h <<\EOF
10f2d63a
VZ
17405#define WXDEBUG 1
17406EOF
17407
17408 WXDEBUG_DEFINE="-D__WXDEBUG__"
17409else
17410 if test "$wxUSE_GTK" = 1 ; then
17411 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17412 fi
17413fi
17414
17415if test "$wxUSE_MEM_TRACING" = "yes" ; then
6232543b 17416 cat >>confdefs.h <<\EOF
10f2d63a
VZ
17417#define wxUSE_MEMORY_TRACING 1
17418EOF
17419
6232543b 17420 cat >>confdefs.h <<\EOF
10f2d63a 17421#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
17422EOF
17423
6232543b 17424 cat >>confdefs.h <<\EOF
47c13eb7 17425#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
17426EOF
17427
17428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17429fi
17430
17431if test "$wxUSE_DMALLOC" = "yes" ; then
17432 DMALLOC_LINK="-ldmalloc"
17433fi
17434
17435PROFILE=
17436if test "$wxUSE_PROFILE" = "yes" ; then
17437 PROFILE="-pg"
17438fi
17439
17440DEP_INFO_FLAGS=
caa2c79b 17441CODE_GEN_FLAGS=
0f3f1cbc 17442CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
17443if test "$GCC" = yes ; then
17444 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 17445 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
17446 fi
17447 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 17448 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
17449 fi
17450 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 17451 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
17452 fi
17453 if test "$wxUSE_NO_DEPS" = "no" ; then
17454 DEP_INFO_FLAGS="-MMD"
17455 fi
17456fi
17457
10f2d63a
VZ
17458CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17459CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17460if test "$wxUSE_OPTIMISE" = "no" ; then
17461 OPTIMISE=
17462else
17463 if test "$GCC" = yes ; then
17464 OPTIMISE="-O2"
17465 case "${host}" in
17466 i586-*-*|i686-*-* )
17467 OPTIMISE="${OPTIMISE} "
17468 ;;
17469 esac
17470 else
17471 OPTIMISE="-O"
17472 fi
17473fi
17474
10f2d63a 17475ZLIB_INCLUDE=
422107f9 17476if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
6232543b 17477 cat >>confdefs.h <<\EOF
10f2d63a
VZ
17478#define wxUSE_ZLIB 1
17479EOF
17480
422107f9
VZ
17481 if test "$wxUSE_ZLIB" = "yes" ; then
17482 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
17483 else
17484 ZLIB_LINK=
6232543b
VS
17485 echo "$as_me:17485: checking for zlib.h" >&5
17486echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
17487if test "${ac_cv_header_zlib_h+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489else
17490 cat >conftest.$ac_ext <<_ACEOF
17491#line 17491 "configure"
422107f9
VZ
17492#include "confdefs.h"
17493#include <zlib.h>
6232543b
VS
17494_ACEOF
17495if { (eval echo "$as_me:17495: \"$ac_cpp conftest.$ac_ext\"") >&5
17496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17497 ac_status=$?
17498 egrep -v '^ *\+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
17501 echo "$as_me:17501: \$? = $ac_status" >&5
17502 (exit $ac_status); } >/dev/null; then
17503 if test -s conftest.err; then
17504 ac_cpp_err=$ac_c_preproc_warn_flag
17505 else
17506 ac_cpp_err=
17507 fi
17508else
17509 ac_cpp_err=yes
17510fi
17511if test -z "$ac_cpp_err"; then
17512 ac_cv_header_zlib_h=yes
422107f9 17513else
6232543b 17514 echo "$as_me: failed program was:" >&5
422107f9 17515 cat conftest.$ac_ext >&5
6232543b 17516 ac_cv_header_zlib_h=no
422107f9 17517fi
6232543b 17518rm -f conftest.err conftest.$ac_ext
422107f9 17519fi
6232543b
VS
17520echo "$as_me:17520: result: $ac_cv_header_zlib_h" >&5
17521echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
17522if test $ac_cv_header_zlib_h = yes; then
17523 echo "$as_me:17523: checking for deflate in -lz" >&5
17524echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17525if test "${ac_cv_lib_z_deflate+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 17527else
6232543b 17528 ac_check_lib_save_LIBS=$LIBS
422107f9 17529LIBS="-lz $LIBS"
6232543b
VS
17530cat >conftest.$ac_ext <<_ACEOF
17531#line 17531 "configure"
422107f9 17532#include "confdefs.h"
6232543b 17533
422107f9 17534/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
17535#ifdef __cplusplus
17536extern "C"
17537#endif
422107f9 17538/* We use char because int might match the return type of a gcc2
6232543b
VS
17539 builtin and then its argument prototype would still apply. */
17540char deflate ();
17541int
17542main ()
17543{
17544deflate ();
17545 ;
17546 return 0;
17547}
17548_ACEOF
17549rm -f conftest.$ac_objext conftest$ac_exeext
17550if { (eval echo "$as_me:17550: \"$ac_link\"") >&5
17551 (eval $ac_link) 2>&5
17552 ac_status=$?
17553 echo "$as_me:17553: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -s conftest$ac_exeext'
17556 { (eval echo "$as_me:17556: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:17559: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 ac_cv_lib_z_deflate=yes
17562else
17563 echo "$as_me: failed program was:" >&5
17564cat conftest.$ac_ext >&5
17565ac_cv_lib_z_deflate=no
17566fi
17567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17568LIBS=$ac_check_lib_save_LIBS
17569fi
17570echo "$as_me:17570: result: $ac_cv_lib_z_deflate" >&5
17571echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17572if test $ac_cv_lib_z_deflate = yes; then
422107f9 17573 ZLIB_LINK="-lz"
422107f9
VZ
17574fi
17575
422107f9
VZ
17576fi
17577
17578 if test "x$ZLIB_LINK" = "x" ; then
6232543b
VS
17579 { { echo "$as_me:17579: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" >&5
17580echo "$as_me: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" >&2;}
17581 { (exit 1); exit 1; }; }
422107f9
VZ
17582 fi
17583 fi
10f2d63a
VZ
17584fi
17585
17586PNG_INCLUDE=
422107f9 17587if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
6232543b 17588 cat >>confdefs.h <<\EOF
10f2d63a
VZ
17589#define wxUSE_LIBPNG 1
17590EOF
17591
41fd4136 17592 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
6232543b
VS
17593 { echo "$as_me:17593: WARNING: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" >&5
17594echo "$as_me: WARNING: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" >&2;}
422107f9
VZ
17595 wxUSE_LIBPNG=yes
17596 fi
17597
17598 if test "$wxUSE_LIBPNG" = "yes" ; then
17599 PNG_INCLUDE="-I\${top_srcdir}/src/png"
17600 else
17601 PNG_LINK=
6232543b
VS
17602 echo "$as_me:17602: checking for png.h" >&5
17603echo $ECHO_N "checking for png.h... $ECHO_C" >&6
17604if test "${ac_cv_header_png_h+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606else
17607 cat >conftest.$ac_ext <<_ACEOF
17608#line 17608 "configure"
422107f9
VZ
17609#include "confdefs.h"
17610#include <png.h>
6232543b
VS
17611_ACEOF
17612if { (eval echo "$as_me:17612: \"$ac_cpp conftest.$ac_ext\"") >&5
17613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17614 ac_status=$?
17615 egrep -v '^ *\+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:17618: \$? = $ac_status" >&5
17619 (exit $ac_status); } >/dev/null; then
17620 if test -s conftest.err; then
17621 ac_cpp_err=$ac_c_preproc_warn_flag
17622 else
17623 ac_cpp_err=
17624 fi
17625else
17626 ac_cpp_err=yes
17627fi
17628if test -z "$ac_cpp_err"; then
17629 ac_cv_header_png_h=yes
422107f9 17630else
6232543b 17631 echo "$as_me: failed program was:" >&5
422107f9 17632 cat conftest.$ac_ext >&5
6232543b 17633 ac_cv_header_png_h=no
422107f9 17634fi
6232543b 17635rm -f conftest.err conftest.$ac_ext
422107f9 17636fi
6232543b
VS
17637echo "$as_me:17637: result: $ac_cv_header_png_h" >&5
17638echo "${ECHO_T}$ac_cv_header_png_h" >&6
17639if test $ac_cv_header_png_h = yes; then
17640 echo "$as_me:17640: checking for png_check_sig in -lpng" >&5
17641echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
17642if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 17644else
6232543b 17645 ac_check_lib_save_LIBS=$LIBS
422107f9 17646LIBS="-lpng -lz -lm $LIBS"
6232543b
VS
17647cat >conftest.$ac_ext <<_ACEOF
17648#line 17648 "configure"
422107f9 17649#include "confdefs.h"
6232543b 17650
422107f9 17651/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
17652#ifdef __cplusplus
17653extern "C"
17654#endif
422107f9 17655/* We use char because int might match the return type of a gcc2
6232543b
VS
17656 builtin and then its argument prototype would still apply. */
17657char png_check_sig ();
17658int
17659main ()
17660{
17661png_check_sig ();
17662 ;
17663 return 0;
17664}
17665_ACEOF
17666rm -f conftest.$ac_objext conftest$ac_exeext
17667if { (eval echo "$as_me:17667: \"$ac_link\"") >&5
17668 (eval $ac_link) 2>&5
17669 ac_status=$?
17670 echo "$as_me:17670: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -s conftest$ac_exeext'
17673 { (eval echo "$as_me:17673: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:17676: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_lib_png_png_check_sig=yes
17679else
17680 echo "$as_me: failed program was:" >&5
17681cat conftest.$ac_ext >&5
17682ac_cv_lib_png_png_check_sig=no
17683fi
17684rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17685LIBS=$ac_check_lib_save_LIBS
17686fi
17687echo "$as_me:17687: result: $ac_cv_lib_png_png_check_sig" >&5
17688echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
17689if test $ac_cv_lib_png_png_check_sig = yes; then
422107f9 17690 PNG_LINK="-lpng"
422107f9
VZ
17691fi
17692
422107f9
VZ
17693fi
17694
17695 if test "x$PNG_LINK" = "x" ; then
6232543b
VS
17696 { { echo "$as_me:17696: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" >&5
17697echo "$as_me: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" >&2;}
17698 { (exit 1); exit 1; }; }
422107f9
VZ
17699 fi
17700 fi
17701
10f2d63a
VZ
17702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
17703fi
17704
17705JPEG_INCLUDE=
422107f9 17706if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
6232543b 17707 cat >>confdefs.h <<\EOF
10f2d63a
VZ
17708#define wxUSE_LIBJPEG 1
17709EOF
17710
422107f9
VZ
17711 if test "$wxUSE_LIBJPEG" = "yes" ; then
17712 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
17713 else
17714 JPEG_LINK=
6232543b
VS
17715 echo "$as_me:17715: checking for jpeglib.h" >&5
17716echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17717if test "${ac_cv_header_jpeglib_h+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719else
17720 cat >conftest.$ac_ext <<_ACEOF
17721#line 17721 "configure"
422107f9
VZ
17722#include "confdefs.h"
17723#include <jpeglib.h>
6232543b
VS
17724_ACEOF
17725if { (eval echo "$as_me:17725: \"$ac_cpp conftest.$ac_ext\"") >&5
17726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17727 ac_status=$?
17728 egrep -v '^ *\+' conftest.er1 >conftest.err
17729 rm -f conftest.er1
17730 cat conftest.err >&5
17731 echo "$as_me:17731: \$? = $ac_status" >&5
17732 (exit $ac_status); } >/dev/null; then
17733 if test -s conftest.err; then
17734 ac_cpp_err=$ac_c_preproc_warn_flag
17735 else
17736 ac_cpp_err=
17737 fi
422107f9 17738else
6232543b
VS
17739 ac_cpp_err=yes
17740fi
17741if test -z "$ac_cpp_err"; then
17742 ac_cv_header_jpeglib_h=yes
17743else
17744 echo "$as_me: failed program was:" >&5
422107f9 17745 cat conftest.$ac_ext >&5
6232543b 17746 ac_cv_header_jpeglib_h=no
422107f9 17747fi
6232543b 17748rm -f conftest.err conftest.$ac_ext
422107f9 17749fi
6232543b
VS
17750echo "$as_me:17750: result: $ac_cv_header_jpeglib_h" >&5
17751echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17752if test $ac_cv_header_jpeglib_h = yes; then
17753 echo "$as_me:17753: checking for jpeg_read_header in -ljpeg" >&5
17754echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
17755if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 17757else
6232543b 17758 ac_check_lib_save_LIBS=$LIBS
422107f9 17759LIBS="-ljpeg $LIBS"
6232543b
VS
17760cat >conftest.$ac_ext <<_ACEOF
17761#line 17761 "configure"
422107f9 17762#include "confdefs.h"
6232543b 17763
422107f9 17764/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
17765#ifdef __cplusplus
17766extern "C"
17767#endif
422107f9 17768/* We use char because int might match the return type of a gcc2
6232543b
VS
17769 builtin and then its argument prototype would still apply. */
17770char jpeg_read_header ();
17771int
17772main ()
17773{
17774jpeg_read_header ();
17775 ;
17776 return 0;
17777}
17778_ACEOF
17779rm -f conftest.$ac_objext conftest$ac_exeext
17780if { (eval echo "$as_me:17780: \"$ac_link\"") >&5
17781 (eval $ac_link) 2>&5
17782 ac_status=$?
17783 echo "$as_me:17783: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -s conftest$ac_exeext'
17786 { (eval echo "$as_me:17786: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:17789: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_cv_lib_jpeg_jpeg_read_header=yes
17792else
17793 echo "$as_me: failed program was:" >&5
17794cat conftest.$ac_ext >&5
17795ac_cv_lib_jpeg_jpeg_read_header=no
17796fi
17797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17798LIBS=$ac_check_lib_save_LIBS
17799fi
17800echo "$as_me:17800: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
17801echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
17802if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
422107f9 17803 JPEG_LINK="-ljpeg"
422107f9
VZ
17804fi
17805
422107f9
VZ
17806fi
17807
17808 if test "x$JPEG_LINK" = "x" ; then
6232543b
VS
17809 { { echo "$as_me:17809: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" >&5
17810echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" >&2;}
17811 { (exit 1); exit 1; }; }
422107f9
VZ
17812 fi
17813 fi
10f2d63a
VZ
17814fi
17815
c7a2bf27 17816TIFF_INCLUDE=
0dcf9893 17817if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
6232543b 17818 cat >>confdefs.h <<\EOF
c7a2bf27
RR
17819#define wxUSE_LIBTIFF 1
17820EOF
17821
665bbe97 17822 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
17823 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
17824 else
17825 TIFF_LINK=
6232543b
VS
17826 echo "$as_me:17826: checking for tiffio.h" >&5
17827echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
17828if test "${ac_cv_header_tiffio_h+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830else
17831 cat >conftest.$ac_ext <<_ACEOF
17832#line 17832 "configure"
0dcf9893
VZ
17833#include "confdefs.h"
17834#include <tiffio.h>
6232543b
VS
17835_ACEOF
17836if { (eval echo "$as_me:17836: \"$ac_cpp conftest.$ac_ext\"") >&5
17837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17838 ac_status=$?
17839 egrep -v '^ *\+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:17842: \$? = $ac_status" >&5
17843 (exit $ac_status); } >/dev/null; then
17844 if test -s conftest.err; then
17845 ac_cpp_err=$ac_c_preproc_warn_flag
17846 else
17847 ac_cpp_err=
17848 fi
17849else
17850 ac_cpp_err=yes
17851fi
17852if test -z "$ac_cpp_err"; then
17853 ac_cv_header_tiffio_h=yes
0dcf9893 17854else
6232543b 17855 echo "$as_me: failed program was:" >&5
0dcf9893 17856 cat conftest.$ac_ext >&5
6232543b 17857 ac_cv_header_tiffio_h=no
0dcf9893 17858fi
6232543b 17859rm -f conftest.err conftest.$ac_ext
0dcf9893 17860fi
6232543b
VS
17861echo "$as_me:17861: result: $ac_cv_header_tiffio_h" >&5
17862echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
17863if test $ac_cv_header_tiffio_h = yes; then
17864 echo "$as_me:17864: checking for TIFFError in -ltiff" >&5
17865echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
17866if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
0dcf9893 17868else
6232543b 17869 ac_check_lib_save_LIBS=$LIBS
0dcf9893 17870LIBS="-ltiff -lm $LIBS"
6232543b
VS
17871cat >conftest.$ac_ext <<_ACEOF
17872#line 17872 "configure"
0dcf9893 17873#include "confdefs.h"
6232543b 17874
0dcf9893 17875/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
17876#ifdef __cplusplus
17877extern "C"
17878#endif
0dcf9893 17879/* We use char because int might match the return type of a gcc2
6232543b
VS
17880 builtin and then its argument prototype would still apply. */
17881char TIFFError ();
17882int
17883main ()
17884{
17885TIFFError ();
17886 ;
17887 return 0;
17888}
17889_ACEOF
17890rm -f conftest.$ac_objext conftest$ac_exeext
17891if { (eval echo "$as_me:17891: \"$ac_link\"") >&5
17892 (eval $ac_link) 2>&5
17893 ac_status=$?
17894 echo "$as_me:17894: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -s conftest$ac_exeext'
17897 { (eval echo "$as_me:17897: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:17900: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_lib_tiff_TIFFError=yes
17903else
17904 echo "$as_me: failed program was:" >&5
17905cat conftest.$ac_ext >&5
17906ac_cv_lib_tiff_TIFFError=no
17907fi
17908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17909LIBS=$ac_check_lib_save_LIBS
17910fi
17911echo "$as_me:17911: result: $ac_cv_lib_tiff_TIFFError" >&5
17912echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
17913if test $ac_cv_lib_tiff_TIFFError = yes; then
0dcf9893 17914 TIFF_LINK="-ltiff"
0dcf9893
VZ
17915fi
17916
0dcf9893
VZ
17917fi
17918
17919 if test "x$TIFF_LINK" = "x" ; then
6232543b
VS
17920 { { echo "$as_me:17920: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" >&5
17921echo "$as_me: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" >&2;}
17922 { (exit 1); exit 1; }; }
0dcf9893
VZ
17923 fi
17924 fi
c7a2bf27
RR
17925fi
17926
3fed1840
RR
17927FREETYPE_INCLUDE=
17928if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
6232543b 17929 cat >>confdefs.h <<\EOF
3fed1840
RR
17930#define wxUSE_FREETYPE 1
17931EOF
17932
17933 if test "$wxUSE_FREETYPE" = "yes" ; then
17934 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
17935 else
17936 FREETYPE_LINK=
6232543b
VS
17937 echo "$as_me:17937: checking for freetype.h" >&5
17938echo $ECHO_N "checking for freetype.h... $ECHO_C" >&6
17939if test "${ac_cv_header_freetype_h+set}" = set; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17941else
17942 cat >conftest.$ac_ext <<_ACEOF
17943#line 17943 "configure"
3fed1840
RR
17944#include "confdefs.h"
17945#include <freetype.h>
6232543b
VS
17946_ACEOF
17947if { (eval echo "$as_me:17947: \"$ac_cpp conftest.$ac_ext\"") >&5
17948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17949 ac_status=$?
17950 egrep -v '^ *\+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
17953 echo "$as_me:17953: \$? = $ac_status" >&5
17954 (exit $ac_status); } >/dev/null; then
17955 if test -s conftest.err; then
17956 ac_cpp_err=$ac_c_preproc_warn_flag
17957 else
17958 ac_cpp_err=
17959 fi
17960else
17961 ac_cpp_err=yes
17962fi
17963if test -z "$ac_cpp_err"; then
17964 ac_cv_header_freetype_h=yes
3fed1840 17965else
6232543b 17966 echo "$as_me: failed program was:" >&5
3fed1840 17967 cat conftest.$ac_ext >&5
6232543b 17968 ac_cv_header_freetype_h=no
3fed1840 17969fi
6232543b 17970rm -f conftest.err conftest.$ac_ext
3fed1840 17971fi
6232543b
VS
17972echo "$as_me:17972: result: $ac_cv_header_freetype_h" >&5
17973echo "${ECHO_T}$ac_cv_header_freetype_h" >&6
17974if test $ac_cv_header_freetype_h = yes; then
17975 echo "$as_me:17975: checking for FT_Render_Glyph in -lfreetype" >&5
17976echo $ECHO_N "checking for FT_Render_Glyph in -lfreetype... $ECHO_C" >&6
17977if test "${ac_cv_lib_freetype_FT_Render_Glyph+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
3fed1840 17979else
6232543b 17980 ac_check_lib_save_LIBS=$LIBS
3fed1840 17981LIBS="-lfreetype -lm $LIBS"
6232543b
VS
17982cat >conftest.$ac_ext <<_ACEOF
17983#line 17983 "configure"
3fed1840 17984#include "confdefs.h"
6232543b 17985
3fed1840 17986/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
17987#ifdef __cplusplus
17988extern "C"
17989#endif
3fed1840 17990/* We use char because int might match the return type of a gcc2
6232543b
VS
17991 builtin and then its argument prototype would still apply. */
17992char FT_Render_Glyph ();
17993int
17994main ()
17995{
17996FT_Render_Glyph ();
17997 ;
17998 return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext conftest$ac_exeext
18002if { (eval echo "$as_me:18002: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>&5
18004 ac_status=$?
18005 echo "$as_me:18005: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -s conftest$ac_exeext'
18008 { (eval echo "$as_me:18008: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:18011: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 ac_cv_lib_freetype_FT_Render_Glyph=yes
18014else
18015 echo "$as_me: failed program was:" >&5
18016cat conftest.$ac_ext >&5
18017ac_cv_lib_freetype_FT_Render_Glyph=no
18018fi
18019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18020LIBS=$ac_check_lib_save_LIBS
18021fi
18022echo "$as_me:18022: result: $ac_cv_lib_freetype_FT_Render_Glyph" >&5
18023echo "${ECHO_T}$ac_cv_lib_freetype_FT_Render_Glyph" >&6
18024if test $ac_cv_lib_freetype_FT_Render_Glyph = yes; then
3fed1840 18025 FREETYPE_LINK="-lfreetype"
3fed1840
RR
18026fi
18027
3fed1840
RR
18028fi
18029
18030 if test "x$FREETYPE_LINK" = "x" ; then
6232543b
VS
18031 { { echo "$as_me:18031: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" >&5
18032echo "$as_me: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" >&2;}
18033 { (exit 1); exit 1; }; }
3fed1840
RR
18034 fi
18035 fi
18036fi
18037
10f2d63a 18038if test "$wxUSE_OPENGL" = "yes"; then
6232543b
VS
18039 echo "$as_me:18039: checking for GL/gl.h" >&5
18040echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
18041if test "${ac_cv_header_GL_gl_h+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18043else
18044 cat >conftest.$ac_ext <<_ACEOF
18045#line 18045 "configure"
10f2d63a
VZ
18046#include "confdefs.h"
18047#include <GL/gl.h>
6232543b
VS
18048_ACEOF
18049if { (eval echo "$as_me:18049: \"$ac_cpp conftest.$ac_ext\"") >&5
18050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18051 ac_status=$?
18052 egrep -v '^ *\+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:18055: \$? = $ac_status" >&5
18056 (exit $ac_status); } >/dev/null; then
18057 if test -s conftest.err; then
18058 ac_cpp_err=$ac_c_preproc_warn_flag
18059 else
18060 ac_cpp_err=
18061 fi
18062else
18063 ac_cpp_err=yes
18064fi
18065if test -z "$ac_cpp_err"; then
18066 ac_cv_header_GL_gl_h=yes
10f2d63a 18067else
6232543b 18068 echo "$as_me: failed program was:" >&5
10f2d63a 18069 cat conftest.$ac_ext >&5
6232543b 18070 ac_cv_header_GL_gl_h=no
10f2d63a 18071fi
6232543b 18072rm -f conftest.err conftest.$ac_ext
10f2d63a 18073fi
6232543b
VS
18074echo "$as_me:18074: result: $ac_cv_header_GL_gl_h" >&5
18075echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
18076if test $ac_cv_header_GL_gl_h = yes; then
18077
18078 cat >>confdefs.h <<\EOF
bdad4e7e
RR
18079#define wxUSE_OPENGL 1
18080EOF
18081
6232543b 18082 cat >>confdefs.h <<\EOF
bdad4e7e
RR
18083#define wxUSE_GLCANVAS 1
18084EOF
18085
6232543b
VS
18086 echo "$as_me:18086: checking for glFlush in -lGL" >&5
18087echo $ECHO_N "checking for glFlush in -lGL... $ECHO_C" >&6
18088if test "${ac_cv_lib_GL_glFlush+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 18090else
6232543b 18091 ac_check_lib_save_LIBS=$LIBS
bdad4e7e 18092LIBS="-lGL $LIBS"
6232543b
VS
18093cat >conftest.$ac_ext <<_ACEOF
18094#line 18094 "configure"
10f2d63a 18095#include "confdefs.h"
6232543b 18096
10f2d63a 18097/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
18098#ifdef __cplusplus
18099extern "C"
18100#endif
10f2d63a 18101/* We use char because int might match the return type of a gcc2
6232543b
VS
18102 builtin and then its argument prototype would still apply. */
18103char glFlush ();
18104int
18105main ()
18106{
18107glFlush ();
18108 ;
18109 return 0;
18110}
18111_ACEOF
18112rm -f conftest.$ac_objext conftest$ac_exeext
18113if { (eval echo "$as_me:18113: \"$ac_link\"") >&5
18114 (eval $ac_link) 2>&5
18115 ac_status=$?
18116 echo "$as_me:18116: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -s conftest$ac_exeext'
18119 { (eval echo "$as_me:18119: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:18122: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 ac_cv_lib_GL_glFlush=yes
18125else
18126 echo "$as_me: failed program was:" >&5
18127cat conftest.$ac_ext >&5
18128ac_cv_lib_GL_glFlush=no
18129fi
18130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18131LIBS=$ac_check_lib_save_LIBS
18132fi
18133echo "$as_me:18133: result: $ac_cv_lib_GL_glFlush" >&5
18134echo "${ECHO_T}$ac_cv_lib_GL_glFlush" >&6
18135if test $ac_cv_lib_GL_glFlush = yes; then
10f2d63a 18136
f6bcfd97 18137 OPENGL_LINK="-lGL -lGLU"
6232543b 18138
10f2d63a 18139else
10f2d63a 18140
6232543b
VS
18141 echo "$as_me:18141: checking for glFlush in -lMesaGL" >&5
18142echo $ECHO_N "checking for glFlush in -lMesaGL... $ECHO_C" >&6
18143if test "${ac_cv_lib_MesaGL_glFlush+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 18145else
6232543b 18146 ac_check_lib_save_LIBS=$LIBS
10f2d63a 18147LIBS="-lMesaGL $LIBS"
6232543b
VS
18148cat >conftest.$ac_ext <<_ACEOF
18149#line 18149 "configure"
10f2d63a 18150#include "confdefs.h"
6232543b 18151
10f2d63a 18152/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
18153#ifdef __cplusplus
18154extern "C"
18155#endif
10f2d63a 18156/* We use char because int might match the return type of a gcc2
6232543b
VS
18157 builtin and then its argument prototype would still apply. */
18158char glFlush ();
18159int
18160main ()
18161{
18162glFlush ();
18163 ;
18164 return 0;
18165}
18166_ACEOF
18167rm -f conftest.$ac_objext conftest$ac_exeext
18168if { (eval echo "$as_me:18168: \"$ac_link\"") >&5
18169 (eval $ac_link) 2>&5
18170 ac_status=$?
18171 echo "$as_me:18171: \$? = $ac_status" >&5
18172 (exit $ac_status); } &&
18173 { ac_try='test -s conftest$ac_exeext'
18174 { (eval echo "$as_me:18174: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:18177: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_lib_MesaGL_glFlush=yes
18180else
18181 echo "$as_me: failed program was:" >&5
18182cat conftest.$ac_ext >&5
18183ac_cv_lib_MesaGL_glFlush=no
18184fi
18185rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18186LIBS=$ac_check_lib_save_LIBS
18187fi
18188echo "$as_me:18188: result: $ac_cv_lib_MesaGL_glFlush" >&5
18189echo "${ECHO_T}$ac_cv_lib_MesaGL_glFlush" >&6
18190if test $ac_cv_lib_MesaGL_glFlush = yes; then
10f2d63a 18191
f6bcfd97 18192 OPENGL_LINK="-lMesaGL -lMesaGLU"
6232543b 18193
10f2d63a
VZ
18194fi
18195
10f2d63a
VZ
18196fi
18197
10f2d63a 18198else
6232543b 18199 wxUSE_OPENGL=0
10f2d63a
VZ
18200fi
18201
18202fi
18203
10f2d63a 18204if test "$wxUSE_GUI" = "yes"; then
6232543b 18205 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18206#define wxUSE_GUI 1
18207EOF
18208
10f2d63a 18209 else
6232543b 18210 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18211#define wxUSE_NOGUI 1
18212EOF
18213
18214fi
18215
10f2d63a 18216if test "$wxUSE_UNIX" = "yes"; then
6232543b 18217 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18218#define wxUSE_UNIX 1
18219EOF
18220
18221fi
18222
10f2d63a 18223if test "$wxUSE_APPLE_IEEE" = "yes"; then
6232543b 18224 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18225#define wxUSE_APPLE_IEEE 1
18226EOF
18227
18228fi
18229
10f2d63a 18230if test "$wxUSE_WAVE" = "yes"; then
6232543b 18231 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18232#define wxUSE_WAVE 1
18233EOF
18234
18235fi
18236
18237if test "$wxUSE_FILE" = "yes"; then
6232543b 18238 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18239#define wxUSE_FILE 1
18240EOF
18241
18242fi
18243
24528b0c 18244if test "$wxUSE_FILESYSTEM" = "yes"; then
6232543b 18245 cat >>confdefs.h <<\EOF
24528b0c
VS
18246#define wxUSE_FILESYSTEM 1
18247EOF
18248
18249fi
18250
10f2d63a 18251if test "$wxUSE_FS_INET" = "yes"; then
6232543b 18252 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18253#define wxUSE_FS_INET 1
18254EOF
18255
18256fi
18257
18258if test "$wxUSE_FS_ZIP" = "yes"; then
6232543b 18259 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18260#define wxUSE_FS_ZIP 1
18261EOF
18262
18263fi
18264
18265if test "$wxUSE_ZIPSTREAM" = "yes"; then
6232543b 18266 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18267#define wxUSE_ZIPSTREAM 1
18268EOF
18269
18270fi
18271
eb4efbdc 18272if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
6232543b 18273 cat >>confdefs.h <<\EOF
eb4efbdc
VZ
18274#define wxUSE_ON_FATAL_EXCEPTION 1
18275EOF
18276
18277fi
18278
4f3c5f06 18279if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
6232543b 18280 cat >>confdefs.h <<\EOF
4f3c5f06
VZ
18281#define wxUSE_SNGLINST_CHECKER 1
18282EOF
18283
18284fi
18285
10f2d63a 18286if test "$wxUSE_BUSYINFO" = "yes"; then
6232543b 18287 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18288#define wxUSE_BUSYINFO 1
18289EOF
18290
18291fi
18292
18293if test "$wxUSE_STD_IOSTREAM" = "yes"; then
6232543b 18294 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18295#define wxUSE_STD_IOSTREAM 1
18296EOF
18297
18298fi
18299
18300if test "$wxUSE_TEXTFILE" = "yes"; then
18301 if test "$wxUSE_FILE" != "yes"; then
6232543b
VS
18302 { echo "$as_me:18302: WARNING: wxTextFile requires wxFile and it won't be compiled without it" >&5
18303echo "$as_me: WARNING: wxTextFile requires wxFile and it won't be compiled without it" >&2;}
10f2d63a 18304 else
6232543b 18305 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18306#define wxUSE_TEXTFILE 1
18307EOF
18308
18309 fi
18310fi
18311
18312if test "$wxUSE_CONFIG" = "yes" ; then
18313 if test "$wxUSE_TEXTFILE" != "yes"; then
6232543b
VS
18314 { echo "$as_me:18314: WARNING: wxConfig requires wxTextFile and it won't be compiled without it" >&5
18315echo "$as_me: WARNING: wxConfig requires wxTextFile and it won't be compiled without it" >&2;}
10f2d63a 18316 else
6232543b 18317 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18318#define wxUSE_CONFIG 1
18319EOF
18320
18321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18322 fi
18323fi
18324
18325if test "$wxUSE_INTL" = "yes" ; then
18326 if test "$wxUSE_FILE" != "yes"; then
6232543b
VS
18327 { echo "$as_me:18327: WARNING: I18n code requires wxFile and it won't be compiled without it" >&5
18328echo "$as_me: WARNING: I18n code requires wxFile and it won't be compiled without it" >&2;}
10f2d63a 18329 else
6232543b 18330 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18331#define wxUSE_INTL 1
18332EOF
18333
18334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18335 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18336 fi
18337fi
18338
18339if test "$wxUSE_LOG" = "yes"; then
6232543b 18340 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18341#define wxUSE_LOG 1
18342EOF
18343
18344fi
18345
18346if test "$wxUSE_LONGLONG" = "yes"; then
6232543b 18347 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18348#define wxUSE_LONGLONG 1
18349EOF
18350
18351fi
18352
e8f65ba6 18353if test "$wxUSE_GEOMETRY" = "yes"; then
6232543b 18354 cat >>confdefs.h <<\EOF
e8f65ba6
RR
18355#define wxUSE_GEOMETRY 1
18356EOF
18357
18358fi
18359
10f2d63a 18360if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
6232543b 18361 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18362#define wxUSE_DIALUP_MANAGER 1
18363EOF
18364
70f7a477 18365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18366fi
18367
18368if test "$wxUSE_STREAMS" = "yes" ; then
6232543b 18369 cat >>confdefs.h <<\EOF
10f2d63a
VZ
18370#define wxUSE_STREAMS 1
18371EOF
18372
18373fi
18374
afc31813 18375if test "$wxUSE_TIMEDATE" = "yes"; then
6232543b
VS
18376
18377for ac_func in strptime
83307f33 18378do
6232543b
VS
18379ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18380echo "$as_me:18380: checking for $ac_func" >&5
18381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18382if eval "test \"\${$ac_ac_var+set}\" = set"; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384else
18385 cat >conftest.$ac_ext <<_ACEOF
18386#line 18386 "configure"
83307f33
VZ
18387#include "confdefs.h"
18388/* System header to define __stub macros and hopefully few prototypes,
6232543b 18389 which can conflict with char $ac_func (); below. */
83307f33
VZ
18390#include <assert.h>
18391/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
18392#ifdef __cplusplus
18393extern "C"
18394#endif
83307f33 18395/* We use char because int might match the return type of a gcc2
6232543b
VS
18396 builtin and then its argument prototype would still apply. */
18397char $ac_func ();
18398char (*f) ();
83307f33 18399
6232543b
VS
18400int
18401main ()
18402{
83307f33
VZ
18403/* The GNU C library defines this for functions which it implements
18404 to always fail with ENOSYS. Some functions are actually named
18405 something starting with __ and the normal name is an alias. */
18406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18407choke me
18408#else
6232543b 18409f = $ac_func;
83307f33
VZ
18410#endif
18411
6232543b
VS
18412 ;
18413 return 0;
18414}
18415_ACEOF
18416rm -f conftest.$ac_objext conftest$ac_exeext
18417if { (eval echo "$as_me:18417: \"$ac_link\"") >&5
18418 (eval $ac_link) 2>&5
18419 ac_status=$?
18420 echo "$as_me:18420: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -s conftest$ac_exeext'
18423 { (eval echo "$as_me:18423: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:18426: \$? = $ac_status" >&5
18427 (exit $ac_status); }; }; then
18428 eval "$ac_ac_var=yes"
18429else
18430 echo "$as_me: failed program was:" >&5
18431cat conftest.$ac_ext >&5
18432eval "$ac_ac_var=no"
18433fi
18434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18435fi
18436echo "$as_me:18436: result: `eval echo '${'$ac_ac_var'}'`" >&5
18437echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18438if test `eval echo '${'$ac_ac_var'}'` = yes; then
18439 cat >>confdefs.h <<EOF
18440#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
83307f33 18441EOF
83307f33 18442
83307f33
VZ
18443fi
18444done
18445
6232543b
VS
18446 echo "$as_me:18446: checking for timezone variable in <time.h>" >&5
18447echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
18448if test "${wx_cv_var_timezone+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
360d6699 18450else
6232543b
VS
18451
18452 cat >conftest.$ac_ext <<_ACEOF
18453#line 18453 "configure"
360d6699
VZ
18454#include "confdefs.h"
18455
b4085ce6 18456 #include <time.h>
6232543b
VS
18457
18458int
18459main ()
18460{
360d6699
VZ
18461
18462 int tz;
18463 tz = __timezone;
6232543b
VS
18464
18465 ;
18466 return 0;
18467}
18468_ACEOF
18469rm -f conftest.$ac_objext
18470if { (eval echo "$as_me:18470: \"$ac_compile\"") >&5
18471 (eval $ac_compile) 2>&5
18472 ac_status=$?
18473 echo "$as_me:18473: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try='test -s conftest.$ac_objext'
18476 { (eval echo "$as_me:18476: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:18479: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481
360d6699 18482 wx_cv_var_timezone=__timezone
6232543b 18483
360d6699 18484else
6232543b
VS
18485 echo "$as_me: failed program was:" >&5
18486cat conftest.$ac_ext >&5
18487
18488 cat >conftest.$ac_ext <<_ACEOF
18489#line 18489 "configure"
360d6699
VZ
18490#include "confdefs.h"
18491
b4085ce6 18492 #include <time.h>
6232543b
VS
18493
18494int
18495main ()
18496{
360d6699
VZ
18497
18498 int tz;
18499 tz = _timezone;
6232543b
VS
18500
18501 ;
18502 return 0;
18503}
18504_ACEOF
18505rm -f conftest.$ac_objext
18506if { (eval echo "$as_me:18506: \"$ac_compile\"") >&5
18507 (eval $ac_compile) 2>&5
18508 ac_status=$?
18509 echo "$as_me:18509: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
18511 { ac_try='test -s conftest.$ac_objext'
18512 { (eval echo "$as_me:18512: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18514 ac_status=$?
18515 echo "$as_me:18515: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517
360d6699 18518 wx_cv_var_timezone=_timezone
6232543b 18519
5357c8e8 18520else
6232543b
VS
18521 echo "$as_me: failed program was:" >&5
18522cat conftest.$ac_ext >&5
18523
18524 cat >conftest.$ac_ext <<_ACEOF
18525#line 18525 "configure"
5357c8e8
VZ
18526#include "confdefs.h"
18527
b4085ce6 18528 #include <time.h>
6232543b
VS
18529
18530int
18531main ()
18532{
5357c8e8
VZ
18533
18534 int tz;
18535 tz = timezone;
6232543b
VS
18536
18537 ;
18538 return 0;
18539}
18540_ACEOF
18541rm -f conftest.$ac_objext
18542if { (eval echo "$as_me:18542: \"$ac_compile\"") >&5
18543 (eval $ac_compile) 2>&5
18544 ac_status=$?
18545 echo "$as_me:18545: \$? = $ac_status" >&5
18546 (exit $ac_status); } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (eval echo "$as_me:18548: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:18551: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553
5357c8e8 18554 wx_cv_var_timezone=timezone
6232543b 18555
360d6699 18556else
6232543b
VS
18557 echo "$as_me: failed program was:" >&5
18558cat conftest.$ac_ext >&5
18559{ { echo "$as_me:18559: error: no timezone variable" >&5
18560echo "$as_me: error: no timezone variable" >&2;}
18561 { (exit 1); exit 1; }; }
18562
360d6699 18563fi
6232543b
VS
18564rm -f conftest.$ac_objext conftest.$ac_ext
18565
360d6699 18566fi
6232543b
VS
18567rm -f conftest.$ac_objext conftest.$ac_ext
18568
360d6699 18569fi
6232543b 18570rm -f conftest.$ac_objext conftest.$ac_ext
360d6699 18571
6232543b
VS
18572fi
18573echo "$as_me:18573: result: $wx_cv_var_timezone" >&5
18574echo "${ECHO_T}$wx_cv_var_timezone" >&6
360d6699 18575
6232543b 18576 cat >>confdefs.h <<EOF
360d6699
VZ
18577#define WX_TIMEZONE $wx_cv_var_timezone
18578EOF
18579
6232543b 18580for ac_func in localtime
afc31813 18581do
6232543b
VS
18582ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18583echo "$as_me:18583: checking for $ac_func" >&5
18584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18585if eval "test \"\${$ac_ac_var+set}\" = set"; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587else
18588 cat >conftest.$ac_ext <<_ACEOF
18589#line 18589 "configure"
10f2d63a 18590#include "confdefs.h"
afc31813 18591/* System header to define __stub macros and hopefully few prototypes,
6232543b 18592 which can conflict with char $ac_func (); below. */
afc31813
VZ
18593#include <assert.h>
18594/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
18595#ifdef __cplusplus
18596extern "C"
18597#endif
afc31813 18598/* We use char because int might match the return type of a gcc2
6232543b
VS
18599 builtin and then its argument prototype would still apply. */
18600char $ac_func ();
18601char (*f) ();
afc31813 18602
6232543b
VS
18603int
18604main ()
18605{
afc31813
VZ
18606/* The GNU C library defines this for functions which it implements
18607 to always fail with ENOSYS. Some functions are actually named
18608 something starting with __ and the normal name is an alias. */
18609#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18610choke me
18611#else
6232543b 18612f = $ac_func;
afc31813
VZ
18613#endif
18614
6232543b
VS
18615 ;
18616 return 0;
18617}
18618_ACEOF
18619rm -f conftest.$ac_objext conftest$ac_exeext
18620if { (eval echo "$as_me:18620: \"$ac_link\"") >&5
18621 (eval $ac_link) 2>&5
18622 ac_status=$?
18623 echo "$as_me:18623: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (eval echo "$as_me:18626: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:18629: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 eval "$ac_ac_var=yes"
18632else
18633 echo "$as_me: failed program was:" >&5
18634cat conftest.$ac_ext >&5
18635eval "$ac_ac_var=no"
18636fi
18637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18638fi
18639echo "$as_me:18639: result: `eval echo '${'$ac_ac_var'}'`" >&5
18640echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18641if test `eval echo '${'$ac_ac_var'}'` = yes; then
18642 cat >>confdefs.h <<EOF
18643#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10f2d63a 18644EOF
afc31813 18645
afc31813
VZ
18646fi
18647done
18648
0470b1e6 18649 if test "$ac_cv_func_localtime" = "yes"; then
6232543b
VS
18650 echo "$as_me:18650: checking for tm_gmtoff in struct tm" >&5
18651echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
18652if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18654else
18655
18656 cat >conftest.$ac_ext <<_ACEOF
18657#line 18657 "configure"
0470b1e6
VZ
18658#include "confdefs.h"
18659
b4085ce6 18660 #include <time.h>
6232543b
VS
18661
18662int
18663main ()
18664{
0470b1e6
VZ
18665
18666 struct tm tm;
18667 tm.tm_gmtoff++;
6232543b
VS
18668
18669 ;
18670 return 0;
18671}
18672_ACEOF
18673rm -f conftest.$ac_objext
18674if { (eval echo "$as_me:18674: \"$ac_compile\"") >&5
18675 (eval $ac_compile) 2>&5
18676 ac_status=$?
18677 echo "$as_me:18677: \$? = $ac_status" >&5
18678 (exit $ac_status); } &&
18679 { ac_try='test -s conftest.$ac_objext'
18680 { (eval echo "$as_me:18680: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:18683: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
18685
f03a98d8 18686 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6 18687
0470b1e6 18688else
6232543b
VS
18689 echo "$as_me: failed program was:" >&5
18690cat conftest.$ac_ext >&5
18691wx_cv_struct_tm_has_gmtoff=no
18692
0470b1e6 18693fi
6232543b
VS
18694rm -f conftest.$ac_objext conftest.$ac_ext
18695
0470b1e6 18696fi
6232543b
VS
18697echo "$as_me:18697: result: $wx_cv_struct_tm_has_gmtoff" >&5
18698echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
18699 fi
18700
18701 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18702 cat >>confdefs.h <<\EOF
18703#define WX_GMTOFF_IN_TM 1
18704EOF
0470b1e6 18705
3fcdd07b
VZ
18706 fi
18707
6232543b 18708for ac_func in gettimeofday ftime
3fcdd07b 18709do
6232543b
VS
18710ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18711echo "$as_me:18711: checking for $ac_func" >&5
18712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18713if eval "test \"\${$ac_ac_var+set}\" = set"; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715else
18716 cat >conftest.$ac_ext <<_ACEOF
18717#line 18717 "configure"
3fcdd07b
VZ
18718#include "confdefs.h"
18719/* System header to define __stub macros and hopefully few prototypes,
6232543b 18720 which can conflict with char $ac_func (); below. */
3fcdd07b
VZ
18721#include <assert.h>
18722/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
18723#ifdef __cplusplus
18724extern "C"
18725#endif
3fcdd07b 18726/* We use char because int might match the return type of a gcc2
6232543b
VS
18727 builtin and then its argument prototype would still apply. */
18728char $ac_func ();
18729char (*f) ();
3fcdd07b 18730
6232543b
VS
18731int
18732main ()
18733{
3fcdd07b
VZ
18734/* The GNU C library defines this for functions which it implements
18735 to always fail with ENOSYS. Some functions are actually named
18736 something starting with __ and the normal name is an alias. */
18737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18738choke me
18739#else
6232543b 18740f = $ac_func;
3fcdd07b
VZ
18741#endif
18742
6232543b
VS
18743 ;
18744 return 0;
18745}
18746_ACEOF
18747rm -f conftest.$ac_objext conftest$ac_exeext
18748if { (eval echo "$as_me:18748: \"$ac_link\"") >&5
18749 (eval $ac_link) 2>&5
18750 ac_status=$?
18751 echo "$as_me:18751: \$? = $ac_status" >&5
18752 (exit $ac_status); } &&
18753 { ac_try='test -s conftest$ac_exeext'
18754 { (eval echo "$as_me:18754: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:18757: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 eval "$ac_ac_var=yes"
18760else
18761 echo "$as_me: failed program was:" >&5
18762cat conftest.$ac_ext >&5
18763eval "$ac_ac_var=no"
18764fi
18765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18766fi
18767echo "$as_me:18767: result: `eval echo '${'$ac_ac_var'}'`" >&5
18768echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18769if test `eval echo '${'$ac_ac_var'}'` = yes; then
18770 cat >>confdefs.h <<EOF
18771#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3fcdd07b
VZ
18772EOF
18773 break
3fcdd07b
VZ
18774fi
18775done
18776
3fcdd07b 18777 if test "$ac_cv_func_gettimeofday" = "yes"; then
6232543b
VS
18778 echo "$as_me:18778: checking whether gettimeofday takes two arguments" >&5
18779echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
18780if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18782else
afc31813 18783
6232543b
VS
18784 ac_ext=cc
18785ac_cpp='$CXXCPP $CPPFLAGS'
18786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
afc31813 18789
6232543b
VS
18790 cat >conftest.$ac_ext <<_ACEOF
18791#line 18791 "configure"
10f2d63a 18792#include "confdefs.h"
afc31813
VZ
18793
18794 #include <sys/time.h>
18795 #include <unistd.h>
6232543b
VS
18796
18797int
18798main ()
18799{
afc31813
VZ
18800
18801 struct timeval tv;
18802 struct timezone tz;
18803 gettimeofday(&tv, &tz);
6232543b
VS
18804
18805 ;
18806 return 0;
18807}
18808_ACEOF
18809rm -f conftest.$ac_objext
18810if { (eval echo "$as_me:18810: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>&5
18812 ac_status=$?
18813 echo "$as_me:18813: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -s conftest.$ac_objext'
18816 { (eval echo "$as_me:18816: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18818 ac_status=$?
18819 echo "$as_me:18819: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
afc31813 18821 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18822else
6232543b
VS
18823 echo "$as_me: failed program was:" >&5
18824cat conftest.$ac_ext >&5
18825cat >conftest.$ac_ext <<_ACEOF
18826#line 18826 "configure"
10f2d63a 18827#include "confdefs.h"
afc31813
VZ
18828
18829 #include <sys/time.h>
18830 #include <unistd.h>
6232543b
VS
18831
18832int
18833main ()
18834{
afc31813
VZ
18835
18836 struct timeval tv;
18837 gettimeofday(&tv);
6232543b
VS
18838
18839 ;
18840 return 0;
18841}
18842_ACEOF
18843rm -f conftest.$ac_objext
18844if { (eval echo "$as_me:18844: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>&5
18846 ac_status=$?
18847 echo "$as_me:18847: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -s conftest.$ac_objext'
18850 { (eval echo "$as_me:18850: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18852 ac_status=$?
18853 echo "$as_me:18853: \$? = $ac_status" >&5
18854 (exit $ac_status); }; }; then
afc31813 18855 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18856else
6232543b
VS
18857 echo "$as_me: failed program was:" >&5
18858cat conftest.$ac_ext >&5
18859wx_cv_func_gettimeofday_has_2_args=unknown
18860
10f2d63a 18861fi
6232543b
VS
18862rm -f conftest.$ac_objext conftest.$ac_ext
18863
10f2d63a 18864fi
6232543b 18865rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 18866 ac_ext=c
10f2d63a 18867ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
18868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18870ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 18871
afc31813 18872fi
6232543b
VS
18873echo "$as_me:18873: result: $wx_cv_func_gettimeofday_has_2_args" >&5
18874echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 18875
afc31813 18876 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
6232543b 18877 cat >>confdefs.h <<\EOF
afc31813
VZ
18878#define WX_GETTIMEOFDAY_NO_TZ 1
18879EOF
18880
18881 fi
18882 fi
18883
6232543b 18884 cat >>confdefs.h <<\EOF
afc31813
VZ
18885#define wxUSE_TIMEDATE 1
18886EOF
18887
18888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18889fi
18890
b089607b
VZ
18891if test "$TOOLKIT" != "MSW"; then
18892
afc31813 18893if test "$wxUSE_SOCKETS" = "yes"; then
6232543b
VS
18894 echo "$as_me:18894: checking for socket" >&5
18895echo $ECHO_N "checking for socket... $ECHO_C" >&6
18896if test "${ac_cv_func_socket+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 18898else
6232543b
VS
18899 cat >conftest.$ac_ext <<_ACEOF
18900#line 18900 "configure"
c63c7106
VZ
18901#include "confdefs.h"
18902/* System header to define __stub macros and hopefully few prototypes,
6232543b 18903 which can conflict with char socket (); below. */
c63c7106
VZ
18904#include <assert.h>
18905/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
18906#ifdef __cplusplus
18907extern "C"
18908#endif
c63c7106 18909/* We use char because int might match the return type of a gcc2
6232543b
VS
18910 builtin and then its argument prototype would still apply. */
18911char socket ();
18912char (*f) ();
c63c7106 18913
6232543b
VS
18914int
18915main ()
18916{
c63c7106
VZ
18917/* The GNU C library defines this for functions which it implements
18918 to always fail with ENOSYS. Some functions are actually named
18919 something starting with __ and the normal name is an alias. */
18920#if defined (__stub_socket) || defined (__stub___socket)
18921choke me
18922#else
6232543b 18923f = socket;
c63c7106
VZ
18924#endif
18925
6232543b
VS
18926 ;
18927 return 0;
18928}
18929_ACEOF
18930rm -f conftest.$ac_objext conftest$ac_exeext
18931if { (eval echo "$as_me:18931: \"$ac_link\"") >&5
18932 (eval $ac_link) 2>&5
18933 ac_status=$?
18934 echo "$as_me:18934: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
18936 { ac_try='test -s conftest$ac_exeext'
18937 { (eval echo "$as_me:18937: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 echo "$as_me:18940: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 ac_cv_func_socket=yes
18943else
18944 echo "$as_me: failed program was:" >&5
18945cat conftest.$ac_ext >&5
18946ac_cv_func_socket=no
18947fi
18948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18949fi
18950echo "$as_me:18950: result: $ac_cv_func_socket" >&5
18951echo "${ECHO_T}$ac_cv_func_socket" >&6
18952if test $ac_cv_func_socket = yes; then
c63c7106
VZ
18953 :
18954else
6232543b
VS
18955 echo "$as_me:18955: checking for socket in -lsocket" >&5
18956echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
18957if test "${ac_cv_lib_socket_socket+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 18959else
6232543b 18960 ac_check_lib_save_LIBS=$LIBS
c63c7106 18961LIBS="-lsocket $LIBS"
6232543b
VS
18962cat >conftest.$ac_ext <<_ACEOF
18963#line 18963 "configure"
c63c7106 18964#include "confdefs.h"
6232543b 18965
c63c7106 18966/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
18967#ifdef __cplusplus
18968extern "C"
18969#endif
c63c7106 18970/* We use char because int might match the return type of a gcc2
6232543b
VS
18971 builtin and then its argument prototype would still apply. */
18972char socket ();
18973int
18974main ()
18975{
18976socket ();
18977 ;
18978 return 0;
18979}
18980_ACEOF
18981rm -f conftest.$ac_objext conftest$ac_exeext
18982if { (eval echo "$as_me:18982: \"$ac_link\"") >&5
18983 (eval $ac_link) 2>&5
18984 ac_status=$?
18985 echo "$as_me:18985: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try='test -s conftest$ac_exeext'
18988 { (eval echo "$as_me:18988: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:18991: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_lib_socket_socket=yes
18994else
18995 echo "$as_me: failed program was:" >&5
18996cat conftest.$ac_ext >&5
18997ac_cv_lib_socket_socket=no
18998fi
18999rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19000LIBS=$ac_check_lib_save_LIBS
19001fi
19002echo "$as_me:19002: result: $ac_cv_lib_socket_socket" >&5
19003echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
19004if test $ac_cv_lib_socket_socket = yes; then
c63c7106 19005 INET_LINK="$INET_LINK -lsocket"
c63c7106 19006else
afc31813 19007
6232543b
VS
19008 { echo "$as_me:19008: WARNING: socket library not found - sockets will be disabled" >&5
19009echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
afc31813 19010 wxUSE_SOCKETS=no
c63c7106 19011
c63c7106
VZ
19012fi
19013
10f2d63a
VZ
19014fi
19015
6232543b 19016fi
b089607b 19017
afc31813 19018if test "$wxUSE_SOCKETS" = "yes" ; then
6232543b
VS
19019 echo "$as_me:19019: checking what is the type of the third argument of getsockname" >&5
19020echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
19021if test "${wx_cv_type_getsockname3+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19023else
afc31813 19024
6232543b
VS
19025 ac_ext=cc
19026ac_cpp='$CXXCPP $CPPFLAGS'
19027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51a9faba 19030
6232543b
VS
19031 cat >conftest.$ac_ext <<_ACEOF
19032#line 19032 "configure"
afc31813 19033#include "confdefs.h"
51a9faba 19034
3ace2e6d 19035 #include <sys/types.h>
51a9faba 19036 #include <sys/socket.h>
6232543b
VS
19037
19038int
19039main ()
19040{
51a9faba
VZ
19041
19042 socklen_t len;
19043 getsockname(0, 0, &len);
6232543b
VS
19044
19045 ;
19046 return 0;
19047}
19048_ACEOF
19049rm -f conftest.$ac_objext
19050if { (eval echo "$as_me:19050: \"$ac_compile\"") >&5
19051 (eval $ac_compile) 2>&5
19052 ac_status=$?
19053 echo "$as_me:19053: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -s conftest.$ac_objext'
19056 { (eval echo "$as_me:19056: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
19059 echo "$as_me:19059: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
51a9faba 19061 wx_cv_type_getsockname3=socklen_t
afc31813 19062else
6232543b
VS
19063 echo "$as_me: failed program was:" >&5
19064cat conftest.$ac_ext >&5
19065cat >conftest.$ac_ext <<_ACEOF
19066#line 19066 "configure"
afc31813 19067#include "confdefs.h"
51a9faba 19068
3ace2e6d 19069 #include <sys/types.h>
51a9faba 19070 #include <sys/socket.h>
6232543b
VS
19071
19072int
19073main ()
19074{
51a9faba
VZ
19075
19076 size_t len;
19077 getsockname(0, 0, &len);
6232543b
VS
19078
19079 ;
19080 return 0;
19081}
19082_ACEOF
19083rm -f conftest.$ac_objext
19084if { (eval echo "$as_me:19084: \"$ac_compile\"") >&5
19085 (eval $ac_compile) 2>&5
19086 ac_status=$?
19087 echo "$as_me:19087: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
19089 { ac_try='test -s conftest.$ac_objext'
19090 { (eval echo "$as_me:19090: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:19093: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
51a9faba 19095 wx_cv_type_getsockname3=size_t
afc31813 19096else
6232543b
VS
19097 echo "$as_me: failed program was:" >&5
19098cat conftest.$ac_ext >&5
19099cat >conftest.$ac_ext <<_ACEOF
19100#line 19100 "configure"
afc31813 19101#include "confdefs.h"
51a9faba 19102
3ace2e6d 19103 #include <sys/types.h>
51a9faba 19104 #include <sys/socket.h>
6232543b
VS
19105
19106int
19107main ()
19108{
51a9faba
VZ
19109
19110 int len;
19111 getsockname(0, 0, &len);
6232543b
VS
19112
19113 ;
19114 return 0;
19115}
19116_ACEOF
19117rm -f conftest.$ac_objext
19118if { (eval echo "$as_me:19118: \"$ac_compile\"") >&5
19119 (eval $ac_compile) 2>&5
19120 ac_status=$?
19121 echo "$as_me:19121: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:19124: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:19127: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
51a9faba 19129 wx_cv_type_getsockname3=int
afc31813 19130else
6232543b
VS
19131 echo "$as_me: failed program was:" >&5
19132cat conftest.$ac_ext >&5
19133wx_cv_type_getsockname3=unknown
19134
afc31813 19135fi
6232543b
VS
19136rm -f conftest.$ac_objext conftest.$ac_ext
19137
afc31813 19138fi
6232543b
VS
19139rm -f conftest.$ac_objext conftest.$ac_ext
19140
afc31813 19141fi
6232543b 19142rm -f conftest.$ac_objext conftest.$ac_ext
51a9faba
VZ
19143
19144 ac_ext=c
afc31813 19145ac_cpp='$CPP $CPPFLAGS'
6232543b
VS
19146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148ac_compiler_gnu=$ac_cv_c_compiler_gnu
afc31813 19149
51a9faba 19150fi
6232543b
VS
19151echo "$as_me:19151: result: $wx_cv_type_getsockname3" >&5
19152echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba
VZ
19153
19154 if test "$wx_cv_type_getsockname3" = "unknown"; then
19155 wxUSE_SOCKETS=no
6232543b
VS
19156 { echo "$as_me:19156: WARNING: Couldn't find socklen_t synonym for this system" >&5
19157echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
51a9faba 19158 else
6232543b 19159 cat >>confdefs.h <<EOF
51a9faba
VZ
19160#define SOCKLEN_T $wx_cv_type_getsockname3
19161EOF
19162
19163 fi
19164fi
afc31813 19165
c521c494
RL
19166fi
19167
51a9faba 19168if test "$wxUSE_SOCKETS" = "yes" ; then
6232543b 19169 cat >>confdefs.h <<\EOF
afc31813
VZ
19170#define wxUSE_SOCKETS 1
19171EOF
19172
70f7a477 19173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
19175fi
19176
dc3d889d
VZ
19177if test "$wxUSE_GUI" = "yes"; then
19178
b089607b
VZ
19179if test "$TOOLKIT" != "MSW"; then
19180
ceded8b9 19181if test "$wxUSE_JOYSTICK" = "yes"; then
6232543b
VS
19182
19183for ac_header in linux/joystick.h
10f2d63a 19184do
6232543b
VS
19185ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
19186echo "$as_me:19186: checking for $ac_header" >&5
19187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19188if eval "test \"\${$ac_ac_Header+set}\" = set"; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190else
19191 cat >conftest.$ac_ext <<_ACEOF
19192#line 19192 "configure"
10f2d63a 19193#include "confdefs.h"
6232543b
VS
19194#include <$ac_header>
19195_ACEOF
19196if { (eval echo "$as_me:19196: \"$ac_cpp conftest.$ac_ext\"") >&5
19197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19198 ac_status=$?
19199 egrep -v '^ *\+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:19202: \$? = $ac_status" >&5
19203 (exit $ac_status); } >/dev/null; then
19204 if test -s conftest.err; then
19205 ac_cpp_err=$ac_c_preproc_warn_flag
19206 else
19207 ac_cpp_err=
19208 fi
19209else
19210 ac_cpp_err=yes
19211fi
19212if test -z "$ac_cpp_err"; then
19213 eval "$ac_ac_Header=yes"
10f2d63a 19214else
6232543b 19215 echo "$as_me: failed program was:" >&5
10f2d63a 19216 cat conftest.$ac_ext >&5
6232543b 19217 eval "$ac_ac_Header=no"
10f2d63a 19218fi
6232543b 19219rm -f conftest.err conftest.$ac_ext
10f2d63a 19220fi
6232543b
VS
19221echo "$as_me:19221: result: `eval echo '${'$ac_ac_Header'}'`" >&5
19222echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
19223if test `eval echo '${'$ac_ac_Header'}'` = yes; then
19224 cat >>confdefs.h <<EOF
19225#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 19226EOF
6232543b 19227
10f2d63a
VZ
19228fi
19229done
19230
b089607b 19231 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 19232 wxUSE_JOYSTICK=no
6232543b
VS
19233 { echo "$as_me:19233: WARNING: Joystick not supported by this system" >&5
19234echo "$as_me: WARNING: Joystick not supported by this system" >&2;}
b089607b
VZ
19235 fi
19236fi
19237
19238fi
19239
ceded8b9 19240if test "$wxUSE_JOYSTICK" = "yes"; then
6232543b 19241 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19242#define wxUSE_JOYSTICK 1
19243EOF
19244
19245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
19246fi
19247
dc3d889d
VZ
19248fi
19249
b089607b
VZ
19250if test "$TOOLKIT" != "MSW"; then
19251
10f2d63a
VZ
19252HAVE_DL_FUNCS=0
19253HAVE_SHL_FUNCS=0
19254if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
19255 if test "$USE_MAC" = 1; then
19256 HAVE_DL_FUNCS=1
19257 else
6232543b
VS
19258
19259for ac_func in dlopen
10f2d63a 19260do
6232543b
VS
19261ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19262echo "$as_me:19262: checking for $ac_func" >&5
19263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19264if eval "test \"\${$ac_ac_var+set}\" = set"; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266else
19267 cat >conftest.$ac_ext <<_ACEOF
19268#line 19268 "configure"
10f2d63a
VZ
19269#include "confdefs.h"
19270/* System header to define __stub macros and hopefully few prototypes,
6232543b 19271 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
19272#include <assert.h>
19273/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
19274#ifdef __cplusplus
19275extern "C"
19276#endif
10f2d63a 19277/* We use char because int might match the return type of a gcc2
6232543b
VS
19278 builtin and then its argument prototype would still apply. */
19279char $ac_func ();
19280char (*f) ();
10f2d63a 19281
6232543b
VS
19282int
19283main ()
19284{
10f2d63a
VZ
19285/* The GNU C library defines this for functions which it implements
19286 to always fail with ENOSYS. Some functions are actually named
19287 something starting with __ and the normal name is an alias. */
19288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19289choke me
19290#else
6232543b 19291f = $ac_func;
10f2d63a
VZ
19292#endif
19293
6232543b
VS
19294 ;
19295 return 0;
19296}
19297_ACEOF
19298rm -f conftest.$ac_objext conftest$ac_exeext
19299if { (eval echo "$as_me:19299: \"$ac_link\"") >&5
19300 (eval $ac_link) 2>&5
19301 ac_status=$?
19302 echo "$as_me:19302: \$? = $ac_status" >&5
19303 (exit $ac_status); } &&
19304 { ac_try='test -s conftest$ac_exeext'
19305 { (eval echo "$as_me:19305: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:19308: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 eval "$ac_ac_var=yes"
19311else
19312 echo "$as_me: failed program was:" >&5
19313cat conftest.$ac_ext >&5
19314eval "$ac_ac_var=no"
19315fi
19316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19317fi
19318echo "$as_me:19318: result: `eval echo '${'$ac_ac_var'}'`" >&5
19319echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19320if test `eval echo '${'$ac_ac_var'}'` = yes; then
19321 cat >>confdefs.h <<EOF
19322#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19323EOF
19324
19325 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19326#define HAVE_DLOPEN 1
19327EOF
19328
19329 HAVE_DL_FUNCS=1
6232543b 19330
10f2d63a 19331else
6232543b
VS
19332
19333 echo "$as_me:19333: checking for dlopen in -ldl" >&5
19334echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19335if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 19337else
6232543b 19338 ac_check_lib_save_LIBS=$LIBS
10f2d63a 19339LIBS="-ldl $LIBS"
6232543b
VS
19340cat >conftest.$ac_ext <<_ACEOF
19341#line 19341 "configure"
10f2d63a 19342#include "confdefs.h"
6232543b 19343
10f2d63a 19344/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
19345#ifdef __cplusplus
19346extern "C"
19347#endif
10f2d63a 19348/* We use char because int might match the return type of a gcc2
6232543b
VS
19349 builtin and then its argument prototype would still apply. */
19350char dlopen ();
19351int
19352main ()
19353{
19354dlopen ();
19355 ;
19356 return 0;
19357}
19358_ACEOF
19359rm -f conftest.$ac_objext conftest$ac_exeext
19360if { (eval echo "$as_me:19360: \"$ac_link\"") >&5
19361 (eval $ac_link) 2>&5
19362 ac_status=$?
19363 echo "$as_me:19363: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (eval echo "$as_me:19366: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:19369: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_cv_lib_dl_dlopen=yes
19372else
19373 echo "$as_me: failed program was:" >&5
19374cat conftest.$ac_ext >&5
19375ac_cv_lib_dl_dlopen=no
19376fi
19377rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19378LIBS=$ac_check_lib_save_LIBS
19379fi
19380echo "$as_me:19380: result: $ac_cv_lib_dl_dlopen" >&5
19381echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19382if test $ac_cv_lib_dl_dlopen = yes; then
19383
19384 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19385#define HAVE_DLOPEN 1
19386EOF
19387
19388 HAVE_DL_FUNCS=1
19389 LIBS="$LIBS -ldl"
6232543b 19390
10f2d63a 19391else
10f2d63a 19392
6232543b 19393for ac_func in shl_load
10f2d63a 19394do
6232543b
VS
19395ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19396echo "$as_me:19396: checking for $ac_func" >&5
19397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19398if eval "test \"\${$ac_ac_var+set}\" = set"; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400else
19401 cat >conftest.$ac_ext <<_ACEOF
19402#line 19402 "configure"
10f2d63a
VZ
19403#include "confdefs.h"
19404/* System header to define __stub macros and hopefully few prototypes,
6232543b 19405 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
19406#include <assert.h>
19407/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
19408#ifdef __cplusplus
19409extern "C"
19410#endif
10f2d63a 19411/* We use char because int might match the return type of a gcc2
6232543b
VS
19412 builtin and then its argument prototype would still apply. */
19413char $ac_func ();
19414char (*f) ();
10f2d63a 19415
6232543b
VS
19416int
19417main ()
19418{
10f2d63a
VZ
19419/* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19423choke me
19424#else
6232543b 19425f = $ac_func;
10f2d63a
VZ
19426#endif
19427
6232543b
VS
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432rm -f conftest.$ac_objext conftest$ac_exeext
19433if { (eval echo "$as_me:19433: \"$ac_link\"") >&5
19434 (eval $ac_link) 2>&5
19435 ac_status=$?
19436 echo "$as_me:19436: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (eval echo "$as_me:19439: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 echo "$as_me:19442: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 eval "$ac_ac_var=yes"
19445else
19446 echo "$as_me: failed program was:" >&5
19447cat conftest.$ac_ext >&5
19448eval "$ac_ac_var=no"
19449fi
19450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19451fi
19452echo "$as_me:19452: result: `eval echo '${'$ac_ac_var'}'`" >&5
19453echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19454if test `eval echo '${'$ac_ac_var'}'` = yes; then
19455 cat >>confdefs.h <<EOF
19456#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19457EOF
19458
19459 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19460#define HAVE_SHL_LOAD 1
19461EOF
19462
19463 HAVE_SHL_FUNCS=1
6232543b 19464
10f2d63a 19465else
6232543b
VS
19466
19467 echo "$as_me:19467: checking for dld in -lshl_load" >&5
19468echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
19469if test "${ac_cv_lib_shl_load_dld+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 19471else
6232543b 19472 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 19473LIBS="-lshl_load $LIBS"
6232543b
VS
19474cat >conftest.$ac_ext <<_ACEOF
19475#line 19475 "configure"
f6bcfd97 19476#include "confdefs.h"
6232543b 19477
f6bcfd97 19478/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
19479#ifdef __cplusplus
19480extern "C"
19481#endif
f6bcfd97 19482/* We use char because int might match the return type of a gcc2
6232543b
VS
19483 builtin and then its argument prototype would still apply. */
19484char dld ();
19485int
19486main ()
19487{
19488dld ();
19489 ;
19490 return 0;
19491}
19492_ACEOF
19493rm -f conftest.$ac_objext conftest$ac_exeext
19494if { (eval echo "$as_me:19494: \"$ac_link\"") >&5
19495 (eval $ac_link) 2>&5
19496 ac_status=$?
19497 echo "$as_me:19497: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -s conftest$ac_exeext'
19500 { (eval echo "$as_me:19500: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:19503: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 ac_cv_lib_shl_load_dld=yes
19506else
19507 echo "$as_me: failed program was:" >&5
19508cat conftest.$ac_ext >&5
19509ac_cv_lib_shl_load_dld=no
19510fi
19511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19512LIBS=$ac_check_lib_save_LIBS
19513fi
19514echo "$as_me:19514: result: $ac_cv_lib_shl_load_dld" >&5
19515echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
19516if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 19517
f6bcfd97
BP
19518 HAVE_SHL_FUNCS=1
19519 LIBS="$LIBS -ldld"
6232543b 19520
f6bcfd97
BP
19521fi
19522
10f2d63a
VZ
19523fi
19524done
19525
10f2d63a
VZ
19526fi
19527
10f2d63a
VZ
19528fi
19529done
19530
f6bcfd97 19531 if test "$HAVE_DL_FUNCS" = 1; then
6232543b
VS
19532
19533for ac_func in dlerror
f6bcfd97 19534do
6232543b
VS
19535ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19536echo "$as_me:19536: checking for $ac_func" >&5
19537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19538if eval "test \"\${$ac_ac_var+set}\" = set"; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540else
19541 cat >conftest.$ac_ext <<_ACEOF
19542#line 19542 "configure"
f6bcfd97
BP
19543#include "confdefs.h"
19544/* System header to define __stub macros and hopefully few prototypes,
6232543b 19545 which can conflict with char $ac_func (); below. */
f6bcfd97
BP
19546#include <assert.h>
19547/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
19548#ifdef __cplusplus
19549extern "C"
19550#endif
f6bcfd97 19551/* We use char because int might match the return type of a gcc2
6232543b
VS
19552 builtin and then its argument prototype would still apply. */
19553char $ac_func ();
19554char (*f) ();
f6bcfd97 19555
6232543b
VS
19556int
19557main ()
19558{
f6bcfd97
BP
19559/* The GNU C library defines this for functions which it implements
19560 to always fail with ENOSYS. Some functions are actually named
19561 something starting with __ and the normal name is an alias. */
19562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19563choke me
19564#else
6232543b 19565f = $ac_func;
f6bcfd97
BP
19566#endif
19567
6232543b
VS
19568 ;
19569 return 0;
19570}
19571_ACEOF
19572rm -f conftest.$ac_objext conftest$ac_exeext
19573if { (eval echo "$as_me:19573: \"$ac_link\"") >&5
19574 (eval $ac_link) 2>&5
19575 ac_status=$?
19576 echo "$as_me:19576: \$? = $ac_status" >&5
19577 (exit $ac_status); } &&
19578 { ac_try='test -s conftest$ac_exeext'
19579 { (eval echo "$as_me:19579: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:19582: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 eval "$ac_ac_var=yes"
19585else
19586 echo "$as_me: failed program was:" >&5
19587cat conftest.$ac_ext >&5
19588eval "$ac_ac_var=no"
19589fi
19590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19591fi
19592echo "$as_me:19592: result: `eval echo '${'$ac_ac_var'}'`" >&5
19593echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19594if test `eval echo '${'$ac_ac_var'}'` = yes; then
19595 cat >>confdefs.h <<EOF
19596#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19597EOF
19598 cat >>confdefs.h <<\EOF
f6bcfd97
BP
19599#define HAVE_DLERROR 1
19600EOF
19601
19602else
6232543b
VS
19603 echo "$as_me:19603: checking for dlerror in -ldl" >&5
19604echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
19605if test "${ac_cv_lib_dl_dlerror+set}" = set; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 19607else
6232543b 19608 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 19609LIBS="-ldl $LIBS"
6232543b
VS
19610cat >conftest.$ac_ext <<_ACEOF
19611#line 19611 "configure"
f6bcfd97 19612#include "confdefs.h"
6232543b 19613
f6bcfd97 19614/* Override any gcc2 internal prototype to avoid an error. */
6232543b
VS
19615#ifdef __cplusplus
19616extern "C"
19617#endif
f6bcfd97 19618/* We use char because int might match the return type of a gcc2
6232543b
VS
19619 builtin and then its argument prototype would still apply. */
19620char dlerror ();
19621int
19622main ()
19623{
19624dlerror ();
19625 ;
19626 return 0;
19627}
19628_ACEOF
19629rm -f conftest.$ac_objext conftest$ac_exeext
19630if { (eval echo "$as_me:19630: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>&5
19632 ac_status=$?
19633 echo "$as_me:19633: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -s conftest$ac_exeext'
19636 { (eval echo "$as_me:19636: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:19639: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 ac_cv_lib_dl_dlerror=yes
19642else
19643 echo "$as_me: failed program was:" >&5
19644cat conftest.$ac_ext >&5
19645ac_cv_lib_dl_dlerror=no
19646fi
19647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19648LIBS=$ac_check_lib_save_LIBS
19649fi
19650echo "$as_me:19650: result: $ac_cv_lib_dl_dlerror" >&5
19651echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
19652if test $ac_cv_lib_dl_dlerror = yes; then
19653 cat >>confdefs.h <<\EOF
f6bcfd97
BP
19654#define HAVE_DLERROR 1
19655EOF
19656
f6bcfd97
BP
19657fi
19658
19659fi
19660done
19661
19662 fi
b4085ce6 19663 fi
f6bcfd97 19664
10f2d63a
VZ
19665 if test "$HAVE_DL_FUNCS" = 0; then
19666 if test "$HAVE_SHL_FUNCS" = 0; then
19667 if test "$USE_UNIX" = 1; then
6232543b
VS
19668 { echo "$as_me:19668: WARNING: Missing dynamic loading support, several features will be disabled" >&5
19669echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
10f2d63a
VZ
19670 wxUSE_DYNLIB_CLASS=no
19671 else
6232543b
VS
19672 { echo "$as_me:19672: WARNING: Assuming wxLibrary class works on this platform" >&5
19673echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
10f2d63a
VZ
19674 fi
19675 fi
19676 fi
19677fi
19678
b089607b
VZ
19679fi
19680
10f2d63a 19681if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
6232543b 19682 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19683#define wxUSE_DYNLIB_CLASS 1
19684EOF
19685
b12915c1
VZ
19686else
19687 wxUSE_ODBC=no
19688 wxUSE_SERIAL=no
10f2d63a
VZ
19689fi
19690
10f2d63a 19691if test "$wxUSE_UNICODE" = "yes" ; then
6232543b 19692 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19693#define wxUSE_UNICODE 1
19694EOF
19695
19696fi
19697
19698if test "$wxUSE_WCSRTOMBS" = "yes" ; then
6232543b 19699 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19700#define wxUSE_WCSRTOMBS 1
19701EOF
19702
19703fi
19704
19705if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
6232543b 19706 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19707#define wxUSE_EXPERIMENTAL_PRINTF 1
19708EOF
19709
19710fi
19711
b12915c1 19712if test "$wxUSE_SERIAL" = "yes" ; then
6232543b 19713 cat >>confdefs.h <<\EOF
b12915c1
VZ
19714#define wxUSE_SERIAL 1
19715EOF
19716
19717fi
19718
10f2d63a
VZ
19719IODBC_C_SRC=""
19720if test "$wxUSE_ODBC" = "yes" ; then
6232543b 19721 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19722#define wxUSE_ODBC 1
19723EOF
19724
19725 WXODBCFLAG="-D_IODBC_"
19726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19727fi
19728
10f2d63a 19729if test "$wxUSE_POSTSCRIPT" = "yes" ; then
6232543b 19730 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19731#define wxUSE_POSTSCRIPT 1
19732EOF
19733
19734fi
19735
6232543b 19736cat >>confdefs.h <<\EOF
10f2d63a
VZ
19737#define wxUSE_AFM_FOR_POSTSCRIPT 1
19738EOF
19739
6232543b 19740cat >>confdefs.h <<\EOF
10f2d63a
VZ
19741#define wxUSE_NORMALIZED_PS_FONTS 1
19742EOF
19743
10f2d63a 19744if test "$wxUSE_CONSTRAINTS" = "yes"; then
6232543b 19745 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19746#define wxUSE_CONSTRAINTS 1
19747EOF
19748
19749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19750fi
19751
19752if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
6232543b 19753 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19754#define wxUSE_MDI_ARCHITECTURE 1
19755EOF
19756
19757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19758fi
19759
19760if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
6232543b 19761 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19762#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19763EOF
19764
19765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19766 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19768 fi
19769fi
19770
19771if test "$wxUSE_HELP" = "yes"; then
6232543b 19772 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19773#define wxUSE_HELP 1
19774EOF
19775
19776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19777fi
19778
19779if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19780 if test "$wxUSE_CONSTRAINTS" != "yes"; then
6232543b
VS
19781 { echo "$as_me:19781: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
19782echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 19783 else
6232543b 19784 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19785#define wxUSE_PRINTING_ARCHITECTURE 1
19786EOF
19787
19788 fi
19789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19790fi
19791
19792if test "$wxUSE_PROLOGIO" = "yes" ; then
6232543b 19793 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19794#define wxUSE_PROLOGIO 1
19795EOF
19796
19797fi
19798
19799if test "$wxUSE_RESOURCES" = "yes" ; then
19800 if test "$wxUSE_PROLOGIO" = "yes" ; then
6232543b 19801 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19802#define wxUSE_RESOURCES 1
19803EOF
19804
19805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19806 else
6232543b
VS
19807 { echo "$as_me:19807: WARNING: wxWindows ressource system requires PrologIO and can't be compiled without it." >&5
19808echo "$as_me: WARNING: wxWindows ressource system requires PrologIO and can't be compiled without it." >&2;}
10f2d63a
VZ
19809 fi
19810fi
19811
19812if test "$wxUSE_X_RESOURCES" = "yes"; then
6232543b 19813 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19814#define wxUSE_X_RESOURCES 1
19815EOF
19816
19817fi
19818
10f2d63a 19819if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 19820 if test "$wxUSE_SOCKETS" != "yes"; then
6232543b
VS
19821 { echo "$as_me:19821: WARNING: wxWindows IPC classes require sockets" >&5
19822echo "$as_me: WARNING: wxWindows IPC classes require sockets" >&2;}
eb4efbdc
VZ
19823 fi
19824
6232543b 19825 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19826#define wxUSE_IPC 1
19827EOF
19828
19829fi
19830
19831if test "$wxUSE_CLIPBOARD" = "yes"; then
6232543b 19832 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19833#define wxUSE_CLIPBOARD 1
19834EOF
19835
19836fi
19837
19838if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19839 if test "$wxUSE_GTK" = 1; then
19840 if test "$WXGTK12" != 1; then
6232543b
VS
19841 { echo "$as_me:19841: WARNING: Drag and drop is only supported under GTK+ 1.2" >&5
19842echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2" >&2;}
10f2d63a
VZ
19843 wxUSE_DRAG_AND_DROP=no
19844 fi
19845 fi
19846
19847 if test "$wxUSE_MOTIF" = 1; then
6232543b
VS
19848 { echo "$as_me:19848: WARNING: Drag and drop is not yet supported under Motif" >&5
19849echo "$as_me: WARNING: Drag and drop is not yet supported under Motif" >&2;}
10f2d63a
VZ
19850 wxUSE_DRAG_AND_DROP=no
19851 fi
19852
2c6025bc 19853 if test "$wxUSE_MAC" = 1; then
6232543b
VS
19854 { echo "$as_me:19854: WARNING: Drag and drop is not yet supported under Mac OS X" >&5
19855echo "$as_me: WARNING: Drag and drop is not yet supported under Mac OS X" >&2;}
2c6025bc
GD
19856 wxUSE_DRAG_AND_DROP=no
19857 fi
19858
10f2d63a 19859 if test "$USE_WIN32" = 1; then
6232543b
VS
19860
19861for ac_header in ole2.h
10f2d63a 19862do
6232543b
VS
19863ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
19864echo "$as_me:19864: checking for $ac_header" >&5
19865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19866if eval "test \"\${$ac_ac_Header+set}\" = set"; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19868else
19869 cat >conftest.$ac_ext <<_ACEOF
19870#line 19870 "configure"
10f2d63a 19871#include "confdefs.h"
6232543b
VS
19872#include <$ac_header>
19873_ACEOF
19874if { (eval echo "$as_me:19874: \"$ac_cpp conftest.$ac_ext\"") >&5
19875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19876 ac_status=$?
19877 egrep -v '^ *\+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:19880: \$? = $ac_status" >&5
19881 (exit $ac_status); } >/dev/null; then
19882 if test -s conftest.err; then
19883 ac_cpp_err=$ac_c_preproc_warn_flag
19884 else
19885 ac_cpp_err=
19886 fi
10f2d63a 19887else
6232543b
VS
19888 ac_cpp_err=yes
19889fi
19890if test -z "$ac_cpp_err"; then
19891 eval "$ac_ac_Header=yes"
19892else
19893 echo "$as_me: failed program was:" >&5
10f2d63a 19894 cat conftest.$ac_ext >&5
6232543b 19895 eval "$ac_ac_Header=no"
10f2d63a 19896fi
6232543b 19897rm -f conftest.err conftest.$ac_ext
10f2d63a 19898fi
6232543b
VS
19899echo "$as_me:19899: result: `eval echo '${'$ac_ac_Header'}'`" >&5
19900echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
19901if test `eval echo '${'$ac_ac_Header'}'` = yes; then
19902 cat >>confdefs.h <<EOF
19903#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10f2d63a 19904EOF
6232543b 19905
10f2d63a
VZ
19906fi
19907done
19908
c521c494
RL
19909 if test "$ac_cv_header_ole2_h" = "yes" ; then
19910 if test "$GCC" = yes ; then
b64f0a5f
RL
19911 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19912 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 19913 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
19914 LIBS="$LIBS -lole32 -luuid"
19915
19916 if test "$wxUSE_METAFILE" = "yes"; then
6232543b 19917 cat >>confdefs.h <<\EOF
b64f0a5f
RL
19918#define wxUSE_METAFILE 1
19919EOF
19920
6232543b 19921 cat >>confdefs.h <<\EOF
b64f0a5f
RL
19922#define wxUSE_ENH_METAFILE 1
19923EOF
19924
19925 fi
c521c494
RL
19926 fi
19927 else
6232543b
VS
19928 { echo "$as_me:19928: WARNING: Drag and drop disabled because OLE headers not found" >&5
19929echo "$as_me: WARNING: Drag and drop disabled because OLE headers not found" >&2;}
10f2d63a
VZ
19930 wxUSE_DRAG_AND_DROP=no
19931 fi
19932 fi
19933
19934 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
6232543b 19935 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19936#define wxUSE_DRAG_AND_DROP 1
19937EOF
19938
19939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19940 fi
19941
19942fi
19943
19944if test "$wxUSE_SPLINES" = "yes" ; then
6232543b 19945 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19946#define wxUSE_SPLINES 1
19947EOF
19948
19949fi
19950
10f2d63a 19951if test "$wxUSE_ACCEL" = "yes"; then
6232543b 19952 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19953#define wxUSE_ACCEL 1
19954EOF
19955
19956fi
19957
19958if test "$wxUSE_CARET" = "yes"; then
6232543b 19959 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19960#define wxUSE_CARET 1
19961EOF
19962
19963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19964fi
19965
19966if test "$wxUSE_COMBOBOX" = "yes"; then
6232543b 19967 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19968#define wxUSE_COMBOBOX 1
19969EOF
19970
19971fi
19972
19973if test "$wxUSE_CHOICE" = "yes"; then
6232543b 19974 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19975#define wxUSE_CHOICE 1
19976EOF
19977
19978fi
19979
19980if test "$wxUSE_BMPBUTTON" = "yes"; then
6232543b 19981 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19982#define wxUSE_BMPBUTTON 1
19983EOF
19984
19985fi
19986
19987if test "$wxUSE_CHECKBOX" = "yes"; then
6232543b 19988 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19989#define wxUSE_CHECKBOX 1
19990EOF
19991
19992fi
19993
19994if test "$wxUSE_CHECKLST" = "yes"; then
6232543b 19995 cat >>confdefs.h <<\EOF
10f2d63a
VZ
19996#define wxUSE_CHECKLISTBOX 1
19997EOF
19998
19999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20000fi
20001
20002if test "$wxUSE_GAUGE" = "yes"; then
6232543b 20003 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20004#define wxUSE_GAUGE 1
20005EOF
20006
20007fi
20008
d6a55c4b
VZ
20009if test "$wxUSE_NEW_GRID" = "yes"; then
20010 wxUSE_GRID="yes"
6232543b 20011 cat >>confdefs.h <<\EOF
d6a55c4b 20012#define wxUSE_NEW_GRID 1
10f2d63a
VZ
20013EOF
20014
d6a55c4b 20015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
20016fi
20017
d6a55c4b 20018if test "$wxUSE_GRID" = "yes"; then
6232543b 20019 cat >>confdefs.h <<\EOF
d6a55c4b 20020#define wxUSE_GRID 1
10f2d63a
VZ
20021EOF
20022
d6a55c4b 20023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
20024fi
20025
20026if test "$wxUSE_IMAGLIST" = "yes"; then
6232543b 20027 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20028#define wxUSE_IMAGLIST 1
20029EOF
20030
20031fi
20032
20033if test "$wxUSE_LISTBOX" = "yes"; then
6232543b 20034 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20035#define wxUSE_LISTBOX 1
20036EOF
20037
20038fi
20039
20040if test "$wxUSE_LISTCTRL" = "yes"; then
20041 if test "$wxUSE_IMAGLIST" = "yes"; then
6232543b 20042 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20043#define wxUSE_LISTCTRL 1
20044EOF
20045
20046 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20047 else
6232543b
VS
20048 { echo "$as_me:20048: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
20049echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
20050 fi
20051fi
20052
20053if test "$wxUSE_NOTEBOOK" = "yes"; then
6232543b 20054 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20055#define wxUSE_NOTEBOOK 1
20056EOF
20057
20058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20059fi
20060
20061if test "$wxUSE_RADIOBOX" = "yes"; then
6232543b 20062 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20063#define wxUSE_RADIOBOX 1
20064EOF
20065
20066fi
20067
20068if test "$wxUSE_RADIOBTN" = "yes"; then
6232543b 20069 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20070#define wxUSE_RADIOBTN 1
20071EOF
20072
20073fi
20074
20075if test "$wxUSE_SASH" = "yes"; then
6232543b 20076 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20077#define wxUSE_SASH 1
20078EOF
20079
20080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20081fi
20082
20083if test "$wxUSE_SCROLLBAR" = "yes"; then
6232543b 20084 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20085#define wxUSE_SCROLLBAR 1
20086EOF
20087
741a9306 20088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20089fi
20090
20091if test "$wxUSE_SLIDER" = "yes"; then
6232543b 20092 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20093#define wxUSE_SLIDER 1
20094EOF
20095
20096fi
20097
20098if test "$wxUSE_SPINBTN" = "yes"; then
6232543b 20099 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20100#define wxUSE_SPINBTN 1
20101EOF
20102
20103fi
20104
56cfaa52 20105if test "$wxUSE_SPINCTRL" = "yes"; then
6232543b 20106 cat >>confdefs.h <<\EOF
56cfaa52
RR
20107#define wxUSE_SPINCTRL 1
20108EOF
20109
20110fi
20111
10f2d63a 20112if test "$wxUSE_SPLITTER" = "yes"; then
6232543b 20113 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20114#define wxUSE_SPLITTER 1
20115EOF
20116
20117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20118fi
20119
20120if test "$wxUSE_STATBMP" = "yes"; then
6232543b 20121 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20122#define wxUSE_STATBMP 1
20123EOF
20124
20125fi
20126
20127if test "$wxUSE_STATBOX" = "yes"; then
6232543b 20128 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20129#define wxUSE_STATBOX 1
20130EOF
20131
20132fi
20133
20134if test "$wxUSE_STATLINE" = "yes"; then
20135 if test "$wxUSE_WINE" = 1 ; then
6232543b
VS
20136 { echo "$as_me:20136: WARNING: wxStaticLine is not supported under WINE" >&5
20137echo "$as_me: WARNING: wxStaticLine is not supported under WINE" >&2;}
10f2d63a 20138 else
6232543b 20139 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20140#define wxUSE_STATLINE 1
20141EOF
20142
20143 fi
20144fi
20145
20146if test "$wxUSE_STATUSBAR" = "yes"; then
6232543b 20147 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20148#define wxUSE_STATUSBAR 1
20149EOF
20150
2286341c 20151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20152fi
20153
20154if test "$wxUSE_TABDIALOG" = "yes"; then
6232543b 20155 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20156#define wxUSE_TAB_DIALOG 1
20157EOF
20158
20159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20160fi
20161
1db8dc4a 20162if test "$wxUSE_TOGGLEBTN" = "yes"; then
6232543b 20163 cat >>confdefs.h <<\EOF
1db8dc4a
VZ
20164#define wxUSE_TOGGLEBTN 1
20165EOF
20166
20167fi
20168
360d6699 20169if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
6232543b 20170 cat >>confdefs.h <<\EOF
360d6699
VZ
20171#define wxUSE_TOOLBAR_SIMPLE 1
20172EOF
20173
20174 wxUSE_TOOLBAR="yes"
20175fi
20176
10f2d63a 20177if test "$wxUSE_TOOLBAR" = "yes"; then
6232543b 20178 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20179#define wxUSE_TOOLBAR 1
20180EOF
20181
360d6699
VZ
20182 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20183 wxUSE_TOOLBAR_NATIVE="yes"
20184 fi
20185
10f2d63a
VZ
20186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20187fi
20188
360d6699 20189if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
6232543b 20190 cat >>confdefs.h <<\EOF
360d6699
VZ
20191#define wxUSE_TOOLBAR_NATIVE 1
20192EOF
20193
20194fi
20195
10f2d63a
VZ
20196if test "$wxUSE_TOOLTIPS" = "yes"; then
20197 if test "$wxUSE_MOTIF" = 1; then
6232543b
VS
20198 { echo "$as_me:20198: WARNING: wxTooltip not supported yet under Motif" >&5
20199echo "$as_me: WARNING: wxTooltip not supported yet under Motif" >&2;}
10f2d63a
VZ
20200 else
20201 if test "$wxUSE_WINE" = 1; then
6232543b
VS
20202 { echo "$as_me:20202: WARNING: wxTooltip not supported under WINE" >&5
20203echo "$as_me: WARNING: wxTooltip not supported under WINE" >&2;}
10f2d63a 20204 else
6232543b 20205 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20206#define wxUSE_TOOLTIPS 1
20207EOF
20208
20209 fi
20210 fi
20211fi
20212
20213if test "$wxUSE_TREECTRL" = "yes"; then
20214 if test "$wxUSE_IMAGLIST" = "yes"; then
6232543b 20215 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20216#define wxUSE_TREECTRL 1
20217EOF
20218
20219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20220 else
6232543b
VS
20221 { echo "$as_me:20221: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
20222echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
20223 fi
20224fi
20225
10f2d63a
VZ
20226if test "$wxUSE_DIRDLG" = "yes"; then
20227 if test "$wxUSE_CONSTRAINTS" != "yes"; then
6232543b
VS
20228 { echo "$as_me:20228: WARNING: wxDirDialog requires constraints so it won't be compiled without them" >&5
20229echo "$as_me: WARNING: wxDirDialog requires constraints so it won't be compiled without them" >&2;}
10f2d63a
VZ
20230 else
20231 if test "$wxUSE_TREECTRL" != "yes"; then
6232543b
VS
20232 { echo "$as_me:20232: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
20233echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
10f2d63a 20234 else
6232543b 20235 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20236#define wxUSE_DIRDLG 1
20237EOF
20238
20239 fi
20240 fi
20241fi
20242
20243if test "$wxUSE_TEXTDLG" = "yes"; then
6232543b 20244 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20245#define wxUSE_TEXTDLG 1
20246EOF
20247
20248fi
20249
20250if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20251 if test "$wxUSE_CONSTRAINTS" != "yes"; then
6232543b
VS
20252 { echo "$as_me:20252: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
20253echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
10f2d63a 20254 else
6232543b 20255 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20256#define wxUSE_STARTUP_TIPS 1
20257EOF
20258
20259 fi
20260fi
20261
20262if test "$wxUSE_PROGRESSDLG" = "yes"; then
20263 if test "$wxUSE_CONSTRAINTS" != "yes"; then
6232543b
VS
20264 { echo "$as_me:20264: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
20265echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
10f2d63a 20266 else
6232543b 20267 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20268#define wxUSE_PROGRESSDLG 1
20269EOF
20270
20271 fi
20272fi
20273
20274if test "$wxUSE_MINIFRAME" = "yes"; then
6232543b 20275 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20276#define wxUSE_MINIFRAME 1
20277EOF
20278
20279 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20280fi
20281
20282if test "$wxUSE_HTML" = "yes"; then
6232543b 20283 cat >>confdefs.h <<\EOF
10f2d63a
VZ
20284#define wxUSE_HTML 1
20285EOF
20286
20287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20288 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
20289fi
20290
20291if test "$wxUSE_VALIDATORS" = "yes"; then
6232543b
VS
20292 cat >>confdefs.h <<\EOF
20293#define wxUSE_VALIDATORS 1
20294EOF
32832908 20295
6232543b
VS
20296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20297fi
32832908 20298
6232543b
VS
20299if test "$wxUSE_IMAGE" = "yes" ; then
20300 cat >>confdefs.h <<\EOF
20301#define wxUSE_IMAGE 1
20302EOF
32832908 20303
6232543b 20304fi
32832908 20305
6232543b
VS
20306if test "$wxUSE_GIF" = "yes" ; then
20307 cat >>confdefs.h <<\EOF
20308#define wxUSE_GIF 1
20309EOF
32832908 20310
6232543b 20311fi
32832908 20312
6232543b
VS
20313if test "$wxUSE_PCX" = "yes" ; then
20314 cat >>confdefs.h <<\EOF
20315#define wxUSE_PCX 1
20316EOF
32832908 20317
6232543b 20318fi
32832908 20319
6232543b
VS
20320if test "$wxUSE_PNM" = "yes" ; then
20321 cat >>confdefs.h <<\EOF
20322#define wxUSE_PNM 1
20323EOF
2224580a 20324
6232543b 20325fi
dad6c0ea 20326
6232543b
VS
20327if test "$wxUSE_XPM" = "yes" ; then
20328 cat >>confdefs.h <<\EOF
20329#define wxUSE_XPM 1
20330EOF
f6bcfd97 20331
6232543b 20332fi
f6bcfd97 20333
6232543b
VS
20334if test "$cross_compiling" = "yes"; then
20335 OSINFO="\"$host\""
20336else
20337 OSINFO=`uname -s -r -m`
20338 OSINFO="\"$OSINFO\""
20339fi
f6bcfd97 20340
6232543b
VS
20341cat >>confdefs.h <<EOF
20342#define WXWIN_OS_DESCRIPTION $OSINFO
20343EOF
2f51a9ec 20344
6232543b
VS
20345GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
20346OPENGL_LIBS="$OPENGL_LINK"
2f51a9ec 20347
6232543b
VS
20348EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
20349if test "$USE_MAC" = 1 ; then
20350 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
20351fi
20352if test "$wxUSE_GUI" = "yes"; then
20353 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
20354fi
2f51a9ec 20355
6232543b 20356LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
2f51a9ec 20357
6232543b 20358INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
2f51a9ec 20359
6232543b
VS
20360if test "$wxUSE_GTK" = 1; then
20361 WXCONFIG_INCLUDE=""
20362else
20363 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20364fi
2f51a9ec 20365
6232543b
VS
20366if test "$GXX" = yes ; then
20367 CXXWARNINGS="-Wall"
20368 fi
20369EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
f6bcfd97 20370
6232543b
VS
20371CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20372CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
dad6c0ea 20373
6232543b 20374LDFLAGS="$LDFLAGS $PROFILE"
caa2c79b 20375
6232543b 20376if test "$wxUSE_GUI" = "yes"; then
3711412e 20377
6232543b
VS
20378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
20379 drawing dynamic event font fractal image menu \
20380 minimal richedit"
0f3f1cbc 20381
6232543b
VS
20382 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20383else
20384 SAMPLES_SUBDIRS=""
20385fi
10f2d63a 20386
6232543b 20387SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
10f2d63a 20388
6232543b
VS
20389echo "$as_me:20389: checking whether ${MAKE-make} sets \${MAKE}" >&5
20390echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
20391set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
20392if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 20394else
6232543b 20395 cat >conftest.make <<\EOF
10f2d63a
VZ
20396all:
20397 @echo 'ac_maketemp="${MAKE}"'
20398EOF
20399# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6232543b 20400eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10f2d63a
VZ
20401if test -n "$ac_maketemp"; then
20402 eval ac_cv_prog_make_${ac_make}_set=yes
20403else
20404 eval ac_cv_prog_make_${ac_make}_set=no
20405fi
6232543b 20406rm -f conftest.make
10f2d63a
VZ
20407fi
20408if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6232543b
VS
20409 echo "$as_me:20409: result: yes" >&5
20410echo "${ECHO_T}yes" >&6
10f2d63a
VZ
20411 SET_MAKE=
20412else
6232543b
VS
20413 echo "$as_me:20413: result: no" >&5
20414echo "${ECHO_T}no" >&6
10f2d63a
VZ
20415 SET_MAKE="MAKE=${MAKE-make}"
20416fi
20417
00cf1208
RR
20418if test -d include; then
20419 if test -d include/wx; then
20420 if test -d include/wx/${TOOLKIT_DIR}; then
20421 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
665bbe97 20422 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
00cf1208
RR
20423 fi
20424 fi
20425 fi
20426fi
665bbe97 20427
6232543b 20428ac_config_headers="$ac_config_headers setup.h:setup.h.in"
10f2d63a 20429
2224580a 20430if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 20431 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
20432 wx_cv_path_ifs=$PATH_IFS
20433 wx_cv_program_ext=$PROGRAM_EXT
20434 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 20435 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
6232543b
VS
20436
20437subdirs="$subdirs demos samples utils contrib"
2224580a
VZ
20438
20439fi
10f2d63a 20440
6232543b
VS
20441ac_config_files="$ac_config_files wx-config src/make.env src/makeprog.env src/makelib.env Makefile"
20442ac_config_commands="$ac_config_commands default"
20443cat >confcache <<\_ACEOF
10f2d63a
VZ
20444# This file is a shell script that caches the results of configure
20445# tests run on this system so they can be shared between configure
6232543b
VS
20446# scripts and configure runs, see configure's option --config-cache.
20447# It is not useful on other systems. If it contains results you don't
20448# want to keep, you may remove or edit it.
10f2d63a 20449#
6232543b
VS
20450# config.status only pays attention to the cache file if you give it
20451# the --recheck option to rerun configure.
10f2d63a 20452#
6232543b
VS
20453# `ac_cv_env_foo' variables (set or unset) will be overriden when
20454# loading this file, other *unset* `ac_cv_foo' will be assigned the
20455# following values.
20456
20457_ACEOF
20458
10f2d63a
VZ
20459# The following way of writing the cache mishandles newlines in values,
20460# but we know of no workaround that is simple, portable, and efficient.
20461# So, don't put newlines in cache variables' values.
20462# Ultrix sh set writes to stderr and can't be redirected directly,
20463# and sets the high bit in the cache file unless we assign to the vars.
6232543b
VS
20464{
20465 (set) 2>&1 |
20466 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20467 *ac_space=\ *)
20468 # `set' does not quote correctly, so add quotes (double-quote
20469 # substitution turns \\\\ into \\, and sed turns \\ into \).
20470 sed -n \
20471 "s/'/'\\\\''/g;
20472 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20473 ;;
20474 *)
20475 # `set' quotes correctly as required by POSIX, so do not add quotes.
20476 sed -n \
20477 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20478 ;;
20479 esac;
20480} |
20481 sed '
20482 t clear
20483 : clear
20484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20485 t end
20486 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20487 : end' >>confcache
20488if cmp -s $cache_file confcache; then :; else
10f2d63a 20489 if test -w $cache_file; then
6232543b
VS
20490 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20491 cat confcache >$cache_file
10f2d63a
VZ
20492 else
20493 echo "not updating unwritable cache $cache_file"
20494 fi
20495fi
20496rm -f confcache
20497
10f2d63a
VZ
20498test "x$prefix" = xNONE && prefix=$ac_default_prefix
20499# Let make expand exec_prefix.
20500test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20501
6232543b
VS
20502# VPATH may cause trouble with some makes, so we remove $(srcdir),
20503# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20504# trailing colons and then remove the whole line if VPATH becomes empty
20505# (actually we leave an empty line to preserve line numbers).
10f2d63a 20506if test "x$srcdir" = x.; then
6232543b
VS
20507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20508s/:*\$(srcdir):*/:/;
20509s/:*\${srcdir}:*/:/;
20510s/:*@srcdir@:*/:/;
20511s/^\([^=]*=[ ]*\):*/\1/;
20512s/:*$//;
20513s/^[^=]*=[ ]*$//;
20514}'
10f2d63a
VZ
20515fi
20516
10f2d63a
VZ
20517DEFS=-DHAVE_CONFIG_H
20518
10f2d63a 20519: ${CONFIG_STATUS=./config.status}
6232543b
VS
20520ac_clean_files_save=$ac_clean_files
20521ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20522{ echo "$as_me:20522: creating $CONFIG_STATUS" >&5
20523echo "$as_me: creating $CONFIG_STATUS" >&6;}
20524cat >$CONFIG_STATUS <<_ACEOF
20525#! $SHELL
10f2d63a
VZ
20526# Generated automatically by configure.
20527# Run this file to recreate the current configuration.
10f2d63a 20528# Compiler output produced by configure, useful for debugging
6232543b 20529# configure, is in config.log if it exists.
10f2d63a 20530
6232543b
VS
20531debug=false
20532SHELL=\${CONFIG_SHELL-$SHELL}
20533ac_cs_invocation="\$0 \$@"
20534
20535_ACEOF
20536
20537cat >>$CONFIG_STATUS <<\_ACEOF
20538# Be Bourne compatible
20539if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20540 emulate sh
20541 NULLCMD=:
20542elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20543 set -o posix
20544fi
20545
20546# Name of the executable.
20547as_me=`echo "$0" |sed 's,.*[\\/],,'`
20548
20549if expr a : '\(a\)' >/dev/null 2>&1; then
20550 as_expr=expr
20551else
20552 as_expr=false
20553fi
20554
20555rm -f conf$$ conf$$.exe conf$$.file
20556echo >conf$$.file
20557if ln -s conf$$.file conf$$ 2>/dev/null; then
20558 # We could just check for DJGPP; but this test a) works b) is more generic
20559 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20560 if test -f conf$$.exe; then
20561 # Don't use ln at all; we don't have any links
20562 as_ln_s='cp -p'
20563 else
20564 as_ln_s='ln -s'
20565 fi
20566elif ln conf$$.file conf$$ 2>/dev/null; then
20567 as_ln_s=ln
20568else
20569 as_ln_s='cp -p'
20570fi
20571rm -f conf$$ conf$$.exe conf$$.file
20572
20573as_executable_p="test -f"
20574
20575# Support unset when possible.
20576if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20577 as_unset=unset
20578else
20579 as_unset=false
20580fi
20581
20582# NLS nuisances.
20583$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
20584$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
20585$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
20586$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
20587$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
20588$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
20589$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
20590$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
20591
20592# IFS
20593# We need space, tab and new line, in precisely that order.
20594as_nl='
20595'
20596IFS=" $as_nl"
20597
20598# CDPATH.
20599$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
20600
20601exec 6>&1
20602
20603_ACEOF
20604
20605# Files that config.status was made for.
20606if test -n "$ac_config_files"; then
20607 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20608fi
20609
20610if test -n "$ac_config_headers"; then
20611 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20612fi
20613
20614if test -n "$ac_config_links"; then
20615 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20616fi
20617
20618if test -n "$ac_config_commands"; then
20619 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20620fi
20621
20622cat >>$CONFIG_STATUS <<\EOF
20623
20624ac_cs_usage="\
20625\`$as_me' instantiates files from templates according to the
20626current configuration.
20627
20628Usage: $0 [OPTIONS] [FILE]...
20629
20630 -h, --help print this help, then exit
20631 -V, --version print version number, then exit
20632 -d, --debug don't remove temporary files
20633 --recheck update $as_me by reconfiguring in the same conditions
20634 --file=FILE[:TEMPLATE]
20635 instantiate the configuration file FILE
20636 --header=FILE[:TEMPLATE]
20637 instantiate the configuration header FILE
20638
20639Configuration files:
20640$config_files
20641
20642Configuration headers:
20643$config_headers
20644
20645Configuration commands:
20646$config_commands
20647
20648Report bugs to <bug-autoconf@gnu.org>."
20649EOF
20650
20651cat >>$CONFIG_STATUS <<EOF
20652ac_cs_version="\\
20653config.status
20654configured by $0, generated by GNU Autoconf 2.50,
20655 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20656
20657Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20658Free Software Foundation, Inc.
20659This config.status script is free software; the Free Software Foundation
20660gives unlimited permission to copy, distribute and modify it."
20661srcdir=$srcdir
20662INSTALL="$INSTALL"
20663EOF
20664
20665cat >>$CONFIG_STATUS <<\EOF
20666# If no file are specified by the user, then we need to provide default
20667# value. By we need to know if files were specified by the user.
20668ac_need_defaults=:
20669while test $# != 0
10f2d63a 20670do
6232543b
VS
20671 case $1 in
20672 --*=*)
20673 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20674 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20675 shift
20676 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
20677 shift
20678 ;;
20679 -*);;
20680 *) # This is not an option, so the user has probably given explicit
20681 # arguments.
20682 ac_need_defaults=false;;
20683 esac
20684
20685 case $1 in
20686 # Handling of the options.
20687EOF
20688cat >>$CONFIG_STATUS <<EOF
10f2d63a 20689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6232543b
VS
20690 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
20691 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
20692EOF
20693cat >>$CONFIG_STATUS <<\EOF
20694 --version | --vers* | -V )
20695 echo "$ac_cs_version"; exit 0 ;;
20696 --he | --h)
20697 # Conflict between --help and --header
20698 { { echo "$as_me:20698: error: ambiguous option: $1
20699Try \`$0 --help' for more information." >&5
20700echo "$as_me: error: ambiguous option: $1
20701Try \`$0 --help' for more information." >&2;}
20702 { (exit 1); exit 1; }; };;
20703 --help | --hel | -h )
20704 echo "$ac_cs_usage"; exit 0 ;;
20705 --debug | --d* | -d )
20706 debug=: ;;
20707 --file | --fil | --fi | --f )
20708 shift
20709 CONFIG_FILES="$CONFIG_FILES $1"
20710 ac_need_defaults=false;;
20711 --header | --heade | --head | --hea )
20712 shift
20713 CONFIG_HEADERS="$CONFIG_HEADERS $1"
20714 ac_need_defaults=false;;
20715
20716 # Handling of arguments.
20717 'wx-config' ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
20718 'src/make.env' ) CONFIG_FILES="$CONFIG_FILES src/make.env" ;;
20719 'src/makeprog.env' ) CONFIG_FILES="$CONFIG_FILES src/makeprog.env" ;;
20720 'src/makelib.env' ) CONFIG_FILES="$CONFIG_FILES src/makelib.env" ;;
20721 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20722 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20723 'setup.h' ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h:setup.h.in" ;;
20724
20725 # This is an error.
20726 -*) { { echo "$as_me:20726: error: unrecognized option: $1
20727Try \`$0 --help' for more information." >&5
20728echo "$as_me: error: unrecognized option: $1
20729Try \`$0 --help' for more information." >&2;}
20730 { (exit 1); exit 1; }; } ;;
20731 *) { { echo "$as_me:20731: error: invalid argument: $1" >&5
20732echo "$as_me: error: invalid argument: $1" >&2;}
20733 { (exit 1); exit 1; }; };;
10f2d63a 20734 esac
6232543b 20735 shift
10f2d63a
VZ
20736done
20737
6232543b
VS
20738exec 5>>config.log
20739cat >&5 << _ACEOF
20740
20741## ----------------------- ##
20742## Running config.status. ##
20743## ----------------------- ##
20744
20745This file was extended by $as_me 2.50, executed with
20746 > $ac_cs_invocation
20747on `(hostname || uname -n) 2>/dev/null | sed 1q`
10f2d63a 20748
6232543b 20749_ACEOF
10f2d63a 20750EOF
10f2d63a 20751
6232543b
VS
20752cat >>$CONFIG_STATUS <<\EOF
20753# If the user did not use the arguments to specify the items to instantiate,
20754# then the envvar interface is used. Set only those that are not.
20755# We use the long form for the default assignment because of an extremely
20756# bizarre bug on SunOS 4.1.3.
20757if $ac_need_defaults; then
20758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20759 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20760 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20761fi
20762
20763# Create a temporary directory, and hook for its removal unless debugging.
20764$debug ||
20765{
20766 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20767 trap '{ (exit $?); exit $?; }' 1 2 13 15
20768}
20769
20770# Create a (secure) tmp directory for tmp files.
20771: ${TMPDIR=/tmp}
20772{
20773 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20774 test -n "$tmp" && test -d "$tmp"
20775} ||
20776{
20777 tmp=$TMPDIR/cs$$-$RANDOM
20778 (umask 077 && mkdir $tmp)
20779} ||
20780{
20781 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20782 { (exit 1); exit 1; }
20783}
10f2d63a 20784
10f2d63a
VZ
20785EOF
20786
6232543b
VS
20787cat >>$CONFIG_STATUS <<EOF
20788#
20789# INIT-COMMANDS section.
20790#
20791
20792 TOOLKIT_DIR="${TOOLKIT_DIR}"
20793 TOOLKIT_NAME="${TOOLKIT_NAME}"
20794 LN_S="${LN_S}"
10f2d63a 20795
6232543b
VS
20796EOF
20797
20798cat >>$CONFIG_STATUS <<EOF
20799
20800#
20801# CONFIG_FILES section.
20802#
20803
20804# No need to generate the scripts if there are no CONFIG_FILES.
20805# This happens for instance when ./config.status config.h
20806if test -n "\$CONFIG_FILES"; then
20807 # Protect against being on the right side of a sed subst in config.status.
20808 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20809 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20810s,@SHELL@,$SHELL,;t t
20811s,@exec_prefix@,$exec_prefix,;t t
20812s,@prefix@,$prefix,;t t
20813s,@program_transform_name@,$program_transform_name,;t t
20814s,@bindir@,$bindir,;t t
20815s,@sbindir@,$sbindir,;t t
20816s,@libexecdir@,$libexecdir,;t t
20817s,@datadir@,$datadir,;t t
20818s,@sysconfdir@,$sysconfdir,;t t
20819s,@sharedstatedir@,$sharedstatedir,;t t
20820s,@localstatedir@,$localstatedir,;t t
20821s,@libdir@,$libdir,;t t
20822s,@includedir@,$includedir,;t t
20823s,@oldincludedir@,$oldincludedir,;t t
20824s,@infodir@,$infodir,;t t
20825s,@mandir@,$mandir,;t t
20826s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20827s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20828s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20829s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20830s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20831s,@ECHO_C@,$ECHO_C,;t t
20832s,@ECHO_N@,$ECHO_N,;t t
20833s,@ECHO_T@,$ECHO_T,;t t
20834s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20835s,@DEFS@,$DEFS,;t t
20836s,@LIBS@,$LIBS,;t t
20837s,@build@,$build,;t t
20838s,@build_cpu@,$build_cpu,;t t
20839s,@build_vendor@,$build_vendor,;t t
20840s,@build_os@,$build_os,;t t
20841s,@host@,$host,;t t
20842s,@host_cpu@,$host_cpu,;t t
20843s,@host_vendor@,$host_vendor,;t t
20844s,@host_os@,$host_os,;t t
20845s,@target@,$target,;t t
20846s,@target_cpu@,$target_cpu,;t t
20847s,@target_vendor@,$target_vendor,;t t
20848s,@target_os@,$target_os,;t t
20849s,@CC@,$CC,;t t
20850s,@CFLAGS@,$CFLAGS,;t t
20851s,@LDFLAGS@,$LDFLAGS,;t t
20852s,@CPPFLAGS@,$CPPFLAGS,;t t
20853s,@ac_ct_CC@,$ac_ct_CC,;t t
20854s,@EXEEXT@,$EXEEXT,;t t
20855s,@OBJEXT@,$OBJEXT,;t t
20856s,@CPP@,$CPP,;t t
20857s,@CXX@,$CXX,;t t
20858s,@CXXFLAGS@,$CXXFLAGS,;t t
20859s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20860s,@CXXCPP@,$CXXCPP,;t t
20861s,@RANLIB@,$RANLIB,;t t
20862s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20863s,@AR@,$AR,;t t
20864s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20865s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20866s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20867s,@STRIP@,$STRIP,;t t
20868s,@YACC@,$YACC,;t t
20869s,@LEX@,$LEX,;t t
20870s,@LEXLIB@,$LEXLIB,;t t
20871s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20872s,@LN_S@,$LN_S,;t t
20873s,@GTK_CONFIG_2_0@,$GTK_CONFIG_2_0,;t t
20874s,@GTK_CONFIG@,$GTK_CONFIG,;t t
20875s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20876s,@GTK_LIBS@,$GTK_LIBS,;t t
20877s,@X_CFLAGS@,$X_CFLAGS,;t t
20878s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20879s,@X_LIBS@,$X_LIBS,;t t
20880s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20881s,@REZ@,$REZ,;t t
20882s,@DEREZ@,$DEREZ,;t t
20883s,@LEX_STEM@,$LEX_STEM,;t t
20884s,@PATH_IFS@,$PATH_IFS,;t t
20885s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
20886s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
20887s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
20888s,@WX_LIBRARY_NAME@,$WX_LIBRARY_NAME,;t t
20889s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
20890s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
20891s,@WX_LIBRARY@,$WX_LIBRARY,;t t
20892s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
20893s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
20894s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
20895s,@WX_LIBRARY_LINK3@,$WX_LIBRARY_LINK3,;t t
20896s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
20897s,@WX_LIBRARY_NAME_GL@,$WX_LIBRARY_NAME_GL,;t t
20898s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
20899s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
20900s,@WX_LIBRARY_GL@,$WX_LIBRARY_GL,;t t
20901s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
20902s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
20903s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
20904s,@WX_LIBRARY_LINK3_GL@,$WX_LIBRARY_LINK3_GL,;t t
20905s,@WX_ALL@,$WX_ALL,;t t
20906s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
20907s,@SHARED_LD@,$SHARED_LD,;t t
20908s,@PIC_FLAG@,$PIC_FLAG,;t t
20909s,@DEP_INFO_FLAGS@,$DEP_INFO_FLAGS,;t t
20910s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
20911s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
20912s,@BURNT_LIBRARY_NAME@,$BURNT_LIBRARY_NAME,;t t
20913s,@BURNT_LIBRARY_NAME_GL@,$BURNT_LIBRARY_NAME_GL,;t t
20914s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t
20915s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
20916s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
20917s,@USE_GUI@,$USE_GUI,;t t
20918s,@AFMINSTALL@,$AFMINSTALL,;t t
20919s,@TOOLKIT@,$TOOLKIT,;t t
20920s,@TOOLKIT_DEF@,$TOOLKIT_DEF,;t t
20921s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
20922s,@TOOLKIT_NAME@,$TOOLKIT_NAME,;t t
20923s,@TOOLKIT_INCLUDE@,$TOOLKIT_INCLUDE,;t t
20924s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
20925s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
20926s,@ALL_DEPFILES@,$ALL_DEPFILES,;t t
20927s,@GUIDIST@,$GUIDIST,;t t
20928s,@PORT_FILES@,$PORT_FILES,;t t
20929s,@DISTDIR@,$DISTDIR,;t t
20930s,@RPM_SPEC@,$RPM_SPEC,;t t
20931s,@RPM_FILES@,$RPM_FILES,;t t
20932s,@SRC_SUBDIRS@,$SRC_SUBDIRS,;t t
20933s,@INCLUDE_SUBDIRS@,$INCLUDE_SUBDIRS,;t t
20934s,@UTILS_SUBDIRS@,$UTILS_SUBDIRS,;t t
20935s,@DOCS_SUBDIRS@,$DOCS_SUBDIRS,;t t
20936s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
20937s,@USER_SUBDIRS@,$USER_SUBDIRS,;t t
20938s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
20939s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20940s,@EXTRADEFS@,$EXTRADEFS,;t t
20941s,@LD_LIBS@,$LD_LIBS,;t t
20942s,@RCINPUTSWITCH@,$RCINPUTSWITCH,;t t
20943s,@RCOUTPUTSWITCH@,$RCOUTPUTSWITCH,;t t
20944s,@RESPROGRAM@,$RESPROGRAM,;t t
20945s,@RESCOMP@,$RESCOMP,;t t
20946s,@RESFLAGS@,$RESFLAGS,;t t
20947s,@REZFLAGS@,$REZFLAGS,;t t
20948s,@DEREZFLAGS@,$DEREZFLAGS,;t t
20949s,@LIBWXMACRES@,$LIBWXMACRES,;t t
20950s,@LIBWXMACRESCOMP@,$LIBWXMACRESCOMP,;t t
20951s,@DLLTOOL@,$DLLTOOL,;t t
20952s,@AS@,$AS,;t t
20953s,@NM@,$NM,;t t
20954s,@LD@,$LD,;t t
20955s,@MAKEINFO@,$MAKEINFO,;t t
20956s,@SET_MAKE@,$SET_MAKE,;t t
20957s,@subdirs@,$subdirs,;t t
20958CEOF
20959
20960EOF
20961
20962 cat >>$CONFIG_STATUS <<\EOF
20963 # Split the substitutions into bite-sized pieces for seds with
20964 # small command number limits, like on Digital OSF/1 and HP-UX.
20965 ac_max_sed_lines=48
20966 ac_sed_frag=1 # Number of current file.
20967 ac_beg=1 # First line for current file.
20968 ac_end=$ac_max_sed_lines # Line after last line for current file.
20969 ac_more_lines=:
20970 ac_sed_cmds=
20971 while $ac_more_lines; do
20972 if test $ac_beg -gt 1; then
20973 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20974 else
20975 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20976 fi
20977 if test ! -s $tmp/subs.frag; then
20978 ac_more_lines=false
10f2d63a 20979 else
6232543b
VS
20980 # The purpose of the label and of the branching condition is to
20981 # speed up the sed processing (if there are no `@' at all, there
20982 # is no need to browse any of the substitutions).
20983 # These are the two extra sed commands mentioned above.
20984 (echo ':t
20985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20986 if test -z "$ac_sed_cmds"; then
20987 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20988 else
20989 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20990 fi
20991 ac_sed_frag=`expr $ac_sed_frag + 1`
20992 ac_beg=$ac_end
20993 ac_end=`expr $ac_end + $ac_max_sed_lines`
10f2d63a 20994 fi
6232543b
VS
20995 done
20996 if test -z "$ac_sed_cmds"; then
20997 ac_sed_cmds=cat
10f2d63a 20998 fi
6232543b 20999fi # test -n "$CONFIG_FILES"
10f2d63a 21000
10f2d63a 21001EOF
6232543b
VS
21002cat >>$CONFIG_STATUS <<\EOF
21003for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10f2d63a 21004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6232543b
VS
21005 case $ac_file in
21006 - | *:- | *:-:* ) # input from stdin
21007 cat >$tmp/stdin
21008 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21010 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21012 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
21013 esac
21014
6232543b
VS
21015 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21016 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21017 X"$ac_file" : 'X\(//\)[^/]' \| \
21018 X"$ac_file" : 'X\(//\)$' \| \
21019 X"$ac_file" : 'X\(/\)' \| \
21020 . : '\(.\)' 2>/dev/null ||
21021echo X"$ac_file" |
21022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21024 /^X\(\/\/\)$/{ s//\1/; q; }
21025 /^X\(\/\).*/{ s//\1/; q; }
21026 s/.*/./; q'`
10f2d63a 21027 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6232543b
VS
21028 { case "$ac_dir" in
21029 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21030 *) as_incr_dir=.;;
21031esac
21032as_dummy="$ac_dir"
21033for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21034 case $as_mkdir_dir in
21035 # Skip DOS drivespec
21036 ?:) as_incr_dir=$as_mkdir_dir ;;
21037 *)
21038 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21039 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21040 ;;
21041 esac
21042done; }
21043
21044 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
10f2d63a 21045 # A "../" for each directory in $ac_dir_suffix.
6232543b 21046 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
10f2d63a
VZ
21047 else
21048 ac_dir_suffix= ac_dots=
21049 fi
21050
6232543b
VS
21051 case $srcdir in
21052 .) ac_srcdir=.
21053 if test -z "$ac_dots"; then
21054 ac_top_srcdir=.
21055 else
21056 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21057 fi ;;
21058 [\\/]* | ?:[\\/]* )
21059 ac_srcdir=$srcdir$ac_dir_suffix;
21060 ac_top_srcdir=$srcdir ;;
10f2d63a 21061 *) # Relative path.
6232543b
VS
21062 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21063 ac_top_srcdir=$ac_dots$srcdir ;;
10f2d63a
VZ
21064 esac
21065
6232543b
VS
21066 case $INSTALL in
21067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21068 *) ac_INSTALL=$ac_dots$INSTALL ;;
10f2d63a
VZ
21069 esac
21070
6232543b
VS
21071 if test x"$ac_file" != x-; then
21072 { echo "$as_me:21072: creating $ac_file" >&5
21073echo "$as_me: creating $ac_file" >&6;}
21074 rm -f "$ac_file"
21075 fi
21076 # Let's still pretend it is `configure' which instantiates (i.e., don't
21077 # use $as_me), people would be surprised to read:
21078 # /* config.h. Generated automatically by config.status. */
21079 configure_input="Generated automatically from `echo $ac_file_in |
21080 sed 's,.*/,,'` by configure."
21081
21082 # First look for the input files in the build tree, otherwise in the
21083 # src tree.
21084 ac_file_inputs=`IFS=:
21085 for f in $ac_file_in; do
21086 case $f in
21087 -) echo $tmp/stdin ;;
21088 [\\/$]*)
21089 # Absolute (can't be DOS-style, as IFS=:)
21090 test -f "$f" || { { echo "$as_me:21090: error: cannot find input file: $f" >&5
21091echo "$as_me: error: cannot find input file: $f" >&2;}
21092 { (exit 1); exit 1; }; }
21093 echo $f;;
21094 *) # Relative
21095 if test -f "$f"; then
21096 # Build tree
21097 echo $f
21098 elif test -f "$srcdir/$f"; then
21099 # Source tree
21100 echo $srcdir/$f
21101 else
21102 # /dev/null tree
21103 { { echo "$as_me:21103: error: cannot find input file: $f" >&5
21104echo "$as_me: error: cannot find input file: $f" >&2;}
21105 { (exit 1); exit 1; }; }
21106 fi;;
21107 esac
21108 done` || { (exit 1); exit 1; }
21109EOF
21110cat >>$CONFIG_STATUS <<EOF
21111 sed "$ac_vpsub
21112$extrasub
21113EOF
21114cat >>$CONFIG_STATUS <<\EOF
21115:t
21116/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21117s,@configure_input@,$configure_input,;t t
21118s,@srcdir@,$ac_srcdir,;t t
21119s,@top_srcdir@,$ac_top_srcdir,;t t
21120s,@INSTALL@,$ac_INSTALL,;t t
21121" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21122 rm -f $tmp/stdin
21123 if test x"$ac_file" != x-; then
21124 mv $tmp/out $ac_file
21125 else
21126 cat $tmp/out
21127 rm -f $tmp/out
21128 fi
21129
21130done
21131EOF
21132cat >>$CONFIG_STATUS <<\EOF
10f2d63a 21133
6232543b
VS
21134#
21135# CONFIG_HEADER section.
21136#
10f2d63a
VZ
21137
21138# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21139# NAME is the cpp macro being defined and VALUE is the value it is being given.
21140#
21141# ac_d sets the value in "#define NAME VALUE" lines.
6232543b
VS
21142ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21143ac_dB='[ ].*$,\1#\2'
21144ac_dC=' '
21145ac_dD=',;t'
21146# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21147ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21148ac_uB='$,\1#\2define\3'
10f2d63a 21149ac_uC=' '
6232543b 21150ac_uD=',;t'
10f2d63a 21151
6232543b 21152for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 21153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6232543b
VS
21154 case $ac_file in
21155 - | *:- | *:-:* ) # input from stdin
21156 cat >$tmp/stdin
21157 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21158 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21159 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21160 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21161 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
21162 esac
21163
6232543b
VS
21164 test x"$ac_file" != x- && { echo "$as_me:21164: creating $ac_file" >&5
21165echo "$as_me: creating $ac_file" >&6;}
21166
21167 # First look for the input files in the build tree, otherwise in the
21168 # src tree.
21169 ac_file_inputs=`IFS=:
21170 for f in $ac_file_in; do
21171 case $f in
21172 -) echo $tmp/stdin ;;
21173 [\\/$]*)
21174 # Absolute (can't be DOS-style, as IFS=:)
21175 test -f "$f" || { { echo "$as_me:21175: error: cannot find input file: $f" >&5
21176echo "$as_me: error: cannot find input file: $f" >&2;}
21177 { (exit 1); exit 1; }; }
21178 echo $f;;
21179 *) # Relative
21180 if test -f "$f"; then
21181 # Build tree
21182 echo $f
21183 elif test -f "$srcdir/$f"; then
21184 # Source tree
21185 echo $srcdir/$f
21186 else
21187 # /dev/null tree
21188 { { echo "$as_me:21188: error: cannot find input file: $f" >&5
21189echo "$as_me: error: cannot find input file: $f" >&2;}
21190 { (exit 1); exit 1; }; }
21191 fi;;
21192 esac
21193 done` || { (exit 1); exit 1; }
21194 # Remove the trailing spaces.
21195 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21196
21197EOF
21198
21199# Transform confdefs.h into two sed scripts, `conftest.defines' and
21200# `conftest.undefs', that substitutes the proper values into
21201# config.h.in to produce config.h. The first handles `#define'
21202# templates, and the second `#undef' templates.
21203# And first: Protect against being on the right side of a sed subst in
21204# config.status. Protect against being in an unquoted here document
21205# in config.status.
21206rm -f conftest.defines conftest.undefs
21207# Using a here document instead of a string reduces the quoting nightmare.
21208# Putting comments in sed scripts is not portable.
21209#
21210# `end' is used to avoid that the second main sed command (meant for
21211# 0-ary CPP macros) applies to n-ary macro definitions.
21212# See the Autoconf documentation for `clear'.
21213cat >confdef2sed.sed <<\EOF
21214s/[\\&,]/\\&/g
21215s,[\\$`],\\&,g
21216t clear
21217: clear
21218s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
21219t end
21220s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21221: end
21222EOF
21223# If some macros were called several times there might be several times
21224# the same #defines, which is useless. Nevertheless, we may not want to
21225# sort them, since we want the *last* AC-DEFINE to be honored.
21226uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21227sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21228rm -f confdef2sed.sed
10f2d63a
VZ
21229
21230# This sed command replaces #undef with comments. This is necessary, for
21231# example, in the case of _POSIX_SOURCE, which is predefined and required
21232# on some systems where configure will not decide to define it.
6232543b
VS
21233cat >>conftest.undefs <<\EOF
21234s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10f2d63a
VZ
21235EOF
21236
6232543b
VS
21237# Break up conftest.defines because some shells have a limit on the size
21238# of here documents, and old seds have small limits too (100 cmds).
21239echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21240echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21241echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21242echo ' :' >>$CONFIG_STATUS
21243rm -f conftest.tail
21244while grep . conftest.defines >/dev/null
21245do
21246 # Write a limited-size here document to $tmp/defines.sed.
21247 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21248 # Speed up: don't consider the non `#define' lines.
21249 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21250 # Work around the forget-to-reset-the-flag bug.
21251 echo 't clr' >>$CONFIG_STATUS
21252 echo ': clr' >>$CONFIG_STATUS
21253 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21254 echo 'CEOF
21255 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21256 rm -f $tmp/in
21257 mv $tmp/out $tmp/in
21258' >>$CONFIG_STATUS
21259 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21260 rm -f conftest.defines
21261 mv conftest.tail conftest.defines
21262done
21263rm -f conftest.defines
21264echo ' fi # egrep' >>$CONFIG_STATUS
21265echo >>$CONFIG_STATUS
10f2d63a 21266
6232543b
VS
21267# Break up conftest.undefs because some shells have a limit on the size
21268# of here documents, and old seds have small limits too (100 cmds).
21269echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 21270rm -f conftest.tail
6232543b 21271while grep . conftest.undefs >/dev/null
10f2d63a 21272do
6232543b
VS
21273 # Write a limited-size here document to $tmp/undefs.sed.
21274 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21275 # Speed up: don't consider the non `#undef'
21276 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21277 # Work around the forget-to-reset-the-flag bug.
21278 echo 't clr' >>$CONFIG_STATUS
21279 echo ': clr' >>$CONFIG_STATUS
21280 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 21281 echo 'CEOF
6232543b
VS
21282 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21283 rm -f $tmp/in
21284 mv $tmp/out $tmp/in
21285' >>$CONFIG_STATUS
21286 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21287 rm -f conftest.undefs
21288 mv conftest.tail conftest.undefs
10f2d63a 21289done
6232543b
VS
21290rm -f conftest.undefs
21291
21292cat >>$CONFIG_STATUS <<\EOF
21293 # Let's still pretend it is `configure' which instantiates (i.e., don't
21294 # use $as_me), people would be surprised to read:
21295 # /* config.h. Generated automatically by config.status. */
21296 if test x"$ac_file" = x-; then
21297 echo "/* Generated automatically by configure. */" >$tmp/config.h
10f2d63a 21298 else
6232543b
VS
21299 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
21300 fi
21301 cat $tmp/in >>$tmp/config.h
21302 rm -f $tmp/in
21303 if test x"$ac_file" != x-; then
21304 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
21305 { echo "$as_me:21305: $ac_file is unchanged" >&5
21306echo "$as_me: $ac_file is unchanged" >&6;}
21307 else
21308 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21309 X"$ac_file" : 'X\(//\)[^/]' \| \
21310 X"$ac_file" : 'X\(//\)$' \| \
21311 X"$ac_file" : 'X\(/\)' \| \
21312 . : '\(.\)' 2>/dev/null ||
21313echo X"$ac_file" |
21314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21316 /^X\(\/\/\)$/{ s//\1/; q; }
21317 /^X\(\/\).*/{ s//\1/; q; }
21318 s/.*/./; q'`
10f2d63a 21319 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6232543b
VS
21320 { case "$ac_dir" in
21321 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21322 *) as_incr_dir=.;;
21323esac
21324as_dummy="$ac_dir"
21325for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21326 case $as_mkdir_dir in
21327 # Skip DOS drivespec
21328 ?:) as_incr_dir=$as_mkdir_dir ;;
21329 *)
21330 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21331 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21332 ;;
21333 esac
21334done; }
21335
21336 fi
21337 rm -f $ac_file
21338 mv $tmp/config.h $ac_file
10f2d63a 21339 fi
6232543b
VS
21340 else
21341 cat $tmp/config.h
21342 rm -f $tmp/config.h
10f2d63a 21343 fi
6232543b 21344done
10f2d63a 21345EOF
6232543b 21346cat >>$CONFIG_STATUS <<\EOF
10f2d63a 21347
6232543b
VS
21348#
21349# CONFIG_COMMANDS section.
21350#
21351for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21352 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21353 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10f2d63a 21354
6232543b
VS
21355 case $ac_dest in
21356 default )
10f2d63a 21357 chmod +x wx-config
f6bcfd97
BP
21358 mv wx-config wx${TOOLKIT_NAME}-config
21359 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
665bbe97 21360
00cf1208
RR
21361 if test ! -d lib; then
21362 mkdir lib
21363 fi
21364 if test ! -d lib/wx; then
21365 mkdir lib/wx
21366 fi
21367 if test ! -d lib/wx/include; then
21368 mkdir lib/wx/include
21369 fi
21370 if test ! -d lib/wx/include/wx; then
21371 mkdir lib/wx/include/wx
21372 fi
f6bcfd97
BP
21373 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
21374 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
21375 fi
21376 if test -f setup.h; then
066b00aa 21377 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 21378 fi
07eb77a6 21379
10f2d63a
VZ
21380 if test ! -d include; then
21381 mkdir include
21382 fi
21383 if test ! -d include/wx; then
21384 mkdir include/wx
21385 fi
21386 if test ! -d include/wx/${TOOLKIT_DIR}; then
21387 mkdir include/wx/${TOOLKIT_DIR}
21388 fi
afc31813 21389 if test -f setup.h; then
066b00aa 21390 cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
afc31813 21391 fi
665bbe97 21392
6232543b
VS
21393 ;;
21394 esac
21395done
21396EOF
21397
21398cat >>$CONFIG_STATUS <<\EOF
21399
21400{ (exit 0); exit 0; }
10f2d63a
VZ
21401EOF
21402chmod +x $CONFIG_STATUS
6232543b
VS
21403ac_clean_files=$ac_clean_files_save
21404
21405# configure is writing to config.log, and then calls config.status.
21406# config.status does its own redirection, appending to config.log.
21407# Unfortunately, on DOS this fails, as config.log is still kept open
21408# by configure, so config.status won't be able to write to it; its
21409# output is simply discarded. So we exec the FD to /dev/null,
21410# effectively closing config.log, so it can be properly (re)opened and
21411# appended to by config.status. When coming back to configure, we
21412# need to make the FD available again.
21413if test "$no_create" != yes; then
21414 ac_cs_success=:
21415 exec 5>/dev/null
21416 $SHELL $CONFIG_STATUS || ac_cs_success=false
21417 exec 5>>config.log
21418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21419 # would make configure fail if this is the last instruction.
21420 $ac_cs_success || { (exit 1); exit 1; }
21421fi
10f2d63a 21422
6232543b
VS
21423#
21424# CONFIG_SUBDIRS section.
21425#
2224580a
VZ
21426if test "$no_recursion" != yes; then
21427
21428 # Remove --cache-file and --srcdir arguments so they do not pile up.
21429 ac_sub_configure_args=
21430 ac_prev=
21431 for ac_arg in $ac_configure_args; do
21432 if test -n "$ac_prev"; then
21433 ac_prev=
21434 continue
21435 fi
6232543b 21436 case $ac_arg in
2224580a
VZ
21437 -cache-file | --cache-file | --cache-fil | --cache-fi \
21438 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21439 ac_prev=cache_file ;;
21440 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6232543b
VS
21441 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21442 | --c=*)
21443 ;;
21444 --config-cache | -C)
2224580a
VZ
21445 ;;
21446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21447 ac_prev=srcdir ;;
21448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21449 ;;
21450 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21451 esac
21452 done
21453
6232543b 21454 for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
2224580a
VZ
21455
21456 # Do not complain, so a configure script can configure whichever
21457 # parts of a large source tree are present.
6232543b 21458 test -d $srcdir/$ac_subdir || continue
2224580a 21459
6232543b
VS
21460 { echo "$as_me:21460: configuring in $ac_subdir" >&5
21461echo "$as_me: configuring in $ac_subdir" >&6;}
21462 case $srcdir in
2224580a 21463 .) ;;
6232543b
VS
21464 *) { case "./$ac_subdir" in
21465 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21466 *) as_incr_dir=.;;
21467esac
21468as_dummy="./$ac_subdir"
21469for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21470 case $as_mkdir_dir in
21471 # Skip DOS drivespec
21472 ?:) as_incr_dir=$as_mkdir_dir ;;
2224580a 21473 *)
6232543b
VS
21474 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21475 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21476 ;;
21477 esac
21478done; }
21479
21480 if test -d ./$ac_subdir; then :;
21481 else
21482 { { echo "$as_me:21482: error: cannot create \`pwd\`/$ac_subdir" >&5
21483echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
21484 { (exit 1); exit 1; }; }
21485 fi
21486 ;;
2224580a
VZ
21487 esac
21488
21489 ac_popdir=`pwd`
6232543b 21490 cd $ac_subdir
2224580a 21491
6232543b
VS
21492 # A "../" for each directory in /$ac_subdir.
21493 ac_dots=`echo $ac_subdir |
21494 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
2224580a 21495
6232543b 21496 case $srcdir in
2224580a
VZ
21497 .) # No --srcdir option. We are building in place.
21498 ac_sub_srcdir=$srcdir ;;
6232543b
VS
21499 [\\/]* | ?:[\\/]* ) # Absolute path.
21500 ac_sub_srcdir=$srcdir/$ac_subdir ;;
2224580a 21501 *) # Relative path.
6232543b 21502 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
2224580a
VZ
21503 esac
21504
21505 # Check for guested configure; otherwise get Cygnus style configure.
6232543b
VS
21506 if test -f $ac_sub_srcdir/configure.gnu; then
21507 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
21508 elif test -f $ac_sub_srcdir/configure; then
21509 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
2224580a
VZ
21510 elif test -f $ac_sub_srcdir/configure.in; then
21511 ac_sub_configure=$ac_configure
21512 else
6232543b
VS
21513 { echo "$as_me:21513: WARNING: no configuration information is in $ac_subdir" >&5
21514echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
2224580a
VZ
21515 ac_sub_configure=
21516 fi
21517
21518 # The recursion is here.
21519 if test -n "$ac_sub_configure"; then
2224580a 21520 # Make the cache file name correct relative to the subdirectory.
6232543b
VS
21521 case $cache_file in
21522 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
2224580a 21523 *) # Relative path.
6232543b 21524 ac_sub_cache_file=$ac_dots$cache_file ;;
2224580a 21525 esac
2224580a 21526
6232543b
VS
21527 { echo "$as_me:21527: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
21528echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
2224580a 21529 # The eval makes quoting arguments work.
6232543b
VS
21530 eval $ac_sub_configure $ac_sub_configure_args \
21531 --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
21532 { { echo "$as_me:21532: error: $ac_sub_configure failed for $ac_subdir" >&5
21533echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
21534 { (exit 1); exit 1; }; }
2224580a
VZ
21535 fi
21536
21537 cd $ac_popdir
21538 done
21539fi
21540