]> git.saurik.com Git - wxWidgets.git/blame - configure
streamlined vsnprintf() check -- now that we fall back to our own printf() version...
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
247f5006
VZ
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.53.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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
247f5006
VZ
11if expr a : '\(a\)' >/dev/null 2>&1; then
12 as_expr=expr
13else
14 as_expr=false
15fi
52127426 16
52127426 17
247f5006
VZ
18## --------------------- ##
19## M4sh Initialization. ##
20## --------------------- ##
8284b0c5 21
247f5006
VZ
22# Be Bourne compatible
23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24 emulate sh
25 NULLCMD=:
26elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 set -o posix
28fi
8284b0c5 29
247f5006
VZ
30# NLS nuisances.
31# Support unset when possible.
32if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 as_unset=unset
34else
35 as_unset=false
36fi
37
38(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
62
63
64# Name of the executable.
65as_me=`(basename "$0") 2>/dev/null ||
66$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76# PATH needs CR, and LINENO needs CR and PATH.
77# Avoid depending upon Character Ranges.
78as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81as_cr_digits='0123456789'
82as_cr_alnum=$as_cr_Letters$as_cr_digits
83
84# The user is always right.
85if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
88 chmod +x conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90 PATH_SEPARATOR=';'
91 else
92 PATH_SEPARATOR=:
93 fi
94 rm -f conftest.sh
95fi
8284b0c5
MB
96
97
247f5006
VZ
98 as_lineno_1=$LINENO
99 as_lineno_2=$LINENO
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
104 # relative or not.
105 case $0 in
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108for as_dir in $PATH
109do
110 IFS=$as_save_IFS
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113done
8284b0c5 114
247f5006
VZ
115 ;;
116 esac
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
120 as_myself=$0
121 fi
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
125 fi
126 case $CONFIG_SHELL in
127 '')
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130do
131 IFS=$as_save_IFS
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
134 case $as_dir in
135 /*)
136 if ("$as_dir/$as_base" -c '
137 as_lineno_1=$LINENO
138 as_lineno_2=$LINENO
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
143 export CONFIG_SHELL
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145 fi;;
146 esac
147 done
148done
149;;
150 esac
8284b0c5 151
247f5006
VZ
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
161 sed '
162 N
163 s,$,-,
164 : loop
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166 t loop
167 s,-$,,
168 s,^['$as_cr_digits']*\n,,
169 ' >$as_me.lineno &&
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
173
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
177 . ./$as_me.lineno
178 # Exit status is that of the last command.
179 exit
180}
8284b0c5
MB
181
182
247f5006
VZ
183case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
185' ECHO_T=' ' ;;
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
188esac
8284b0c5 189
247f5006
VZ
190if expr a : '\(a\)' >/dev/null 2>&1; then
191 as_expr=expr
192else
193 as_expr=false
194fi
8284b0c5 195
247f5006
VZ
196rm -f conf$$ conf$$.exe conf$$.file
197echo >conf$$.file
198if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
203 as_ln_s='cp -p'
204 else
205 as_ln_s='ln -s'
206 fi
207elif ln conf$$.file conf$$ 2>/dev/null; then
208 as_ln_s=ln
209else
210 as_ln_s='cp -p'
211fi
212rm -f conf$$ conf$$.exe conf$$.file
8284b0c5 213
247f5006 214as_executable_p="test -f"
8284b0c5 215
247f5006
VZ
216# Sed expression to map a string onto a valid CPP name.
217as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8284b0c5 218
247f5006
VZ
219# Sed expression to map a string onto a valid variable name.
220as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8284b0c5
MB
221
222
247f5006
VZ
223# IFS
224# We need space, tab and new line, in precisely that order.
225as_nl='
226'
227IFS=" $as_nl"
8284b0c5 228
247f5006
VZ
229# CDPATH.
230$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8284b0c5 231
8284b0c5 232
247f5006
VZ
233# Name of the host.
234# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235# so uname gets run too.
236ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
8284b0c5 237
247f5006 238exec 6>&1
8284b0c5 239
8284b0c5 240#
247f5006
VZ
241# Initializations.
242#
8284b0c5 243ac_default_prefix=/usr/local
247f5006
VZ
244cross_compiling=no
245subdirs=
246MFLAGS=
247MAKEFLAGS=
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250# Maximum number of lines to put in a shell here document.
251# This variable seems obsolete. It should probably be removed, and
252# only ac_max_sed_lines should be used.
253: ${ac_max_here_lines=38}
254
255# Identity of this package.
256PACKAGE_NAME=
257PACKAGE_TARNAME=
258PACKAGE_VERSION=
259PACKAGE_STRING=
260PACKAGE_BUGREPORT=
261
262ac_unique_file="wx-config.in"
263# Factoring default headers for most tests.
264ac_includes_default="\
265#include <stdio.h>
266#if HAVE_SYS_TYPES_H
267# include <sys/types.h>
268#endif
269#if HAVE_SYS_STAT_H
270# include <sys/stat.h>
271#endif
272#if STDC_HEADERS
273# include <stdlib.h>
274# include <stddef.h>
275#else
276# if HAVE_STDLIB_H
277# include <stdlib.h>
278# endif
279#endif
280#if HAVE_STRING_H
281# if !STDC_HEADERS && HAVE_MEMORY_H
282# include <memory.h>
283# endif
284# include <string.h>
285#endif
286#if HAVE_STRINGS_H
287# include <strings.h>
288#endif
289#if HAVE_INTTYPES_H
290# include <inttypes.h>
291#else
292# if HAVE_STDINT_H
293# include <stdint.h>
294# endif
295#endif
296#if HAVE_UNISTD_H
297# include <unistd.h>
298#endif"
299
300ac_subdirs_all="$ac_subdirs_all demos samples utils contrib"
10f2d63a
VZ
301
302# Initialize some variables set by options.
247f5006
VZ
303ac_init_help=
304ac_init_version=false
10f2d63a
VZ
305# The variables have the same names as the options, with
306# dashes changed to underlines.
247f5006 307cache_file=/dev/null
10f2d63a 308exec_prefix=NONE
10f2d63a 309no_create=
10f2d63a
VZ
310no_recursion=
311prefix=NONE
312program_prefix=NONE
313program_suffix=NONE
314program_transform_name=s,x,x,
315silent=
316site=
317srcdir=
10f2d63a
VZ
318verbose=
319x_includes=NONE
320x_libraries=NONE
247f5006
VZ
321
322# Installation directory options.
323# These are left unexpanded so users can "make install exec_prefix=/foo"
324# and all the variables that are supposed to be based on exec_prefix
325# by default will actually change.
326# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
327bindir='${exec_prefix}/bin'
328sbindir='${exec_prefix}/sbin'
329libexecdir='${exec_prefix}/libexec'
330datadir='${prefix}/share'
331sysconfdir='${prefix}/etc'
332sharedstatedir='${prefix}/com'
333localstatedir='${prefix}/var'
334libdir='${exec_prefix}/lib'
335includedir='${prefix}/include'
336oldincludedir='/usr/include'
337infodir='${prefix}/info'
338mandir='${prefix}/man'
339
10f2d63a
VZ
340ac_prev=
341for ac_option
342do
10f2d63a
VZ
343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
346 ac_prev=
347 continue
348 fi
349
247f5006 350 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
351
352 # Accept the important Cygnus configure options, so we can diagnose typos.
353
247f5006 354 case $ac_option in
10f2d63a
VZ
355
356 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 ac_prev=bindir ;;
358 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
247f5006 359 bindir=$ac_optarg ;;
10f2d63a
VZ
360
361 -build | --build | --buil | --bui | --bu)
247f5006 362 ac_prev=build_alias ;;
10f2d63a 363 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
247f5006 364 build_alias=$ac_optarg ;;
10f2d63a
VZ
365
366 -cache-file | --cache-file | --cache-fil | --cache-fi \
367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368 ac_prev=cache_file ;;
369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
247f5006
VZ
371 cache_file=$ac_optarg ;;
372
373 --config-cache | -C)
374 cache_file=config.cache ;;
10f2d63a
VZ
375
376 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 ac_prev=datadir ;;
378 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 | --da=*)
247f5006 380 datadir=$ac_optarg ;;
10f2d63a
VZ
381
382 -disable-* | --disable-*)
247f5006 383 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 384 # Reject names that are not valid shell variable names.
247f5006
VZ
385 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387 { (exit 1); exit 1; }; }
388 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
390
391 -enable-* | --enable-*)
247f5006 392 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 393 # Reject names that are not valid shell variable names.
247f5006
VZ
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 case $ac_option in
399 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
400 *) ac_optarg=yes ;;
401 esac
247f5006 402 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
403
404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406 | --exec | --exe | --ex)
407 ac_prev=exec_prefix ;;
408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410 | --exec=* | --exe=* | --ex=*)
247f5006 411 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
412
413 -gas | --gas | --ga | --g)
414 # Obsolete; use --with-gas.
415 with_gas=yes ;;
416
247f5006
VZ
417 -help | --help | --hel | --he | -h)
418 ac_init_help=long ;;
419 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420 ac_init_help=recursive ;;
421 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422 ac_init_help=short ;;
10f2d63a
VZ
423
424 -host | --host | --hos | --ho)
247f5006 425 ac_prev=host_alias ;;
10f2d63a 426 -host=* | --host=* | --hos=* | --ho=*)
247f5006 427 host_alias=$ac_optarg ;;
10f2d63a
VZ
428
429 -includedir | --includedir | --includedi | --included | --include \
430 | --includ | --inclu | --incl | --inc)
431 ac_prev=includedir ;;
432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433 | --includ=* | --inclu=* | --incl=* | --inc=*)
247f5006 434 includedir=$ac_optarg ;;
10f2d63a
VZ
435
436 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 ac_prev=infodir ;;
438 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
247f5006 439 infodir=$ac_optarg ;;
10f2d63a
VZ
440
441 -libdir | --libdir | --libdi | --libd)
442 ac_prev=libdir ;;
443 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247f5006 444 libdir=$ac_optarg ;;
10f2d63a
VZ
445
446 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447 | --libexe | --libex | --libe)
448 ac_prev=libexecdir ;;
449 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450 | --libexe=* | --libex=* | --libe=*)
247f5006 451 libexecdir=$ac_optarg ;;
10f2d63a
VZ
452
453 -localstatedir | --localstatedir | --localstatedi | --localstated \
454 | --localstate | --localstat | --localsta | --localst \
455 | --locals | --local | --loca | --loc | --lo)
456 ac_prev=localstatedir ;;
457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247f5006 460 localstatedir=$ac_optarg ;;
10f2d63a
VZ
461
462 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 ac_prev=mandir ;;
464 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247f5006 465 mandir=$ac_optarg ;;
10f2d63a
VZ
466
467 -nfp | --nfp | --nf)
468 # Obsolete; use --without-fp.
469 with_fp=no ;;
470
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247f5006 472 | --no-cr | --no-c | -n)
10f2d63a
VZ
473 no_create=yes ;;
474
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 no_recursion=yes ;;
478
479 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481 | --oldin | --oldi | --old | --ol | --o)
482 ac_prev=oldincludedir ;;
483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
247f5006 486 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
487
488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 ac_prev=prefix ;;
490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
247f5006 491 prefix=$ac_optarg ;;
10f2d63a
VZ
492
493 -program-prefix | --program-prefix | --program-prefi | --program-pref \
494 | --program-pre | --program-pr | --program-p)
495 ac_prev=program_prefix ;;
496 -program-prefix=* | --program-prefix=* | --program-prefi=* \
497 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
247f5006 498 program_prefix=$ac_optarg ;;
10f2d63a
VZ
499
500 -program-suffix | --program-suffix | --program-suffi | --program-suff \
501 | --program-suf | --program-su | --program-s)
502 ac_prev=program_suffix ;;
503 -program-suffix=* | --program-suffix=* | --program-suffi=* \
504 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
247f5006 505 program_suffix=$ac_optarg ;;
10f2d63a
VZ
506
507 -program-transform-name | --program-transform-name \
508 | --program-transform-nam | --program-transform-na \
509 | --program-transform-n | --program-transform- \
510 | --program-transform | --program-transfor \
511 | --program-transfo | --program-transf \
512 | --program-trans | --program-tran \
513 | --progr-tra | --program-tr | --program-t)
514 ac_prev=program_transform_name ;;
515 -program-transform-name=* | --program-transform-name=* \
516 | --program-transform-nam=* | --program-transform-na=* \
517 | --program-transform-n=* | --program-transform-=* \
518 | --program-transform=* | --program-transfor=* \
519 | --program-transfo=* | --program-transf=* \
520 | --program-trans=* | --program-tran=* \
521 | --progr-tra=* | --program-tr=* | --program-t=*)
247f5006 522 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
523
524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525 | -silent | --silent | --silen | --sile | --sil)
526 silent=yes ;;
527
528 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 ac_prev=sbindir ;;
530 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 | --sbi=* | --sb=*)
247f5006 532 sbindir=$ac_optarg ;;
10f2d63a
VZ
533
534 -sharedstatedir | --sharedstatedir | --sharedstatedi \
535 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536 | --sharedst | --shareds | --shared | --share | --shar \
537 | --sha | --sh)
538 ac_prev=sharedstatedir ;;
539 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 | --sha=* | --sh=*)
247f5006 543 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
544
545 -site | --site | --sit)
546 ac_prev=site ;;
547 -site=* | --site=* | --sit=*)
247f5006 548 site=$ac_optarg ;;
10f2d63a
VZ
549
550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 ac_prev=srcdir ;;
552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
247f5006 553 srcdir=$ac_optarg ;;
10f2d63a
VZ
554
555 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556 | --syscon | --sysco | --sysc | --sys | --sy)
557 ac_prev=sysconfdir ;;
558 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
247f5006 560 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
561
562 -target | --target | --targe | --targ | --tar | --ta | --t)
247f5006 563 ac_prev=target_alias ;;
10f2d63a 564 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
247f5006 565 target_alias=$ac_optarg ;;
10f2d63a
VZ
566
567 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 verbose=yes ;;
569
247f5006
VZ
570 -version | --version | --versio | --versi | --vers | -V)
571 ac_init_version=: ;;
10f2d63a
VZ
572
573 -with-* | --with-*)
247f5006 574 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 575 # Reject names that are not valid shell variable names.
247f5006
VZ
576 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid package name: $ac_package" >&2
578 { (exit 1); exit 1; }; }
10f2d63a 579 ac_package=`echo $ac_package| sed 's/-/_/g'`
247f5006
VZ
580 case $ac_option in
581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
582 *) ac_optarg=yes ;;
583 esac
247f5006 584 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
585
586 -without-* | --without-*)
247f5006 587 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 588 # Reject names that are not valid shell variable names.
247f5006
VZ
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package | sed 's/-/_/g'`
593 eval "with_$ac_package=no" ;;
10f2d63a
VZ
594
595 --x)
596 # Obsolete; use --with-x.
597 with_x=yes ;;
598
599 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600 | --x-incl | --x-inc | --x-in | --x-i)
601 ac_prev=x_includes ;;
602 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
247f5006 604 x_includes=$ac_optarg ;;
10f2d63a
VZ
605
606 -x-libraries | --x-libraries | --x-librarie | --x-librari \
607 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608 ac_prev=x_libraries ;;
609 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
247f5006 611 x_libraries=$ac_optarg ;;
10f2d63a 612
247f5006
VZ
613 -*) { echo "$as_me: error: unrecognized option: $ac_option
614Try \`$0 --help' for more information." >&2
615 { (exit 1); exit 1; }; }
10f2d63a
VZ
616 ;;
617
247f5006
VZ
618 *=*)
619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620 # Reject names that are not valid shell variable names.
621 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623 { (exit 1); exit 1; }; }
624 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625 eval "$ac_envvar='$ac_optarg'"
626 export $ac_envvar ;;
627
10f2d63a 628 *)
247f5006
VZ
629 # FIXME: should be removed in autoconf 3.0.
630 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
634 ;;
635
636 esac
637done
638
639if test -n "$ac_prev"; then
247f5006
VZ
640 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641 { echo "$as_me: error: missing argument to $ac_option" >&2
642 { (exit 1); exit 1; }; }
8284b0c5 643fi
8284b0c5 644
247f5006
VZ
645# Be sure to have absolute paths.
646for ac_var in exec_prefix prefix
647do
648 eval ac_val=$`echo $ac_var`
649 case $ac_val in
650 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652 { (exit 1); exit 1; }; };;
653 esac
654done
8284b0c5 655
247f5006
VZ
656# Be sure to have absolute paths.
657for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 659do
247f5006
VZ
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
10f2d63a
VZ
665 esac
666done
667
247f5006
VZ
668# There might be people who depend on the old broken behavior: `$host'
669# used to hold the argument of --host etc.
670# FIXME: To remove some day.
671build=$build_alias
672host=$host_alias
673target=$target_alias
674
675# FIXME: To remove some day.
676if test "x$host_alias" != x; then
677 if test "x$build_alias" = x; then
678 cross_compiling=maybe
679 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680 If a cross compiler is detected then cross compile mode will be used." >&2
681 elif test "x$build_alias" != "x$host_alias"; then
682 cross_compiling=yes
683 fi
684fi
10f2d63a 685
247f5006
VZ
686ac_tool_prefix=
687test -n "$host_alias" && ac_tool_prefix=$host_alias-
688
689test "$silent" = yes && exec 6>/dev/null
10f2d63a 690
10f2d63a
VZ
691
692# Find the source files, if location was not specified.
693if test -z "$srcdir"; then
694 ac_srcdir_defaulted=yes
695 # Try the directory containing this script, then its parent.
247f5006
VZ
696 ac_confdir=`(dirname "$0") 2>/dev/null ||
697$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698 X"$0" : 'X\(//\)[^/]' \| \
699 X"$0" : 'X\(//\)$' \| \
700 X"$0" : 'X\(/\)' \| \
701 . : '\(.\)' 2>/dev/null ||
702echo X"$0" |
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
707 s/.*/./; q'`
10f2d63a
VZ
708 srcdir=$ac_confdir
709 if test ! -r $srcdir/$ac_unique_file; then
710 srcdir=..
711 fi
712else
713 ac_srcdir_defaulted=no
714fi
715if test ! -r $srcdir/$ac_unique_file; then
716 if test "$ac_srcdir_defaulted" = yes; then
247f5006
VZ
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718 { (exit 1); exit 1; }; }
10f2d63a 719 else
247f5006
VZ
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721 { (exit 1); exit 1; }; }
10f2d63a
VZ
722 fi
723fi
247f5006
VZ
724srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725ac_env_build_alias_set=${build_alias+set}
726ac_env_build_alias_value=$build_alias
727ac_cv_env_build_alias_set=${build_alias+set}
728ac_cv_env_build_alias_value=$build_alias
729ac_env_host_alias_set=${host_alias+set}
730ac_env_host_alias_value=$host_alias
731ac_cv_env_host_alias_set=${host_alias+set}
732ac_cv_env_host_alias_value=$host_alias
733ac_env_target_alias_set=${target_alias+set}
734ac_env_target_alias_value=$target_alias
735ac_cv_env_target_alias_set=${target_alias+set}
736ac_cv_env_target_alias_value=$target_alias
737ac_env_CC_set=${CC+set}
738ac_env_CC_value=$CC
739ac_cv_env_CC_set=${CC+set}
740ac_cv_env_CC_value=$CC
741ac_env_CFLAGS_set=${CFLAGS+set}
742ac_env_CFLAGS_value=$CFLAGS
743ac_cv_env_CFLAGS_set=${CFLAGS+set}
744ac_cv_env_CFLAGS_value=$CFLAGS
745ac_env_LDFLAGS_set=${LDFLAGS+set}
746ac_env_LDFLAGS_value=$LDFLAGS
747ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748ac_cv_env_LDFLAGS_value=$LDFLAGS
749ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_env_CPPFLAGS_value=$CPPFLAGS
751ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753ac_env_CPP_set=${CPP+set}
754ac_env_CPP_value=$CPP
755ac_cv_env_CPP_set=${CPP+set}
756ac_cv_env_CPP_value=$CPP
757ac_env_CXX_set=${CXX+set}
758ac_env_CXX_value=$CXX
759ac_cv_env_CXX_set=${CXX+set}
760ac_cv_env_CXX_value=$CXX
761ac_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_env_CXXFLAGS_value=$CXXFLAGS
763ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
764ac_cv_env_CXXFLAGS_value=$CXXFLAGS
765ac_env_CXXCPP_set=${CXXCPP+set}
766ac_env_CXXCPP_value=$CXXCPP
767ac_cv_env_CXXCPP_set=${CXXCPP+set}
768ac_cv_env_CXXCPP_value=$CXXCPP
769
770#
771# Report the --help message.
772#
773if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
776 cat <<_ACEOF
777\`configure' configures this package to adapt to many kinds of systems.
778
779Usage: $0 [OPTION]... [VAR=VALUE]...
780
781To assign environment variables (e.g., CC, CFLAGS...), specify them as
782VAR=VALUE. See below for descriptions of some of the useful variables.
783
784Defaults for the options are specified in brackets.
785
786Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
796
797_ACEOF
798
799 cat <<_ACEOF
800Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
805
806By default, \`make install' will install all the files in
807\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809for instance \`--prefix=\$HOME'.
810
811For better control, use the options below.
812
813Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
826_ACEOF
827
828 cat <<\_ACEOF
829
830X features:
831 --x-includes=DIR X include files are in DIR
832 --x-libraries=DIR X library files are in DIR
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-gui use GUI classes
849 --enable-universal use wxWindows GUI controls instead of native ones
850 --enable-nanox use NanoX
851 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
852 --enable-shared create shared library code
853 --enable-soname set the DT_SONAME field in ELF shared libraries
854 --enable-optimise create optimised code
855 --enable-debug same as debug_flag and debug_info
856 --enable-precomp enable use of precompiled headers (Mac OS X)
857 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
858 --enable-debug_info create code with debugging information
859 --enable-debug_gdb create code with extra GDB debugging information
860 --enable-debug_cntxt use wxDebugContext
861 --enable-mem_tracing create code with memory tracing
862 --enable-profile create code with profiling information
863 --enable-no_rtti create code without RTTI information
864 --enable-no_exceptions create code without C++ exceptions handling
865 --enable-permissive compile code disregarding strict ANSI
866 --enable-no_deps create code without dependency information
867 --enable-compat20 enable wxWindows 2.0 compatibility
868 --disable-compat22 disable wxWindows 2.2 compatibility
869 --enable-rpath=DIR output the rpath flag from wx-config
870 --enable-intl use internationalization system
871 --enable-config use wxConfig (and derived) classes
872 --enable-protocols use wxProtocol and derived classes
873 --enable-ftp use wxFTP (requires wxProtocol
874 --enable-http use wxHTTP (requires wxProtocol
875 --enable-fileproto use wxFileProto class (requires wxProtocol
876 --enable-sockets use socket/network classes
877 --enable-ipc use interprocess communication (wxSocket etc.)
878 --enable-cmdline use wxCmdLineParser class
879 --enable-datetime use wxDateTime class
880 --enable-timedate use obsolete wxDate/wxTime classes
881 --enable-stopwatch use wxStopWatch class
882 --enable-dialupman use dialup network classes
883 --enable-apple_ieee use the Apple IEEE codec
884 --enable-timer use wxTimer class
885 --enable-wave use wxWave class
886 --enable-fraction use wxFraction class
887 --enable-dynlib use wxLibrary class for DLL loading
888 --enable-dynamicloader use (new) wxDynamicLibrary class
889 --enable-longlong use wxLongLong class
890 --enable-geometry use geometry class
891 --enable-log use logging system
892 --enable-streams use wxStream etc classes
893 --enable-file use wxFile classes
894 --enable-ffile use wxFFile classes
895 --enable-textbuf use wxTextBuffer class
896 --enable-textfile use wxTextFile class
897 --enable-fontmap use font encodings conversion classes
898 --enable-unicode compile wxString with Unicode support
899 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
900 --enable-wxprintfv use wxWindows implementation of vprintf()
901 --enable-std_iostreams use standard C++ stream classes
902 --enable-filesystem use virtual file systems classes
903 --enable-fs_inet use virtual HTTP/FTP filesystems
904 --enable-fs_zip use virtual ZIP filesystems
905 --enable-zipstream use wxZipInputStream
906 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
907 --enable-snglinst use wxSingleInstanceChecker class
908 --enable-mimetype use wxMimeTypesManager
909 --enable-sysoptions use wxSystemOptions
910 --enable-url use wxURL class
911 --enable-protocol use wxProtocol class
912 --enable-protocol-http HTTP support in wxProtocol
913 --enable-protocol-ftp FTP support in wxProtocol
914 --enable-protocol-file FILE support in wxProtocol
915 --enable-threads use threads
916 --enable-docview use document view architecture
917 --enable-help use help subsystem
918 --enable-mshtmlhelp use MS HTML Help (win32)
919 --enable-html use wxHTML sub-library
920 --enable-htmlhelp use wxHTML-based help
921 --enable-constraints use layout-constraints system
922 --enable-printarch use printing architecture
923 --enable-mdi use multiple document interface architecture
924 --enable-loggui use standard GUI logger
925 --enable-logwin use wxLogWindow
926 --enable-logdialog use wxLogDialog
927 --enable-postscript use wxPostscriptDC device context (default for gtk+)
928 --enable-prologio use Prolog IO library
929 --enable-resources use wxWindows resources
930 --enable-xresources use X resources for save (default for gtk+)
931 --enable-clipboard use wxClipboard classes
932 --enable-dnd use Drag'n'Drop classes
933 --enable-metafile use win32 metafiles
934 --enable-treelayout use wxTreeLayout classes
935 --enable-controls use all usual controls
936 --enable-accel use accelerators
937 --enable-button use wxButton class
938 --enable-bmpbutton use wxBitmapButton class
939 --enable-calendar use wxCalendarCtrl class
940 --enable-caret use wxCaret class
941 --enable-checkbox use wxCheckBox class
942 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
943 --enable-choice use wxChoice class
944 --enable-combobox use wxComboBox classes
945 --enable-gauge use wxGauge class
946 --enable-grid use wxGrid class
947 --enable-newgrid use new wxGrid class
948 --enable-imaglist use wxImageList class
949 --enable-listbox use wxListBox class
950 --enable-listctrl use wxListCtrl class
951 --enable-notebook use wxNotebook class
952 --enable-propsheet use wxPropertySheet class
953 --enable-radiobox use wxRadioBox class
954 --enable-radiobtn use wxRadioButton class
955 --enable-sash use wxSashWindow class
956 --enable-scrollbar use wxScrollBar class and scrollable windows
957 --enable-slider use wxSlider class
958 --enable-spinbtn use wxSpinButton class
959 --enable-spinctrl use wxSpinCtrl class
960 --enable-splitter use wxSplitterWindow class
961 --enable-statbmp use wxStaticBitmap class
962 --enable-statbox use wxStaticBox class
963 --enable-statline use wxStaticLine class
964 --enable-stattext use wxStaticText class
965 --enable-statusbar use wxStatusBar class
966 --enable-tabdialog use wxTabControl class
967 --enable-textctrl use wxTextCtrl class
968 --enable-togglebtn use wxToggleButton class
969 --enable-toolbar use wxToolBar class
970 --enable-tbarnative use native wxToolBar class
971 --enable-tbarsmpl use wxToolBarSimple class
972 --enable-treectrl use wxTreeCtrl class
973 --enable-tipwindow use wxTipWindow class
974 --enable-popupwin use wxPopUpWindow class
975 --enable-commondlg use all common dialogs
976 --enable-choicedlg use wxChoiceDialog
977 --enable-coldlg use wxColourDialog
978 --enable-filedlg use wxFileDialog
979 --enable-finddlg use wxFindReplaceDialog
980 --enable-fontdlg use wxFontDialog
981 --enable-dirdlg use wxDirDialog
982 --enable-msgdlg use wxMessageDialog
983 --enable-numberdlg use wxNumberEntryDialog
984 --enable-splash use wxSplashScreen
985 --enable-textdlg use wxTextDialog
986 --enable-tipdlg use startup tips
987 --enable-progressdlg use wxProgressDialog
988 --enable-wizarddlg use wxWizard
989 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
990 --enable-miniframe use wxMiniFrame class
991 --enable-tooltips use wxToolTip class
992 --enable-splines use spline drawing code
993 --enable-validators use wxValidator and derived classes
994 --enable-busyinfo use wxBusyInfo
995 --enable-joystick use wxJoystick (Linux only)
996 --enable-metafiles use wxMetaFile (Windows only)
997 --enable-dragimage use wxDragImage
998 --enable-palette use wxPalette class
999 --enable-image use wxImage class
1000 --enable-gif use gif images (GIF file format)
1001 --enable-pcx use pcx images (PCX file format)
1002 --enable-iff use iff images (IFF file format)
1003 --enable-pnm use pnm images (PNM file format)
1004 --enable-xpm use xpm images (XPM file format)
1005 --enable-icocur use Windows ICO and CUR formats
1006 --disable-largefile omit support for large files
1007 --disable-gtktest do not try to compile and run a test GTK+ program
1008 --disable-gtktest Do not try to compile and run a test GTK program
1009
1010Optional Packages:
1011 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1012 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1013 --with-gtk use GTK+
1014 --with-motif use Motif/Lesstif
1015 --with-mac use Mac OS X
1016 --with-wine use WINE
1017 --with-msw use MS-Windows
1018 --with-pm use OS/2 Presentation Manager
1019 --with-mgl use SciTech MGL
1020 --with-microwin use MicroWindows
1021 --with-x11 use X11
1022 --with-libpng use libpng (PNG image format)
1023 --with-libjpeg use libjpeg (JPEG file format)
1024 --with-libtiff use libtiff (TIFF file format)
1025 --with-opengl use OpenGL (or Mesa)
1026 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1027 --with-regex enable support for wxRegEx class
1028 --with-zlib use zlib for LZW compression
1029 --with-odbc use the IODBC and wxODBC classes
1030 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1031 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1032 --with-x use the X Window System
1033 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1034
1035Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1042 CPP C preprocessor
1043 CXX C++ compiler command
1044 CXXFLAGS C++ compiler flags
1045 CXXCPP C++ preprocessor
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
1059
1060if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064else
1065 ac_dir_suffix= ac_top_builddir=
1066fi
1067
1068case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082esac
1083# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1084# absolute.
1085ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1086ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1087ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1088ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1089
1090 cd $ac_dir
1091 # Check for guested configure; otherwise get Cygnus style configure.
1092 if test -f $ac_srcdir/configure.gnu; then
1093 echo
1094 $SHELL $ac_srcdir/configure.gnu --help=recursive
1095 elif test -f $ac_srcdir/configure; then
1096 echo
1097 $SHELL $ac_srcdir/configure --help=recursive
1098 elif test -f $ac_srcdir/configure.ac ||
1099 test -f $ac_srcdir/configure.in; then
1100 echo
1101 $ac_configure --help
1102 else
1103 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1104 fi
1105 cd $ac_popdir
1106 done
1107fi
1108
1109test -n "$ac_init_help" && exit 0
1110if $ac_init_version; then
1111 cat <<\_ACEOF
1112
1113Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1114Free Software Foundation, Inc.
1115This configure script is free software; the Free Software Foundation
1116gives unlimited permission to copy, distribute and modify it.
1117_ACEOF
1118 exit 0
1119fi
1120exec 5>config.log
1121cat >&5 <<_ACEOF
1122This file contains any messages produced by compilers while
1123running configure, to aid debugging if configure makes a mistake.
1124
1125It was created by $as_me, which was
1126generated by GNU Autoconf 2.53. Invocation command line was
1127
1128 $ $0 $@
1129
1130_ACEOF
1131{
1132cat <<_ASUNAME
1133## --------- ##
1134## Platform. ##
1135## --------- ##
1136
1137hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1138uname -m = `(uname -m) 2>/dev/null || echo unknown`
1139uname -r = `(uname -r) 2>/dev/null || echo unknown`
1140uname -s = `(uname -s) 2>/dev/null || echo unknown`
1141uname -v = `(uname -v) 2>/dev/null || echo unknown`
1142
1143/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1144/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1145
1146/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1147/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1148/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1149hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1150/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1151/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1152/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1153
1154_ASUNAME
1155
1156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1157for as_dir in $PATH
1158do
1159 IFS=$as_save_IFS
1160 test -z "$as_dir" && as_dir=.
1161 echo "PATH: $as_dir"
1162done
1163
1164} >&5
1165
1166cat >&5 <<_ACEOF
1167
1168
1169## ----------- ##
1170## Core tests. ##
1171## ----------- ##
1172
1173_ACEOF
1174
328a083c 1175
247f5006
VZ
1176# Keep a trace of the command line.
1177# Strip out --no-create and --no-recursion so they do not pile up.
1178# Also quote any args containing shell meta-characters.
1179ac_configure_args=
1180ac_sep=
1181for ac_arg
1182do
1183 case $ac_arg in
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n ) continue ;;
1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 continue ;;
1189 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1190 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1191 esac
1192 case " $ac_configure_args " in
1193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1194 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1195 ac_sep=" " ;;
1196 esac
1197 # Get rid of the leading space.
1198done
1199
1200# When interrupted or exit'd, cleanup temporary files, and complete
1201# config.log. We remove comments because anyway the quotes in there
1202# would cause problems or look ugly.
1203# WARNING: Be sure not to use single quotes in there, as some shells,
1204# such as our DU 5.0 friend, will then `close' the trap.
1205trap 'exit_status=$?
1206 # Save into config.log some information that might help in debugging.
1207 {
1208 echo
1209 cat <<\_ASBOX
1210## ---------------- ##
1211## Cache variables. ##
1212## ---------------- ##
1213_ASBOX
1214 echo
1215 # The following way of writing the cache mishandles newlines in values,
1216{
1217 (set) 2>&1 |
1218 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1219 *ac_space=\ *)
1220 sed -n \
1221 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1223 ;;
1224 *)
1225 sed -n \
1226 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1227 ;;
1228 esac;
1229}
1230 echo
1231 if test -s confdefs.h; then
1232 cat <<\_ASBOX
1233## ----------- ##
1234## confdefs.h. ##
1235## ----------- ##
1236_ASBOX
1237 echo
1238 sed "/^$/d" confdefs.h
1239 echo
1240 fi
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1244 } >&5
1245 rm -f core core.* *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247 exit $exit_status
1248 ' 0
1249for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251done
1252ac_signal=0
1253
1254# confdefs.h avoids OS command line length limits that DEFS can exceed.
1255rm -rf conftest* confdefs.h
1256# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257echo >confdefs.h
1258
1259# Predefined preprocessor variables.
1260
1261cat >>confdefs.h <<_ACEOF
1262#define PACKAGE_NAME "$PACKAGE_NAME"
1263_ACEOF
1264
1265
1266cat >>confdefs.h <<_ACEOF
1267#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268_ACEOF
1269
1270
1271cat >>confdefs.h <<_ACEOF
1272#define PACKAGE_VERSION "$PACKAGE_VERSION"
1273_ACEOF
1274
1275
1276cat >>confdefs.h <<_ACEOF
1277#define PACKAGE_STRING "$PACKAGE_STRING"
1278_ACEOF
1279
1280
1281cat >>confdefs.h <<_ACEOF
1282#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283_ACEOF
1284
1285
1286# Let the site file select an alternate cache file if it wants to.
10f2d63a
VZ
1287# Prefer explicitly selected file to automatically selected ones.
1288if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291 else
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293 fi
1294fi
1295for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
247f5006
VZ
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
10f2d63a
VZ
1300 . "$ac_site_file"
1301 fi
1302done
1303
1304if test -r "$cache_file"; then
247f5006
VZ
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309echo "$as_me: loading cache $cache_file" >&6;}
1310 case $cache_file in
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1313 esac
1314 fi
10f2d63a 1315else
247f5006
VZ
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317echo "$as_me: creating cache $cache_file" >&6;}
1318 >$cache_file
1319fi
1320
1321# Check that the precious variables saved in the cache have kept the same
1322# value.
1323ac_cache_corrupted=false
1324for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1331 set,)
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1335 ,set)
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1339 ,);;
1340 *)
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1349 fi;;
1350 esac
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1353 case $ac_new_val in
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1357 esac
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361 esac
1362 fi
1363done
1364if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
10f2d63a
VZ
1370fi
1371
1372ac_ext=c
10f2d63a 1373ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
1374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
8284b0c5
MB
1393
1394
10f2d63a 1395
7c66a493
VZ
1396ac_aux_dir=
1397for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1398 if test -f $ac_dir/install-sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1401 break
1402 elif test -f $ac_dir/install.sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1405 break
247f5006
VZ
1406 elif test -f $ac_dir/shtool; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1409 break
1410 fi
7c66a493
VZ
1411done
1412if test -z "$ac_aux_dir"; then
247f5006
VZ
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415 { (exit 1); exit 1; }; }
7c66a493 1416fi
247f5006
VZ
1417ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
698dcdb6 1420
247f5006
VZ
1421# Make sure we can run config.sub.
1422$ac_config_sub sun4 >/dev/null 2>&1 ||
1423 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1424echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427echo "$as_me:$LINENO: checking build system type" >&5
1428echo $ECHO_N "checking build system type... $ECHO_C" >&6
1429if test "${ac_cv_build+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431else
1432 ac_cv_build_alias=$build_alias
1433test -z "$ac_cv_build_alias" &&
1434 ac_cv_build_alias=`$ac_config_guess`
1435test -z "$ac_cv_build_alias" &&
1436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1437echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1438 { (exit 1); exit 1; }; }
1439ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1441echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1443
1444fi
1445echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1446echo "${ECHO_T}$ac_cv_build" >&6
1447build=$ac_cv_build
1448build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451
1452
1453echo "$as_me:$LINENO: checking host system type" >&5
1454echo $ECHO_N "checking host system type... $ECHO_C" >&6
1455if test "${ac_cv_host+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457else
1458 ac_cv_host_alias=$host_alias
1459test -z "$ac_cv_host_alias" &&
1460 ac_cv_host_alias=$ac_cv_build_alias
1461ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1463echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1465
1466fi
1467echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1468echo "${ECHO_T}$ac_cv_host" >&6
1469host=$ac_cv_host
1470host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473
1474
1475echo "$as_me:$LINENO: checking target system type" >&5
1476echo $ECHO_N "checking target system type... $ECHO_C" >&6
1477if test "${ac_cv_target+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 ac_cv_target_alias=$target_alias
1481test "x$ac_cv_target_alias" = "x" &&
1482 ac_cv_target_alias=$ac_cv_host_alias
1483ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1485echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1486 { (exit 1); exit 1; }; }
1487
1488fi
1489echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1490echo "${ECHO_T}$ac_cv_target" >&6
1491target=$ac_cv_target
1492target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1493target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1494target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8284b0c5 1495
7c66a493
VZ
1496
1497# The aliases save the names the user supplied, while $host etc.
1498# will get canonicalized.
247f5006 1499test -n "$target_alias" &&
7c66a493
VZ
1500 test "$program_prefix$program_suffix$program_transform_name" = \
1501 NONENONEs,x,x, &&
1502 program_prefix=${target_alias}-
8284b0c5
MB
1503
1504
10f2d63a 1505WX_MAJOR_VERSION_NUMBER=2
37d403aa 1506WX_MINOR_VERSION_NUMBER=3
a0d927d1 1507WX_RELEASE_NUMBER=3
10f2d63a 1508
10f2d63a 1509WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1510WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1511
978f1259
RL
1512WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1513
a0d927d1 1514WX_CURRENT=2
6426998c
RL
1515WX_REVISION=0
1516WX_AGE=0
1517
8284b0c5
MB
1518
1519
10f2d63a
VZ
1520USE_UNIX=1
1521USE_WIN32=0
f9bc1684 1522USE_DOS=0
b12915c1 1523USE_BEOS=0
1216f52d 1524USE_MAC=0
b12915c1 1525
10f2d63a
VZ
1526USE_LINUX=
1527USE_SGI=
1528USE_HPUX=
1529USE_SYSV=
1530USE_SVR4=
1531USE_AIX=
1532USE_SUN=
1533USE_SOLARIS=
1534USE_SUNOS=
1535USE_ALPHA=
1536USE_OSF=
1537USE_BSD=
f11bdd03 1538USE_DARWIN=
10f2d63a 1539USE_FREEBSD=
95c8801c 1540USE_OPENBSD=
f6bcfd97 1541USE_NETBSD=
10f2d63a
VZ
1542USE_VMS=
1543USE_ULTRIX=
10f2d63a
VZ
1544USE_DATA_GENERAL=
1545
ab9b9eab
VZ
1546NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1547
f79bd02d 1548ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1549
1550DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1551DEFAULT_wxUSE_MAC=0
1552DEFAULT_wxUSE_MGL=0
1725144d 1553DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1554DEFAULT_wxUSE_MOTIF=0
1555DEFAULT_wxUSE_MSW=0
e07802fc 1556DEFAULT_wxUSE_PM=0
1e6feb95 1557DEFAULT_wxUSE_WINE=0
f79bd02d 1558DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1559
1560DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1561DEFAULT_DEFAULT_wxUSE_MAC=0
1562DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1563DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1564DEFAULT_DEFAULT_wxUSE_MOTIF=0
1565DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1566DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1567DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1568DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1569
d6a55c4b 1570PROGRAM_EXT=
3a922bb4 1571SO_SUFFIX=so
d6a55c4b 1572
10f2d63a
VZ
1573case "${host}" in
1574 *-hp-hpux* )
1575 USE_HPUX=1
1576 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1577 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1578 SO_SUFFIX=sl
247f5006 1579 cat >>confdefs.h <<\_ACEOF
10f2d63a 1580#define __HPUX__ 1
247f5006 1581_ACEOF
10f2d63a
VZ
1582
1583 ;;
1584 *-*-linux* )
1585 USE_LINUX=1
247f5006 1586 cat >>confdefs.h <<\_ACEOF
10f2d63a 1587#define __LINUX__ 1
247f5006 1588_ACEOF
10f2d63a
VZ
1589
1590 TMP=`uname -m`
1591 if test "x$TMP" = "xalpha"; then
1592 USE_ALPHA=1
247f5006 1593 cat >>confdefs.h <<\_ACEOF
10f2d63a 1594#define __ALPHA__ 1
247f5006 1595_ACEOF
10f2d63a
VZ
1596
1597 fi
1598 DEFAULT_DEFAULT_wxUSE_GTK=1
1599 ;;
1600 *-*-irix5* | *-*-irix6* )
1601 USE_SGI=1
1602 USE_SVR4=1
247f5006 1603 cat >>confdefs.h <<\_ACEOF
10f2d63a 1604#define __SGI__ 1
247f5006 1605_ACEOF
10f2d63a 1606
247f5006 1607 cat >>confdefs.h <<\_ACEOF
10f2d63a 1608#define __SVR4__ 1
247f5006 1609_ACEOF
10f2d63a
VZ
1610
1611 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1612 ;;
1613 *-*-solaris2* )
1614 USE_SUN=1
1615 USE_SOLARIS=1
1616 USE_SVR4=1
247f5006 1617 cat >>confdefs.h <<\_ACEOF
10f2d63a 1618#define __SUN__ 1
247f5006 1619_ACEOF
10f2d63a 1620
247f5006 1621 cat >>confdefs.h <<\_ACEOF
10f2d63a 1622#define __SOLARIS__ 1
247f5006 1623_ACEOF
10f2d63a 1624
247f5006 1625 cat >>confdefs.h <<\_ACEOF
10f2d63a 1626#define __SVR4__ 1
247f5006 1627_ACEOF
10f2d63a
VZ
1628
1629 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1630 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1631 ;;
1632 *-*-sunos4* )
1633 USE_SUN=1
1634 USE_SUNOS=1
1635 USE_BSD=1
247f5006 1636 cat >>confdefs.h <<\_ACEOF
10f2d63a 1637#define __SUN__ 1
247f5006 1638_ACEOF
10f2d63a 1639
247f5006 1640 cat >>confdefs.h <<\_ACEOF
10f2d63a 1641#define __SUNOS__ 1
247f5006 1642_ACEOF
10f2d63a 1643
247f5006 1644 cat >>confdefs.h <<\_ACEOF
10f2d63a 1645#define __BSD__ 1
247f5006 1646_ACEOF
10f2d63a
VZ
1647
1648 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1649 ;;
f6bcfd97 1650 *-*-freebsd*)
10f2d63a
VZ
1651 USE_BSD=1
1652 USE_FREEBSD=1
247f5006 1653 cat >>confdefs.h <<\_ACEOF
10f2d63a 1654#define __FREEBSD__ 1
247f5006 1655_ACEOF
10f2d63a 1656
247f5006 1657 cat >>confdefs.h <<\_ACEOF
10f2d63a 1658#define __BSD__ 1
247f5006 1659_ACEOF
95c8801c
VS
1660
1661 DEFAULT_DEFAULT_wxUSE_GTK=1
1662 ;;
1663 *-*-openbsd*)
1664 USE_BSD=1
1665 USE_OPENBSD=1
247f5006 1666 cat >>confdefs.h <<\_ACEOF
95c8801c 1667#define __FREEBSD__ 1
247f5006 1668_ACEOF
95c8801c 1669
247f5006 1670 cat >>confdefs.h <<\_ACEOF
95c8801c 1671#define __OPENBSD__ 1
247f5006 1672_ACEOF
f6bcfd97
BP
1673
1674 DEFAULT_DEFAULT_wxUSE_GTK=1
1675 ;;
1676 *-*-netbsd*)
1677 USE_BSD=1
1678 USE_NETBSD=1
247f5006 1679 cat >>confdefs.h <<\_ACEOF
f6bcfd97 1680#define __FREEBSD__ 1
247f5006 1681_ACEOF
f6bcfd97 1682
247f5006 1683 cat >>confdefs.h <<\_ACEOF
f6bcfd97 1684#define __NETBSD__ 1
247f5006 1685_ACEOF
10f2d63a
VZ
1686
1687 DEFAULT_DEFAULT_wxUSE_GTK=1
1688 ;;
1689 *-*-osf* )
1690 USE_ALPHA=1
1691 USE_OSF=1
247f5006 1692 cat >>confdefs.h <<\_ACEOF
10f2d63a 1693#define __ALPHA__ 1
247f5006 1694_ACEOF
10f2d63a 1695
247f5006 1696 cat >>confdefs.h <<\_ACEOF
10f2d63a 1697#define __OSF__ 1
247f5006 1698_ACEOF
10f2d63a
VZ
1699
1700 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1701 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1702 ;;
1703 *-*-dgux5* )
1704 USE_ALPHA=1
1705 USE_SVR4=1
247f5006 1706 cat >>confdefs.h <<\_ACEOF
10f2d63a 1707#define __ALPHA__ 1
247f5006 1708_ACEOF
10f2d63a 1709
247f5006 1710 cat >>confdefs.h <<\_ACEOF
10f2d63a 1711#define __SVR4__ 1
247f5006 1712_ACEOF
10f2d63a
VZ
1713
1714 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1715 ;;
1716 *-*-sysv5* )
1717 USE_SYSV=1
1718 USE_SVR4=1
247f5006 1719 cat >>confdefs.h <<\_ACEOF
10f2d63a 1720#define __SYSV__ 1
247f5006 1721_ACEOF
10f2d63a 1722
247f5006 1723 cat >>confdefs.h <<\_ACEOF
10f2d63a 1724#define __SVR4__ 1
247f5006 1725_ACEOF
10f2d63a
VZ
1726
1727 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1728 ;;
1729 *-*-aix* )
1730 USE_AIX=1
1731 USE_SYSV=1
1732 USE_SVR4=1
321d2b14 1733 SO_SUFFIX=a
247f5006 1734 cat >>confdefs.h <<\_ACEOF
10f2d63a 1735#define __AIX__ 1
247f5006 1736_ACEOF
10f2d63a 1737
247f5006 1738 cat >>confdefs.h <<\_ACEOF
10f2d63a 1739#define __SYSV__ 1
247f5006 1740_ACEOF
10f2d63a 1741
247f5006 1742 cat >>confdefs.h <<\_ACEOF
10f2d63a 1743#define __SVR4__ 1
247f5006 1744_ACEOF
10f2d63a
VZ
1745
1746 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1747 ;;
1748
1c8183e2 1749 *-*-cygwin* | *-*-mingw32* )
17234b26 1750 SO_SUFFIX=dll
cf27ef00 1751 PROGRAM_EXT=".exe"
7b7a7637 1752 RESCOMP=windres
10f2d63a
VZ
1753 DEFAULT_DEFAULT_wxUSE_MSW=1
1754 ;;
1755
f9bc1684
VS
1756 *-pc-msdosdjgpp )
1757 USE_UNIX=0
1758 USE_DOS=1
247f5006 1759 cat >>confdefs.h <<\_ACEOF
f9bc1684 1760#define __DOS__ 1
247f5006 1761_ACEOF
f9bc1684
VS
1762
1763 PROGRAM_EXT=".exe"
1764 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1765 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1766 ;;
1767
6fa882bd 1768 *-pc-os2_emx | *-pc-os2-emx )
247f5006 1769 cat >>confdefs.h <<\_ACEOF
10f2d63a 1770#define __EMX__ 1
247f5006 1771_ACEOF
10f2d63a 1772
cf27ef00 1773 PROGRAM_EXT=".exe"
e07802fc 1774 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1775 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1776 ;;
1777
d08b457b
GD
1778 powerpc-*-darwin* )
1779 USE_BSD=1
f11bdd03 1780 USE_DARWIN=1
3a922bb4 1781 SO_SUFFIX=dylib
247f5006 1782 cat >>confdefs.h <<\_ACEOF
f11bdd03 1783#define __BSD__ 1
247f5006 1784_ACEOF
b4085ce6 1785
247f5006 1786 cat >>confdefs.h <<\_ACEOF
f11bdd03 1787#define __DARWIN__ 1
247f5006 1788_ACEOF
d08b457b 1789
247f5006 1790 cat >>confdefs.h <<\_ACEOF
d08b457b 1791#define __POWERPC__ 1
247f5006 1792_ACEOF
b4085ce6
GD
1793
1794 DEFAULT_DEFAULT_wxUSE_MAC=1
1795 ;;
1796
b12915c1
VZ
1797 *-*-beos* )
1798 USE_BEOS=1
247f5006 1799 cat >>confdefs.h <<\_ACEOF
b12915c1 1800#define __BEOS__ 1
247f5006 1801_ACEOF
b12915c1
VZ
1802
1803 ;;
1804
10f2d63a 1805 *)
247f5006
VZ
1806 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1807echo "$as_me: error: unknown system type ${host}." >&2;}
1808 { (exit 1); exit 1; }; }
10f2d63a
VZ
1809esac
1810
8284b0c5
MB
1811
1812
1813
1814 wx_arg_cache_file="configarg.cache"
1815 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1816 rm -f ${wx_arg_cache_file}.tmp
1817 touch ${wx_arg_cache_file}.tmp
1818 touch ${wx_arg_cache_file}
247f5006 1819
10f2d63a
VZ
1820
1821DEBUG_CONFIGURE=0
1822if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1823 DEFAULT_wxUSE_UNIVERSAL=no
1824
d8356fa3
VZ
1825 DEFAULT_wxUSE_NANOX=no
1826
10f2d63a
VZ
1827 DEFAULT_wxUSE_THREADS=yes
1828
1829 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1830 DEFAULT_wxUSE_SONAME=no
1e6feb95 1831 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1832 DEFAULT_wxUSE_PROFILE=no
1833 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1834 DEFAULT_wxUSE_NO_RTTI=no
1835 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1836 DEFAULT_wxUSE_PERMISSIVE=no
1837 DEFAULT_wxUSE_DEBUG_FLAG=yes
1838 DEFAULT_wxUSE_DEBUG_INFO=yes
1839 DEFAULT_wxUSE_DEBUG_GDB=yes
1840 DEFAULT_wxUSE_MEM_TRACING=no
1841 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1842 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1843 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1844 DEFAULT_wxUSE_APPLE_IEEE=no
1845
1846 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1847 DEFAULT_wxUSE_LOGWINDOW=no
1848 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1849 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1850
1851 DEFAULT_wxUSE_GUI=yes
1e6feb95 1852 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1853
3e44f09d 1854 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1855 DEFAULT_wxUSE_ZLIB=no
1856 DEFAULT_wxUSE_LIBPNG=no
1857 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1858 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1859 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1860 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1861
eb4efbdc 1862 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1863 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1864 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1865 DEFAULT_wxUSE_CMDLINE_PARSER=no
1866 DEFAULT_wxUSE_DATETIME=no
1867 DEFAULT_wxUSE_TIMEDATE=no
1868 DEFAULT_wxUSE_TIMER=no
1869 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1870 DEFAULT_wxUSE_FILE=no
1e6feb95 1871 DEFAULT_wxUSE_FFILE=no
a3a584a7 1872 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1873 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1874 DEFAULT_wxUSE_WAVE=no
1875 DEFAULT_wxUSE_INTL=no
1876 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1877 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1878 DEFAULT_wxUSE_STREAMS=no
1879 DEFAULT_wxUSE_SOCKETS=no
1880 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1881 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1882 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1883 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1884 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1885 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1886
1887 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1888 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1889 DEFAULT_wxUSE_POSTSCRIPT=no
1890
1891 DEFAULT_wxUSE_X_RESOURCES=no
1892 DEFAULT_wxUSE_CLIPBOARD=no
1893 DEFAULT_wxUSE_TOOLTIPS=no
1894 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1895 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1896 DEFAULT_wxUSE_SPLINES=no
1897
1898 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1899 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1900 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1901
1902 DEFAULT_wxUSE_PROLOGIO=no
1903 DEFAULT_wxUSE_RESOURCES=no
1904 DEFAULT_wxUSE_CONSTRAINTS=no
1905 DEFAULT_wxUSE_IPC=no
1906 DEFAULT_wxUSE_HELP=no
29fd3c0c 1907 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1908 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1909 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1910 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1911 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1912 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1913 DEFAULT_wxUSE_PROTOCOL=no
1914 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1915 DEFAULT_wxUSE_PROTOCOL_FTP=no
1916 DEFAULT_wxUSE_PROTOCOL_FILE=no
1917 DEFAULT_wxUSE_URL=no
3bd8fb5f 1918
10f2d63a 1919 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1920 DEFAULT_wxUSE_CHOICEDLG=no
1921 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1922 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1923 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1924 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1925 DEFAULT_wxUSE_FONTDLG=no
1926 DEFAULT_wxUSE_MSGDLG=no
1927 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1928 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1929 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1930 DEFAULT_wxUSE_STARTUP_TIPS=no
1931 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1932 DEFAULT_wxUSE_WIZARDDLG=no
1933
1e6feb95 1934 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1935 DEFAULT_wxUSE_MINIFRAME=no
1936 DEFAULT_wxUSE_HTML=no
24528b0c 1937 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1938 DEFAULT_wxUSE_FS_INET=no
1939 DEFAULT_wxUSE_FS_ZIP=no
1940 DEFAULT_wxUSE_BUSYINFO=no
1941 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1942 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1943
1944 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1945 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1946 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1947 DEFAULT_wxUSE_CALCTRL=no
1948 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1949 DEFAULT_wxUSE_CHECKBOX=no
1950 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1951 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1952 DEFAULT_wxUSE_COMBOBOX=no
1953 DEFAULT_wxUSE_GAUGE=no
1954 DEFAULT_wxUSE_GRID=no
1955 DEFAULT_wxUSE_NEW_GRID=no
1956 DEFAULT_wxUSE_IMAGLIST=no
1957 DEFAULT_wxUSE_LISTBOX=no
1958 DEFAULT_wxUSE_LISTCTRL=no
1959 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1960 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1961 DEFAULT_wxUSE_RADIOBOX=no
1962 DEFAULT_wxUSE_RADIOBTN=no
1963 DEFAULT_wxUSE_SASH=no
1964 DEFAULT_wxUSE_SCROLLBAR=no
1965 DEFAULT_wxUSE_SLIDER=no
1966 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1967 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1968 DEFAULT_wxUSE_SPLITTER=no
1969 DEFAULT_wxUSE_STATBMP=no
1970 DEFAULT_wxUSE_STATBOX=no
1971 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1972 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1973 DEFAULT_wxUSE_STATUSBAR=yes
1974 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1975 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1976 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1977 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1978 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1979 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1980 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1981 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1982 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1983
1984 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1985 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1986 DEFAULT_wxUSE_WCSRTOMBS=no
1987
edae8572 1988 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1989 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1990 DEFAULT_wxUSE_GIF=no
1991 DEFAULT_wxUSE_PCX=no
1992 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1993 DEFAULT_wxUSE_IFF=no
0046ff7c 1994 DEFAULT_wxUSE_XPM=no
658974ae 1995 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1996else
1e6feb95
VZ
1997 DEFAULT_wxUSE_UNIVERSAL=no
1998
d8356fa3
VZ
1999 DEFAULT_wxUSE_NANOX=no
2000
10f2d63a
VZ
2001 DEFAULT_wxUSE_THREADS=yes
2002
2003 DEFAULT_wxUSE_SHARED=yes
3a922bb4 2004 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
2005 DEFAULT_wxUSE_OPTIMISE=yes
2006 DEFAULT_wxUSE_PROFILE=no
2007 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2008 DEFAULT_wxUSE_NO_RTTI=no
2009 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2010 DEFAULT_wxUSE_PERMISSIVE=no
2011 DEFAULT_wxUSE_DEBUG_FLAG=no
2012 DEFAULT_wxUSE_DEBUG_INFO=no
2013 DEFAULT_wxUSE_DEBUG_GDB=no
2014 DEFAULT_wxUSE_MEM_TRACING=no
2015 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2016 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 2017 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
2018 DEFAULT_wxUSE_APPLE_IEEE=yes
2019
2020 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2021 DEFAULT_wxUSE_LOGWINDOW=yes
2022 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2023 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2024
2025 DEFAULT_wxUSE_GUI=yes
2026
831b3152 2027 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
2028 DEFAULT_wxUSE_ZLIB=yes
2029 DEFAULT_wxUSE_LIBPNG=yes
2030 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2031 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2032 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2033 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2034
eb4efbdc 2035 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2036 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2037 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2038 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2039 DEFAULT_wxUSE_DATETIME=yes
2040 DEFAULT_wxUSE_TIMEDATE=no
2041 DEFAULT_wxUSE_TIMER=yes
2042 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2043 DEFAULT_wxUSE_FILE=yes
1e6feb95 2044 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2045 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2046 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2047 DEFAULT_wxUSE_WAVE=no
2048 DEFAULT_wxUSE_INTL=yes
2049 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2050 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2051 DEFAULT_wxUSE_STREAMS=yes
2052 DEFAULT_wxUSE_SOCKETS=yes
2053 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2054 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2055 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2056 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2057 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2058 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2059
2060 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2061 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2062 DEFAULT_wxUSE_POSTSCRIPT=yes
2063
2064 DEFAULT_wxUSE_X_RESOURCES=no
2065 DEFAULT_wxUSE_CLIPBOARD=yes
2066 DEFAULT_wxUSE_TOOLTIPS=yes
2067 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2068 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2069 DEFAULT_wxUSE_SPLINES=yes
2070
2071 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2072 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2073 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2074
2075 DEFAULT_wxUSE_PROLOGIO=yes
2076 DEFAULT_wxUSE_RESOURCES=yes
2077 DEFAULT_wxUSE_CONSTRAINTS=yes
2078 DEFAULT_wxUSE_IPC=yes
2079 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2080 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2081 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2082 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2083 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2084 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2085 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2086 DEFAULT_wxUSE_PROTOCOL=yes
2087 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2088 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2089 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2090 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2091
2092 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2093 DEFAULT_wxUSE_CHOICEDLG=yes
2094 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2095 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2096 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2097 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2098 DEFAULT_wxUSE_FONTDLG=yes
2099 DEFAULT_wxUSE_MSGDLG=yes
2100 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2101 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2102 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2103 DEFAULT_wxUSE_STARTUP_TIPS=yes
2104 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2105 DEFAULT_wxUSE_WIZARDDLG=yes
2106
1e6feb95 2107 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2108 DEFAULT_wxUSE_MINIFRAME=yes
2109 DEFAULT_wxUSE_HTML=yes
24528b0c 2110 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2111 DEFAULT_wxUSE_FS_INET=yes
2112 DEFAULT_wxUSE_FS_ZIP=yes
2113 DEFAULT_wxUSE_BUSYINFO=yes
2114 DEFAULT_wxUSE_ZIPSTREAM=yes
2115 DEFAULT_wxUSE_VALIDATORS=yes
2116
2117 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2118 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2119 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2120 DEFAULT_wxUSE_CALCTRL=yes
2121 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2122 DEFAULT_wxUSE_CHECKBOX=yes
2123 DEFAULT_wxUSE_CHECKLST=yes
2124 DEFAULT_wxUSE_CHOICE=yes
2125 DEFAULT_wxUSE_COMBOBOX=yes
2126 DEFAULT_wxUSE_GAUGE=yes
2127 DEFAULT_wxUSE_GRID=yes
cc977e5f 2128 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
2129 DEFAULT_wxUSE_IMAGLIST=yes
2130 DEFAULT_wxUSE_LISTBOX=yes
2131 DEFAULT_wxUSE_LISTCTRL=yes
2132 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 2133 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
2134 DEFAULT_wxUSE_RADIOBOX=yes
2135 DEFAULT_wxUSE_RADIOBTN=yes
2136 DEFAULT_wxUSE_SASH=yes
2137 DEFAULT_wxUSE_SCROLLBAR=yes
2138 DEFAULT_wxUSE_SLIDER=yes
2139 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2140 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2141 DEFAULT_wxUSE_SPLITTER=yes
2142 DEFAULT_wxUSE_STATBMP=yes
2143 DEFAULT_wxUSE_STATBOX=yes
2144 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2145 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2146 DEFAULT_wxUSE_STATUSBAR=yes
2147 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2148 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2149 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2150 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2151 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2152 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2153 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2154 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2155 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2156
2157 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2158 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2159 DEFAULT_wxUSE_WCSRTOMBS=no
2160
edae8572 2161 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2162 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2163 DEFAULT_wxUSE_GIF=yes
2164 DEFAULT_wxUSE_PCX=yes
cc0e8480 2165 DEFAULT_wxUSE_IFF=no
10f2d63a 2166 DEFAULT_wxUSE_PNM=yes
0046ff7c 2167 DEFAULT_wxUSE_XPM=yes
658974ae 2168 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
2169fi
2170
8284b0c5
MB
2171
2172
10f2d63a 2173for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2174 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2175 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2176 has_toolkit_in_cache=1
2177 eval "DEFAULT_$LINE"
2178 eval "CACHE_$toolkit=1"
2179 fi
2180done
2181
8284b0c5
MB
2182
2183
247f5006
VZ
2184 echo "$as_me:$LINENO: checking for --enable-gui" >&5
2185echo $ECHO_N "checking for --enable-gui... $ECHO_C" >&6
10f2d63a
VZ
2186 no_cache=0
2187 # Check whether --enable-gui or --disable-gui was given.
2188if test "${enable_gui+set}" = set; then
2189 enableval="$enable_gui"
247f5006 2190
10f2d63a
VZ
2191 if test "$enableval" = yes; then
2192 ac_cv_use_gui='wxUSE_GUI=yes'
2193 else
2194 ac_cv_use_gui='wxUSE_GUI=no'
2195 fi
247f5006 2196
10f2d63a 2197else
247f5006 2198
10f2d63a
VZ
2199 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2200 if test "x$LINE" != x ; then
2201 eval "DEFAULT_$LINE"
2202 else
2203 no_cache=1
2204 fi
2205
2206 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2207
247f5006 2208fi;
10f2d63a
VZ
2209
2210 eval "$ac_cv_use_gui"
2211 if test "$no_cache" != 1; then
2212 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2213 fi
2214
2215 if test "$wxUSE_GUI" = yes; then
247f5006
VZ
2216 echo "$as_me:$LINENO: result: yes" >&5
2217echo "${ECHO_T}yes" >&6
10f2d63a 2218 else
247f5006
VZ
2219 echo "$as_me:$LINENO: result: no" >&5
2220echo "${ECHO_T}no" >&6
10f2d63a 2221 fi
247f5006 2222
10f2d63a 2223
b12915c1 2224if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2225
8284b0c5 2226
247f5006
VZ
2227 echo "$as_me:$LINENO: checking for --enable-universal" >&5
2228echo $ECHO_N "checking for --enable-universal... $ECHO_C" >&6
1e6feb95
VZ
2229 no_cache=0
2230 # Check whether --enable-universal or --disable-universal was given.
2231if test "${enable_universal+set}" = set; then
2232 enableval="$enable_universal"
247f5006 2233
1e6feb95
VZ
2234 if test "$enableval" = yes; then
2235 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2236 else
2237 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2238 fi
247f5006 2239
1e6feb95 2240else
247f5006 2241
1e6feb95
VZ
2242 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2243 if test "x$LINE" != x ; then
2244 eval "DEFAULT_$LINE"
2245 else
2246 no_cache=1
2247 fi
2248
2249 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2250
247f5006 2251fi;
1e6feb95
VZ
2252
2253 eval "$ac_cv_use_universal"
2254 if test "$no_cache" != 1; then
2255 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2256 fi
2257
2258 if test "$wxUSE_UNIVERSAL" = yes; then
247f5006
VZ
2259 echo "$as_me:$LINENO: result: yes" >&5
2260echo "${ECHO_T}yes" >&6
1e6feb95 2261 else
247f5006
VZ
2262 echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6
1e6feb95 2264 fi
247f5006
VZ
2265
2266
10f2d63a
VZ
2267# Check whether --with-gtk or --without-gtk was given.
2268if test "${with_gtk+set}" = set; then
2269 withval="$with_gtk"
2270 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
247f5006 2271fi;
10f2d63a
VZ
2272
2273# Check whether --with-motif or --without-motif was given.
2274if test "${with_motif+set}" = set; then
2275 withval="$with_motif"
2276 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
247f5006 2277fi;
10f2d63a 2278
b4085ce6
GD
2279# Check whether --with-mac or --without-mac was given.
2280if test "${with_mac+set}" = set; then
2281 withval="$with_mac"
2282 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
247f5006 2283fi;
b4085ce6 2284
10f2d63a
VZ
2285# Check whether --with-wine or --without-wine was given.
2286if test "${with_wine+set}" = set; then
2287 withval="$with_wine"
2288 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
247f5006 2289fi;
10f2d63a 2290
77e13408
RL
2291# Check whether --with-msw or --without-msw was given.
2292if test "${with_msw+set}" = set; then
2293 withval="$with_msw"
b4efce5e 2294 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
247f5006 2295fi;
10f2d63a 2296
e07802fc
VZ
2297# Check whether --with-pm or --without-pm was given.
2298if test "${with_pm+set}" = set; then
2299 withval="$with_pm"
2300 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
247f5006 2301fi;
698dcdb6 2302
1e6feb95
VZ
2303# Check whether --with-mgl or --without-mgl was given.
2304if test "${with_mgl+set}" = set; then
2305 withval="$with_mgl"
6c657b52 2306 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
247f5006 2307fi;
1e6feb95 2308
1725144d
RR
2309# Check whether --with-microwin or --without-microwin was given.
2310if test "${with_microwin+set}" = set; then
2311 withval="$with_microwin"
2312 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
247f5006 2313fi;
1725144d 2314
f79bd02d
JS
2315# Check whether --with-x11 or --without-x11 was given.
2316if test "${with_x11+set}" = set; then
2317 withval="$with_x11"
3c011993 2318 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
247f5006 2319fi;
10f2d63a 2320
247f5006
VZ
2321 echo "$as_me:$LINENO: checking for --enable-nanox" >&5
2322echo $ECHO_N "checking for --enable-nanox... $ECHO_C" >&6
d8356fa3 2323 no_cache=0
ba875e66
VZ
2324 # Check whether --enable-nanox or --disable-nanox was given.
2325if test "${enable_nanox+set}" = set; then
2326 enableval="$enable_nanox"
247f5006 2327
d8356fa3 2328 if test "$enableval" = yes; then
ba875e66 2329 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2330 else
ba875e66 2331 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2332 fi
247f5006 2333
d8356fa3 2334else
247f5006 2335
d8356fa3
VZ
2336 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2337 if test "x$LINE" != x ; then
2338 eval "DEFAULT_$LINE"
2339 else
2340 no_cache=1
2341 fi
2342
ba875e66 2343 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2344
247f5006 2345fi;
d8356fa3 2346
ba875e66 2347 eval "$ac_cv_use_nanox"
d8356fa3 2348 if test "$no_cache" != 1; then
ba875e66 2349 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2350 fi
2351
2352 if test "$wxUSE_NANOX" = yes; then
247f5006
VZ
2353 echo "$as_me:$LINENO: result: yes" >&5
2354echo "${ECHO_T}yes" >&6
d8356fa3 2355 else
247f5006
VZ
2356 echo "$as_me:$LINENO: result: no" >&5
2357echo "${ECHO_T}no" >&6
d8356fa3 2358 fi
8284b0c5 2359
d74f4b5a 2360
247f5006
VZ
2361
2362 echo "$as_me:$LINENO: checking for --enable-gtk2" >&5
2363echo $ECHO_N "checking for --enable-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2364 no_cache=0
2365 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2366if test "${enable_gtk2+set}" = set; then
2367 enableval="$enable_gtk2"
247f5006 2368
d74f4b5a
VZ
2369 if test "$enableval" = yes; then
2370 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2371 else
2372 ac_cv_use_gtk2='wxUSE_GTK2=no'
2373 fi
247f5006 2374
10f2d63a 2375else
247f5006 2376
d74f4b5a
VZ
2377 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2378 if test "x$LINE" != x ; then
2379 eval "DEFAULT_$LINE"
2380 else
2381 no_cache=1
2382 fi
2383
2384 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2385
247f5006 2386fi;
328a083c 2387
d74f4b5a
VZ
2388 eval "$ac_cv_use_gtk2"
2389 if test "$no_cache" != 1; then
2390 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2391 fi
2392
2393 if test "$wxUSE_GTK2" = yes; then
247f5006
VZ
2394 echo "$as_me:$LINENO: result: yes" >&5
2395echo "${ECHO_T}yes" >&6
d74f4b5a 2396 else
247f5006
VZ
2397 echo "$as_me:$LINENO: result: no" >&5
2398echo "${ECHO_T}no" >&6
d74f4b5a 2399 fi
d74f4b5a 2400
5c6fa7d2 2401
247f5006
VZ
2402
2403 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2404echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2405 no_cache=0
247f5006
VZ
2406
2407# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2408if test "${with_libpng+set}" = set; then
2409 withval="$with_libpng"
247f5006 2410
10f2d63a 2411 if test "$withval" = yes; then
b12915c1 2412 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2413 elif test "$withval" = no; then
b12915c1 2414 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2415 elif test "$withval" = sys; then
2416 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2417 elif test "$withval" = builtin; then
2418 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2419 else
247f5006
VZ
2420 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2421echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2422 { (exit 1); exit 1; }; }
10f2d63a 2423 fi
247f5006 2424
10f2d63a 2425else
247f5006 2426
b12915c1 2427 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
b12915c1 2434 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2435
247f5006 2436fi;
10f2d63a 2437
b12915c1 2438 eval "$ac_cv_use_libpng"
10f2d63a 2439 if test "$no_cache" != 1; then
b12915c1 2440 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2441 fi
2442
b12915c1 2443 if test "$wxUSE_LIBPNG" = yes; then
247f5006
VZ
2444 echo "$as_me:$LINENO: result: yes" >&5
2445echo "${ECHO_T}yes" >&6
422107f9 2446 elif test "$wxUSE_LIBPNG" = no; then
247f5006
VZ
2447 echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6
422107f9 2449 elif test "$wxUSE_LIBPNG" = sys; then
247f5006
VZ
2450 echo "$as_me:$LINENO: result: system version" >&5
2451echo "${ECHO_T}system version" >&6
4f14bcd8 2452 elif test "$wxUSE_LIBPNG" = builtin; then
247f5006
VZ
2453 echo "$as_me:$LINENO: result: builtin version" >&5
2454echo "${ECHO_T}builtin version" >&6
422107f9 2455 else
247f5006
VZ
2456 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2457echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2458 { (exit 1); exit 1; }; }
10f2d63a 2459 fi
10f2d63a 2460
247f5006
VZ
2461
2462 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2463echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2464 no_cache=0
247f5006
VZ
2465
2466# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2467if test "${with_libjpeg+set}" = set; then
2468 withval="$with_libjpeg"
247f5006 2469
10f2d63a 2470 if test "$withval" = yes; then
b12915c1 2471 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2472 elif test "$withval" = no; then
b12915c1 2473 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2474 elif test "$withval" = sys; then
2475 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2476 elif test "$withval" = builtin; then
2477 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2478 else
247f5006
VZ
2479 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2480echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2481 { (exit 1); exit 1; }; }
10f2d63a 2482 fi
247f5006 2483
10f2d63a 2484else
247f5006 2485
b12915c1 2486 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2487 if test "x$LINE" != x ; then
2488 eval "DEFAULT_$LINE"
2489 else
2490 no_cache=1
2491 fi
2492
b12915c1 2493 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2494
247f5006 2495fi;
10f2d63a 2496
b12915c1 2497 eval "$ac_cv_use_libjpeg"
10f2d63a 2498 if test "$no_cache" != 1; then
b12915c1 2499 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2500 fi
2501
b12915c1 2502 if test "$wxUSE_LIBJPEG" = yes; then
247f5006
VZ
2503 echo "$as_me:$LINENO: result: yes" >&5
2504echo "${ECHO_T}yes" >&6
422107f9 2505 elif test "$wxUSE_LIBJPEG" = no; then
247f5006
VZ
2506 echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6
422107f9 2508 elif test "$wxUSE_LIBJPEG" = sys; then
247f5006
VZ
2509 echo "$as_me:$LINENO: result: system version" >&5
2510echo "${ECHO_T}system version" >&6
4f14bcd8 2511 elif test "$wxUSE_LIBJPEG" = builtin; then
247f5006
VZ
2512 echo "$as_me:$LINENO: result: builtin version" >&5
2513echo "${ECHO_T}builtin version" >&6
422107f9 2514 else
247f5006
VZ
2515 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2516echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2517 { (exit 1); exit 1; }; }
10f2d63a 2518 fi
10f2d63a 2519
247f5006
VZ
2520
2521 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2522echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2523 no_cache=0
247f5006
VZ
2524
2525# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2526if test "${with_libtiff+set}" = set; then
2527 withval="$with_libtiff"
247f5006 2528
10f2d63a 2529 if test "$withval" = yes; then
b12915c1 2530 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2531 elif test "$withval" = no; then
b12915c1 2532 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2533 elif test "$withval" = sys; then
2534 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2535 elif test "$withval" = builtin; then
2536 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2537 else
247f5006
VZ
2538 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2539echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2540 { (exit 1); exit 1; }; }
10f2d63a 2541 fi
247f5006 2542
10f2d63a 2543else
247f5006 2544
b12915c1 2545 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2546 if test "x$LINE" != x ; then
2547 eval "DEFAULT_$LINE"
2548 else
2549 no_cache=1
2550 fi
2551
b12915c1 2552 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2553
247f5006 2554fi;
10f2d63a 2555
b12915c1 2556 eval "$ac_cv_use_libtiff"
10f2d63a 2557 if test "$no_cache" != 1; then
b12915c1 2558 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2559 fi
2560
b12915c1 2561 if test "$wxUSE_LIBTIFF" = yes; then
247f5006
VZ
2562 echo "$as_me:$LINENO: result: yes" >&5
2563echo "${ECHO_T}yes" >&6
0dcf9893 2564 elif test "$wxUSE_LIBTIFF" = no; then
247f5006
VZ
2565 echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6
0dcf9893 2567 elif test "$wxUSE_LIBTIFF" = sys; then
247f5006
VZ
2568 echo "$as_me:$LINENO: result: system version" >&5
2569echo "${ECHO_T}system version" >&6
4f14bcd8 2570 elif test "$wxUSE_LIBTIFF" = builtin; then
247f5006
VZ
2571 echo "$as_me:$LINENO: result: builtin version" >&5
2572echo "${ECHO_T}builtin version" >&6
0dcf9893 2573 else
247f5006
VZ
2574 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2575echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2576 { (exit 1); exit 1; }; }
10f2d63a 2577 fi
10f2d63a 2578
247f5006
VZ
2579
2580 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2581echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2582 no_cache=0
247f5006
VZ
2583
2584# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2585if test "${with_opengl+set}" = set; then
2586 withval="$with_opengl"
247f5006 2587
10f2d63a 2588 if test "$withval" = yes; then
b12915c1 2589 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2590 else
b12915c1 2591 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2592 fi
247f5006 2593
10f2d63a 2594else
247f5006 2595
b12915c1 2596 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2597 if test "x$LINE" != x ; then
2598 eval "DEFAULT_$LINE"
2599 else
2600 no_cache=1
2601 fi
2602
b12915c1 2603 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2604
247f5006 2605fi;
10f2d63a 2606
b12915c1 2607 eval "$ac_cv_use_opengl"
10f2d63a 2608 if test "$no_cache" != 1; then
b12915c1 2609 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2610 fi
2611
b12915c1 2612 if test "$wxUSE_OPENGL" = yes; then
247f5006
VZ
2613 echo "$as_me:$LINENO: result: yes" >&5
2614echo "${ECHO_T}yes" >&6
10f2d63a 2615 else
247f5006
VZ
2616 echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6
10f2d63a 2618 fi
247f5006 2619
10f2d63a 2620
b12915c1
VZ
2621fi
2622
5c6fa7d2 2623
247f5006
VZ
2624 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2625echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2626 no_cache=0
247f5006
VZ
2627
2628# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2629if test "${with_dmalloc+set}" = set; then
2630 withval="$with_dmalloc"
247f5006 2631
c7a2bf27 2632 if test "$withval" = yes; then
b12915c1 2633 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2634 else
b12915c1 2635 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2636 fi
247f5006 2637
c7a2bf27 2638else
247f5006 2639
b12915c1 2640 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2641 if test "x$LINE" != x ; then
2642 eval "DEFAULT_$LINE"
2643 else
2644 no_cache=1
2645 fi
2646
b12915c1 2647 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2648
247f5006 2649fi;
c7a2bf27 2650
b12915c1 2651 eval "$ac_cv_use_dmalloc"
c7a2bf27 2652 if test "$no_cache" != 1; then
b12915c1 2653 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2654 fi
2655
b12915c1 2656 if test "$wxUSE_DMALLOC" = yes; then
247f5006
VZ
2657 echo "$as_me:$LINENO: result: yes" >&5
2658echo "${ECHO_T}yes" >&6
c7a2bf27 2659 else
247f5006
VZ
2660 echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
c7a2bf27 2662 fi
c7a2bf27 2663
247f5006
VZ
2664
2665 echo "$as_me:$LINENO: checking for --with-regex" >&5
2666echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2667 no_cache=0
247f5006
VZ
2668
2669# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2670if test "${with_regex+set}" = set; then
2671 withval="$with_regex"
247f5006 2672
3e44f09d
VZ
2673 if test "$withval" = yes; then
2674 ac_cv_use_regex='wxUSE_REGEX=yes'
2675 elif test "$withval" = no; then
2676 ac_cv_use_regex='wxUSE_REGEX=no'
2677 elif test "$withval" = sys; then
2678 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2679 elif test "$withval" = builtin; then
2680 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2681 else
247f5006
VZ
2682 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2683echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2684 { (exit 1); exit 1; }; }
3e44f09d 2685 fi
247f5006 2686
3e44f09d 2687else
247f5006 2688
3e44f09d
VZ
2689 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2697
247f5006 2698fi;
3e44f09d
VZ
2699
2700 eval "$ac_cv_use_regex"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_REGEX" = yes; then
247f5006
VZ
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
3e44f09d 2708 elif test "$wxUSE_REGEX" = no; then
247f5006
VZ
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
3e44f09d 2711 elif test "$wxUSE_REGEX" = sys; then
247f5006
VZ
2712 echo "$as_me:$LINENO: result: system version" >&5
2713echo "${ECHO_T}system version" >&6
4f14bcd8 2714 elif test "$wxUSE_REGEX" = builtin; then
247f5006
VZ
2715 echo "$as_me:$LINENO: result: builtin version" >&5
2716echo "${ECHO_T}builtin version" >&6
3e44f09d 2717 else
247f5006
VZ
2718 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2719echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2720 { (exit 1); exit 1; }; }
3e44f09d 2721 fi
3e44f09d 2722
247f5006
VZ
2723
2724 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2725echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2726 no_cache=0
247f5006
VZ
2727
2728# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2729if test "${with_zlib+set}" = set; then
2730 withval="$with_zlib"
247f5006 2731
10f2d63a 2732 if test "$withval" = yes; then
b12915c1 2733 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2734 elif test "$withval" = no; then
b12915c1 2735 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2736 elif test "$withval" = sys; then
2737 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2738 elif test "$withval" = builtin; then
2739 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2740 else
247f5006
VZ
2741 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2742echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2743 { (exit 1); exit 1; }; }
10f2d63a 2744 fi
247f5006 2745
10f2d63a 2746else
247f5006 2747
b12915c1 2748 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
b12915c1 2755 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2756
247f5006 2757fi;
10f2d63a 2758
b12915c1 2759 eval "$ac_cv_use_zlib"
10f2d63a 2760 if test "$no_cache" != 1; then
b12915c1 2761 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2762 fi
2763
b12915c1 2764 if test "$wxUSE_ZLIB" = yes; then
247f5006
VZ
2765 echo "$as_me:$LINENO: result: yes" >&5
2766echo "${ECHO_T}yes" >&6
422107f9 2767 elif test "$wxUSE_ZLIB" = no; then
247f5006
VZ
2768 echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6
422107f9 2770 elif test "$wxUSE_ZLIB" = sys; then
247f5006
VZ
2771 echo "$as_me:$LINENO: result: system version" >&5
2772echo "${ECHO_T}system version" >&6
4f14bcd8 2773 elif test "$wxUSE_ZLIB" = builtin; then
247f5006
VZ
2774 echo "$as_me:$LINENO: result: builtin version" >&5
2775echo "${ECHO_T}builtin version" >&6
422107f9 2776 else
247f5006
VZ
2777 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2778echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2779 { (exit 1); exit 1; }; }
10f2d63a 2780 fi
10f2d63a 2781
247f5006
VZ
2782
2783 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2784echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2785 no_cache=0
247f5006
VZ
2786
2787# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2788if test "${with_odbc+set}" = set; then
2789 withval="$with_odbc"
247f5006 2790
10f2d63a
VZ
2791 if test "$withval" = yes; then
2792 ac_cv_use_odbc='wxUSE_ODBC=yes'
2793 else
2794 ac_cv_use_odbc='wxUSE_ODBC=no'
2795 fi
247f5006 2796
10f2d63a 2797else
247f5006 2798
10f2d63a
VZ
2799 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2800 if test "x$LINE" != x ; then
2801 eval "DEFAULT_$LINE"
2802 else
2803 no_cache=1
2804 fi
2805
2806 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2807
247f5006 2808fi;
10f2d63a
VZ
2809
2810 eval "$ac_cv_use_odbc"
2811 if test "$no_cache" != 1; then
2812 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2813 fi
2814
2815 if test "$wxUSE_ODBC" = yes; then
247f5006
VZ
2816 echo "$as_me:$LINENO: result: yes" >&5
2817echo "${ECHO_T}yes" >&6
10f2d63a 2818 else
247f5006
VZ
2819 echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6
10f2d63a 2821 fi
52127426 2822
8284b0c5
MB
2823
2824
247f5006
VZ
2825
2826 echo "$as_me:$LINENO: checking for --enable-shared" >&5
2827echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
10f2d63a
VZ
2828 no_cache=0
2829 # Check whether --enable-shared or --disable-shared was given.
2830if test "${enable_shared+set}" = set; then
2831 enableval="$enable_shared"
247f5006 2832
10f2d63a
VZ
2833 if test "$enableval" = yes; then
2834 ac_cv_use_shared='wxUSE_SHARED=yes'
2835 else
2836 ac_cv_use_shared='wxUSE_SHARED=no'
2837 fi
247f5006 2838
10f2d63a 2839else
247f5006 2840
10f2d63a
VZ
2841 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2842 if test "x$LINE" != x ; then
2843 eval "DEFAULT_$LINE"
2844 else
2845 no_cache=1
2846 fi
2847
2848 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 2849
247f5006 2850fi;
10f2d63a
VZ
2851
2852 eval "$ac_cv_use_shared"
2853 if test "$no_cache" != 1; then
2854 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2855 fi
2856
2857 if test "$wxUSE_SHARED" = yes; then
247f5006
VZ
2858 echo "$as_me:$LINENO: result: yes" >&5
2859echo "${ECHO_T}yes" >&6
10f2d63a 2860 else
247f5006
VZ
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
10f2d63a 2863 fi
10f2d63a 2864
247f5006
VZ
2865
2866 echo "$as_me:$LINENO: checking for --enable-soname" >&5
2867echo $ECHO_N "checking for --enable-soname... $ECHO_C" >&6
00cf1208 2868 no_cache=0
3a922bb4
RL
2869 # Check whether --enable-soname or --disable-soname was given.
2870if test "${enable_soname+set}" = set; then
2871 enableval="$enable_soname"
247f5006 2872
00cf1208 2873 if test "$enableval" = yes; then
3a922bb4 2874 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2875 else
3a922bb4 2876 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2877 fi
247f5006 2878
00cf1208 2879else
247f5006 2880
3a922bb4 2881 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2882 if test "x$LINE" != x ; then
2883 eval "DEFAULT_$LINE"
2884 else
2885 no_cache=1
2886 fi
2887
3a922bb4 2888 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
00cf1208 2889
247f5006 2890fi;
00cf1208 2891
3a922bb4 2892 eval "$ac_cv_use_soname"
00cf1208 2893 if test "$no_cache" != 1; then
3a922bb4 2894 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2895 fi
2896
3a922bb4 2897 if test "$wxUSE_SONAME" = yes; then
247f5006
VZ
2898 echo "$as_me:$LINENO: result: yes" >&5
2899echo "${ECHO_T}yes" >&6
00cf1208 2900 else
247f5006
VZ
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
00cf1208 2903 fi
00cf1208 2904
247f5006
VZ
2905
2906 echo "$as_me:$LINENO: checking for --enable-optimise" >&5
2907echo $ECHO_N "checking for --enable-optimise... $ECHO_C" >&6
10f2d63a
VZ
2908 no_cache=0
2909 # Check whether --enable-optimise or --disable-optimise was given.
2910if test "${enable_optimise+set}" = set; then
2911 enableval="$enable_optimise"
247f5006 2912
10f2d63a
VZ
2913 if test "$enableval" = yes; then
2914 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2915 else
2916 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2917 fi
247f5006 2918
10f2d63a 2919else
247f5006 2920
10f2d63a
VZ
2921 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
2928 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 2929
247f5006 2930fi;
10f2d63a
VZ
2931
2932 eval "$ac_cv_use_optimise"
2933 if test "$no_cache" != 1; then
2934 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2935 fi
2936
2937 if test "$wxUSE_OPTIMISE" = yes; then
247f5006
VZ
2938 echo "$as_me:$LINENO: result: yes" >&5
2939echo "${ECHO_T}yes" >&6
10f2d63a 2940 else
247f5006
VZ
2941 echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
10f2d63a 2943 fi
10f2d63a 2944
247f5006
VZ
2945
2946 echo "$as_me:$LINENO: checking for --enable-debug" >&5
2947echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
10f2d63a
VZ
2948 no_cache=0
2949 # Check whether --enable-debug or --disable-debug was given.
2950if test "${enable_debug+set}" = set; then
2951 enableval="$enable_debug"
247f5006 2952
10f2d63a
VZ
2953 if test "$enableval" = yes; then
2954 ac_cv_use_debug='wxUSE_DEBUG=yes'
2955 else
2956 ac_cv_use_debug='wxUSE_DEBUG=no'
2957 fi
247f5006 2958
10f2d63a 2959else
247f5006 2960
10f2d63a
VZ
2961 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 2969
247f5006 2970fi;
10f2d63a
VZ
2971
2972 eval "$ac_cv_use_debug"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_DEBUG" = yes; then
247f5006
VZ
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6
10f2d63a 2980 else
247f5006
VZ
2981 echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
10f2d63a 2983 fi
52127426 2984
8284b0c5 2985
247f5006
VZ
2986
2987 echo "$as_me:$LINENO: checking for --enable-precomp" >&5
2988echo $ECHO_N "checking for --enable-precomp... $ECHO_C" >&6
683dccda
GD
2989 no_cache=0
2990 # Check whether --enable-precomp or --disable-precomp was given.
2991if test "${enable_precomp+set}" = set; then
2992 enableval="$enable_precomp"
247f5006 2993
683dccda
GD
2994 if test "$enableval" = yes; then
2995 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2996 else
2997 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2998 fi
247f5006 2999
683dccda 3000else
247f5006 3001
683dccda
GD
3002 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
3009 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
683dccda 3010
247f5006 3011fi;
683dccda
GD
3012
3013 eval "$ac_cv_use_precomp"
3014 if test "$no_cache" != 1; then
3015 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
3016 fi
3017
3018 if test "$wxUSE_PRECOMP" = yes; then
247f5006
VZ
3019 echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6
683dccda 3021 else
247f5006
VZ
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
683dccda 3024 fi
247f5006 3025
683dccda 3026
10f2d63a
VZ
3027if test "$wxUSE_DEBUG" = "yes"; then
3028 DEFAULT_wxUSE_DEBUG_FLAG=yes
3029 DEFAULT_wxUSE_DEBUG_INFO=yes
3030elif test "$wxUSE_DEBUG" = "no"; then
3031 DEFAULT_wxUSE_DEBUG_FLAG=no
3032 DEFAULT_wxUSE_DEBUG_INFO=no
3033fi
3034
8284b0c5 3035
247f5006
VZ
3036 echo "$as_me:$LINENO: checking for --enable-debug_flag" >&5
3037echo $ECHO_N "checking for --enable-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3038 no_cache=0
3039 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3040if test "${enable_debug_flag+set}" = set; then
3041 enableval="$enable_debug_flag"
247f5006 3042
10f2d63a
VZ
3043 if test "$enableval" = yes; then
3044 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3045 else
3046 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3047 fi
247f5006 3048
10f2d63a 3049else
247f5006 3050
10f2d63a
VZ
3051 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3059
247f5006 3060fi;
10f2d63a
VZ
3061
3062 eval "$ac_cv_use_debug_flag"
3063 if test "$no_cache" != 1; then
3064 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3065 fi
3066
3067 if test "$wxUSE_DEBUG_FLAG" = yes; then
247f5006
VZ
3068 echo "$as_me:$LINENO: result: yes" >&5
3069echo "${ECHO_T}yes" >&6
10f2d63a 3070 else
247f5006
VZ
3071 echo "$as_me:$LINENO: result: no" >&5
3072echo "${ECHO_T}no" >&6
10f2d63a 3073 fi
10f2d63a 3074
247f5006
VZ
3075
3076 echo "$as_me:$LINENO: checking for --enable-debug_info" >&5
3077echo $ECHO_N "checking for --enable-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3078 no_cache=0
3079 # Check whether --enable-debug_info or --disable-debug_info was given.
3080if test "${enable_debug_info+set}" = set; then
3081 enableval="$enable_debug_info"
247f5006 3082
10f2d63a
VZ
3083 if test "$enableval" = yes; then
3084 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3085 else
3086 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3087 fi
247f5006 3088
10f2d63a 3089else
247f5006 3090
10f2d63a
VZ
3091 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3092 if test "x$LINE" != x ; then
3093 eval "DEFAULT_$LINE"
3094 else
3095 no_cache=1
3096 fi
3097
3098 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3099
247f5006 3100fi;
10f2d63a
VZ
3101
3102 eval "$ac_cv_use_debug_info"
3103 if test "$no_cache" != 1; then
3104 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3105 fi
3106
3107 if test "$wxUSE_DEBUG_INFO" = yes; then
247f5006
VZ
3108 echo "$as_me:$LINENO: result: yes" >&5
3109echo "${ECHO_T}yes" >&6
10f2d63a 3110 else
247f5006
VZ
3111 echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
10f2d63a 3113 fi
10f2d63a 3114
247f5006
VZ
3115
3116 echo "$as_me:$LINENO: checking for --enable-debug_gdb" >&5
3117echo $ECHO_N "checking for --enable-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3118 no_cache=0
3119 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3120if test "${enable_debug_gdb+set}" = set; then
3121 enableval="$enable_debug_gdb"
247f5006 3122
10f2d63a
VZ
3123 if test "$enableval" = yes; then
3124 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3125 else
3126 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3127 fi
247f5006 3128
10f2d63a 3129else
247f5006 3130
10f2d63a
VZ
3131 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3132 if test "x$LINE" != x ; then
3133 eval "DEFAULT_$LINE"
3134 else
3135 no_cache=1
3136 fi
3137
3138 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3139
247f5006 3140fi;
10f2d63a
VZ
3141
3142 eval "$ac_cv_use_debug_gdb"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_DEBUG_GDB" = yes; then
247f5006
VZ
3148 echo "$as_me:$LINENO: result: yes" >&5
3149echo "${ECHO_T}yes" >&6
10f2d63a 3150 else
247f5006
VZ
3151 echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
10f2d63a 3153 fi
10f2d63a 3154
247f5006
VZ
3155
3156 echo "$as_me:$LINENO: checking for --enable-debug_cntxt" >&5
3157echo $ECHO_N "checking for --enable-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3158 no_cache=0
3159 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3160if test "${enable_debug_cntxt+set}" = set; then
3161 enableval="$enable_debug_cntxt"
247f5006 3162
10f2d63a
VZ
3163 if test "$enableval" = yes; then
3164 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3165 else
3166 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3167 fi
247f5006 3168
10f2d63a 3169else
247f5006 3170
10f2d63a
VZ
3171 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${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_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3179
247f5006 3180fi;
10f2d63a
VZ
3181
3182 eval "$ac_cv_use_debug_cntxt"
3183 if test "$no_cache" != 1; then
3184 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3185 fi
3186
3187 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
247f5006
VZ
3188 echo "$as_me:$LINENO: result: yes" >&5
3189echo "${ECHO_T}yes" >&6
10f2d63a 3190 else
247f5006
VZ
3191 echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
10f2d63a 3193 fi
10f2d63a 3194
247f5006
VZ
3195
3196 echo "$as_me:$LINENO: checking for --enable-mem_tracing" >&5
3197echo $ECHO_N "checking for --enable-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3198 no_cache=0
3199 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3200if test "${enable_mem_tracing+set}" = set; then
3201 enableval="$enable_mem_tracing"
247f5006 3202
10f2d63a
VZ
3203 if test "$enableval" = yes; then
3204 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3205 else
3206 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3207 fi
247f5006 3208
10f2d63a 3209else
247f5006 3210
10f2d63a
VZ
3211 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3212 if test "x$LINE" != x ; then
3213 eval "DEFAULT_$LINE"
3214 else
3215 no_cache=1
3216 fi
3217
3218 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3219
247f5006 3220fi;
10f2d63a
VZ
3221
3222 eval "$ac_cv_use_mem_tracing"
3223 if test "$no_cache" != 1; then
3224 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3225 fi
3226
3227 if test "$wxUSE_MEM_TRACING" = yes; then
247f5006
VZ
3228 echo "$as_me:$LINENO: result: yes" >&5
3229echo "${ECHO_T}yes" >&6
10f2d63a 3230 else
247f5006
VZ
3231 echo "$as_me:$LINENO: result: no" >&5
3232echo "${ECHO_T}no" >&6
10f2d63a 3233 fi
10f2d63a 3234
247f5006
VZ
3235
3236 echo "$as_me:$LINENO: checking for --enable-profile" >&5
3237echo $ECHO_N "checking for --enable-profile... $ECHO_C" >&6
10f2d63a
VZ
3238 no_cache=0
3239 # Check whether --enable-profile or --disable-profile was given.
3240if test "${enable_profile+set}" = set; then
3241 enableval="$enable_profile"
247f5006 3242
10f2d63a
VZ
3243 if test "$enableval" = yes; then
3244 ac_cv_use_profile='wxUSE_PROFILE=yes'
3245 else
3246 ac_cv_use_profile='wxUSE_PROFILE=no'
3247 fi
247f5006 3248
10f2d63a 3249else
247f5006 3250
10f2d63a
VZ
3251 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3259
247f5006 3260fi;
10f2d63a
VZ
3261
3262 eval "$ac_cv_use_profile"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_PROFILE" = yes; then
247f5006
VZ
3268 echo "$as_me:$LINENO: result: yes" >&5
3269echo "${ECHO_T}yes" >&6
10f2d63a 3270 else
247f5006
VZ
3271 echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
10f2d63a 3273 fi
10f2d63a 3274
247f5006
VZ
3275
3276 echo "$as_me:$LINENO: checking for --enable-no_rtti" >&5
3277echo $ECHO_N "checking for --enable-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3278 no_cache=0
3279 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3280if test "${enable_no_rtti+set}" = set; then
3281 enableval="$enable_no_rtti"
247f5006 3282
10f2d63a
VZ
3283 if test "$enableval" = yes; then
3284 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3285 else
3286 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3287 fi
247f5006 3288
10f2d63a 3289else
247f5006 3290
10f2d63a
VZ
3291 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3299
247f5006 3300fi;
10f2d63a
VZ
3301
3302 eval "$ac_cv_use_no_rtti"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_NO_RTTI" = yes; then
247f5006
VZ
3308 echo "$as_me:$LINENO: result: yes" >&5
3309echo "${ECHO_T}yes" >&6
10f2d63a 3310 else
247f5006
VZ
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
10f2d63a 3313 fi
10f2d63a 3314
247f5006
VZ
3315
3316 echo "$as_me:$LINENO: checking for --enable-no_exceptions" >&5
3317echo $ECHO_N "checking for --enable-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3318 no_cache=0
3319 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3320if test "${enable_no_exceptions+set}" = set; then
3321 enableval="$enable_no_exceptions"
247f5006 3322
10f2d63a
VZ
3323 if test "$enableval" = yes; then
3324 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3325 else
3326 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3327 fi
247f5006 3328
10f2d63a 3329else
247f5006 3330
10f2d63a
VZ
3331 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3332 if test "x$LINE" != x ; then
3333 eval "DEFAULT_$LINE"
3334 else
3335 no_cache=1
3336 fi
3337
3338 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3339
247f5006 3340fi;
10f2d63a
VZ
3341
3342 eval "$ac_cv_use_no_exceptions"
3343 if test "$no_cache" != 1; then
3344 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3345 fi
3346
3347 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
247f5006
VZ
3348 echo "$as_me:$LINENO: result: yes" >&5
3349echo "${ECHO_T}yes" >&6
10f2d63a 3350 else
247f5006
VZ
3351 echo "$as_me:$LINENO: result: no" >&5
3352echo "${ECHO_T}no" >&6
10f2d63a 3353 fi
10f2d63a 3354
247f5006
VZ
3355
3356 echo "$as_me:$LINENO: checking for --enable-permissive" >&5
3357echo $ECHO_N "checking for --enable-permissive... $ECHO_C" >&6
10f2d63a
VZ
3358 no_cache=0
3359 # Check whether --enable-permissive or --disable-permissive was given.
3360if test "${enable_permissive+set}" = set; then
3361 enableval="$enable_permissive"
247f5006 3362
10f2d63a
VZ
3363 if test "$enableval" = yes; then
3364 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3365 else
3366 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3367 fi
247f5006 3368
10f2d63a 3369else
247f5006 3370
10f2d63a
VZ
3371 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3379
247f5006 3380fi;
10f2d63a
VZ
3381
3382 eval "$ac_cv_use_permissive"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_PERMISSIVE" = yes; then
247f5006
VZ
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
10f2d63a 3390 else
247f5006
VZ
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
10f2d63a 3393 fi
10f2d63a 3394
247f5006
VZ
3395
3396 echo "$as_me:$LINENO: checking for --enable-no_deps" >&5
3397echo $ECHO_N "checking for --enable-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3398 no_cache=0
3399 # Check whether --enable-no_deps or --disable-no_deps was given.
3400if test "${enable_no_deps+set}" = set; then
3401 enableval="$enable_no_deps"
247f5006 3402
10f2d63a
VZ
3403 if test "$enableval" = yes; then
3404 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3405 else
3406 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3407 fi
247f5006 3408
10f2d63a 3409else
247f5006 3410
10f2d63a
VZ
3411 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3412 if test "x$LINE" != x ; then
3413 eval "DEFAULT_$LINE"
3414 else
3415 no_cache=1
3416 fi
3417
3418 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3419
247f5006 3420fi;
10f2d63a
VZ
3421
3422 eval "$ac_cv_use_no_deps"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_NO_DEPS" = yes; then
247f5006
VZ
3428 echo "$as_me:$LINENO: result: yes" >&5
3429echo "${ECHO_T}yes" >&6
10f2d63a 3430 else
247f5006
VZ
3431 echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
10f2d63a 3433 fi
52127426 3434
8284b0c5 3435
247f5006
VZ
3436
3437 echo "$as_me:$LINENO: checking for --enable-compat20" >&5
3438echo $ECHO_N "checking for --enable-compat20... $ECHO_C" >&6
54276ccf
VZ
3439 no_cache=0
3440 # Check whether --enable-compat20 or --disable-compat20 was given.
3441if test "${enable_compat20+set}" = set; then
3442 enableval="$enable_compat20"
247f5006 3443
54276ccf
VZ
3444 if test "$enableval" = yes; then
3445 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3446 else
3447 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3448 fi
247f5006 3449
54276ccf 3450else
247f5006 3451
54276ccf
VZ
3452 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3460
247f5006 3461fi;
54276ccf
VZ
3462
3463 eval "$ac_cv_use_compat20"
3464 if test "$no_cache" != 1; then
3465 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3466 fi
3467
3468 if test "$WXWIN_COMPATIBILITY_2" = yes; then
247f5006
VZ
3469 echo "$as_me:$LINENO: result: yes" >&5
3470echo "${ECHO_T}yes" >&6
54276ccf 3471 else
247f5006
VZ
3472 echo "$as_me:$LINENO: result: no" >&5
3473echo "${ECHO_T}no" >&6
54276ccf 3474 fi
54276ccf 3475
247f5006
VZ
3476
3477 echo "$as_me:$LINENO: checking for --enable-compat22" >&5
3478echo $ECHO_N "checking for --enable-compat22... $ECHO_C" >&6
54276ccf
VZ
3479 no_cache=0
3480 # Check whether --enable-compat22 or --disable-compat22 was given.
3481if test "${enable_compat22+set}" = set; then
3482 enableval="$enable_compat22"
247f5006 3483
54276ccf
VZ
3484 if test "$enableval" = yes; then
3485 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3486 else
3487 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3488 fi
247f5006 3489
54276ccf 3490else
247f5006 3491
54276ccf
VZ
3492 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3493 if test "x$LINE" != x ; then
3494 eval "DEFAULT_$LINE"
3495 else
3496 no_cache=1
3497 fi
3498
3499 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3500
247f5006 3501fi;
54276ccf
VZ
3502
3503 eval "$ac_cv_use_compat22"
3504 if test "$no_cache" != 1; then
3505 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3506 fi
3507
3508 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
247f5006
VZ
3509 echo "$as_me:$LINENO: result: yes" >&5
3510echo "${ECHO_T}yes" >&6
54276ccf 3511 else
247f5006
VZ
3512 echo "$as_me:$LINENO: result: no" >&5
3513echo "${ECHO_T}no" >&6
54276ccf 3514 fi
247f5006 3515
54276ccf 3516
3bd8fb5f
RD
3517# Check whether --enable-rpath or --disable-rpath was given.
3518if test "${enable_rpath+set}" = set; then
3519 enableval="$enable_rpath"
3520 wxRPATH_DIR="$enableval"
247f5006 3521fi;
3bd8fb5f
RD
3522
3523if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3524 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3525fi
3526
8284b0c5
MB
3527
3528
3529
247f5006
VZ
3530 echo "$as_me:$LINENO: checking for --enable-intl" >&5
3531echo $ECHO_N "checking for --enable-intl... $ECHO_C" >&6
10f2d63a
VZ
3532 no_cache=0
3533 # Check whether --enable-intl or --disable-intl was given.
3534if test "${enable_intl+set}" = set; then
3535 enableval="$enable_intl"
247f5006 3536
10f2d63a
VZ
3537 if test "$enableval" = yes; then
3538 ac_cv_use_intl='wxUSE_INTL=yes'
3539 else
3540 ac_cv_use_intl='wxUSE_INTL=no'
3541 fi
247f5006 3542
10f2d63a 3543else
247f5006 3544
10f2d63a
VZ
3545 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3546 if test "x$LINE" != x ; then
3547 eval "DEFAULT_$LINE"
3548 else
3549 no_cache=1
3550 fi
3551
3552 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3553
247f5006 3554fi;
10f2d63a
VZ
3555
3556 eval "$ac_cv_use_intl"
3557 if test "$no_cache" != 1; then
3558 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3559 fi
3560
3561 if test "$wxUSE_INTL" = yes; then
247f5006
VZ
3562 echo "$as_me:$LINENO: result: yes" >&5
3563echo "${ECHO_T}yes" >&6
10f2d63a 3564 else
247f5006
VZ
3565 echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
10f2d63a 3567 fi
10f2d63a 3568
247f5006
VZ
3569
3570 echo "$as_me:$LINENO: checking for --enable-config" >&5
3571echo $ECHO_N "checking for --enable-config... $ECHO_C" >&6
10f2d63a
VZ
3572 no_cache=0
3573 # Check whether --enable-config or --disable-config was given.
3574if test "${enable_config+set}" = set; then
3575 enableval="$enable_config"
247f5006 3576
10f2d63a
VZ
3577 if test "$enableval" = yes; then
3578 ac_cv_use_config='wxUSE_CONFIG=yes'
3579 else
3580 ac_cv_use_config='wxUSE_CONFIG=no'
3581 fi
247f5006 3582
10f2d63a 3583else
247f5006 3584
10f2d63a
VZ
3585 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3593
247f5006 3594fi;
10f2d63a
VZ
3595
3596 eval "$ac_cv_use_config"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_CONFIG" = yes; then
247f5006
VZ
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
10f2d63a 3604 else
247f5006
VZ
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
10f2d63a 3607 fi
52127426 3608
8284b0c5 3609
247f5006
VZ
3610
3611 echo "$as_me:$LINENO: checking for --enable-protocols" >&5
3612echo $ECHO_N "checking for --enable-protocols... $ECHO_C" >&6
a1622950
VZ
3613 no_cache=0
3614 # Check whether --enable-protocols or --disable-protocols was given.
3615if test "${enable_protocols+set}" = set; then
3616 enableval="$enable_protocols"
247f5006 3617
a1622950
VZ
3618 if test "$enableval" = yes; then
3619 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3620 else
3621 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3622 fi
247f5006 3623
a1622950 3624else
247f5006 3625
a1622950
VZ
3626 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3634
247f5006 3635fi;
a1622950
VZ
3636
3637 eval "$ac_cv_use_protocols"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_PROTOCOL" = yes; then
247f5006
VZ
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
a1622950 3645 else
247f5006
VZ
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
a1622950 3648 fi
a1622950 3649
247f5006
VZ
3650
3651 echo "$as_me:$LINENO: checking for --enable-ftp" >&5
3652echo $ECHO_N "checking for --enable-ftp... $ECHO_C" >&6
a1622950
VZ
3653 no_cache=0
3654 # Check whether --enable-ftp or --disable-ftp was given.
3655if test "${enable_ftp+set}" = set; then
3656 enableval="$enable_ftp"
247f5006 3657
a1622950
VZ
3658 if test "$enableval" = yes; then
3659 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3660 else
3661 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3662 fi
247f5006 3663
a1622950 3664else
247f5006 3665
a1622950
VZ
3666 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3667 if test "x$LINE" != x ; then
3668 eval "DEFAULT_$LINE"
3669 else
3670 no_cache=1
3671 fi
3672
3673 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3674
247f5006 3675fi;
a1622950
VZ
3676
3677 eval "$ac_cv_use_ftp"
3678 if test "$no_cache" != 1; then
3679 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3680 fi
3681
3682 if test "$wxUSE_PROTOCOL_FTP" = yes; then
247f5006
VZ
3683 echo "$as_me:$LINENO: result: yes" >&5
3684echo "${ECHO_T}yes" >&6
a1622950 3685 else
247f5006
VZ
3686 echo "$as_me:$LINENO: result: no" >&5
3687echo "${ECHO_T}no" >&6
a1622950 3688 fi
a1622950 3689
247f5006
VZ
3690
3691 echo "$as_me:$LINENO: checking for --enable-http" >&5
3692echo $ECHO_N "checking for --enable-http... $ECHO_C" >&6
a1622950
VZ
3693 no_cache=0
3694 # Check whether --enable-http or --disable-http was given.
3695if test "${enable_http+set}" = set; then
3696 enableval="$enable_http"
247f5006 3697
a1622950
VZ
3698 if test "$enableval" = yes; then
3699 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3700 else
3701 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3702 fi
247f5006 3703
a1622950 3704else
247f5006 3705
a1622950
VZ
3706 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3707 if test "x$LINE" != x ; then
3708 eval "DEFAULT_$LINE"
3709 else
3710 no_cache=1
3711 fi
3712
3713 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3714
247f5006 3715fi;
a1622950
VZ
3716
3717 eval "$ac_cv_use_http"
3718 if test "$no_cache" != 1; then
3719 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3720 fi
3721
3722 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
247f5006
VZ
3723 echo "$as_me:$LINENO: result: yes" >&5
3724echo "${ECHO_T}yes" >&6
a1622950 3725 else
247f5006
VZ
3726 echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
a1622950 3728 fi
a1622950 3729
247f5006
VZ
3730
3731 echo "$as_me:$LINENO: checking for --enable-fileproto" >&5
3732echo $ECHO_N "checking for --enable-fileproto... $ECHO_C" >&6
a1622950
VZ
3733 no_cache=0
3734 # Check whether --enable-fileproto or --disable-fileproto was given.
3735if test "${enable_fileproto+set}" = set; then
3736 enableval="$enable_fileproto"
247f5006 3737
a1622950
VZ
3738 if test "$enableval" = yes; then
3739 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3740 else
3741 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3742 fi
247f5006 3743
a1622950 3744else
247f5006 3745
a1622950
VZ
3746 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 3754
247f5006 3755fi;
a1622950
VZ
3756
3757 eval "$ac_cv_use_fileproto"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_PROTOCOL_FILE" = yes; then
247f5006
VZ
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
a1622950 3765 else
247f5006
VZ
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
a1622950 3768 fi
a1622950 3769
247f5006
VZ
3770
3771 echo "$as_me:$LINENO: checking for --enable-sockets" >&5
3772echo $ECHO_N "checking for --enable-sockets... $ECHO_C" >&6
10f2d63a
VZ
3773 no_cache=0
3774 # Check whether --enable-sockets or --disable-sockets was given.
3775if test "${enable_sockets+set}" = set; then
3776 enableval="$enable_sockets"
247f5006 3777
10f2d63a
VZ
3778 if test "$enableval" = yes; then
3779 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3780 else
3781 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3782 fi
247f5006 3783
10f2d63a 3784else
247f5006 3785
10f2d63a
VZ
3786 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3787 if test "x$LINE" != x ; then
3788 eval "DEFAULT_$LINE"
3789 else
3790 no_cache=1
3791 fi
3792
3793 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 3794
247f5006 3795fi;
10f2d63a
VZ
3796
3797 eval "$ac_cv_use_sockets"
3798 if test "$no_cache" != 1; then
3799 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3800 fi
3801
3802 if test "$wxUSE_SOCKETS" = yes; then
247f5006
VZ
3803 echo "$as_me:$LINENO: result: yes" >&5
3804echo "${ECHO_T}yes" >&6
10f2d63a 3805 else
247f5006
VZ
3806 echo "$as_me:$LINENO: result: no" >&5
3807echo "${ECHO_T}no" >&6
10f2d63a 3808 fi
8284b0c5 3809
52127426 3810
247f5006
VZ
3811
3812 echo "$as_me:$LINENO: checking for --enable-ipc" >&5
3813echo $ECHO_N "checking for --enable-ipc... $ECHO_C" >&6
10f2d63a 3814 no_cache=0
eb4efbdc
VZ
3815 # Check whether --enable-ipc or --disable-ipc was given.
3816if test "${enable_ipc+set}" = set; then
3817 enableval="$enable_ipc"
247f5006 3818
10f2d63a 3819 if test "$enableval" = yes; then
eb4efbdc 3820 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3821 else
eb4efbdc 3822 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3823 fi
247f5006 3824
10f2d63a 3825else
247f5006 3826
eb4efbdc 3827 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3828 if test "x$LINE" != x ; then
3829 eval "DEFAULT_$LINE"
3830 else
3831 no_cache=1
3832 fi
3833
eb4efbdc 3834 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 3835
247f5006 3836fi;
10f2d63a 3837
eb4efbdc 3838 eval "$ac_cv_use_ipc"
10f2d63a 3839 if test "$no_cache" != 1; then
eb4efbdc 3840 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3841 fi
3842
eb4efbdc 3843 if test "$wxUSE_IPC" = yes; then
247f5006
VZ
3844 echo "$as_me:$LINENO: result: yes" >&5
3845echo "${ECHO_T}yes" >&6
10f2d63a 3846 else
247f5006
VZ
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
10f2d63a 3849 fi
52127426 3850
8284b0c5 3851
247f5006
VZ
3852
3853 echo "$as_me:$LINENO: checking for --enable-cmdline" >&5
3854echo $ECHO_N "checking for --enable-cmdline... $ECHO_C" >&6
1e6feb95
VZ
3855 no_cache=0
3856 # Check whether --enable-cmdline or --disable-cmdline was given.
3857if test "${enable_cmdline+set}" = set; then
3858 enableval="$enable_cmdline"
247f5006 3859
1e6feb95
VZ
3860 if test "$enableval" = yes; then
3861 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3862 else
3863 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3864 fi
247f5006 3865
1e6feb95 3866else
247f5006 3867
1e6feb95
VZ
3868 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3869 if test "x$LINE" != x ; then
3870 eval "DEFAULT_$LINE"
3871 else
3872 no_cache=1
3873 fi
3874
3875 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 3876
247f5006 3877fi;
1e6feb95
VZ
3878
3879 eval "$ac_cv_use_cmdline"
3880 if test "$no_cache" != 1; then
3881 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3882 fi
3883
3884 if test "$wxUSE_CMDLINE_PARSER" = yes; then
247f5006
VZ
3885 echo "$as_me:$LINENO: result: yes" >&5
3886echo "${ECHO_T}yes" >&6
1e6feb95 3887 else
247f5006
VZ
3888 echo "$as_me:$LINENO: result: no" >&5
3889echo "${ECHO_T}no" >&6
1e6feb95 3890 fi
1e6feb95 3891
247f5006
VZ
3892
3893 echo "$as_me:$LINENO: checking for --enable-datetime" >&5
3894echo $ECHO_N "checking for --enable-datetime... $ECHO_C" >&6
1e6feb95
VZ
3895 no_cache=0
3896 # Check whether --enable-datetime or --disable-datetime was given.
3897if test "${enable_datetime+set}" = set; then
3898 enableval="$enable_datetime"
247f5006 3899
1e6feb95
VZ
3900 if test "$enableval" = yes; then
3901 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3902 else
3903 ac_cv_use_datetime='wxUSE_DATETIME=no'
3904 fi
247f5006 3905
1e6feb95 3906else
247f5006 3907
1e6feb95
VZ
3908 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 3916
247f5006 3917fi;
1e6feb95
VZ
3918
3919 eval "$ac_cv_use_datetime"
3920 if test "$no_cache" != 1; then
3921 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3922 fi
3923
3924 if test "$wxUSE_DATETIME" = yes; then
247f5006
VZ
3925 echo "$as_me:$LINENO: result: yes" >&5
3926echo "${ECHO_T}yes" >&6
1e6feb95 3927 else
247f5006
VZ
3928 echo "$as_me:$LINENO: result: no" >&5
3929echo "${ECHO_T}no" >&6
1e6feb95 3930 fi
1e6feb95 3931
247f5006
VZ
3932
3933 echo "$as_me:$LINENO: checking for --enable-timedate" >&5
3934echo $ECHO_N "checking for --enable-timedate... $ECHO_C" >&6
1e6feb95
VZ
3935 no_cache=0
3936 # Check whether --enable-timedate or --disable-timedate was given.
3937if test "${enable_timedate+set}" = set; then
3938 enableval="$enable_timedate"
247f5006 3939
1e6feb95
VZ
3940 if test "$enableval" = yes; then
3941 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3942 else
3943 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3944 fi
247f5006 3945
1e6feb95 3946else
247f5006 3947
1e6feb95
VZ
3948 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3949 if test "x$LINE" != x ; then
3950 eval "DEFAULT_$LINE"
3951 else
3952 no_cache=1
3953 fi
3954
3955 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
1e6feb95 3956
247f5006 3957fi;
1e6feb95
VZ
3958
3959 eval "$ac_cv_use_timedate"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_TIMEDATE" = yes; then
247f5006
VZ
3965 echo "$as_me:$LINENO: result: yes" >&5
3966echo "${ECHO_T}yes" >&6
1e6feb95 3967 else
247f5006
VZ
3968 echo "$as_me:$LINENO: result: no" >&5
3969echo "${ECHO_T}no" >&6
1e6feb95 3970 fi
1e6feb95 3971
247f5006
VZ
3972
3973 echo "$as_me:$LINENO: checking for --enable-stopwatch" >&5
3974echo $ECHO_N "checking for --enable-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
3975 no_cache=0
3976 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3977if test "${enable_stopwatch+set}" = set; then
3978 enableval="$enable_stopwatch"
247f5006 3979
1e6feb95
VZ
3980 if test "$enableval" = yes; then
3981 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3982 else
3983 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3984 fi
247f5006 3985
1e6feb95 3986else
247f5006 3987
1e6feb95
VZ
3988 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 3996
247f5006 3997fi;
1e6feb95
VZ
3998
3999 eval "$ac_cv_use_stopwatch"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_STOPWATCH" = yes; then
247f5006
VZ
4005 echo "$as_me:$LINENO: result: yes" >&5
4006echo "${ECHO_T}yes" >&6
1e6feb95 4007 else
247f5006
VZ
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
1e6feb95 4010 fi
1e6feb95 4011
247f5006
VZ
4012
4013 echo "$as_me:$LINENO: checking for --enable-dialupman" >&5
4014echo $ECHO_N "checking for --enable-dialupman... $ECHO_C" >&6
10f2d63a 4015 no_cache=0
eb4efbdc
VZ
4016 # Check whether --enable-dialupman or --disable-dialupman was given.
4017if test "${enable_dialupman+set}" = set; then
4018 enableval="$enable_dialupman"
247f5006 4019
10f2d63a 4020 if test "$enableval" = yes; then
eb4efbdc 4021 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4022 else
eb4efbdc 4023 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4024 fi
247f5006 4025
10f2d63a 4026else
247f5006 4027
eb4efbdc 4028 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4029 if test "x$LINE" != x ; then
4030 eval "DEFAULT_$LINE"
4031 else
4032 no_cache=1
4033 fi
4034
eb4efbdc 4035 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4036
247f5006 4037fi;
10f2d63a 4038
eb4efbdc 4039 eval "$ac_cv_use_dialupman"
10f2d63a 4040 if test "$no_cache" != 1; then
eb4efbdc 4041 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4042 fi
4043
eb4efbdc 4044 if test "$wxUSE_DIALUP_MANAGER" = yes; then
247f5006
VZ
4045 echo "$as_me:$LINENO: result: yes" >&5
4046echo "${ECHO_T}yes" >&6
10f2d63a 4047 else
247f5006
VZ
4048 echo "$as_me:$LINENO: result: no" >&5
4049echo "${ECHO_T}no" >&6
10f2d63a 4050 fi
10f2d63a 4051
247f5006
VZ
4052
4053 echo "$as_me:$LINENO: checking for --enable-apple_ieee" >&5
4054echo $ECHO_N "checking for --enable-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4055 no_cache=0
4056 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4057if test "${enable_apple_ieee+set}" = set; then
4058 enableval="$enable_apple_ieee"
247f5006 4059
10f2d63a
VZ
4060 if test "$enableval" = yes; then
4061 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4062 else
4063 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4064 fi
247f5006 4065
10f2d63a 4066else
247f5006 4067
10f2d63a
VZ
4068 LINE=`grep "wxUSE_APPLE_IEEE" ${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_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4076
247f5006 4077fi;
10f2d63a
VZ
4078
4079 eval "$ac_cv_use_apple_ieee"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_APPLE_IEEE" = yes; then
247f5006
VZ
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
10f2d63a 4087 else
247f5006
VZ
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
10f2d63a 4090 fi
10f2d63a 4091
247f5006
VZ
4092
4093 echo "$as_me:$LINENO: checking for --enable-timer" >&5
4094echo $ECHO_N "checking for --enable-timer... $ECHO_C" >&6
10f2d63a 4095 no_cache=0
1e6feb95
VZ
4096 # Check whether --enable-timer or --disable-timer was given.
4097if test "${enable_timer+set}" = set; then
4098 enableval="$enable_timer"
247f5006 4099
10f2d63a 4100 if test "$enableval" = yes; then
1e6feb95 4101 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4102 else
1e6feb95 4103 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4104 fi
247f5006 4105
10f2d63a 4106else
247f5006 4107
1e6feb95 4108 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4109 if test "x$LINE" != x ; then
4110 eval "DEFAULT_$LINE"
4111 else
4112 no_cache=1
4113 fi
4114
1e6feb95 4115 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4116
247f5006 4117fi;
10f2d63a 4118
1e6feb95 4119 eval "$ac_cv_use_timer"
10f2d63a 4120 if test "$no_cache" != 1; then
1e6feb95 4121 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4122 fi
4123
1e6feb95 4124 if test "$wxUSE_TIMER" = yes; then
247f5006
VZ
4125 echo "$as_me:$LINENO: result: yes" >&5
4126echo "${ECHO_T}yes" >&6
10f2d63a 4127 else
247f5006
VZ
4128 echo "$as_me:$LINENO: result: no" >&5
4129echo "${ECHO_T}no" >&6
10f2d63a 4130 fi
10f2d63a 4131
247f5006
VZ
4132
4133 echo "$as_me:$LINENO: checking for --enable-wave" >&5
4134echo $ECHO_N "checking for --enable-wave... $ECHO_C" >&6
10f2d63a
VZ
4135 no_cache=0
4136 # Check whether --enable-wave or --disable-wave was given.
4137if test "${enable_wave+set}" = set; then
4138 enableval="$enable_wave"
247f5006 4139
10f2d63a
VZ
4140 if test "$enableval" = yes; then
4141 ac_cv_use_wave='wxUSE_WAVE=yes'
4142 else
4143 ac_cv_use_wave='wxUSE_WAVE=no'
4144 fi
247f5006 4145
10f2d63a 4146else
247f5006 4147
10f2d63a
VZ
4148 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4156
247f5006 4157fi;
10f2d63a
VZ
4158
4159 eval "$ac_cv_use_wave"
4160 if test "$no_cache" != 1; then
4161 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4162 fi
4163
4164 if test "$wxUSE_WAVE" = yes; then
247f5006
VZ
4165 echo "$as_me:$LINENO: result: yes" >&5
4166echo "${ECHO_T}yes" >&6
10f2d63a 4167 else
247f5006
VZ
4168 echo "$as_me:$LINENO: result: no" >&5
4169echo "${ECHO_T}no" >&6
10f2d63a 4170 fi
10f2d63a 4171
247f5006
VZ
4172
4173 echo "$as_me:$LINENO: checking for --enable-fraction" >&5
4174echo $ECHO_N "checking for --enable-fraction... $ECHO_C" >&6
10f2d63a
VZ
4175 no_cache=0
4176 # Check whether --enable-fraction or --disable-fraction was given.
4177if test "${enable_fraction+set}" = set; then
4178 enableval="$enable_fraction"
247f5006 4179
10f2d63a
VZ
4180 if test "$enableval" = yes; then
4181 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4182 else
4183 ac_cv_use_fraction='wxUSE_FRACTION=no'
4184 fi
247f5006 4185
10f2d63a 4186else
247f5006 4187
10f2d63a
VZ
4188 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4189 if test "x$LINE" != x ; then
4190 eval "DEFAULT_$LINE"
4191 else
4192 no_cache=1
4193 fi
4194
4195 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4196
247f5006 4197fi;
10f2d63a
VZ
4198
4199 eval "$ac_cv_use_fraction"
4200 if test "$no_cache" != 1; then
4201 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4202 fi
4203
4204 if test "$wxUSE_FRACTION" = yes; then
247f5006
VZ
4205 echo "$as_me:$LINENO: result: yes" >&5
4206echo "${ECHO_T}yes" >&6
10f2d63a 4207 else
247f5006
VZ
4208 echo "$as_me:$LINENO: result: no" >&5
4209echo "${ECHO_T}no" >&6
10f2d63a 4210 fi
10f2d63a 4211
247f5006
VZ
4212
4213 echo "$as_me:$LINENO: checking for --enable-dynlib" >&5
4214echo $ECHO_N "checking for --enable-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4215 no_cache=0
4216 # Check whether --enable-dynlib or --disable-dynlib was given.
4217if test "${enable_dynlib+set}" = set; then
4218 enableval="$enable_dynlib"
247f5006 4219
10f2d63a
VZ
4220 if test "$enableval" = yes; then
4221 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4222 else
4223 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4224 fi
247f5006 4225
10f2d63a 4226else
247f5006 4227
10f2d63a
VZ
4228 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4236
247f5006 4237fi;
10f2d63a
VZ
4238
4239 eval "$ac_cv_use_dynlib"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_DYNLIB_CLASS" = yes; then
247f5006
VZ
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
10f2d63a 4247 else
247f5006
VZ
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
10f2d63a 4250 fi
10f2d63a 4251
247f5006
VZ
4252
4253 echo "$as_me:$LINENO: checking for --enable-dynamicloader" >&5
4254echo $ECHO_N "checking for --enable-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4255 no_cache=0
4256 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4257if test "${enable_dynamicloader+set}" = set; then
4258 enableval="$enable_dynamicloader"
247f5006 4259
0b9ab0bd
RL
4260 if test "$enableval" = yes; then
4261 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4262 else
4263 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4264 fi
247f5006 4265
0b9ab0bd 4266else
247f5006 4267
0b9ab0bd
RL
4268 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4269 if test "x$LINE" != x ; then
4270 eval "DEFAULT_$LINE"
4271 else
4272 no_cache=1
4273 fi
4274
4275 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4276
247f5006 4277fi;
0b9ab0bd
RL
4278
4279 eval "$ac_cv_use_dynamicloader"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
247f5006
VZ
4285 echo "$as_me:$LINENO: result: yes" >&5
4286echo "${ECHO_T}yes" >&6
0b9ab0bd 4287 else
247f5006
VZ
4288 echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6
0b9ab0bd 4290 fi
0b9ab0bd 4291
247f5006
VZ
4292
4293 echo "$as_me:$LINENO: checking for --enable-longlong" >&5
4294echo $ECHO_N "checking for --enable-longlong... $ECHO_C" >&6
10f2d63a
VZ
4295 no_cache=0
4296 # Check whether --enable-longlong or --disable-longlong was given.
4297if test "${enable_longlong+set}" = set; then
4298 enableval="$enable_longlong"
247f5006 4299
10f2d63a
VZ
4300 if test "$enableval" = yes; then
4301 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4302 else
4303 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4304 fi
247f5006 4305
10f2d63a 4306else
247f5006 4307
10f2d63a
VZ
4308 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4309 if test "x$LINE" != x ; then
4310 eval "DEFAULT_$LINE"
4311 else
4312 no_cache=1
4313 fi
4314
4315 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4316
247f5006 4317fi;
10f2d63a
VZ
4318
4319 eval "$ac_cv_use_longlong"
4320 if test "$no_cache" != 1; then
4321 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4322 fi
4323
4324 if test "$wxUSE_LONGLONG" = yes; then
247f5006
VZ
4325 echo "$as_me:$LINENO: result: yes" >&5
4326echo "${ECHO_T}yes" >&6
10f2d63a 4327 else
247f5006
VZ
4328 echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6
10f2d63a 4330 fi
10f2d63a 4331
247f5006
VZ
4332
4333 echo "$as_me:$LINENO: checking for --enable-geometry" >&5
4334echo $ECHO_N "checking for --enable-geometry... $ECHO_C" >&6
e8f65ba6
RR
4335 no_cache=0
4336 # Check whether --enable-geometry or --disable-geometry was given.
4337if test "${enable_geometry+set}" = set; then
4338 enableval="$enable_geometry"
247f5006 4339
e8f65ba6
RR
4340 if test "$enableval" = yes; then
4341 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4342 else
4343 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4344 fi
247f5006 4345
e8f65ba6 4346else
247f5006 4347
e8f65ba6
RR
4348 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4349 if test "x$LINE" != x ; then
4350 eval "DEFAULT_$LINE"
4351 else
4352 no_cache=1
4353 fi
4354
4355 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4356
247f5006 4357fi;
e8f65ba6
RR
4358
4359 eval "$ac_cv_use_geometry"
4360 if test "$no_cache" != 1; then
4361 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4362 fi
4363
4364 if test "$wxUSE_GEOMETRY" = yes; then
247f5006
VZ
4365 echo "$as_me:$LINENO: result: yes" >&5
4366echo "${ECHO_T}yes" >&6
e8f65ba6 4367 else
247f5006
VZ
4368 echo "$as_me:$LINENO: result: no" >&5
4369echo "${ECHO_T}no" >&6
e8f65ba6 4370 fi
e8f65ba6 4371
247f5006
VZ
4372
4373 echo "$as_me:$LINENO: checking for --enable-log" >&5
4374echo $ECHO_N "checking for --enable-log... $ECHO_C" >&6
10f2d63a
VZ
4375 no_cache=0
4376 # Check whether --enable-log or --disable-log was given.
4377if test "${enable_log+set}" = set; then
4378 enableval="$enable_log"
247f5006 4379
10f2d63a
VZ
4380 if test "$enableval" = yes; then
4381 ac_cv_use_log='wxUSE_LOG=yes'
4382 else
4383 ac_cv_use_log='wxUSE_LOG=no'
4384 fi
247f5006 4385
10f2d63a 4386else
247f5006 4387
10f2d63a
VZ
4388 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4396
247f5006 4397fi;
10f2d63a
VZ
4398
4399 eval "$ac_cv_use_log"
4400 if test "$no_cache" != 1; then
4401 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4402 fi
4403
4404 if test "$wxUSE_LOG" = yes; then
247f5006
VZ
4405 echo "$as_me:$LINENO: result: yes" >&5
4406echo "${ECHO_T}yes" >&6
10f2d63a 4407 else
247f5006
VZ
4408 echo "$as_me:$LINENO: result: no" >&5
4409echo "${ECHO_T}no" >&6
10f2d63a 4410 fi
10f2d63a 4411
247f5006
VZ
4412
4413 echo "$as_me:$LINENO: checking for --enable-streams" >&5
4414echo $ECHO_N "checking for --enable-streams... $ECHO_C" >&6
10f2d63a
VZ
4415 no_cache=0
4416 # Check whether --enable-streams or --disable-streams was given.
4417if test "${enable_streams+set}" = set; then
4418 enableval="$enable_streams"
247f5006 4419
10f2d63a
VZ
4420 if test "$enableval" = yes; then
4421 ac_cv_use_streams='wxUSE_STREAMS=yes'
4422 else
4423 ac_cv_use_streams='wxUSE_STREAMS=no'
4424 fi
247f5006 4425
10f2d63a 4426else
247f5006 4427
10f2d63a
VZ
4428 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4429 if test "x$LINE" != x ; then
4430 eval "DEFAULT_$LINE"
4431 else
4432 no_cache=1
4433 fi
4434
4435 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4436
247f5006 4437fi;
10f2d63a
VZ
4438
4439 eval "$ac_cv_use_streams"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_STREAMS" = yes; then
247f5006
VZ
4445 echo "$as_me:$LINENO: result: yes" >&5
4446echo "${ECHO_T}yes" >&6
10f2d63a 4447 else
247f5006
VZ
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
10f2d63a 4450 fi
10f2d63a 4451
247f5006
VZ
4452
4453 echo "$as_me:$LINENO: checking for --enable-file" >&5
4454echo $ECHO_N "checking for --enable-file... $ECHO_C" >&6
10f2d63a
VZ
4455 no_cache=0
4456 # Check whether --enable-file or --disable-file was given.
4457if test "${enable_file+set}" = set; then
4458 enableval="$enable_file"
247f5006 4459
10f2d63a
VZ
4460 if test "$enableval" = yes; then
4461 ac_cv_use_file='wxUSE_FILE=yes'
4462 else
4463 ac_cv_use_file='wxUSE_FILE=no'
4464 fi
247f5006 4465
10f2d63a 4466else
247f5006 4467
10f2d63a
VZ
4468 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4476
247f5006 4477fi;
10f2d63a
VZ
4478
4479 eval "$ac_cv_use_file"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_FILE" = yes; then
247f5006
VZ
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
10f2d63a 4487 else
247f5006
VZ
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
10f2d63a 4490 fi
10f2d63a 4491
247f5006
VZ
4492
4493 echo "$as_me:$LINENO: checking for --enable-ffile" >&5
4494echo $ECHO_N "checking for --enable-ffile... $ECHO_C" >&6
10f2d63a 4495 no_cache=0
1e6feb95
VZ
4496 # Check whether --enable-ffile or --disable-ffile was given.
4497if test "${enable_ffile+set}" = set; then
4498 enableval="$enable_ffile"
247f5006 4499
10f2d63a 4500 if test "$enableval" = yes; then
1e6feb95 4501 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4502 else
1e6feb95 4503 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4504 fi
247f5006 4505
10f2d63a 4506else
247f5006 4507
1e6feb95 4508 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
1e6feb95 4515 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4516
247f5006 4517fi;
10f2d63a 4518
1e6feb95 4519 eval "$ac_cv_use_ffile"
10f2d63a 4520 if test "$no_cache" != 1; then
1e6feb95 4521 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4522 fi
4523
1e6feb95 4524 if test "$wxUSE_FFILE" = yes; then
247f5006
VZ
4525 echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
10f2d63a 4527 else
247f5006
VZ
4528 echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
10f2d63a 4530 fi
10f2d63a 4531
247f5006
VZ
4532
4533 echo "$as_me:$LINENO: checking for --enable-textbuf" >&5
4534echo $ECHO_N "checking for --enable-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4535 no_cache=0
4536 # Check whether --enable-textbuf or --disable-textbuf was given.
4537if test "${enable_textbuf+set}" = set; then
4538 enableval="$enable_textbuf"
247f5006 4539
a3a584a7
VZ
4540 if test "$enableval" = yes; then
4541 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4542 else
4543 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4544 fi
247f5006 4545
a3a584a7 4546else
247f5006 4547
a3a584a7
VZ
4548 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4549 if test "x$LINE" != x ; then
4550 eval "DEFAULT_$LINE"
4551 else
4552 no_cache=1
4553 fi
4554
4555 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4556
247f5006 4557fi;
a3a584a7
VZ
4558
4559 eval "$ac_cv_use_textbuf"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_TEXTBUFFER" = yes; then
247f5006
VZ
4565 echo "$as_me:$LINENO: result: yes" >&5
4566echo "${ECHO_T}yes" >&6
a3a584a7 4567 else
247f5006
VZ
4568 echo "$as_me:$LINENO: result: no" >&5
4569echo "${ECHO_T}no" >&6
a3a584a7 4570 fi
a3a584a7 4571
247f5006
VZ
4572
4573 echo "$as_me:$LINENO: checking for --enable-textfile" >&5
4574echo $ECHO_N "checking for --enable-textfile... $ECHO_C" >&6
10f2d63a 4575 no_cache=0
1e6feb95
VZ
4576 # Check whether --enable-textfile or --disable-textfile was given.
4577if test "${enable_textfile+set}" = set; then
4578 enableval="$enable_textfile"
247f5006 4579
10f2d63a 4580 if test "$enableval" = yes; then
1e6feb95 4581 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4582 else
1e6feb95 4583 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4584 fi
247f5006 4585
10f2d63a 4586else
247f5006 4587
1e6feb95 4588 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
1e6feb95 4595 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4596
247f5006 4597fi;
10f2d63a 4598
1e6feb95 4599 eval "$ac_cv_use_textfile"
10f2d63a 4600 if test "$no_cache" != 1; then
1e6feb95 4601 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4602 fi
4603
1e6feb95 4604 if test "$wxUSE_TEXTFILE" = yes; then
247f5006
VZ
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
10f2d63a 4607 else
247f5006
VZ
4608 echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
10f2d63a 4610 fi
10f2d63a 4611
247f5006
VZ
4612
4613 echo "$as_me:$LINENO: checking for --enable-fontmap" >&5
4614echo $ECHO_N "checking for --enable-fontmap... $ECHO_C" >&6
10f2d63a 4615 no_cache=0
1e6feb95
VZ
4616 # Check whether --enable-fontmap or --disable-fontmap was given.
4617if test "${enable_fontmap+set}" = set; then
4618 enableval="$enable_fontmap"
247f5006 4619
10f2d63a 4620 if test "$enableval" = yes; then
1e6feb95 4621 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4622 else
1e6feb95 4623 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4624 fi
247f5006 4625
10f2d63a 4626else
247f5006 4627
1e6feb95 4628 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
1e6feb95 4635 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4636
247f5006 4637fi;
10f2d63a 4638
1e6feb95 4639 eval "$ac_cv_use_fontmap"
10f2d63a 4640 if test "$no_cache" != 1; then
1e6feb95 4641 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4642 fi
4643
1e6feb95 4644 if test "$wxUSE_FONTMAP" = yes; then
247f5006
VZ
4645 echo "$as_me:$LINENO: result: yes" >&5
4646echo "${ECHO_T}yes" >&6
10f2d63a 4647 else
247f5006
VZ
4648 echo "$as_me:$LINENO: result: no" >&5
4649echo "${ECHO_T}no" >&6
10f2d63a 4650 fi
10f2d63a 4651
247f5006
VZ
4652
4653 echo "$as_me:$LINENO: checking for --enable-unicode" >&5
4654echo $ECHO_N "checking for --enable-unicode... $ECHO_C" >&6
10f2d63a 4655 no_cache=0
1e6feb95
VZ
4656 # Check whether --enable-unicode or --disable-unicode was given.
4657if test "${enable_unicode+set}" = set; then
4658 enableval="$enable_unicode"
247f5006 4659
1e6feb95
VZ
4660 if test "$enableval" = yes; then
4661 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4662 else
4663 ac_cv_use_unicode='wxUSE_UNICODE=no'
4664 fi
247f5006 4665
1e6feb95 4666else
247f5006 4667
1e6feb95
VZ
4668 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4676
247f5006 4677fi;
1e6feb95
VZ
4678
4679 eval "$ac_cv_use_unicode"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_UNICODE" = yes; then
247f5006
VZ
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
1e6feb95 4687 else
247f5006
VZ
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
1e6feb95 4690 fi
1e6feb95 4691
247f5006
VZ
4692
4693 echo "$as_me:$LINENO: checking for --enable-mslu" >&5
4694echo $ECHO_N "checking for --enable-mslu... $ECHO_C" >&6
a72a4bfa
VS
4695 no_cache=0
4696 # Check whether --enable-mslu or --disable-mslu was given.
4697if test "${enable_mslu+set}" = set; then
4698 enableval="$enable_mslu"
247f5006 4699
a72a4bfa
VS
4700 if test "$enableval" = yes; then
4701 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4702 else
4703 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4704 fi
247f5006 4705
a72a4bfa 4706else
247f5006 4707
a72a4bfa
VS
4708 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4709 if test "x$LINE" != x ; then
4710 eval "DEFAULT_$LINE"
4711 else
4712 no_cache=1
4713 fi
4714
4715 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4716
247f5006 4717fi;
a72a4bfa
VS
4718
4719 eval "$ac_cv_use_mslu"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_UNICODE_MSLU" = yes; then
247f5006
VZ
4725 echo "$as_me:$LINENO: result: yes" >&5
4726echo "${ECHO_T}yes" >&6
a72a4bfa 4727 else
247f5006
VZ
4728 echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6
a72a4bfa 4730 fi
a72a4bfa 4731
247f5006
VZ
4732
4733 echo "$as_me:$LINENO: checking for --enable-wxprintfv" >&5
4734echo $ECHO_N "checking for --enable-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
4735 no_cache=0
4736 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4737if test "${enable_wxprintfv+set}" = set; then
4738 enableval="$enable_wxprintfv"
247f5006 4739
1e6feb95 4740 if test "$enableval" = yes; then
10f2d63a
VZ
4741 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4742 else
4743 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4744 fi
247f5006 4745
10f2d63a 4746else
247f5006 4747
10f2d63a
VZ
4748 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4749 if test "x$LINE" != x ; then
4750 eval "DEFAULT_$LINE"
4751 else
4752 no_cache=1
4753 fi
4754
4755 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 4756
247f5006 4757fi;
10f2d63a
VZ
4758
4759 eval "$ac_cv_use_wxprintfv"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
247f5006
VZ
4765 echo "$as_me:$LINENO: result: yes" >&5
4766echo "${ECHO_T}yes" >&6
10f2d63a 4767 else
247f5006
VZ
4768 echo "$as_me:$LINENO: result: no" >&5
4769echo "${ECHO_T}no" >&6
10f2d63a 4770 fi
10f2d63a 4771
247f5006
VZ
4772
4773 echo "$as_me:$LINENO: checking for --enable-std_iostreams" >&5
4774echo $ECHO_N "checking for --enable-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
4775 no_cache=0
4776 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4777if test "${enable_std_iostreams+set}" = set; then
4778 enableval="$enable_std_iostreams"
247f5006 4779
10f2d63a
VZ
4780 if test "$enableval" = yes; then
4781 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4782 else
4783 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4784 fi
247f5006 4785
10f2d63a 4786else
247f5006 4787
10f2d63a
VZ
4788 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
4795 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 4796
247f5006 4797fi;
10f2d63a
VZ
4798
4799 eval "$ac_cv_use_std_iostreams"
4800 if test "$no_cache" != 1; then
4801 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4802 fi
4803
4804 if test "$wxUSE_STD_IOSTREAM" = yes; then
247f5006
VZ
4805 echo "$as_me:$LINENO: result: yes" >&5
4806echo "${ECHO_T}yes" >&6
10f2d63a 4807 else
247f5006
VZ
4808 echo "$as_me:$LINENO: result: no" >&5
4809echo "${ECHO_T}no" >&6
10f2d63a 4810 fi
10f2d63a 4811
247f5006
VZ
4812
4813 echo "$as_me:$LINENO: checking for --enable-filesystem" >&5
4814echo $ECHO_N "checking for --enable-filesystem... $ECHO_C" >&6
24528b0c
VS
4815 no_cache=0
4816 # Check whether --enable-filesystem or --disable-filesystem was given.
4817if test "${enable_filesystem+set}" = set; then
4818 enableval="$enable_filesystem"
247f5006 4819
24528b0c
VS
4820 if test "$enableval" = yes; then
4821 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4822 else
4823 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4824 fi
247f5006 4825
24528b0c 4826else
247f5006 4827
24528b0c
VS
4828 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4829 if test "x$LINE" != x ; then
4830 eval "DEFAULT_$LINE"
4831 else
4832 no_cache=1
4833 fi
4834
4835 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 4836
247f5006 4837fi;
24528b0c
VS
4838
4839 eval "$ac_cv_use_filesystem"
4840 if test "$no_cache" != 1; then
4841 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4842 fi
4843
4844 if test "$wxUSE_FILESYSTEM" = yes; then
247f5006
VZ
4845 echo "$as_me:$LINENO: result: yes" >&5
4846echo "${ECHO_T}yes" >&6
24528b0c 4847 else
247f5006
VZ
4848 echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6
24528b0c 4850 fi
24528b0c 4851
247f5006
VZ
4852
4853 echo "$as_me:$LINENO: checking for --enable-fs_inet" >&5
4854echo $ECHO_N "checking for --enable-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
4855 no_cache=0
4856 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4857if test "${enable_fs_inet+set}" = set; then
4858 enableval="$enable_fs_inet"
247f5006 4859
10f2d63a
VZ
4860 if test "$enableval" = yes; then
4861 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4862 else
4863 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4864 fi
247f5006 4865
10f2d63a 4866else
247f5006 4867
10f2d63a
VZ
4868 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4869 if test "x$LINE" != x ; then
4870 eval "DEFAULT_$LINE"
4871 else
4872 no_cache=1
4873 fi
4874
4875 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4876
247f5006 4877fi;
10f2d63a
VZ
4878
4879 eval "$ac_cv_use_fs_inet"
4880 if test "$no_cache" != 1; then
4881 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4882 fi
4883
4884 if test "$wxUSE_FS_INET" = yes; then
247f5006
VZ
4885 echo "$as_me:$LINENO: result: yes" >&5
4886echo "${ECHO_T}yes" >&6
10f2d63a 4887 else
247f5006
VZ
4888 echo "$as_me:$LINENO: result: no" >&5
4889echo "${ECHO_T}no" >&6
10f2d63a 4890 fi
10f2d63a 4891
247f5006
VZ
4892
4893 echo "$as_me:$LINENO: checking for --enable-fs_zip" >&5
4894echo $ECHO_N "checking for --enable-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
4895 no_cache=0
4896 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4897if test "${enable_fs_zip+set}" = set; then
4898 enableval="$enable_fs_zip"
247f5006 4899
10f2d63a
VZ
4900 if test "$enableval" = yes; then
4901 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4902 else
4903 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4904 fi
247f5006 4905
10f2d63a 4906else
247f5006 4907
10f2d63a
VZ
4908 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4909 if test "x$LINE" != x ; then
4910 eval "DEFAULT_$LINE"
4911 else
4912 no_cache=1
4913 fi
4914
4915 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 4916
247f5006 4917fi;
10f2d63a
VZ
4918
4919 eval "$ac_cv_use_fs_zip"
4920 if test "$no_cache" != 1; then
4921 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4922 fi
4923
4924 if test "$wxUSE_FS_ZIP" = yes; then
247f5006
VZ
4925 echo "$as_me:$LINENO: result: yes" >&5
4926echo "${ECHO_T}yes" >&6
10f2d63a 4927 else
247f5006
VZ
4928 echo "$as_me:$LINENO: result: no" >&5
4929echo "${ECHO_T}no" >&6
10f2d63a 4930 fi
10f2d63a 4931
247f5006
VZ
4932
4933 echo "$as_me:$LINENO: checking for --enable-zipstream" >&5
4934echo $ECHO_N "checking for --enable-zipstream... $ECHO_C" >&6
10f2d63a
VZ
4935 no_cache=0
4936 # Check whether --enable-zipstream or --disable-zipstream was given.
4937if test "${enable_zipstream+set}" = set; then
4938 enableval="$enable_zipstream"
247f5006 4939
10f2d63a
VZ
4940 if test "$enableval" = yes; then
4941 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4942 else
4943 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4944 fi
247f5006 4945
10f2d63a 4946else
247f5006 4947
10f2d63a
VZ
4948 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4949 if test "x$LINE" != x ; then
4950 eval "DEFAULT_$LINE"
4951 else
4952 no_cache=1
4953 fi
4954
4955 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 4956
247f5006 4957fi;
10f2d63a
VZ
4958
4959 eval "$ac_cv_use_zipstream"
4960 if test "$no_cache" != 1; then
4961 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4962 fi
4963
4964 if test "$wxUSE_ZIPSTREAM" = yes; then
247f5006
VZ
4965 echo "$as_me:$LINENO: result: yes" >&5
4966echo "${ECHO_T}yes" >&6
10f2d63a 4967 else
247f5006
VZ
4968 echo "$as_me:$LINENO: result: no" >&5
4969echo "${ECHO_T}no" >&6
10f2d63a 4970 fi
8284b0c5 4971
52127426 4972
247f5006
VZ
4973
4974 echo "$as_me:$LINENO: checking for --enable-catch_segvs" >&5
4975echo $ECHO_N "checking for --enable-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
4976 no_cache=0
4977 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4978if test "${enable_catch_segvs+set}" = set; then
4979 enableval="$enable_catch_segvs"
247f5006 4980
eb4efbdc
VZ
4981 if test "$enableval" = yes; then
4982 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4983 else
4984 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4985 fi
247f5006 4986
eb4efbdc 4987else
247f5006 4988
eb4efbdc
VZ
4989 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4990 if test "x$LINE" != x ; then
4991 eval "DEFAULT_$LINE"
4992 else
4993 no_cache=1
4994 fi
4995
4996 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 4997
247f5006 4998fi;
eb4efbdc
VZ
4999
5000 eval "$ac_cv_use_catch_segvs"
5001 if test "$no_cache" != 1; then
5002 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5003 fi
5004
5005 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
247f5006
VZ
5006 echo "$as_me:$LINENO: result: yes" >&5
5007echo "${ECHO_T}yes" >&6
eb4efbdc 5008 else
247f5006
VZ
5009 echo "$as_me:$LINENO: result: no" >&5
5010echo "${ECHO_T}no" >&6
eb4efbdc 5011 fi
eb4efbdc 5012
247f5006
VZ
5013
5014 echo "$as_me:$LINENO: checking for --enable-snglinst" >&5
5015echo $ECHO_N "checking for --enable-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5016 no_cache=0
5017 # Check whether --enable-snglinst or --disable-snglinst was given.
5018if test "${enable_snglinst+set}" = set; then
5019 enableval="$enable_snglinst"
247f5006 5020
4f3c5f06
VZ
5021 if test "$enableval" = yes; then
5022 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5023 else
5024 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5025 fi
247f5006 5026
4f3c5f06 5027else
247f5006 5028
4f3c5f06
VZ
5029 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5037
247f5006 5038fi;
4f3c5f06
VZ
5039
5040 eval "$ac_cv_use_snglinst"
5041 if test "$no_cache" != 1; then
5042 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5043 fi
5044
5045 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
247f5006
VZ
5046 echo "$as_me:$LINENO: result: yes" >&5
5047echo "${ECHO_T}yes" >&6
4f3c5f06 5048 else
247f5006
VZ
5049 echo "$as_me:$LINENO: result: no" >&5
5050echo "${ECHO_T}no" >&6
4f3c5f06 5051 fi
52127426 5052
8284b0c5 5053
247f5006
VZ
5054
5055 echo "$as_me:$LINENO: checking for --enable-mimetype" >&5
5056echo $ECHO_N "checking for --enable-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5057 no_cache=0
5058 # Check whether --enable-mimetype or --disable-mimetype was given.
5059if test "${enable_mimetype+set}" = set; then
5060 enableval="$enable_mimetype"
247f5006 5061
1e6feb95
VZ
5062 if test "$enableval" = yes; then
5063 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5064 else
5065 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5066 fi
247f5006 5067
1e6feb95 5068else
247f5006 5069
1e6feb95
VZ
5070 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5071 if test "x$LINE" != x ; then
5072 eval "DEFAULT_$LINE"
5073 else
5074 no_cache=1
5075 fi
5076
5077 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5078
247f5006 5079fi;
1e6feb95
VZ
5080
5081 eval "$ac_cv_use_mimetype"
5082 if test "$no_cache" != 1; then
5083 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5084 fi
5085
5086 if test "$wxUSE_MIMETYPE" = yes; then
247f5006
VZ
5087 echo "$as_me:$LINENO: result: yes" >&5
5088echo "${ECHO_T}yes" >&6
1e6feb95 5089 else
247f5006
VZ
5090 echo "$as_me:$LINENO: result: no" >&5
5091echo "${ECHO_T}no" >&6
1e6feb95 5092 fi
1e6feb95 5093
247f5006
VZ
5094
5095 echo "$as_me:$LINENO: checking for --enable-system_options" >&5
5096echo $ECHO_N "checking for --enable-system_options... $ECHO_C" >&6
3e44f09d
VZ
5097 no_cache=0
5098 # Check whether --enable-system_options or --disable-system_options was given.
5099if test "${enable_system_options+set}" = set; then
5100 enableval="$enable_system_options"
247f5006 5101
3e44f09d
VZ
5102 if test "$enableval" = yes; then
5103 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5104 else
5105 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5106 fi
247f5006 5107
3e44f09d 5108else
247f5006 5109
3e44f09d
VZ
5110 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5111 if test "x$LINE" != x ; then
5112 eval "DEFAULT_$LINE"
5113 else
5114 no_cache=1
5115 fi
5116
5117 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5118
247f5006 5119fi;
3e44f09d
VZ
5120
5121 eval "$ac_cv_use_system_options"
5122 if test "$no_cache" != 1; then
5123 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5124 fi
5125
5126 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
247f5006
VZ
5127 echo "$as_me:$LINENO: result: yes" >&5
5128echo "${ECHO_T}yes" >&6
3e44f09d 5129 else
247f5006
VZ
5130 echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6
3e44f09d 5132 fi
8284b0c5 5133
52127426 5134
247f5006
VZ
5135
5136 echo "$as_me:$LINENO: checking for --enable-url" >&5
5137echo $ECHO_N "checking for --enable-url... $ECHO_C" >&6
4cdb0ab0
VS
5138 no_cache=0
5139 # Check whether --enable-url or --disable-url was given.
5140if test "${enable_url+set}" = set; then
5141 enableval="$enable_url"
247f5006 5142
4cdb0ab0
VS
5143 if test "$enableval" = yes; then
5144 ac_cv_use_url='wxUSE_URL=yes'
5145 else
5146 ac_cv_use_url='wxUSE_URL=no'
5147 fi
247f5006 5148
4cdb0ab0 5149else
247f5006 5150
4cdb0ab0
VS
5151 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5152 if test "x$LINE" != x ; then
5153 eval "DEFAULT_$LINE"
5154 else
5155 no_cache=1
5156 fi
5157
5158 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5159
247f5006 5160fi;
4cdb0ab0
VS
5161
5162 eval "$ac_cv_use_url"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_URL" = yes; then
247f5006
VZ
5168 echo "$as_me:$LINENO: result: yes" >&5
5169echo "${ECHO_T}yes" >&6
4cdb0ab0 5170 else
247f5006
VZ
5171 echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
4cdb0ab0 5173 fi
4cdb0ab0 5174
247f5006
VZ
5175
5176 echo "$as_me:$LINENO: checking for --enable-protocol" >&5
5177echo $ECHO_N "checking for --enable-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5178 no_cache=0
5179 # Check whether --enable-protocol or --disable-protocol was given.
5180if test "${enable_protocol+set}" = set; then
5181 enableval="$enable_protocol"
247f5006 5182
4cdb0ab0
VS
5183 if test "$enableval" = yes; then
5184 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5185 else
5186 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5187 fi
247f5006 5188
4cdb0ab0 5189else
247f5006 5190
4cdb0ab0
VS
5191 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5199
247f5006 5200fi;
4cdb0ab0
VS
5201
5202 eval "$ac_cv_use_protocol"
5203 if test "$no_cache" != 1; then
5204 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5205 fi
5206
5207 if test "$wxUSE_PROTOCOL" = yes; then
247f5006
VZ
5208 echo "$as_me:$LINENO: result: yes" >&5
5209echo "${ECHO_T}yes" >&6
4cdb0ab0 5210 else
247f5006
VZ
5211 echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
4cdb0ab0 5213 fi
4cdb0ab0 5214
247f5006
VZ
5215
5216 echo "$as_me:$LINENO: checking for --enable-protocol_http" >&5
5217echo $ECHO_N "checking for --enable-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5218 no_cache=0
5219 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5220if test "${enable_protocol_http+set}" = set; then
5221 enableval="$enable_protocol_http"
247f5006 5222
4cdb0ab0
VS
5223 if test "$enableval" = yes; then
5224 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5225 else
5226 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5227 fi
247f5006 5228
4cdb0ab0 5229else
247f5006 5230
4cdb0ab0
VS
5231 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5239
247f5006 5240fi;
4cdb0ab0
VS
5241
5242 eval "$ac_cv_use_protocol_http"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
247f5006
VZ
5248 echo "$as_me:$LINENO: result: yes" >&5
5249echo "${ECHO_T}yes" >&6
4cdb0ab0 5250 else
247f5006
VZ
5251 echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6
4cdb0ab0 5253 fi
4cdb0ab0 5254
247f5006
VZ
5255
5256 echo "$as_me:$LINENO: checking for --enable-protocol_ftp" >&5
5257echo $ECHO_N "checking for --enable-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5258 no_cache=0
5259 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5260if test "${enable_protocol_ftp+set}" = set; then
5261 enableval="$enable_protocol_ftp"
247f5006 5262
4cdb0ab0
VS
5263 if test "$enableval" = yes; then
5264 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5265 else
5266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5267 fi
247f5006 5268
4cdb0ab0 5269else
247f5006 5270
4cdb0ab0
VS
5271 LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5279
247f5006 5280fi;
4cdb0ab0
VS
5281
5282 eval "$ac_cv_use_protocol_ftp"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_PROTOCOL_FTP" = yes; then
247f5006
VZ
5288 echo "$as_me:$LINENO: result: yes" >&5
5289echo "${ECHO_T}yes" >&6
4cdb0ab0 5290 else
247f5006
VZ
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
4cdb0ab0 5293 fi
4cdb0ab0 5294
247f5006
VZ
5295
5296 echo "$as_me:$LINENO: checking for --enable-protocol_file" >&5
5297echo $ECHO_N "checking for --enable-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5298 no_cache=0
5299 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5300if test "${enable_protocol_file+set}" = set; then
5301 enableval="$enable_protocol_file"
247f5006 5302
4cdb0ab0
VS
5303 if test "$enableval" = yes; then
5304 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5305 else
5306 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5307 fi
247f5006 5308
4cdb0ab0 5309else
247f5006 5310
4cdb0ab0
VS
5311 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5312 if test "x$LINE" != x ; then
5313 eval "DEFAULT_$LINE"
5314 else
5315 no_cache=1
5316 fi
5317
5318 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5319
247f5006 5320fi;
4cdb0ab0
VS
5321
5322 eval "$ac_cv_use_protocol_file"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_PROTOCOL_FILE" = yes; then
247f5006
VZ
5328 echo "$as_me:$LINENO: result: yes" >&5
5329echo "${ECHO_T}yes" >&6
4cdb0ab0 5330 else
247f5006
VZ
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
4cdb0ab0 5333 fi
52127426 5334
8284b0c5
MB
5335
5336
5337
247f5006
VZ
5338
5339 echo "$as_me:$LINENO: checking for --enable-threads" >&5
5340echo $ECHO_N "checking for --enable-threads... $ECHO_C" >&6
10f2d63a
VZ
5341 no_cache=0
5342 # Check whether --enable-threads or --disable-threads was given.
5343if test "${enable_threads+set}" = set; then
5344 enableval="$enable_threads"
247f5006 5345
10f2d63a
VZ
5346 if test "$enableval" = yes; then
5347 ac_cv_use_threads='wxUSE_THREADS=yes'
5348 else
5349 ac_cv_use_threads='wxUSE_THREADS=no'
5350 fi
247f5006 5351
10f2d63a 5352else
247f5006 5353
10f2d63a
VZ
5354 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5355 if test "x$LINE" != x ; then
5356 eval "DEFAULT_$LINE"
5357 else
5358 no_cache=1
5359 fi
5360
5361 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5362
247f5006 5363fi;
10f2d63a
VZ
5364
5365 eval "$ac_cv_use_threads"
5366 if test "$no_cache" != 1; then
5367 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5368 fi
5369
5370 if test "$wxUSE_THREADS" = yes; then
247f5006
VZ
5371 echo "$as_me:$LINENO: result: yes" >&5
5372echo "${ECHO_T}yes" >&6
10f2d63a 5373 else
247f5006
VZ
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
10f2d63a 5376 fi
247f5006 5377
10f2d63a 5378
b12915c1
VZ
5379if test "$wxUSE_GUI" = "yes"; then
5380
8284b0c5
MB
5381
5382
247f5006
VZ
5383 echo "$as_me:$LINENO: checking for --enable-docview" >&5
5384echo $ECHO_N "checking for --enable-docview... $ECHO_C" >&6
10f2d63a
VZ
5385 no_cache=0
5386 # Check whether --enable-docview or --disable-docview was given.
5387if test "${enable_docview+set}" = set; then
5388 enableval="$enable_docview"
247f5006 5389
10f2d63a
VZ
5390 if test "$enableval" = yes; then
5391 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5392 else
5393 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5394 fi
247f5006 5395
10f2d63a 5396else
247f5006 5397
10f2d63a
VZ
5398 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5399 if test "x$LINE" != x ; then
5400 eval "DEFAULT_$LINE"
5401 else
5402 no_cache=1
5403 fi
5404
5405 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5406
247f5006 5407fi;
10f2d63a
VZ
5408
5409 eval "$ac_cv_use_docview"
5410 if test "$no_cache" != 1; then
5411 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5412 fi
5413
5414 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
247f5006
VZ
5415 echo "$as_me:$LINENO: result: yes" >&5
5416echo "${ECHO_T}yes" >&6
10f2d63a 5417 else
247f5006
VZ
5418 echo "$as_me:$LINENO: result: no" >&5
5419echo "${ECHO_T}no" >&6
10f2d63a 5420 fi
10f2d63a 5421
247f5006
VZ
5422
5423 echo "$as_me:$LINENO: checking for --enable-help" >&5
5424echo $ECHO_N "checking for --enable-help... $ECHO_C" >&6
10f2d63a
VZ
5425 no_cache=0
5426 # Check whether --enable-help or --disable-help was given.
5427if test "${enable_help+set}" = set; then
5428 enableval="$enable_help"
247f5006 5429
10f2d63a
VZ
5430 if test "$enableval" = yes; then
5431 ac_cv_use_help='wxUSE_HELP=yes'
5432 else
5433 ac_cv_use_help='wxUSE_HELP=no'
5434 fi
247f5006 5435
10f2d63a 5436else
247f5006 5437
10f2d63a
VZ
5438 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5439 if test "x$LINE" != x ; then
5440 eval "DEFAULT_$LINE"
5441 else
5442 no_cache=1
5443 fi
5444
5445 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5446
247f5006 5447fi;
10f2d63a
VZ
5448
5449 eval "$ac_cv_use_help"
5450 if test "$no_cache" != 1; then
5451 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5452 fi
5453
5454 if test "$wxUSE_HELP" = yes; then
247f5006
VZ
5455 echo "$as_me:$LINENO: result: yes" >&5
5456echo "${ECHO_T}yes" >&6
10f2d63a 5457 else
247f5006
VZ
5458 echo "$as_me:$LINENO: result: no" >&5
5459echo "${ECHO_T}no" >&6
10f2d63a 5460 fi
10f2d63a 5461
247f5006
VZ
5462
5463 echo "$as_me:$LINENO: checking for --enable-mshtmlhelp" >&5
5464echo $ECHO_N "checking for --enable-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5465 no_cache=0
5466 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5467if test "${enable_mshtmlhelp+set}" = set; then
5468 enableval="$enable_mshtmlhelp"
247f5006 5469
29fd3c0c
VS
5470 if test "$enableval" = yes; then
5471 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5472 else
5473 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5474 fi
247f5006 5475
29fd3c0c 5476else
247f5006 5477
29fd3c0c
VS
5478 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5479 if test "x$LINE" != x ; then
5480 eval "DEFAULT_$LINE"
5481 else
5482 no_cache=1
5483 fi
5484
5485 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5486
247f5006 5487fi;
29fd3c0c
VS
5488
5489 eval "$ac_cv_use_mshtmlhelp"
5490 if test "$no_cache" != 1; then
5491 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5492 fi
5493
5494 if test "$wxUSE_MS_HTML_HELP" = yes; then
247f5006
VZ
5495 echo "$as_me:$LINENO: result: yes" >&5
5496echo "${ECHO_T}yes" >&6
29fd3c0c 5497 else
247f5006
VZ
5498 echo "$as_me:$LINENO: result: no" >&5
5499echo "${ECHO_T}no" >&6
29fd3c0c 5500 fi
29fd3c0c 5501
247f5006
VZ
5502
5503 echo "$as_me:$LINENO: checking for --enable-html" >&5
5504echo $ECHO_N "checking for --enable-html... $ECHO_C" >&6
3379ed37
VZ
5505 no_cache=0
5506 # Check whether --enable-html or --disable-html was given.
5507if test "${enable_html+set}" = set; then
5508 enableval="$enable_html"
247f5006 5509
3379ed37
VZ
5510 if test "$enableval" = yes; then
5511 ac_cv_use_html='wxUSE_HTML=yes'
5512 else
5513 ac_cv_use_html='wxUSE_HTML=no'
5514 fi
247f5006 5515
3379ed37 5516else
247f5006 5517
3379ed37
VZ
5518 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5519 if test "x$LINE" != x ; then
5520 eval "DEFAULT_$LINE"
5521 else
5522 no_cache=1
5523 fi
5524
5525 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5526
247f5006 5527fi;
3379ed37
VZ
5528
5529 eval "$ac_cv_use_html"
5530 if test "$no_cache" != 1; then
5531 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5532 fi
5533
5534 if test "$wxUSE_HTML" = yes; then
247f5006
VZ
5535 echo "$as_me:$LINENO: result: yes" >&5
5536echo "${ECHO_T}yes" >&6
3379ed37 5537 else
247f5006
VZ
5538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
3379ed37 5540 fi
3379ed37 5541
247f5006
VZ
5542
5543 echo "$as_me:$LINENO: checking for --enable-htmlhelp" >&5
5544echo $ECHO_N "checking for --enable-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5545 no_cache=0
5546 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5547if test "${enable_htmlhelp+set}" = set; then
5548 enableval="$enable_htmlhelp"
247f5006 5549
3379ed37
VZ
5550 if test "$enableval" = yes; then
5551 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5552 else
5553 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5554 fi
247f5006 5555
3379ed37 5556else
247f5006 5557
3379ed37
VZ
5558 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5559 if test "x$LINE" != x ; then
5560 eval "DEFAULT_$LINE"
5561 else
5562 no_cache=1
5563 fi
5564
5565 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5566
247f5006 5567fi;
3379ed37
VZ
5568
5569 eval "$ac_cv_use_htmlhelp"
5570 if test "$no_cache" != 1; then
5571 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5572 fi
5573
5574 if test "$wxUSE_WXHTML_HELP" = yes; then
247f5006
VZ
5575 echo "$as_me:$LINENO: result: yes" >&5
5576echo "${ECHO_T}yes" >&6
3379ed37 5577 else
247f5006
VZ
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
3379ed37 5580 fi
3379ed37 5581
247f5006
VZ
5582
5583 echo "$as_me:$LINENO: checking for --enable-constraints" >&5
5584echo $ECHO_N "checking for --enable-constraints... $ECHO_C" >&6
10f2d63a
VZ
5585 no_cache=0
5586 # Check whether --enable-constraints or --disable-constraints was given.
5587if test "${enable_constraints+set}" = set; then
5588 enableval="$enable_constraints"
247f5006 5589
10f2d63a
VZ
5590 if test "$enableval" = yes; then
5591 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5592 else
5593 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5594 fi
247f5006 5595
10f2d63a 5596else
247f5006 5597
10f2d63a
VZ
5598 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5606
247f5006 5607fi;
10f2d63a
VZ
5608
5609 eval "$ac_cv_use_constraints"
5610 if test "$no_cache" != 1; then
5611 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5612 fi
5613
5614 if test "$wxUSE_CONSTRAINTS" = yes; then
247f5006
VZ
5615 echo "$as_me:$LINENO: result: yes" >&5
5616echo "${ECHO_T}yes" >&6
10f2d63a 5617 else
247f5006
VZ
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
10f2d63a 5620 fi
10f2d63a 5621
247f5006
VZ
5622
5623 echo "$as_me:$LINENO: checking for --enable-printarch" >&5
5624echo $ECHO_N "checking for --enable-printarch... $ECHO_C" >&6
10f2d63a
VZ
5625 no_cache=0
5626 # Check whether --enable-printarch or --disable-printarch was given.
5627if test "${enable_printarch+set}" = set; then
5628 enableval="$enable_printarch"
247f5006 5629
10f2d63a
VZ
5630 if test "$enableval" = yes; then
5631 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5632 else
5633 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5634 fi
247f5006 5635
10f2d63a 5636else
247f5006 5637
10f2d63a
VZ
5638 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5646
247f5006 5647fi;
10f2d63a
VZ
5648
5649 eval "$ac_cv_use_printarch"
5650 if test "$no_cache" != 1; then
5651 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5652 fi
5653
5654 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
247f5006
VZ
5655 echo "$as_me:$LINENO: result: yes" >&5
5656echo "${ECHO_T}yes" >&6
10f2d63a 5657 else
247f5006
VZ
5658 echo "$as_me:$LINENO: result: no" >&5
5659echo "${ECHO_T}no" >&6
10f2d63a 5660 fi
10f2d63a 5661
247f5006
VZ
5662
5663 echo "$as_me:$LINENO: checking for --enable-mdi" >&5
5664echo $ECHO_N "checking for --enable-mdi... $ECHO_C" >&6
10f2d63a
VZ
5665 no_cache=0
5666 # Check whether --enable-mdi or --disable-mdi was given.
5667if test "${enable_mdi+set}" = set; then
5668 enableval="$enable_mdi"
247f5006 5669
10f2d63a
VZ
5670 if test "$enableval" = yes; then
5671 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5672 else
5673 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5674 fi
247f5006 5675
10f2d63a 5676else
247f5006 5677
10f2d63a
VZ
5678 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5679 if test "x$LINE" != x ; then
5680 eval "DEFAULT_$LINE"
5681 else
5682 no_cache=1
5683 fi
5684
5685 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 5686
247f5006 5687fi;
10f2d63a
VZ
5688
5689 eval "$ac_cv_use_mdi"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
247f5006
VZ
5695 echo "$as_me:$LINENO: result: yes" >&5
5696echo "${ECHO_T}yes" >&6
10f2d63a 5697 else
247f5006
VZ
5698 echo "$as_me:$LINENO: result: no" >&5
5699echo "${ECHO_T}no" >&6
10f2d63a 5700 fi
698dcdb6 5701
247f5006
VZ
5702
5703 echo "$as_me:$LINENO: checking for --enable-loggui" >&5
5704echo $ECHO_N "checking for --enable-loggui... $ECHO_C" >&6
1e6feb95
VZ
5705 no_cache=0
5706 # Check whether --enable-loggui or --disable-loggui was given.
5707if test "${enable_loggui+set}" = set; then
5708 enableval="$enable_loggui"
247f5006 5709
1e6feb95
VZ
5710 if test "$enableval" = yes; then
5711 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5712 else
5713 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5714 fi
247f5006 5715
1e6feb95 5716else
247f5006 5717
1e6feb95
VZ
5718 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5719 if test "x$LINE" != x ; then
5720 eval "DEFAULT_$LINE"
5721 else
5722 no_cache=1
5723 fi
5724
5725 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 5726
247f5006 5727fi;
1e6feb95
VZ
5728
5729 eval "$ac_cv_use_loggui"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_LOGGUI" = yes; then
247f5006
VZ
5735 echo "$as_me:$LINENO: result: yes" >&5
5736echo "${ECHO_T}yes" >&6
1e6feb95 5737 else
247f5006
VZ
5738 echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6
1e6feb95 5740 fi
1e6feb95 5741
247f5006
VZ
5742
5743 echo "$as_me:$LINENO: checking for --enable-logwin" >&5
5744echo $ECHO_N "checking for --enable-logwin... $ECHO_C" >&6
1e6feb95
VZ
5745 no_cache=0
5746 # Check whether --enable-logwin or --disable-logwin was given.
5747if test "${enable_logwin+set}" = set; then
5748 enableval="$enable_logwin"
247f5006 5749
1e6feb95
VZ
5750 if test "$enableval" = yes; then
5751 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5752 else
5753 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5754 fi
247f5006 5755
1e6feb95 5756else
247f5006 5757
1e6feb95
VZ
5758 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5759 if test "x$LINE" != x ; then
5760 eval "DEFAULT_$LINE"
5761 else
5762 no_cache=1
5763 fi
5764
5765 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 5766
247f5006 5767fi;
1e6feb95
VZ
5768
5769 eval "$ac_cv_use_logwin"
5770 if test "$no_cache" != 1; then
5771 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5772 fi
5773
5774 if test "$wxUSE_LOGWINDOW" = yes; then
247f5006
VZ
5775 echo "$as_me:$LINENO: result: yes" >&5
5776echo "${ECHO_T}yes" >&6
1e6feb95 5777 else
247f5006
VZ
5778 echo "$as_me:$LINENO: result: no" >&5
5779echo "${ECHO_T}no" >&6
1e6feb95 5780 fi
1e6feb95 5781
247f5006
VZ
5782
5783 echo "$as_me:$LINENO: checking for --enable-logdialog" >&5
5784echo $ECHO_N "checking for --enable-logdialog... $ECHO_C" >&6
69d27ff7
MB
5785 no_cache=0
5786 # Check whether --enable-logdialog or --disable-logdialog was given.
5787if test "${enable_logdialog+set}" = set; then
5788 enableval="$enable_logdialog"
247f5006 5789
69d27ff7
MB
5790 if test "$enableval" = yes; then
5791 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5792 else
5793 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5794 fi
247f5006 5795
69d27ff7 5796else
247f5006 5797
69d27ff7
MB
5798 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5799 if test "x$LINE" != x ; then
5800 eval "DEFAULT_$LINE"
5801 else
5802 no_cache=1
5803 fi
5804
5805 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 5806
247f5006 5807fi;
69d27ff7
MB
5808
5809 eval "$ac_cv_use_logdialog"
5810 if test "$no_cache" != 1; then
5811 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5812 fi
5813
5814 if test "$wxUSE_LOGDIALOG" = yes; then
247f5006
VZ
5815 echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6
69d27ff7 5817 else
247f5006
VZ
5818 echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
69d27ff7 5820 fi
8284b0c5 5821
52127426 5822
247f5006
VZ
5823
5824 echo "$as_me:$LINENO: checking for --enable-postscript" >&5
5825echo $ECHO_N "checking for --enable-postscript... $ECHO_C" >&6
10f2d63a
VZ
5826 no_cache=0
5827 # Check whether --enable-postscript or --disable-postscript was given.
5828if test "${enable_postscript+set}" = set; then
5829 enableval="$enable_postscript"
247f5006 5830
10f2d63a
VZ
5831 if test "$enableval" = yes; then
5832 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5833 else
5834 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5835 fi
247f5006 5836
10f2d63a 5837else
247f5006 5838
10f2d63a
VZ
5839 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 5847
247f5006 5848fi;
10f2d63a
VZ
5849
5850 eval "$ac_cv_use_postscript"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_POSTSCRIPT" = yes; then
247f5006
VZ
5856 echo "$as_me:$LINENO: result: yes" >&5
5857echo "${ECHO_T}yes" >&6
10f2d63a 5858 else
247f5006
VZ
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
10f2d63a 5861 fi
8284b0c5
MB
5862
5863
52127426 5864
8284b0c5 5865
247f5006
VZ
5866
5867 echo "$as_me:$LINENO: checking for --enable-prologio" >&5
5868echo $ECHO_N "checking for --enable-prologio... $ECHO_C" >&6
10f2d63a
VZ
5869 no_cache=0
5870 # Check whether --enable-prologio or --disable-prologio was given.
5871if test "${enable_prologio+set}" = set; then
5872 enableval="$enable_prologio"
247f5006 5873
10f2d63a
VZ
5874 if test "$enableval" = yes; then
5875 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5876 else
5877 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5878 fi
247f5006 5879
10f2d63a 5880else
247f5006 5881
10f2d63a
VZ
5882 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 5890
247f5006 5891fi;
10f2d63a
VZ
5892
5893 eval "$ac_cv_use_prologio"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_PROLOGIO" = yes; then
247f5006
VZ
5899 echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
10f2d63a 5901 else
247f5006
VZ
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
10f2d63a 5904 fi
10f2d63a 5905
247f5006
VZ
5906
5907 echo "$as_me:$LINENO: checking for --enable-resources" >&5
5908echo $ECHO_N "checking for --enable-resources... $ECHO_C" >&6
10f2d63a
VZ
5909 no_cache=0
5910 # Check whether --enable-resources or --disable-resources was given.
5911if test "${enable_resources+set}" = set; then
5912 enableval="$enable_resources"
247f5006 5913
10f2d63a
VZ
5914 if test "$enableval" = yes; then
5915 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5916 else
5917 ac_cv_use_resources='wxUSE_RESOURCES=no'
5918 fi
247f5006 5919
10f2d63a 5920else
247f5006 5921
10f2d63a
VZ
5922 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5923 if test "x$LINE" != x ; then
5924 eval "DEFAULT_$LINE"
5925 else
5926 no_cache=1
5927 fi
5928
5929 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 5930
247f5006 5931fi;
10f2d63a
VZ
5932
5933 eval "$ac_cv_use_resources"
5934 if test "$no_cache" != 1; then
5935 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5936 fi
5937
5938 if test "$wxUSE_RESOURCES" = yes; then
247f5006
VZ
5939 echo "$as_me:$LINENO: result: yes" >&5
5940echo "${ECHO_T}yes" >&6
10f2d63a 5941 else
247f5006
VZ
5942 echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
10f2d63a 5944 fi
8284b0c5 5945
52127426 5946
247f5006
VZ
5947
5948 echo "$as_me:$LINENO: checking for --enable-xresources" >&5
5949echo $ECHO_N "checking for --enable-xresources... $ECHO_C" >&6
10f2d63a
VZ
5950 no_cache=0
5951 # Check whether --enable-xresources or --disable-xresources was given.
5952if test "${enable_xresources+set}" = set; then
5953 enableval="$enable_xresources"
247f5006 5954
10f2d63a
VZ
5955 if test "$enableval" = yes; then
5956 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5957 else
5958 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5959 fi
247f5006 5960
10f2d63a 5961else
247f5006 5962
10f2d63a
VZ
5963 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5964 if test "x$LINE" != x ; then
5965 eval "DEFAULT_$LINE"
5966 else
5967 no_cache=1
5968 fi
5969
5970 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
10f2d63a 5971
247f5006 5972fi;
10f2d63a
VZ
5973
5974 eval "$ac_cv_use_xresources"
5975 if test "$no_cache" != 1; then
5976 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5977 fi
5978
5979 if test "$wxUSE_X_RESOURCES" = yes; then
247f5006
VZ
5980 echo "$as_me:$LINENO: result: yes" >&5
5981echo "${ECHO_T}yes" >&6
10f2d63a 5982 else
247f5006
VZ
5983 echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
10f2d63a 5985 fi
8284b0c5
MB
5986
5987
52127426 5988
247f5006
VZ
5989
5990 echo "$as_me:$LINENO: checking for --enable-clipboard" >&5
5991echo $ECHO_N "checking for --enable-clipboard... $ECHO_C" >&6
10f2d63a
VZ
5992 no_cache=0
5993 # Check whether --enable-clipboard or --disable-clipboard was given.
5994if test "${enable_clipboard+set}" = set; then
5995 enableval="$enable_clipboard"
247f5006 5996
10f2d63a
VZ
5997 if test "$enableval" = yes; then
5998 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5999 else
6000 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6001 fi
247f5006 6002
10f2d63a 6003else
247f5006 6004
10f2d63a
VZ
6005 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6013
247f5006 6014fi;
10f2d63a
VZ
6015
6016 eval "$ac_cv_use_clipboard"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_CLIPBOARD" = yes; then
247f5006
VZ
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
10f2d63a 6024 else
247f5006
VZ
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
10f2d63a 6027 fi
10f2d63a 6028
247f5006
VZ
6029
6030 echo "$as_me:$LINENO: checking for --enable-dnd" >&5
6031echo $ECHO_N "checking for --enable-dnd... $ECHO_C" >&6
10f2d63a
VZ
6032 no_cache=0
6033 # Check whether --enable-dnd or --disable-dnd was given.
6034if test "${enable_dnd+set}" = set; then
6035 enableval="$enable_dnd"
247f5006 6036
10f2d63a
VZ
6037 if test "$enableval" = yes; then
6038 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6039 else
6040 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6041 fi
247f5006 6042
10f2d63a 6043else
247f5006 6044
10f2d63a
VZ
6045 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6053
247f5006 6054fi;
10f2d63a
VZ
6055
6056 eval "$ac_cv_use_dnd"
6057 if test "$no_cache" != 1; then
6058 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6059 fi
6060
6061 if test "$wxUSE_DRAG_AND_DROP" = yes; then
247f5006
VZ
6062 echo "$as_me:$LINENO: result: yes" >&5
6063echo "${ECHO_T}yes" >&6
10f2d63a 6064 else
247f5006
VZ
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
10f2d63a 6067 fi
10f2d63a 6068
247f5006
VZ
6069
6070 echo "$as_me:$LINENO: checking for --enable-metafile" >&5
6071echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6
b64f0a5f
RL
6072 no_cache=0
6073 # Check whether --enable-metafile or --disable-metafile was given.
6074if test "${enable_metafile+set}" = set; then
6075 enableval="$enable_metafile"
247f5006 6076
b64f0a5f
RL
6077 if test "$enableval" = yes; then
6078 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6079 else
6080 ac_cv_use_metafile='wxUSE_METAFILE=no'
6081 fi
247f5006 6082
b64f0a5f 6083else
247f5006 6084
b64f0a5f
RL
6085 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6093
247f5006 6094fi;
b64f0a5f
RL
6095
6096 eval "$ac_cv_use_metafile"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_METAFILE" = yes; then
247f5006
VZ
6102 echo "$as_me:$LINENO: result: yes" >&5
6103echo "${ECHO_T}yes" >&6
b64f0a5f 6104 else
247f5006
VZ
6105 echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
b64f0a5f 6107 fi
52127426 6108
8284b0c5 6109
247f5006
VZ
6110
6111 echo "$as_me:$LINENO: checking for --enable-treelayout" >&5
6112echo $ECHO_N "checking for --enable-treelayout... $ECHO_C" >&6
10f2d63a 6113 no_cache=0
24176f2c
GD
6114 # Check whether --enable-treelayout or --disable-treelayout was given.
6115if test "${enable_treelayout+set}" = set; then
6116 enableval="$enable_treelayout"
247f5006 6117
10f2d63a 6118 if test "$enableval" = yes; then
24176f2c 6119 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 6120 else
24176f2c 6121 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 6122 fi
247f5006 6123
10f2d63a 6124else
247f5006 6125
24176f2c 6126 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
6127 if test "x$LINE" != x ; then
6128 eval "DEFAULT_$LINE"
6129 else
6130 no_cache=1
6131 fi
6132
24176f2c 6133 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
10f2d63a 6134
247f5006 6135fi;
10f2d63a 6136
24176f2c 6137 eval "$ac_cv_use_treelayout"
10f2d63a 6138 if test "$no_cache" != 1; then
24176f2c 6139 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6140 fi
6141
24176f2c 6142 if test "$wxUSE_TREELAYOUT" = yes; then
247f5006
VZ
6143 echo "$as_me:$LINENO: result: yes" >&5
6144echo "${ECHO_T}yes" >&6
10f2d63a 6145 else
247f5006
VZ
6146 echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6
10f2d63a 6148 fi
8284b0c5 6149
52127426 6150
8284b0c5 6151
247f5006
VZ
6152
6153 echo "$as_me:$LINENO: checking for --enable-controls" >&5
6154echo $ECHO_N "checking for --enable-controls... $ECHO_C" >&6
10f2d63a
VZ
6155 no_cache=0
6156 # Check whether --enable-controls or --disable-controls was given.
6157if test "${enable_controls+set}" = set; then
6158 enableval="$enable_controls"
247f5006 6159
10f2d63a
VZ
6160 if test "$enableval" = yes; then
6161 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6162 else
6163 ac_cv_use_controls='wxUSE_CONTROLS=no'
6164 fi
247f5006 6165
10f2d63a 6166else
247f5006 6167
10f2d63a
VZ
6168 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6176
247f5006 6177fi;
10f2d63a
VZ
6178
6179 eval "$ac_cv_use_controls"
6180 if test "$no_cache" != 1; then
6181 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6182 fi
6183
6184 if test "$wxUSE_CONTROLS" = yes; then
247f5006
VZ
6185 echo "$as_me:$LINENO: result: yes" >&5
6186echo "${ECHO_T}yes" >&6
10f2d63a 6187 else
247f5006
VZ
6188 echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
10f2d63a 6190 fi
247f5006 6191
10f2d63a
VZ
6192
6193if test "$wxUSE_CONTROLS" = "yes"; then
6194 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6195 DEFAULT_wxUSE_BMPBUTTON=yes
6196 DEFAULT_wxUSE_BUTTON=yes
6197 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6198 DEFAULT_wxUSE_CARET=yes
6199 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6200 DEFAULT_wxUSE_CHECKBOX=yes
6201 DEFAULT_wxUSE_CHECKLISTBOX=yes
6202 DEFAULT_wxUSE_CHOICE=yes
6203 DEFAULT_wxUSE_GAUGE=yes
6204 DEFAULT_wxUSE_GRID=yes
cc977e5f 6205 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
6206 DEFAULT_wxUSE_IMAGLIST=yes
6207 DEFAULT_wxUSE_LISTBOX=yes
6208 DEFAULT_wxUSE_LISTCTRL=yes
6209 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 6210 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
6211 DEFAULT_wxUSE_RADIOBOX=yes
6212 DEFAULT_wxUSE_RADIOBTN=yes
6213 DEFAULT_wxUSE_SASH=yes
6214 DEFAULT_wxUSE_SCROLLBAR=yes
6215 DEFAULT_wxUSE_SLIDER=yes
6216 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6217 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6218 DEFAULT_wxUSE_SPLITTER=yes
6219 DEFAULT_wxUSE_STATBMP=yes
6220 DEFAULT_wxUSE_STATBOX=yes
6221 DEFAULT_wxUSE_STATLINE=yes
6222 DEFAULT_wxUSE_STATUSBAR=yes
6223 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6224 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6225 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6226 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6227 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6228 DEFAULT_wxUSE_TOOLTIPS=yes
6229 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6230 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6231 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6232elif test "$wxUSE_CONTROLS" = "no"; then
6233 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6234 DEFAULT_wxUSE_BMPBUTTON=no
6235 DEFAULT_wxUSE_BUTTON=no
6236 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6237 DEFAULT_wxUSE_CARET=no
6238 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6239 DEFAULT_wxUSE_CHECKBOX=no
6240 DEFAULT_wxUSE_CHECKLISTBOX=no
6241 DEFAULT_wxUSE_CHOICE=no
6242 DEFAULT_wxUSE_GAUGE=no
6243 DEFAULT_wxUSE_GRID=no
6244 DEFAULT_wxUSE_NEW_GRID=no
6245 DEFAULT_wxUSE_IMAGLIST=no
6246 DEFAULT_wxUSE_LISTBOX=no
6247 DEFAULT_wxUSE_LISTCTRL=no
6248 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 6249 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
6250 DEFAULT_wxUSE_RADIOBOX=no
6251 DEFAULT_wxUSE_RADIOBTN=no
6252 DEFAULT_wxUSE_SASH=no
6253 DEFAULT_wxUSE_SCROLLBAR=no
6254 DEFAULT_wxUSE_SLIDER=no
6255 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6256 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6257 DEFAULT_wxUSE_SPLITTER=no
6258 DEFAULT_wxUSE_STATBMP=no
6259 DEFAULT_wxUSE_STATBOX=no
6260 DEFAULT_wxUSE_STATLINE=no
6261 DEFAULT_wxUSE_STATUSBAR=no
6262 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6263 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6264 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6265 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6266 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6267 DEFAULT_wxUSE_TOOLTIPS=no
6268 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6269 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6270 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6271fi
6272
8284b0c5 6273
247f5006
VZ
6274 echo "$as_me:$LINENO: checking for --enable-accel" >&5
6275echo $ECHO_N "checking for --enable-accel... $ECHO_C" >&6
10f2d63a
VZ
6276 no_cache=0
6277 # Check whether --enable-accel or --disable-accel was given.
6278if test "${enable_accel+set}" = set; then
6279 enableval="$enable_accel"
247f5006 6280
10f2d63a
VZ
6281 if test "$enableval" = yes; then
6282 ac_cv_use_accel='wxUSE_ACCEL=yes'
6283 else
6284 ac_cv_use_accel='wxUSE_ACCEL=no'
6285 fi
247f5006 6286
10f2d63a 6287else
247f5006 6288
10f2d63a
VZ
6289 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6290 if test "x$LINE" != x ; then
6291 eval "DEFAULT_$LINE"
6292 else
6293 no_cache=1
6294 fi
6295
6296 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6297
247f5006 6298fi;
10f2d63a
VZ
6299
6300 eval "$ac_cv_use_accel"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_ACCEL" = yes; then
247f5006
VZ
6306 echo "$as_me:$LINENO: result: yes" >&5
6307echo "${ECHO_T}yes" >&6
10f2d63a 6308 else
247f5006
VZ
6309 echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
10f2d63a 6311 fi
10f2d63a 6312
247f5006
VZ
6313
6314 echo "$as_me:$LINENO: checking for --enable-button" >&5
6315echo $ECHO_N "checking for --enable-button... $ECHO_C" >&6
10f2d63a 6316 no_cache=0
1e6feb95
VZ
6317 # Check whether --enable-button or --disable-button was given.
6318if test "${enable_button+set}" = set; then
6319 enableval="$enable_button"
247f5006 6320
10f2d63a 6321 if test "$enableval" = yes; then
1e6feb95 6322 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6323 else
1e6feb95 6324 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6325 fi
247f5006 6326
10f2d63a 6327else
247f5006 6328
1e6feb95 6329 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6330 if test "x$LINE" != x ; then
6331 eval "DEFAULT_$LINE"
6332 else
6333 no_cache=1
6334 fi
6335
1e6feb95 6336 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6337
247f5006 6338fi;
10f2d63a 6339
1e6feb95 6340 eval "$ac_cv_use_button"
10f2d63a 6341 if test "$no_cache" != 1; then
1e6feb95 6342 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6343 fi
6344
1e6feb95 6345 if test "$wxUSE_BUTTON" = yes; then
247f5006
VZ
6346 echo "$as_me:$LINENO: result: yes" >&5
6347echo "${ECHO_T}yes" >&6
10f2d63a 6348 else
247f5006
VZ
6349 echo "$as_me:$LINENO: result: no" >&5
6350echo "${ECHO_T}no" >&6
10f2d63a 6351 fi
10f2d63a 6352
247f5006
VZ
6353
6354 echo "$as_me:$LINENO: checking for --enable-bmpbutton" >&5
6355echo $ECHO_N "checking for --enable-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6356 no_cache=0
6357 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6358if test "${enable_bmpbutton+set}" = set; then
6359 enableval="$enable_bmpbutton"
247f5006 6360
10f2d63a
VZ
6361 if test "$enableval" = yes; then
6362 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6363 else
6364 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6365 fi
247f5006 6366
10f2d63a 6367else
247f5006 6368
10f2d63a
VZ
6369 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6370 if test "x$LINE" != x ; then
6371 eval "DEFAULT_$LINE"
6372 else
6373 no_cache=1
6374 fi
6375
6376 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6377
247f5006 6378fi;
10f2d63a
VZ
6379
6380 eval "$ac_cv_use_bmpbutton"
6381 if test "$no_cache" != 1; then
6382 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6383 fi
6384
6385 if test "$wxUSE_BMPBUTTON" = yes; then
247f5006
VZ
6386 echo "$as_me:$LINENO: result: yes" >&5
6387echo "${ECHO_T}yes" >&6
10f2d63a 6388 else
247f5006
VZ
6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
10f2d63a 6391 fi
10f2d63a 6392
247f5006
VZ
6393
6394 echo "$as_me:$LINENO: checking for --enable-calendar" >&5
6395echo $ECHO_N "checking for --enable-calendar... $ECHO_C" >&6
1e6feb95
VZ
6396 no_cache=0
6397 # Check whether --enable-calendar or --disable-calendar was given.
6398if test "${enable_calendar+set}" = set; then
6399 enableval="$enable_calendar"
247f5006 6400
1e6feb95
VZ
6401 if test "$enableval" = yes; then
6402 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6403 else
6404 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6405 fi
247f5006 6406
1e6feb95 6407else
247f5006 6408
1e6feb95
VZ
6409 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6410 if test "x$LINE" != x ; then
6411 eval "DEFAULT_$LINE"
6412 else
6413 no_cache=1
6414 fi
6415
6416 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6417
247f5006 6418fi;
1e6feb95
VZ
6419
6420 eval "$ac_cv_use_calendar"
6421 if test "$no_cache" != 1; then
6422 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6423 fi
6424
6425 if test "$wxUSE_CALCTRL" = yes; then
247f5006
VZ
6426 echo "$as_me:$LINENO: result: yes" >&5
6427echo "${ECHO_T}yes" >&6
1e6feb95 6428 else
247f5006
VZ
6429 echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
1e6feb95 6431 fi
1e6feb95 6432
247f5006
VZ
6433
6434 echo "$as_me:$LINENO: checking for --enable-caret" >&5
6435echo $ECHO_N "checking for --enable-caret... $ECHO_C" >&6
1e6feb95
VZ
6436 no_cache=0
6437 # Check whether --enable-caret or --disable-caret was given.
6438if test "${enable_caret+set}" = set; then
6439 enableval="$enable_caret"
247f5006 6440
1e6feb95
VZ
6441 if test "$enableval" = yes; then
6442 ac_cv_use_caret='wxUSE_CARET=yes'
6443 else
6444 ac_cv_use_caret='wxUSE_CARET=no'
6445 fi
247f5006 6446
1e6feb95 6447else
247f5006 6448
1e6feb95
VZ
6449 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6450 if test "x$LINE" != x ; then
6451 eval "DEFAULT_$LINE"
6452 else
6453 no_cache=1
6454 fi
6455
6456 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6457
247f5006 6458fi;
1e6feb95
VZ
6459
6460 eval "$ac_cv_use_caret"
6461 if test "$no_cache" != 1; then
6462 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6463 fi
6464
6465 if test "$wxUSE_CARET" = yes; then
247f5006
VZ
6466 echo "$as_me:$LINENO: result: yes" >&5
6467echo "${ECHO_T}yes" >&6
1e6feb95 6468 else
247f5006
VZ
6469 echo "$as_me:$LINENO: result: no" >&5
6470echo "${ECHO_T}no" >&6
1e6feb95 6471 fi
1e6feb95 6472
247f5006
VZ
6473
6474 echo "$as_me:$LINENO: checking for --enable-checkbox" >&5
6475echo $ECHO_N "checking for --enable-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6476 no_cache=0
6477 # Check whether --enable-checkbox or --disable-checkbox was given.
6478if test "${enable_checkbox+set}" = set; then
6479 enableval="$enable_checkbox"
247f5006 6480
10f2d63a
VZ
6481 if test "$enableval" = yes; then
6482 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6483 else
6484 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6485 fi
247f5006 6486
10f2d63a 6487else
247f5006 6488
10f2d63a
VZ
6489 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6490 if test "x$LINE" != x ; then
6491 eval "DEFAULT_$LINE"
6492 else
6493 no_cache=1
6494 fi
6495
6496 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6497
247f5006 6498fi;
10f2d63a
VZ
6499
6500 eval "$ac_cv_use_checkbox"
6501 if test "$no_cache" != 1; then
6502 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6503 fi
6504
6505 if test "$wxUSE_CHECKBOX" = yes; then
247f5006
VZ
6506 echo "$as_me:$LINENO: result: yes" >&5
6507echo "${ECHO_T}yes" >&6
10f2d63a 6508 else
247f5006
VZ
6509 echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6
10f2d63a 6511 fi
10f2d63a 6512
247f5006
VZ
6513
6514 echo "$as_me:$LINENO: checking for --enable-checklst" >&5
6515echo $ECHO_N "checking for --enable-checklst... $ECHO_C" >&6
10f2d63a
VZ
6516 no_cache=0
6517 # Check whether --enable-checklst or --disable-checklst was given.
6518if test "${enable_checklst+set}" = set; then
6519 enableval="$enable_checklst"
247f5006 6520
10f2d63a
VZ
6521 if test "$enableval" = yes; then
6522 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6523 else
6524 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6525 fi
247f5006 6526
10f2d63a 6527else
247f5006 6528
10f2d63a
VZ
6529 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6530 if test "x$LINE" != x ; then
6531 eval "DEFAULT_$LINE"
6532 else
6533 no_cache=1
6534 fi
6535
6536 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6537
247f5006 6538fi;
10f2d63a
VZ
6539
6540 eval "$ac_cv_use_checklst"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6543 fi
6544
6545 if test "$wxUSE_CHECKLST" = yes; then
247f5006
VZ
6546 echo "$as_me:$LINENO: result: yes" >&5
6547echo "${ECHO_T}yes" >&6
10f2d63a 6548 else
247f5006
VZ
6549 echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
10f2d63a 6551 fi
10f2d63a 6552
247f5006
VZ
6553
6554 echo "$as_me:$LINENO: checking for --enable-choice" >&5
6555echo $ECHO_N "checking for --enable-choice... $ECHO_C" >&6
10f2d63a
VZ
6556 no_cache=0
6557 # Check whether --enable-choice or --disable-choice was given.
6558if test "${enable_choice+set}" = set; then
6559 enableval="$enable_choice"
247f5006 6560
10f2d63a
VZ
6561 if test "$enableval" = yes; then
6562 ac_cv_use_choice='wxUSE_CHOICE=yes'
6563 else
6564 ac_cv_use_choice='wxUSE_CHOICE=no'
6565 fi
247f5006 6566
10f2d63a 6567else
247f5006 6568
10f2d63a
VZ
6569 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6577
247f5006 6578fi;
10f2d63a
VZ
6579
6580 eval "$ac_cv_use_choice"
6581 if test "$no_cache" != 1; then
6582 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6583 fi
6584
6585 if test "$wxUSE_CHOICE" = yes; then
247f5006
VZ
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
10f2d63a 6588 else
247f5006
VZ
6589 echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
10f2d63a 6591 fi
10f2d63a 6592
247f5006
VZ
6593
6594 echo "$as_me:$LINENO: checking for --enable-combobox" >&5
6595echo $ECHO_N "checking for --enable-combobox... $ECHO_C" >&6
10f2d63a
VZ
6596 no_cache=0
6597 # Check whether --enable-combobox or --disable-combobox was given.
6598if test "${enable_combobox+set}" = set; then
6599 enableval="$enable_combobox"
247f5006 6600
10f2d63a
VZ
6601 if test "$enableval" = yes; then
6602 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6603 else
6604 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6605 fi
247f5006 6606
10f2d63a 6607else
247f5006 6608
10f2d63a
VZ
6609 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6610 if test "x$LINE" != x ; then
6611 eval "DEFAULT_$LINE"
6612 else
6613 no_cache=1
6614 fi
6615
6616 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6617
247f5006 6618fi;
10f2d63a
VZ
6619
6620 eval "$ac_cv_use_combobox"
6621 if test "$no_cache" != 1; then
6622 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6623 fi
6624
6625 if test "$wxUSE_COMBOBOX" = yes; then
247f5006
VZ
6626 echo "$as_me:$LINENO: result: yes" >&5
6627echo "${ECHO_T}yes" >&6
10f2d63a 6628 else
247f5006
VZ
6629 echo "$as_me:$LINENO: result: no" >&5
6630echo "${ECHO_T}no" >&6
10f2d63a 6631 fi
10f2d63a 6632
247f5006
VZ
6633
6634 echo "$as_me:$LINENO: checking for --enable-gauge" >&5
6635echo $ECHO_N "checking for --enable-gauge... $ECHO_C" >&6
10f2d63a
VZ
6636 no_cache=0
6637 # Check whether --enable-gauge or --disable-gauge was given.
6638if test "${enable_gauge+set}" = set; then
6639 enableval="$enable_gauge"
247f5006 6640
10f2d63a
VZ
6641 if test "$enableval" = yes; then
6642 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6643 else
6644 ac_cv_use_gauge='wxUSE_GAUGE=no'
6645 fi
247f5006 6646
10f2d63a 6647else
247f5006 6648
10f2d63a
VZ
6649 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6650 if test "x$LINE" != x ; then
6651 eval "DEFAULT_$LINE"
6652 else
6653 no_cache=1
6654 fi
6655
6656 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6657
247f5006 6658fi;
10f2d63a
VZ
6659
6660 eval "$ac_cv_use_gauge"
6661 if test "$no_cache" != 1; then
6662 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6663 fi
6664
6665 if test "$wxUSE_GAUGE" = yes; then
247f5006
VZ
6666 echo "$as_me:$LINENO: result: yes" >&5
6667echo "${ECHO_T}yes" >&6
10f2d63a 6668 else
247f5006
VZ
6669 echo "$as_me:$LINENO: result: no" >&5
6670echo "${ECHO_T}no" >&6
10f2d63a 6671 fi
10f2d63a 6672
247f5006
VZ
6673
6674 echo "$as_me:$LINENO: checking for --enable-grid" >&5
6675echo $ECHO_N "checking for --enable-grid... $ECHO_C" >&6
10f2d63a
VZ
6676 no_cache=0
6677 # Check whether --enable-grid or --disable-grid was given.
6678if test "${enable_grid+set}" = set; then
6679 enableval="$enable_grid"
247f5006 6680
10f2d63a
VZ
6681 if test "$enableval" = yes; then
6682 ac_cv_use_grid='wxUSE_GRID=yes'
6683 else
6684 ac_cv_use_grid='wxUSE_GRID=no'
6685 fi
247f5006 6686
10f2d63a 6687else
247f5006 6688
10f2d63a
VZ
6689 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6690 if test "x$LINE" != x ; then
6691 eval "DEFAULT_$LINE"
6692 else
6693 no_cache=1
6694 fi
6695
6696 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 6697
247f5006 6698fi;
10f2d63a
VZ
6699
6700 eval "$ac_cv_use_grid"
6701 if test "$no_cache" != 1; then
6702 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6703 fi
6704
6705 if test "$wxUSE_GRID" = yes; then
247f5006
VZ
6706 echo "$as_me:$LINENO: result: yes" >&5
6707echo "${ECHO_T}yes" >&6
10f2d63a 6708 else
247f5006
VZ
6709 echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6
10f2d63a 6711 fi
10f2d63a 6712
247f5006
VZ
6713
6714 echo "$as_me:$LINENO: checking for --enable-newgrid" >&5
6715echo $ECHO_N "checking for --enable-newgrid... $ECHO_C" >&6
10f2d63a
VZ
6716 no_cache=0
6717 # Check whether --enable-newgrid or --disable-newgrid was given.
6718if test "${enable_newgrid+set}" = set; then
6719 enableval="$enable_newgrid"
247f5006 6720
10f2d63a
VZ
6721 if test "$enableval" = yes; then
6722 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6723 else
6724 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6725 fi
247f5006 6726
10f2d63a 6727else
247f5006 6728
10f2d63a
VZ
6729 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6730 if test "x$LINE" != x ; then
6731 eval "DEFAULT_$LINE"
6732 else
6733 no_cache=1
6734 fi
6735
6736 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
10f2d63a 6737
247f5006 6738fi;
10f2d63a
VZ
6739
6740 eval "$ac_cv_use_newgrid"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6743 fi
6744
6745 if test "$wxUSE_NEW_GRID" = yes; then
247f5006
VZ
6746 echo "$as_me:$LINENO: result: yes" >&5
6747echo "${ECHO_T}yes" >&6
10f2d63a 6748 else
247f5006
VZ
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
10f2d63a 6751 fi
10f2d63a 6752
247f5006
VZ
6753
6754 echo "$as_me:$LINENO: checking for --enable-imaglist" >&5
6755echo $ECHO_N "checking for --enable-imaglist... $ECHO_C" >&6
10f2d63a
VZ
6756 no_cache=0
6757 # Check whether --enable-imaglist or --disable-imaglist was given.
6758if test "${enable_imaglist+set}" = set; then
6759 enableval="$enable_imaglist"
247f5006 6760
10f2d63a
VZ
6761 if test "$enableval" = yes; then
6762 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6763 else
6764 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6765 fi
247f5006 6766
10f2d63a 6767else
247f5006 6768
10f2d63a
VZ
6769 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 6777
247f5006 6778fi;
10f2d63a
VZ
6779
6780 eval "$ac_cv_use_imaglist"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6783 fi
6784
6785 if test "$wxUSE_IMAGLIST" = yes; then
247f5006
VZ
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
10f2d63a 6788 else
247f5006
VZ
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
10f2d63a 6791 fi
10f2d63a 6792
247f5006
VZ
6793
6794 echo "$as_me:$LINENO: checking for --enable-listbox" >&5
6795echo $ECHO_N "checking for --enable-listbox... $ECHO_C" >&6
10f2d63a
VZ
6796 no_cache=0
6797 # Check whether --enable-listbox or --disable-listbox was given.
6798if test "${enable_listbox+set}" = set; then
6799 enableval="$enable_listbox"
247f5006 6800
10f2d63a
VZ
6801 if test "$enableval" = yes; then
6802 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6803 else
6804 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6805 fi
247f5006 6806
10f2d63a 6807else
247f5006 6808
10f2d63a
VZ
6809 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6810 if test "x$LINE" != x ; then
6811 eval "DEFAULT_$LINE"
6812 else
6813 no_cache=1
6814 fi
6815
6816 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 6817
247f5006 6818fi;
10f2d63a
VZ
6819
6820 eval "$ac_cv_use_listbox"
6821 if test "$no_cache" != 1; then
6822 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6823 fi
6824
6825 if test "$wxUSE_LISTBOX" = yes; then
247f5006
VZ
6826 echo "$as_me:$LINENO: result: yes" >&5
6827echo "${ECHO_T}yes" >&6
10f2d63a 6828 else
247f5006
VZ
6829 echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6
10f2d63a 6831 fi
10f2d63a 6832
247f5006
VZ
6833
6834 echo "$as_me:$LINENO: checking for --enable-listctrl" >&5
6835echo $ECHO_N "checking for --enable-listctrl... $ECHO_C" >&6
10f2d63a
VZ
6836 no_cache=0
6837 # Check whether --enable-listctrl or --disable-listctrl was given.
6838if test "${enable_listctrl+set}" = set; then
6839 enableval="$enable_listctrl"
247f5006 6840
10f2d63a
VZ
6841 if test "$enableval" = yes; then
6842 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6843 else
6844 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6845 fi
247f5006 6846
10f2d63a 6847else
247f5006 6848
10f2d63a
VZ
6849 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6850 if test "x$LINE" != x ; then
6851 eval "DEFAULT_$LINE"
6852 else
6853 no_cache=1
6854 fi
6855
6856 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 6857
247f5006 6858fi;
10f2d63a
VZ
6859
6860 eval "$ac_cv_use_listctrl"
6861 if test "$no_cache" != 1; then
6862 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6863 fi
6864
6865 if test "$wxUSE_LISTCTRL" = yes; then
247f5006
VZ
6866 echo "$as_me:$LINENO: result: yes" >&5
6867echo "${ECHO_T}yes" >&6
10f2d63a 6868 else
247f5006
VZ
6869 echo "$as_me:$LINENO: result: no" >&5
6870echo "${ECHO_T}no" >&6
10f2d63a 6871 fi
10f2d63a 6872
247f5006
VZ
6873
6874 echo "$as_me:$LINENO: checking for --enable-notebook" >&5
6875echo $ECHO_N "checking for --enable-notebook... $ECHO_C" >&6
10f2d63a
VZ
6876 no_cache=0
6877 # Check whether --enable-notebook or --disable-notebook was given.
6878if test "${enable_notebook+set}" = set; then
6879 enableval="$enable_notebook"
247f5006 6880
10f2d63a
VZ
6881 if test "$enableval" = yes; then
6882 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6883 else
6884 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6885 fi
247f5006 6886
10f2d63a 6887else
247f5006 6888
10f2d63a
VZ
6889 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6890 if test "x$LINE" != x ; then
6891 eval "DEFAULT_$LINE"
6892 else
6893 no_cache=1
6894 fi
6895
6896 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 6897
247f5006 6898fi;
10f2d63a
VZ
6899
6900 eval "$ac_cv_use_notebook"
6901 if test "$no_cache" != 1; then
6902 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6903 fi
6904
6905 if test "$wxUSE_NOTEBOOK" = yes; then
247f5006
VZ
6906 echo "$as_me:$LINENO: result: yes" >&5
6907echo "${ECHO_T}yes" >&6
10f2d63a 6908 else
247f5006
VZ
6909 echo "$as_me:$LINENO: result: no" >&5
6910echo "${ECHO_T}no" >&6
10f2d63a 6911 fi
10f2d63a 6912
247f5006
VZ
6913
6914 echo "$as_me:$LINENO: checking for --enable-propsheet" >&5
6915echo $ECHO_N "checking for --enable-propsheet... $ECHO_C" >&6
24176f2c
GD
6916 no_cache=0
6917 # Check whether --enable-propsheet or --disable-propsheet was given.
6918if test "${enable_propsheet+set}" = set; then
6919 enableval="$enable_propsheet"
247f5006 6920
24176f2c
GD
6921 if test "$enableval" = yes; then
6922 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6923 else
6924 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6925 fi
247f5006 6926
24176f2c 6927else
247f5006 6928
24176f2c
GD
6929 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6930 if test "x$LINE" != x ; then
6931 eval "DEFAULT_$LINE"
6932 else
6933 no_cache=1
6934 fi
6935
6936 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
24176f2c 6937
247f5006 6938fi;
24176f2c
GD
6939
6940 eval "$ac_cv_use_propsheet"
6941 if test "$no_cache" != 1; then
6942 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6943 fi
6944
6945 if test "$wxUSE_PROPSHEET" = yes; then
247f5006
VZ
6946 echo "$as_me:$LINENO: result: yes" >&5
6947echo "${ECHO_T}yes" >&6
24176f2c 6948 else
247f5006
VZ
6949 echo "$as_me:$LINENO: result: no" >&5
6950echo "${ECHO_T}no" >&6
24176f2c 6951 fi
24176f2c 6952
247f5006
VZ
6953
6954 echo "$as_me:$LINENO: checking for --enable-radiobox" >&5
6955echo $ECHO_N "checking for --enable-radiobox... $ECHO_C" >&6
10f2d63a
VZ
6956 no_cache=0
6957 # Check whether --enable-radiobox or --disable-radiobox was given.
6958if test "${enable_radiobox+set}" = set; then
6959 enableval="$enable_radiobox"
247f5006 6960
10f2d63a
VZ
6961 if test "$enableval" = yes; then
6962 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6963 else
6964 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6965 fi
247f5006 6966
10f2d63a 6967else
247f5006 6968
10f2d63a
VZ
6969 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6970 if test "x$LINE" != x ; then
6971 eval "DEFAULT_$LINE"
6972 else
6973 no_cache=1
6974 fi
6975
6976 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 6977
247f5006 6978fi;
10f2d63a
VZ
6979
6980 eval "$ac_cv_use_radiobox"
6981 if test "$no_cache" != 1; then
6982 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6983 fi
6984
6985 if test "$wxUSE_RADIOBOX" = yes; then
247f5006
VZ
6986 echo "$as_me:$LINENO: result: yes" >&5
6987echo "${ECHO_T}yes" >&6
10f2d63a 6988 else
247f5006
VZ
6989 echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6
10f2d63a 6991 fi
10f2d63a 6992
247f5006
VZ
6993
6994 echo "$as_me:$LINENO: checking for --enable-radiobtn" >&5
6995echo $ECHO_N "checking for --enable-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
6996 no_cache=0
6997 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6998if test "${enable_radiobtn+set}" = set; then
6999 enableval="$enable_radiobtn"
247f5006 7000
10f2d63a
VZ
7001 if test "$enableval" = yes; then
7002 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7003 else
7004 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7005 fi
247f5006 7006
10f2d63a 7007else
247f5006 7008
10f2d63a
VZ
7009 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7010 if test "x$LINE" != x ; then
7011 eval "DEFAULT_$LINE"
7012 else
7013 no_cache=1
7014 fi
7015
7016 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7017
247f5006 7018fi;
10f2d63a
VZ
7019
7020 eval "$ac_cv_use_radiobtn"
7021 if test "$no_cache" != 1; then
7022 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7023 fi
7024
7025 if test "$wxUSE_RADIOBTN" = yes; then
247f5006
VZ
7026 echo "$as_me:$LINENO: result: yes" >&5
7027echo "${ECHO_T}yes" >&6
10f2d63a 7028 else
247f5006
VZ
7029 echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6
10f2d63a 7031 fi
10f2d63a 7032
247f5006
VZ
7033
7034 echo "$as_me:$LINENO: checking for --enable-sash" >&5
7035echo $ECHO_N "checking for --enable-sash... $ECHO_C" >&6
10f2d63a
VZ
7036 no_cache=0
7037 # Check whether --enable-sash or --disable-sash was given.
7038if test "${enable_sash+set}" = set; then
7039 enableval="$enable_sash"
247f5006 7040
10f2d63a
VZ
7041 if test "$enableval" = yes; then
7042 ac_cv_use_sash='wxUSE_SASH=yes'
7043 else
7044 ac_cv_use_sash='wxUSE_SASH=no'
7045 fi
247f5006 7046
10f2d63a 7047else
247f5006 7048
10f2d63a
VZ
7049 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7050 if test "x$LINE" != x ; then
7051 eval "DEFAULT_$LINE"
7052 else
7053 no_cache=1
7054 fi
7055
7056 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7057
247f5006 7058fi;
10f2d63a
VZ
7059
7060 eval "$ac_cv_use_sash"
7061 if test "$no_cache" != 1; then
7062 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7063 fi
7064
7065 if test "$wxUSE_SASH" = yes; then
247f5006
VZ
7066 echo "$as_me:$LINENO: result: yes" >&5
7067echo "${ECHO_T}yes" >&6
10f2d63a 7068 else
247f5006
VZ
7069 echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6
10f2d63a 7071 fi
10f2d63a 7072
247f5006
VZ
7073
7074 echo "$as_me:$LINENO: checking for --enable-scrollbar" >&5
7075echo $ECHO_N "checking for --enable-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7076 no_cache=0
7077 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7078if test "${enable_scrollbar+set}" = set; then
7079 enableval="$enable_scrollbar"
247f5006 7080
10f2d63a
VZ
7081 if test "$enableval" = yes; then
7082 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7083 else
7084 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7085 fi
247f5006 7086
10f2d63a 7087else
247f5006 7088
10f2d63a
VZ
7089 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7090 if test "x$LINE" != x ; then
7091 eval "DEFAULT_$LINE"
7092 else
7093 no_cache=1
7094 fi
7095
7096 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7097
247f5006 7098fi;
10f2d63a
VZ
7099
7100 eval "$ac_cv_use_scrollbar"
7101 if test "$no_cache" != 1; then
7102 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7103 fi
7104
7105 if test "$wxUSE_SCROLLBAR" = yes; then
247f5006
VZ
7106 echo "$as_me:$LINENO: result: yes" >&5
7107echo "${ECHO_T}yes" >&6
10f2d63a 7108 else
247f5006
VZ
7109 echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6
10f2d63a 7111 fi
10f2d63a 7112
247f5006
VZ
7113
7114 echo "$as_me:$LINENO: checking for --enable-slider" >&5
7115echo $ECHO_N "checking for --enable-slider... $ECHO_C" >&6
10f2d63a
VZ
7116 no_cache=0
7117 # Check whether --enable-slider or --disable-slider was given.
7118if test "${enable_slider+set}" = set; then
7119 enableval="$enable_slider"
247f5006 7120
10f2d63a
VZ
7121 if test "$enableval" = yes; then
7122 ac_cv_use_slider='wxUSE_SLIDER=yes'
7123 else
7124 ac_cv_use_slider='wxUSE_SLIDER=no'
7125 fi
247f5006 7126
10f2d63a 7127else
247f5006 7128
10f2d63a
VZ
7129 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7130 if test "x$LINE" != x ; then
7131 eval "DEFAULT_$LINE"
7132 else
7133 no_cache=1
7134 fi
7135
7136 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7137
247f5006 7138fi;
10f2d63a
VZ
7139
7140 eval "$ac_cv_use_slider"
7141 if test "$no_cache" != 1; then
7142 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7143 fi
7144
7145 if test "$wxUSE_SLIDER" = yes; then
247f5006
VZ
7146 echo "$as_me:$LINENO: result: yes" >&5
7147echo "${ECHO_T}yes" >&6
10f2d63a 7148 else
247f5006
VZ
7149 echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6
10f2d63a 7151 fi
10f2d63a 7152
247f5006
VZ
7153
7154 echo "$as_me:$LINENO: checking for --enable-spinbtn" >&5
7155echo $ECHO_N "checking for --enable-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7156 no_cache=0
7157 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7158if test "${enable_spinbtn+set}" = set; then
7159 enableval="$enable_spinbtn"
247f5006 7160
10f2d63a
VZ
7161 if test "$enableval" = yes; then
7162 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7163 else
7164 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7165 fi
247f5006 7166
10f2d63a 7167else
247f5006 7168
10f2d63a
VZ
7169 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7170 if test "x$LINE" != x ; then
7171 eval "DEFAULT_$LINE"
7172 else
7173 no_cache=1
7174 fi
7175
7176 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7177
247f5006 7178fi;
10f2d63a
VZ
7179
7180 eval "$ac_cv_use_spinbtn"
7181 if test "$no_cache" != 1; then
7182 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7183 fi
7184
7185 if test "$wxUSE_SPINBTN" = yes; then
247f5006
VZ
7186 echo "$as_me:$LINENO: result: yes" >&5
7187echo "${ECHO_T}yes" >&6
10f2d63a 7188 else
247f5006
VZ
7189 echo "$as_me:$LINENO: result: no" >&5
7190echo "${ECHO_T}no" >&6
10f2d63a 7191 fi
10f2d63a 7192
247f5006
VZ
7193
7194 echo "$as_me:$LINENO: checking for --enable-spinctrl" >&5
7195echo $ECHO_N "checking for --enable-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7196 no_cache=0
7197 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7198if test "${enable_spinctrl+set}" = set; then
7199 enableval="$enable_spinctrl"
247f5006 7200
56cfaa52
RR
7201 if test "$enableval" = yes; then
7202 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7203 else
7204 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7205 fi
247f5006 7206
56cfaa52 7207else
247f5006 7208
56cfaa52
RR
7209 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7210 if test "x$LINE" != x ; then
7211 eval "DEFAULT_$LINE"
7212 else
7213 no_cache=1
7214 fi
7215
7216 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7217
247f5006 7218fi;
56cfaa52
RR
7219
7220 eval "$ac_cv_use_spinctrl"
7221 if test "$no_cache" != 1; then
7222 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7223 fi
7224
7225 if test "$wxUSE_SPINCTRL" = yes; then
247f5006
VZ
7226 echo "$as_me:$LINENO: result: yes" >&5
7227echo "${ECHO_T}yes" >&6
56cfaa52 7228 else
247f5006
VZ
7229 echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6
56cfaa52 7231 fi
56cfaa52 7232
247f5006
VZ
7233
7234 echo "$as_me:$LINENO: checking for --enable-splitter" >&5
7235echo $ECHO_N "checking for --enable-splitter... $ECHO_C" >&6
10f2d63a
VZ
7236 no_cache=0
7237 # Check whether --enable-splitter or --disable-splitter was given.
7238if test "${enable_splitter+set}" = set; then
7239 enableval="$enable_splitter"
247f5006 7240
10f2d63a
VZ
7241 if test "$enableval" = yes; then
7242 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7243 else
7244 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7245 fi
247f5006 7246
10f2d63a 7247else
247f5006 7248
10f2d63a
VZ
7249 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7250 if test "x$LINE" != x ; then
7251 eval "DEFAULT_$LINE"
7252 else
7253 no_cache=1
7254 fi
7255
7256 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7257
247f5006 7258fi;
10f2d63a
VZ
7259
7260 eval "$ac_cv_use_splitter"
7261 if test "$no_cache" != 1; then
7262 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7263 fi
7264
7265 if test "$wxUSE_SPLITTER" = yes; then
247f5006
VZ
7266 echo "$as_me:$LINENO: result: yes" >&5
7267echo "${ECHO_T}yes" >&6
10f2d63a 7268 else
247f5006
VZ
7269 echo "$as_me:$LINENO: result: no" >&5
7270echo "${ECHO_T}no" >&6
10f2d63a 7271 fi
10f2d63a 7272
247f5006
VZ
7273
7274 echo "$as_me:$LINENO: checking for --enable-statbmp" >&5
7275echo $ECHO_N "checking for --enable-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7276 no_cache=0
7277 # Check whether --enable-statbmp or --disable-statbmp was given.
7278if test "${enable_statbmp+set}" = set; then
7279 enableval="$enable_statbmp"
247f5006 7280
10f2d63a
VZ
7281 if test "$enableval" = yes; then
7282 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7283 else
7284 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7285 fi
247f5006 7286
10f2d63a 7287else
247f5006 7288
10f2d63a
VZ
7289 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7290 if test "x$LINE" != x ; then
7291 eval "DEFAULT_$LINE"
7292 else
7293 no_cache=1
7294 fi
7295
7296 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7297
247f5006 7298fi;
10f2d63a
VZ
7299
7300 eval "$ac_cv_use_statbmp"
7301 if test "$no_cache" != 1; then
7302 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7303 fi
7304
7305 if test "$wxUSE_STATBMP" = yes; then
247f5006
VZ
7306 echo "$as_me:$LINENO: result: yes" >&5
7307echo "${ECHO_T}yes" >&6
10f2d63a 7308 else
247f5006
VZ
7309 echo "$as_me:$LINENO: result: no" >&5
7310echo "${ECHO_T}no" >&6
10f2d63a 7311 fi
10f2d63a 7312
247f5006
VZ
7313
7314 echo "$as_me:$LINENO: checking for --enable-statbox" >&5
7315echo $ECHO_N "checking for --enable-statbox... $ECHO_C" >&6
10f2d63a
VZ
7316 no_cache=0
7317 # Check whether --enable-statbox or --disable-statbox was given.
7318if test "${enable_statbox+set}" = set; then
7319 enableval="$enable_statbox"
247f5006 7320
10f2d63a
VZ
7321 if test "$enableval" = yes; then
7322 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7323 else
7324 ac_cv_use_statbox='wxUSE_STATBOX=no'
7325 fi
247f5006 7326
10f2d63a 7327else
247f5006 7328
10f2d63a
VZ
7329 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7337
247f5006 7338fi;
10f2d63a
VZ
7339
7340 eval "$ac_cv_use_statbox"
7341 if test "$no_cache" != 1; then
7342 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7343 fi
7344
7345 if test "$wxUSE_STATBOX" = yes; then
247f5006
VZ
7346 echo "$as_me:$LINENO: result: yes" >&5
7347echo "${ECHO_T}yes" >&6
10f2d63a 7348 else
247f5006
VZ
7349 echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6
10f2d63a 7351 fi
10f2d63a 7352
247f5006
VZ
7353
7354 echo "$as_me:$LINENO: checking for --enable-statline" >&5
7355echo $ECHO_N "checking for --enable-statline... $ECHO_C" >&6
10f2d63a
VZ
7356 no_cache=0
7357 # Check whether --enable-statline or --disable-statline was given.
7358if test "${enable_statline+set}" = set; then
7359 enableval="$enable_statline"
247f5006 7360
10f2d63a
VZ
7361 if test "$enableval" = yes; then
7362 ac_cv_use_statline='wxUSE_STATLINE=yes'
7363 else
7364 ac_cv_use_statline='wxUSE_STATLINE=no'
7365 fi
247f5006 7366
10f2d63a 7367else
247f5006 7368
10f2d63a
VZ
7369 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
7376 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7377
247f5006 7378fi;
10f2d63a
VZ
7379
7380 eval "$ac_cv_use_statline"
7381 if test "$no_cache" != 1; then
7382 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7383 fi
7384
7385 if test "$wxUSE_STATLINE" = yes; then
247f5006
VZ
7386 echo "$as_me:$LINENO: result: yes" >&5
7387echo "${ECHO_T}yes" >&6
10f2d63a 7388 else
247f5006
VZ
7389 echo "$as_me:$LINENO: result: no" >&5
7390echo "${ECHO_T}no" >&6
10f2d63a 7391 fi
10f2d63a 7392
247f5006
VZ
7393
7394 echo "$as_me:$LINENO: checking for --enable-stattext" >&5
7395echo $ECHO_N "checking for --enable-stattext... $ECHO_C" >&6
1e6feb95
VZ
7396 no_cache=0
7397 # Check whether --enable-stattext or --disable-stattext was given.
7398if test "${enable_stattext+set}" = set; then
7399 enableval="$enable_stattext"
247f5006 7400
1e6feb95
VZ
7401 if test "$enableval" = yes; then
7402 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7403 else
7404 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7405 fi
247f5006 7406
1e6feb95 7407else
247f5006 7408
1e6feb95
VZ
7409 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7410 if test "x$LINE" != x ; then
7411 eval "DEFAULT_$LINE"
7412 else
7413 no_cache=1
7414 fi
7415
7416 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7417
247f5006 7418fi;
1e6feb95
VZ
7419
7420 eval "$ac_cv_use_stattext"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_STATTEXT" = yes; then
247f5006
VZ
7426 echo "$as_me:$LINENO: result: yes" >&5
7427echo "${ECHO_T}yes" >&6
1e6feb95 7428 else
247f5006
VZ
7429 echo "$as_me:$LINENO: result: no" >&5
7430echo "${ECHO_T}no" >&6
1e6feb95 7431 fi
1e6feb95 7432
247f5006
VZ
7433
7434 echo "$as_me:$LINENO: checking for --enable-statusbar" >&5
7435echo $ECHO_N "checking for --enable-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7436 no_cache=0
7437 # Check whether --enable-statusbar or --disable-statusbar was given.
7438if test "${enable_statusbar+set}" = set; then
7439 enableval="$enable_statusbar"
247f5006 7440
10f2d63a
VZ
7441 if test "$enableval" = yes; then
7442 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7443 else
7444 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7445 fi
247f5006 7446
10f2d63a 7447else
247f5006 7448
10f2d63a
VZ
7449 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7450 if test "x$LINE" != x ; then
7451 eval "DEFAULT_$LINE"
7452 else
7453 no_cache=1
7454 fi
7455
7456 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7457
247f5006 7458fi;
10f2d63a
VZ
7459
7460 eval "$ac_cv_use_statusbar"
7461 if test "$no_cache" != 1; then
7462 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7463 fi
7464
7465 if test "$wxUSE_STATUSBAR" = yes; then
247f5006
VZ
7466 echo "$as_me:$LINENO: result: yes" >&5
7467echo "${ECHO_T}yes" >&6
10f2d63a 7468 else
247f5006
VZ
7469 echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6
10f2d63a 7471 fi
10f2d63a 7472
247f5006
VZ
7473
7474 echo "$as_me:$LINENO: checking for --enable-tabdialog" >&5
7475echo $ECHO_N "checking for --enable-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7476 no_cache=0
7477 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7478if test "${enable_tabdialog+set}" = set; then
7479 enableval="$enable_tabdialog"
247f5006 7480
10f2d63a
VZ
7481 if test "$enableval" = yes; then
7482 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7483 else
7484 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7485 fi
247f5006 7486
10f2d63a 7487else
247f5006 7488
10f2d63a
VZ
7489 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7497
247f5006 7498fi;
10f2d63a
VZ
7499
7500 eval "$ac_cv_use_tabdialog"
7501 if test "$no_cache" != 1; then
7502 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7503 fi
7504
7505 if test "$wxUSE_TABDIALOG" = yes; then
247f5006
VZ
7506 echo "$as_me:$LINENO: result: yes" >&5
7507echo "${ECHO_T}yes" >&6
10f2d63a 7508 else
247f5006
VZ
7509 echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6
10f2d63a 7511 fi
10f2d63a 7512
247f5006
VZ
7513
7514 echo "$as_me:$LINENO: checking for --enable-textctrl" >&5
7515echo $ECHO_N "checking for --enable-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7516 no_cache=0
7517 # Check whether --enable-textctrl or --disable-textctrl was given.
7518if test "${enable_textctrl+set}" = set; then
7519 enableval="$enable_textctrl"
247f5006 7520
1e6feb95
VZ
7521 if test "$enableval" = yes; then
7522 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7523 else
7524 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7525 fi
247f5006 7526
1e6feb95 7527else
247f5006 7528
1e6feb95
VZ
7529 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7530 if test "x$LINE" != x ; then
7531 eval "DEFAULT_$LINE"
7532 else
7533 no_cache=1
7534 fi
7535
7536 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7537
247f5006 7538fi;
1e6feb95
VZ
7539
7540 eval "$ac_cv_use_textctrl"
7541 if test "$no_cache" != 1; then
7542 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7543 fi
7544
7545 if test "$wxUSE_TEXTCTRL" = yes; then
247f5006
VZ
7546 echo "$as_me:$LINENO: result: yes" >&5
7547echo "${ECHO_T}yes" >&6
1e6feb95 7548 else
247f5006
VZ
7549 echo "$as_me:$LINENO: result: no" >&5
7550echo "${ECHO_T}no" >&6
1e6feb95 7551 fi
1e6feb95 7552
247f5006
VZ
7553
7554 echo "$as_me:$LINENO: checking for --enable-togglebtn" >&5
7555echo $ECHO_N "checking for --enable-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7556 no_cache=0
7557 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7558if test "${enable_togglebtn+set}" = set; then
7559 enableval="$enable_togglebtn"
247f5006 7560
1db8dc4a
VZ
7561 if test "$enableval" = yes; then
7562 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7563 else
7564 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7565 fi
247f5006 7566
1db8dc4a 7567else
247f5006 7568
1db8dc4a
VZ
7569 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7577
247f5006 7578fi;
1db8dc4a
VZ
7579
7580 eval "$ac_cv_use_togglebtn"
7581 if test "$no_cache" != 1; then
7582 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7583 fi
7584
7585 if test "$wxUSE_TOGGLEBTN" = yes; then
247f5006
VZ
7586 echo "$as_me:$LINENO: result: yes" >&5
7587echo "${ECHO_T}yes" >&6
1db8dc4a 7588 else
247f5006
VZ
7589 echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6
1db8dc4a 7591 fi
1db8dc4a 7592
247f5006
VZ
7593
7594 echo "$as_me:$LINENO: checking for --enable-toolbar" >&5
7595echo $ECHO_N "checking for --enable-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7596 no_cache=0
7597 # Check whether --enable-toolbar or --disable-toolbar was given.
7598if test "${enable_toolbar+set}" = set; then
7599 enableval="$enable_toolbar"
247f5006 7600
10f2d63a
VZ
7601 if test "$enableval" = yes; then
7602 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7603 else
7604 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7605 fi
247f5006 7606
10f2d63a 7607else
247f5006 7608
10f2d63a
VZ
7609 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7617
247f5006 7618fi;
10f2d63a
VZ
7619
7620 eval "$ac_cv_use_toolbar"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_TOOLBAR" = yes; then
247f5006
VZ
7626 echo "$as_me:$LINENO: result: yes" >&5
7627echo "${ECHO_T}yes" >&6
10f2d63a 7628 else
247f5006
VZ
7629 echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6
10f2d63a 7631 fi
10f2d63a 7632
247f5006
VZ
7633
7634 echo "$as_me:$LINENO: checking for --enable-tbarnative" >&5
7635echo $ECHO_N "checking for --enable-tbarnative... $ECHO_C" >&6
360d6699
VZ
7636 no_cache=0
7637 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7638if test "${enable_tbarnative+set}" = set; then
7639 enableval="$enable_tbarnative"
247f5006 7640
360d6699
VZ
7641 if test "$enableval" = yes; then
7642 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7643 else
7644 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7645 fi
247f5006 7646
360d6699 7647else
247f5006 7648
360d6699
VZ
7649 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7650 if test "x$LINE" != x ; then
7651 eval "DEFAULT_$LINE"
7652 else
7653 no_cache=1
7654 fi
7655
7656 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7657
247f5006 7658fi;
360d6699
VZ
7659
7660 eval "$ac_cv_use_tbarnative"
7661 if test "$no_cache" != 1; then
7662 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7663 fi
7664
7665 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
247f5006
VZ
7666 echo "$as_me:$LINENO: result: yes" >&5
7667echo "${ECHO_T}yes" >&6
360d6699 7668 else
247f5006
VZ
7669 echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6
360d6699 7671 fi
360d6699 7672
247f5006
VZ
7673
7674 echo "$as_me:$LINENO: checking for --enable-tbarsmpl" >&5
7675echo $ECHO_N "checking for --enable-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7676 no_cache=0
7677 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7678if test "${enable_tbarsmpl+set}" = set; then
7679 enableval="$enable_tbarsmpl"
247f5006 7680
360d6699
VZ
7681 if test "$enableval" = yes; then
7682 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7683 else
7684 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7685 fi
247f5006 7686
360d6699 7687else
247f5006 7688
360d6699
VZ
7689 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7690 if test "x$LINE" != x ; then
7691 eval "DEFAULT_$LINE"
7692 else
7693 no_cache=1
7694 fi
7695
7696 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7697
247f5006 7698fi;
360d6699
VZ
7699
7700 eval "$ac_cv_use_tbarsmpl"
7701 if test "$no_cache" != 1; then
7702 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7703 fi
7704
7705 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
247f5006
VZ
7706 echo "$as_me:$LINENO: result: yes" >&5
7707echo "${ECHO_T}yes" >&6
360d6699 7708 else
247f5006
VZ
7709 echo "$as_me:$LINENO: result: no" >&5
7710echo "${ECHO_T}no" >&6
360d6699 7711 fi
360d6699 7712
247f5006
VZ
7713
7714 echo "$as_me:$LINENO: checking for --enable-treectrl" >&5
7715echo $ECHO_N "checking for --enable-treectrl... $ECHO_C" >&6
10f2d63a
VZ
7716 no_cache=0
7717 # Check whether --enable-treectrl or --disable-treectrl was given.
7718if test "${enable_treectrl+set}" = set; then
7719 enableval="$enable_treectrl"
247f5006 7720
10f2d63a
VZ
7721 if test "$enableval" = yes; then
7722 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7723 else
7724 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7725 fi
247f5006 7726
10f2d63a 7727else
247f5006 7728
10f2d63a
VZ
7729 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7730 if test "x$LINE" != x ; then
7731 eval "DEFAULT_$LINE"
7732 else
7733 no_cache=1
7734 fi
7735
7736 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 7737
247f5006 7738fi;
10f2d63a 7739
1e6feb95
VZ
7740 eval "$ac_cv_use_treectrl"
7741 if test "$no_cache" != 1; then
7742 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7743 fi
7744
7745 if test "$wxUSE_TREECTRL" = yes; then
247f5006
VZ
7746 echo "$as_me:$LINENO: result: yes" >&5
7747echo "${ECHO_T}yes" >&6
1e6feb95 7748 else
247f5006
VZ
7749 echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6
1e6feb95 7751 fi
1e6feb95 7752
247f5006
VZ
7753
7754 echo "$as_me:$LINENO: checking for --enable-tipwindow" >&5
7755echo $ECHO_N "checking for --enable-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
7756 no_cache=0
7757 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7758if test "${enable_tipwindow+set}" = set; then
7759 enableval="$enable_tipwindow"
247f5006 7760
9926e4a4
VZ
7761 if test "$enableval" = yes; then
7762 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7763 else
7764 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7765 fi
247f5006 7766
9926e4a4 7767else
247f5006 7768
9926e4a4
VZ
7769 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7770 if test "x$LINE" != x ; then
7771 eval "DEFAULT_$LINE"
7772 else
7773 no_cache=1
7774 fi
7775
7776 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 7777
247f5006 7778fi;
9926e4a4
VZ
7779
7780 eval "$ac_cv_use_tipwindow"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_TIPWINDOW" = yes; then
247f5006
VZ
7786 echo "$as_me:$LINENO: result: yes" >&5
7787echo "${ECHO_T}yes" >&6
9926e4a4 7788 else
247f5006
VZ
7789 echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6
9926e4a4 7791 fi
9926e4a4 7792
247f5006
VZ
7793
7794 echo "$as_me:$LINENO: checking for --enable-popupwin" >&5
7795echo $ECHO_N "checking for --enable-popupwin... $ECHO_C" >&6
9f41d601
RR
7796 no_cache=0
7797 # Check whether --enable-popupwin or --disable-popupwin was given.
7798if test "${enable_popupwin+set}" = set; then
7799 enableval="$enable_popupwin"
247f5006 7800
9f41d601
RR
7801 if test "$enableval" = yes; then
7802 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7803 else
7804 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7805 fi
247f5006 7806
9f41d601 7807else
247f5006 7808
9f41d601
RR
7809 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7810 if test "x$LINE" != x ; then
7811 eval "DEFAULT_$LINE"
7812 else
7813 no_cache=1
7814 fi
7815
7816 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 7817
247f5006 7818fi;
9f41d601
RR
7819
7820 eval "$ac_cv_use_popupwin"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_POPUPWIN" = yes; then
247f5006
VZ
7826 echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6
9f41d601 7828 else
247f5006
VZ
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
9f41d601 7831 fi
52127426 7832
8284b0c5
MB
7833
7834
247f5006
VZ
7835
7836 echo "$as_me:$LINENO: checking for --enable-commondlg" >&5
7837echo $ECHO_N "checking for --enable-commondlg... $ECHO_C" >&6
1e6feb95
VZ
7838 no_cache=0
7839 # Check whether --enable-commondlg or --disable-commondlg was given.
7840if test "${enable_commondlg+set}" = set; then
7841 enableval="$enable_commondlg"
247f5006 7842
1e6feb95
VZ
7843 if test "$enableval" = yes; then
7844 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7845 else
7846 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7847 fi
247f5006 7848
1e6feb95 7849else
247f5006 7850
1e6feb95
VZ
7851 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 7859
247f5006 7860fi;
1e6feb95
VZ
7861
7862 eval "$ac_cv_use_commondlg"
7863 if test "$no_cache" != 1; then
7864 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7865 fi
7866
7867 if test "$wxUSE_COMMONDLGS" = yes; then
247f5006
VZ
7868 echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6
1e6feb95 7870 else
247f5006
VZ
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
1e6feb95 7873 fi
1e6feb95 7874
247f5006
VZ
7875
7876 echo "$as_me:$LINENO: checking for --enable-choicedlg" >&5
7877echo $ECHO_N "checking for --enable-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
7878 no_cache=0
7879 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7880if test "${enable_choicedlg+set}" = set; then
7881 enableval="$enable_choicedlg"
247f5006 7882
1e6feb95
VZ
7883 if test "$enableval" = yes; then
7884 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7885 else
7886 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7887 fi
247f5006 7888
1e6feb95 7889else
247f5006 7890
1e6feb95
VZ
7891 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 7899
247f5006 7900fi;
1e6feb95
VZ
7901
7902 eval "$ac_cv_use_choicedlg"
7903 if test "$no_cache" != 1; then
7904 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7905 fi
7906
7907 if test "$wxUSE_CHOICEDLG" = yes; then
247f5006
VZ
7908 echo "$as_me:$LINENO: result: yes" >&5
7909echo "${ECHO_T}yes" >&6
1e6feb95 7910 else
247f5006
VZ
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
1e6feb95 7913 fi
1e6feb95 7914
247f5006
VZ
7915
7916 echo "$as_me:$LINENO: checking for --enable-coldlg" >&5
7917echo $ECHO_N "checking for --enable-coldlg... $ECHO_C" >&6
1e6feb95
VZ
7918 no_cache=0
7919 # Check whether --enable-coldlg or --disable-coldlg was given.
7920if test "${enable_coldlg+set}" = set; then
7921 enableval="$enable_coldlg"
247f5006 7922
1e6feb95
VZ
7923 if test "$enableval" = yes; then
7924 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7925 else
7926 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7927 fi
247f5006 7928
1e6feb95 7929else
247f5006 7930
1e6feb95
VZ
7931 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7932 if test "x$LINE" != x ; then
7933 eval "DEFAULT_$LINE"
7934 else
7935 no_cache=1
7936 fi
7937
7938 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 7939
247f5006 7940fi;
1e6feb95
VZ
7941
7942 eval "$ac_cv_use_coldlg"
7943 if test "$no_cache" != 1; then
7944 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7945 fi
7946
7947 if test "$wxUSE_COLOURDLG" = yes; then
247f5006
VZ
7948 echo "$as_me:$LINENO: result: yes" >&5
7949echo "${ECHO_T}yes" >&6
1e6feb95 7950 else
247f5006
VZ
7951 echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6
1e6feb95 7953 fi
1e6feb95 7954
247f5006
VZ
7955
7956 echo "$as_me:$LINENO: checking for --enable-filedlg" >&5
7957echo $ECHO_N "checking for --enable-filedlg... $ECHO_C" >&6
1e6feb95
VZ
7958 no_cache=0
7959 # Check whether --enable-filedlg or --disable-filedlg was given.
7960if test "${enable_filedlg+set}" = set; then
7961 enableval="$enable_filedlg"
247f5006 7962
1e6feb95
VZ
7963 if test "$enableval" = yes; then
7964 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7965 else
7966 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7967 fi
247f5006 7968
1e6feb95 7969else
247f5006 7970
1e6feb95
VZ
7971 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 7979
247f5006 7980fi;
1e6feb95
VZ
7981
7982 eval "$ac_cv_use_filedlg"
7983 if test "$no_cache" != 1; then
7984 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7985 fi
7986
7987 if test "$wxUSE_FILEDLG" = yes; then
247f5006
VZ
7988 echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6
1e6feb95 7990 else
247f5006
VZ
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
1e6feb95 7993 fi
1e6feb95 7994
247f5006
VZ
7995
7996 echo "$as_me:$LINENO: checking for --enable-finddlg" >&5
7997echo $ECHO_N "checking for --enable-finddlg... $ECHO_C" >&6
8db37e06 7998 no_cache=0
69d27ff7
MB
7999 # Check whether --enable-finddlg or --disable-finddlg was given.
8000if test "${enable_finddlg+set}" = set; then
8001 enableval="$enable_finddlg"
247f5006 8002
8db37e06 8003 if test "$enableval" = yes; then
69d27ff7 8004 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8005 else
69d27ff7 8006 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8007 fi
247f5006 8008
8db37e06 8009else
247f5006 8010
8db37e06
VZ
8011 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8012 if test "x$LINE" != x ; then
8013 eval "DEFAULT_$LINE"
8014 else
8015 no_cache=1
8016 fi
8017
69d27ff7 8018 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8019
247f5006 8020fi;
8db37e06 8021
69d27ff7 8022 eval "$ac_cv_use_finddlg"
8db37e06 8023 if test "$no_cache" != 1; then
69d27ff7 8024 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8025 fi
8026
8027 if test "$wxUSE_FINDREPLDLG" = yes; then
247f5006
VZ
8028 echo "$as_me:$LINENO: result: yes" >&5
8029echo "${ECHO_T}yes" >&6
8db37e06 8030 else
247f5006
VZ
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
8db37e06 8033 fi
8db37e06 8034
247f5006
VZ
8035
8036 echo "$as_me:$LINENO: checking for --enable-fontdlg" >&5
8037echo $ECHO_N "checking for --enable-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8038 no_cache=0
8039 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8040if test "${enable_fontdlg+set}" = set; then
8041 enableval="$enable_fontdlg"
247f5006 8042
1e6feb95
VZ
8043 if test "$enableval" = yes; then
8044 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8045 else
8046 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8047 fi
247f5006 8048
1e6feb95 8049else
247f5006 8050
1e6feb95
VZ
8051 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8052 if test "x$LINE" != x ; then
8053 eval "DEFAULT_$LINE"
8054 else
8055 no_cache=1
8056 fi
8057
8058 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8059
247f5006 8060fi;
1e6feb95
VZ
8061
8062 eval "$ac_cv_use_fontdlg"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_FONTDLG" = yes; then
247f5006
VZ
8068 echo "$as_me:$LINENO: result: yes" >&5
8069echo "${ECHO_T}yes" >&6
1e6feb95 8070 else
247f5006
VZ
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
1e6feb95 8073 fi
1e6feb95 8074
247f5006
VZ
8075
8076 echo "$as_me:$LINENO: checking for --enable-dirdlg" >&5
8077echo $ECHO_N "checking for --enable-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8078 no_cache=0
8079 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8080if test "${enable_dirdlg+set}" = set; then
8081 enableval="$enable_dirdlg"
247f5006 8082
1e6feb95
VZ
8083 if test "$enableval" = yes; then
8084 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8085 else
8086 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8087 fi
247f5006 8088
1e6feb95 8089else
247f5006 8090
1e6feb95
VZ
8091 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8099
247f5006 8100fi;
1e6feb95
VZ
8101
8102 eval "$ac_cv_use_dirdlg"
10f2d63a 8103 if test "$no_cache" != 1; then
1e6feb95 8104 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8105 fi
8106
1e6feb95 8107 if test "$wxUSE_DIRDLG" = yes; then
247f5006
VZ
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
10f2d63a 8110 else
247f5006
VZ
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
10f2d63a 8113 fi
698dcdb6 8114
247f5006
VZ
8115
8116 echo "$as_me:$LINENO: checking for --enable-msgdlg" >&5
8117echo $ECHO_N "checking for --enable-msgdlg... $ECHO_C" >&6
10f2d63a 8118 no_cache=0
1e6feb95
VZ
8119 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8120if test "${enable_msgdlg+set}" = set; then
8121 enableval="$enable_msgdlg"
247f5006 8122
10f2d63a 8123 if test "$enableval" = yes; then
1e6feb95 8124 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8125 else
1e6feb95 8126 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8127 fi
247f5006 8128
10f2d63a 8129else
247f5006 8130
1e6feb95 8131 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8132 if test "x$LINE" != x ; then
8133 eval "DEFAULT_$LINE"
8134 else
8135 no_cache=1
8136 fi
8137
1e6feb95 8138 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8139
247f5006 8140fi;
10f2d63a 8141
1e6feb95 8142 eval "$ac_cv_use_msgdlg"
10f2d63a 8143 if test "$no_cache" != 1; then
1e6feb95 8144 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8145 fi
8146
1e6feb95 8147 if test "$wxUSE_MSGDLG" = yes; then
247f5006
VZ
8148 echo "$as_me:$LINENO: result: yes" >&5
8149echo "${ECHO_T}yes" >&6
10f2d63a 8150 else
247f5006
VZ
8151 echo "$as_me:$LINENO: result: no" >&5
8152echo "${ECHO_T}no" >&6
10f2d63a 8153 fi
10f2d63a 8154
247f5006
VZ
8155
8156 echo "$as_me:$LINENO: checking for --enable-numberdlg" >&5
8157echo $ECHO_N "checking for --enable-numberdlg... $ECHO_C" >&6
10f2d63a 8158 no_cache=0
1e6feb95
VZ
8159 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8160if test "${enable_numberdlg+set}" = set; then
8161 enableval="$enable_numberdlg"
247f5006 8162
10f2d63a 8163 if test "$enableval" = yes; then
1e6feb95 8164 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8165 else
1e6feb95 8166 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8167 fi
247f5006 8168
10f2d63a 8169else
247f5006 8170
1e6feb95 8171 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8172 if test "x$LINE" != x ; then
8173 eval "DEFAULT_$LINE"
8174 else
8175 no_cache=1
8176 fi
8177
1e6feb95 8178 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8179
247f5006 8180fi;
10f2d63a 8181
1e6feb95 8182 eval "$ac_cv_use_numberdlg"
10f2d63a 8183 if test "$no_cache" != 1; then
1e6feb95 8184 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8185 fi
8186
1e6feb95 8187 if test "$wxUSE_NUMBERDLG" = yes; then
247f5006
VZ
8188 echo "$as_me:$LINENO: result: yes" >&5
8189echo "${ECHO_T}yes" >&6
10f2d63a 8190 else
247f5006
VZ
8191 echo "$as_me:$LINENO: result: no" >&5
8192echo "${ECHO_T}no" >&6
10f2d63a 8193 fi
10f2d63a 8194
247f5006
VZ
8195
8196 echo "$as_me:$LINENO: checking for --enable-splash" >&5
8197echo $ECHO_N "checking for --enable-splash... $ECHO_C" >&6
cbca9943
VZ
8198 no_cache=0
8199 # Check whether --enable-splash or --disable-splash was given.
8200if test "${enable_splash+set}" = set; then
8201 enableval="$enable_splash"
247f5006 8202
cbca9943
VZ
8203 if test "$enableval" = yes; then
8204 ac_cv_use_splash='wxUSE_SPLASH=yes'
8205 else
8206 ac_cv_use_splash='wxUSE_SPLASH=no'
8207 fi
247f5006 8208
cbca9943 8209else
247f5006 8210
cbca9943
VZ
8211 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8219
247f5006 8220fi;
cbca9943
VZ
8221
8222 eval "$ac_cv_use_splash"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_SPLASH" = yes; then
247f5006
VZ
8228 echo "$as_me:$LINENO: result: yes" >&5
8229echo "${ECHO_T}yes" >&6
cbca9943 8230 else
247f5006
VZ
8231 echo "$as_me:$LINENO: result: no" >&5
8232echo "${ECHO_T}no" >&6
cbca9943 8233 fi
cbca9943 8234
247f5006
VZ
8235
8236 echo "$as_me:$LINENO: checking for --enable-textdlg" >&5
8237echo $ECHO_N "checking for --enable-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8238 no_cache=0
8239 # Check whether --enable-textdlg or --disable-textdlg was given.
8240if test "${enable_textdlg+set}" = set; then
8241 enableval="$enable_textdlg"
247f5006 8242
10f2d63a
VZ
8243 if test "$enableval" = yes; then
8244 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8245 else
8246 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8247 fi
247f5006 8248
10f2d63a 8249else
247f5006 8250
10f2d63a
VZ
8251 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8252 if test "x$LINE" != x ; then
8253 eval "DEFAULT_$LINE"
8254 else
8255 no_cache=1
8256 fi
8257
8258 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8259
247f5006 8260fi;
10f2d63a
VZ
8261
8262 eval "$ac_cv_use_textdlg"
8263 if test "$no_cache" != 1; then
8264 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8265 fi
8266
8267 if test "$wxUSE_TEXTDLG" = yes; then
247f5006
VZ
8268 echo "$as_me:$LINENO: result: yes" >&5
8269echo "${ECHO_T}yes" >&6
10f2d63a 8270 else
247f5006
VZ
8271 echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6
10f2d63a 8273 fi
10f2d63a 8274
247f5006
VZ
8275
8276 echo "$as_me:$LINENO: checking for --enable-tipdlg" >&5
8277echo $ECHO_N "checking for --enable-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8278 no_cache=0
8279 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8280if test "${enable_tipdlg+set}" = set; then
8281 enableval="$enable_tipdlg"
247f5006 8282
10f2d63a
VZ
8283 if test "$enableval" = yes; then
8284 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8285 else
8286 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8287 fi
247f5006 8288
10f2d63a 8289else
247f5006 8290
10f2d63a
VZ
8291 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8292 if test "x$LINE" != x ; then
8293 eval "DEFAULT_$LINE"
8294 else
8295 no_cache=1
8296 fi
8297
8298 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8299
247f5006 8300fi;
10f2d63a
VZ
8301
8302 eval "$ac_cv_use_tipdlg"
8303 if test "$no_cache" != 1; then
8304 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8305 fi
8306
8307 if test "$wxUSE_STARTUP_TIPS" = yes; then
247f5006
VZ
8308 echo "$as_me:$LINENO: result: yes" >&5
8309echo "${ECHO_T}yes" >&6
10f2d63a 8310 else
247f5006
VZ
8311 echo "$as_me:$LINENO: result: no" >&5
8312echo "${ECHO_T}no" >&6
10f2d63a 8313 fi
10f2d63a 8314
247f5006
VZ
8315
8316 echo "$as_me:$LINENO: checking for --enable-progressdlg" >&5
8317echo $ECHO_N "checking for --enable-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8318 no_cache=0
8319 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8320if test "${enable_progressdlg+set}" = set; then
8321 enableval="$enable_progressdlg"
247f5006 8322
10f2d63a
VZ
8323 if test "$enableval" = yes; then
8324 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8325 else
8326 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8327 fi
247f5006 8328
10f2d63a 8329else
247f5006 8330
10f2d63a
VZ
8331 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8339
247f5006 8340fi;
10f2d63a
VZ
8341
8342 eval "$ac_cv_use_progressdlg"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_PROGRESSDLG" = yes; then
247f5006
VZ
8348 echo "$as_me:$LINENO: result: yes" >&5
8349echo "${ECHO_T}yes" >&6
10f2d63a 8350 else
247f5006
VZ
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
10f2d63a 8353 fi
10f2d63a 8354
247f5006
VZ
8355
8356 echo "$as_me:$LINENO: checking for --enable-wizarddlg" >&5
8357echo $ECHO_N "checking for --enable-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8358 no_cache=0
8359 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8360if test "${enable_wizarddlg+set}" = set; then
8361 enableval="$enable_wizarddlg"
247f5006 8362
b1f5d087
VZ
8363 if test "$enableval" = yes; then
8364 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8365 else
8366 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8367 fi
247f5006 8368
b1f5d087 8369else
247f5006 8370
b1f5d087
VZ
8371 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8372 if test "x$LINE" != x ; then
8373 eval "DEFAULT_$LINE"
8374 else
8375 no_cache=1
8376 fi
8377
8378 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8379
247f5006 8380fi;
b1f5d087
VZ
8381
8382 eval "$ac_cv_use_wizarddlg"
8383 if test "$no_cache" != 1; then
8384 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8385 fi
8386
8387 if test "$wxUSE_WIZARDDLG" = yes; then
247f5006
VZ
8388 echo "$as_me:$LINENO: result: yes" >&5
8389echo "${ECHO_T}yes" >&6
b1f5d087 8390 else
247f5006
VZ
8391 echo "$as_me:$LINENO: result: no" >&5
8392echo "${ECHO_T}no" >&6
b1f5d087 8393 fi
8284b0c5
MB
8394
8395
52127426 8396
247f5006
VZ
8397
8398 echo "$as_me:$LINENO: checking for --enable-menus" >&5
8399echo $ECHO_N "checking for --enable-menus... $ECHO_C" >&6
1e6feb95
VZ
8400 no_cache=0
8401 # Check whether --enable-menus or --disable-menus was given.
8402if test "${enable_menus+set}" = set; then
8403 enableval="$enable_menus"
247f5006 8404
1e6feb95
VZ
8405 if test "$enableval" = yes; then
8406 ac_cv_use_menus='wxUSE_MENUS=yes'
8407 else
8408 ac_cv_use_menus='wxUSE_MENUS=no'
8409 fi
247f5006 8410
1e6feb95 8411else
247f5006 8412
1e6feb95
VZ
8413 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8414 if test "x$LINE" != x ; then
8415 eval "DEFAULT_$LINE"
8416 else
8417 no_cache=1
8418 fi
8419
8420 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8421
247f5006 8422fi;
1e6feb95
VZ
8423
8424 eval "$ac_cv_use_menus"
8425 if test "$no_cache" != 1; then
8426 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8427 fi
8428
8429 if test "$wxUSE_MENUS" = yes; then
247f5006
VZ
8430 echo "$as_me:$LINENO: result: yes" >&5
8431echo "${ECHO_T}yes" >&6
1e6feb95 8432 else
247f5006
VZ
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
1e6feb95 8435 fi
1e6feb95 8436
247f5006
VZ
8437
8438 echo "$as_me:$LINENO: checking for --enable-miniframe" >&5
8439echo $ECHO_N "checking for --enable-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8440 no_cache=0
8441 # Check whether --enable-miniframe or --disable-miniframe was given.
8442if test "${enable_miniframe+set}" = set; then
8443 enableval="$enable_miniframe"
247f5006 8444
10f2d63a
VZ
8445 if test "$enableval" = yes; then
8446 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8447 else
8448 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8449 fi
247f5006 8450
10f2d63a 8451else
247f5006 8452
10f2d63a
VZ
8453 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8454 if test "x$LINE" != x ; then
8455 eval "DEFAULT_$LINE"
8456 else
8457 no_cache=1
8458 fi
8459
8460 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8461
247f5006 8462fi;
10f2d63a
VZ
8463
8464 eval "$ac_cv_use_miniframe"
8465 if test "$no_cache" != 1; then
8466 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8467 fi
8468
8469 if test "$wxUSE_MINIFRAME" = yes; then
247f5006
VZ
8470 echo "$as_me:$LINENO: result: yes" >&5
8471echo "${ECHO_T}yes" >&6
10f2d63a 8472 else
247f5006
VZ
8473 echo "$as_me:$LINENO: result: no" >&5
8474echo "${ECHO_T}no" >&6
10f2d63a 8475 fi
10f2d63a 8476
247f5006
VZ
8477
8478 echo "$as_me:$LINENO: checking for --enable-tooltips" >&5
8479echo $ECHO_N "checking for --enable-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8480 no_cache=0
8481 # Check whether --enable-tooltips or --disable-tooltips was given.
8482if test "${enable_tooltips+set}" = set; then
8483 enableval="$enable_tooltips"
247f5006 8484
10f2d63a
VZ
8485 if test "$enableval" = yes; then
8486 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8487 else
8488 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8489 fi
247f5006 8490
10f2d63a 8491else
247f5006 8492
10f2d63a
VZ
8493 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8494 if test "x$LINE" != x ; then
8495 eval "DEFAULT_$LINE"
8496 else
8497 no_cache=1
8498 fi
8499
8500 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8501
247f5006 8502fi;
10f2d63a
VZ
8503
8504 eval "$ac_cv_use_tooltips"
8505 if test "$no_cache" != 1; then
8506 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8507 fi
8508
8509 if test "$wxUSE_TOOLTIPS" = yes; then
247f5006
VZ
8510 echo "$as_me:$LINENO: result: yes" >&5
8511echo "${ECHO_T}yes" >&6
10f2d63a 8512 else
247f5006
VZ
8513 echo "$as_me:$LINENO: result: no" >&5
8514echo "${ECHO_T}no" >&6
10f2d63a 8515 fi
10f2d63a 8516
247f5006
VZ
8517
8518 echo "$as_me:$LINENO: checking for --enable-splines" >&5
8519echo $ECHO_N "checking for --enable-splines... $ECHO_C" >&6
10f2d63a
VZ
8520 no_cache=0
8521 # Check whether --enable-splines or --disable-splines was given.
8522if test "${enable_splines+set}" = set; then
8523 enableval="$enable_splines"
247f5006 8524
10f2d63a
VZ
8525 if test "$enableval" = yes; then
8526 ac_cv_use_splines='wxUSE_SPLINES=yes'
8527 else
8528 ac_cv_use_splines='wxUSE_SPLINES=no'
8529 fi
247f5006 8530
10f2d63a 8531else
247f5006 8532
10f2d63a
VZ
8533 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8534 if test "x$LINE" != x ; then
8535 eval "DEFAULT_$LINE"
8536 else
8537 no_cache=1
8538 fi
8539
8540 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8541
247f5006 8542fi;
10f2d63a
VZ
8543
8544 eval "$ac_cv_use_splines"
8545 if test "$no_cache" != 1; then
8546 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8547 fi
8548
8549 if test "$wxUSE_SPLINES" = yes; then
247f5006
VZ
8550 echo "$as_me:$LINENO: result: yes" >&5
8551echo "${ECHO_T}yes" >&6
10f2d63a 8552 else
247f5006
VZ
8553 echo "$as_me:$LINENO: result: no" >&5
8554echo "${ECHO_T}no" >&6
10f2d63a 8555 fi
10f2d63a 8556
247f5006
VZ
8557
8558 echo "$as_me:$LINENO: checking for --enable-validators" >&5
8559echo $ECHO_N "checking for --enable-validators... $ECHO_C" >&6
10f2d63a
VZ
8560 no_cache=0
8561 # Check whether --enable-validators or --disable-validators was given.
8562if test "${enable_validators+set}" = set; then
8563 enableval="$enable_validators"
247f5006 8564
10f2d63a
VZ
8565 if test "$enableval" = yes; then
8566 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8567 else
8568 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8569 fi
247f5006 8570
10f2d63a 8571else
247f5006 8572
10f2d63a
VZ
8573 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8574 if test "x$LINE" != x ; then
8575 eval "DEFAULT_$LINE"
8576 else
8577 no_cache=1
8578 fi
8579
8580 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8581
247f5006 8582fi;
10f2d63a
VZ
8583
8584 eval "$ac_cv_use_validators"
8585 if test "$no_cache" != 1; then
8586 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8587 fi
8588
8589 if test "$wxUSE_VALIDATORS" = yes; then
247f5006
VZ
8590 echo "$as_me:$LINENO: result: yes" >&5
8591echo "${ECHO_T}yes" >&6
10f2d63a 8592 else
247f5006
VZ
8593 echo "$as_me:$LINENO: result: no" >&5
8594echo "${ECHO_T}no" >&6
10f2d63a 8595 fi
10f2d63a 8596
247f5006
VZ
8597
8598 echo "$as_me:$LINENO: checking for --enable-busyinfo" >&5
8599echo $ECHO_N "checking for --enable-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8600 no_cache=0
8601 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8602if test "${enable_busyinfo+set}" = set; then
8603 enableval="$enable_busyinfo"
247f5006 8604
10f2d63a
VZ
8605 if test "$enableval" = yes; then
8606 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8607 else
8608 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8609 fi
247f5006 8610
10f2d63a 8611else
247f5006 8612
10f2d63a
VZ
8613 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8614 if test "x$LINE" != x ; then
8615 eval "DEFAULT_$LINE"
8616 else
8617 no_cache=1
8618 fi
8619
8620 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8621
247f5006 8622fi;
10f2d63a
VZ
8623
8624 eval "$ac_cv_use_busyinfo"
8625 if test "$no_cache" != 1; then
8626 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8627 fi
8628
8629 if test "$wxUSE_BUSYINFO" = yes; then
247f5006
VZ
8630 echo "$as_me:$LINENO: result: yes" >&5
8631echo "${ECHO_T}yes" >&6
10f2d63a 8632 else
247f5006
VZ
8633 echo "$as_me:$LINENO: result: no" >&5
8634echo "${ECHO_T}no" >&6
10f2d63a 8635 fi
10f2d63a 8636
247f5006
VZ
8637
8638 echo "$as_me:$LINENO: checking for --enable-joystick" >&5
8639echo $ECHO_N "checking for --enable-joystick... $ECHO_C" >&6
f6bcfd97
BP
8640 no_cache=0
8641 # Check whether --enable-joystick or --disable-joystick was given.
8642if test "${enable_joystick+set}" = set; then
8643 enableval="$enable_joystick"
247f5006 8644
f6bcfd97
BP
8645 if test "$enableval" = yes; then
8646 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8647 else
8648 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8649 fi
247f5006 8650
f6bcfd97 8651else
247f5006 8652
f6bcfd97
BP
8653 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8654 if test "x$LINE" != x ; then
8655 eval "DEFAULT_$LINE"
8656 else
8657 no_cache=1
8658 fi
8659
8660 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8661
247f5006 8662fi;
f6bcfd97
BP
8663
8664 eval "$ac_cv_use_joystick"
8665 if test "$no_cache" != 1; then
8666 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8667 fi
8668
8669 if test "$wxUSE_JOYSTICK" = yes; then
247f5006
VZ
8670 echo "$as_me:$LINENO: result: yes" >&5
8671echo "${ECHO_T}yes" >&6
f6bcfd97 8672 else
247f5006
VZ
8673 echo "$as_me:$LINENO: result: no" >&5
8674echo "${ECHO_T}no" >&6
f6bcfd97 8675 fi
698dcdb6 8676
247f5006
VZ
8677
8678 echo "$as_me:$LINENO: checking for --enable-metafile" >&5
8679echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6
1e6feb95
VZ
8680 no_cache=0
8681 # Check whether --enable-metafile or --disable-metafile was given.
8682if test "${enable_metafile+set}" = set; then
8683 enableval="$enable_metafile"
247f5006 8684
1e6feb95
VZ
8685 if test "$enableval" = yes; then
8686 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8687 else
8688 ac_cv_use_metafile='wxUSE_METAFILE=no'
8689 fi
247f5006 8690
1e6feb95 8691else
247f5006 8692
1e6feb95
VZ
8693 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8694 if test "x$LINE" != x ; then
8695 eval "DEFAULT_$LINE"
8696 else
8697 no_cache=1
8698 fi
8699
8700 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 8701
247f5006 8702fi;
1e6feb95
VZ
8703
8704 eval "$ac_cv_use_metafile"
8705 if test "$no_cache" != 1; then
8706 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8707 fi
8708
8709 if test "$wxUSE_METAFILE" = yes; then
247f5006
VZ
8710 echo "$as_me:$LINENO: result: yes" >&5
8711echo "${ECHO_T}yes" >&6
1e6feb95 8712 else
247f5006
VZ
8713 echo "$as_me:$LINENO: result: no" >&5
8714echo "${ECHO_T}no" >&6
1e6feb95 8715 fi
1e6feb95 8716
247f5006
VZ
8717
8718 echo "$as_me:$LINENO: checking for --enable-dragimage" >&5
8719echo $ECHO_N "checking for --enable-dragimage... $ECHO_C" >&6
24fd6d87
VZ
8720 no_cache=0
8721 # Check whether --enable-dragimage or --disable-dragimage was given.
8722if test "${enable_dragimage+set}" = set; then
8723 enableval="$enable_dragimage"
247f5006 8724
24fd6d87
VZ
8725 if test "$enableval" = yes; then
8726 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8727 else
8728 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8729 fi
247f5006 8730
24fd6d87 8731else
247f5006 8732
24fd6d87
VZ
8733 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8734 if test "x$LINE" != x ; then
8735 eval "DEFAULT_$LINE"
8736 else
8737 no_cache=1
8738 fi
8739
8740 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 8741
247f5006 8742fi;
24fd6d87
VZ
8743
8744 eval "$ac_cv_use_dragimage"
8745 if test "$no_cache" != 1; then
8746 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8747 fi
8748
8749 if test "$wxUSE_DRAGIMAGE" = yes; then
247f5006
VZ
8750 echo "$as_me:$LINENO: result: yes" >&5
8751echo "${ECHO_T}yes" >&6
24fd6d87 8752 else
247f5006
VZ
8753 echo "$as_me:$LINENO: result: no" >&5
8754echo "${ECHO_T}no" >&6
24fd6d87 8755 fi
52127426 8756
8284b0c5
MB
8757
8758
247f5006
VZ
8759
8760 echo "$as_me:$LINENO: checking for --enable-palette" >&5
8761echo $ECHO_N "checking for --enable-palette... $ECHO_C" >&6
edae8572
VZ
8762 no_cache=0
8763 # Check whether --enable-palette or --disable-palette was given.
8764if test "${enable_palette+set}" = set; then
8765 enableval="$enable_palette"
247f5006 8766
edae8572
VZ
8767 if test "$enableval" = yes; then
8768 ac_cv_use_palette='wxUSE_PALETTE=yes'
8769 else
8770 ac_cv_use_palette='wxUSE_PALETTE=no'
8771 fi
247f5006 8772
edae8572 8773else
247f5006 8774
edae8572
VZ
8775 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8776 if test "x$LINE" != x ; then
8777 eval "DEFAULT_$LINE"
8778 else
8779 no_cache=1
8780 fi
8781
8782 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 8783
247f5006 8784fi;
edae8572
VZ
8785
8786 eval "$ac_cv_use_palette"
8787 if test "$no_cache" != 1; then
8788 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8789 fi
8790
8791 if test "$wxUSE_PALETTE" = yes; then
247f5006
VZ
8792 echo "$as_me:$LINENO: result: yes" >&5
8793echo "${ECHO_T}yes" >&6
edae8572 8794 else
247f5006
VZ
8795 echo "$as_me:$LINENO: result: no" >&5
8796echo "${ECHO_T}no" >&6
edae8572 8797 fi
edae8572 8798
247f5006
VZ
8799
8800 echo "$as_me:$LINENO: checking for --enable-image" >&5
8801echo $ECHO_N "checking for --enable-image... $ECHO_C" >&6
0046ff7c
VS
8802 no_cache=0
8803 # Check whether --enable-image or --disable-image was given.
8804if test "${enable_image+set}" = set; then
8805 enableval="$enable_image"
247f5006 8806
0046ff7c
VS
8807 if test "$enableval" = yes; then
8808 ac_cv_use_image='wxUSE_IMAGE=yes'
8809 else
8810 ac_cv_use_image='wxUSE_IMAGE=no'
8811 fi
247f5006 8812
0046ff7c 8813else
247f5006 8814
0046ff7c
VS
8815 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8816 if test "x$LINE" != x ; then
8817 eval "DEFAULT_$LINE"
8818 else
8819 no_cache=1
8820 fi
8821
8822 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 8823
247f5006 8824fi;
0046ff7c
VS
8825
8826 eval "$ac_cv_use_image"
8827 if test "$no_cache" != 1; then
8828 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8829 fi
8830
8831 if test "$wxUSE_IMAGE" = yes; then
247f5006
VZ
8832 echo "$as_me:$LINENO: result: yes" >&5
8833echo "${ECHO_T}yes" >&6
0046ff7c 8834 else
247f5006
VZ
8835 echo "$as_me:$LINENO: result: no" >&5
8836echo "${ECHO_T}no" >&6
0046ff7c 8837 fi
0046ff7c 8838
247f5006
VZ
8839
8840 echo "$as_me:$LINENO: checking for --enable-gif" >&5
8841echo $ECHO_N "checking for --enable-gif... $ECHO_C" >&6
10f2d63a
VZ
8842 no_cache=0
8843 # Check whether --enable-gif or --disable-gif was given.
8844if test "${enable_gif+set}" = set; then
8845 enableval="$enable_gif"
247f5006 8846
10f2d63a
VZ
8847 if test "$enableval" = yes; then
8848 ac_cv_use_gif='wxUSE_GIF=yes'
8849 else
8850 ac_cv_use_gif='wxUSE_GIF=no'
8851 fi
247f5006 8852
10f2d63a 8853else
247f5006 8854
10f2d63a
VZ
8855 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8856 if test "x$LINE" != x ; then
8857 eval "DEFAULT_$LINE"
8858 else
8859 no_cache=1
8860 fi
8861
8862 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 8863
247f5006 8864fi;
10f2d63a
VZ
8865
8866 eval "$ac_cv_use_gif"
8867 if test "$no_cache" != 1; then
8868 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8869 fi
8870
8871 if test "$wxUSE_GIF" = yes; then
247f5006
VZ
8872 echo "$as_me:$LINENO: result: yes" >&5
8873echo "${ECHO_T}yes" >&6
10f2d63a 8874 else
247f5006
VZ
8875 echo "$as_me:$LINENO: result: no" >&5
8876echo "${ECHO_T}no" >&6
10f2d63a 8877 fi
10f2d63a 8878
247f5006
VZ
8879
8880 echo "$as_me:$LINENO: checking for --enable-pcx" >&5
8881echo $ECHO_N "checking for --enable-pcx... $ECHO_C" >&6
10f2d63a
VZ
8882 no_cache=0
8883 # Check whether --enable-pcx or --disable-pcx was given.
8884if test "${enable_pcx+set}" = set; then
8885 enableval="$enable_pcx"
247f5006 8886
10f2d63a
VZ
8887 if test "$enableval" = yes; then
8888 ac_cv_use_pcx='wxUSE_PCX=yes'
8889 else
8890 ac_cv_use_pcx='wxUSE_PCX=no'
8891 fi
247f5006 8892
10f2d63a 8893else
247f5006 8894
10f2d63a
VZ
8895 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8896 if test "x$LINE" != x ; then
8897 eval "DEFAULT_$LINE"
8898 else
8899 no_cache=1
8900 fi
8901
8902 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 8903
247f5006 8904fi;
10f2d63a
VZ
8905
8906 eval "$ac_cv_use_pcx"
8907 if test "$no_cache" != 1; then
8908 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8909 fi
8910
8911 if test "$wxUSE_PCX" = yes; then
247f5006
VZ
8912 echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6
10f2d63a 8914 else
247f5006
VZ
8915 echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
10f2d63a 8917 fi
10f2d63a 8918
247f5006
VZ
8919
8920 echo "$as_me:$LINENO: checking for --enable-iff" >&5
8921echo $ECHO_N "checking for --enable-iff... $ECHO_C" >&6
4b6b4dfc
RR
8922 no_cache=0
8923 # Check whether --enable-iff or --disable-iff was given.
8924if test "${enable_iff+set}" = set; then
8925 enableval="$enable_iff"
247f5006 8926
4b6b4dfc
RR
8927 if test "$enableval" = yes; then
8928 ac_cv_use_iff='wxUSE_IFF=yes'
8929 else
8930 ac_cv_use_iff='wxUSE_IFF=no'
8931 fi
247f5006 8932
4b6b4dfc 8933else
247f5006 8934
4b6b4dfc
RR
8935 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8936 if test "x$LINE" != x ; then
8937 eval "DEFAULT_$LINE"
8938 else
8939 no_cache=1
8940 fi
8941
8942 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 8943
247f5006 8944fi;
4b6b4dfc
RR
8945
8946 eval "$ac_cv_use_iff"
8947 if test "$no_cache" != 1; then
8948 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8949 fi
8950
8951 if test "$wxUSE_IFF" = yes; then
247f5006
VZ
8952 echo "$as_me:$LINENO: result: yes" >&5
8953echo "${ECHO_T}yes" >&6
4b6b4dfc 8954 else
247f5006
VZ
8955 echo "$as_me:$LINENO: result: no" >&5
8956echo "${ECHO_T}no" >&6
4b6b4dfc 8957 fi
4b6b4dfc 8958
247f5006
VZ
8959
8960 echo "$as_me:$LINENO: checking for --enable-pnm" >&5
8961echo $ECHO_N "checking for --enable-pnm... $ECHO_C" >&6
10f2d63a
VZ
8962 no_cache=0
8963 # Check whether --enable-pnm or --disable-pnm was given.
8964if test "${enable_pnm+set}" = set; then
8965 enableval="$enable_pnm"
247f5006 8966
10f2d63a
VZ
8967 if test "$enableval" = yes; then
8968 ac_cv_use_pnm='wxUSE_PNM=yes'
8969 else
8970 ac_cv_use_pnm='wxUSE_PNM=no'
8971 fi
247f5006 8972
10f2d63a 8973else
247f5006 8974
10f2d63a
VZ
8975 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8976 if test "x$LINE" != x ; then
8977 eval "DEFAULT_$LINE"
8978 else
8979 no_cache=1
8980 fi
8981
8982 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 8983
247f5006 8984fi;
10f2d63a
VZ
8985
8986 eval "$ac_cv_use_pnm"
8987 if test "$no_cache" != 1; then
8988 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8989 fi
8990
8991 if test "$wxUSE_PNM" = yes; then
247f5006
VZ
8992 echo "$as_me:$LINENO: result: yes" >&5
8993echo "${ECHO_T}yes" >&6
10f2d63a 8994 else
247f5006
VZ
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
10f2d63a 8997 fi
10f2d63a 8998
247f5006
VZ
8999
9000 echo "$as_me:$LINENO: checking for --enable-xpm" >&5
9001echo $ECHO_N "checking for --enable-xpm... $ECHO_C" >&6
0046ff7c 9002 no_cache=0
69d27ff7
MB
9003 # Check whether --enable-xpm or --disable-xpm was given.
9004if test "${enable_xpm+set}" = set; then
9005 enableval="$enable_xpm"
247f5006 9006
0046ff7c 9007 if test "$enableval" = yes; then
69d27ff7 9008 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9009 else
69d27ff7 9010 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9011 fi
247f5006 9012
0046ff7c 9013else
247f5006 9014
0046ff7c
VS
9015 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9016 if test "x$LINE" != x ; then
9017 eval "DEFAULT_$LINE"
9018 else
9019 no_cache=1
9020 fi
9021
69d27ff7 9022 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9023
247f5006 9024fi;
0046ff7c 9025
69d27ff7 9026 eval "$ac_cv_use_xpm"
0046ff7c 9027 if test "$no_cache" != 1; then
69d27ff7 9028 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9029 fi
9030
9031 if test "$wxUSE_XPM" = yes; then
247f5006
VZ
9032 echo "$as_me:$LINENO: result: yes" >&5
9033echo "${ECHO_T}yes" >&6
0046ff7c 9034 else
247f5006
VZ
9035 echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
0046ff7c 9037 fi
0046ff7c 9038
247f5006
VZ
9039
9040 echo "$as_me:$LINENO: checking for --enable-ico_cur" >&5
9041echo $ECHO_N "checking for --enable-ico_cur... $ECHO_C" >&6
658974ae 9042 no_cache=0
c7206e64
VS
9043 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9044if test "${enable_ico_cur+set}" = set; then
9045 enableval="$enable_ico_cur"
247f5006 9046
658974ae 9047 if test "$enableval" = yes; then
c7206e64 9048 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9049 else
c7206e64 9050 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9051 fi
247f5006 9052
658974ae 9053else
247f5006 9054
658974ae
VS
9055 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9056 if test "x$LINE" != x ; then
9057 eval "DEFAULT_$LINE"
9058 else
9059 no_cache=1
9060 fi
9061
c7206e64 9062 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9063
247f5006 9064fi;
658974ae 9065
c7206e64 9066 eval "$ac_cv_use_ico_cur"
658974ae 9067 if test "$no_cache" != 1; then
c7206e64 9068 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9069 fi
9070
9071 if test "$wxUSE_ICO_CUR" = yes; then
247f5006
VZ
9072 echo "$as_me:$LINENO: result: yes" >&5
9073echo "${ECHO_T}yes" >&6
658974ae 9074 else
247f5006
VZ
9075 echo "$as_me:$LINENO: result: no" >&5
9076echo "${ECHO_T}no" >&6
658974ae 9077 fi
247f5006 9078
658974ae 9079
b12915c1
VZ
9080fi
9081
d558c907
VS
9082case "${host}" in
9083 *-pc-os2_emx | *-pc-os2-emx )
9084 LEX_STEM="lexyy"
9085 ;;
9086 *)
9087 PATH_IFS=':'
9088 LEX_STEM="lex.yy"
9089 ;;
9090esac
9091
8284b0c5
MB
9092
9093
10f2d63a
VZ
9094 echo "saving argument cache $wx_arg_cache_file"
9095 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9096
8284b0c5 9097
247f5006
VZ
9098
9099echo "$as_me:$LINENO: checking for toolkit" >&5
9100echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10f2d63a
VZ
9101
9102if test "$wxUSE_GUI" = "yes"; then
9103
3a922bb4 9104 if test "$USE_BEOS" = 1; then
247f5006
VZ
9105 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9106echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9107 { (exit 1); exit 1; }; }
3a922bb4 9108 fi
b12915c1 9109
3a922bb4
RL
9110 if test "$TOOLKIT_GIVEN" = 1; then
9111 for toolkit in `echo $ALL_TOOLKITS`; do
9112 var=wxUSE_$toolkit
9113 eval "value=\$${var}"
9114 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9115 done
10f2d63a 9116 else
3a922bb4
RL
9117 for toolkit in `echo $ALL_TOOLKITS`; do
9118 if test "$has_toolkit_in_cache" != 1; then
9119 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9120 else
9121 var=DEFAULT_wxUSE_$toolkit
9122 fi
9123 eval "wxUSE_$toolkit=\$${var}"
9124 done
10f2d63a 9125 fi
10f2d63a 9126
3a922bb4 9127 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 9128 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 9129
d558c907 9130 case "${host}" in
6fa882bd 9131 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9132 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9133 esac
10f2d63a 9134
3a922bb4
RL
9135 case "$NUM_TOOLKITS" in
9136 1)
9137 ;;
9138 0)
247f5006
VZ
9139 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9140echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9141 { (exit 1); exit 1; }; }
3a922bb4
RL
9142 ;;
9143 *)
247f5006
VZ
9144 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9145echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9146 { (exit 1); exit 1; }; }
3a922bb4 9147 esac
10f2d63a 9148
3a922bb4
RL
9149 for toolkit in `echo $ALL_TOOLKITS`; do
9150 var=wxUSE_$toolkit
9151 eval "value=\$${var}"
9152 if test "x$value" != x; then
9153 cache_var=CACHE_$toolkit
9154 eval "cache=\$${cache_var}"
9155 if test "$cache" = 1; then
9156 echo "$var=$value" >> ${wx_arg_cache_file}
9157 fi
9158 if test "$value" = 1; then
9159 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
247f5006
VZ
9160 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9161echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9162 fi
9163 fi
9164 done
10f2d63a 9165else
247f5006
VZ
9166 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9167echo "${ECHO_T}base ($host_alias hosted) only" >&6
10f2d63a
VZ
9168fi
9169
8284b0c5 9170
43d99b6d
VS
9171wants_win32=0
9172doesnt_want_win32=0
17234b26
MB
9173case "${host}" in
9174 *-*-cygwin*)
9175 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9176 wants_win32=1
9177 else
9178 doesnt_want_win32=1
17234b26
MB
9179 fi
9180 ;;
9181 *-*-mingw*)
43d99b6d 9182 wants_win32=1
17234b26
MB
9183 ;;
9184esac
9185
43d99b6d 9186if test "$wants_win32" = 1 ; then
17234b26
MB
9187 USE_UNIX=0
9188 USE_WIN32=1
247f5006 9189 cat >>confdefs.h <<\_ACEOF
17234b26 9190#define __WIN32__ 1
247f5006 9191_ACEOF
17234b26 9192
247f5006 9193 cat >>confdefs.h <<\_ACEOF
17234b26 9194#define __WIN95__ 1
247f5006 9195_ACEOF
17234b26 9196
247f5006 9197 cat >>confdefs.h <<\_ACEOF
17234b26 9198#define __WINDOWS__ 1
247f5006 9199_ACEOF
17234b26 9200
247f5006 9201 cat >>confdefs.h <<\_ACEOF
17234b26 9202#define __GNUWIN32__ 1
247f5006 9203_ACEOF
17234b26 9204
247f5006 9205 cat >>confdefs.h <<\_ACEOF
17234b26 9206#define STRICT 1
247f5006 9207_ACEOF
17234b26 9208
247f5006 9209 cat >>confdefs.h <<\_ACEOF
17234b26 9210#define WINVER 0x0400
247f5006 9211_ACEOF
17234b26 9212
43d99b6d
VS
9213fi
9214if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9215 USE_UNIX=1
9216 USE_WIN32=0
9217fi
9218
9219if test "$USE_UNIX" = 1 ; then
9220 wxUSE_UNIX=yes
247f5006 9221 cat >>confdefs.h <<\_ACEOF
17234b26 9222#define __UNIX__ 1
247f5006 9223_ACEOF
17234b26
MB
9224
9225fi
9226
8284b0c5 9227
247f5006 9228cat >confcache <<\_ACEOF
10f2d63a
VZ
9229# This file is a shell script that caches the results of configure
9230# tests run on this system so they can be shared between configure
247f5006
VZ
9231# scripts and configure runs, see configure's option --config-cache.
9232# It is not useful on other systems. If it contains results you don't
9233# want to keep, you may remove or edit it.
10f2d63a 9234#
247f5006
VZ
9235# config.status only pays attention to the cache file if you give it
9236# the --recheck option to rerun configure.
10f2d63a 9237#
247f5006
VZ
9238# `ac_cv_env_foo' variables (set or unset) will be overriden when
9239# loading this file, other *unset* `ac_cv_foo' will be assigned the
9240# following values.
9241
9242_ACEOF
9243
10f2d63a
VZ
9244# The following way of writing the cache mishandles newlines in values,
9245# but we know of no workaround that is simple, portable, and efficient.
9246# So, don't put newlines in cache variables' values.
9247# Ultrix sh set writes to stderr and can't be redirected directly,
9248# and sets the high bit in the cache file unless we assign to the vars.
247f5006
VZ
9249{
9250 (set) 2>&1 |
9251 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9252 *ac_space=\ *)
9253 # `set' does not quote correctly, so add quotes (double-quote
9254 # substitution turns \\\\ into \\, and sed turns \\ into \).
9255 sed -n \
9256 "s/'/'\\\\''/g;
9257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9258 ;;
9259 *)
9260 # `set' quotes correctly as required by POSIX, so do not add quotes.
9261 sed -n \
9262 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9263 ;;
9264 esac;
9265} |
9266 sed '
9267 t clear
9268 : clear
9269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9270 t end
9271 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9272 : end' >>confcache
9273if cmp -s $cache_file confcache; then :; else
10f2d63a 9274 if test -w $cache_file; then
247f5006
VZ
9275 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9276 cat confcache >$cache_file
10f2d63a
VZ
9277 else
9278 echo "not updating unwritable cache $cache_file"
9279 fi
9280fi
9281rm -f confcache
9282
e59890c3 9283if test "$build" != "$host" ; then
9d353d4a 9284 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9285 CC=$host_alias-gcc
9286 CXX=$host_alias-c++
9287 AR=$host_alias-ar
9288 RANLIB=$host_alias-ranlib
9289 DLLTOOL=$host_alias-dlltool
9290 RESCOMP=$host_alias-windres
9291 LD=$host_alias-ld
9292 NM=$host_alias-nm
9293 STRIP=$host_alias-strip
9294 else
247f5006
VZ
9295 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9296echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9297 { (exit 1); exit 1; }; }
3a922bb4 9298 fi
10f2d63a
VZ
9299fi
9300
ec603395 9301CFLAGS=${CFLAGS:=}
247f5006
VZ
9302ac_ext=c
9303ac_cpp='$CPP $CPPFLAGS'
9304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306ac_compiler_gnu=$ac_cv_c_compiler_gnu
9307if test -n "$ac_tool_prefix"; then
9308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9309set dummy ${ac_tool_prefix}gcc; ac_word=$2
9310echo "$as_me:$LINENO: checking for $ac_word" >&5
9311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9312if test "${ac_cv_prog_CC+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315 if test -n "$CC"; then
9316 ac_cv_prog_CC="$CC" # Let the user override the test.
9317else
9318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319for as_dir in $PATH
9320do
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 break 2
9328 fi
9329done
9330done
9331
9332fi
9333fi
9334CC=$ac_cv_prog_CC
9335if test -n "$CC"; then
9336 echo "$as_me:$LINENO: result: $CC" >&5
9337echo "${ECHO_T}$CC" >&6
9338else
9339 echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
9341fi
9342
9343fi
9344if test -z "$ac_cv_prog_CC"; then
9345 ac_ct_CC=$CC
9346 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9347set dummy gcc; ac_word=$2
247f5006
VZ
9348echo "$as_me:$LINENO: checking for $ac_word" >&5
9349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9350if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353 if test -n "$ac_ct_CC"; then
9354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9363 ac_cv_prog_ac_ct_CC="gcc"
9364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 break 2
9366 fi
9367done
9368done
9369
9370fi
9371fi
9372ac_ct_CC=$ac_cv_prog_ac_ct_CC
9373if test -n "$ac_ct_CC"; then
9374 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9375echo "${ECHO_T}$ac_ct_CC" >&6
9376else
9377 echo "$as_me:$LINENO: result: no" >&5
9378echo "${ECHO_T}no" >&6
9379fi
9380
9381 CC=$ac_ct_CC
9382else
9383 CC="$ac_cv_prog_CC"
9384fi
9385
9386if test -z "$CC"; then
9387 if test -n "$ac_tool_prefix"; then
9388 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9389set dummy ${ac_tool_prefix}cc; ac_word=$2
9390echo "$as_me:$LINENO: checking for $ac_word" >&5
9391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9392if test "${ac_cv_prog_CC+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9394else
9395 if test -n "$CC"; then
9396 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9397else
247f5006
VZ
9398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399for as_dir in $PATH
9400do
9401 IFS=$as_save_IFS
9402 test -z "$as_dir" && as_dir=.
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9405 ac_cv_prog_CC="${ac_tool_prefix}cc"
9406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9407 break 2
9408 fi
9409done
9410done
9411
10f2d63a 9412fi
6232543b 9413fi
247f5006 9414CC=$ac_cv_prog_CC
6232543b 9415if test -n "$CC"; then
247f5006
VZ
9416 echo "$as_me:$LINENO: result: $CC" >&5
9417echo "${ECHO_T}$CC" >&6
9418else
9419 echo "$as_me:$LINENO: result: no" >&5
9420echo "${ECHO_T}no" >&6
9421fi
9422
9423fi
9424if test -z "$ac_cv_prog_CC"; then
9425 ac_ct_CC=$CC
9426 # Extract the first word of "cc", so it can be a program name with args.
9427set dummy cc; ac_word=$2
9428echo "$as_me:$LINENO: checking for $ac_word" >&5
9429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433 if test -n "$ac_ct_CC"; then
9434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9435else
9436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437for as_dir in $PATH
9438do
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9443 ac_cv_prog_ac_ct_CC="cc"
9444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9446 fi
9447done
9448done
9449
9450fi
9451fi
9452ac_ct_CC=$ac_cv_prog_ac_ct_CC
9453if test -n "$ac_ct_CC"; then
9454 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9455echo "${ECHO_T}$ac_ct_CC" >&6
9456else
9457 echo "$as_me:$LINENO: result: no" >&5
9458echo "${ECHO_T}no" >&6
9459fi
9460
9461 CC=$ac_ct_CC
5c6fa7d2 9462else
247f5006 9463 CC="$ac_cv_prog_CC"
1e487827 9464fi
6232543b 9465
247f5006 9466fi
5c6fa7d2
RR
9467if test -z "$CC"; then
9468 # Extract the first word of "cc", so it can be a program name with args.
9469set dummy cc; ac_word=$2
247f5006
VZ
9470echo "$as_me:$LINENO: checking for $ac_word" >&5
9471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9472if test "${ac_cv_prog_CC+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9474else
9475 if test -n "$CC"; then
9476 ac_cv_prog_CC="$CC" # Let the user override the test.
9477else
9478 ac_prog_rejected=no
247f5006
VZ
9479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480for as_dir in $PATH
9481do
9482 IFS=$as_save_IFS
9483 test -z "$as_dir" && as_dir=.
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9487 ac_prog_rejected=yes
9488 continue
9489 fi
9490 ac_cv_prog_CC="cc"
9491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9492 break 2
9493 fi
9494done
9495done
9496
328a083c
RR
9497if test $ac_prog_rejected = yes; then
9498 # We found a bogon in the path, so make sure we never use it.
9499 set dummy $ac_cv_prog_CC
9500 shift
247f5006 9501 if test $# != 0; then
328a083c 9502 # We chose a different compiler from the bogus one.
1e487827
VS
9503 # However, it has the same basename, so the bogon will be chosen
9504 # first if we set CC to just the basename; use the full file name.
9505 shift
247f5006 9506 set dummy "$as_dir/$ac_word" ${1+"$@"}
1e487827
VS
9507 shift
9508 ac_cv_prog_CC="$@"
703e0a69 9509 fi
1e487827
VS
9510fi
9511fi
9512fi
247f5006 9513CC=$ac_cv_prog_CC
1e487827 9514if test -n "$CC"; then
247f5006
VZ
9515 echo "$as_me:$LINENO: result: $CC" >&5
9516echo "${ECHO_T}$CC" >&6
703e0a69 9517else
247f5006
VZ
9518 echo "$as_me:$LINENO: result: no" >&5
9519echo "${ECHO_T}no" >&6
703e0a69 9520fi
1e487827 9521
247f5006
VZ
9522fi
9523if test -z "$CC"; then
9524 if test -n "$ac_tool_prefix"; then
9525 for ac_prog in cl
9526 do
9527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9529echo "$as_me:$LINENO: checking for $ac_word" >&5
9530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9531if test "${ac_cv_prog_CC+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9533else
9534 if test -n "$CC"; then
9535 ac_cv_prog_CC="$CC" # Let the user override the test.
9536else
247f5006
VZ
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9547 fi
9548done
9549done
9550
f09359cf
VS
9551fi
9552fi
247f5006 9553CC=$ac_cv_prog_CC
f09359cf 9554if test -n "$CC"; then
247f5006
VZ
9555 echo "$as_me:$LINENO: result: $CC" >&5
9556echo "${ECHO_T}$CC" >&6
f09359cf 9557else
247f5006
VZ
9558 echo "$as_me:$LINENO: result: no" >&5
9559echo "${ECHO_T}no" >&6
7b4a847f 9560fi
247f5006
VZ
9561
9562 test -n "$CC" && break
9563 done
9564fi
9565if test -z "$CC"; then
9566 ac_ct_CC=$CC
9567 for ac_prog in cl
9568do
9569 # Extract the first word of "$ac_prog", so it can be a program name with args.
9570set dummy $ac_prog; ac_word=$2
9571echo "$as_me:$LINENO: checking for $ac_word" >&5
9572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9573if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575else
9576 if test -n "$ac_ct_CC"; then
9577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9578else
9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9586 ac_cv_prog_ac_ct_CC="$ac_prog"
9587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
8284b0c5 9589 fi
247f5006
VZ
9590done
9591done
9592
9593fi
9594fi
9595ac_ct_CC=$ac_cv_prog_ac_ct_CC
9596if test -n "$ac_ct_CC"; then
9597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9598echo "${ECHO_T}$ac_ct_CC" >&6
9599else
9600 echo "$as_me:$LINENO: result: no" >&5
9601echo "${ECHO_T}no" >&6
5c6fa7d2 9602fi
1e487827 9603
247f5006
VZ
9604 test -n "$ac_ct_CC" && break
9605done
f09359cf 9606
247f5006
VZ
9607 CC=$ac_ct_CC
9608fi
f09359cf 9609
247f5006
VZ
9610fi
9611
9612
9613test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
9614echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
9615 { (exit 1); exit 1; }; }
9616
9617# Provide some information about the compiler.
9618echo "$as_me:$LINENO:" \
9619 "checking for C compiler version" >&5
9620ac_compiler=`set X $ac_compile; echo $2`
9621{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9622 (eval $ac_compiler --version </dev/null >&5) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }
9626{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9627 (eval $ac_compiler -v </dev/null >&5) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }
9631{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9632 (eval $ac_compiler -V </dev/null >&5) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }
7b4a847f 9636
247f5006
VZ
9637cat >conftest.$ac_ext <<_ACEOF
9638#line $LINENO "configure"
8284b0c5 9639#include "confdefs.h"
5c6fa7d2 9640
247f5006
VZ
9641#ifdef F77_DUMMY_MAIN
9642# ifdef __cplusplus
9643 extern "C"
9644# endif
9645 int F77_DUMMY_MAIN() { return 1; }
9646#endif
9647int
9648main ()
9649{
9650
9651 ;
9652 return 0;
9653}
9654_ACEOF
9655ac_clean_files_save=$ac_clean_files
9656ac_clean_files="$ac_clean_files a.out a.exe"
9657# Try to create an executable without -o first, disregard a.out.
9658# It will help us diagnose broken compilers, and finding out an intuition
9659# of exeext.
9660echo "$as_me:$LINENO: checking for C compiler default output" >&5
9661echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9662ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9663if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9664 (eval $ac_link_default) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; then
9668 # Find the output, starting from the most likely. This scheme is
9669# not robust to junk in `.', hence go to wildcards (a.*) only as a last
9670# resort.
9671
9672# Be careful to initialize this variable, since it used to be cached.
9673# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
9674ac_cv_exeext=
9675for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
9676 ls a.out conftest 2>/dev/null;
9677 ls a.* conftest.* 2>/dev/null`; do
9678 case $ac_file in
9679 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
9680 a.out ) # We found the default executable, but exeext='' is most
9681 # certainly right.
9682 break;;
9683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9684 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
9685 export ac_cv_exeext
9686 break;;
9687 * ) break;;
9688 esac
9689done
9690else
9691 echo "$as_me: failed program was:" >&5
9692cat conftest.$ac_ext >&5
9693{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
9694echo "$as_me: error: C compiler cannot create executables" >&2;}
9695 { (exit 77); exit 77; }; }
9696fi
9697
9698ac_exeext=$ac_cv_exeext
9699echo "$as_me:$LINENO: result: $ac_file" >&5
9700echo "${ECHO_T}$ac_file" >&6
9701
9702# Check the compiler produces executables we can run. If not, either
9703# the compiler is broken, or we cross compile.
9704echo "$as_me:$LINENO: checking whether the C compiler works" >&5
9705echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
9706# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
9707# If not cross compiling, check that we can run a simple program.
9708if test "$cross_compiling" != yes; then
9709 if { ac_try='./$ac_file'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 cross_compiling=no
698dcdb6 9716 else
247f5006
VZ
9717 if test "$cross_compiling" = maybe; then
9718 cross_compiling=yes
9719 else
9720 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
9721If you meant to cross compile, use \`--host'." >&5
9722echo "$as_me: error: cannot run C compiled programs.
9723If you meant to cross compile, use \`--host'." >&2;}
9724 { (exit 1); exit 1; }; }
9725 fi
698dcdb6 9726 fi
247f5006
VZ
9727fi
9728echo "$as_me:$LINENO: result: yes" >&5
9729echo "${ECHO_T}yes" >&6
9730
9731rm -f a.out a.exe conftest$ac_cv_exeext
9732ac_clean_files=$ac_clean_files_save
9733# Check the compiler produces executables we can run. If not, either
9734# the compiler is broken, or we cross compile.
9735echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
9736echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
9737echo "$as_me:$LINENO: result: $cross_compiling" >&5
9738echo "${ECHO_T}$cross_compiling" >&6
9739
9740echo "$as_me:$LINENO: checking for suffix of executables" >&5
9741echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; then
9747 # If both `conftest.exe' and `conftest' are `present' (well, observable)
9748# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
9749# work properly (i.e., refer to `conftest.exe'), while it won't with
9750# `rm'.
9751for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
9752 case $ac_file in
9753 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
9754 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9755 export ac_cv_exeext
9756 break;;
9757 * ) break;;
9758 esac
9759done
7b4a847f 9760else
247f5006
VZ
9761 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
9762echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
9763 { (exit 1); exit 1; }; }
52127426 9764fi
8284b0c5 9765
247f5006
VZ
9766rm -f conftest$ac_cv_exeext
9767echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
9768echo "${ECHO_T}$ac_cv_exeext" >&6
8284b0c5 9769
247f5006
VZ
9770rm -f conftest.$ac_ext
9771EXEEXT=$ac_cv_exeext
9772ac_exeext=$EXEEXT
9773echo "$as_me:$LINENO: checking for suffix of object files" >&5
9774echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
9775if test "${ac_cv_objext+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 9777else
247f5006
VZ
9778 cat >conftest.$ac_ext <<_ACEOF
9779#line $LINENO "configure"
9780#include "confdefs.h"
9781
9782#ifdef F77_DUMMY_MAIN
9783# ifdef __cplusplus
9784 extern "C"
9785# endif
9786 int F77_DUMMY_MAIN() { return 1; }
8284b0c5 9787#endif
247f5006
VZ
9788int
9789main ()
9790{
9791
9792 ;
9793 return 0;
9794}
9795_ACEOF
9796rm -f conftest.o conftest.obj
9797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9798 (eval $ac_compile) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; then
9802 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
9803 case $ac_file in
9804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
9805 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
9806 break;;
9807 esac
9808done
5c6fa7d2 9809else
247f5006
VZ
9810 echo "$as_me: failed program was:" >&5
9811cat conftest.$ac_ext >&5
9812{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
9813echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
9814 { (exit 1); exit 1; }; }
8284b0c5 9815fi
247f5006
VZ
9816
9817rm -f conftest.$ac_cv_objext conftest.$ac_ext
8284b0c5 9818fi
247f5006
VZ
9819echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
9820echo "${ECHO_T}$ac_cv_objext" >&6
9821OBJEXT=$ac_cv_objext
9822ac_objext=$OBJEXT
9823echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
9824echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
9825if test "${ac_cv_c_compiler_gnu+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827else
9828 cat >conftest.$ac_ext <<_ACEOF
9829#line $LINENO "configure"
9830#include "confdefs.h"
5c6fa7d2 9831
247f5006
VZ
9832#ifdef F77_DUMMY_MAIN
9833# ifdef __cplusplus
9834 extern "C"
9835# endif
9836 int F77_DUMMY_MAIN() { return 1; }
9837#endif
9838int
9839main ()
9840{
9841#ifndef __GNUC__
9842 choke me
9843#endif
1e487827 9844
247f5006
VZ
9845 ;
9846 return 0;
9847}
9848_ACEOF
9849rm -f conftest.$ac_objext
9850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9851 (eval $ac_compile) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_compiler_gnu=yes
9862else
9863 echo "$as_me: failed program was:" >&5
9864cat conftest.$ac_ext >&5
9865ac_compiler_gnu=no
9866fi
9867rm -f conftest.$ac_objext conftest.$ac_ext
9868ac_cv_c_compiler_gnu=$ac_compiler_gnu
9869
9870fi
9871echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
9872echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
9873GCC=`test $ac_compiler_gnu = yes && echo yes`
9874ac_test_CFLAGS=${CFLAGS+set}
9875ac_save_CFLAGS=$CFLAGS
9876CFLAGS="-g"
9877echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
9878echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
9879if test "${ac_cv_prog_cc_g+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881else
9882 cat >conftest.$ac_ext <<_ACEOF
9883#line $LINENO "configure"
9884#include "confdefs.h"
f09359cf 9885
247f5006
VZ
9886#ifdef F77_DUMMY_MAIN
9887# ifdef __cplusplus
9888 extern "C"
9889# endif
9890 int F77_DUMMY_MAIN() { return 1; }
9891#endif
9892int
9893main ()
9894{
9895
9896 ;
9897 return 0;
9898}
9899_ACEOF
9900rm -f conftest.$ac_objext
9901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9902 (eval $ac_compile) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -s conftest.$ac_objext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
10f2d63a
VZ
9912 ac_cv_prog_cc_g=yes
9913else
247f5006
VZ
9914 echo "$as_me: failed program was:" >&5
9915cat conftest.$ac_ext >&5
9916ac_cv_prog_cc_g=no
10f2d63a 9917fi
247f5006 9918rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 9919fi
247f5006
VZ
9920echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9921echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 9922if test "$ac_test_CFLAGS" = set; then
247f5006 9923 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
9924elif test $ac_cv_prog_cc_g = yes; then
9925 if test "$GCC" = yes; then
10f2d63a
VZ
9926 CFLAGS="-g -O2"
9927 else
f09359cf 9928 CFLAGS="-g"
10f2d63a 9929 fi
5c0a20c3 9930else
f09359cf
VS
9931 if test "$GCC" = yes; then
9932 CFLAGS="-O2"
9933 else
9934 CFLAGS=
9935 fi
10f2d63a 9936fi
247f5006
VZ
9937# Some people use a C++ compiler to compile C. Since we use `exit',
9938# in C++ we need to declare it. In case someone uses the same compiler
9939# for both compiling C and C++ we need to have the C++ compiler decide
9940# the declaration of exit, since it's the most demanding environment.
9941cat >conftest.$ac_ext <<_ACEOF
9942#ifndef __cplusplus
9943 choke me
9944#endif
9945_ACEOF
9946rm -f conftest.$ac_objext
9947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948 (eval $ac_compile) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -s conftest.$ac_objext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 for ac_declaration in \
9959 ''\
9960 '#include <stdlib.h>' \
9961 'extern "C" void std::exit (int) throw (); using std::exit;' \
9962 'extern "C" void std::exit (int); using std::exit;' \
9963 'extern "C" void exit (int) throw ();' \
9964 'extern "C" void exit (int);' \
9965 'void exit (int);'
9966do
9967 cat >conftest.$ac_ext <<_ACEOF
9968#line $LINENO "configure"
9969#include "confdefs.h"
9970#include <stdlib.h>
9971$ac_declaration
9972#ifdef F77_DUMMY_MAIN
9973# ifdef __cplusplus
9974 extern "C"
9975# endif
9976 int F77_DUMMY_MAIN() { return 1; }
9977#endif
9978int
9979main ()
9980{
9981exit (42);
9982 ;
9983 return 0;
9984}
9985_ACEOF
9986rm -f conftest.$ac_objext
9987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9988 (eval $ac_compile) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -s conftest.$ac_objext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 :
9999else
10000 echo "$as_me: failed program was:" >&5
10001cat conftest.$ac_ext >&5
10002continue
10003fi
10004rm -f conftest.$ac_objext conftest.$ac_ext
10005 cat >conftest.$ac_ext <<_ACEOF
10006#line $LINENO "configure"
10007#include "confdefs.h"
10008$ac_declaration
10009#ifdef F77_DUMMY_MAIN
10010# ifdef __cplusplus
10011 extern "C"
10012# endif
10013 int F77_DUMMY_MAIN() { return 1; }
10014#endif
10015int
10016main ()
10017{
10018exit (42);
10019 ;
10020 return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext
10024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -s conftest.$ac_objext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 break
10036else
10037 echo "$as_me: failed program was:" >&5
10038cat conftest.$ac_ext >&5
10039fi
10040rm -f conftest.$ac_objext conftest.$ac_ext
10041done
10042rm -f conftest*
10043if test -n "$ac_declaration"; then
10044 echo '#ifdef __cplusplus' >>confdefs.h
10045 echo $ac_declaration >>confdefs.h
10046 echo '#endif' >>confdefs.h
10047fi
10048
10049else
10050 echo "$as_me: failed program was:" >&5
10051cat conftest.$ac_ext >&5
10052fi
10053rm -f conftest.$ac_objext conftest.$ac_ext
10054ac_ext=c
10055ac_cpp='$CPP $CPPFLAGS'
10056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10058ac_compiler_gnu=$ac_cv_c_compiler_gnu
10059
10f2d63a
VZ
10060
10061
247f5006
VZ
10062ac_ext=c
10063ac_cpp='$CPP $CPPFLAGS'
10064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10066ac_compiler_gnu=$ac_cv_c_compiler_gnu
10067echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10068echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10069# On Suns, sometimes $CPP names a directory.
10070if test -n "$CPP" && test -d "$CPP"; then
10071 CPP=
10072fi
10073if test -z "$CPP"; then
247f5006
VZ
10074 if test "${ac_cv_prog_CPP+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076else
10077 # Double quotes because CPP needs to be expanded
10078 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10079 do
10080 ac_preproc_ok=false
10081for ac_c_preproc_warn_flag in '' yes
10082do
10083 # Use a header file that comes with gcc, so configuring glibc
10084 # with a fresh cross-compiler works.
10f2d63a 10085 # On the NeXT, cc -E runs the code through the compiler's parser,
247f5006
VZ
10086 # not just through cpp. "Syntax error" is here to catch this case.
10087 cat >conftest.$ac_ext <<_ACEOF
10088#line $LINENO "configure"
10f2d63a
VZ
10089#include "confdefs.h"
10090#include <assert.h>
247f5006
VZ
10091 Syntax error
10092_ACEOF
10093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10095 ac_status=$?
10096 egrep -v '^ *\+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } >/dev/null; then
10101 if test -s conftest.err; then
10102 ac_cpp_err=$ac_c_preproc_warn_flag
10103 else
10104 ac_cpp_err=
10105 fi
10106else
10107 ac_cpp_err=yes
10108fi
10109if test -z "$ac_cpp_err"; then
10f2d63a
VZ
10110 :
10111else
247f5006 10112 echo "$as_me: failed program was:" >&5
10f2d63a 10113 cat conftest.$ac_ext >&5
247f5006
VZ
10114 # Broken: fails on valid input.
10115continue
10116fi
10117rm -f conftest.err conftest.$ac_ext
10118
10119 # OK, works on sane cases. Now check whether non-existent headers
10120 # can be detected and how.
10121 cat >conftest.$ac_ext <<_ACEOF
10122#line $LINENO "configure"
f09359cf 10123#include "confdefs.h"
247f5006
VZ
10124#include <ac_nonexistent.h>
10125_ACEOF
10126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10128 ac_status=$?
10129 egrep -v '^ *\+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } >/dev/null; then
10134 if test -s conftest.err; then
10135 ac_cpp_err=$ac_c_preproc_warn_flag
10136 else
10137 ac_cpp_err=
10138 fi
f09359cf 10139else
247f5006
VZ
10140 ac_cpp_err=yes
10141fi
10142if test -z "$ac_cpp_err"; then
10143 # Broken: success on invalid input.
10144continue
10145else
10146 echo "$as_me: failed program was:" >&5
f09359cf 10147 cat conftest.$ac_ext >&5
247f5006
VZ
10148 # Passes both tests.
10149ac_preproc_ok=:
10150break
10151fi
10152rm -f conftest.err conftest.$ac_ext
10153
10154done
10155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10156rm -f conftest.err conftest.$ac_ext
10157if $ac_preproc_ok; then
10158 break
10159fi
10160
10161 done
10162 ac_cv_prog_CPP=$CPP
10163
10164fi
10165 CPP=$ac_cv_prog_CPP
10166else
10167 ac_cv_prog_CPP=$CPP
10168fi
10169echo "$as_me:$LINENO: result: $CPP" >&5
10170echo "${ECHO_T}$CPP" >&6
10171ac_preproc_ok=false
10172for ac_c_preproc_warn_flag in '' yes
10173do
10174 # Use a header file that comes with gcc, so configuring glibc
10175 # with a fresh cross-compiler works.
10176 # On the NeXT, cc -E runs the code through the compiler's parser,
10177 # not just through cpp. "Syntax error" is here to catch this case.
10178 cat >conftest.$ac_ext <<_ACEOF
10179#line $LINENO "configure"
10f2d63a
VZ
10180#include "confdefs.h"
10181#include <assert.h>
247f5006
VZ
10182 Syntax error
10183_ACEOF
10184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10186 ac_status=$?
10187 egrep -v '^ *\+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } >/dev/null; then
10192 if test -s conftest.err; then
10193 ac_cpp_err=$ac_c_preproc_warn_flag
10194 else
10195 ac_cpp_err=
10196 fi
10197else
10198 ac_cpp_err=yes
10199fi
10200if test -z "$ac_cpp_err"; then
10f2d63a
VZ
10201 :
10202else
247f5006 10203 echo "$as_me: failed program was:" >&5
10f2d63a 10204 cat conftest.$ac_ext >&5
247f5006
VZ
10205 # Broken: fails on valid input.
10206continue
579d8138 10207fi
247f5006
VZ
10208rm -f conftest.err conftest.$ac_ext
10209
10210 # OK, works on sane cases. Now check whether non-existent headers
10211 # can be detected and how.
10212 cat >conftest.$ac_ext <<_ACEOF
10213#line $LINENO "configure"
10214#include "confdefs.h"
10215#include <ac_nonexistent.h>
10216_ACEOF
10217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10219 ac_status=$?
10220 egrep -v '^ *\+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } >/dev/null; then
10225 if test -s conftest.err; then
10226 ac_cpp_err=$ac_c_preproc_warn_flag
10227 else
10228 ac_cpp_err=
10229 fi
10230else
10231 ac_cpp_err=yes
52127426 10232fi
247f5006
VZ
10233if test -z "$ac_cpp_err"; then
10234 # Broken: success on invalid input.
10235continue
10236else
10237 echo "$as_me: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10239 # Passes both tests.
10240ac_preproc_ok=:
10241break
8284b0c5 10242fi
247f5006
VZ
10243rm -f conftest.err conftest.$ac_ext
10244
10245done
10246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10247rm -f conftest.err conftest.$ac_ext
10248if $ac_preproc_ok; then
10249 :
10f2d63a 10250else
247f5006
VZ
10251 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
10252echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
10253 { (exit 1); exit 1; }; }
10f2d63a 10254fi
10f2d63a 10255
247f5006
VZ
10256ac_ext=c
10257ac_cpp='$CPP $CPPFLAGS'
10258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260ac_compiler_gnu=$ac_cv_c_compiler_gnu
10261
10262
10263if test $ac_cv_c_compiler_gnu = yes; then
10264 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10265echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10266if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10268else
10269 ac_pattern="Autoconf.*'x'"
247f5006
VZ
10270 cat >conftest.$ac_ext <<_ACEOF
10271#line $LINENO "configure"
10f2d63a
VZ
10272#include "confdefs.h"
10273#include <sgtty.h>
10274Autoconf TIOCGETP
247f5006 10275_ACEOF
10f2d63a
VZ
10276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10277 egrep "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10278 ac_cv_prog_gcc_traditional=yes
10279else
10f2d63a
VZ
10280 ac_cv_prog_gcc_traditional=no
10281fi
10282rm -f conftest*
10283
8284b0c5 10284
10f2d63a 10285 if test $ac_cv_prog_gcc_traditional = no; then
247f5006
VZ
10286 cat >conftest.$ac_ext <<_ACEOF
10287#line $LINENO "configure"
10f2d63a
VZ
10288#include "confdefs.h"
10289#include <termio.h>
10290Autoconf TCGETA
247f5006 10291_ACEOF
10f2d63a
VZ
10292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10293 egrep "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10294 ac_cv_prog_gcc_traditional=yes
10295fi
10296rm -f conftest*
10297
10298 fi
10299fi
247f5006
VZ
10300echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10301echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10302 if test $ac_cv_prog_gcc_traditional = yes; then
10303 CC="$CC -traditional"
10304 fi
10305fi
10306
8284b0c5
MB
10307
10308
247f5006
VZ
10309
10310ac_ext=cc
1e487827 10311ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
10312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10315
698dcdb6 10316
ec603395 10317CXXFLAGS=${CXXFLAGS:=}
247f5006
VZ
10318ac_ext=cc
10319ac_cpp='$CXXCPP $CPPFLAGS'
10320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10323if test -n "$ac_tool_prefix"; then
10324 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10325 do
10326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10328echo "$as_me:$LINENO: checking for $ac_word" >&5
10329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10330if test "${ac_cv_prog_CXX+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10332else
10333 if test -n "$CXX"; then
10334 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10335else
247f5006
VZ
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10343 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10346 fi
10347done
10348done
10349
10f2d63a
VZ
10350fi
10351fi
247f5006 10352CXX=$ac_cv_prog_CXX
10f2d63a 10353if test -n "$CXX"; then
247f5006
VZ
10354 echo "$as_me:$LINENO: result: $CXX" >&5
10355echo "${ECHO_T}$CXX" >&6
10f2d63a 10356else
247f5006
VZ
10357 echo "$as_me:$LINENO: result: no" >&5
10358echo "${ECHO_T}no" >&6
10f2d63a
VZ
10359fi
10360
247f5006
VZ
10361 test -n "$CXX" && break
10362 done
10363fi
10364if test -z "$CXX"; then
10365 ac_ct_CXX=$CXX
10366 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10367do
10368 # Extract the first word of "$ac_prog", so it can be a program name with args.
10369set dummy $ac_prog; ac_word=$2
10370echo "$as_me:$LINENO: checking for $ac_word" >&5
10371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10372if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374else
10375 if test -n "$ac_ct_CXX"; then
10376 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10377else
10378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379for as_dir in $PATH
10380do
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10385 ac_cv_prog_ac_ct_CXX="$ac_prog"
10386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10388 fi
10389done
10f2d63a 10390done
f09359cf 10391
247f5006
VZ
10392fi
10393fi
10394ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10395if test -n "$ac_ct_CXX"; then
10396 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10397echo "${ECHO_T}$ac_ct_CXX" >&6
8284b0c5 10398else
247f5006
VZ
10399 echo "$as_me:$LINENO: result: no" >&5
10400echo "${ECHO_T}no" >&6
8284b0c5 10401fi
8284b0c5 10402
247f5006
VZ
10403 test -n "$ac_ct_CXX" && break
10404done
10405test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10406
10407 CXX=$ac_ct_CXX
10408fi
10409
10410
10411# Provide some information about the compiler.
10412echo "$as_me:$LINENO:" \
10413 "checking for C++ compiler version" >&5
10414ac_compiler=`set X $ac_compile; echo $2`
10415{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10416 (eval $ac_compiler --version </dev/null >&5) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }
10420{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10421 (eval $ac_compiler -v </dev/null >&5) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }
10425{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10426 (eval $ac_compiler -V </dev/null >&5) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }
10430
10431echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10432echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10433if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436 cat >conftest.$ac_ext <<_ACEOF
10437#line $LINENO "configure"
10438#include "confdefs.h"
8284b0c5 10439
247f5006
VZ
10440#ifdef F77_DUMMY_MAIN
10441# ifdef __cplusplus
10442 extern "C"
10443# endif
10444 int F77_DUMMY_MAIN() { return 1; }
10445#endif
10446int
10447main ()
10448{
10449#ifndef __GNUC__
10450 choke me
10f2d63a 10451#endif
10f2d63a 10452
247f5006
VZ
10453 ;
10454 return 0;
10455}
10456_ACEOF
10457rm -f conftest.$ac_objext
10458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10459 (eval $ac_compile) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -s conftest.$ac_objext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_compiler_gnu=yes
10470else
10471 echo "$as_me: failed program was:" >&5
10472cat conftest.$ac_ext >&5
10473ac_compiler_gnu=no
10474fi
10475rm -f conftest.$ac_objext conftest.$ac_ext
10476ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10477
10478fi
10479echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10480echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
10481GXX=`test $ac_compiler_gnu = yes && echo yes`
10482ac_test_CXXFLAGS=${CXXFLAGS+set}
10483ac_save_CXXFLAGS=$CXXFLAGS
10484CXXFLAGS="-g"
10485echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10486echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
10487if test "${ac_cv_prog_cxx_g+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489else
10490 cat >conftest.$ac_ext <<_ACEOF
10491#line $LINENO "configure"
10492#include "confdefs.h"
10f2d63a 10493
247f5006
VZ
10494#ifdef F77_DUMMY_MAIN
10495# ifdef __cplusplus
10496 extern "C"
10497# endif
10498 int F77_DUMMY_MAIN() { return 1; }
10499#endif
10500int
10501main ()
10502{
f09359cf 10503
247f5006
VZ
10504 ;
10505 return 0;
10506}
10507_ACEOF
10508rm -f conftest.$ac_objext
10509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 (eval $ac_compile) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -s conftest.$ac_objext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10f2d63a
VZ
10520 ac_cv_prog_cxx_g=yes
10521else
247f5006
VZ
10522 echo "$as_me: failed program was:" >&5
10523cat conftest.$ac_ext >&5
10524ac_cv_prog_cxx_g=no
10f2d63a 10525fi
247f5006 10526rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 10527fi
247f5006
VZ
10528echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10529echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 10530if test "$ac_test_CXXFLAGS" = set; then
247f5006 10531 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
10532elif test $ac_cv_prog_cxx_g = yes; then
10533 if test "$GXX" = yes; then
10f2d63a
VZ
10534 CXXFLAGS="-g -O2"
10535 else
f09359cf 10536 CXXFLAGS="-g"
10f2d63a 10537 fi
5c0a20c3 10538else
f09359cf
VS
10539 if test "$GXX" = yes; then
10540 CXXFLAGS="-O2"
10541 else
10542 CXXFLAGS=
10543 fi
10f2d63a 10544fi
247f5006
VZ
10545for ac_declaration in \
10546 ''\
10547 '#include <stdlib.h>' \
10548 'extern "C" void std::exit (int) throw (); using std::exit;' \
10549 'extern "C" void std::exit (int); using std::exit;' \
10550 'extern "C" void exit (int) throw ();' \
10551 'extern "C" void exit (int);' \
10552 'void exit (int);'
10553do
10554 cat >conftest.$ac_ext <<_ACEOF
10555#line $LINENO "configure"
10556#include "confdefs.h"
10557#include <stdlib.h>
10558$ac_declaration
10559#ifdef F77_DUMMY_MAIN
10560# ifdef __cplusplus
10561 extern "C"
10562# endif
10563 int F77_DUMMY_MAIN() { return 1; }
10564#endif
10565int
10566main ()
10567{
10568exit (42);
10569 ;
10570 return 0;
10571}
10572_ACEOF
10573rm -f conftest.$ac_objext
10574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10575 (eval $ac_compile) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -s conftest.$ac_objext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 :
10586else
10587 echo "$as_me: failed program was:" >&5
10588cat conftest.$ac_ext >&5
10589continue
10590fi
10591rm -f conftest.$ac_objext conftest.$ac_ext
10592 cat >conftest.$ac_ext <<_ACEOF
10593#line $LINENO "configure"
10594#include "confdefs.h"
10595$ac_declaration
10596#ifdef F77_DUMMY_MAIN
10597# ifdef __cplusplus
10598 extern "C"
10599# endif
10600 int F77_DUMMY_MAIN() { return 1; }
10601#endif
10602int
10603main ()
10604{
10605exit (42);
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext
10611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612 (eval $ac_compile) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -s conftest.$ac_objext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 break
10623else
10624 echo "$as_me: failed program was:" >&5
10625cat conftest.$ac_ext >&5
10626fi
10627rm -f conftest.$ac_objext conftest.$ac_ext
10628done
10629rm -f conftest*
10630if test -n "$ac_declaration"; then
10631 echo '#ifdef __cplusplus' >>confdefs.h
10632 echo $ac_declaration >>confdefs.h
10633 echo '#endif' >>confdefs.h
10634fi
10635
10636ac_ext=cc
10637ac_cpp='$CXXCPP $CPPFLAGS'
10638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
10641
10642
10f2d63a 10643ac_ext=c
10f2d63a 10644ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
10645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10647ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
10648
10649
247f5006
VZ
10650if test -n "$ac_tool_prefix"; then
10651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10652set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10653echo "$as_me:$LINENO: checking for $ac_word" >&5
10654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10655if test "${ac_cv_prog_RANLIB+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10657else
10658 if test -n "$RANLIB"; then
10659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10660else
247f5006
VZ
10661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10671 fi
10672done
10673done
10674
10f2d63a
VZ
10675fi
10676fi
247f5006 10677RANLIB=$ac_cv_prog_RANLIB
10f2d63a 10678if test -n "$RANLIB"; then
247f5006
VZ
10679 echo "$as_me:$LINENO: result: $RANLIB" >&5
10680echo "${ECHO_T}$RANLIB" >&6
10681else
10682 echo "$as_me:$LINENO: result: no" >&5
10683echo "${ECHO_T}no" >&6
10684fi
10685
10686fi
10687if test -z "$ac_cv_prog_RANLIB"; then
10688 ac_ct_RANLIB=$RANLIB
10689 # Extract the first word of "ranlib", so it can be a program name with args.
10690set dummy ranlib; ac_word=$2
10691echo "$as_me:$LINENO: checking for $ac_word" >&5
10692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10693if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696 if test -n "$ac_ct_RANLIB"; then
10697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10698else
10699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700for as_dir in $PATH
10701do
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706 ac_cv_prog_ac_ct_RANLIB="ranlib"
10707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10709 fi
10710done
10711done
10712
10713 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10714fi
10715fi
10716ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10717if test -n "$ac_ct_RANLIB"; then
10718 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10719echo "${ECHO_T}$ac_ct_RANLIB" >&6
10720else
10721 echo "$as_me:$LINENO: result: no" >&5
10722echo "${ECHO_T}no" >&6
10723fi
10724
10725 RANLIB=$ac_ct_RANLIB
328a083c 10726else
247f5006 10727 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
10728fi
10729
10f2d63a
VZ
10730
10731# Extract the first word of "ar", so it can be a program name with args.
10732set dummy ar; ac_word=$2
247f5006
VZ
10733echo "$as_me:$LINENO: checking for $ac_word" >&5
10734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10735if test "${ac_cv_prog_AR+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10737else
10738 if test -n "$AR"; then
10739 ac_cv_prog_AR="$AR" # Let the user override the test.
10740else
247f5006
VZ
10741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742for as_dir in $PATH
10743do
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10748 ac_cv_prog_AR="ar"
10749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 break 2
10751 fi
10752done
10753done
10754
10f2d63a
VZ
10755 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
10756fi
10757fi
247f5006 10758AR=$ac_cv_prog_AR
10f2d63a 10759if test -n "$AR"; then
247f5006
VZ
10760 echo "$as_me:$LINENO: result: $AR" >&5
10761echo "${ECHO_T}$AR" >&6
10f2d63a 10762else
247f5006
VZ
10763 echo "$as_me:$LINENO: result: no" >&5
10764echo "${ECHO_T}no" >&6
10f2d63a
VZ
10765fi
10766
8284b0c5 10767
6054113a 10768# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
10769# so one script is as good as another. But avoid the broken or
10770# incompatible versions:
10771# SysV /etc/install, /usr/sbin/install
10772# SunOS /usr/etc/install
10773# IRIX /sbin/install
10774# AIX /bin/install
247f5006 10775# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 10776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
10777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10779# ./install, which can be erroneously created by make from ./install.sh.
247f5006
VZ
10780echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10781echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 10782if test -z "$INSTALL"; then
247f5006
VZ
10783if test "${ac_cv_path_install+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 # Account for people who put trailing slashes in PATH elements.
10792case $as_dir/ in
10793 ./ | .// | /cC/* | \
10794 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10795 /usr/ucb/* ) ;;
10796 *)
10797 # OSF1 and SCO ODT 3.0 have their own names for install.
10798 # Don't use installbsd from OSF since it installs stuff as root
10799 # by default.
10800 for ac_prog in ginstall scoinst install; do
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10803 if test $ac_prog = install &&
10804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10805 # AIX install. It has an incompatible calling convention.
10806 :
10807 elif test $ac_prog = install &&
10808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10809 # program-specific install script used by HP pwplus--don't use.
10810 :
10811 else
10812 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10813 break 3
10814 fi
10815 fi
10f2d63a 10816 done
247f5006
VZ
10817 done
10818 ;;
10819esac
10820done
10821
10f2d63a
VZ
10822
10823fi
10824 if test "${ac_cv_path_install+set}" = set; then
247f5006 10825 INSTALL=$ac_cv_path_install
10f2d63a
VZ
10826 else
10827 # As a last resort, use the slow shell script. We don't cache a
10828 # path for INSTALL within a source directory, because that will
10829 # break other packages using the cache if that directory is
10830 # removed, or if the path is relative.
247f5006 10831 INSTALL=$ac_install_sh
10f2d63a
VZ
10832 fi
10833fi
247f5006
VZ
10834echo "$as_me:$LINENO: result: $INSTALL" >&5
10835echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
10836
10837# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10838# It thinks the first close brace ends the variable substitution.
10839test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10840
247f5006 10841test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 10842
10f2d63a
VZ
10843test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10844
8284b0c5 10845
1d1b75ac
VZ
10846case ${INSTALL} in
10847 /* ) # Absolute
10848 ;;
3bd8fb5f 10849 *)
1d1b75ac
VZ
10850 INSTALL=`pwd`/${INSTALL} ;;
10851esac
10852
8284b0c5 10853
6054113a
GD
10854case "${host}" in
10855
b5853384 10856 powerpc-*-darwin* )
eb99ae0b
GD
10857 INSTALL_PROGRAM="cp -fp"
10858 INSTALL_DATA="cp -fp"
6054113a
GD
10859 ;;
10860 *)
10861 ;;
d6853540 10862esac
698dcdb6 10863
10f2d63a
VZ
10864# Extract the first word of "strip", so it can be a program name with args.
10865set dummy strip; ac_word=$2
247f5006
VZ
10866echo "$as_me:$LINENO: checking for $ac_word" >&5
10867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10868if test "${ac_cv_prog_STRIP+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10870else
10871 if test -n "$STRIP"; then
10872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10873else
247f5006
VZ
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881 ac_cv_prog_STRIP="strip"
10882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885done
10886done
10887
10f2d63a
VZ
10888 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
10889fi
10890fi
247f5006 10891STRIP=$ac_cv_prog_STRIP
10f2d63a 10892if test -n "$STRIP"; then
247f5006
VZ
10893 echo "$as_me:$LINENO: result: $STRIP" >&5
10894echo "${ECHO_T}$STRIP" >&6
10f2d63a 10895else
247f5006
VZ
10896 echo "$as_me:$LINENO: result: no" >&5
10897echo "${ECHO_T}no" >&6
10f2d63a
VZ
10898fi
10899
5c6fa7d2 10900
247f5006
VZ
10901echo "$as_me:$LINENO: checking if make is GNU make" >&5
10902echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
10903if test "${wx_cv_prog_makeisgnu+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 10905else
247f5006 10906
414eab6d 10907 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 10908 egrep -s GNU > /dev/null); then
414eab6d
VZ
10909 wx_cv_prog_makeisgnu="yes"
10910 else
10911 wx_cv_prog_makeisgnu="no"
10912 fi
10913
10914fi
247f5006
VZ
10915echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
10916echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
10917
10918if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
10919 IF_GNU_MAKE=""
10920else
10921 IF_GNU_MAKE="#"
10922fi
10923
8284b0c5
MB
10924
10925
414eab6d 10926if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
247f5006
VZ
10927echo "$as_me:$LINENO: checking if make supports VPATH" >&5
10928echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
10929if test "${wx_cv_prog_makevpath+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 10931else
247f5006 10932
10f2d63a
VZ
10933cat - << EOF > confMake
10934check : file
10935 cp \$? \$@
10936 cp \$? final_file
10937EOF
10938
10939if test ! -d sub ; then
10940 mkdir sub
10941fi
10942echo dummy > sub/file
f6bcfd97 10943${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
10944RESULT=$?
10945rm -f sub/file check final_file confMake
10946rmdir sub
10947if test "$RESULT" = 0; then
04e7a216 10948 wx_cv_prog_makevpath="yes"
10f2d63a 10949else
04e7a216
VZ
10950 wx_cv_prog_makevpath="no"
10951fi
10952
10953fi
247f5006
VZ
10954echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
10955echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
10956
10957if test "x$wx_cv_prog_makevpath" != "xyes"; then
247f5006
VZ
10958{ { echo "$as_me:$LINENO: error:
10959You need a make-utility that is able to use the variable
10960VPATH correctly.
10961If your version of make does not support VPATH correctly,
10962please install GNU-make (possibly as gmake), and start
10963configure with the following command:
10964export MAKE=gmake; ./configure for sh-type shells
10965setenv MAKE gmake; ./configure for csh-type shells
10966Also please do remember to use gmake in this case every time
10967you are trying to compile.
10968" >&5
10969echo "$as_me: error:
5c6fa7d2
RR
10970You need a make-utility that is able to use the variable
10971VPATH correctly.
10972If your version of make does not support VPATH correctly,
10973please install GNU-make (possibly as gmake), and start
10974configure with the following command:
10975export MAKE=gmake; ./configure for sh-type shells
10976setenv MAKE gmake; ./configure for csh-type shells
10977Also please do remember to use gmake in this case every time
10978you are trying to compile.
247f5006
VZ
10979" >&2;}
10980 { (exit 1); exit 1; }; }
10981fi fi
10f2d63a
VZ
10982for ac_prog in 'bison -y' byacc
10983do
247f5006 10984 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 10985set dummy $ac_prog; ac_word=$2
247f5006
VZ
10986echo "$as_me:$LINENO: checking for $ac_word" >&5
10987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10988if test "${ac_cv_prog_YACC+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10990else
10991 if test -n "$YACC"; then
10992 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10993else
247f5006
VZ
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11001 ac_cv_prog_YACC="$ac_prog"
11002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11004 fi
11005done
11006done
11007
10f2d63a
VZ
11008fi
11009fi
247f5006 11010YACC=$ac_cv_prog_YACC
10f2d63a 11011if test -n "$YACC"; then
247f5006
VZ
11012 echo "$as_me:$LINENO: result: $YACC" >&5
11013echo "${ECHO_T}$YACC" >&6
10f2d63a 11014else
247f5006
VZ
11015 echo "$as_me:$LINENO: result: no" >&5
11016echo "${ECHO_T}no" >&6
10f2d63a
VZ
11017fi
11018
247f5006 11019 test -n "$YACC" && break
10f2d63a
VZ
11020done
11021test -n "$YACC" || YACC="yacc"
11022
8284b0c5 11023
247f5006
VZ
11024for ac_prog in flex lex
11025do
11026 # Extract the first word of "$ac_prog", so it can be a program name with args.
11027set dummy $ac_prog; ac_word=$2
11028echo "$as_me:$LINENO: checking for $ac_word" >&5
11029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11030if test "${ac_cv_prog_LEX+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11032else
11033 if test -n "$LEX"; then
11034 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11035else
247f5006
VZ
11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_prog_LEX="$ac_prog"
11044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11046 fi
11047done
11048done
11049
10f2d63a
VZ
11050fi
11051fi
247f5006 11052LEX=$ac_cv_prog_LEX
10f2d63a 11053if test -n "$LEX"; then
247f5006
VZ
11054 echo "$as_me:$LINENO: result: $LEX" >&5
11055echo "${ECHO_T}$LEX" >&6
10f2d63a 11056else
247f5006
VZ
11057 echo "$as_me:$LINENO: result: no" >&5
11058echo "${ECHO_T}no" >&6
10f2d63a
VZ
11059fi
11060
247f5006
VZ
11061 test -n "$LEX" && break
11062done
11063test -n "$LEX" || LEX=":"
11064
10f2d63a
VZ
11065if test -z "$LEXLIB"
11066then
247f5006
VZ
11067 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11068echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11069if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072 ac_check_lib_save_LIBS=$LIBS
11073LIBS="-lfl $LIBS"
11074cat >conftest.$ac_ext <<_ACEOF
11075#line $LINENO "configure"
10f2d63a 11076#include "confdefs.h"
247f5006 11077
10f2d63a 11078/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
11079#ifdef __cplusplus
11080extern "C"
11081#endif
10f2d63a 11082/* We use char because int might match the return type of a gcc2
247f5006
VZ
11083 builtin and then its argument prototype would still apply. */
11084char yywrap ();
11085#ifdef F77_DUMMY_MAIN
11086# ifdef __cplusplus
11087 extern "C"
11088# endif
11089 int F77_DUMMY_MAIN() { return 1; }
11090#endif
11091int
11092main ()
11093{
11094yywrap ();
11095 ;
11096 return 0;
11097}
11098_ACEOF
11099rm -f conftest.$ac_objext conftest$ac_exeext
11100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_cv_lib_fl_yywrap=yes
11112else
11113 echo "$as_me: failed program was:" >&5
11114cat conftest.$ac_ext >&5
11115ac_cv_lib_fl_yywrap=no
11116fi
11117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11118LIBS=$ac_check_lib_save_LIBS
11119fi
11120echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11121echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11122if test $ac_cv_lib_fl_yywrap = yes; then
11123 LEXLIB="-lfl"
11124else
11125 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11126echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11127if test "${ac_cv_lib_l_yywrap+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 ac_check_lib_save_LIBS=$LIBS
11131LIBS="-ll $LIBS"
11132cat >conftest.$ac_ext <<_ACEOF
11133#line $LINENO "configure"
11134#include "confdefs.h"
11135
11136/* Override any gcc2 internal prototype to avoid an error. */
11137#ifdef __cplusplus
11138extern "C"
11139#endif
11140/* We use char because int might match the return type of a gcc2
11141 builtin and then its argument prototype would still apply. */
11142char yywrap ();
11143#ifdef F77_DUMMY_MAIN
11144# ifdef __cplusplus
11145 extern "C"
11146# endif
11147 int F77_DUMMY_MAIN() { return 1; }
11148#endif
11149int
11150main ()
11151{
11152yywrap ();
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext conftest$ac_exeext
11158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11159 (eval $ac_link) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_lib_l_yywrap=yes
11170else
11171 echo "$as_me: failed program was:" >&5
11172cat conftest.$ac_ext >&5
11173ac_cv_lib_l_yywrap=no
11174fi
11175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11176LIBS=$ac_check_lib_save_LIBS
11177fi
11178echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11179echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11180if test $ac_cv_lib_l_yywrap = yes; then
11181 LEXLIB="-ll"
11182fi
11183
11184fi
11185
11186fi
11187
11188if test "x$LEX" != "x:"; then
11189 echo "$as_me:$LINENO: checking lex output file root" >&5
11190echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11191if test "${ac_cv_prog_lex_root+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 # The minimal lex program is just a single line: %%. But some broken lexes
11195# (Solaris, I think it was) want two %% lines, so accommodate them.
11196cat >conftest.l <<_ACEOF
11197%%
11198%%
11199_ACEOF
11200{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11201 (eval $LEX conftest.l) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }
11205if test -f lex.yy.c; then
11206 ac_cv_prog_lex_root=lex.yy
11207elif test -f lexyy.c; then
11208 ac_cv_prog_lex_root=lexyy
11209else
11210 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11211echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11212 { (exit 1); exit 1; }; }
11213fi
11214fi
11215echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11216echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11217rm -f conftest.l
11218LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11219
11220echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11221echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11222if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 # POSIX says lex can declare yytext either as a pointer or an array; the
11226# default is implementation-dependent. Figure out which it is, since
11227# not all implementations provide the %pointer and %array declarations.
11228ac_cv_prog_lex_yytext_pointer=no
11229echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11230ac_save_LIBS=$LIBS
11231LIBS="$LIBS $LEXLIB"
11232cat >conftest.$ac_ext <<_ACEOF
11233`cat $LEX_OUTPUT_ROOT.c`
11234_ACEOF
11235rm -f conftest.$ac_objext conftest$ac_exeext
11236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237 (eval $ac_link) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -s conftest$ac_exeext'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
11247 ac_cv_prog_lex_yytext_pointer=yes
11248else
11249 echo "$as_me: failed program was:" >&5
11250cat conftest.$ac_ext >&5
11251fi
11252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11253LIBS=$ac_save_LIBS
11254rm -f "${LEX_OUTPUT_ROOT}.c"
11255
11256fi
11257echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11258echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11259if test $ac_cv_prog_lex_yytext_pointer = yes; then
11260
11261cat >>confdefs.h <<\_ACEOF
11262#define YYTEXT_POINTER 1
11263_ACEOF
10f2d63a 11264
10f2d63a 11265fi
8284b0c5 11266
10f2d63a 11267fi
247f5006
VZ
11268
11269echo "$as_me:$LINENO: checking whether ln -s works" >&5
11270echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11271LN_S=$as_ln_s
11272if test "$LN_S" = "ln -s"; then
11273 echo "$as_me:$LINENO: result: yes" >&5
11274echo "${ECHO_T}yes" >&6
8284b0c5 11275else
247f5006
VZ
11276 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11277echo "${ECHO_T}no, using $LN_S" >&6
10f2d63a
VZ
11278fi
11279
10f2d63a
VZ
11280
11281
247f5006
VZ
11282if test "$wxUSE_MAC" != 1; then
11283 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11284echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11285if test "${ac_cv_header_stdc+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11287else
247f5006
VZ
11288 cat >conftest.$ac_ext <<_ACEOF
11289#line $LINENO "configure"
11290#include "confdefs.h"
11291#include <stdlib.h>
11292#include <stdarg.h>
11293#include <string.h>
11294#include <float.h>
11295
11296_ACEOF
11297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11299 ac_status=$?
11300 egrep -v '^ *\+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } >/dev/null; then
11305 if test -s conftest.err; then
11306 ac_cpp_err=$ac_c_preproc_warn_flag
11307 else
11308 ac_cpp_err=
11309 fi
10f2d63a 11310else
247f5006 11311 ac_cpp_err=yes
10f2d63a 11312fi
247f5006
VZ
11313if test -z "$ac_cpp_err"; then
11314 ac_cv_header_stdc=yes
10f2d63a 11315else
247f5006
VZ
11316 echo "$as_me: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11318 ac_cv_header_stdc=no
5c6fa7d2 11319fi
247f5006 11320rm -f conftest.err conftest.$ac_ext
5c6fa7d2 11321
247f5006
VZ
11322if test $ac_cv_header_stdc = yes; then
11323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11324 cat >conftest.$ac_ext <<_ACEOF
11325#line $LINENO "configure"
19bc6aad 11326#include "confdefs.h"
247f5006
VZ
11327#include <string.h>
11328
11329_ACEOF
11330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11331 egrep "memchr" >/dev/null 2>&1; then
11332 :
8284b0c5 11333else
247f5006 11334 ac_cv_header_stdc=no
21d1c967 11335fi
247f5006 11336rm -f conftest*
19bc6aad 11337
19bc6aad
VZ
11338fi
11339
247f5006
VZ
11340if test $ac_cv_header_stdc = yes; then
11341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11342 cat >conftest.$ac_ext <<_ACEOF
11343#line $LINENO "configure"
18dbb1f6 11344#include "confdefs.h"
247f5006
VZ
11345#include <stdlib.h>
11346
11347_ACEOF
11348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11349 egrep "free" >/dev/null 2>&1; then
11350 :
11351else
11352 ac_cv_header_stdc=no
18dbb1f6 11353fi
8284b0c5 11354rm -f conftest*
247f5006 11355
90dd450c 11356fi
90dd450c 11357
247f5006
VZ
11358if test $ac_cv_header_stdc = yes; then
11359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11360 if test "$cross_compiling" = yes; then
11361 :
11362else
11363 cat >conftest.$ac_ext <<_ACEOF
11364#line $LINENO "configure"
90dd450c 11365#include "confdefs.h"
247f5006
VZ
11366#include <ctype.h>
11367#if ((' ' & 0x0FF) == 0x020)
11368# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11369# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11370#else
11371# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11372 || ('j' <= (c) && (c) <= 'r') \
11373 || ('s' <= (c) && (c) <= 'z'))
11374# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11375#endif
11376
11377#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11378int
11379main ()
11380{
11381 int i;
11382 for (i = 0; i < 256; i++)
11383 if (XOR (islower (i), ISLOWER (i))
11384 || toupper (i) != TOUPPER (i))
11385 exit(2);
11386 exit (0);
11387}
11388_ACEOF
11389rm -f conftest$ac_exeext
11390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11391 (eval $ac_link) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 :
8284b0c5 11401else
247f5006
VZ
11402 echo "$as_me: program exited with status $ac_status" >&5
11403echo "$as_me: failed program was:" >&5
11404cat conftest.$ac_ext >&5
11405( exit $ac_status )
11406ac_cv_header_stdc=no
21d1c967 11407fi
247f5006 11408rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3a922bb4 11409fi
90dd450c 11410fi
21d1c967 11411fi
247f5006
VZ
11412echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11413echo "${ECHO_T}$ac_cv_header_stdc" >&6
11414if test $ac_cv_header_stdc = yes; then
11415
11416cat >>confdefs.h <<\_ACEOF
11417#define STDC_HEADERS 1
11418_ACEOF
11419
11420fi
90dd450c 11421
247f5006
VZ
11422# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11433 inttypes.h stdint.h unistd.h
21d1c967 11434do
247f5006
VZ
11435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436echo "$as_me:$LINENO: checking for $ac_header" >&5
11437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11438if eval "test \"\${$as_ac_Header+set}\" = set"; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441 cat >conftest.$ac_ext <<_ACEOF
11442#line $LINENO "configure"
4f14bcd8 11443#include "confdefs.h"
247f5006
VZ
11444$ac_includes_default
11445
11446#include <$ac_header>
11447_ACEOF
11448rm -f conftest.$ac_objext
11449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -s conftest.$ac_objext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 eval "$as_ac_Header=yes"
11461else
11462 echo "$as_me: failed program was:" >&5
11463cat conftest.$ac_ext >&5
11464eval "$as_ac_Header=no"
11465fi
11466rm -f conftest.$ac_objext conftest.$ac_ext
11467fi
11468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11470if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471 cat >>confdefs.h <<_ACEOF
11472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473_ACEOF
11474
21d1c967 11475fi
247f5006 11476
21d1c967 11477done
4f14bcd8 11478
5c6fa7d2 11479
247f5006
VZ
11480
11481for ac_header in strings.h
21d1c967 11482do
247f5006
VZ
11483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484if eval "test \"\${$as_ac_Header+set}\" = set"; then
11485 echo "$as_me:$LINENO: checking for $ac_header" >&5
11486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11487if eval "test \"\${$as_ac_Header+set}\" = set"; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489fi
11490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11492else
11493 # Is the header compilable?
11494echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11496cat >conftest.$ac_ext <<_ACEOF
11497#line $LINENO "configure"
d4158b5d 11498#include "confdefs.h"
247f5006
VZ
11499$ac_includes_default
11500#include <$ac_header>
11501_ACEOF
11502rm -f conftest.$ac_objext
11503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11504 (eval $ac_compile) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -s conftest.$ac_objext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_header_compiler=yes
11515else
11516 echo "$as_me: failed program was:" >&5
11517cat conftest.$ac_ext >&5
11518ac_header_compiler=no
11519fi
11520rm -f conftest.$ac_objext conftest.$ac_ext
11521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11522echo "${ECHO_T}$ac_header_compiler" >&6
11523
11524# Is the header present?
11525echo "$as_me:$LINENO: checking $ac_header presence" >&5
11526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11527cat >conftest.$ac_ext <<_ACEOF
11528#line $LINENO "configure"
11529#include "confdefs.h"
11530#include <$ac_header>
11531_ACEOF
11532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11534 ac_status=$?
11535 egrep -v '^ *\+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } >/dev/null; then
11540 if test -s conftest.err; then
11541 ac_cpp_err=$ac_c_preproc_warn_flag
11542 else
11543 ac_cpp_err=
11544 fi
11545else
11546 ac_cpp_err=yes
11547fi
11548if test -z "$ac_cpp_err"; then
11549 ac_header_preproc=yes
11550else
11551 echo "$as_me: failed program was:" >&5
d4158b5d 11552 cat conftest.$ac_ext >&5
247f5006
VZ
11553 ac_header_preproc=no
11554fi
11555rm -f conftest.err conftest.$ac_ext
11556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11557echo "${ECHO_T}$ac_header_preproc" >&6
11558
11559# So? What about this header?
11560case $ac_header_compiler:$ac_header_preproc in
11561 yes:no )
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11566 no:yes )
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11573esac
11574echo "$as_me:$LINENO: checking for $ac_header" >&5
11575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11576if eval "test \"\${$as_ac_Header+set}\" = set"; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 11580fi
247f5006
VZ
11581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11583
21d1c967 11584fi
247f5006
VZ
11585if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11588_ACEOF
11589
d4158b5d 11590fi
247f5006 11591
21d1c967 11592done
f6bcfd97 11593
90dd450c 11594fi
90dd450c 11595
247f5006
VZ
11596
11597for ac_header in stdlib.h
21d1c967 11598do
247f5006
VZ
11599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11600if eval "test \"\${$as_ac_Header+set}\" = set"; then
11601 echo "$as_me:$LINENO: checking for $ac_header" >&5
11602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11603if eval "test \"\${$as_ac_Header+set}\" = set"; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605fi
11606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11608else
11609 # Is the header compilable?
11610echo "$as_me:$LINENO: checking $ac_header usability" >&5
11611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11612cat >conftest.$ac_ext <<_ACEOF
11613#line $LINENO "configure"
90dd450c 11614#include "confdefs.h"
247f5006
VZ
11615$ac_includes_default
11616#include <$ac_header>
11617_ACEOF
11618rm -f conftest.$ac_objext
11619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -s conftest.$ac_objext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_header_compiler=yes
11631else
11632 echo "$as_me: failed program was:" >&5
11633cat conftest.$ac_ext >&5
11634ac_header_compiler=no
11635fi
11636rm -f conftest.$ac_objext conftest.$ac_ext
11637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638echo "${ECHO_T}$ac_header_compiler" >&6
11639
11640# Is the header present?
11641echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11643cat >conftest.$ac_ext <<_ACEOF
11644#line $LINENO "configure"
11645#include "confdefs.h"
11646#include <$ac_header>
11647_ACEOF
11648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11650 ac_status=$?
11651 egrep -v '^ *\+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } >/dev/null; then
11656 if test -s conftest.err; then
11657 ac_cpp_err=$ac_c_preproc_warn_flag
11658 else
11659 ac_cpp_err=
11660 fi
11661else
11662 ac_cpp_err=yes
11663fi
11664if test -z "$ac_cpp_err"; then
11665 ac_header_preproc=yes
11666else
11667 echo "$as_me: failed program was:" >&5
3a922bb4 11668 cat conftest.$ac_ext >&5
247f5006
VZ
11669 ac_header_preproc=no
11670fi
11671rm -f conftest.err conftest.$ac_ext
11672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673echo "${ECHO_T}$ac_header_preproc" >&6
11674
11675# So? What about this header?
11676case $ac_header_compiler:$ac_header_preproc in
11677 yes:no )
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11682 no:yes )
11683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11689esac
11690echo "$as_me:$LINENO: checking for $ac_header" >&5
11691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11692if eval "test \"\${$as_ac_Header+set}\" = set"; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694else
11695 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 11696fi
247f5006
VZ
11697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11699
4f14bcd8 11700fi
247f5006
VZ
11701if test `eval echo '${'$as_ac_Header'}'` = yes; then
11702 cat >>confdefs.h <<_ACEOF
11703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11704_ACEOF
11705
21d1c967 11706fi
247f5006 11707
21d1c967 11708done
90dd450c 11709
5c6fa7d2 11710
247f5006 11711for ac_header in malloc.h
21d1c967 11712do
247f5006
VZ
11713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11714if eval "test \"\${$as_ac_Header+set}\" = set"; then
11715 echo "$as_me:$LINENO: checking for $ac_header" >&5
11716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11717if eval "test \"\${$as_ac_Header+set}\" = set"; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719fi
11720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11722else
11723 # Is the header compilable?
11724echo "$as_me:$LINENO: checking $ac_header usability" >&5
11725echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11726cat >conftest.$ac_ext <<_ACEOF
11727#line $LINENO "configure"
90dd450c 11728#include "confdefs.h"
247f5006
VZ
11729$ac_includes_default
11730#include <$ac_header>
11731_ACEOF
11732rm -f conftest.$ac_objext
11733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11734 (eval $ac_compile) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_header_compiler=yes
11745else
11746 echo "$as_me: failed program was:" >&5
11747cat conftest.$ac_ext >&5
11748ac_header_compiler=no
11749fi
11750rm -f conftest.$ac_objext conftest.$ac_ext
11751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11752echo "${ECHO_T}$ac_header_compiler" >&6
11753
11754# Is the header present?
11755echo "$as_me:$LINENO: checking $ac_header presence" >&5
11756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11757cat >conftest.$ac_ext <<_ACEOF
11758#line $LINENO "configure"
11759#include "confdefs.h"
11760#include <$ac_header>
11761_ACEOF
11762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11764 ac_status=$?
11765 egrep -v '^ *\+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } >/dev/null; then
11770 if test -s conftest.err; then
11771 ac_cpp_err=$ac_c_preproc_warn_flag
11772 else
11773 ac_cpp_err=
11774 fi
11775else
11776 ac_cpp_err=yes
11777fi
11778if test -z "$ac_cpp_err"; then
11779 ac_header_preproc=yes
8284b0c5 11780else
247f5006 11781 echo "$as_me: failed program was:" >&5
8284b0c5 11782 cat conftest.$ac_ext >&5
247f5006
VZ
11783 ac_header_preproc=no
11784fi
11785rm -f conftest.err conftest.$ac_ext
11786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11787echo "${ECHO_T}$ac_header_preproc" >&6
11788
11789# So? What about this header?
11790case $ac_header_compiler:$ac_header_preproc in
11791 yes:no )
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11796 no:yes )
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11800echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11803esac
11804echo "$as_me:$LINENO: checking for $ac_header" >&5
11805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11806if eval "test \"\${$as_ac_Header+set}\" = set"; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 eval "$as_ac_Header=$ac_header_preproc"
8284b0c5 11810fi
247f5006
VZ
11811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11813
8284b0c5 11814fi
247f5006
VZ
11815if test `eval echo '${'$as_ac_Header'}'` = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11818_ACEOF
32832908 11819
21d1c967 11820fi
247f5006 11821
21d1c967 11822done
90dd450c
VZ
11823
11824
247f5006 11825for ac_header in unistd.h
21d1c967 11826do
247f5006
VZ
11827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11828if eval "test \"\${$as_ac_Header+set}\" = set"; then
11829 echo "$as_me:$LINENO: checking for $ac_header" >&5
11830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11831if eval "test \"\${$as_ac_Header+set}\" = set"; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833fi
11834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11836else
11837 # Is the header compilable?
11838echo "$as_me:$LINENO: checking $ac_header usability" >&5
11839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11840cat >conftest.$ac_ext <<_ACEOF
11841#line $LINENO "configure"
90dd450c 11842#include "confdefs.h"
247f5006
VZ
11843$ac_includes_default
11844#include <$ac_header>
11845_ACEOF
11846rm -f conftest.$ac_objext
11847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 ac_header_compiler=yes
11859else
11860 echo "$as_me: failed program was:" >&5
11861cat conftest.$ac_ext >&5
11862ac_header_compiler=no
11863fi
11864rm -f conftest.$ac_objext conftest.$ac_ext
11865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11866echo "${ECHO_T}$ac_header_compiler" >&6
11867
11868# Is the header present?
11869echo "$as_me:$LINENO: checking $ac_header presence" >&5
11870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11871cat >conftest.$ac_ext <<_ACEOF
11872#line $LINENO "configure"
11873#include "confdefs.h"
11874#include <$ac_header>
11875_ACEOF
11876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11878 ac_status=$?
11879 egrep -v '^ *\+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } >/dev/null; then
11884 if test -s conftest.err; then
11885 ac_cpp_err=$ac_c_preproc_warn_flag
11886 else
11887 ac_cpp_err=
11888 fi
11889else
11890 ac_cpp_err=yes
11891fi
11892if test -z "$ac_cpp_err"; then
11893 ac_header_preproc=yes
11894else
11895 echo "$as_me: failed program was:" >&5
90dd450c 11896 cat conftest.$ac_ext >&5
247f5006
VZ
11897 ac_header_preproc=no
11898fi
11899rm -f conftest.err conftest.$ac_ext
11900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11901echo "${ECHO_T}$ac_header_preproc" >&6
11902
11903# So? What about this header?
11904case $ac_header_compiler:$ac_header_preproc in
11905 yes:no )
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11910 no:yes )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11917esac
11918echo "$as_me:$LINENO: checking for $ac_header" >&5
11919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11920if eval "test \"\${$as_ac_Header+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922else
11923 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 11924fi
247f5006
VZ
11925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11927
4f14bcd8 11928fi
247f5006
VZ
11929if test `eval echo '${'$as_ac_Header'}'` = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11932_ACEOF
11933
21d1c967 11934fi
247f5006 11935
21d1c967 11936done
3a922bb4 11937
8284b0c5 11938
247f5006 11939for ac_header in wchar.h
21d1c967 11940do
247f5006
VZ
11941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11942if eval "test \"\${$as_ac_Header+set}\" = set"; then
11943 echo "$as_me:$LINENO: checking for $ac_header" >&5
11944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11945if eval "test \"\${$as_ac_Header+set}\" = set"; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947fi
11948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11950else
11951 # Is the header compilable?
11952echo "$as_me:$LINENO: checking $ac_header usability" >&5
11953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11954cat >conftest.$ac_ext <<_ACEOF
11955#line $LINENO "configure"
90dd450c 11956#include "confdefs.h"
247f5006
VZ
11957$ac_includes_default
11958#include <$ac_header>
11959_ACEOF
11960rm -f conftest.$ac_objext
11961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_header_compiler=yes
11973else
11974 echo "$as_me: failed program was:" >&5
11975cat conftest.$ac_ext >&5
11976ac_header_compiler=no
11977fi
11978rm -f conftest.$ac_objext conftest.$ac_ext
11979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11980echo "${ECHO_T}$ac_header_compiler" >&6
11981
11982# Is the header present?
11983echo "$as_me:$LINENO: checking $ac_header presence" >&5
11984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11985cat >conftest.$ac_ext <<_ACEOF
11986#line $LINENO "configure"
11987#include "confdefs.h"
11988#include <$ac_header>
11989_ACEOF
11990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11992 ac_status=$?
11993 egrep -v '^ *\+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } >/dev/null; then
11998 if test -s conftest.err; then
11999 ac_cpp_err=$ac_c_preproc_warn_flag
12000 else
12001 ac_cpp_err=
12002 fi
12003else
12004 ac_cpp_err=yes
12005fi
12006if test -z "$ac_cpp_err"; then
12007 ac_header_preproc=yes
12008else
12009 echo "$as_me: failed program was:" >&5
90dd450c 12010 cat conftest.$ac_ext >&5
247f5006
VZ
12011 ac_header_preproc=no
12012fi
12013rm -f conftest.err conftest.$ac_ext
12014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12015echo "${ECHO_T}$ac_header_preproc" >&6
12016
12017# So? What about this header?
12018case $ac_header_compiler:$ac_header_preproc in
12019 yes:no )
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12024 no:yes )
12025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12031esac
12032echo "$as_me:$LINENO: checking for $ac_header" >&5
12033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12034if eval "test \"\${$as_ac_Header+set}\" = set"; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036else
12037 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12038fi
247f5006
VZ
12039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12041
90dd450c 12042fi
247f5006
VZ
12043if test `eval echo '${'$as_ac_Header'}'` = yes; then
12044 cat >>confdefs.h <<_ACEOF
12045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12046_ACEOF
12047
12048fi
12049
12050done
12051
12052
12053if test "$ac_cv_header_wchar_h" != "yes"; then
12054
12055for ac_header in wcstr.h
12056do
12057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12058if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059 echo "$as_me:$LINENO: checking for $ac_header" >&5
12060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12061if eval "test \"\${$as_ac_Header+set}\" = set"; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063fi
12064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12066else
12067 # Is the header compilable?
12068echo "$as_me:$LINENO: checking $ac_header usability" >&5
12069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12070cat >conftest.$ac_ext <<_ACEOF
12071#line $LINENO "configure"
12072#include "confdefs.h"
12073$ac_includes_default
12074#include <$ac_header>
12075_ACEOF
12076rm -f conftest.$ac_objext
12077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_header_compiler=yes
12089else
12090 echo "$as_me: failed program was:" >&5
12091cat conftest.$ac_ext >&5
12092ac_header_compiler=no
12093fi
12094rm -f conftest.$ac_objext conftest.$ac_ext
12095echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12096echo "${ECHO_T}$ac_header_compiler" >&6
12097
12098# Is the header present?
12099echo "$as_me:$LINENO: checking $ac_header presence" >&5
12100echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12101cat >conftest.$ac_ext <<_ACEOF
12102#line $LINENO "configure"
12103#include "confdefs.h"
12104#include <$ac_header>
12105_ACEOF
12106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12108 ac_status=$?
12109 egrep -v '^ *\+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } >/dev/null; then
12114 if test -s conftest.err; then
12115 ac_cpp_err=$ac_c_preproc_warn_flag
12116 else
12117 ac_cpp_err=
12118 fi
12119else
12120 ac_cpp_err=yes
12121fi
12122if test -z "$ac_cpp_err"; then
12123 ac_header_preproc=yes
12124else
12125 echo "$as_me: failed program was:" >&5
12126 cat conftest.$ac_ext >&5
12127 ac_header_preproc=no
12128fi
12129rm -f conftest.err conftest.$ac_ext
12130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12131echo "${ECHO_T}$ac_header_preproc" >&6
12132
12133# So? What about this header?
12134case $ac_header_compiler:$ac_header_preproc in
12135 yes:no )
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12140 no:yes )
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12144echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12146echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12147esac
12148echo "$as_me:$LINENO: checking for $ac_header" >&5
12149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12150if eval "test \"\${$as_ac_Header+set}\" = set"; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 12152else
247f5006
VZ
12153 eval "$as_ac_Header=$ac_header_preproc"
12154fi
12155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12157
12158fi
12159if test `eval echo '${'$as_ac_Header'}'` = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12162_ACEOF
12163
21d1c967 12164fi
247f5006 12165
21d1c967 12166done
10f2d63a 12167
90dd450c 12168fi
81809c07 12169
8284b0c5 12170
247f5006
VZ
12171for ac_header in fnmatch.h
12172do
12173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12174if eval "test \"\${$as_ac_Header+set}\" = set"; then
12175 echo "$as_me:$LINENO: checking for $ac_header" >&5
12176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12177if eval "test \"\${$as_ac_Header+set}\" = set"; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179fi
12180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12182else
12183 # Is the header compilable?
12184echo "$as_me:$LINENO: checking $ac_header usability" >&5
12185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12186cat >conftest.$ac_ext <<_ACEOF
12187#line $LINENO "configure"
12188#include "confdefs.h"
12189$ac_includes_default
12190#include <$ac_header>
12191_ACEOF
12192rm -f conftest.$ac_objext
12193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12194 (eval $ac_compile) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -s conftest.$ac_objext'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 ac_header_compiler=yes
12205else
12206 echo "$as_me: failed program was:" >&5
12207cat conftest.$ac_ext >&5
12208ac_header_compiler=no
12209fi
12210rm -f conftest.$ac_objext conftest.$ac_ext
12211echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12212echo "${ECHO_T}$ac_header_compiler" >&6
12213
12214# Is the header present?
12215echo "$as_me:$LINENO: checking $ac_header presence" >&5
12216echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12217cat >conftest.$ac_ext <<_ACEOF
12218#line $LINENO "configure"
12219#include "confdefs.h"
12220#include <$ac_header>
12221_ACEOF
12222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12224 ac_status=$?
12225 egrep -v '^ *\+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } >/dev/null; then
12230 if test -s conftest.err; then
12231 ac_cpp_err=$ac_c_preproc_warn_flag
12232 else
12233 ac_cpp_err=
12234 fi
8168de4c 12235else
247f5006
VZ
12236 ac_cpp_err=yes
12237fi
12238if test -z "$ac_cpp_err"; then
12239 ac_header_preproc=yes
12240else
12241 echo "$as_me: failed program was:" >&5
12242 cat conftest.$ac_ext >&5
12243 ac_header_preproc=no
12244fi
12245rm -f conftest.err conftest.$ac_ext
12246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12247echo "${ECHO_T}$ac_header_preproc" >&6
12248
12249# So? What about this header?
12250case $ac_header_compiler:$ac_header_preproc in
12251 yes:no )
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12256 no:yes )
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12263esac
12264echo "$as_me:$LINENO: checking for $ac_header" >&5
12265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12266if eval "test \"\${$as_ac_Header+set}\" = set"; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 eval "$as_ac_Header=$ac_header_preproc"
12270fi
12271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12273
12274fi
12275if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276 cat >>confdefs.h <<_ACEOF
12277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278_ACEOF
12279
12280fi
12281
12282done
12283
12284
12285if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
12286
12287for ac_func in fnmatch
12288do
12289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12290echo "$as_me:$LINENO: checking for $ac_func" >&5
12291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12292if eval "test \"\${$as_ac_var+set}\" = set"; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12294else
12295 cat >conftest.$ac_ext <<_ACEOF
12296#line $LINENO "configure"
4f14bcd8 12297#include "confdefs.h"
247f5006
VZ
12298/* System header to define __stub macros and hopefully few prototypes,
12299 which can conflict with char $ac_func (); below. */
12300#include <assert.h>
12301/* Override any gcc2 internal prototype to avoid an error. */
12302#ifdef __cplusplus
12303extern "C"
12304#endif
12305/* We use char because int might match the return type of a gcc2
12306 builtin and then its argument prototype would still apply. */
12307char $ac_func ();
12308char (*f) ();
12309
12310#ifdef F77_DUMMY_MAIN
12311# ifdef __cplusplus
12312 extern "C"
12313# endif
12314 int F77_DUMMY_MAIN() { return 1; }
12315#endif
12316int
12317main ()
12318{
12319/* The GNU C library defines this for functions which it implements
12320 to always fail with ENOSYS. Some functions are actually named
12321 something starting with __ and the normal name is an alias. */
12322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12323choke me
12324#else
12325f = $ac_func;
12326#endif
8284b0c5 12327
247f5006
VZ
12328 ;
12329 return 0;
52127426 12330}
247f5006
VZ
12331_ACEOF
12332rm -f conftest.$ac_objext conftest$ac_exeext
12333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 eval "$as_ac_var=yes"
12345else
12346 echo "$as_me: failed program was:" >&5
12347cat conftest.$ac_ext >&5
12348eval "$as_ac_var=no"
12349fi
12350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12351fi
12352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12354if test `eval echo '${'$as_ac_var'}'` = yes; then
12355 cat >>confdefs.h <<_ACEOF
12356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12357_ACEOF
12358
12359fi
12360done
12361
12362fi
12363
12364
12365for ac_header in langinfo.h
12366do
12367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12368if eval "test \"\${$as_ac_Header+set}\" = set"; then
12369 echo "$as_me:$LINENO: checking for $ac_header" >&5
12370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12371if eval "test \"\${$as_ac_Header+set}\" = set"; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373fi
12374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12376else
12377 # Is the header compilable?
12378echo "$as_me:$LINENO: checking $ac_header usability" >&5
12379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12380cat >conftest.$ac_ext <<_ACEOF
12381#line $LINENO "configure"
12382#include "confdefs.h"
12383$ac_includes_default
12384#include <$ac_header>
12385_ACEOF
12386rm -f conftest.$ac_objext
12387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388 (eval $ac_compile) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_header_compiler=yes
12399else
12400 echo "$as_me: failed program was:" >&5
12401cat conftest.$ac_ext >&5
12402ac_header_compiler=no
12403fi
12404rm -f conftest.$ac_objext conftest.$ac_ext
12405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406echo "${ECHO_T}$ac_header_compiler" >&6
12407
12408# Is the header present?
12409echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12411cat >conftest.$ac_ext <<_ACEOF
12412#line $LINENO "configure"
12413#include "confdefs.h"
12414#include <$ac_header>
12415_ACEOF
12416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12418 ac_status=$?
12419 egrep -v '^ *\+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } >/dev/null; then
12424 if test -s conftest.err; then
12425 ac_cpp_err=$ac_c_preproc_warn_flag
12426 else
12427 ac_cpp_err=
12428 fi
12429else
12430 ac_cpp_err=yes
12431fi
12432if test -z "$ac_cpp_err"; then
12433 ac_header_preproc=yes
12434else
12435 echo "$as_me: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12437 ac_header_preproc=no
12438fi
12439rm -f conftest.err conftest.$ac_ext
12440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12441echo "${ECHO_T}$ac_header_preproc" >&6
12442
12443# So? What about this header?
12444case $ac_header_compiler:$ac_header_preproc in
12445 yes:no )
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12450 no:yes )
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12457esac
12458echo "$as_me:$LINENO: checking for $ac_header" >&5
12459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12460if eval "test \"\${$as_ac_Header+set}\" = set"; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462else
12463 eval "$as_ac_Header=$ac_header_preproc"
12464fi
12465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12467
12468fi
12469if test `eval echo '${'$as_ac_Header'}'` = yes; then
12470 cat >>confdefs.h <<_ACEOF
12471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12472_ACEOF
12473
12474fi
12475
12476done
12477
12478
12479if test "$wxUSE_GUI" = "yes"; then
12480 if test "$wxUSE_UNIX" = "yes"; then
12481
12482for ac_header in X11/XKBlib.h
12483do
12484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12485if eval "test \"\${$as_ac_Header+set}\" = set"; then
12486 echo "$as_me:$LINENO: checking for $ac_header" >&5
12487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12488if eval "test \"\${$as_ac_Header+set}\" = set"; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12490fi
12491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12493else
12494 # Is the header compilable?
12495echo "$as_me:$LINENO: checking $ac_header usability" >&5
12496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12497cat >conftest.$ac_ext <<_ACEOF
12498#line $LINENO "configure"
12499#include "confdefs.h"
12500$ac_includes_default
12501#include <$ac_header>
12502_ACEOF
12503rm -f conftest.$ac_objext
12504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -s conftest.$ac_objext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_header_compiler=yes
12516else
12517 echo "$as_me: failed program was:" >&5
12518cat conftest.$ac_ext >&5
12519ac_header_compiler=no
12520fi
12521rm -f conftest.$ac_objext conftest.$ac_ext
12522echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523echo "${ECHO_T}$ac_header_compiler" >&6
12524
12525# Is the header present?
12526echo "$as_me:$LINENO: checking $ac_header presence" >&5
12527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12528cat >conftest.$ac_ext <<_ACEOF
12529#line $LINENO "configure"
12530#include "confdefs.h"
12531#include <$ac_header>
12532_ACEOF
12533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12535 ac_status=$?
12536 egrep -v '^ *\+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } >/dev/null; then
12541 if test -s conftest.err; then
12542 ac_cpp_err=$ac_c_preproc_warn_flag
12543 else
12544 ac_cpp_err=
12545 fi
12546else
12547 ac_cpp_err=yes
12548fi
12549if test -z "$ac_cpp_err"; then
12550 ac_header_preproc=yes
12551else
12552 echo "$as_me: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12554 ac_header_preproc=no
12555fi
12556rm -f conftest.err conftest.$ac_ext
12557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12558echo "${ECHO_T}$ac_header_preproc" >&6
12559
12560# So? What about this header?
12561case $ac_header_compiler:$ac_header_preproc in
12562 yes:no )
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12567 no:yes )
12568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12574esac
12575echo "$as_me:$LINENO: checking for $ac_header" >&5
12576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12577if eval "test \"\${$as_ac_Header+set}\" = set"; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579else
12580 eval "$as_ac_Header=$ac_header_preproc"
12581fi
12582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12584
12585fi
12586if test `eval echo '${'$as_ac_Header'}'` = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12589_ACEOF
12590
12591fi
12592
12593done
12594
12595 fi
12596fi
12597
12598
12599echo "$as_me:$LINENO: 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
12603else
12604 ac_cv_prog_cc_stdc=no
12605ac_save_CC=$CC
12606cat >conftest.$ac_ext <<_ACEOF
12607#line $LINENO "configure"
12608#include "confdefs.h"
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];
7b4a847f 12621}
247f5006
VZ
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;
8284b0c5 12630}
247f5006
VZ
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;
12637#ifdef F77_DUMMY_MAIN
12638# ifdef __cplusplus
12639 extern "C"
12640# endif
12641 int F77_DUMMY_MAIN() { return 1; }
12642#endif
12643int
12644main ()
12645{
12646return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12647 ;
12648 return 0;
5c6fa7d2 12649}
247f5006
VZ
12650_ACEOF
12651# Don't try gcc -ansi; that turns off useful extensions and
12652# breaks some systems' header files.
12653# AIX -qlanglvl=ansi
12654# Ultrix and OSF/1 -std1
12655# HP-UX 10.20 and later -Ae
12656# HP-UX older versions -Aa -D_HPUX_SOURCE
12657# SVR4 -Xc -D__EXTENSIONS__
12658for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12659do
12660 CC="$ac_save_CC $ac_arg"
12661 rm -f conftest.$ac_objext
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 ac_cv_prog_cc_stdc=$ac_arg
12674break
12675else
12676 echo "$as_me: failed program was:" >&5
12677cat conftest.$ac_ext >&5
12678fi
12679rm -f conftest.$ac_objext
12680done
12681rm -f conftest.$ac_ext conftest.$ac_objext
12682CC=$ac_save_CC
8284b0c5 12683
247f5006
VZ
12684fi
12685
12686case "x$ac_cv_prog_cc_stdc" in
12687 x|xno)
12688 echo "$as_me:$LINENO: result: none needed" >&5
12689echo "${ECHO_T}none needed" >&6 ;;
12690 *)
12691 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12692echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12693 CC="$CC $ac_cv_prog_cc_stdc" ;;
12694esac
12695
12696echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12697echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12698if test "${ac_cv_c_const+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700else
12701 cat >conftest.$ac_ext <<_ACEOF
12702#line $LINENO "configure"
12703#include "confdefs.h"
12704
12705#ifdef F77_DUMMY_MAIN
12706# ifdef __cplusplus
12707 extern "C"
12708# endif
12709 int F77_DUMMY_MAIN() { return 1; }
12710#endif
12711int
12712main ()
12713{
12714/* FIXME: Include the comments suggested by Paul. */
12715#ifndef __cplusplus
12716 /* Ultrix mips cc rejects this. */
12717 typedef int charset[2];
12718 const charset x;
12719 /* SunOS 4.1.1 cc rejects this. */
12720 char const *const *ccp;
12721 char **p;
12722 /* NEC SVR4.0.2 mips cc rejects this. */
12723 struct point {int x, y;};
12724 static struct point const zero = {0,0};
12725 /* AIX XL C 1.02.0.0 rejects this.
12726 It does not let you subtract one const X* pointer from another in
12727 an arm of an if-expression whose if-part is not a constant
12728 expression */
12729 const char *g = "string";
12730 ccp = &g + (g ? g-g : 0);
12731 /* HPUX 7.0 cc rejects these. */
12732 ++ccp;
12733 p = (char**) ccp;
12734 ccp = (char const *const *) p;
12735 { /* SCO 3.2v4 cc rejects this. */
12736 char *t;
12737 char const *s = 0 ? (char *) 0 : (char const *) 0;
12738
12739 *t++ = 0;
12740 }
12741 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12742 int x[] = {25, 17};
12743 const int *foo = &x[0];
12744 ++foo;
12745 }
12746 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12747 typedef const int *iptr;
12748 iptr p = 0;
12749 ++p;
12750 }
12751 { /* AIX XL C 1.02.0.0 rejects this saying
12752 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12753 struct s { int j; const int *ap[3]; };
12754 struct s *b; b->j = 5;
12755 }
12756 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12757 const int foo = 10;
12758 }
12759#endif
12760
12761 ;
12762 return 0;
12763}
12764_ACEOF
12765rm -f conftest.$ac_objext
12766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767 (eval $ac_compile) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -s conftest.$ac_objext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
21d1c967 12777 ac_cv_c_const=yes
6f72b082 12778else
247f5006
VZ
12779 echo "$as_me: failed program was:" >&5
12780cat conftest.$ac_ext >&5
12781ac_cv_c_const=no
4f14bcd8 12782fi
247f5006 12783rm -f conftest.$ac_objext conftest.$ac_ext
698dcdb6 12784fi
247f5006
VZ
12785echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12786echo "${ECHO_T}$ac_cv_c_const" >&6
8284b0c5 12787if test $ac_cv_c_const = no; then
247f5006
VZ
12788
12789cat >>confdefs.h <<\_ACEOF
12790#define const
12791_ACEOF
90dd450c 12792
21d1c967 12793fi
90dd450c 12794
247f5006
VZ
12795echo "$as_me:$LINENO: checking for inline" >&5
12796echo $ECHO_N "checking for inline... $ECHO_C" >&6
12797if test "${ac_cv_c_inline+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
6f72b082 12799else
21d1c967
GD
12800 ac_cv_c_inline=no
12801for ac_kw in inline __inline__ __inline; do
247f5006
VZ
12802 cat >conftest.$ac_ext <<_ACEOF
12803#line $LINENO "configure"
4f14bcd8 12804#include "confdefs.h"
247f5006
VZ
12805#ifndef __cplusplus
12806static $ac_kw int static_foo () {return 0; }
12807$ac_kw int foo () {return 0; }
12808#endif
90dd450c 12809
247f5006
VZ
12810_ACEOF
12811rm -f conftest.$ac_objext
12812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813 (eval $ac_compile) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -s conftest.$ac_objext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
21d1c967 12823 ac_cv_c_inline=$ac_kw; break
6f72b082 12824else
247f5006
VZ
12825 echo "$as_me: failed program was:" >&5
12826cat conftest.$ac_ext >&5
698dcdb6 12827fi
247f5006 12828rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 12829done
4f14bcd8 12830
21d1c967 12831fi
247f5006
VZ
12832echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12833echo "${ECHO_T}$ac_cv_c_inline" >&6
12834case $ac_cv_c_inline in
21d1c967 12835 inline | yes) ;;
247f5006
VZ
12836 no)
12837cat >>confdefs.h <<\_ACEOF
12838#define inline
12839_ACEOF
21d1c967 12840 ;;
247f5006 12841 *) cat >>confdefs.h <<_ACEOF
21d1c967 12842#define inline $ac_cv_c_inline
247f5006 12843_ACEOF
21d1c967
GD
12844 ;;
12845esac
4f14bcd8 12846
5c6fa7d2 12847
247f5006
VZ
12848echo "$as_me:$LINENO: checking for char" >&5
12849echo $ECHO_N "checking for char... $ECHO_C" >&6
12850if test "${ac_cv_type_char+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852else
12853 cat >conftest.$ac_ext <<_ACEOF
12854#line $LINENO "configure"
12855#include "confdefs.h"
12856$ac_includes_default
12857#ifdef F77_DUMMY_MAIN
12858# ifdef __cplusplus
12859 extern "C"
12860# endif
12861 int F77_DUMMY_MAIN() { return 1; }
12862#endif
12863int
12864main ()
12865{
12866if ((char *) 0)
12867 return 0;
12868if (sizeof (char))
12869 return 0;
12870 ;
12871 return 0;
12872}
12873_ACEOF
12874rm -f conftest.$ac_objext
12875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12876 (eval $ac_compile) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_type_char=yes
12887else
12888 echo "$as_me: failed program was:" >&5
12889cat conftest.$ac_ext >&5
12890ac_cv_type_char=no
12891fi
12892rm -f conftest.$ac_objext conftest.$ac_ext
12893fi
12894echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12895echo "${ECHO_T}$ac_cv_type_char" >&6
12896
12897echo "$as_me:$LINENO: checking size of char" >&5
12898echo $ECHO_N "checking size of char... $ECHO_C" >&6
12899if test "${ac_cv_sizeof_char+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
12902 if test "$ac_cv_type_char" = yes; then
12903 # The cast to unsigned long works around a bug in the HP C Compiler
12904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12906 # This bug is HP SR number 8606223364.
12907 if test "$cross_compiling" = yes; then
12908 # Depending upon the size, compute the lo and hi bounds.
12909cat >conftest.$ac_ext <<_ACEOF
12910#line $LINENO "configure"
12911#include "confdefs.h"
12912$ac_includes_default
12913#ifdef F77_DUMMY_MAIN
12914# ifdef __cplusplus
12915 extern "C"
12916# endif
12917 int F77_DUMMY_MAIN() { return 1; }
12918#endif
12919int
12920main ()
12921{
12922static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12923test_array [0] = 0
12924
12925 ;
12926 return 0;
12927}
12928_ACEOF
12929rm -f conftest.$ac_objext
12930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931 (eval $ac_compile) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -s conftest.$ac_objext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_lo=0 ac_mid=0
12942 while :; do
12943 cat >conftest.$ac_ext <<_ACEOF
12944#line $LINENO "configure"
12945#include "confdefs.h"
12946$ac_includes_default
12947#ifdef F77_DUMMY_MAIN
12948# ifdef __cplusplus
12949 extern "C"
12950# endif
12951 int F77_DUMMY_MAIN() { return 1; }
12952#endif
12953int
12954main ()
12955{
12956static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12957test_array [0] = 0
12958
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963rm -f conftest.$ac_objext
12964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -s conftest.$ac_objext'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_hi=$ac_mid; break
12976else
12977 echo "$as_me: failed program was:" >&5
12978cat conftest.$ac_ext >&5
12979ac_lo=`expr $ac_mid + 1`
12980 if test $ac_lo -le $ac_mid; then
12981 ac_lo= ac_hi=
12982 break
12983 fi
12984 ac_mid=`expr 2 '*' $ac_mid + 1`
12985fi
12986rm -f conftest.$ac_objext conftest.$ac_ext
12987 done
12988else
12989 echo "$as_me: failed program was:" >&5
12990cat conftest.$ac_ext >&5
12991cat >conftest.$ac_ext <<_ACEOF
12992#line $LINENO "configure"
12993#include "confdefs.h"
12994$ac_includes_default
12995#ifdef F77_DUMMY_MAIN
12996# ifdef __cplusplus
12997 extern "C"
12998# endif
12999 int F77_DUMMY_MAIN() { return 1; }
13000#endif
13001int
13002main ()
13003{
13004static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13005test_array [0] = 0
13006
13007 ;
13008 return 0;
13009}
13010_ACEOF
13011rm -f conftest.$ac_objext
13012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 { ac_try='test -s conftest.$ac_objext'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_hi=-1 ac_mid=-1
13024 while :; do
13025 cat >conftest.$ac_ext <<_ACEOF
13026#line $LINENO "configure"
13027#include "confdefs.h"
13028$ac_includes_default
13029#ifdef F77_DUMMY_MAIN
13030# ifdef __cplusplus
13031 extern "C"
13032# endif
13033 int F77_DUMMY_MAIN() { return 1; }
13034#endif
13035int
13036main ()
13037{
13038static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13039test_array [0] = 0
13040
13041 ;
13042 return 0;
13043}
13044_ACEOF
13045rm -f conftest.$ac_objext
13046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13047 (eval $ac_compile) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -s conftest.$ac_objext'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_lo=$ac_mid; break
13058else
13059 echo "$as_me: failed program was:" >&5
13060cat conftest.$ac_ext >&5
13061ac_hi=`expr '(' $ac_mid ')' - 1`
13062 if test $ac_mid -le $ac_hi; then
13063 ac_lo= ac_hi=
13064 break
13065 fi
13066 ac_mid=`expr 2 '*' $ac_mid`
13067fi
13068rm -f conftest.$ac_objext conftest.$ac_ext
13069 done
13070else
13071 echo "$as_me: failed program was:" >&5
13072cat conftest.$ac_ext >&5
13073ac_lo= ac_hi=
13074fi
13075rm -f conftest.$ac_objext conftest.$ac_ext
13076fi
13077rm -f conftest.$ac_objext conftest.$ac_ext
13078# Binary search between lo and hi bounds.
13079while test "x$ac_lo" != "x$ac_hi"; do
13080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13081 cat >conftest.$ac_ext <<_ACEOF
13082#line $LINENO "configure"
13083#include "confdefs.h"
13084$ac_includes_default
13085#ifdef F77_DUMMY_MAIN
13086# ifdef __cplusplus
13087 extern "C"
13088# endif
13089 int F77_DUMMY_MAIN() { return 1; }
13090#endif
13091int
13092main ()
13093{
13094static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13095test_array [0] = 0
13096
13097 ;
13098 return 0;
13099}
13100_ACEOF
13101rm -f conftest.$ac_objext
13102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103 (eval $ac_compile) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 ac_hi=$ac_mid
13114else
13115 echo "$as_me: failed program was:" >&5
13116cat conftest.$ac_ext >&5
13117ac_lo=`expr '(' $ac_mid ')' + 1`
13118fi
13119rm -f conftest.$ac_objext conftest.$ac_ext
13120done
13121case $ac_lo in
13122?*) ac_cv_sizeof_char=$ac_lo;;
13123'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
13124echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
13125 { (exit 1); exit 1; }; } ;;
13126esac
13127else
13128 if test "$cross_compiling" = yes; then
13129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13130echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13131 { (exit 1); exit 1; }; }
13132else
13133 cat >conftest.$ac_ext <<_ACEOF
13134#line $LINENO "configure"
13135#include "confdefs.h"
13136$ac_includes_default
13137long longval () { return (long) (sizeof (char)); }
13138unsigned long ulongval () { return (long) (sizeof (char)); }
13139#include <stdio.h>
13140#include <stdlib.h>
13141#ifdef F77_DUMMY_MAIN
13142# ifdef __cplusplus
13143 extern "C"
13144# endif
13145 int F77_DUMMY_MAIN() { return 1; }
13146#endif
13147int
13148main ()
13149{
13150
13151 FILE *f = fopen ("conftest.val", "w");
13152 if (! f)
13153 exit (1);
13154 if (((long) (sizeof (char))) < 0)
13155 {
13156 long i = longval ();
13157 if (i != ((long) (sizeof (char))))
13158 exit (1);
13159 fprintf (f, "%ld\n", i);
13160 }
13161 else
13162 {
13163 unsigned long i = ulongval ();
13164 if (i != ((long) (sizeof (char))))
13165 exit (1);
13166 fprintf (f, "%lu\n", i);
13167 }
13168 exit (ferror (f) || fclose (f) != 0);
13169
13170 ;
13171 return 0;
13172}
13173_ACEOF
13174rm -f conftest$ac_exeext
13175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13176 (eval $ac_link) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 ac_cv_sizeof_char=`cat conftest.val`
13186else
13187 echo "$as_me: program exited with status $ac_status" >&5
13188echo "$as_me: failed program was:" >&5
13189cat conftest.$ac_ext >&5
13190( exit $ac_status )
13191{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
13192echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
13193 { (exit 1); exit 1; }; }
13194fi
13195rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13196fi
13197fi
13198rm -f conftest.val
13199else
13200 ac_cv_sizeof_char=0
13201fi
13202fi
13203echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13204echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13205cat >>confdefs.h <<_ACEOF
13206#define SIZEOF_CHAR $ac_cv_sizeof_char
13207_ACEOF
13208
13209
13210echo "$as_me:$LINENO: checking for short" >&5
13211echo $ECHO_N "checking for short... $ECHO_C" >&6
13212if test "${ac_cv_type_short+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214else
13215 cat >conftest.$ac_ext <<_ACEOF
13216#line $LINENO "configure"
13217#include "confdefs.h"
13218$ac_includes_default
13219#ifdef F77_DUMMY_MAIN
13220# ifdef __cplusplus
13221 extern "C"
13222# endif
13223 int F77_DUMMY_MAIN() { return 1; }
13224#endif
13225int
13226main ()
13227{
13228if ((short *) 0)
13229 return 0;
13230if (sizeof (short))
13231 return 0;
13232 ;
13233 return 0;
13234}
13235_ACEOF
13236rm -f conftest.$ac_objext
13237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13239 ac_status=$?
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 ac_cv_type_short=yes
13249else
13250 echo "$as_me: failed program was:" >&5
13251cat conftest.$ac_ext >&5
13252ac_cv_type_short=no
13253fi
13254rm -f conftest.$ac_objext conftest.$ac_ext
13255fi
13256echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13257echo "${ECHO_T}$ac_cv_type_short" >&6
13258
13259echo "$as_me:$LINENO: checking size of short" >&5
13260echo $ECHO_N "checking size of short... $ECHO_C" >&6
13261if test "${ac_cv_sizeof_short+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263else
13264 if test "$ac_cv_type_short" = yes; then
13265 # The cast to unsigned long works around a bug in the HP C Compiler
13266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13268 # This bug is HP SR number 8606223364.
13269 if test "$cross_compiling" = yes; then
13270 # Depending upon the size, compute the lo and hi bounds.
13271cat >conftest.$ac_ext <<_ACEOF
13272#line $LINENO "configure"
13273#include "confdefs.h"
13274$ac_includes_default
13275#ifdef F77_DUMMY_MAIN
13276# ifdef __cplusplus
13277 extern "C"
13278# endif
13279 int F77_DUMMY_MAIN() { return 1; }
13280#endif
13281int
13282main ()
13283{
13284static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13285test_array [0] = 0
13286
13287 ;
13288 return 0;
13289}
13290_ACEOF
13291rm -f conftest.$ac_objext
13292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13293 (eval $ac_compile) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
13297 { ac_try='test -s conftest.$ac_objext'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 ac_lo=0 ac_mid=0
13304 while :; do
13305 cat >conftest.$ac_ext <<_ACEOF
13306#line $LINENO "configure"
13307#include "confdefs.h"
13308$ac_includes_default
13309#ifdef F77_DUMMY_MAIN
13310# ifdef __cplusplus
13311 extern "C"
13312# endif
13313 int F77_DUMMY_MAIN() { return 1; }
13314#endif
13315int
13316main ()
13317{
13318static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13319test_array [0] = 0
13320
13321 ;
13322 return 0;
13323}
13324_ACEOF
13325rm -f conftest.$ac_objext
13326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327 (eval $ac_compile) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_hi=$ac_mid; break
13338else
13339 echo "$as_me: failed program was:" >&5
13340cat conftest.$ac_ext >&5
13341ac_lo=`expr $ac_mid + 1`
13342 if test $ac_lo -le $ac_mid; then
13343 ac_lo= ac_hi=
13344 break
13345 fi
13346 ac_mid=`expr 2 '*' $ac_mid + 1`
13347fi
13348rm -f conftest.$ac_objext conftest.$ac_ext
13349 done
13350else
13351 echo "$as_me: failed program was:" >&5
13352cat conftest.$ac_ext >&5
13353cat >conftest.$ac_ext <<_ACEOF
13354#line $LINENO "configure"
13355#include "confdefs.h"
13356$ac_includes_default
13357#ifdef F77_DUMMY_MAIN
13358# ifdef __cplusplus
13359 extern "C"
13360# endif
13361 int F77_DUMMY_MAIN() { return 1; }
13362#endif
13363int
13364main ()
13365{
13366static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13367test_array [0] = 0
13368
13369 ;
13370 return 0;
13371}
13372_ACEOF
13373rm -f conftest.$ac_objext
13374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -s conftest.$ac_objext'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; }; then
13385 ac_hi=-1 ac_mid=-1
13386 while :; do
13387 cat >conftest.$ac_ext <<_ACEOF
13388#line $LINENO "configure"
13389#include "confdefs.h"
13390$ac_includes_default
13391#ifdef F77_DUMMY_MAIN
13392# ifdef __cplusplus
13393 extern "C"
13394# endif
13395 int F77_DUMMY_MAIN() { return 1; }
13396#endif
13397int
13398main ()
13399{
13400static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13401test_array [0] = 0
13402
13403 ;
13404 return 0;
13405}
13406_ACEOF
13407rm -f conftest.$ac_objext
13408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13409 (eval $ac_compile) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -s conftest.$ac_objext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_lo=$ac_mid; break
13420else
13421 echo "$as_me: failed program was:" >&5
13422cat conftest.$ac_ext >&5
13423ac_hi=`expr '(' $ac_mid ')' - 1`
13424 if test $ac_mid -le $ac_hi; then
13425 ac_lo= ac_hi=
13426 break
13427 fi
13428 ac_mid=`expr 2 '*' $ac_mid`
13429fi
13430rm -f conftest.$ac_objext conftest.$ac_ext
13431 done
13432else
13433 echo "$as_me: failed program was:" >&5
13434cat conftest.$ac_ext >&5
13435ac_lo= ac_hi=
13436fi
13437rm -f conftest.$ac_objext conftest.$ac_ext
13438fi
13439rm -f conftest.$ac_objext conftest.$ac_ext
13440# Binary search between lo and hi bounds.
13441while test "x$ac_lo" != "x$ac_hi"; do
13442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13443 cat >conftest.$ac_ext <<_ACEOF
13444#line $LINENO "configure"
13445#include "confdefs.h"
13446$ac_includes_default
13447#ifdef F77_DUMMY_MAIN
13448# ifdef __cplusplus
13449 extern "C"
13450# endif
13451 int F77_DUMMY_MAIN() { return 1; }
13452#endif
13453int
13454main ()
13455{
13456static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13457test_array [0] = 0
13458
13459 ;
13460 return 0;
13461}
13462_ACEOF
13463rm -f conftest.$ac_objext
13464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_hi=$ac_mid
13476else
13477 echo "$as_me: failed program was:" >&5
13478cat conftest.$ac_ext >&5
13479ac_lo=`expr '(' $ac_mid ')' + 1`
13480fi
13481rm -f conftest.$ac_objext conftest.$ac_ext
13482done
13483case $ac_lo in
13484?*) ac_cv_sizeof_short=$ac_lo;;
13485'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
13486echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
13487 { (exit 1); exit 1; }; } ;;
13488esac
13489else
13490 if test "$cross_compiling" = yes; then
13491 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13492echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13493 { (exit 1); exit 1; }; }
13494else
13495 cat >conftest.$ac_ext <<_ACEOF
13496#line $LINENO "configure"
13497#include "confdefs.h"
13498$ac_includes_default
13499long longval () { return (long) (sizeof (short)); }
13500unsigned long ulongval () { return (long) (sizeof (short)); }
13501#include <stdio.h>
13502#include <stdlib.h>
13503#ifdef F77_DUMMY_MAIN
13504# ifdef __cplusplus
13505 extern "C"
13506# endif
13507 int F77_DUMMY_MAIN() { return 1; }
13508#endif
13509int
13510main ()
13511{
13512
13513 FILE *f = fopen ("conftest.val", "w");
13514 if (! f)
13515 exit (1);
13516 if (((long) (sizeof (short))) < 0)
13517 {
13518 long i = longval ();
13519 if (i != ((long) (sizeof (short))))
13520 exit (1);
13521 fprintf (f, "%ld\n", i);
13522 }
13523 else
13524 {
13525 unsigned long i = ulongval ();
13526 if (i != ((long) (sizeof (short))))
13527 exit (1);
13528 fprintf (f, "%lu\n", i);
13529 }
13530 exit (ferror (f) || fclose (f) != 0);
13531
13532 ;
13533 return 0;
13534}
13535_ACEOF
13536rm -f conftest$ac_exeext
13537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538 (eval $ac_link) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_sizeof_short=`cat conftest.val`
13548else
13549 echo "$as_me: program exited with status $ac_status" >&5
13550echo "$as_me: failed program was:" >&5
13551cat conftest.$ac_ext >&5
13552( exit $ac_status )
13553{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
13554echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
13555 { (exit 1); exit 1; }; }
13556fi
13557rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13558fi
13559fi
13560rm -f conftest.val
13561else
13562 ac_cv_sizeof_short=0
13563fi
13564fi
13565echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13566echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13567cat >>confdefs.h <<_ACEOF
13568#define SIZEOF_SHORT $ac_cv_sizeof_short
13569_ACEOF
13570
13571
13572echo "$as_me:$LINENO: checking for void *" >&5
13573echo $ECHO_N "checking for void *... $ECHO_C" >&6
13574if test "${ac_cv_type_void_p+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576else
13577 cat >conftest.$ac_ext <<_ACEOF
13578#line $LINENO "configure"
13579#include "confdefs.h"
13580$ac_includes_default
13581#ifdef F77_DUMMY_MAIN
13582# ifdef __cplusplus
13583 extern "C"
13584# endif
13585 int F77_DUMMY_MAIN() { return 1; }
13586#endif
13587int
13588main ()
13589{
13590if ((void * *) 0)
13591 return 0;
13592if (sizeof (void *))
13593 return 0;
13594 ;
13595 return 0;
13596}
13597_ACEOF
13598rm -f conftest.$ac_objext
13599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600 (eval $ac_compile) 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -s conftest.$ac_objext'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
13610 ac_cv_type_void_p=yes
13611else
13612 echo "$as_me: failed program was:" >&5
13613cat conftest.$ac_ext >&5
13614ac_cv_type_void_p=no
13615fi
13616rm -f conftest.$ac_objext conftest.$ac_ext
13617fi
13618echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13619echo "${ECHO_T}$ac_cv_type_void_p" >&6
13620
13621echo "$as_me:$LINENO: checking size of void *" >&5
13622echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13623if test "${ac_cv_sizeof_void_p+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625else
13626 if test "$ac_cv_type_void_p" = yes; then
13627 # The cast to unsigned long works around a bug in the HP C Compiler
13628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13630 # This bug is HP SR number 8606223364.
13631 if test "$cross_compiling" = yes; then
13632 # Depending upon the size, compute the lo and hi bounds.
13633cat >conftest.$ac_ext <<_ACEOF
13634#line $LINENO "configure"
13635#include "confdefs.h"
13636$ac_includes_default
13637#ifdef F77_DUMMY_MAIN
13638# ifdef __cplusplus
13639 extern "C"
13640# endif
13641 int F77_DUMMY_MAIN() { return 1; }
13642#endif
13643int
13644main ()
13645{
13646static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13647test_array [0] = 0
13648
13649 ;
13650 return 0;
13651}
13652_ACEOF
13653rm -f conftest.$ac_objext
13654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_lo=0 ac_mid=0
13666 while :; do
13667 cat >conftest.$ac_ext <<_ACEOF
13668#line $LINENO "configure"
13669#include "confdefs.h"
13670$ac_includes_default
13671#ifdef F77_DUMMY_MAIN
13672# ifdef __cplusplus
13673 extern "C"
13674# endif
13675 int F77_DUMMY_MAIN() { return 1; }
13676#endif
13677int
13678main ()
13679{
13680static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13681test_array [0] = 0
13682
13683 ;
13684 return 0;
13685}
13686_ACEOF
13687rm -f conftest.$ac_objext
13688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -s conftest.$ac_objext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_hi=$ac_mid; break
13700else
13701 echo "$as_me: failed program was:" >&5
13702cat conftest.$ac_ext >&5
13703ac_lo=`expr $ac_mid + 1`
13704 if test $ac_lo -le $ac_mid; then
13705 ac_lo= ac_hi=
13706 break
13707 fi
13708 ac_mid=`expr 2 '*' $ac_mid + 1`
13709fi
13710rm -f conftest.$ac_objext conftest.$ac_ext
13711 done
13712else
13713 echo "$as_me: failed program was:" >&5
13714cat conftest.$ac_ext >&5
13715cat >conftest.$ac_ext <<_ACEOF
13716#line $LINENO "configure"
13717#include "confdefs.h"
13718$ac_includes_default
13719#ifdef F77_DUMMY_MAIN
13720# ifdef __cplusplus
13721 extern "C"
13722# endif
13723 int F77_DUMMY_MAIN() { return 1; }
13724#endif
13725int
13726main ()
13727{
13728static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13729test_array [0] = 0
13730
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735rm -f conftest.$ac_objext
13736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13737 (eval $ac_compile) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_hi=-1 ac_mid=-1
13748 while :; do
13749 cat >conftest.$ac_ext <<_ACEOF
13750#line $LINENO "configure"
13751#include "confdefs.h"
13752$ac_includes_default
13753#ifdef F77_DUMMY_MAIN
13754# ifdef __cplusplus
13755 extern "C"
13756# endif
13757 int F77_DUMMY_MAIN() { return 1; }
13758#endif
13759int
13760main ()
13761{
13762static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13763test_array [0] = 0
13764
13765 ;
13766 return 0;
13767}
13768_ACEOF
13769rm -f conftest.$ac_objext
13770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13771 (eval $ac_compile) 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -s conftest.$ac_objext'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 ac_lo=$ac_mid; break
13782else
13783 echo "$as_me: failed program was:" >&5
13784cat conftest.$ac_ext >&5
13785ac_hi=`expr '(' $ac_mid ')' - 1`
13786 if test $ac_mid -le $ac_hi; then
13787 ac_lo= ac_hi=
13788 break
13789 fi
13790 ac_mid=`expr 2 '*' $ac_mid`
13791fi
13792rm -f conftest.$ac_objext conftest.$ac_ext
13793 done
13794else
13795 echo "$as_me: failed program was:" >&5
13796cat conftest.$ac_ext >&5
13797ac_lo= ac_hi=
13798fi
13799rm -f conftest.$ac_objext conftest.$ac_ext
13800fi
13801rm -f conftest.$ac_objext conftest.$ac_ext
13802# Binary search between lo and hi bounds.
13803while test "x$ac_lo" != "x$ac_hi"; do
13804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13805 cat >conftest.$ac_ext <<_ACEOF
13806#line $LINENO "configure"
13807#include "confdefs.h"
13808$ac_includes_default
13809#ifdef F77_DUMMY_MAIN
13810# ifdef __cplusplus
13811 extern "C"
13812# endif
13813 int F77_DUMMY_MAIN() { return 1; }
13814#endif
13815int
13816main ()
13817{
13818static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13819test_array [0] = 0
13820
13821 ;
13822 return 0;
13823}
13824_ACEOF
13825rm -f conftest.$ac_objext
13826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13827 (eval $ac_compile) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
13831 { ac_try='test -s conftest.$ac_objext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_hi=$ac_mid
13838else
13839 echo "$as_me: failed program was:" >&5
13840cat conftest.$ac_ext >&5
13841ac_lo=`expr '(' $ac_mid ')' + 1`
13842fi
13843rm -f conftest.$ac_objext conftest.$ac_ext
13844done
13845case $ac_lo in
13846?*) ac_cv_sizeof_void_p=$ac_lo;;
13847'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
13848echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
13849 { (exit 1); exit 1; }; } ;;
13850esac
13851else
13852 if test "$cross_compiling" = yes; then
13853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13854echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13855 { (exit 1); exit 1; }; }
13856else
13857 cat >conftest.$ac_ext <<_ACEOF
13858#line $LINENO "configure"
13859#include "confdefs.h"
13860$ac_includes_default
13861long longval () { return (long) (sizeof (void *)); }
13862unsigned long ulongval () { return (long) (sizeof (void *)); }
13863#include <stdio.h>
13864#include <stdlib.h>
13865#ifdef F77_DUMMY_MAIN
13866# ifdef __cplusplus
13867 extern "C"
13868# endif
13869 int F77_DUMMY_MAIN() { return 1; }
13870#endif
13871int
13872main ()
13873{
13874
13875 FILE *f = fopen ("conftest.val", "w");
13876 if (! f)
13877 exit (1);
13878 if (((long) (sizeof (void *))) < 0)
13879 {
13880 long i = longval ();
13881 if (i != ((long) (sizeof (void *))))
13882 exit (1);
13883 fprintf (f, "%ld\n", i);
13884 }
13885 else
13886 {
13887 unsigned long i = ulongval ();
13888 if (i != ((long) (sizeof (void *))))
13889 exit (1);
13890 fprintf (f, "%lu\n", i);
13891 }
13892 exit (ferror (f) || fclose (f) != 0);
13893
13894 ;
13895 return 0;
13896}
13897_ACEOF
13898rm -f conftest$ac_exeext
13899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13900 (eval $ac_link) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_cv_sizeof_void_p=`cat conftest.val`
13910else
13911 echo "$as_me: program exited with status $ac_status" >&5
13912echo "$as_me: failed program was:" >&5
13913cat conftest.$ac_ext >&5
13914( exit $ac_status )
13915{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
13916echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
13917 { (exit 1); exit 1; }; }
13918fi
13919rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13920fi
13921fi
13922rm -f conftest.val
13923else
13924 ac_cv_sizeof_void_p=0
13925fi
13926fi
13927echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13928echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13929cat >>confdefs.h <<_ACEOF
13930#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13931_ACEOF
13932
13933
13934echo "$as_me:$LINENO: checking for int" >&5
13935echo $ECHO_N "checking for int... $ECHO_C" >&6
13936if test "${ac_cv_type_int+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938else
13939 cat >conftest.$ac_ext <<_ACEOF
13940#line $LINENO "configure"
13941#include "confdefs.h"
13942$ac_includes_default
13943#ifdef F77_DUMMY_MAIN
13944# ifdef __cplusplus
13945 extern "C"
13946# endif
13947 int F77_DUMMY_MAIN() { return 1; }
13948#endif
13949int
13950main ()
13951{
13952if ((int *) 0)
13953 return 0;
13954if (sizeof (int))
13955 return 0;
13956 ;
13957 return 0;
13958}
13959_ACEOF
13960rm -f conftest.$ac_objext
13961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962 (eval $ac_compile) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
13966 { ac_try='test -s conftest.$ac_objext'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_cv_type_int=yes
13973else
13974 echo "$as_me: failed program was:" >&5
13975cat conftest.$ac_ext >&5
13976ac_cv_type_int=no
13977fi
13978rm -f conftest.$ac_objext conftest.$ac_ext
13979fi
13980echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13981echo "${ECHO_T}$ac_cv_type_int" >&6
13982
13983echo "$as_me:$LINENO: checking size of int" >&5
13984echo $ECHO_N "checking size of int... $ECHO_C" >&6
13985if test "${ac_cv_sizeof_int+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987else
13988 if test "$ac_cv_type_int" = yes; then
13989 # The cast to unsigned long works around a bug in the HP C Compiler
13990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13992 # This bug is HP SR number 8606223364.
13993 if test "$cross_compiling" = yes; then
13994 # Depending upon the size, compute the lo and hi bounds.
13995cat >conftest.$ac_ext <<_ACEOF
13996#line $LINENO "configure"
13997#include "confdefs.h"
13998$ac_includes_default
13999#ifdef F77_DUMMY_MAIN
14000# ifdef __cplusplus
14001 extern "C"
14002# endif
14003 int F77_DUMMY_MAIN() { return 1; }
14004#endif
14005int
14006main ()
14007{
14008static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14009test_array [0] = 0
14010
14011 ;
14012 return 0;
14013}
14014_ACEOF
14015rm -f conftest.$ac_objext
14016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14017 (eval $ac_compile) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -s conftest.$ac_objext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 ac_lo=0 ac_mid=0
14028 while :; do
14029 cat >conftest.$ac_ext <<_ACEOF
14030#line $LINENO "configure"
14031#include "confdefs.h"
14032$ac_includes_default
14033#ifdef F77_DUMMY_MAIN
14034# ifdef __cplusplus
14035 extern "C"
14036# endif
14037 int F77_DUMMY_MAIN() { return 1; }
14038#endif
14039int
14040main ()
14041{
14042static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14043test_array [0] = 0
14044
14045 ;
14046 return 0;
14047}
14048_ACEOF
14049rm -f conftest.$ac_objext
14050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14051 (eval $ac_compile) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -s conftest.$ac_objext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_hi=$ac_mid; break
14062else
14063 echo "$as_me: failed program was:" >&5
14064cat conftest.$ac_ext >&5
14065ac_lo=`expr $ac_mid + 1`
14066 if test $ac_lo -le $ac_mid; then
14067 ac_lo= ac_hi=
14068 break
14069 fi
14070 ac_mid=`expr 2 '*' $ac_mid + 1`
14071fi
14072rm -f conftest.$ac_objext conftest.$ac_ext
14073 done
14074else
14075 echo "$as_me: failed program was:" >&5
14076cat conftest.$ac_ext >&5
14077cat >conftest.$ac_ext <<_ACEOF
14078#line $LINENO "configure"
14079#include "confdefs.h"
14080$ac_includes_default
14081#ifdef F77_DUMMY_MAIN
14082# ifdef __cplusplus
14083 extern "C"
14084# endif
14085 int F77_DUMMY_MAIN() { return 1; }
14086#endif
14087int
14088main ()
14089{
14090static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14091test_array [0] = 0
14092
14093 ;
14094 return 0;
14095}
14096_ACEOF
14097rm -f conftest.$ac_objext
14098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_hi=-1 ac_mid=-1
14110 while :; do
14111 cat >conftest.$ac_ext <<_ACEOF
14112#line $LINENO "configure"
14113#include "confdefs.h"
14114$ac_includes_default
14115#ifdef F77_DUMMY_MAIN
14116# ifdef __cplusplus
14117 extern "C"
14118# endif
14119 int F77_DUMMY_MAIN() { return 1; }
14120#endif
14121int
14122main ()
14123{
14124static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14125test_array [0] = 0
14126
14127 ;
14128 return 0;
14129}
14130_ACEOF
14131rm -f conftest.$ac_objext
14132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133 (eval $ac_compile) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -s conftest.$ac_objext'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14143 ac_lo=$ac_mid; break
14144else
14145 echo "$as_me: failed program was:" >&5
14146cat conftest.$ac_ext >&5
14147ac_hi=`expr '(' $ac_mid ')' - 1`
14148 if test $ac_mid -le $ac_hi; then
14149 ac_lo= ac_hi=
14150 break
14151 fi
14152 ac_mid=`expr 2 '*' $ac_mid`
14153fi
14154rm -f conftest.$ac_objext conftest.$ac_ext
14155 done
14156else
14157 echo "$as_me: failed program was:" >&5
14158cat conftest.$ac_ext >&5
14159ac_lo= ac_hi=
14160fi
14161rm -f conftest.$ac_objext conftest.$ac_ext
14162fi
14163rm -f conftest.$ac_objext conftest.$ac_ext
14164# Binary search between lo and hi bounds.
14165while test "x$ac_lo" != "x$ac_hi"; do
14166 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14167 cat >conftest.$ac_ext <<_ACEOF
14168#line $LINENO "configure"
14169#include "confdefs.h"
14170$ac_includes_default
14171#ifdef F77_DUMMY_MAIN
14172# ifdef __cplusplus
14173 extern "C"
14174# endif
14175 int F77_DUMMY_MAIN() { return 1; }
14176#endif
14177int
14178main ()
14179{
14180static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14181test_array [0] = 0
14182
14183 ;
14184 return 0;
14185}
14186_ACEOF
14187rm -f conftest.$ac_objext
14188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189 (eval $ac_compile) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -s conftest.$ac_objext'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14199 ac_hi=$ac_mid
14200else
14201 echo "$as_me: failed program was:" >&5
14202cat conftest.$ac_ext >&5
14203ac_lo=`expr '(' $ac_mid ')' + 1`
14204fi
14205rm -f conftest.$ac_objext conftest.$ac_ext
14206done
14207case $ac_lo in
14208?*) ac_cv_sizeof_int=$ac_lo;;
14209'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
14210echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
14211 { (exit 1); exit 1; }; } ;;
14212esac
14213else
14214 if test "$cross_compiling" = yes; then
14215 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14216echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14217 { (exit 1); exit 1; }; }
14218else
14219 cat >conftest.$ac_ext <<_ACEOF
14220#line $LINENO "configure"
14221#include "confdefs.h"
14222$ac_includes_default
14223long longval () { return (long) (sizeof (int)); }
14224unsigned long ulongval () { return (long) (sizeof (int)); }
14225#include <stdio.h>
14226#include <stdlib.h>
14227#ifdef F77_DUMMY_MAIN
14228# ifdef __cplusplus
14229 extern "C"
14230# endif
14231 int F77_DUMMY_MAIN() { return 1; }
14232#endif
14233int
14234main ()
14235{
14236
14237 FILE *f = fopen ("conftest.val", "w");
14238 if (! f)
14239 exit (1);
14240 if (((long) (sizeof (int))) < 0)
14241 {
14242 long i = longval ();
14243 if (i != ((long) (sizeof (int))))
14244 exit (1);
14245 fprintf (f, "%ld\n", i);
14246 }
14247 else
14248 {
14249 unsigned long i = ulongval ();
14250 if (i != ((long) (sizeof (int))))
14251 exit (1);
14252 fprintf (f, "%lu\n", i);
14253 }
14254 exit (ferror (f) || fclose (f) != 0);
14255
14256 ;
14257 return 0;
14258}
14259_ACEOF
14260rm -f conftest$ac_exeext
14261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14262 (eval $ac_link) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_sizeof_int=`cat conftest.val`
14272else
14273 echo "$as_me: program exited with status $ac_status" >&5
14274echo "$as_me: failed program was:" >&5
14275cat conftest.$ac_ext >&5
14276( exit $ac_status )
14277{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
14278echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
14279 { (exit 1); exit 1; }; }
14280fi
14281rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14282fi
14283fi
14284rm -f conftest.val
14285else
14286 ac_cv_sizeof_int=0
14287fi
14288fi
14289echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14290echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14291cat >>confdefs.h <<_ACEOF
14292#define SIZEOF_INT $ac_cv_sizeof_int
14293_ACEOF
14294
14295
14296echo "$as_me:$LINENO: checking for long" >&5
14297echo $ECHO_N "checking for long... $ECHO_C" >&6
14298if test "${ac_cv_type_long+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 cat >conftest.$ac_ext <<_ACEOF
14302#line $LINENO "configure"
14303#include "confdefs.h"
14304$ac_includes_default
14305#ifdef F77_DUMMY_MAIN
14306# ifdef __cplusplus
14307 extern "C"
14308# endif
14309 int F77_DUMMY_MAIN() { return 1; }
14310#endif
14311int
14312main ()
14313{
14314if ((long *) 0)
14315 return 0;
14316if (sizeof (long))
14317 return 0;
14318 ;
14319 return 0;
14320}
14321_ACEOF
14322rm -f conftest.$ac_objext
14323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324 (eval $ac_compile) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_type_long=yes
14335else
14336 echo "$as_me: failed program was:" >&5
14337cat conftest.$ac_ext >&5
14338ac_cv_type_long=no
14339fi
14340rm -f conftest.$ac_objext conftest.$ac_ext
14341fi
14342echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14343echo "${ECHO_T}$ac_cv_type_long" >&6
14344
14345echo "$as_me:$LINENO: checking size of long" >&5
14346echo $ECHO_N "checking size of long... $ECHO_C" >&6
14347if test "${ac_cv_sizeof_long+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349else
14350 if test "$ac_cv_type_long" = yes; then
14351 # The cast to unsigned long works around a bug in the HP C Compiler
14352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14354 # This bug is HP SR number 8606223364.
14355 if test "$cross_compiling" = yes; then
14356 # Depending upon the size, compute the lo and hi bounds.
14357cat >conftest.$ac_ext <<_ACEOF
14358#line $LINENO "configure"
14359#include "confdefs.h"
14360$ac_includes_default
14361#ifdef F77_DUMMY_MAIN
14362# ifdef __cplusplus
14363 extern "C"
14364# endif
14365 int F77_DUMMY_MAIN() { return 1; }
14366#endif
14367int
14368main ()
14369{
14370static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14371test_array [0] = 0
14372
14373 ;
14374 return 0;
14375}
14376_ACEOF
14377rm -f conftest.$ac_objext
14378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379 (eval $ac_compile) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -s conftest.$ac_objext'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_lo=0 ac_mid=0
14390 while :; do
14391 cat >conftest.$ac_ext <<_ACEOF
14392#line $LINENO "configure"
14393#include "confdefs.h"
14394$ac_includes_default
14395#ifdef F77_DUMMY_MAIN
14396# ifdef __cplusplus
14397 extern "C"
14398# endif
14399 int F77_DUMMY_MAIN() { return 1; }
14400#endif
14401int
14402main ()
14403{
14404static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14405test_array [0] = 0
14406
14407 ;
14408 return 0;
14409}
14410_ACEOF
14411rm -f conftest.$ac_objext
14412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try='test -s conftest.$ac_objext'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_hi=$ac_mid; break
14424else
14425 echo "$as_me: failed program was:" >&5
14426cat conftest.$ac_ext >&5
14427ac_lo=`expr $ac_mid + 1`
14428 if test $ac_lo -le $ac_mid; then
14429 ac_lo= ac_hi=
14430 break
14431 fi
14432 ac_mid=`expr 2 '*' $ac_mid + 1`
14433fi
14434rm -f conftest.$ac_objext conftest.$ac_ext
14435 done
14436else
14437 echo "$as_me: failed program was:" >&5
14438cat conftest.$ac_ext >&5
14439cat >conftest.$ac_ext <<_ACEOF
14440#line $LINENO "configure"
14441#include "confdefs.h"
14442$ac_includes_default
14443#ifdef F77_DUMMY_MAIN
14444# ifdef __cplusplus
14445 extern "C"
14446# endif
14447 int F77_DUMMY_MAIN() { return 1; }
14448#endif
14449int
14450main ()
14451{
14452static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14453test_array [0] = 0
14454
14455 ;
14456 return 0;
14457}
14458_ACEOF
14459rm -f conftest.$ac_objext
14460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_hi=-1 ac_mid=-1
14472 while :; do
14473 cat >conftest.$ac_ext <<_ACEOF
14474#line $LINENO "configure"
14475#include "confdefs.h"
14476$ac_includes_default
14477#ifdef F77_DUMMY_MAIN
14478# ifdef __cplusplus
14479 extern "C"
14480# endif
14481 int F77_DUMMY_MAIN() { return 1; }
14482#endif
14483int
14484main ()
14485{
14486static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14487test_array [0] = 0
14488
14489 ;
14490 return 0;
14491}
14492_ACEOF
14493rm -f conftest.$ac_objext
14494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495 (eval $ac_compile) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -s conftest.$ac_objext'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14505 ac_lo=$ac_mid; break
14506else
14507 echo "$as_me: failed program was:" >&5
14508cat conftest.$ac_ext >&5
14509ac_hi=`expr '(' $ac_mid ')' - 1`
14510 if test $ac_mid -le $ac_hi; then
14511 ac_lo= ac_hi=
14512 break
14513 fi
14514 ac_mid=`expr 2 '*' $ac_mid`
14515fi
14516rm -f conftest.$ac_objext conftest.$ac_ext
14517 done
14518else
14519 echo "$as_me: failed program was:" >&5
14520cat conftest.$ac_ext >&5
14521ac_lo= ac_hi=
14522fi
14523rm -f conftest.$ac_objext conftest.$ac_ext
14524fi
14525rm -f conftest.$ac_objext conftest.$ac_ext
14526# Binary search between lo and hi bounds.
14527while test "x$ac_lo" != "x$ac_hi"; do
14528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14529 cat >conftest.$ac_ext <<_ACEOF
14530#line $LINENO "configure"
14531#include "confdefs.h"
14532$ac_includes_default
14533#ifdef F77_DUMMY_MAIN
14534# ifdef __cplusplus
14535 extern "C"
14536# endif
14537 int F77_DUMMY_MAIN() { return 1; }
14538#endif
14539int
14540main ()
14541{
14542static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14543test_array [0] = 0
14544
14545 ;
14546 return 0;
14547}
14548_ACEOF
14549rm -f conftest.$ac_objext
14550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551 (eval $ac_compile) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -s conftest.$ac_objext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 ac_hi=$ac_mid
14562else
14563 echo "$as_me: failed program was:" >&5
14564cat conftest.$ac_ext >&5
14565ac_lo=`expr '(' $ac_mid ')' + 1`
14566fi
14567rm -f conftest.$ac_objext conftest.$ac_ext
14568done
14569case $ac_lo in
14570?*) ac_cv_sizeof_long=$ac_lo;;
14571'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
14572echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
14573 { (exit 1); exit 1; }; } ;;
14574esac
7b4a847f 14575else
8284b0c5 14576 if test "$cross_compiling" = yes; then
247f5006
VZ
14577 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14578echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14579 { (exit 1); exit 1; }; }
5c6fa7d2 14580else
247f5006
VZ
14581 cat >conftest.$ac_ext <<_ACEOF
14582#line $LINENO "configure"
5c6fa7d2 14583#include "confdefs.h"
247f5006
VZ
14584$ac_includes_default
14585long longval () { return (long) (sizeof (long)); }
14586unsigned long ulongval () { return (long) (sizeof (long)); }
8284b0c5 14587#include <stdio.h>
247f5006
VZ
14588#include <stdlib.h>
14589#ifdef F77_DUMMY_MAIN
14590# ifdef __cplusplus
14591 extern "C"
14592# endif
14593 int F77_DUMMY_MAIN() { return 1; }
14594#endif
14595int
14596main ()
8284b0c5 14597{
247f5006
VZ
14598
14599 FILE *f = fopen ("conftest.val", "w");
14600 if (! f)
14601 exit (1);
14602 if (((long) (sizeof (long))) < 0)
14603 {
14604 long i = longval ();
14605 if (i != ((long) (sizeof (long))))
14606 exit (1);
14607 fprintf (f, "%ld\n", i);
14608 }
14609 else
14610 {
14611 unsigned long i = ulongval ();
14612 if (i != ((long) (sizeof (long))))
14613 exit (1);
14614 fprintf (f, "%lu\n", i);
14615 }
14616 exit (ferror (f) || fclose (f) != 0);
14617
14618 ;
14619 return 0;
8284b0c5 14620}
247f5006
VZ
14621_ACEOF
14622rm -f conftest$ac_exeext
14623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_cv_sizeof_long=`cat conftest.val`
14634else
14635 echo "$as_me: program exited with status $ac_status" >&5
14636echo "$as_me: failed program was:" >&5
14637cat conftest.$ac_ext >&5
14638( exit $ac_status )
14639{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
14640echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
14641 { (exit 1); exit 1; }; }
14642fi
14643rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14644fi
14645fi
14646rm -f conftest.val
5c6fa7d2 14647else
247f5006 14648 ac_cv_sizeof_long=0
8284b0c5 14649fi
7b4a847f 14650fi
247f5006
VZ
14651echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14652echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14653cat >>confdefs.h <<_ACEOF
14654#define SIZEOF_LONG $ac_cv_sizeof_long
14655_ACEOF
328a083c 14656
7b4a847f 14657
5c6fa7d2 14658
247f5006
VZ
14659case "${host}" in
14660 arm-*-linux* )
14661 echo "$as_me:$LINENO: checking for long long" >&5
14662echo $ECHO_N "checking for long long... $ECHO_C" >&6
14663if test "${ac_cv_type_long_long+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 14665else
247f5006
VZ
14666 cat >conftest.$ac_ext <<_ACEOF
14667#line $LINENO "configure"
14668#include "confdefs.h"
14669$ac_includes_default
14670#ifdef F77_DUMMY_MAIN
14671# ifdef __cplusplus
14672 extern "C"
14673# endif
14674 int F77_DUMMY_MAIN() { return 1; }
14675#endif
14676int
14677main ()
14678{
14679if ((long long *) 0)
14680 return 0;
14681if (sizeof (long long))
14682 return 0;
14683 ;
14684 return 0;
14685}
14686_ACEOF
14687rm -f conftest.$ac_objext
14688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14689 (eval $ac_compile) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -s conftest.$ac_objext'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; }; then
14699 ac_cv_type_long_long=yes
14700else
14701 echo "$as_me: failed program was:" >&5
14702cat conftest.$ac_ext >&5
14703ac_cv_type_long_long=no
14704fi
14705rm -f conftest.$ac_objext conftest.$ac_ext
14706fi
14707echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14708echo "${ECHO_T}$ac_cv_type_long_long" >&6
14709
14710echo "$as_me:$LINENO: checking size of long long" >&5
14711echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14712if test "${ac_cv_sizeof_long_long+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714else
14715 if test "$ac_cv_type_long_long" = yes; then
14716 # The cast to unsigned long works around a bug in the HP C Compiler
14717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14719 # This bug is HP SR number 8606223364.
21d1c967 14720 if test "$cross_compiling" = yes; then
247f5006
VZ
14721 # Depending upon the size, compute the lo and hi bounds.
14722cat >conftest.$ac_ext <<_ACEOF
14723#line $LINENO "configure"
21d1c967 14724#include "confdefs.h"
247f5006
VZ
14725$ac_includes_default
14726#ifdef F77_DUMMY_MAIN
14727# ifdef __cplusplus
14728 extern "C"
14729# endif
14730 int F77_DUMMY_MAIN() { return 1; }
14731#endif
14732int
14733main ()
21d1c967 14734{
247f5006
VZ
14735static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14736test_array [0] = 0
14737
14738 ;
14739 return 0;
21d1c967 14740}
247f5006
VZ
14741_ACEOF
14742rm -f conftest.$ac_objext
14743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -s conftest.$ac_objext'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_lo=0 ac_mid=0
14755 while :; do
14756 cat >conftest.$ac_ext <<_ACEOF
14757#line $LINENO "configure"
14758#include "confdefs.h"
14759$ac_includes_default
14760#ifdef F77_DUMMY_MAIN
14761# ifdef __cplusplus
14762 extern "C"
14763# endif
14764 int F77_DUMMY_MAIN() { return 1; }
14765#endif
14766int
14767main ()
14768{
14769static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14770test_array [0] = 0
4f14bcd8 14771
247f5006
VZ
14772 ;
14773 return 0;
14774}
14775_ACEOF
14776rm -f conftest.$ac_objext
14777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14778 (eval $ac_compile) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_hi=$ac_mid; break
14789else
14790 echo "$as_me: failed program was:" >&5
14791cat conftest.$ac_ext >&5
14792ac_lo=`expr $ac_mid + 1`
14793 if test $ac_lo -le $ac_mid; then
14794 ac_lo= ac_hi=
14795 break
14796 fi
14797 ac_mid=`expr 2 '*' $ac_mid + 1`
4f14bcd8 14798fi
247f5006
VZ
14799rm -f conftest.$ac_objext conftest.$ac_ext
14800 done
5c6fa7d2 14801else
247f5006
VZ
14802 echo "$as_me: failed program was:" >&5
14803cat conftest.$ac_ext >&5
14804cat >conftest.$ac_ext <<_ACEOF
14805#line $LINENO "configure"
5c6fa7d2 14806#include "confdefs.h"
247f5006
VZ
14807$ac_includes_default
14808#ifdef F77_DUMMY_MAIN
14809# ifdef __cplusplus
14810 extern "C"
14811# endif
14812 int F77_DUMMY_MAIN() { return 1; }
14813#endif
14814int
14815main ()
5c6fa7d2 14816{
247f5006
VZ
14817static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14818test_array [0] = 0
14819
14820 ;
14821 return 0;
5c6fa7d2 14822}
247f5006
VZ
14823_ACEOF
14824rm -f conftest.$ac_objext
14825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_hi=-1 ac_mid=-1
14837 while :; do
14838 cat >conftest.$ac_ext <<_ACEOF
14839#line $LINENO "configure"
14840#include "confdefs.h"
14841$ac_includes_default
14842#ifdef F77_DUMMY_MAIN
14843# ifdef __cplusplus
14844 extern "C"
14845# endif
14846 int F77_DUMMY_MAIN() { return 1; }
14847#endif
14848int
14849main ()
14850{
14851static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14852test_array [0] = 0
14853
14854 ;
14855 return 0;
14856}
14857_ACEOF
14858rm -f conftest.$ac_objext
14859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860 (eval $ac_compile) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -s conftest.$ac_objext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_lo=$ac_mid; break
14871else
14872 echo "$as_me: failed program was:" >&5
14873cat conftest.$ac_ext >&5
14874ac_hi=`expr '(' $ac_mid ')' - 1`
14875 if test $ac_mid -le $ac_hi; then
14876 ac_lo= ac_hi=
14877 break
14878 fi
14879 ac_mid=`expr 2 '*' $ac_mid`
14880fi
14881rm -f conftest.$ac_objext conftest.$ac_ext
14882 done
5c6fa7d2 14883else
247f5006
VZ
14884 echo "$as_me: failed program was:" >&5
14885cat conftest.$ac_ext >&5
14886ac_lo= ac_hi=
7b4a847f 14887fi
247f5006 14888rm -f conftest.$ac_objext conftest.$ac_ext
5c6fa7d2 14889fi
247f5006
VZ
14890rm -f conftest.$ac_objext conftest.$ac_ext
14891# Binary search between lo and hi bounds.
14892while test "x$ac_lo" != "x$ac_hi"; do
14893 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14894 cat >conftest.$ac_ext <<_ACEOF
14895#line $LINENO "configure"
14896#include "confdefs.h"
14897$ac_includes_default
14898#ifdef F77_DUMMY_MAIN
14899# ifdef __cplusplus
14900 extern "C"
14901# endif
14902 int F77_DUMMY_MAIN() { return 1; }
14903#endif
14904int
14905main ()
14906{
14907static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14908test_array [0] = 0
8284b0c5 14909
247f5006
VZ
14910 ;
14911 return 0;
14912}
14913_ACEOF
14914rm -f conftest.$ac_objext
14915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14916 (eval $ac_compile) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_hi=$ac_mid
14927else
14928 echo "$as_me: failed program was:" >&5
14929cat conftest.$ac_ext >&5
14930ac_lo=`expr '(' $ac_mid ')' + 1`
14931fi
14932rm -f conftest.$ac_objext conftest.$ac_ext
14933done
14934case $ac_lo in
14935?*) ac_cv_sizeof_long_long=$ac_lo;;
14936'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
14937echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
14938 { (exit 1); exit 1; }; } ;;
14939esac
7b4a847f 14940else
5c6fa7d2 14941 if test "$cross_compiling" = yes; then
247f5006
VZ
14942 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14943echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14944 { (exit 1); exit 1; }; }
5c6fa7d2 14945else
247f5006
VZ
14946 cat >conftest.$ac_ext <<_ACEOF
14947#line $LINENO "configure"
5c6fa7d2 14948#include "confdefs.h"
247f5006
VZ
14949$ac_includes_default
14950long longval () { return (long) (sizeof (long long)); }
14951unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 14952#include <stdio.h>
247f5006
VZ
14953#include <stdlib.h>
14954#ifdef F77_DUMMY_MAIN
14955# ifdef __cplusplus
14956 extern "C"
14957# endif
14958 int F77_DUMMY_MAIN() { return 1; }
14959#endif
14960int
14961main ()
5c6fa7d2 14962{
247f5006
VZ
14963
14964 FILE *f = fopen ("conftest.val", "w");
14965 if (! f)
14966 exit (1);
14967 if (((long) (sizeof (long long))) < 0)
14968 {
14969 long i = longval ();
14970 if (i != ((long) (sizeof (long long))))
14971 exit (1);
14972 fprintf (f, "%ld\n", i);
14973 }
14974 else
14975 {
14976 unsigned long i = ulongval ();
14977 if (i != ((long) (sizeof (long long))))
14978 exit (1);
14979 fprintf (f, "%lu\n", i);
14980 }
14981 exit (ferror (f) || fclose (f) != 0);
14982
14983 ;
14984 return 0;
5c6fa7d2 14985}
247f5006
VZ
14986_ACEOF
14987rm -f conftest$ac_exeext
14988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14989 (eval $ac_link) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_cv_sizeof_long_long=`cat conftest.val`
14999else
15000 echo "$as_me: program exited with status $ac_status" >&5
15001echo "$as_me: failed program was:" >&5
15002cat conftest.$ac_ext >&5
15003( exit $ac_status )
15004{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
15005echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
15006 { (exit 1); exit 1; }; }
15007fi
15008rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15009fi
15010fi
15011rm -f conftest.val
5c6fa7d2 15012else
247f5006 15013 ac_cv_sizeof_long_long=0
8284b0c5 15014fi
5c6fa7d2 15015fi
247f5006
VZ
15016echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15017echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15018cat >>confdefs.h <<_ACEOF
15019#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15020_ACEOF
90dd450c 15021
8284b0c5 15022
247f5006
VZ
15023 ;;
15024 * )
15025 echo "$as_me:$LINENO: checking for long long" >&5
15026echo $ECHO_N "checking for long long... $ECHO_C" >&6
15027if test "${ac_cv_type_long_long+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 15029else
247f5006
VZ
15030 cat >conftest.$ac_ext <<_ACEOF
15031#line $LINENO "configure"
15032#include "confdefs.h"
15033$ac_includes_default
15034#ifdef F77_DUMMY_MAIN
15035# ifdef __cplusplus
15036 extern "C"
15037# endif
15038 int F77_DUMMY_MAIN() { return 1; }
15039#endif
15040int
15041main ()
15042{
15043if ((long long *) 0)
15044 return 0;
15045if (sizeof (long long))
15046 return 0;
15047 ;
15048 return 0;
15049}
15050_ACEOF
15051rm -f conftest.$ac_objext
15052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053 (eval $ac_compile) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_cv_type_long_long=yes
15064else
15065 echo "$as_me: failed program was:" >&5
15066cat conftest.$ac_ext >&5
15067ac_cv_type_long_long=no
15068fi
15069rm -f conftest.$ac_objext conftest.$ac_ext
15070fi
15071echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15072echo "${ECHO_T}$ac_cv_type_long_long" >&6
15073
15074echo "$as_me:$LINENO: checking size of long long" >&5
15075echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15076if test "${ac_cv_sizeof_long_long+set}" = set; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15078else
15079 if test "$ac_cv_type_long_long" = yes; then
15080 # The cast to unsigned long works around a bug in the HP C Compiler
15081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15083 # This bug is HP SR number 8606223364.
5c6fa7d2 15084 if test "$cross_compiling" = yes; then
247f5006
VZ
15085 # Depending upon the size, compute the lo and hi bounds.
15086cat >conftest.$ac_ext <<_ACEOF
15087#line $LINENO "configure"
5c6fa7d2 15088#include "confdefs.h"
247f5006
VZ
15089$ac_includes_default
15090#ifdef F77_DUMMY_MAIN
15091# ifdef __cplusplus
15092 extern "C"
15093# endif
15094 int F77_DUMMY_MAIN() { return 1; }
15095#endif
15096int
15097main ()
5c6fa7d2 15098{
247f5006
VZ
15099static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15100test_array [0] = 0
15101
15102 ;
15103 return 0;
5c6fa7d2 15104}
247f5006
VZ
15105_ACEOF
15106rm -f conftest.$ac_objext
15107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -s conftest.$ac_objext'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15118 ac_lo=0 ac_mid=0
15119 while :; do
15120 cat >conftest.$ac_ext <<_ACEOF
15121#line $LINENO "configure"
15122#include "confdefs.h"
15123$ac_includes_default
15124#ifdef F77_DUMMY_MAIN
15125# ifdef __cplusplus
15126 extern "C"
15127# endif
15128 int F77_DUMMY_MAIN() { return 1; }
15129#endif
15130int
15131main ()
15132{
15133static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15134test_array [0] = 0
52127426 15135
247f5006
VZ
15136 ;
15137 return 0;
15138}
15139_ACEOF
15140rm -f conftest.$ac_objext
15141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15142 (eval $ac_compile) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -s conftest.$ac_objext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_hi=$ac_mid; break
15153else
15154 echo "$as_me: failed program was:" >&5
15155cat conftest.$ac_ext >&5
15156ac_lo=`expr $ac_mid + 1`
15157 if test $ac_lo -le $ac_mid; then
15158 ac_lo= ac_hi=
15159 break
15160 fi
15161 ac_mid=`expr 2 '*' $ac_mid + 1`
5c6fa7d2 15162fi
247f5006
VZ
15163rm -f conftest.$ac_objext conftest.$ac_ext
15164 done
7b4a847f 15165else
247f5006
VZ
15166 echo "$as_me: failed program was:" >&5
15167cat conftest.$ac_ext >&5
15168cat >conftest.$ac_ext <<_ACEOF
15169#line $LINENO "configure"
7b4a847f 15170#include "confdefs.h"
247f5006
VZ
15171$ac_includes_default
15172#ifdef F77_DUMMY_MAIN
15173# ifdef __cplusplus
15174 extern "C"
15175# endif
15176 int F77_DUMMY_MAIN() { return 1; }
15177#endif
15178int
15179main ()
7b4a847f 15180{
247f5006
VZ
15181static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15182test_array [0] = 0
15183
15184 ;
15185 return 0;
7b4a847f 15186}
247f5006
VZ
15187_ACEOF
15188rm -f conftest.$ac_objext
15189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15190 (eval $ac_compile) 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } &&
15194 { ac_try='test -s conftest.$ac_objext'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; }; then
15200 ac_hi=-1 ac_mid=-1
15201 while :; do
15202 cat >conftest.$ac_ext <<_ACEOF
15203#line $LINENO "configure"
15204#include "confdefs.h"
15205$ac_includes_default
15206#ifdef F77_DUMMY_MAIN
15207# ifdef __cplusplus
15208 extern "C"
15209# endif
15210 int F77_DUMMY_MAIN() { return 1; }
15211#endif
15212int
15213main ()
15214{
15215static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15216test_array [0] = 0
15217
15218 ;
15219 return 0;
15220}
15221_ACEOF
15222rm -f conftest.$ac_objext
15223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15224 (eval $ac_compile) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_lo=$ac_mid; break
15235else
15236 echo "$as_me: failed program was:" >&5
15237cat conftest.$ac_ext >&5
15238ac_hi=`expr '(' $ac_mid ')' - 1`
15239 if test $ac_mid -le $ac_hi; then
15240 ac_lo= ac_hi=
15241 break
15242 fi
15243 ac_mid=`expr 2 '*' $ac_mid`
15244fi
15245rm -f conftest.$ac_objext conftest.$ac_ext
15246 done
7b4a847f 15247else
247f5006
VZ
15248 echo "$as_me: failed program was:" >&5
15249cat conftest.$ac_ext >&5
15250ac_lo= ac_hi=
5c6fa7d2 15251fi
247f5006 15252rm -f conftest.$ac_objext conftest.$ac_ext
5c6fa7d2 15253fi
247f5006
VZ
15254rm -f conftest.$ac_objext conftest.$ac_ext
15255# Binary search between lo and hi bounds.
15256while test "x$ac_lo" != "x$ac_hi"; do
15257 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15258 cat >conftest.$ac_ext <<_ACEOF
15259#line $LINENO "configure"
15260#include "confdefs.h"
15261$ac_includes_default
15262#ifdef F77_DUMMY_MAIN
15263# ifdef __cplusplus
15264 extern "C"
15265# endif
15266 int F77_DUMMY_MAIN() { return 1; }
15267#endif
15268int
15269main ()
15270{
15271static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15272test_array [0] = 0
8284b0c5 15273
247f5006
VZ
15274 ;
15275 return 0;
15276}
15277_ACEOF
15278rm -f conftest.$ac_objext
15279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280 (eval $ac_compile) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15290 ac_hi=$ac_mid
15291else
15292 echo "$as_me: failed program was:" >&5
15293cat conftest.$ac_ext >&5
15294ac_lo=`expr '(' $ac_mid ')' + 1`
15295fi
15296rm -f conftest.$ac_objext conftest.$ac_ext
15297done
15298case $ac_lo in
15299?*) ac_cv_sizeof_long_long=$ac_lo;;
15300'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
15301echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
15302 { (exit 1); exit 1; }; } ;;
15303esac
8284b0c5
MB
15304else
15305 if test "$cross_compiling" = yes; then
247f5006
VZ
15306 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15307echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15308 { (exit 1); exit 1; }; }
8284b0c5 15309else
247f5006
VZ
15310 cat >conftest.$ac_ext <<_ACEOF
15311#line $LINENO "configure"
8284b0c5 15312#include "confdefs.h"
247f5006
VZ
15313$ac_includes_default
15314long longval () { return (long) (sizeof (long long)); }
15315unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 15316#include <stdio.h>
247f5006
VZ
15317#include <stdlib.h>
15318#ifdef F77_DUMMY_MAIN
15319# ifdef __cplusplus
15320 extern "C"
15321# endif
15322 int F77_DUMMY_MAIN() { return 1; }
15323#endif
15324int
15325main ()
8284b0c5 15326{
247f5006
VZ
15327
15328 FILE *f = fopen ("conftest.val", "w");
15329 if (! f)
15330 exit (1);
15331 if (((long) (sizeof (long long))) < 0)
15332 {
15333 long i = longval ();
15334 if (i != ((long) (sizeof (long long))))
15335 exit (1);
15336 fprintf (f, "%ld\n", i);
15337 }
15338 else
15339 {
15340 unsigned long i = ulongval ();
15341 if (i != ((long) (sizeof (long long))))
15342 exit (1);
15343 fprintf (f, "%lu\n", i);
15344 }
15345 exit (ferror (f) || fclose (f) != 0);
15346
15347 ;
15348 return 0;
8284b0c5 15349}
247f5006
VZ
15350_ACEOF
15351rm -f conftest$ac_exeext
15352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15353 (eval $ac_link) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_cv_sizeof_long_long=`cat conftest.val`
15363else
15364 echo "$as_me: program exited with status $ac_status" >&5
15365echo "$as_me: failed program was:" >&5
15366cat conftest.$ac_ext >&5
15367( exit $ac_status )
15368{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
15369echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
15370 { (exit 1); exit 1; }; }
15371fi
15372rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15373fi
15374fi
15375rm -f conftest.val
5c6fa7d2
RR
15376else
15377 ac_cv_sizeof_long_long=0
52127426 15378fi
7b4a847f 15379fi
247f5006
VZ
15380echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15381echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15382cat >>confdefs.h <<_ACEOF
21d1c967 15383#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
247f5006 15384_ACEOF
9e691f46 15385
8284b0c5 15386
21d1c967
GD
15387esac
15388
247f5006
VZ
15389echo "$as_me:$LINENO: checking size of wchar_t" >&5
15390echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
15391if test "${wx_cv_sizeof_wchar_t+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 15393else
247f5006 15394
21d1c967
GD
15395 if test "$cross_compiling" = yes; then
15396 wx_cv_sizeof_wchar_t=4
247f5006 15397
6f72b082 15398else
247f5006
VZ
15399 cat >conftest.$ac_ext <<_ACEOF
15400#line $LINENO "configure"
6f72b082 15401#include "confdefs.h"
21d1c967
GD
15402
15403 #ifdef HAVE_WCHAR_H
15404 # ifdef __CYGWIN__
15405 # include <stddef.h>
15406 # endif
15407 # include <wchar.h>
15408 #endif
15409 #ifdef HAVE_STDLIB_H
15410 # include <stdlib.h>
15411 #endif
15412 #include <stdio.h>
15413 int main()
15414 {
15415 FILE *f=fopen("conftestval", "w");
15416 if (!f) exit(1);
15417 fprintf(f, "%i", sizeof(wchar_t));
15418 exit(0);
15419 }
247f5006
VZ
15420
15421_ACEOF
15422rm -f conftest$ac_exeext
15423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424 (eval $ac_link) 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
21d1c967 15433 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 15434else
247f5006
VZ
15435 echo "$as_me: program exited with status $ac_status" >&5
15436echo "$as_me: failed program was:" >&5
15437cat conftest.$ac_ext >&5
15438( exit $ac_status )
15439wx_cv_sizeof_wchar_t=0
6f72b082 15440fi
247f5006 15441rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 15442fi
6f72b082 15443
3f345b47 15444fi
247f5006
VZ
15445echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
15446echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 15447
247f5006 15448cat >>confdefs.h <<_ACEOF
21d1c967 15449#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
247f5006 15450_ACEOF
90dd450c 15451
8284b0c5 15452
21d1c967
GD
15453# Check whether --enable-largefile or --disable-largefile was given.
15454if test "${enable_largefile+set}" = set; then
15455 enableval="$enable_largefile"
3f345b47 15456
247f5006 15457fi;
21d1c967
GD
15458if test "$enable_largefile" != no; then
15459 wx_largefile=no
247f5006
VZ
15460
15461 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15462echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15463if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465else
15466
15467 cat >conftest.$ac_ext <<_ACEOF
15468#line $LINENO "configure"
90dd450c 15469#include "confdefs.h"
21d1c967
GD
15470#define _FILE_OFFSET_BITS 64
15471 #include <sys/types.h>
247f5006
VZ
15472#ifdef F77_DUMMY_MAIN
15473# ifdef __cplusplus
15474 extern "C"
15475# endif
15476 int F77_DUMMY_MAIN() { return 1; }
15477#endif
15478int
15479main ()
15480{
21d1c967
GD
15481typedef struct {
15482 unsigned int field: sizeof(off_t) == 8;
15483} wxlf;
15484
247f5006
VZ
15485 ;
15486 return 0;
15487}
15488_ACEOF
15489rm -f conftest.$ac_objext
15490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15491 (eval $ac_compile) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
21d1c967 15501 ac_cv_sys_file_offset_bits=64
f6bcfd97 15502else
247f5006
VZ
15503 echo "$as_me: failed program was:" >&5
15504cat conftest.$ac_ext >&5
15505ac_cv_sys_file_offset_bits=no
5c6fa7d2 15506fi
247f5006
VZ
15507rm -f conftest.$ac_objext conftest.$ac_ext
15508
8284b0c5 15509
247f5006
VZ
15510fi
15511echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
15512echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
15513
15514 if test "$ac_cv_sys_file_offset_bits" != no; then
15515 wx_largefile=yes
247f5006 15516 cat >>confdefs.h <<_ACEOF
21d1c967 15517#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
247f5006 15518_ACEOF
21d1c967
GD
15519
15520 fi
15521
15522 if test "x$wx_largefile" != "xyes"; then
247f5006
VZ
15523
15524 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
15525echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
15526if test "${ac_cv_sys_large_files+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528else
15529
15530 cat >conftest.$ac_ext <<_ACEOF
15531#line $LINENO "configure"
f6bcfd97 15532#include "confdefs.h"
21d1c967
GD
15533#define _LARGE_FILES 1
15534 #include <sys/types.h>
247f5006
VZ
15535#ifdef F77_DUMMY_MAIN
15536# ifdef __cplusplus
15537 extern "C"
15538# endif
15539 int F77_DUMMY_MAIN() { return 1; }
15540#endif
15541int
15542main ()
15543{
21d1c967
GD
15544typedef struct {
15545 unsigned int field: sizeof(off_t) == 8;
15546} wxlf;
15547
247f5006
VZ
15548 ;
15549 return 0;
15550}
15551_ACEOF
15552rm -f conftest.$ac_objext
15553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554 (eval $ac_compile) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try='test -s conftest.$ac_objext'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
21d1c967 15564 ac_cv_sys_large_files=1
f6bcfd97 15565else
247f5006
VZ
15566 echo "$as_me: failed program was:" >&5
15567cat conftest.$ac_ext >&5
15568ac_cv_sys_large_files=no
5c6fa7d2 15569fi
247f5006
VZ
15570rm -f conftest.$ac_objext conftest.$ac_ext
15571
8284b0c5 15572
247f5006
VZ
15573fi
15574echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15575echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 15576
21d1c967
GD
15577 if test "$ac_cv_sys_large_files" != no; then
15578 wx_largefile=yes
247f5006 15579 cat >>confdefs.h <<_ACEOF
21d1c967 15580#define _LARGE_FILES $ac_cv_sys_large_files
247f5006 15581_ACEOF
90dd450c 15582
90dd450c
VZ
15583 fi
15584
90dd450c 15585 fi
90dd450c 15586
247f5006
VZ
15587 echo "$as_me:$LINENO: checking if large file support is available" >&5
15588echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 15589 if test "x$wx_largefile" = "xyes"; then
247f5006 15590 cat >>confdefs.h <<\_ACEOF
21d1c967 15591#define HAVE_LARGEFILE_SUPPORT 1
247f5006 15592_ACEOF
90dd450c 15593
90dd450c 15594 fi
247f5006
VZ
15595 echo "$as_me:$LINENO: result: $wx_largefile" >&5
15596echo "${ECHO_T}$wx_largefile" >&6
21d1c967 15597fi
90dd450c 15598
8284b0c5 15599
247f5006
VZ
15600echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15601echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15602if test "${ac_cv_c_bigendian+set}" = set; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 15604else
21d1c967
GD
15605 ac_cv_c_bigendian=unknown
15606# See if sys/param.h defines the BYTE_ORDER macro.
247f5006
VZ
15607cat >conftest.$ac_ext <<_ACEOF
15608#line $LINENO "configure"
90dd450c 15609#include "confdefs.h"
21d1c967
GD
15610#include <sys/types.h>
15611#include <sys/param.h>
247f5006
VZ
15612#ifdef F77_DUMMY_MAIN
15613# ifdef __cplusplus
15614 extern "C"
15615# endif
15616 int F77_DUMMY_MAIN() { return 1; }
15617#endif
15618int
15619main ()
15620{
21d1c967
GD
15621
15622#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15623 bogus endian macros
15624#endif
247f5006
VZ
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629rm -f conftest.$ac_objext
15630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631 (eval $ac_compile) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
21d1c967 15641 # It does; now see whether it defined to BIG_ENDIAN or not.
247f5006
VZ
15642cat >conftest.$ac_ext <<_ACEOF
15643#line $LINENO "configure"
90dd450c 15644#include "confdefs.h"
21d1c967
GD
15645#include <sys/types.h>
15646#include <sys/param.h>
247f5006
VZ
15647#ifdef F77_DUMMY_MAIN
15648# ifdef __cplusplus
15649 extern "C"
15650# endif
15651 int F77_DUMMY_MAIN() { return 1; }
15652#endif
15653int
15654main ()
15655{
21d1c967
GD
15656
15657#if BYTE_ORDER != BIG_ENDIAN
15658 not big endian
15659#endif
247f5006
VZ
15660 ;
15661 return 0;
15662}
15663_ACEOF
15664rm -f conftest.$ac_objext
15665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666 (eval $ac_compile) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -s conftest.$ac_objext'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
21d1c967 15676 ac_cv_c_bigendian=yes
3f345b47 15677else
247f5006
VZ
15678 echo "$as_me: failed program was:" >&5
15679cat conftest.$ac_ext >&5
15680ac_cv_c_bigendian=no
3f345b47 15681fi
247f5006 15682rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 15683else
247f5006
VZ
15684 echo "$as_me: failed program was:" >&5
15685cat conftest.$ac_ext >&5
3f345b47 15686fi
247f5006 15687rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
15688if test $ac_cv_c_bigendian = unknown; then
15689if test "$cross_compiling" = yes; then
15690 ac_cv_c_bigendian=unknown
10f2d63a 15691else
247f5006
VZ
15692 cat >conftest.$ac_ext <<_ACEOF
15693#line $LINENO "configure"
90dd450c 15694#include "confdefs.h"
21d1c967
GD
15695main () {
15696 /* Are we little or big endian? From Harbison&Steele. */
15697 union
15698 {
15699 long l;
15700 char c[sizeof (long)];
15701 } u;
15702 u.l = 1;
15703 exit (u.c[sizeof (long) - 1] == 1);
15704}
247f5006
VZ
15705_ACEOF
15706rm -f conftest$ac_exeext
15707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15708 (eval $ac_link) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
21d1c967 15717 ac_cv_c_bigendian=no
3f345b47 15718else
247f5006
VZ
15719 echo "$as_me: program exited with status $ac_status" >&5
15720echo "$as_me: failed program was:" >&5
15721cat conftest.$ac_ext >&5
15722( exit $ac_status )
15723ac_cv_c_bigendian=yes
15724fi
15725rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15726fi
3f345b47 15727fi
8168de4c 15728fi
247f5006
VZ
15729echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15730echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15731if test $ac_cv_c_bigendian = unknown; then
15732 { echo "$as_me:$LINENO: 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
15733echo "$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;}
15734fi
15735if test $ac_cv_c_bigendian = yes; then
15736 cat >>confdefs.h <<\_ACEOF
15737#define WORDS_BIGENDIAN 1
15738_ACEOF
15739
15740fi
15741
15742
8284b0c5 15743
247f5006
VZ
15744ac_ext=cc
15745ac_cpp='$CXXCPP $CPPFLAGS'
15746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15749echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15750echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15751if test -z "$CXXCPP"; then
15752 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15754else
15755 # Double quotes because CXXCPP needs to be expanded
15756 for CXXCPP in "$CXX -E" "/lib/cpp"
15757 do
15758 ac_preproc_ok=false
15759for ac_cxx_preproc_warn_flag in '' yes
15760do
15761 # Use a header file that comes with gcc, so configuring glibc
15762 # with a fresh cross-compiler works.
15763 # On the NeXT, cc -E runs the code through the compiler's parser,
15764 # not just through cpp. "Syntax error" is here to catch this case.
15765 cat >conftest.$ac_ext <<_ACEOF
15766#line $LINENO "configure"
15767#include "confdefs.h"
15768#include <assert.h>
15769 Syntax error
15770_ACEOF
15771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15773 ac_status=$?
15774 egrep -v '^ *\+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } >/dev/null; then
15779 if test -s conftest.err; then
15780 ac_cpp_err=$ac_cxx_preproc_warn_flag
15781 else
15782 ac_cpp_err=
15783 fi
15784else
15785 ac_cpp_err=yes
21d1c967 15786fi
247f5006
VZ
15787if test -z "$ac_cpp_err"; then
15788 :
15789else
15790 echo "$as_me: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15792 # Broken: fails on valid input.
15793continue
21d1c967 15794fi
247f5006 15795rm -f conftest.err conftest.$ac_ext
8284b0c5 15796
247f5006
VZ
15797 # OK, works on sane cases. Now check whether non-existent headers
15798 # can be detected and how.
15799 cat >conftest.$ac_ext <<_ACEOF
15800#line $LINENO "configure"
15801#include "confdefs.h"
15802#include <ac_nonexistent.h>
15803_ACEOF
15804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15806 ac_status=$?
15807 egrep -v '^ *\+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } >/dev/null; then
15812 if test -s conftest.err; then
15813 ac_cpp_err=$ac_cxx_preproc_warn_flag
15814 else
15815 ac_cpp_err=
15816 fi
15817else
15818 ac_cpp_err=yes
21d1c967 15819fi
247f5006
VZ
15820if test -z "$ac_cpp_err"; then
15821 # Broken: success on invalid input.
15822continue
15823else
15824 echo "$as_me: failed program was:" >&5
15825 cat conftest.$ac_ext >&5
15826 # Passes both tests.
15827ac_preproc_ok=:
15828break
15829fi
15830rm -f conftest.err conftest.$ac_ext
21d1c967 15831
247f5006
VZ
15832done
15833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15834rm -f conftest.err conftest.$ac_ext
15835if $ac_preproc_ok; then
15836 break
21d1c967
GD
15837fi
15838
247f5006
VZ
15839 done
15840 ac_cv_prog_CXXCPP=$CXXCPP
5c6fa7d2 15841
247f5006
VZ
15842fi
15843 CXXCPP=$ac_cv_prog_CXXCPP
5c6fa7d2 15844else
247f5006
VZ
15845 ac_cv_prog_CXXCPP=$CXXCPP
15846fi
15847echo "$as_me:$LINENO: result: $CXXCPP" >&5
15848echo "${ECHO_T}$CXXCPP" >&6
15849ac_preproc_ok=false
15850for ac_cxx_preproc_warn_flag in '' yes
15851do
15852 # Use a header file that comes with gcc, so configuring glibc
15853 # with a fresh cross-compiler works.
15854 # On the NeXT, cc -E runs the code through the compiler's parser,
15855 # not just through cpp. "Syntax error" is here to catch this case.
15856 cat >conftest.$ac_ext <<_ACEOF
15857#line $LINENO "configure"
5c6fa7d2 15858#include "confdefs.h"
247f5006
VZ
15859#include <assert.h>
15860 Syntax error
15861_ACEOF
15862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15864 ac_status=$?
15865 egrep -v '^ *\+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } >/dev/null; then
15870 if test -s conftest.err; then
15871 ac_cpp_err=$ac_cxx_preproc_warn_flag
15872 else
15873 ac_cpp_err=
15874 fi
15875else
15876 ac_cpp_err=yes
15877fi
15878if test -z "$ac_cpp_err"; then
21d1c967 15879 :
698dcdb6 15880else
247f5006 15881 echo "$as_me: failed program was:" >&5
698dcdb6 15882 cat conftest.$ac_ext >&5
247f5006
VZ
15883 # Broken: fails on valid input.
15884continue
5c6fa7d2 15885fi
247f5006
VZ
15886rm -f conftest.err conftest.$ac_ext
15887
15888 # OK, works on sane cases. Now check whether non-existent headers
15889 # can be detected and how.
15890 cat >conftest.$ac_ext <<_ACEOF
15891#line $LINENO "configure"
15892#include "confdefs.h"
15893#include <ac_nonexistent.h>
15894_ACEOF
15895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15897 ac_status=$?
15898 egrep -v '^ *\+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } >/dev/null; then
15903 if test -s conftest.err; then
15904 ac_cpp_err=$ac_cxx_preproc_warn_flag
15905 else
15906 ac_cpp_err=
15907 fi
15908else
15909 ac_cpp_err=yes
15910fi
15911if test -z "$ac_cpp_err"; then
15912 # Broken: success on invalid input.
15913continue
15914else
15915 echo "$as_me: failed program was:" >&5
15916 cat conftest.$ac_ext >&5
15917 # Passes both tests.
15918ac_preproc_ok=:
15919break
328a083c 15920fi
247f5006
VZ
15921rm -f conftest.err conftest.$ac_ext
15922
15923done
15924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15925rm -f conftest.err conftest.$ac_ext
15926if $ac_preproc_ok; then
15927 :
15928else
15929 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
15930echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
15931 { (exit 1); exit 1; }; }
90dd450c 15932fi
247f5006
VZ
15933
15934ac_ext=cc
15935ac_cpp='$CXXCPP $CPPFLAGS'
15936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15939
1e6feb95 15940
1725144d 15941
21d1c967 15942 if test "$cross_compiling" = "yes"; then
247f5006 15943 cat >>confdefs.h <<\_ACEOF
21d1c967 15944#define wxUSE_IOSTREAMH 1
247f5006 15945_ACEOF
ab9b9eab 15946
21d1c967 15947 else
247f5006
VZ
15948
15949
15950 ac_ext=cc
5c6fa7d2 15951ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
15952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 15955
52127426 15956
247f5006
VZ
15957
15958for ac_header in iostream
21d1c967 15959do
247f5006
VZ
15960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962 echo "$as_me:$LINENO: checking for $ac_header" >&5
15963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964if eval "test \"\${$as_ac_Header+set}\" = set"; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966fi
15967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15969else
15970 # Is the header compilable?
15971echo "$as_me:$LINENO: checking $ac_header usability" >&5
15972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15973cat >conftest.$ac_ext <<_ACEOF
15974#line $LINENO "configure"
ab9b9eab 15975#include "confdefs.h"
247f5006
VZ
15976$ac_includes_default
15977#include <$ac_header>
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -s conftest.$ac_objext'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 ac_header_compiler=yes
15992else
15993 echo "$as_me: failed program was:" >&5
15994cat conftest.$ac_ext >&5
15995ac_header_compiler=no
15996fi
15997rm -f conftest.$ac_objext conftest.$ac_ext
15998echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15999echo "${ECHO_T}$ac_header_compiler" >&6
16000
16001# Is the header present?
16002echo "$as_me:$LINENO: checking $ac_header presence" >&5
16003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16004cat >conftest.$ac_ext <<_ACEOF
16005#line $LINENO "configure"
16006#include "confdefs.h"
16007#include <$ac_header>
16008_ACEOF
16009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16011 ac_status=$?
16012 egrep -v '^ *\+' conftest.er1 >conftest.err
16013 rm -f conftest.er1
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } >/dev/null; then
16017 if test -s conftest.err; then
16018 ac_cpp_err=$ac_cxx_preproc_warn_flag
16019 else
16020 ac_cpp_err=
16021 fi
16022else
16023 ac_cpp_err=yes
16024fi
16025if test -z "$ac_cpp_err"; then
16026 ac_header_preproc=yes
16027else
16028 echo "$as_me: failed program was:" >&5
ab9b9eab 16029 cat conftest.$ac_ext >&5
247f5006
VZ
16030 ac_header_preproc=no
16031fi
16032rm -f conftest.err conftest.$ac_ext
16033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16034echo "${ECHO_T}$ac_header_preproc" >&6
16035
16036# So? What about this header?
16037case $ac_header_compiler:$ac_header_preproc in
16038 yes:no )
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16043 no:yes )
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16050esac
16051echo "$as_me:$LINENO: checking for $ac_header" >&5
16052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16053if eval "test \"\${$as_ac_Header+set}\" = set"; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16055else
16056 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 16057fi
247f5006
VZ
16058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16060
90dd450c 16061fi
247f5006
VZ
16062if test `eval echo '${'$as_ac_Header'}'` = yes; then
16063 cat >>confdefs.h <<_ACEOF
16064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16065_ACEOF
16066
90dd450c 16067fi
247f5006 16068
21d1c967 16069done
10f2d63a 16070
8284b0c5 16071
21d1c967
GD
16072 if test "$ac_cv_header_iostream" = "yes" ; then
16073 :
16074 else
247f5006 16075 cat >>confdefs.h <<\_ACEOF
21d1c967 16076#define wxUSE_IOSTREAMH 1
247f5006 16077_ACEOF
788deba1 16078
90dd450c 16079 fi
ab9b9eab 16080
21d1c967 16081 ac_ext=c
21d1c967 16082ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
16083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16085ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 16086
21d1c967 16087 fi
ab9b9eab 16088
52127426 16089
8284b0c5 16090
247f5006
VZ
16091 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
16092echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
16093if test "${wx_cv_cpp_bool+set}" = set; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 16095else
247f5006
VZ
16096
16097
16098
16099 ac_ext=cc
5c6fa7d2 16100ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
16101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 16104
8284b0c5 16105
247f5006
VZ
16106 cat >conftest.$ac_ext <<_ACEOF
16107#line $LINENO "configure"
ab9b9eab 16108#include "confdefs.h"
21d1c967 16109
247f5006
VZ
16110
16111#ifdef F77_DUMMY_MAIN
16112# ifdef __cplusplus
16113 extern "C"
16114# endif
16115 int F77_DUMMY_MAIN() { return 1; }
16116#endif
16117int
16118main ()
16119{
21d1c967
GD
16120
16121 bool b = true;
16122
16123 return 0;
247f5006
VZ
16124
16125 ;
16126 return 0;
16127}
16128_ACEOF
16129rm -f conftest.$ac_objext
16130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16131 (eval $ac_compile) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141
21d1c967 16142 wx_cv_cpp_bool=yes
247f5006 16143
698dcdb6 16144else
247f5006
VZ
16145 echo "$as_me: failed program was:" >&5
16146cat conftest.$ac_ext >&5
16147
21d1c967 16148 wx_cv_cpp_bool=no
247f5006
VZ
16149
16150
698dcdb6 16151fi
247f5006 16152rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16153
16154 ac_ext=c
21d1c967 16155ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
16156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158ac_compiler_gnu=$ac_cv_c_compiler_gnu
21d1c967 16159
8284b0c5 16160
247f5006
VZ
16161fi
16162echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
16163echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
16164
16165 if test "$wx_cv_cpp_bool" = "yes"; then
247f5006 16166 cat >>confdefs.h <<\_ACEOF
21d1c967 16167#define HAVE_BOOL 1
247f5006 16168_ACEOF
ab9b9eab 16169
21d1c967
GD
16170 fi
16171
52127426 16172
8284b0c5 16173
247f5006
VZ
16174 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
16175echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
16176if test "${wx_cv_explicit+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 16178else
247f5006
VZ
16179
16180
16181
16182 ac_ext=cc
5c6fa7d2 16183ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
16184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 16187
8284b0c5 16188
247f5006
VZ
16189 cat >conftest.$ac_ext <<_ACEOF
16190#line $LINENO "configure"
986ecc86
VZ
16191#include "confdefs.h"
16192
16193 class Foo { public: explicit Foo(int) {} };
247f5006
VZ
16194
16195#ifdef F77_DUMMY_MAIN
16196# ifdef __cplusplus
16197 extern "C"
16198# endif
16199 int F77_DUMMY_MAIN() { return 1; }
16200#endif
16201int
16202main ()
16203{
986ecc86
VZ
16204
16205 return 0;
247f5006
VZ
16206
16207 ;
16208 return 0;
16209}
16210_ACEOF
16211rm -f conftest.$ac_objext
16212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213 (eval $ac_compile) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -s conftest.$ac_objext'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223
16224 cat >conftest.$ac_ext <<_ACEOF
16225#line $LINENO "configure"
986ecc86
VZ
16226#include "confdefs.h"
16227
16228 class Foo { public: explicit Foo(int) {} };
16229 static void TakeFoo(const Foo& foo) { }
247f5006
VZ
16230
16231#ifdef F77_DUMMY_MAIN
16232# ifdef __cplusplus
16233 extern "C"
16234# endif
16235 int F77_DUMMY_MAIN() { return 1; }
16236#endif
16237int
16238main ()
16239{
986ecc86
VZ
16240
16241 TakeFoo(17);
16242 return 0;
247f5006
VZ
16243
16244 ;
16245 return 0;
16246}
16247_ACEOF
16248rm -f conftest.$ac_objext
16249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16250 (eval $ac_compile) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
986ecc86
VZ
16260 wx_cv_explicit=no
16261else
247f5006
VZ
16262 echo "$as_me: failed program was:" >&5
16263cat conftest.$ac_ext >&5
16264wx_cv_explicit=yes
16265
986ecc86 16266fi
247f5006
VZ
16267rm -f conftest.$ac_objext conftest.$ac_ext
16268
986ecc86 16269else
247f5006
VZ
16270 echo "$as_me: failed program was:" >&5
16271cat conftest.$ac_ext >&5
16272wx_cv_explicit=no
16273
986ecc86 16274fi
247f5006 16275rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
16276
16277 ac_ext=c
986ecc86 16278ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
16279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16281ac_compiler_gnu=$ac_cv_c_compiler_gnu
986ecc86 16282
8284b0c5 16283
247f5006
VZ
16284fi
16285echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
16286echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
16287
16288 if test "$wx_cv_explicit" = "yes"; then
247f5006 16289 cat >>confdefs.h <<\_ACEOF
986ecc86 16290#define HAVE_EXPLICIT 1
247f5006 16291_ACEOF
986ecc86
VZ
16292
16293 fi
16294
8284b0c5
MB
16295
16296
21d1c967
GD
16297SEARCH_INCLUDE="\
16298 /usr/local/include \
16299 \
16300 /usr/Motif-1.2/include \
16301 /usr/Motif-2.1/include \
16302 \
16303 /usr/include/Motif1.2 \
16304 /opt/xpm/include/X11 \
16305 /opt/GBxpm/include/ \
16306 /opt/GBxpm/X11/include/ \
16307 \
16308 /usr/Motif1.2/include \
16309 /usr/dt/include \
16310 /usr/openwin/include \
16311 \
16312 /usr/include/Xm \
16313 \
16314 /usr/X11R6/include \
16315 /usr/X11R6.4/include \
16316 /usr/X11R5/include \
16317 /usr/X11R4/include \
16318 \
16319 /usr/include/X11R6 \
16320 /usr/include/X11R5 \
16321 /usr/include/X11R4 \
16322 \
16323 /usr/local/X11R6/include \
16324 /usr/local/X11R5/include \
16325 /usr/local/X11R4/include \
16326 \
16327 /usr/local/include/X11R6 \
16328 /usr/local/include/X11R5 \
16329 /usr/local/include/X11R4 \
16330 \
16331 /usr/X11/include \
16332 /usr/include/X11 \
16333 /usr/local/X11/include \
16334 /usr/local/include/X11 \
16335 \
16336 /usr/X386/include \
16337 /usr/x386/include \
16338 /usr/XFree86/include/X11 \
16339 \
16340 X:/XFree86/include \
16341 X:/XFree86/include/X11 \
16342 \
16343 /usr/include/gtk \
16344 /usr/local/include/gtk \
16345 /usr/include/glib \
16346 /usr/local/include/glib \
16347 \
16348 /usr/include/qt \
16349 /usr/local/include/qt \
16350 \
16351 /usr/include/windows \
16352 /usr/include/wine \
16353 /usr/local/include/wine \
16354 \
16355 /usr/unsupported/include \
16356 /usr/athena/include \
16357 /usr/local/x11r5/include \
16358 /usr/lpp/Xamples/include \
16359 \
16360 /usr/openwin/share/include \
16361 \
16362 /usr/include"
16363
16364SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
16365
8284b0c5 16366
247f5006 16367cat >confcache <<\_ACEOF
21d1c967
GD
16368# This file is a shell script that caches the results of configure
16369# tests run on this system so they can be shared between configure
247f5006
VZ
16370# scripts and configure runs, see configure's option --config-cache.
16371# It is not useful on other systems. If it contains results you don't
16372# want to keep, you may remove or edit it.
21d1c967 16373#
247f5006
VZ
16374# config.status only pays attention to the cache file if you give it
16375# the --recheck option to rerun configure.
21d1c967 16376#
247f5006
VZ
16377# `ac_cv_env_foo' variables (set or unset) will be overriden when
16378# loading this file, other *unset* `ac_cv_foo' will be assigned the
16379# following values.
16380
16381_ACEOF
16382
21d1c967
GD
16383# The following way of writing the cache mishandles newlines in values,
16384# but we know of no workaround that is simple, portable, and efficient.
16385# So, don't put newlines in cache variables' values.
16386# Ultrix sh set writes to stderr and can't be redirected directly,
16387# and sets the high bit in the cache file unless we assign to the vars.
247f5006
VZ
16388{
16389 (set) 2>&1 |
16390 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16391 *ac_space=\ *)
16392 # `set' does not quote correctly, so add quotes (double-quote
16393 # substitution turns \\\\ into \\, and sed turns \\ into \).
16394 sed -n \
16395 "s/'/'\\\\''/g;
16396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16397 ;;
16398 *)
16399 # `set' quotes correctly as required by POSIX, so do not add quotes.
16400 sed -n \
16401 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16402 ;;
16403 esac;
16404} |
16405 sed '
16406 t clear
16407 : clear
16408 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16409 t end
16410 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16411 : end' >>confcache
16412if cmp -s $cache_file confcache; then :; else
21d1c967 16413 if test -w $cache_file; then
247f5006
VZ
16414 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16415 cat confcache >$cache_file
21d1c967
GD
16416 else
16417 echo "not updating unwritable cache $cache_file"
16418 fi
ab9b9eab 16419fi
21d1c967 16420rm -f confcache
ab9b9eab 16421
8284b0c5 16422if test "$USE_LINUX" = 1; then
247f5006
VZ
16423 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
16424echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
16425if test "${wx_cv_lib_glibc21+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427else
16428
16429 cat >conftest.$ac_ext <<_ACEOF
16430#line $LINENO "configure"
ab9b9eab 16431#include "confdefs.h"
21d1c967 16432#include <features.h>
247f5006
VZ
16433#ifdef F77_DUMMY_MAIN
16434# ifdef __cplusplus
16435 extern "C"
16436# endif
16437 int F77_DUMMY_MAIN() { return 1; }
16438#endif
16439int
16440main ()
16441{
ab9b9eab 16442
21d1c967
GD
16443 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
16444 #error not glibc2.1
16445 #endif
247f5006
VZ
16446
16447 ;
16448 return 0;
16449}
16450_ACEOF
16451rm -f conftest.$ac_objext
16452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16453 (eval $ac_compile) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
16457 { ac_try='test -s conftest.$ac_objext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463
21d1c967 16464 wx_cv_lib_glibc21=yes
247f5006 16465
698dcdb6 16466else
247f5006
VZ
16467 echo "$as_me: failed program was:" >&5
16468cat conftest.$ac_ext >&5
16469
21d1c967 16470 wx_cv_lib_glibc21=no
247f5006
VZ
16471
16472
5c6fa7d2 16473fi
247f5006 16474rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 16475
247f5006
VZ
16476fi
16477echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
16478echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 16479 if test "$wx_cv_lib_glibc21" = "yes"; then
247f5006 16480 cat >>confdefs.h <<\_ACEOF
21d1c967 16481#define wxHAVE_GLIBC2 1
247f5006 16482_ACEOF
1e487827 16483
90dd450c 16484 fi
ab9b9eab
VZ
16485fi
16486
5c0a20c3
VZ
16487if test "x$wx_cv_lib_glibc21" = "xyes"; then
16488 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
247f5006 16489 cat >>confdefs.h <<\_ACEOF
5c0a20c3 16490#define _GNU_SOURCE 1
247f5006 16491_ACEOF
5c0a20c3
VZ
16492
16493 fi
16494fi
16495
8284b0c5
MB
16496
16497
21d1c967
GD
16498REGEX_INCLUDE=
16499if test "$wxUSE_REGEX" != "no"; then
247f5006 16500 cat >>confdefs.h <<\_ACEOF
21d1c967 16501#define wxUSE_REGEX 1
247f5006 16502_ACEOF
698dcdb6 16503
8284b0c5 16504
21d1c967 16505 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
247f5006
VZ
16506 if test "${ac_cv_header_regex_h+set}" = set; then
16507 echo "$as_me:$LINENO: checking for regex.h" >&5
16508echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
16509if test "${ac_cv_header_regex_h+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511fi
16512echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
16513echo "${ECHO_T}$ac_cv_header_regex_h" >&6
16514else
16515 # Is the header compilable?
16516echo "$as_me:$LINENO: checking regex.h usability" >&5
16517echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
16518cat >conftest.$ac_ext <<_ACEOF
16519#line $LINENO "configure"
21d1c967 16520#include "confdefs.h"
247f5006 16521$ac_includes_default
21d1c967 16522#include <regex.h>
247f5006
VZ
16523_ACEOF
16524rm -f conftest.$ac_objext
16525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16526 (eval $ac_compile) 2>&5
16527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
16530 { ac_try='test -s conftest.$ac_objext'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_header_compiler=yes
16537else
16538 echo "$as_me: failed program was:" >&5
16539cat conftest.$ac_ext >&5
16540ac_header_compiler=no
16541fi
16542rm -f conftest.$ac_objext conftest.$ac_ext
16543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16544echo "${ECHO_T}$ac_header_compiler" >&6
16545
16546# Is the header present?
16547echo "$as_me:$LINENO: checking regex.h presence" >&5
16548echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
16549cat >conftest.$ac_ext <<_ACEOF
16550#line $LINENO "configure"
16551#include "confdefs.h"
16552#include <regex.h>
16553_ACEOF
16554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16556 ac_status=$?
16557 egrep -v '^ *\+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } >/dev/null; then
16562 if test -s conftest.err; then
16563 ac_cpp_err=$ac_c_preproc_warn_flag
16564 else
16565 ac_cpp_err=
16566 fi
16567else
16568 ac_cpp_err=yes
16569fi
16570if test -z "$ac_cpp_err"; then
16571 ac_header_preproc=yes
16572else
16573 echo "$as_me: failed program was:" >&5
21d1c967 16574 cat conftest.$ac_ext >&5
247f5006
VZ
16575 ac_header_preproc=no
16576fi
16577rm -f conftest.err conftest.$ac_ext
16578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16579echo "${ECHO_T}$ac_header_preproc" >&6
16580
16581# So? What about this header?
16582case $ac_header_compiler:$ac_header_preproc in
16583 yes:no )
16584 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
16585echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
16587echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;};;
16588 no:yes )
16589 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
16590echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
16591 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
16592echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
16593 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
16594echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;};;
16595esac
16596echo "$as_me:$LINENO: checking for regex.h" >&5
16597echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
16598if test "${ac_cv_header_regex_h+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600else
16601 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 16602fi
247f5006
VZ
16603echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
16604echo "${ECHO_T}$ac_cv_header_regex_h" >&6
16605
698dcdb6 16606fi
247f5006
VZ
16607if test $ac_cv_header_regex_h = yes; then
16608
16609for ac_func in regcomp
21d1c967 16610do
247f5006
VZ
16611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16612echo "$as_me:$LINENO: checking for $ac_func" >&5
16613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16614if eval "test \"\${$as_ac_var+set}\" = set"; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16616else
16617 cat >conftest.$ac_ext <<_ACEOF
16618#line $LINENO "configure"
8284b0c5 16619#include "confdefs.h"
247f5006
VZ
16620/* System header to define __stub macros and hopefully few prototypes
16621else
16622 which can conflict with char $ac_func (); below. */
21d1c967
GD
16623#include <assert.h>
16624/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
16625#ifdef __cplusplus
16626extern "C"
16627#endif
21d1c967 16628/* We use char because int might match the return type of a gcc2
247f5006
VZ
16629 builtin and then its argument prototype would still apply. */
16630char $ac_func ();
16631char (*f) ();
16632
16633#ifdef F77_DUMMY_MAIN
16634# ifdef __cplusplus
16635 extern "C"
16636# endif
16637 int F77_DUMMY_MAIN() { return 1; }
16638#endif
16639int
16640main ()
16641{
21d1c967
GD
16642/* The GNU C library defines this for functions which it implements
16643 to always fail with ENOSYS. Some functions are actually named
16644 something starting with __ and the normal name is an alias. */
16645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16646choke me
16647#else
247f5006 16648f = $ac_func;
21d1c967 16649#endif
90dd450c 16650
247f5006
VZ
16651 ;
16652 return 0;
16653}
16654_ACEOF
16655rm -f conftest.$ac_objext conftest$ac_exeext
16656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657 (eval $ac_link) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try='test -s conftest$ac_exeext'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 eval "$as_ac_var=yes"
16668else
16669 echo "$as_me: failed program was:" >&5
16670cat conftest.$ac_ext >&5
16671eval "$as_ac_var=no"
16672fi
16673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16674fi
16675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16677if test `eval echo '${'$as_ac_var'}'` = yes; then
16678 cat >>confdefs.h <<_ACEOF
16679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16680_ACEOF
5c6fa7d2 16681
698dcdb6 16682fi
21d1c967
GD
16683done
16684
ab9b9eab
VZ
16685fi
16686
8284b0c5 16687
247f5006 16688
21d1c967
GD
16689 if test "x$ac_cv_func_regcomp" != "xyes"; then
16690 if test "$wxUSE_REGEX" = "sys" ; then
247f5006
VZ
16691 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
16692echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
16693 { (exit 1); exit 1; }; }
21d1c967 16694 else
247f5006
VZ
16695 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
16696echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
16697 wxUSE_REGEX=builtin
16698 fi
16699 else
16700 wxUSE_REGEX=sys
16701 fi
ab9b9eab 16702 fi
90dd450c 16703
21d1c967
GD
16704 if test "$wxUSE_REGEX" = "builtin" ; then
16705 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 16706 fi
21d1c967 16707fi
90dd450c 16708
8284b0c5 16709
21d1c967
GD
16710ZLIB_INCLUDE=
16711ZLIB_LINK=
16712if test "$wxUSE_ZLIB" != "no" ; then
247f5006 16713 cat >>confdefs.h <<\_ACEOF
21d1c967 16714#define wxUSE_ZLIB 1
247f5006 16715_ACEOF
21d1c967 16716
8284b0c5 16717
21d1c967 16718 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
247f5006
VZ
16719 if test "${ac_cv_header_zlib_h+set}" = set; then
16720 echo "$as_me:$LINENO: checking for zlib.h" >&5
16721echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
16722if test "${ac_cv_header_zlib_h+set}" = set; then
16723 echo $ECHO_N "(cached) $ECHO_C" >&6
16724fi
16725echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16726echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
16727else
16728 # Is the header compilable?
16729echo "$as_me:$LINENO: checking zlib.h usability" >&5
16730echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
16731cat >conftest.$ac_ext <<_ACEOF
16732#line $LINENO "configure"
ab9b9eab 16733#include "confdefs.h"
247f5006 16734$ac_includes_default
21d1c967 16735#include <zlib.h>
247f5006
VZ
16736_ACEOF
16737rm -f conftest.$ac_objext
16738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739 (eval $ac_compile) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16749 ac_header_compiler=yes
16750else
16751 echo "$as_me: failed program was:" >&5
16752cat conftest.$ac_ext >&5
16753ac_header_compiler=no
16754fi
16755rm -f conftest.$ac_objext conftest.$ac_ext
16756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16757echo "${ECHO_T}$ac_header_compiler" >&6
16758
16759# Is the header present?
16760echo "$as_me:$LINENO: checking zlib.h presence" >&5
16761echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
16762cat >conftest.$ac_ext <<_ACEOF
16763#line $LINENO "configure"
16764#include "confdefs.h"
16765#include <zlib.h>
16766_ACEOF
16767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16769 ac_status=$?
16770 egrep -v '^ *\+' conftest.er1 >conftest.err
16771 rm -f conftest.er1
16772 cat conftest.err >&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } >/dev/null; then
16775 if test -s conftest.err; then
16776 ac_cpp_err=$ac_c_preproc_warn_flag
16777 else
16778 ac_cpp_err=
16779 fi
16780else
16781 ac_cpp_err=yes
16782fi
16783if test -z "$ac_cpp_err"; then
16784 ac_header_preproc=yes
16785else
16786 echo "$as_me: failed program was:" >&5
698dcdb6 16787 cat conftest.$ac_ext >&5
247f5006
VZ
16788 ac_header_preproc=no
16789fi
16790rm -f conftest.err conftest.$ac_ext
16791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16792echo "${ECHO_T}$ac_header_preproc" >&6
16793
16794# So? What about this header?
16795case $ac_header_compiler:$ac_header_preproc in
16796 yes:no )
16797 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16798echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16800echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
16801 no:yes )
16802 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16803echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
16805echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16807echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
16808esac
16809echo "$as_me:$LINENO: checking for zlib.h" >&5
16810echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
16811if test "${ac_cv_header_zlib_h+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813else
16814 ac_cv_header_zlib_h=$ac_header_preproc
698dcdb6 16815fi
247f5006
VZ
16816echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16817echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
16818
ab9b9eab 16819fi
247f5006
VZ
16820if test $ac_cv_header_zlib_h = yes; then
16821 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16822echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16823if test "${ac_cv_lib_z_deflate+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16825else
247f5006 16826 ac_check_lib_save_LIBS=$LIBS
21d1c967 16827LIBS="-lz $LIBS"
247f5006
VZ
16828cat >conftest.$ac_ext <<_ACEOF
16829#line $LINENO "configure"
ab9b9eab 16830#include "confdefs.h"
247f5006 16831
21d1c967 16832/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
16833#ifdef __cplusplus
16834extern "C"
16835#endif
21d1c967 16836/* We use char because int might match the return type of a gcc2
247f5006
VZ
16837 builtin and then its argument prototype would still apply. */
16838char deflate ();
16839#ifdef F77_DUMMY_MAIN
16840# ifdef __cplusplus
16841 extern "C"
16842# endif
16843 int F77_DUMMY_MAIN() { return 1; }
16844#endif
16845int
16846main ()
16847{
16848deflate ();
16849 ;
16850 return 0;
16851}
16852_ACEOF
16853rm -f conftest.$ac_objext conftest$ac_exeext
16854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16855 (eval $ac_link) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -s conftest$ac_exeext'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_lib_z_deflate=yes
16866else
16867 echo "$as_me: failed program was:" >&5
16868cat conftest.$ac_ext >&5
16869ac_cv_lib_z_deflate=no
16870fi
16871rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16872LIBS=$ac_check_lib_save_LIBS
16873fi
16874echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
16875echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
16876if test $ac_cv_lib_z_deflate = yes; then
21d1c967 16877 ZLIB_LINK=" -lz"
90dd450c 16878fi
698dcdb6 16879
698dcdb6 16880fi
698dcdb6 16881
8284b0c5 16882
247f5006 16883
21d1c967
GD
16884 if test "x$ZLIB_LINK" = "x" ; then
16885 if test "$wxUSE_ZLIB" = "sys" ; then
247f5006
VZ
16886 { { echo "$as_me:$LINENO: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" >&5
16887echo "$as_me: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" >&2;}
16888 { (exit 1); exit 1; }; }
21d1c967 16889 else
247f5006
VZ
16890 { echo "$as_me:$LINENO: WARNING: system zlib compression library not found, will use built-in instead" >&5
16891echo "$as_me: WARNING: system zlib compression library not found, will use built-in instead" >&2;}
21d1c967
GD
16892 wxUSE_ZLIB=builtin
16893 fi
16894 else
16895 wxUSE_ZLIB=sys
16896 fi
16897 fi
16898
16899 if test "$wxUSE_ZLIB" = "builtin" ; then
16900 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
16901 fi
ab9b9eab
VZ
16902fi
16903
8284b0c5 16904
21d1c967
GD
16905PNG_INCLUDE=
16906PNG_LINK=
16907if test "$wxUSE_LIBPNG" != "no" ; then
247f5006 16908 cat >>confdefs.h <<\_ACEOF
21d1c967 16909#define wxUSE_LIBPNG 1
247f5006 16910_ACEOF
90dd450c 16911
8284b0c5 16912
21d1c967 16913 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
247f5006
VZ
16914 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
16915echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
16916 wxUSE_LIBPNG=sys
16917 fi
90dd450c 16918
21d1c967 16919 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
247f5006
VZ
16920 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
16921echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
16922 wxUSE_LIBPNG=builtin
16923 fi
16924
16925 if test "$wxUSE_MGL" != 1 ; then
16926 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
247f5006
VZ
16927 if test "${ac_cv_header_png_h+set}" = set; then
16928 echo "$as_me:$LINENO: checking for png.h" >&5
16929echo $ECHO_N "checking for png.h... $ECHO_C" >&6
16930if test "${ac_cv_header_png_h+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932fi
16933echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
16934echo "${ECHO_T}$ac_cv_header_png_h" >&6
16935else
16936 # Is the header compilable?
16937echo "$as_me:$LINENO: checking png.h usability" >&5
16938echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
16939cat >conftest.$ac_ext <<_ACEOF
16940#line $LINENO "configure"
21d1c967 16941#include "confdefs.h"
247f5006 16942$ac_includes_default
21d1c967 16943#include <png.h>
247f5006
VZ
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_header_compiler=yes
16958else
16959 echo "$as_me: failed program was:" >&5
16960cat conftest.$ac_ext >&5
16961ac_header_compiler=no
16962fi
16963rm -f conftest.$ac_objext conftest.$ac_ext
16964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16965echo "${ECHO_T}$ac_header_compiler" >&6
16966
16967# Is the header present?
16968echo "$as_me:$LINENO: checking png.h presence" >&5
16969echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
16970cat >conftest.$ac_ext <<_ACEOF
16971#line $LINENO "configure"
16972#include "confdefs.h"
16973#include <png.h>
16974_ACEOF
16975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16977 ac_status=$?
16978 egrep -v '^ *\+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } >/dev/null; then
16983 if test -s conftest.err; then
16984 ac_cpp_err=$ac_c_preproc_warn_flag
16985 else
16986 ac_cpp_err=
16987 fi
16988else
16989 ac_cpp_err=yes
16990fi
16991if test -z "$ac_cpp_err"; then
16992 ac_header_preproc=yes
16993else
16994 echo "$as_me: failed program was:" >&5
90dd450c 16995 cat conftest.$ac_ext >&5
247f5006
VZ
16996 ac_header_preproc=no
16997fi
16998rm -f conftest.err conftest.$ac_ext
16999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17000echo "${ECHO_T}$ac_header_preproc" >&6
17001
17002# So? What about this header?
17003case $ac_header_compiler:$ac_header_preproc in
17004 yes:no )
17005 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
17006echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
17008echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
17009 no:yes )
17010 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
17011echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
17012 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
17013echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
17014 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
17015echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
17016esac
17017echo "$as_me:$LINENO: checking for png.h" >&5
17018echo $ECHO_N "checking for png.h... $ECHO_C" >&6
17019if test "${ac_cv_header_png_h+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
17022 ac_cv_header_png_h=$ac_header_preproc
90dd450c 17023fi
247f5006
VZ
17024echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
17025echo "${ECHO_T}$ac_cv_header_png_h" >&6
17026
90dd450c 17027fi
247f5006
VZ
17028if test $ac_cv_header_png_h = yes; then
17029 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
17030echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
17031if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17033else
247f5006 17034 ac_check_lib_save_LIBS=$LIBS
21d1c967 17035LIBS="-lpng -lz -lm $LIBS"
247f5006
VZ
17036cat >conftest.$ac_ext <<_ACEOF
17037#line $LINENO "configure"
90dd450c 17038#include "confdefs.h"
247f5006 17039
21d1c967 17040/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17041#ifdef __cplusplus
17042extern "C"
17043#endif
21d1c967 17044/* We use char because int might match the return type of a gcc2
247f5006
VZ
17045 builtin and then its argument prototype would still apply. */
17046char png_check_sig ();
17047#ifdef F77_DUMMY_MAIN
17048# ifdef __cplusplus
17049 extern "C"
17050# endif
17051 int F77_DUMMY_MAIN() { return 1; }
17052#endif
17053int
17054main ()
17055{
17056png_check_sig ();
17057 ;
17058 return 0;
17059}
17060_ACEOF
17061rm -f conftest.$ac_objext conftest$ac_exeext
17062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17063 (eval $ac_link) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try='test -s conftest$ac_exeext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_cv_lib_png_png_check_sig=yes
17074else
17075 echo "$as_me: failed program was:" >&5
17076cat conftest.$ac_ext >&5
17077ac_cv_lib_png_png_check_sig=no
17078fi
17079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17080LIBS=$ac_check_lib_save_LIBS
17081fi
17082echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
17083echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
17084if test $ac_cv_lib_png_png_check_sig = yes; then
21d1c967 17085 PNG_LINK=" -lpng"
90dd450c
VZ
17086fi
17087
247f5006 17088
90dd450c
VZ
17089fi
17090
8284b0c5 17091
247f5006 17092
21d1c967
GD
17093 if test "x$PNG_LINK" = "x" ; then
17094 if test "$wxUSE_LIBPNG" = "sys" ; then
247f5006
VZ
17095 { { echo "$as_me:$LINENO: error: system png library not found! Use --with-libpng=builtin to use built-in version" >&5
17096echo "$as_me: error: system png library not found! Use --with-libpng=builtin to use built-in version" >&2;}
17097 { (exit 1); exit 1; }; }
21d1c967 17098 else
247f5006
VZ
17099 { echo "$as_me:$LINENO: WARNING: system png library not found, will use built-in instead" >&5
17100echo "$as_me: WARNING: system png library not found, will use built-in instead" >&2;}
21d1c967
GD
17101 wxUSE_LIBPNG=builtin
17102 fi
17103 else
17104 wxUSE_LIBPNG=yes
17105 fi
17106 fi
17107 fi
90dd450c 17108
21d1c967
GD
17109 if test "$wxUSE_LIBPNG" = "builtin" ; then
17110 PNG_INCLUDE="-I\${top_srcdir}/src/png"
17111 fi
90dd450c 17112
21d1c967 17113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
17114fi
17115
8284b0c5 17116
21d1c967
GD
17117JPEG_INCLUDE=
17118JPEG_LINK=
17119if test "$wxUSE_LIBJPEG" != "no" ; then
247f5006 17120 cat >>confdefs.h <<\_ACEOF
21d1c967 17121#define wxUSE_LIBJPEG 1
247f5006 17122_ACEOF
90dd450c 17123
8284b0c5 17124
21d1c967 17125 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
247f5006
VZ
17126 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
17127echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
17128 wxUSE_LIBJPEG=sys
17129 fi
90dd450c 17130
21d1c967
GD
17131 if test "$wxUSE_MGL" != 1 ; then
17132 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
247f5006
VZ
17133 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17134echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17135 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17137else
247f5006
VZ
17138 cat >conftest.$ac_ext <<_ACEOF
17139#line $LINENO "configure"
21d1c967 17140#include "confdefs.h"
90dd450c 17141
21d1c967
GD
17142 #undef HAVE_STDLIB_H
17143 #include <stdio.h>
17144 #include <jpeglib.h>
90dd450c 17145
247f5006
VZ
17146#ifdef F77_DUMMY_MAIN
17147# ifdef __cplusplus
17148 extern "C"
17149# endif
17150 int F77_DUMMY_MAIN() { return 1; }
17151#endif
17152int
17153main ()
17154{
17155
17156
17157 ;
17158 return 0;
17159}
17160_ACEOF
17161rm -f conftest.$ac_objext
17162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17163 (eval $ac_compile) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -s conftest.$ac_objext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
21d1c967 17173 ac_cv_header_jpeglib_h=yes
90dd450c 17174else
247f5006
VZ
17175 echo "$as_me: failed program was:" >&5
17176cat conftest.$ac_ext >&5
17177ac_cv_header_jpeglib_h=no
17178
90dd450c 17179fi
247f5006
VZ
17180rm -f conftest.$ac_objext conftest.$ac_ext
17181
90dd450c
VZ
17182fi
17183
247f5006
VZ
17184 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17185echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 17186
21d1c967 17187 if test "$ac_cv_header_jpeglib_h" = "yes"; then
247f5006
VZ
17188 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
17189echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
17190if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17192else
247f5006 17193 ac_check_lib_save_LIBS=$LIBS
21d1c967 17194LIBS="-ljpeg $LIBS"
247f5006
VZ
17195cat >conftest.$ac_ext <<_ACEOF
17196#line $LINENO "configure"
21d1c967 17197#include "confdefs.h"
247f5006 17198
21d1c967 17199/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17200#ifdef __cplusplus
17201extern "C"
17202#endif
21d1c967 17203/* We use char because int might match the return type of a gcc2
247f5006
VZ
17204 builtin and then its argument prototype would still apply. */
17205char jpeg_read_header ();
17206#ifdef F77_DUMMY_MAIN
17207# ifdef __cplusplus
17208 extern "C"
17209# endif
17210 int F77_DUMMY_MAIN() { return 1; }
17211#endif
17212int
17213main ()
17214{
17215jpeg_read_header ();
17216 ;
17217 return 0;
17218}
17219_ACEOF
17220rm -f conftest.$ac_objext conftest$ac_exeext
17221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -s conftest$ac_exeext'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_cv_lib_jpeg_jpeg_read_header=yes
17233else
17234 echo "$as_me: failed program was:" >&5
17235cat conftest.$ac_ext >&5
17236ac_cv_lib_jpeg_jpeg_read_header=no
17237fi
17238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17239LIBS=$ac_check_lib_save_LIBS
17240fi
17241echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
17242echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
17243if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 17244 JPEG_LINK=" -ljpeg"
90dd450c
VZ
17245fi
17246
21d1c967 17247 fi
90dd450c 17248
21d1c967
GD
17249 if test "x$JPEG_LINK" = "x" ; then
17250 if test "$wxUSE_LIBJPEG" = "sys" ; then
247f5006
VZ
17251 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
17252echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
17253 { (exit 1); exit 1; }; }
21d1c967 17254 else
247f5006
VZ
17255 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
17256echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
17257 wxUSE_LIBJPEG=builtin
17258 fi
17259 else
17260 wxUSE_LIBJPEG=sys
17261 fi
17262 fi
17263 fi
90dd450c 17264
21d1c967
GD
17265 if test "$wxUSE_LIBJPEG" = "builtin" ; then
17266 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
17267 fi
17268fi
90dd450c 17269
8284b0c5 17270
21d1c967
GD
17271TIFF_INCLUDE=
17272TIFF_LINK=
17273if test "$wxUSE_LIBTIFF" != "no" ; then
247f5006 17274 cat >>confdefs.h <<\_ACEOF
21d1c967 17275#define wxUSE_LIBTIFF 1
247f5006 17276_ACEOF
21d1c967 17277
8284b0c5 17278
21d1c967 17279 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
247f5006
VZ
17280 if test "${ac_cv_header_tiffio_h+set}" = set; then
17281 echo "$as_me:$LINENO: checking for tiffio.h" >&5
17282echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
17283if test "${ac_cv_header_tiffio_h+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285fi
17286echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
17287echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
17288else
17289 # Is the header compilable?
17290echo "$as_me:$LINENO: checking tiffio.h usability" >&5
17291echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
17292cat >conftest.$ac_ext <<_ACEOF
17293#line $LINENO "configure"
21d1c967 17294#include "confdefs.h"
247f5006 17295$ac_includes_default
21d1c967 17296#include <tiffio.h>
247f5006
VZ
17297_ACEOF
17298rm -f conftest.$ac_objext
17299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17300 (eval $ac_compile) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -s conftest.$ac_objext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_header_compiler=yes
17311else
17312 echo "$as_me: failed program was:" >&5
17313cat conftest.$ac_ext >&5
17314ac_header_compiler=no
17315fi
17316rm -f conftest.$ac_objext conftest.$ac_ext
17317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17318echo "${ECHO_T}$ac_header_compiler" >&6
17319
17320# Is the header present?
17321echo "$as_me:$LINENO: checking tiffio.h presence" >&5
17322echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
17323cat >conftest.$ac_ext <<_ACEOF
17324#line $LINENO "configure"
17325#include "confdefs.h"
17326#include <tiffio.h>
17327_ACEOF
17328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17330 ac_status=$?
17331 egrep -v '^ *\+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } >/dev/null; then
17336 if test -s conftest.err; then
17337 ac_cpp_err=$ac_c_preproc_warn_flag
17338 else
17339 ac_cpp_err=
17340 fi
17341else
17342 ac_cpp_err=yes
17343fi
17344if test -z "$ac_cpp_err"; then
17345 ac_header_preproc=yes
17346else
17347 echo "$as_me: failed program was:" >&5
21d1c967 17348 cat conftest.$ac_ext >&5
247f5006
VZ
17349 ac_header_preproc=no
17350fi
17351rm -f conftest.err conftest.$ac_ext
17352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17353echo "${ECHO_T}$ac_header_preproc" >&6
17354
17355# So? What about this header?
17356case $ac_header_compiler:$ac_header_preproc in
17357 yes:no )
17358 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
17359echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
17361echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
17362 no:yes )
17363 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
17364echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
17365 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
17366echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
17367 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
17368echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
17369esac
17370echo "$as_me:$LINENO: checking for tiffio.h" >&5
17371echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
17372if test "${ac_cv_header_tiffio_h+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374else
17375 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 17376fi
247f5006
VZ
17377echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
17378echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
17379
21d1c967 17380fi
247f5006
VZ
17381if test $ac_cv_header_tiffio_h = yes; then
17382 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
17383echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
17384if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 17386else
247f5006 17387 ac_check_lib_save_LIBS=$LIBS
21d1c967 17388LIBS="-ltiff -lm $LIBS"
247f5006
VZ
17389cat >conftest.$ac_ext <<_ACEOF
17390#line $LINENO "configure"
ab9b9eab 17391#include "confdefs.h"
247f5006 17392
ab9b9eab 17393/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17394#ifdef __cplusplus
17395extern "C"
17396#endif
ab9b9eab 17397/* We use char because int might match the return type of a gcc2
247f5006
VZ
17398 builtin and then its argument prototype would still apply. */
17399char TIFFError ();
17400#ifdef F77_DUMMY_MAIN
17401# ifdef __cplusplus
17402 extern "C"
17403# endif
17404 int F77_DUMMY_MAIN() { return 1; }
17405#endif
17406int
17407main ()
17408{
17409TIFFError ();
17410 ;
17411 return 0;
17412}
17413_ACEOF
17414rm -f conftest.$ac_objext conftest$ac_exeext
17415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416 (eval $ac_link) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try='test -s conftest$ac_exeext'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_lib_tiff_TIFFError=yes
17427else
17428 echo "$as_me: failed program was:" >&5
17429cat conftest.$ac_ext >&5
17430ac_cv_lib_tiff_TIFFError=no
17431fi
17432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17433LIBS=$ac_check_lib_save_LIBS
17434fi
17435echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
17436echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
17437if test $ac_cv_lib_tiff_TIFFError = yes; then
21d1c967 17438 TIFF_LINK=" -ltiff"
ab9b9eab
VZ
17439fi
17440
247f5006 17441
21d1c967 17442fi
cd6d6d5b 17443
8284b0c5 17444
247f5006 17445
21d1c967
GD
17446 if test "x$TIFF_LINK" = "x" ; then
17447 if test "$wxUSE_LIBTIFF" = "sys" ; then
247f5006
VZ
17448 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
17449echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
17450 { (exit 1); exit 1; }; }
90dd450c 17451 else
247f5006
VZ
17452 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
17453echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 17454 wxUSE_LIBTIFF=builtin
d8356fa3 17455 fi
d8356fa3 17456 else
21d1c967 17457 wxUSE_LIBTIFF=sys
d8356fa3 17458 fi
21d1c967 17459 fi
d8356fa3 17460
21d1c967
GD
17461 if test "$wxUSE_LIBTIFF" = "builtin" ; then
17462 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 17463 fi
21d1c967 17464fi
10f2d63a 17465
8284b0c5 17466
21d1c967 17467AFMINSTALL=
90dd450c 17468
21d1c967
GD
17469TOOLKIT=
17470TOOLKIT_INCLUDE=
17471WIDGET_SET=
17472
17473if test "$USE_WIN32" = 1 ; then
247f5006
VZ
17474
17475for ac_header in w32api.h
21d1c967 17476do
247f5006
VZ
17477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17478if eval "test \"\${$as_ac_Header+set}\" = set"; then
17479 echo "$as_me:$LINENO: checking for $ac_header" >&5
17480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17481if eval "test \"\${$as_ac_Header+set}\" = set"; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483fi
17484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17486else
17487 # Is the header compilable?
17488echo "$as_me:$LINENO: checking $ac_header usability" >&5
17489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17490cat >conftest.$ac_ext <<_ACEOF
17491#line $LINENO "configure"
f79bd02d 17492#include "confdefs.h"
247f5006
VZ
17493$ac_includes_default
17494#include <$ac_header>
17495_ACEOF
17496rm -f conftest.$ac_objext
17497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17498 (eval $ac_compile) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -s conftest.$ac_objext'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 ac_header_compiler=yes
17509else
17510 echo "$as_me: failed program was:" >&5
17511cat conftest.$ac_ext >&5
17512ac_header_compiler=no
17513fi
17514rm -f conftest.$ac_objext conftest.$ac_ext
17515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17516echo "${ECHO_T}$ac_header_compiler" >&6
17517
17518# Is the header present?
17519echo "$as_me:$LINENO: checking $ac_header presence" >&5
17520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17521cat >conftest.$ac_ext <<_ACEOF
17522#line $LINENO "configure"
17523#include "confdefs.h"
17524#include <$ac_header>
17525_ACEOF
17526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17528 ac_status=$?
17529 egrep -v '^ *\+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } >/dev/null; then
17534 if test -s conftest.err; then
17535 ac_cpp_err=$ac_c_preproc_warn_flag
17536 else
17537 ac_cpp_err=
17538 fi
17539else
17540 ac_cpp_err=yes
17541fi
17542if test -z "$ac_cpp_err"; then
17543 ac_header_preproc=yes
17544else
17545 echo "$as_me: failed program was:" >&5
f79bd02d 17546 cat conftest.$ac_ext >&5
247f5006
VZ
17547 ac_header_preproc=no
17548fi
17549rm -f conftest.err conftest.$ac_ext
17550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17551echo "${ECHO_T}$ac_header_preproc" >&6
17552
17553# So? What about this header?
17554case $ac_header_compiler:$ac_header_preproc in
17555 yes:no )
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
17560 no:yes )
17561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
17567esac
17568echo "$as_me:$LINENO: checking for $ac_header" >&5
17569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17570if eval "test \"\${$as_ac_Header+set}\" = set"; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572else
17573 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 17574fi
247f5006
VZ
17575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17577
21d1c967 17578fi
247f5006
VZ
17579if test `eval echo '${'$as_ac_Header'}'` = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17582_ACEOF
17583
21d1c967 17584fi
247f5006 17585
21d1c967 17586done
f79bd02d 17587
247f5006
VZ
17588 if test "${ac_cv_header_windows_h+set}" = set; then
17589 echo "$as_me:$LINENO: checking for windows.h" >&5
17590echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
17591if test "${ac_cv_header_windows_h+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17593fi
17594echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
17595echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21d1c967 17596else
247f5006
VZ
17597 # Is the header compilable?
17598echo "$as_me:$LINENO: checking windows.h usability" >&5
17599echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
17600cat >conftest.$ac_ext <<_ACEOF
17601#line $LINENO "configure"
90dd450c 17602#include "confdefs.h"
247f5006 17603$ac_includes_default
21d1c967 17604#include <windows.h>
247f5006
VZ
17605_ACEOF
17606rm -f conftest.$ac_objext
17607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17608 (eval $ac_compile) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
17612 { ac_try='test -s conftest.$ac_objext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_header_compiler=yes
17619else
17620 echo "$as_me: failed program was:" >&5
17621cat conftest.$ac_ext >&5
17622ac_header_compiler=no
17623fi
17624rm -f conftest.$ac_objext conftest.$ac_ext
17625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17626echo "${ECHO_T}$ac_header_compiler" >&6
17627
17628# Is the header present?
17629echo "$as_me:$LINENO: checking windows.h presence" >&5
17630echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
17631cat >conftest.$ac_ext <<_ACEOF
17632#line $LINENO "configure"
17633#include "confdefs.h"
17634#include <windows.h>
17635_ACEOF
17636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17638 ac_status=$?
17639 egrep -v '^ *\+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } >/dev/null; then
17644 if test -s conftest.err; then
17645 ac_cpp_err=$ac_c_preproc_warn_flag
17646 else
17647 ac_cpp_err=
17648 fi
17649else
17650 ac_cpp_err=yes
17651fi
17652if test -z "$ac_cpp_err"; then
17653 ac_header_preproc=yes
17654else
17655 echo "$as_me: failed program was:" >&5
90dd450c 17656 cat conftest.$ac_ext >&5
247f5006
VZ
17657 ac_header_preproc=no
17658fi
17659rm -f conftest.err conftest.$ac_ext
17660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17661echo "${ECHO_T}$ac_header_preproc" >&6
17662
17663# So? What about this header?
17664case $ac_header_compiler:$ac_header_preproc in
17665 yes:no )
17666 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
17667echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
17669echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;};;
17670 no:yes )
17671 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
17672echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
17673 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
17674echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
17675 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
17676echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;};;
17677esac
17678echo "$as_me:$LINENO: checking for windows.h" >&5
17679echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
17680if test "${ac_cv_header_windows_h+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 17684fi
247f5006
VZ
17685echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
17686echo "${ECHO_T}$ac_cv_header_windows_h" >&6
17687
90dd450c 17688fi
247f5006 17689if test $ac_cv_header_windows_h = yes; then
21d1c967 17690 :
90dd450c 17691else
21d1c967 17692
247f5006
VZ
17693 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
17694echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
17695 { (exit 1); exit 1; }; }
17696
5c6fa7d2 17697fi
7b4a847f 17698
5c6fa7d2 17699
247f5006
VZ
17700
17701 echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5
17702echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
17703if test "${wx_cv_w32api_win32_ie+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17705else
247f5006
VZ
17706
17707 cat >conftest.$ac_ext <<_ACEOF
17708#line $LINENO "configure"
f79bd02d 17709#include "confdefs.h"
21d1c967 17710#include <w32api.h>
247f5006
VZ
17711#ifdef F77_DUMMY_MAIN
17712# ifdef __cplusplus
17713 extern "C"
17714# endif
17715 int F77_DUMMY_MAIN() { return 1; }
17716#endif
17717int
17718main ()
17719{
f79bd02d 17720
21d1c967
GD
17721 #define wxCHECK_W32API_VERSION( major, minor ) \
17722 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
17723 && ( ( __W32API_MAJOR_VERSION > (major) ) \
17724 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
17725
17726 #if !wxCHECK_W32API_VERSION(1,1)
17727 #error You need w32api 1.1 or newer
17728 #endif
247f5006
VZ
17729
17730 ;
17731 return 0;
17732}
17733_ACEOF
17734rm -f conftest.$ac_objext
17735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17736 (eval $ac_compile) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -s conftest.$ac_objext'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17746
21d1c967 17747 wx_cv_w32api_win32_ie=yes
247f5006 17748
f79bd02d 17749else
247f5006
VZ
17750 echo "$as_me: failed program was:" >&5
17751cat conftest.$ac_ext >&5
17752
21d1c967 17753 wx_cv_w32api_win32_ie=no
247f5006 17754
5c6fa7d2 17755fi
247f5006 17756rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 17757
247f5006
VZ
17758fi
17759echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5
17760echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
21d1c967
GD
17761 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
17762 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
17763 fi
f79bd02d 17764
21d1c967
GD
17765 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
17766
17767 case "${host}" in
17768 *-*-cygwin* )
17769 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
17770 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 17771 esac
f79bd02d 17772
21d1c967
GD
17773 if test "$wxUSE_ODBC" = "yes" ; then
17774 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
17775 fi
f79bd02d 17776
21d1c967
GD
17777 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
17778 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 17779fi
f79bd02d 17780
21d1c967
GD
17781if test "$wxUSE_GUI" = "yes"; then
17782 USE_GUI=1
f79bd02d 17783
21d1c967 17784 GUI_TK_LIBRARY=
f79bd02d 17785
21d1c967
GD
17786 WXGTK12=
17787 WXGTK127=
17788 WXGTK20=
f79bd02d 17789
21d1c967
GD
17790 if test "$wxUSE_MSW" = 1 ; then
17791 TOOLKIT=MSW
17792 GUIDIST=MSW_DIST
f79bd02d 17793
21d1c967
GD
17794 case "${host}" in
17795 *-*-mingw32* )
17796 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
17797 esac
f79bd02d
JS
17798 fi
17799
21d1c967 17800 if test "$wxUSE_GTK" = 1; then
247f5006
VZ
17801 echo "$as_me:$LINENO: checking for GTK+ version" >&5
17802echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
17803
17804 gtk_version_cached=1
247f5006
VZ
17805 if test "${wx_cv_lib_gtk+set}" = set; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 17807else
247f5006 17808
21d1c967 17809 gtk_version_cached=0
247f5006
VZ
17810 echo "$as_me:$LINENO: result: " >&5
17811echo "${ECHO_T}" >&6
f79bd02d 17812
21d1c967
GD
17813 GTK_MODULES=
17814 if test "$wxUSE_THREADS" = "yes"; then
17815 GTK_MODULES=gthread
17816 fi
f79bd02d 17817
21d1c967
GD
17818 wx_cv_lib_gtk=
17819 if test "x$wxUSE_GTK2" = "xyes"; then
17820 # Check whether --enable-gtktest or --disable-gtktest was given.
17821if test "${enable_gtktest+set}" = set; then
17822 enableval="$enable_gtktest"
247f5006 17823
f79bd02d 17824else
21d1c967 17825 enable_gtktest=yes
247f5006 17826fi;
f79bd02d 17827
21d1c967
GD
17828 pkg_config_args=gtk+-2.0
17829 for module in . $GTK_MODULES
17830 do
17831 case "$module" in
247f5006 17832 gthread)
21d1c967
GD
17833 pkg_config_args="$pkg_config_args gthread-2.0"
17834 ;;
17835 esac
17836 done
17837
17838 no_gtk=""
f79bd02d 17839
21d1c967
GD
17840 # Extract the first word of "pkg-config", so it can be a program name with args.
17841set dummy pkg-config; ac_word=$2
247f5006
VZ
17842echo "$as_me:$LINENO: checking for $ac_word" >&5
17843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17844if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17846else
247f5006
VZ
17847 case $PKG_CONFIG in
17848 [\\/]* | ?:[\\/]*)
21d1c967
GD
17849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17850 ;;
21d1c967 17851 *)
247f5006
VZ
17852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17853for as_dir in $PATH
17854do
17855 IFS=$as_save_IFS
17856 test -z "$as_dir" && as_dir=.
17857 for ac_exec_ext in '' $ac_executable_extensions; do
17858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17859 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17861 break 2
17862 fi
17863done
17864done
17865
21d1c967
GD
17866 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17867 ;;
17868esac
f79bd02d 17869fi
247f5006
VZ
17870PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17871
21d1c967 17872if test -n "$PKG_CONFIG"; then
247f5006
VZ
17873 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17874echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 17875else
247f5006
VZ
17876 echo "$as_me:$LINENO: result: no" >&5
17877echo "${ECHO_T}no" >&6
f79bd02d
JS
17878fi
17879
8284b0c5 17880
21d1c967
GD
17881 if test x$PKG_CONFIG != xno ; then
17882 if pkg-config --atleast-pkgconfig-version 0.7 ; then
17883 :
17884 else
17885 echo *** pkg-config too old; version 0.7 or better required.
17886 no_gtk=yes
17887 PKG_CONFIG=no
17888 fi
17889 else
17890 no_gtk=yes
17891 fi
f79bd02d 17892
21d1c967 17893 min_gtk_version=2.0.0
247f5006
VZ
17894 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17895echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 17896
21d1c967
GD
17897 if test x$PKG_CONFIG != xno ; then
17898 ## don't try to run the test against uninstalled libtool libs
17899 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17900 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17901 enable_gtktest=no
17902 fi
f79bd02d 17903
21d1c967
GD
17904 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17905 :
17906 else
17907 no_gtk=yes
17908 fi
17909 fi
f79bd02d 17910
21d1c967
GD
17911 if test x"$no_gtk" = x ; then
17912 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17913 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17914 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17916 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17918 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17920 if test "x$enable_gtktest" = "xyes" ; then
17921 ac_save_CFLAGS="$CFLAGS"
17922 ac_save_LIBS="$LIBS"
17923 CFLAGS="$CFLAGS $GTK_CFLAGS"
17924 LIBS="$GTK_LIBS $LIBS"
17925 rm -f conf.gtktest
17926 if test "$cross_compiling" = yes; then
17927 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 17928else
247f5006
VZ
17929 cat >conftest.$ac_ext <<_ACEOF
17930#line $LINENO "configure"
f79bd02d 17931#include "confdefs.h"
f79bd02d 17932
21d1c967
GD
17933#include <gtk/gtk.h>
17934#include <stdio.h>
17935#include <stdlib.h>
f79bd02d 17936
247f5006 17937int
21d1c967
GD
17938main ()
17939{
17940 int major, minor, micro;
17941 char *tmp_version;
f79bd02d 17942
21d1c967 17943 system ("touch conf.gtktest");
f79bd02d 17944
21d1c967
GD
17945 /* HP/UX 9 (%@#!) writes to sscanf strings */
17946 tmp_version = g_strdup("$min_gtk_version");
17947 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17948 printf("%s, bad version string\n", "$min_gtk_version");
17949 exit(1);
17950 }
f79bd02d 17951
21d1c967
GD
17952 if ((gtk_major_version != $gtk_config_major_version) ||
17953 (gtk_minor_version != $gtk_config_minor_version) ||
17954 (gtk_micro_version != $gtk_config_micro_version))
17955 {
247f5006 17956 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
17957 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17958 gtk_major_version, gtk_minor_version, gtk_micro_version);
17959 printf ("*** was found! If pkg-config was correct, then it is best\n");
17960 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17961 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17962 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17963 printf("*** required on your system.\n");
17964 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17965 printf("*** to point to the correct configuration files\n");
247f5006 17966 }
21d1c967
GD
17967 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17968 (gtk_minor_version != GTK_MINOR_VERSION) ||
17969 (gtk_micro_version != GTK_MICRO_VERSION))
17970 {
17971 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17972 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17973 printf("*** library (version %d.%d.%d)\n",
17974 gtk_major_version, gtk_minor_version, gtk_micro_version);
17975 }
17976 else
17977 {
17978 if ((gtk_major_version > major) ||
17979 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17980 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17981 {
17982 return 0;
17983 }
17984 else
17985 {
17986 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17987 gtk_major_version, gtk_minor_version, gtk_micro_version);
17988 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17989 major, minor, micro);
17990 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17991 printf("***\n");
17992 printf("*** If you have already installed a sufficiently new version, this error\n");
17993 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17994 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17995 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17996 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17997 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17998 printf("*** so that the correct libraries are found at run-time))\n");
17999 }
18000 }
18001 return 1;
18002}
f79bd02d 18003
247f5006
VZ
18004_ACEOF
18005rm -f conftest$ac_exeext
18006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18007 (eval $ac_link) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
21d1c967 18016 :
f79bd02d 18017else
247f5006
VZ
18018 echo "$as_me: program exited with status $ac_status" >&5
18019echo "$as_me: failed program was:" >&5
18020cat conftest.$ac_ext >&5
18021( exit $ac_status )
18022no_gtk=yes
f79bd02d 18023fi
247f5006 18024rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 18025fi
21d1c967
GD
18026 CFLAGS="$ac_save_CFLAGS"
18027 LIBS="$ac_save_LIBS"
18028 fi
18029 fi
18030 if test "x$no_gtk" = x ; then
247f5006
VZ
18031 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
18032echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
18033 wx_cv_lib_gtk=2.0
21d1c967 18034 else
247f5006
VZ
18035 echo "$as_me:$LINENO: result: no" >&5
18036echo "${ECHO_T}no" >&6
21d1c967
GD
18037 if test "$PKG_CONFIG" = "no" ; then
18038 echo "*** A new enough version of pkg-config was not found."
18039 echo "*** See http://pkgconfig.sourceforge.net"
18040 else
18041 if test -f conf.gtktest ; then
18042 :
18043 else
18044 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
18045 ac_save_CFLAGS="$CFLAGS"
18046 ac_save_LIBS="$LIBS"
21d1c967
GD
18047 CFLAGS="$CFLAGS $GTK_CFLAGS"
18048 LIBS="$LIBS $GTK_LIBS"
247f5006
VZ
18049 cat >conftest.$ac_ext <<_ACEOF
18050#line $LINENO "configure"
f79bd02d 18051#include "confdefs.h"
21d1c967
GD
18052
18053#include <gtk/gtk.h>
18054#include <stdio.h>
f79bd02d 18055
247f5006
VZ
18056#ifdef F77_DUMMY_MAIN
18057# ifdef __cplusplus
18058 extern "C"
18059# endif
18060 int F77_DUMMY_MAIN() { return 1; }
18061#endif
18062int
18063main ()
18064{
18065 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
18066 ;
18067 return 0;
18068}
18069_ACEOF
18070rm -f conftest.$ac_objext conftest$ac_exeext
18071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18072 (eval $ac_link) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
18076 { ac_try='test -s conftest$ac_exeext'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
21d1c967
GD
18082 echo "*** The test program compiled, but did not run. This usually means"
18083 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
18084 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
18085 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18086 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18087 echo "*** is required on your system"
18088 echo "***"
18089 echo "*** If you have an old version installed, it is best to remove it, although"
247f5006 18090 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 18091else
247f5006
VZ
18092 echo "$as_me: failed program was:" >&5
18093cat conftest.$ac_ext >&5
18094 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 18095 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 18096fi
247f5006 18097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
18098 CFLAGS="$ac_save_CFLAGS"
18099 LIBS="$ac_save_LIBS"
18100 fi
18101 fi
18102 GTK_CFLAGS=""
18103 GTK_LIBS=""
18104 :
18105 fi
247f5006
VZ
18106
18107
21d1c967 18108 rm -f conf.gtktest
f79bd02d 18109
21d1c967 18110 fi
f79bd02d 18111
21d1c967 18112 if test -z "$wx_cv_lib_gtk"; then
247f5006
VZ
18113
18114# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
18115if test "${with_gtk_prefix+set}" = set; then
18116 withval="$with_gtk_prefix"
18117 gtk_config_prefix="$withval"
18118else
18119 gtk_config_prefix=""
247f5006 18120fi;
f79bd02d 18121
21d1c967
GD
18122# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
18123if test "${with_gtk_exec_prefix+set}" = set; then
18124 withval="$with_gtk_exec_prefix"
18125 gtk_config_exec_prefix="$withval"
18126else
18127 gtk_config_exec_prefix=""
247f5006 18128fi;
21d1c967
GD
18129# Check whether --enable-gtktest or --disable-gtktest was given.
18130if test "${enable_gtktest+set}" = set; then
18131 enableval="$enable_gtktest"
247f5006 18132
21d1c967
GD
18133else
18134 enable_gtktest=yes
247f5006 18135fi;
21d1c967
GD
18136
18137 for module in . $GTK_MODULES
18138 do
18139 case "$module" in
247f5006 18140 gthread)
21d1c967
GD
18141 gtk_config_args="$gtk_config_args gthread"
18142 ;;
18143 esac
18144 done
18145
18146 if test x$gtk_config_exec_prefix != x ; then
18147 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
18148 if test x${GTK_CONFIG+set} != xset ; then
18149 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
18150 fi
18151 fi
18152 if test x$gtk_config_prefix != x ; then
18153 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
18154 if test x${GTK_CONFIG+set} != xset ; then
18155 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
18156 fi
18157 fi
18158
18159 # Extract the first word of "gtk-config", so it can be a program name with args.
18160set dummy gtk-config; ac_word=$2
247f5006
VZ
18161echo "$as_me:$LINENO: checking for $ac_word" >&5
18162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18163if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18165else
247f5006
VZ
18166 case $GTK_CONFIG in
18167 [\\/]* | ?:[\\/]*)
21d1c967
GD
18168 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
18169 ;;
21d1c967 18170 *)
247f5006
VZ
18171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18172for as_dir in $PATH
18173do
18174 IFS=$as_save_IFS
18175 test -z "$as_dir" && as_dir=.
18176 for ac_exec_ext in '' $ac_executable_extensions; do
18177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18178 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18180 break 2
18181 fi
18182done
18183done
18184
21d1c967
GD
18185 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
18186 ;;
18187esac
18188fi
247f5006
VZ
18189GTK_CONFIG=$ac_cv_path_GTK_CONFIG
18190
21d1c967 18191if test -n "$GTK_CONFIG"; then
247f5006
VZ
18192 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
18193echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 18194else
247f5006
VZ
18195 echo "$as_me:$LINENO: result: no" >&5
18196echo "${ECHO_T}no" >&6
21d1c967
GD
18197fi
18198
18199 min_gtk_version=1.2.7
247f5006
VZ
18200 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
18201echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
18202 no_gtk=""
18203 if test "$GTK_CONFIG" = "no" ; then
18204 no_gtk=yes
18205 else
18206 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
18207 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
18208 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
18209 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18210 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
18211 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18212 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
18213 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18214 if test "x$enable_gtktest" = "xyes" ; then
18215 ac_save_CFLAGS="$CFLAGS"
18216 ac_save_LIBS="$LIBS"
18217 CFLAGS="$CFLAGS $GTK_CFLAGS"
18218 LIBS="$GTK_LIBS $LIBS"
18219 rm -f conf.gtktest
18220 if test "$cross_compiling" = yes; then
18221 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 18222else
247f5006
VZ
18223 cat >conftest.$ac_ext <<_ACEOF
18224#line $LINENO "configure"
f79bd02d
JS
18225#include "confdefs.h"
18226
21d1c967
GD
18227#include <gtk/gtk.h>
18228#include <stdio.h>
18229#include <stdlib.h>
f79bd02d 18230
247f5006 18231int
21d1c967
GD
18232main ()
18233{
18234 int major, minor, micro;
18235 char *tmp_version;
18236
18237 system ("touch conf.gtktest");
18238
18239 /* HP/UX 9 (%@#!) writes to sscanf strings */
18240 tmp_version = g_strdup("$min_gtk_version");
18241 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18242 printf("%s, bad version string\n", "$min_gtk_version");
18243 exit(1);
18244 }
90dd450c 18245
21d1c967
GD
18246 if ((gtk_major_version != $gtk_config_major_version) ||
18247 (gtk_minor_version != $gtk_config_minor_version) ||
18248 (gtk_micro_version != $gtk_config_micro_version))
18249 {
247f5006 18250 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
18251 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
18252 gtk_major_version, gtk_minor_version, gtk_micro_version);
18253 printf ("*** was found! If gtk-config was correct, then it is best\n");
18254 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
18255 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
18256 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
18257 printf("*** required on your system.\n");
18258 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
18259 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
18260 printf("*** before re-running configure\n");
247f5006 18261 }
21d1c967
GD
18262#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
18263 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
18264 (gtk_minor_version != GTK_MINOR_VERSION) ||
18265 (gtk_micro_version != GTK_MICRO_VERSION))
18266 {
18267 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
18268 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
18269 printf("*** library (version %d.%d.%d)\n",
18270 gtk_major_version, gtk_minor_version, gtk_micro_version);
18271 }
18272#endif /* defined (GTK_MAJOR_VERSION) ... */
18273 else
18274 {
18275 if ((gtk_major_version > major) ||
18276 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
18277 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
18278 {
18279 return 0;
18280 }
18281 else
18282 {
18283 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
18284 gtk_major_version, gtk_minor_version, gtk_micro_version);
18285 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
18286 major, minor, micro);
18287 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
18288 printf("***\n");
18289 printf("*** If you have already installed a sufficiently new version, this error\n");
18290 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
18291 printf("*** being found. The easiest way to fix this is to remove the old version\n");
18292 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
18293 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
18294 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18295 printf("*** so that the correct libraries are found at run-time))\n");
18296 }
18297 }
18298 return 1;
18299}
18300
247f5006
VZ
18301_ACEOF
18302rm -f conftest$ac_exeext
18303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304 (eval $ac_link) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
21d1c967
GD
18313 :
18314else
247f5006
VZ
18315 echo "$as_me: program exited with status $ac_status" >&5
18316echo "$as_me: failed program was:" >&5
18317cat conftest.$ac_ext >&5
18318( exit $ac_status )
18319no_gtk=yes
21d1c967 18320fi
247f5006 18321rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 18322fi
21d1c967
GD
18323 CFLAGS="$ac_save_CFLAGS"
18324 LIBS="$ac_save_LIBS"
18325 fi
18326 fi
18327 if test "x$no_gtk" = x ; then
247f5006
VZ
18328 echo "$as_me:$LINENO: result: yes" >&5
18329echo "${ECHO_T}yes" >&6
18330 wx_cv_lib_gtk=1.2.7
21d1c967 18331 else
247f5006
VZ
18332 echo "$as_me:$LINENO: result: no" >&5
18333echo "${ECHO_T}no" >&6
21d1c967
GD
18334 if test "$GTK_CONFIG" = "no" ; then
18335 echo "*** The gtk-config script installed by GTK could not be found"
18336 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
18337 echo "*** your path, or set the GTK_CONFIG environment variable to the"
18338 echo "*** full path to gtk-config."
18339 else
18340 if test -f conf.gtktest ; then
18341 :
18342 else
18343 echo "*** Could not run GTK test program, checking why..."
18344 CFLAGS="$CFLAGS $GTK_CFLAGS"
18345 LIBS="$LIBS $GTK_LIBS"
247f5006
VZ
18346 cat >conftest.$ac_ext <<_ACEOF
18347#line $LINENO "configure"
21d1c967
GD
18348#include "confdefs.h"
18349
18350#include <gtk/gtk.h>
18351#include <stdio.h>
18352
247f5006
VZ
18353#ifdef F77_DUMMY_MAIN
18354# ifdef __cplusplus
18355 extern "C"
18356# endif
18357 int F77_DUMMY_MAIN() { return 1; }
18358#endif
18359int
18360main ()
18361{
18362 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
18363 ;
18364 return 0;
18365}
18366_ACEOF
18367rm -f conftest.$ac_objext conftest$ac_exeext
18368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } &&
18373 { ac_try='test -s conftest$ac_exeext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
21d1c967
GD
18379 echo "*** The test program compiled, but did not run. This usually means"
18380 echo "*** that the run-time linker is not finding GTK or finding the wrong"
18381 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
18382 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18383 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18384 echo "*** is required on your system"
18385 echo "***"
18386 echo "*** If you have an old version installed, it is best to remove it, although"
18387 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18388 echo "***"
18389 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
18390 echo "*** came with the system with the command"
18391 echo "***"
247f5006 18392 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 18393else
247f5006
VZ
18394 echo "$as_me: failed program was:" >&5
18395cat conftest.$ac_ext >&5
18396 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
18397 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
18398 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
247f5006 18399 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 18400fi
247f5006 18401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
18402 CFLAGS="$ac_save_CFLAGS"
18403 LIBS="$ac_save_LIBS"
18404 fi
18405 fi
18406 GTK_CFLAGS=""
18407 GTK_LIBS=""
18408 :
18409 fi
247f5006
VZ
18410
18411
21d1c967
GD
18412 rm -f conf.gtktest
18413
18414 fi
18415
18416 if test -z "$wx_cv_lib_gtk"; then
247f5006
VZ
18417
18418# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
18419if test "${with_gtk_prefix+set}" = set; then
18420 withval="$with_gtk_prefix"
18421 gtk_config_prefix="$withval"
18422else
18423 gtk_config_prefix=""
247f5006 18424fi;
f79bd02d 18425
21d1c967
GD
18426# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
18427if test "${with_gtk_exec_prefix+set}" = set; then
18428 withval="$with_gtk_exec_prefix"
18429 gtk_config_exec_prefix="$withval"
18430else
18431 gtk_config_exec_prefix=""
247f5006 18432fi;
21d1c967
GD
18433# Check whether --enable-gtktest or --disable-gtktest was given.
18434if test "${enable_gtktest+set}" = set; then
18435 enableval="$enable_gtktest"
247f5006 18436
90dd450c 18437else
21d1c967 18438 enable_gtktest=yes
247f5006 18439fi;
21d1c967
GD
18440
18441 for module in . $GTK_MODULES
18442 do
18443 case "$module" in
247f5006 18444 gthread)
21d1c967
GD
18445 gtk_config_args="$gtk_config_args gthread"
18446 ;;
18447 esac
18448 done
18449
18450 if test x$gtk_config_exec_prefix != x ; then
18451 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
18452 if test x${GTK_CONFIG+set} != xset ; then
18453 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
18454 fi
18455 fi
18456 if test x$gtk_config_prefix != x ; then
18457 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
18458 if test x${GTK_CONFIG+set} != xset ; then
18459 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
18460 fi
18461 fi
18462
18463 # Extract the first word of "gtk-config", so it can be a program name with args.
18464set dummy gtk-config; ac_word=$2
247f5006
VZ
18465echo "$as_me:$LINENO: checking for $ac_word" >&5
18466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18467if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 18469else
247f5006
VZ
18470 case $GTK_CONFIG in
18471 [\\/]* | ?:[\\/]*)
21d1c967
GD
18472 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
18473 ;;
21d1c967 18474 *)
247f5006
VZ
18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18476for as_dir in $PATH
18477do
18478 IFS=$as_save_IFS
18479 test -z "$as_dir" && as_dir=.
18480 for ac_exec_ext in '' $ac_executable_extensions; do
18481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18482 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18484 break 2
18485 fi
18486done
18487done
18488
21d1c967
GD
18489 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
18490 ;;
18491esac
18492fi
247f5006
VZ
18493GTK_CONFIG=$ac_cv_path_GTK_CONFIG
18494
21d1c967 18495if test -n "$GTK_CONFIG"; then
247f5006
VZ
18496 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
18497echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 18498else
247f5006
VZ
18499 echo "$as_me:$LINENO: result: no" >&5
18500echo "${ECHO_T}no" >&6
21d1c967
GD
18501fi
18502
18503 min_gtk_version=1.2.3
247f5006
VZ
18504 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
18505echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
18506 no_gtk=""
18507 if test "$GTK_CONFIG" = "no" ; then
18508 no_gtk=yes
18509 else
18510 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
18511 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
18512 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
18513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18514 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
18515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18516 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
18517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18518 if test "x$enable_gtktest" = "xyes" ; then
18519 ac_save_CFLAGS="$CFLAGS"
18520 ac_save_LIBS="$LIBS"
18521 CFLAGS="$CFLAGS $GTK_CFLAGS"
18522 LIBS="$GTK_LIBS $LIBS"
18523 rm -f conf.gtktest
18524 if test "$cross_compiling" = yes; then
18525 echo $ac_n "cross compiling; assumed OK... $ac_c"
18526else
247f5006
VZ
18527 cat >conftest.$ac_ext <<_ACEOF
18528#line $LINENO "configure"
f79bd02d 18529#include "confdefs.h"
21d1c967
GD
18530
18531#include <gtk/gtk.h>
18532#include <stdio.h>
18533#include <stdlib.h>
18534
247f5006 18535int
21d1c967
GD
18536main ()
18537{
18538 int major, minor, micro;
18539 char *tmp_version;
18540
18541 system ("touch conf.gtktest");
18542
18543 /* HP/UX 9 (%@#!) writes to sscanf strings */
18544 tmp_version = g_strdup("$min_gtk_version");
18545 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18546 printf("%s, bad version string\n", "$min_gtk_version");
18547 exit(1);
18548 }
18549
18550 if ((gtk_major_version != $gtk_config_major_version) ||
18551 (gtk_minor_version != $gtk_config_minor_version) ||
18552 (gtk_micro_version != $gtk_config_micro_version))
18553 {
247f5006 18554 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
18555 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
18556 gtk_major_version, gtk_minor_version, gtk_micro_version);
18557 printf ("*** was found! If gtk-config was correct, then it is best\n");
18558 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
18559 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
18560 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
18561 printf("*** required on your system.\n");
18562 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
18563 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
18564 printf("*** before re-running configure\n");
247f5006 18565 }
21d1c967
GD
18566#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
18567 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
18568 (gtk_minor_version != GTK_MINOR_VERSION) ||
18569 (gtk_micro_version != GTK_MICRO_VERSION))
18570 {
18571 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
18572 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
18573 printf("*** library (version %d.%d.%d)\n",
18574 gtk_major_version, gtk_minor_version, gtk_micro_version);
18575 }
18576#endif /* defined (GTK_MAJOR_VERSION) ... */
18577 else
18578 {
18579 if ((gtk_major_version > major) ||
18580 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
18581 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
18582 {
18583 return 0;
18584 }
18585 else
18586 {
18587 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
18588 gtk_major_version, gtk_minor_version, gtk_micro_version);
18589 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
18590 major, minor, micro);
18591 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
18592 printf("***\n");
18593 printf("*** If you have already installed a sufficiently new version, this error\n");
18594 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
18595 printf("*** being found. The easiest way to fix this is to remove the old version\n");
18596 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
18597 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
18598 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18599 printf("*** so that the correct libraries are found at run-time))\n");
18600 }
18601 }
18602 return 1;
18603}
18604
247f5006
VZ
18605_ACEOF
18606rm -f conftest$ac_exeext
18607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18608 (eval $ac_link) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
21d1c967
GD
18617 :
18618else
247f5006
VZ
18619 echo "$as_me: program exited with status $ac_status" >&5
18620echo "$as_me: failed program was:" >&5
18621cat conftest.$ac_ext >&5
18622( exit $ac_status )
18623no_gtk=yes
21d1c967 18624fi
247f5006 18625rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 18626fi
21d1c967
GD
18627 CFLAGS="$ac_save_CFLAGS"
18628 LIBS="$ac_save_LIBS"
18629 fi
18630 fi
18631 if test "x$no_gtk" = x ; then
247f5006
VZ
18632 echo "$as_me:$LINENO: result: yes" >&5
18633echo "${ECHO_T}yes" >&6
18634 wx_cv_lib_gtk=1.2.3
21d1c967 18635 else
247f5006
VZ
18636 echo "$as_me:$LINENO: result: no" >&5
18637echo "${ECHO_T}no" >&6
21d1c967
GD
18638 if test "$GTK_CONFIG" = "no" ; then
18639 echo "*** The gtk-config script installed by GTK could not be found"
18640 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
18641 echo "*** your path, or set the GTK_CONFIG environment variable to the"
18642 echo "*** full path to gtk-config."
18643 else
18644 if test -f conf.gtktest ; then
18645 :
18646 else
18647 echo "*** Could not run GTK test program, checking why..."
18648 CFLAGS="$CFLAGS $GTK_CFLAGS"
18649 LIBS="$LIBS $GTK_LIBS"
247f5006
VZ
18650 cat >conftest.$ac_ext <<_ACEOF
18651#line $LINENO "configure"
21d1c967
GD
18652#include "confdefs.h"
18653
18654#include <gtk/gtk.h>
18655#include <stdio.h>
f79bd02d 18656
247f5006
VZ
18657#ifdef F77_DUMMY_MAIN
18658# ifdef __cplusplus
18659 extern "C"
18660# endif
18661 int F77_DUMMY_MAIN() { return 1; }
18662#endif
18663int
18664main ()
18665{
18666 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext conftest$ac_exeext
18672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18673 (eval $ac_link) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try='test -s conftest$ac_exeext'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; }; then
21d1c967
GD
18683 echo "*** The test program compiled, but did not run. This usually means"
18684 echo "*** that the run-time linker is not finding GTK or finding the wrong"
18685 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
18686 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18687 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18688 echo "*** is required on your system"
18689 echo "***"
18690 echo "*** If you have an old version installed, it is best to remove it, although"
18691 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18692 echo "***"
18693 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
18694 echo "*** came with the system with the command"
18695 echo "***"
247f5006 18696 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 18697else
247f5006
VZ
18698 echo "$as_me: failed program was:" >&5
18699cat conftest.$ac_ext >&5
18700 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
18701 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
18702 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
247f5006 18703 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 18704fi
247f5006 18705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
18706 CFLAGS="$ac_save_CFLAGS"
18707 LIBS="$ac_save_LIBS"
18708 fi
18709 fi
18710 GTK_CFLAGS=""
18711 GTK_LIBS=""
18712 :
18713 fi
247f5006
VZ
18714
18715
21d1c967 18716 rm -f conf.gtktest
f79bd02d 18717
21d1c967
GD
18718 fi
18719
18720 if test -z "$wx_cv_lib_gtk"; then
18721 wx_cv_lib_gtk=none
18722 else
18723 wx_cv_cflags_gtk=$GTK_CFLAGS
18724 wx_cv_libs_gtk=$GTK_LIBS
18725 fi
247f5006
VZ
18726
18727
5c6fa7d2 18728fi
52127426 18729
8284b0c5 18730
21d1c967 18731 if test "$gtk_version_cached" = 1; then
247f5006
VZ
18732 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
18733echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
18734 fi
18735
18736 case "$wx_cv_lib_gtk" in
18737 2.0) WXGTK20=1
18738 ;;
18739 1.2.7) WXGTK127=1
18740 WXGTK12=1
18741 ;;
18742 1.2.3) WXGTK12=1
18743 ;;
247f5006
VZ
18744 *) { { echo "$as_me:$LINENO: error:
18745Please check that gtk-config is in path, the directory
18746where GTK+ libraries are installed (returned by
18747'gtk-config --libs' command) is in LD_LIBRARY_PATH or
18748equivalent variable and GTK+ is version 1.2.3 or above.
18749 " >&5
18750echo "$as_me: error:
328a083c
RR
18751Please check that gtk-config is in path, the directory
18752where GTK+ libraries are installed (returned by
18753'gtk-config --libs' command) is in LD_LIBRARY_PATH or
18754equivalent variable and GTK+ is version 1.2.3 or above.
247f5006
VZ
18755 " >&2;}
18756 { (exit 1); exit 1; }; }
21d1c967
GD
18757 ;;
18758 esac
18759
b13cd66e
VZ
18760 if test "$WXGTK20" = 1; then
18761 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
247f5006 18762
f09359cf
VS
18763 succeeded=no
18764
18765 if test -z "$PKG_CONFIG"; then
18766 # Extract the first word of "pkg-config", so it can be a program name with args.
18767set dummy pkg-config; ac_word=$2
247f5006
VZ
18768echo "$as_me:$LINENO: checking for $ac_word" >&5
18769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18770if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 18772else
247f5006
VZ
18773 case $PKG_CONFIG in
18774 [\\/]* | ?:[\\/]*)
f09359cf
VS
18775 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18776 ;;
f09359cf 18777 *)
247f5006
VZ
18778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18779for as_dir in $PATH
18780do
18781 IFS=$as_save_IFS
18782 test -z "$as_dir" && as_dir=.
18783 for ac_exec_ext in '' $ac_executable_extensions; do
18784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18785 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18787 break 2
18788 fi
18789done
18790done
18791
f09359cf
VS
18792 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18793 ;;
18794esac
18795fi
247f5006
VZ
18796PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18797
f09359cf 18798if test -n "$PKG_CONFIG"; then
247f5006
VZ
18799 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18800echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 18801else
247f5006
VZ
18802 echo "$as_me:$LINENO: result: no" >&5
18803echo "${ECHO_T}no" >&6
f09359cf
VS
18804fi
18805
18806 fi
18807
18808 if test "$PKG_CONFIG" = "no" ; then
18809 echo "*** The pkg-config script could not be found. Make sure it is"
18810 echo "*** in your path, or set the PKG_CONFIG environment variable"
18811 echo "*** to the full path to pkg-config."
18812 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18813 else
18814 PKG_CONFIG_MIN_VERSION=0.9.0
18815 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
247f5006
VZ
18816 echo "$as_me:$LINENO: checking for pangoft2" >&5
18817echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
18818
18819 if $PKG_CONFIG --exists "pangoft2" ; then
247f5006
VZ
18820 echo "$as_me:$LINENO: result: yes" >&5
18821echo "${ECHO_T}yes" >&6
f09359cf
VS
18822 succeeded=yes
18823
247f5006
VZ
18824 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
18825echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 18826 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
247f5006
VZ
18827 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
18828echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 18829
247f5006
VZ
18830 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
18831echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 18832 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
247f5006
VZ
18833 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
18834echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
18835 else
18836 PANGOFT2_CFLAGS=""
18837 PANGOFT2_LIBS=""
247f5006 18838 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
18839 ## do set a variable so people can do so.
18840 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
247f5006 18841
f09359cf
VS
18842 fi
18843
247f5006
VZ
18844
18845
f09359cf
VS
18846 else
18847 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18848 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18849 fi
18850 fi
18851
18852 if test $succeeded = yes; then
247f5006 18853
b13cd66e
VZ
18854 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
18855 LIBS="$LIBS $PANGOFT2_LIBS"
247f5006 18856
f09359cf 18857 else
247f5006
VZ
18858
18859 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
18860echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 18861 wxUSE_PRINTING_ARCHITECTURE="no"
247f5006
VZ
18862
18863
f09359cf
VS
18864 fi
18865
b13cd66e 18866 fi
f09359cf
VS
18867 fi
18868
21d1c967
GD
18869 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
18870 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
18871
18872 AFMINSTALL=afminstall
18873 TOOLKIT=GTK
18874 GUIDIST=GTK_DIST
18875
247f5006
VZ
18876 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
18877echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
18878if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 18880else
247f5006 18881 ac_check_lib_save_LIBS=$LIBS
21d1c967 18882LIBS="-lgdk $LIBS"
247f5006
VZ
18883cat >conftest.$ac_ext <<_ACEOF
18884#line $LINENO "configure"
90dd450c 18885#include "confdefs.h"
247f5006 18886
5c6fa7d2 18887/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
18888#ifdef __cplusplus
18889extern "C"
18890#endif
5c6fa7d2 18891/* We use char because int might match the return type of a gcc2
247f5006
VZ
18892 builtin and then its argument prototype would still apply. */
18893char gdk_im_open ();
18894#ifdef F77_DUMMY_MAIN
18895# ifdef __cplusplus
18896 extern "C"
18897# endif
18898 int F77_DUMMY_MAIN() { return 1; }
18899#endif
18900int
18901main ()
18902{
18903gdk_im_open ();
18904 ;
18905 return 0;
18906}
18907_ACEOF
18908rm -f conftest.$ac_objext conftest$ac_exeext
18909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910 (eval $ac_link) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -s conftest$ac_exeext'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18920 ac_cv_lib_gdk_gdk_im_open=yes
18921else
18922 echo "$as_me: failed program was:" >&5
18923cat conftest.$ac_ext >&5
18924ac_cv_lib_gdk_gdk_im_open=no
18925fi
18926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18927LIBS=$ac_check_lib_save_LIBS
18928fi
18929echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
18930echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
18931if test $ac_cv_lib_gdk_gdk_im_open = yes; then
18932 cat >>confdefs.h <<\_ACEOF
21d1c967 18933#define HAVE_XIM 1
247f5006 18934_ACEOF
21d1c967 18935
90dd450c 18936fi
1e6feb95 18937
21d1c967 18938 fi
1e6feb95 18939
21d1c967 18940 if test "$wxUSE_MGL" = 1; then
247f5006
VZ
18941 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
18942echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 18943 if test "x$MGL_ROOT" = x ; then
247f5006
VZ
18944 echo "$as_me:$LINENO: result: not found" >&5
18945echo "${ECHO_T}not found" >&6
18946 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
18947echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
18948 { (exit 1); exit 1; }; }
21d1c967 18949 else
247f5006
VZ
18950 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
18951echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
18952 fi
18953
18954 case "${host}" in
18955 *-*-linux* )
18956 mgl_os=linux/gcc/glibc
18957 ;;
18958 *-pc-msdosdjgpp )
18959 mgl_os=dos32/dj2
18960 ;;
18961 *)
247f5006
VZ
18962 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
18963echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
18964 { (exit 1); exit 1; }; }
21d1c967 18965 esac
1e6feb95 18966
21d1c967 18967 mgl_lib_type=""
3fcdd07b 18968
21d1c967
GD
18969 if test "$wxUSE_DEBUG_FLAG" = yes ; then
18970 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
18971 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
18972 mgl_lib_type=debug
18973 fi
18974 fi
18975 if test "x$mgl_lib_type" = x ; then
18976 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
18977 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
18978 mgl_lib_type=release
18979 else
247f5006
VZ
18980 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
18981echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
18982 { (exit 1); exit 1; }; }
21d1c967 18983 fi
90dd450c 18984 fi
2224580a 18985
1d1b75ac
VZ
18986 wxUSE_UNIVERSAL="yes"
18987
21d1c967
GD
18988 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
18989 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
18990
90dd450c 18991 AFMINSTALL=afminstall
21d1c967
GD
18992 TOOLKIT=MGL
18993 GUIDIST=MGL_DIST
18994 fi
dad6c0ea 18995
21d1c967 18996 if test "$wxUSE_MICROWIN" = 1; then
247f5006
VZ
18997 echo "$as_me:$LINENO: checking for MicroWindows" >&5
18998echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 18999 if test "x$MICROWINDOWS" = x ; then
247f5006
VZ
19000 echo "$as_me:$LINENO: result: not found" >&5
19001echo "${ECHO_T}not found" >&6
19002 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
19003echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
19004 { (exit 1); exit 1; }; }
21d1c967 19005 else
247f5006
VZ
19006 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
19007echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 19008 fi
f6bcfd97 19009
21d1c967 19010 if test -f $MICROWINDOWS/lib/libmwin.a; then
247f5006
VZ
19011 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
19012echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 19013 else
247f5006
VZ
19014 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
19015echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
19016 { (exit 1); exit 1; }; }
90dd450c 19017 fi
0b2effe9 19018
21d1c967
GD
19019 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
19020 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
19021
1d1b75ac
VZ
19022 wxUSE_UNIVERSAL="yes"
19023
21d1c967
GD
19024 AFMINSTALL=afminstall
19025 TOOLKIT=MICROWIN
19026 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
19027
19028 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 19029 fi
f6bcfd97 19030
21d1c967 19031 if test "$wxUSE_X11" = 1; then
247f5006
VZ
19032 echo "$as_me:$LINENO: checking for X" >&5
19033echo $ECHO_N "checking for X... $ECHO_C" >&6
19034
d8356fa3 19035
21d1c967
GD
19036# Check whether --with-x or --without-x was given.
19037if test "${with_x+set}" = set; then
19038 withval="$with_x"
2224580a 19039
247f5006 19040fi;
21d1c967
GD
19041# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19042if test "x$with_x" = xno; then
19043 # The user explicitly disabled X.
19044 have_x=disabled
19045else
19046 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19047 # Both variables are already set.
19048 have_x=yes
19049 else
247f5006
VZ
19050 if test "${ac_cv_have_x+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
19052else
19053 # One or both of the vars are not set, and there is no cached value.
247f5006
VZ
19054ac_x_includes=no ac_x_libraries=no
19055rm -fr conftest.dir
19056if mkdir conftest.dir; then
19057 cd conftest.dir
21d1c967 19058 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
247f5006 19059 cat >Imakefile <<'_ACEOF'
21d1c967
GD
19060acfindx:
19061 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
247f5006 19062_ACEOF
21d1c967
GD
19063 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19065 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19066 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19067 for ac_extension in a so sl; do
19068 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
247f5006 19069 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
19070 ac_im_usrlibdir=$ac_im_libdir; break
19071 fi
19072 done
19073 # Screen out bogus values from the imake configuration. They are
19074 # bogus both because they are the default anyway, and because
19075 # using them would break gcc on systems where it needs fixed includes.
247f5006 19076 case $ac_im_incroot in
21d1c967 19077 /usr/include) ;;
247f5006 19078 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 19079 esac
247f5006 19080 case $ac_im_usrlibdir in
21d1c967 19081 /usr/lib | /lib) ;;
247f5006 19082 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
19083 esac
19084 fi
19085 cd ..
247f5006 19086 rm -fr conftest.dir
21d1c967 19087fi
10f2d63a 19088
247f5006
VZ
19089# Standard set of common directories for X headers.
19090# Check X11 before X11Rn because it is often a symlink to the current release.
19091ac_x_header_dirs='
19092/usr/X11/include
19093/usr/X11R6/include
19094/usr/X11R5/include
19095/usr/X11R4/include
19096
19097/usr/include/X11
19098/usr/include/X11R6
19099/usr/include/X11R5
19100/usr/include/X11R4
19101
19102/usr/local/X11/include
19103/usr/local/X11R6/include
19104/usr/local/X11R5/include
19105/usr/local/X11R4/include
19106
19107/usr/local/include/X11
19108/usr/local/include/X11R6
19109/usr/local/include/X11R5
19110/usr/local/include/X11R4
19111
19112/usr/X386/include
19113/usr/x386/include
19114/usr/XFree86/include/X11
19115
19116/usr/include
19117/usr/local/include
19118/usr/unsupported/include
19119/usr/athena/include
19120/usr/local/x11r5/include
19121/usr/lpp/Xamples/include
19122
19123/usr/openwin/include
19124/usr/openwin/share/include'
19125
19126if test "$ac_x_includes" = no; then
19127 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 19128 # First, try using that file with no special directory specified.
247f5006
VZ
19129 cat >conftest.$ac_ext <<_ACEOF
19130#line $LINENO "configure"
21d1c967 19131#include "confdefs.h"
247f5006
VZ
19132#include <X11/Intrinsic.h>
19133_ACEOF
19134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19136 ac_status=$?
19137 egrep -v '^ *\+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } >/dev/null; then
19142 if test -s conftest.err; then
19143 ac_cpp_err=$ac_c_preproc_warn_flag
19144 else
19145 ac_cpp_err=
19146 fi
19147else
19148 ac_cpp_err=yes
19149fi
19150if test -z "$ac_cpp_err"; then
21d1c967
GD
19151 # We can compile using X headers with no special include directory.
19152ac_x_includes=
90dd450c 19153else
247f5006 19154 echo "$as_me: failed program was:" >&5
90dd450c 19155 cat conftest.$ac_ext >&5
247f5006
VZ
19156 for ac_dir in $ac_x_header_dirs; do
19157 if test -r "$ac_dir/X11/Intrinsic.h"; then
19158 ac_x_includes=$ac_dir
19159 break
19160 fi
19161done
3a922bb4 19162fi
247f5006
VZ
19163rm -f conftest.err conftest.$ac_ext
19164fi # $ac_x_includes = no
10f2d63a 19165
247f5006 19166if test "$ac_x_libraries" = no; then
21d1c967 19167 # Check for the libraries.
21d1c967
GD
19168 # See if we find them without any special options.
19169 # Don't add to $LIBS permanently.
247f5006
VZ
19170 ac_save_LIBS=$LIBS
19171 LIBS="-lXt $LIBS"
19172 cat >conftest.$ac_ext <<_ACEOF
19173#line $LINENO "configure"
3a922bb4 19174#include "confdefs.h"
247f5006
VZ
19175#include <X11/Intrinsic.h>
19176#ifdef F77_DUMMY_MAIN
19177# ifdef __cplusplus
19178 extern "C"
19179# endif
19180 int F77_DUMMY_MAIN() { return 1; }
19181#endif
19182int
19183main ()
19184{
19185XtMalloc (0)
19186 ;
19187 return 0;
19188}
19189_ACEOF
19190rm -f conftest.$ac_objext conftest$ac_exeext
19191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19192 (eval $ac_link) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try='test -s conftest$ac_exeext'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 LIBS=$ac_save_LIBS
21d1c967
GD
19203# We can link X programs with no special library path.
19204ac_x_libraries=
3a922bb4 19205else
247f5006
VZ
19206 echo "$as_me: failed program was:" >&5
19207cat conftest.$ac_ext >&5
19208LIBS=$ac_save_LIBS
19209for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 19210do
247f5006 19211 # Don't even attempt the hair of trying to link an X program!
21d1c967 19212 for ac_extension in a so sl; do
247f5006 19213 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
19214 ac_x_libraries=$ac_dir
19215 break 2
19216 fi
19217 done
19218done
3a922bb4 19219fi
247f5006
VZ
19220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19221fi # $ac_x_libraries = no
90dd450c 19222
247f5006 19223if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
19224 # Didn't find X anywhere. Cache the known absence of X.
19225 ac_cv_have_x="have_x=no"
19226else
19227 # Record where we found X for the cache.
19228 ac_cv_have_x="have_x=yes \
19229 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 19230fi
21d1c967 19231fi
247f5006 19232
21d1c967
GD
19233 fi
19234 eval "$ac_cv_have_x"
19235fi # $with_x != no
90dd450c 19236
21d1c967 19237if test "$have_x" != yes; then
247f5006
VZ
19238 echo "$as_me:$LINENO: result: $have_x" >&5
19239echo "${ECHO_T}$have_x" >&6
21d1c967
GD
19240 no_x=yes
19241else
19242 # If each of the values was on the command line, it overrides each guess.
19243 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19244 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19245 # Update the cache value to reflect the command line values.
19246 ac_cv_have_x="have_x=yes \
19247 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
247f5006
VZ
19248 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19249echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 19250fi
90dd450c 19251
21d1c967 19252if test "$no_x" = yes; then
90dd450c 19253 # Not all programs may use this symbol, but it does not hurt to define it.
247f5006
VZ
19254
19255cat >>confdefs.h <<\_ACEOF
90dd450c 19256#define X_DISPLAY_MISSING 1
247f5006 19257_ACEOF
90dd450c
VZ
19258
19259 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19260else
19261 if test -n "$x_includes"; then
19262 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 19263 fi
3a922bb4 19264
90dd450c
VZ
19265 # It would also be nice to do this for all -L options, not just this one.
19266 if test -n "$x_libraries"; then
19267 X_LIBS="$X_LIBS -L$x_libraries"
19268 # For Solaris; some versions of Sun CC require a space after -R and
19269 # others require no space. Words are not sufficient . . . .
247f5006 19270 case `(uname -sr) 2>/dev/null` in
90dd450c 19271 "SunOS 5"*)
247f5006
VZ
19272 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19273echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19274 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19275 cat >conftest.$ac_ext <<_ACEOF
19276#line $LINENO "configure"
90dd450c
VZ
19277#include "confdefs.h"
19278
247f5006
VZ
19279#ifdef F77_DUMMY_MAIN
19280# ifdef __cplusplus
19281 extern "C"
19282# endif
19283 int F77_DUMMY_MAIN() { return 1; }
19284#endif
19285int
19286main ()
19287{
90dd450c 19288
247f5006
VZ
19289 ;
19290 return 0;
19291}
19292_ACEOF
19293rm -f conftest.$ac_objext conftest$ac_exeext
19294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295 (eval $ac_link) 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
19299 { ac_try='test -s conftest$ac_exeext'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
90dd450c 19305 ac_R_nospace=yes
3a922bb4 19306else
247f5006
VZ
19307 echo "$as_me: failed program was:" >&5
19308cat conftest.$ac_ext >&5
19309ac_R_nospace=no
3a922bb4 19310fi
247f5006 19311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 19312 if test $ac_R_nospace = yes; then
247f5006
VZ
19313 echo "$as_me:$LINENO: result: no" >&5
19314echo "${ECHO_T}no" >&6
90dd450c
VZ
19315 X_LIBS="$X_LIBS -R$x_libraries"
19316 else
19317 LIBS="$ac_xsave_LIBS -R $x_libraries"
247f5006
VZ
19318 cat >conftest.$ac_ext <<_ACEOF
19319#line $LINENO "configure"
90dd450c 19320#include "confdefs.h"
3a922bb4 19321
247f5006
VZ
19322#ifdef F77_DUMMY_MAIN
19323# ifdef __cplusplus
19324 extern "C"
19325# endif
19326 int F77_DUMMY_MAIN() { return 1; }
19327#endif
19328int
19329main ()
19330{
6f754473 19331
247f5006
VZ
19332 ;
19333 return 0;
19334}
19335_ACEOF
19336rm -f conftest.$ac_objext conftest$ac_exeext
19337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19338 (eval $ac_link) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); } &&
19342 { ac_try='test -s conftest$ac_exeext'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
90dd450c
VZ
19348 ac_R_space=yes
19349else
247f5006
VZ
19350 echo "$as_me: failed program was:" >&5
19351cat conftest.$ac_ext >&5
19352ac_R_space=no
90dd450c 19353fi
247f5006 19354rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 19355 if test $ac_R_space = yes; then
247f5006
VZ
19356 echo "$as_me:$LINENO: result: yes" >&5
19357echo "${ECHO_T}yes" >&6
90dd450c
VZ
19358 X_LIBS="$X_LIBS -R $x_libraries"
19359 else
247f5006
VZ
19360 echo "$as_me:$LINENO: result: neither works" >&5
19361echo "${ECHO_T}neither works" >&6
90dd450c
VZ
19362 fi
19363 fi
247f5006 19364 LIBS=$ac_xsave_LIBS
90dd450c
VZ
19365 esac
19366 fi
19367
19368 # Check for system-dependent libraries X programs must link with.
19369 # Do this before checking for the system-independent R6 libraries
19370 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 19371
90dd450c
VZ
19372 if test "$ISC" = yes; then
19373 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19374 else
247f5006
VZ
19375 # Martyn Johnson says this is needed for Ultrix, if the X
19376 # libraries were built with DECnet support. And Karl Berry says
90dd450c 19377 # the Alpha needs dnet_stub (dnet does not exist).
247f5006
VZ
19378 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19379 cat >conftest.$ac_ext <<_ACEOF
19380#line $LINENO "configure"
5c6fa7d2 19381#include "confdefs.h"
247f5006 19382
5c6fa7d2 19383/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
19384#ifdef __cplusplus
19385extern "C"
19386#endif
5c6fa7d2 19387/* We use char because int might match the return type of a gcc2
247f5006
VZ
19388 builtin and then its argument prototype would still apply. */
19389char XOpenDisplay ();
19390#ifdef F77_DUMMY_MAIN
19391# ifdef __cplusplus
19392 extern "C"
19393# endif
19394 int F77_DUMMY_MAIN() { return 1; }
19395#endif
19396int
19397main ()
19398{
19399XOpenDisplay ();
19400 ;
19401 return 0;
19402}
19403_ACEOF
19404rm -f conftest.$ac_objext conftest$ac_exeext
19405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19406 (eval $ac_link) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
19410 { ac_try='test -s conftest$ac_exeext'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 :
8284b0c5 19417else
247f5006
VZ
19418 echo "$as_me: failed program was:" >&5
19419cat conftest.$ac_ext >&5
19420echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19421echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19422if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 ac_check_lib_save_LIBS=$LIBS
19426LIBS="-ldnet $LIBS"
19427cat >conftest.$ac_ext <<_ACEOF
19428#line $LINENO "configure"
19429#include "confdefs.h"
8284b0c5 19430
247f5006
VZ
19431/* Override any gcc2 internal prototype to avoid an error. */
19432#ifdef __cplusplus
19433extern "C"
19434#endif
19435/* We use char because int might match the return type of a gcc2
19436 builtin and then its argument prototype would still apply. */
19437char dnet_ntoa ();
19438#ifdef F77_DUMMY_MAIN
19439# ifdef __cplusplus
19440 extern "C"
19441# endif
19442 int F77_DUMMY_MAIN() { return 1; }
19443#endif
19444int
19445main ()
19446{
19447dnet_ntoa ();
19448 ;
19449 return 0;
19450}
19451_ACEOF
19452rm -f conftest.$ac_objext conftest$ac_exeext
19453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454 (eval $ac_link) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -s conftest$ac_exeext'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_lib_dnet_dnet_ntoa=yes
19465else
19466 echo "$as_me: failed program was:" >&5
19467cat conftest.$ac_ext >&5
19468ac_cv_lib_dnet_dnet_ntoa=no
19469fi
19470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19471LIBS=$ac_check_lib_save_LIBS
19472fi
19473echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19474echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19475if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 19476 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
19477fi
19478
90dd450c 19479 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
247f5006
VZ
19480 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19481echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19482if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 19484else
247f5006 19485 ac_check_lib_save_LIBS=$LIBS
90dd450c 19486LIBS="-ldnet_stub $LIBS"
247f5006
VZ
19487cat >conftest.$ac_ext <<_ACEOF
19488#line $LINENO "configure"
90dd450c 19489#include "confdefs.h"
247f5006 19490
90dd450c 19491/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
19492#ifdef __cplusplus
19493extern "C"
19494#endif
90dd450c 19495/* We use char because int might match the return type of a gcc2
247f5006
VZ
19496 builtin and then its argument prototype would still apply. */
19497char dnet_ntoa ();
19498#ifdef F77_DUMMY_MAIN
19499# ifdef __cplusplus
19500 extern "C"
19501# endif
19502 int F77_DUMMY_MAIN() { return 1; }
19503#endif
19504int
19505main ()
19506{
19507dnet_ntoa ();
19508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext conftest$ac_exeext
19513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514 (eval $ac_link) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -s conftest$ac_exeext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19525else
19526 echo "$as_me: failed program was:" >&5
19527cat conftest.$ac_ext >&5
19528ac_cv_lib_dnet_stub_dnet_ntoa=no
19529fi
19530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19531LIBS=$ac_check_lib_save_LIBS
19532fi
19533echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19534echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19535if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 19536 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
19537fi
19538
90dd450c 19539 fi
247f5006
VZ
19540fi
19541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19542 LIBS="$ac_xsave_LIBS"
978f1259 19543
90dd450c
VZ
19544 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19545 # to get the SysV transport functions.
247f5006 19546 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
19547 # needs -lnsl.
19548 # The nsl library prevents programs from opening the X display
247f5006
VZ
19549 # on Irix 5.2, according to T.E. Dickey.
19550 # The functions gethostbyname, getservbyname, and inet_addr are
19551 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19552 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19553echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19554if test "${ac_cv_func_gethostbyname+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557 cat >conftest.$ac_ext <<_ACEOF
19558#line $LINENO "configure"
90dd450c
VZ
19559#include "confdefs.h"
19560/* System header to define __stub macros and hopefully few prototypes,
247f5006 19561 which can conflict with char gethostbyname (); below. */
90dd450c
VZ
19562#include <assert.h>
19563/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
19564#ifdef __cplusplus
19565extern "C"
19566#endif
90dd450c 19567/* We use char because int might match the return type of a gcc2
247f5006
VZ
19568 builtin and then its argument prototype would still apply. */
19569char gethostbyname ();
19570char (*f) ();
19571
19572#ifdef F77_DUMMY_MAIN
19573# ifdef __cplusplus
19574 extern "C"
19575# endif
19576 int F77_DUMMY_MAIN() { return 1; }
19577#endif
19578int
19579main ()
19580{
90dd450c
VZ
19581/* The GNU C library defines this for functions which it implements
19582 to always fail with ENOSYS. Some functions are actually named
19583 something starting with __ and the normal name is an alias. */
19584#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19585choke me
19586#else
247f5006 19587f = gethostbyname;
90dd450c 19588#endif
978f1259 19589
247f5006
VZ
19590 ;
19591 return 0;
19592}
19593_ACEOF
19594rm -f conftest.$ac_objext conftest$ac_exeext
19595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19596 (eval $ac_link) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
19600 { ac_try='test -s conftest$ac_exeext'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 ac_cv_func_gethostbyname=yes
19607else
19608 echo "$as_me: failed program was:" >&5
19609cat conftest.$ac_ext >&5
19610ac_cv_func_gethostbyname=no
19611fi
19612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19613fi
19614echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19615echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 19616
90dd450c 19617 if test $ac_cv_func_gethostbyname = no; then
247f5006
VZ
19618 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19619echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19620if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 19622else
247f5006 19623 ac_check_lib_save_LIBS=$LIBS
90dd450c 19624LIBS="-lnsl $LIBS"
247f5006
VZ
19625cat >conftest.$ac_ext <<_ACEOF
19626#line $LINENO "configure"
90dd450c 19627#include "confdefs.h"
247f5006 19628
90dd450c 19629/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
19630#ifdef __cplusplus
19631extern "C"
19632#endif
90dd450c 19633/* We use char because int might match the return type of a gcc2
247f5006
VZ
19634 builtin and then its argument prototype would still apply. */
19635char gethostbyname ();
19636#ifdef F77_DUMMY_MAIN
19637# ifdef __cplusplus
19638 extern "C"
19639# endif
19640 int F77_DUMMY_MAIN() { return 1; }
19641#endif
19642int
19643main ()
19644{
19645gethostbyname ();
19646 ;
19647 return 0;
19648}
19649_ACEOF
19650rm -f conftest.$ac_objext conftest$ac_exeext
19651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19652 (eval $ac_link) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -s conftest$ac_exeext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_lib_nsl_gethostbyname=yes
19663else
19664 echo "$as_me: failed program was:" >&5
19665cat conftest.$ac_ext >&5
19666ac_cv_lib_nsl_gethostbyname=no
19667fi
19668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19669LIBS=$ac_check_lib_save_LIBS
19670fi
19671echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19672echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19673if test $ac_cv_lib_nsl_gethostbyname = yes; then
19674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8284b0c5 19675fi
5c6fa7d2 19676
247f5006
VZ
19677 if test $ac_cv_lib_nsl_gethostbyname = no; then
19678 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19679echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19680if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 19682else
247f5006
VZ
19683 ac_check_lib_save_LIBS=$LIBS
19684LIBS="-lbsd $LIBS"
19685cat >conftest.$ac_ext <<_ACEOF
19686#line $LINENO "configure"
19687#include "confdefs.h"
19688
19689/* Override any gcc2 internal prototype to avoid an error. */
19690#ifdef __cplusplus
19691extern "C"
19692#endif
19693/* We use char because int might match the return type of a gcc2
19694 builtin and then its argument prototype would still apply. */
19695char gethostbyname ();
19696#ifdef F77_DUMMY_MAIN
19697# ifdef __cplusplus
19698 extern "C"
19699# endif
19700 int F77_DUMMY_MAIN() { return 1; }
19701#endif
19702int
19703main ()
19704{
19705gethostbyname ();
19706 ;
19707 return 0;
19708}
19709_ACEOF
19710rm -f conftest.$ac_objext conftest$ac_exeext
19711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -s conftest$ac_exeext'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19722 ac_cv_lib_bsd_gethostbyname=yes
19723else
19724 echo "$as_me: failed program was:" >&5
19725cat conftest.$ac_ext >&5
19726ac_cv_lib_bsd_gethostbyname=no
19727fi
19728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19729LIBS=$ac_check_lib_save_LIBS
19730fi
19731echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19732echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19733if test $ac_cv_lib_bsd_gethostbyname = yes; then
19734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 19735fi
b12915c1 19736
247f5006 19737 fi
90dd450c
VZ
19738 fi
19739
19740 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19741 # socket/setsockopt and other routines are undefined under SCO ODT
19742 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
247f5006
VZ
19743 # on later versions), says Simon Leinen: it contains gethostby*
19744 # variants that don't use the nameserver (or something). -lsocket
19745 # must be given before -lnsl if both are needed. We assume that
19746 # if connect needs -lnsl, so does gethostbyname.
19747 echo "$as_me:$LINENO: checking for connect" >&5
19748echo $ECHO_N "checking for connect... $ECHO_C" >&6
19749if test "${ac_cv_func_connect+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751else
19752 cat >conftest.$ac_ext <<_ACEOF
19753#line $LINENO "configure"
55e80573 19754#include "confdefs.h"
90dd450c 19755/* System header to define __stub macros and hopefully few prototypes,
247f5006 19756 which can conflict with char connect (); below. */
90dd450c
VZ
19757#include <assert.h>
19758/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
19759#ifdef __cplusplus
19760extern "C"
19761#endif
90dd450c 19762/* We use char because int might match the return type of a gcc2
247f5006
VZ
19763 builtin and then its argument prototype would still apply. */
19764char connect ();
19765char (*f) ();
19766
19767#ifdef F77_DUMMY_MAIN
19768# ifdef __cplusplus
19769 extern "C"
19770# endif
19771 int F77_DUMMY_MAIN() { return 1; }
19772#endif
19773int
19774main ()
19775{
90dd450c
VZ
19776/* The GNU C library defines this for functions which it implements
19777 to always fail with ENOSYS. Some functions are actually named
19778 something starting with __ and the normal name is an alias. */
19779#if defined (__stub_connect) || defined (__stub___connect)
19780choke me
19781#else
247f5006 19782f = connect;
90dd450c
VZ
19783#endif
19784
247f5006
VZ
19785 ;
19786 return 0;
19787}
19788_ACEOF
19789rm -f conftest.$ac_objext conftest$ac_exeext
19790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19791 (eval $ac_link) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try='test -s conftest$ac_exeext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_func_connect=yes
19802else
19803 echo "$as_me: failed program was:" >&5
19804cat conftest.$ac_ext >&5
19805ac_cv_func_connect=no
19806fi
19807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19808fi
19809echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19810echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 19811
90dd450c 19812 if test $ac_cv_func_connect = no; then
247f5006
VZ
19813 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19814echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19815if test "${ac_cv_lib_socket_connect+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 19817else
247f5006 19818 ac_check_lib_save_LIBS=$LIBS
90dd450c 19819LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
247f5006
VZ
19820cat >conftest.$ac_ext <<_ACEOF
19821#line $LINENO "configure"
90dd450c 19822#include "confdefs.h"
247f5006 19823
90dd450c 19824/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
19825#ifdef __cplusplus
19826extern "C"
19827#endif
90dd450c 19828/* We use char because int might match the return type of a gcc2
247f5006
VZ
19829 builtin and then its argument prototype would still apply. */
19830char connect ();
19831#ifdef F77_DUMMY_MAIN
19832# ifdef __cplusplus
19833 extern "C"
19834# endif
19835 int F77_DUMMY_MAIN() { return 1; }
19836#endif
19837int
19838main ()
19839{
19840connect ();
19841 ;
19842 return 0;
19843}
19844_ACEOF
19845rm -f conftest.$ac_objext conftest$ac_exeext
19846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19847 (eval $ac_link) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } &&
19851 { ac_try='test -s conftest$ac_exeext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_cv_lib_socket_connect=yes
19858else
19859 echo "$as_me: failed program was:" >&5
19860cat conftest.$ac_ext >&5
19861ac_cv_lib_socket_connect=no
19862fi
19863rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19864LIBS=$ac_check_lib_save_LIBS
19865fi
19866echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19867echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19868if test $ac_cv_lib_socket_connect = yes; then
90dd450c 19869 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 19870fi
77e13408 19871
90dd450c 19872 fi
25d0687a 19873
247f5006
VZ
19874 # Guillermo Gomez says -lposix is necessary on A/UX.
19875 echo "$as_me:$LINENO: checking for remove" >&5
19876echo $ECHO_N "checking for remove... $ECHO_C" >&6
19877if test "${ac_cv_func_remove+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 19879else
247f5006
VZ
19880 cat >conftest.$ac_ext <<_ACEOF
19881#line $LINENO "configure"
90dd450c
VZ
19882#include "confdefs.h"
19883/* System header to define __stub macros and hopefully few prototypes,
247f5006 19884 which can conflict with char remove (); below. */
90dd450c
VZ
19885#include <assert.h>
19886/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
19887#ifdef __cplusplus
19888extern "C"
19889#endif
90dd450c 19890/* We use char because int might match the return type of a gcc2
247f5006
VZ
19891 builtin and then its argument prototype would still apply. */
19892char remove ();
19893char (*f) ();
19894
19895#ifdef F77_DUMMY_MAIN
19896# ifdef __cplusplus
19897 extern "C"
19898# endif
19899 int F77_DUMMY_MAIN() { return 1; }
19900#endif
19901int
19902main ()
19903{
90dd450c
VZ
19904/* The GNU C library defines this for functions which it implements
19905 to always fail with ENOSYS. Some functions are actually named
19906 something starting with __ and the normal name is an alias. */
19907#if defined (__stub_remove) || defined (__stub___remove)
19908choke me
19909#else
247f5006 19910f = remove;
90dd450c 19911#endif
55e80573 19912
247f5006
VZ
19913 ;
19914 return 0;
19915}
19916_ACEOF
19917rm -f conftest.$ac_objext conftest$ac_exeext
19918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19919 (eval $ac_link) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -s conftest$ac_exeext'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_cv_func_remove=yes
19930else
19931 echo "$as_me: failed program was:" >&5
19932cat conftest.$ac_ext >&5
19933ac_cv_func_remove=no
19934fi
19935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19936fi
19937echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19938echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 19939
90dd450c 19940 if test $ac_cv_func_remove = no; then
247f5006
VZ
19941 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19942echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19943if test "${ac_cv_lib_posix_remove+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 19945else
247f5006 19946 ac_check_lib_save_LIBS=$LIBS
90dd450c 19947LIBS="-lposix $LIBS"
247f5006
VZ
19948cat >conftest.$ac_ext <<_ACEOF
19949#line $LINENO "configure"
90dd450c 19950#include "confdefs.h"
247f5006 19951
90dd450c 19952/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
19953#ifdef __cplusplus
19954extern "C"
19955#endif
90dd450c 19956/* We use char because int might match the return type of a gcc2
247f5006
VZ
19957 builtin and then its argument prototype would still apply. */
19958char remove ();
19959#ifdef F77_DUMMY_MAIN
19960# ifdef __cplusplus
19961 extern "C"
19962# endif
19963 int F77_DUMMY_MAIN() { return 1; }
19964#endif
19965int
19966main ()
19967{
19968remove ();
19969 ;
19970 return 0;
19971}
19972_ACEOF
19973rm -f conftest.$ac_objext conftest$ac_exeext
19974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19975 (eval $ac_link) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -s conftest$ac_exeext'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; }; then
19985 ac_cv_lib_posix_remove=yes
19986else
19987 echo "$as_me: failed program was:" >&5
19988cat conftest.$ac_ext >&5
19989ac_cv_lib_posix_remove=no
19990fi
19991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19992LIBS=$ac_check_lib_save_LIBS
19993fi
19994echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19995echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
19996if test $ac_cv_lib_posix_remove = yes; then
90dd450c 19997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 19998fi
f6bcfd97 19999
6fa882bd
RR
20000 fi
20001
90dd450c 20002 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
247f5006
VZ
20003 echo "$as_me:$LINENO: checking for shmat" >&5
20004echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20005if test "${ac_cv_func_shmat+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20007else
247f5006
VZ
20008 cat >conftest.$ac_ext <<_ACEOF
20009#line $LINENO "configure"
90dd450c
VZ
20010#include "confdefs.h"
20011/* System header to define __stub macros and hopefully few prototypes,
247f5006 20012 which can conflict with char shmat (); below. */
90dd450c
VZ
20013#include <assert.h>
20014/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
20015#ifdef __cplusplus
20016extern "C"
20017#endif
90dd450c 20018/* We use char because int might match the return type of a gcc2
247f5006
VZ
20019 builtin and then its argument prototype would still apply. */
20020char shmat ();
20021char (*f) ();
20022
20023#ifdef F77_DUMMY_MAIN
20024# ifdef __cplusplus
20025 extern "C"
20026# endif
20027 int F77_DUMMY_MAIN() { return 1; }
20028#endif
20029int
20030main ()
20031{
90dd450c
VZ
20032/* The GNU C library defines this for functions which it implements
20033 to always fail with ENOSYS. Some functions are actually named
20034 something starting with __ and the normal name is an alias. */
20035#if defined (__stub_shmat) || defined (__stub___shmat)
20036choke me
20037#else
247f5006 20038f = shmat;
90dd450c 20039#endif
10f2d63a 20040
247f5006
VZ
20041 ;
20042 return 0;
20043}
20044_ACEOF
20045rm -f conftest.$ac_objext conftest$ac_exeext
20046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20047 (eval $ac_link) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
20051 { ac_try='test -s conftest$ac_exeext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_cv_func_shmat=yes
20058else
20059 echo "$as_me: failed program was:" >&5
20060cat conftest.$ac_ext >&5
20061ac_cv_func_shmat=no
20062fi
20063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20064fi
20065echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20066echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 20067
90dd450c 20068 if test $ac_cv_func_shmat = no; then
247f5006
VZ
20069 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20070echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20071if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 20073else
247f5006 20074 ac_check_lib_save_LIBS=$LIBS
90dd450c 20075LIBS="-lipc $LIBS"
247f5006
VZ
20076cat >conftest.$ac_ext <<_ACEOF
20077#line $LINENO "configure"
90dd450c 20078#include "confdefs.h"
247f5006 20079
8284b0c5 20080/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
20081#ifdef __cplusplus
20082extern "C"
20083#endif
90dd450c 20084/* We use char because int might match the return type of a gcc2
247f5006
VZ
20085 builtin and then its argument prototype would still apply. */
20086char shmat ();
20087#ifdef F77_DUMMY_MAIN
20088# ifdef __cplusplus
20089 extern "C"
20090# endif
20091 int F77_DUMMY_MAIN() { return 1; }
20092#endif
20093int
20094main ()
20095{
20096shmat ();
20097 ;
20098 return 0;
20099}
20100_ACEOF
20101rm -f conftest.$ac_objext conftest$ac_exeext
20102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20103 (eval $ac_link) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -s conftest$ac_exeext'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_cv_lib_ipc_shmat=yes
20114else
20115 echo "$as_me: failed program was:" >&5
20116cat conftest.$ac_ext >&5
20117ac_cv_lib_ipc_shmat=no
20118fi
20119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20120LIBS=$ac_check_lib_save_LIBS
20121fi
20122echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20123echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20124if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 20125 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
20126fi
20127
d558c907 20128 fi
90dd450c 20129 fi
3a922bb4 20130
90dd450c 20131 # Check for libraries that X11R6 Xt/Xaw programs need.
247f5006 20132 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
20133 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20134 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20135 # check for ICE first), but we must link in the order -lSM -lICE or
20136 # we get undefined symbols. So assume we have SM if we have ICE.
20137 # These have to be linked with before -lX11, unlike the other
20138 # libraries we check for below, so use a different variable.
247f5006
VZ
20139 # John Interrante, Karl Berry
20140 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20141echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20142if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144else
20145 ac_check_lib_save_LIBS=$LIBS
f09359cf 20146LIBS="-lICE $X_EXTRA_LIBS $LIBS"
247f5006
VZ
20147cat >conftest.$ac_ext <<_ACEOF
20148#line $LINENO "configure"
9cfadba2 20149#include "confdefs.h"
247f5006 20150
90dd450c 20151/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
20152#ifdef __cplusplus
20153extern "C"
20154#endif
90dd450c 20155/* We use char because int might match the return type of a gcc2
247f5006
VZ
20156 builtin and then its argument prototype would still apply. */
20157char IceConnectionNumber ();
20158#ifdef F77_DUMMY_MAIN
20159# ifdef __cplusplus
20160 extern "C"
20161# endif
20162 int F77_DUMMY_MAIN() { return 1; }
20163#endif
20164int
20165main ()
20166{
20167IceConnectionNumber ();
20168 ;
20169 return 0;
20170}
20171_ACEOF
20172rm -f conftest.$ac_objext conftest$ac_exeext
20173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20174 (eval $ac_link) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
20178 { ac_try='test -s conftest$ac_exeext'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20184 ac_cv_lib_ICE_IceConnectionNumber=yes
20185else
20186 echo "$as_me: failed program was:" >&5
20187cat conftest.$ac_ext >&5
20188ac_cv_lib_ICE_IceConnectionNumber=no
20189fi
20190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20191LIBS=$ac_check_lib_save_LIBS
20192fi
20193echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20194echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20195if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 20196 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 20197fi
10f2d63a 20198
247f5006 20199 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
20200
20201fi
20202
8284b0c5 20203
90dd450c 20204 if test "$no_x" = "yes"; then
247f5006
VZ
20205 { { echo "$as_me:$LINENO: error: X11 not found" >&5
20206echo "$as_me: error: X11 not found" >&2;}
20207 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
20208 fi
20209
20210 GUI_TK_LIBRARY="$X_LIBS"
20211 TOOLKIT_INCLUDE="$X_CFLAGS"
20212 AFMINSTALL=afminstall
20213 COMPILED_X_PROGRAM=0
20214
21d1c967 20215 if test "$wxUSE_NANOX" = "yes"; then
247f5006
VZ
20216 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
20217echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 20218 if test "x$MICROWIN" = x ; then
247f5006
VZ
20219 echo "$as_me:$LINENO: result: not found" >&5
20220echo "${ECHO_T}not found" >&6
20221 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
20222echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
20223 { (exit 1); exit 1; }; }
90dd450c 20224 else
247f5006
VZ
20225 echo "$as_me:$LINENO: result: $MICROWIN" >&5
20226echo "${ECHO_T}$MICROWIN" >&6
20227 cat >>confdefs.h <<\_ACEOF
21d1c967 20228#define wxUSE_NANOX 1
247f5006 20229_ACEOF
21d1c967 20230
90dd450c
VZ
20231 fi
20232 fi
20233
20234 xpm_link=
247f5006
VZ
20235 echo "$as_me:$LINENO: checking for Xpm library" >&5
20236echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
20237
90dd450c
VZ
20238ac_find_libraries=
20239for ac_dir in $SEARCH_LIB;
20240 do
20241 for ac_extension in a so sl dylib; do
20242 if test -f "$ac_dir/libXpm.$ac_extension"; then
20243 ac_find_libraries=$ac_dir
20244 break 2
20245 fi
20246 done
20247 done
20248
20249 if test "$ac_find_libraries" != "" ; then
247f5006 20250
90dd450c
VZ
20251 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
20252 result=$?
20253 if test $result = 0; then
20254 ac_path_to_link=""
20255 else
20256 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 20257 fi
90dd450c 20258
21d1c967
GD
20259 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
20260 xpm_link=" -lXpm"
247f5006 20261 cat >>confdefs.h <<\_ACEOF
21d1c967 20262#define wxHAVE_LIB_XPM 1
247f5006 20263_ACEOF
90dd450c 20264
247f5006
VZ
20265 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
20266echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 20267 else
247f5006
VZ
20268 cat >conftest.$ac_ext <<_ACEOF
20269#line $LINENO "configure"
21d1c967 20270#include "confdefs.h"
90dd450c 20271
21d1c967 20272 #include <X11/xpm.h>
247f5006
VZ
20273
20274#ifdef F77_DUMMY_MAIN
20275# ifdef __cplusplus
20276 extern "C"
20277# endif
20278 int F77_DUMMY_MAIN() { return 1; }
20279#endif
20280int
20281main ()
20282{
6f72b082 20283
21d1c967
GD
20284 int version;
20285 version = XpmLibraryVersion();
247f5006
VZ
20286
20287 ;
20288 return 0;
20289}
20290_ACEOF
20291rm -f conftest.$ac_objext
20292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293 (eval $ac_compile) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } &&
20297 { ac_try='test -s conftest.$ac_objext'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; }; then
20303
21d1c967 20304 xpm_link=" -lXpm"
247f5006 20305 cat >>confdefs.h <<\_ACEOF
21d1c967 20306#define wxHAVE_LIB_XPM 1
247f5006 20307_ACEOF
90dd450c 20308
247f5006
VZ
20309 echo "$as_me:$LINENO: result: found in default search path" >&5
20310echo "${ECHO_T}found in default search path" >&6
21d1c967 20311 COMPILED_X_PROGRAM=0
247f5006 20312
21d1c967 20313else
247f5006
VZ
20314 echo "$as_me: failed program was:" >&5
20315cat conftest.$ac_ext >&5
20316
20317 echo "$as_me:$LINENO: result: no" >&5
20318echo "${ECHO_T}no" >&6
20319 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
20320echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
20321
20322
6f72b082 20323fi
247f5006 20324rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 20325 fi
90dd450c 20326
1d1b75ac
VZ
20327 wxUSE_UNIVERSAL="yes"
20328
21d1c967
GD
20329 if test "$wxUSE_NANOX" = "yes"; then
20330 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
20331 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
20332 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
20333 else
20334 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
20335 fi
6f72b082 20336
21d1c967
GD
20337 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
20338 TOOLKIT=X11
20339 GUIDIST=X11_DIST
20340 fi
90dd450c 20341
21d1c967 20342 if test "$wxUSE_WINE" = 1; then
247f5006
VZ
20343 if test "${ac_cv_header_windows_h+set}" = set; then
20344 echo "$as_me:$LINENO: checking for windows.h" >&5
20345echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20346if test "${ac_cv_header_windows_h+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348fi
20349echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20350echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20351else
20352 # Is the header compilable?
20353echo "$as_me:$LINENO: checking windows.h usability" >&5
20354echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20355cat >conftest.$ac_ext <<_ACEOF
20356#line $LINENO "configure"
6f72b082 20357#include "confdefs.h"
247f5006 20358$ac_includes_default
21d1c967 20359#include <windows.h>
247f5006
VZ
20360_ACEOF
20361rm -f conftest.$ac_objext
20362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); } &&
20367 { ac_try='test -s conftest.$ac_objext'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_header_compiler=yes
20374else
20375 echo "$as_me: failed program was:" >&5
20376cat conftest.$ac_ext >&5
20377ac_header_compiler=no
20378fi
20379rm -f conftest.$ac_objext conftest.$ac_ext
20380echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20381echo "${ECHO_T}$ac_header_compiler" >&6
20382
20383# Is the header present?
20384echo "$as_me:$LINENO: checking windows.h presence" >&5
20385echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20386cat >conftest.$ac_ext <<_ACEOF
20387#line $LINENO "configure"
20388#include "confdefs.h"
20389#include <windows.h>
20390_ACEOF
20391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20393 ac_status=$?
20394 egrep -v '^ *\+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } >/dev/null; then
20399 if test -s conftest.err; then
20400 ac_cpp_err=$ac_c_preproc_warn_flag
20401 else
20402 ac_cpp_err=
20403 fi
20404else
20405 ac_cpp_err=yes
20406fi
20407if test -z "$ac_cpp_err"; then
20408 ac_header_preproc=yes
20409else
20410 echo "$as_me: failed program was:" >&5
10f2d63a 20411 cat conftest.$ac_ext >&5
247f5006
VZ
20412 ac_header_preproc=no
20413fi
20414rm -f conftest.err conftest.$ac_ext
20415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20416echo "${ECHO_T}$ac_header_preproc" >&6
20417
20418# So? What about this header?
20419case $ac_header_compiler:$ac_header_preproc in
20420 yes:no )
20421 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20422echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20424echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;};;
20425 no:yes )
20426 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20427echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
20428 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20429echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20431echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;};;
20432esac
20433echo "$as_me:$LINENO: checking for windows.h" >&5
20434echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20435if test "${ac_cv_header_windows_h+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437else
20438 ac_cv_header_windows_h=$ac_header_preproc
10f2d63a 20439fi
247f5006
VZ
20440echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20441echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20442
10f2d63a 20443fi
247f5006 20444if test $ac_cv_header_windows_h = yes; then
21d1c967
GD
20445 :
20446else
21d1c967 20447
247f5006
VZ
20448 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20449echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20450 { (exit 1); exit 1; }; }
20451
5c6fa7d2 20452fi
7b4a847f 20453
5c6fa7d2 20454
247f5006 20455
8284b0c5 20456 xpm_link=
247f5006
VZ
20457 echo "$as_me:$LINENO: checking for Xpm library" >&5
20458echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
20459
90dd450c
VZ
20460ac_find_libraries=
20461for ac_dir in $SEARCH_LIB;
20462 do
20463 for ac_extension in a so sl dylib; do
21d1c967 20464 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
20465 ac_find_libraries=$ac_dir
20466 break 2
20467 fi
20468 done
20469 done
20470
21d1c967
GD
20471 if test "$ac_find_libraries" != "" ; then
20472 GUI_TK_LIBRARY="-L$ac_find_libraries"
20473 xpm_link=" -lXpm"
247f5006 20474 cat >>confdefs.h <<\_ACEOF
21d1c967 20475#define wxHAVE_LIB_XPM 1
247f5006 20476_ACEOF
90dd450c 20477
247f5006
VZ
20478 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
20479echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 20480 else
247f5006
VZ
20481 echo "$as_me:$LINENO: result: no" >&5
20482echo "${ECHO_T}no" >&6
20483 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
20484echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
21d1c967
GD
20485 fi
20486
20487 mesa_link=
247f5006
VZ
20488 echo "$as_me:$LINENO: checking for Mesa library" >&5
20489echo $ECHO_N "checking for Mesa library... $ECHO_C" >&6
20490
90dd450c
VZ
20491ac_find_libraries=
20492for ac_dir in $SEARCH_LIB;
20493 do
20494 for ac_extension in a so sl dylib; do
20495 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
20496 ac_find_libraries=$ac_dir
20497 break 2
20498 fi
20499 done
20500 done
20501
21d1c967
GD
20502 if test "$ac_find_libraries" != "" ; then
20503 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
20504 mesa_link=" -lMesaGL"
247f5006
VZ
20505 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
20506echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 20507 else
247f5006
VZ
20508 { { echo "$as_me:$LINENO: error: no" >&5
20509echo "$as_me: error: no" >&2;}
20510 { (exit 1); exit 1; }; }
21d1c967
GD
20511 fi
20512
20513 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
20514 TOOLKIT=MSW
20515 GUIDIST=MSW_DIST
20516 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
20517 fi
20518
20519 if test "$wxUSE_MOTIF" = 1; then
20520 if test "$no_x" = yes; then
20521 # Not all programs may use this symbol, but it does not hurt to define it.
247f5006
VZ
20522
20523cat >>confdefs.h <<\_ACEOF
21d1c967 20524#define X_DISPLAY_MISSING 1
247f5006 20525_ACEOF
21d1c967
GD
20526
20527 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20528else
20529 if test -n "$x_includes"; then
20530 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
20531 fi
20532
21d1c967
GD
20533 # It would also be nice to do this for all -L options, not just this one.
20534 if test -n "$x_libraries"; then
20535 X_LIBS="$X_LIBS -L$x_libraries"
20536 # For Solaris; some versions of Sun CC require a space after -R and
20537 # others require no space. Words are not sufficient . . . .
247f5006 20538 case `(uname -sr) 2>/dev/null` in
21d1c967 20539 "SunOS 5"*)
247f5006
VZ
20540 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20541echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20542 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20543 cat >conftest.$ac_ext <<_ACEOF
20544#line $LINENO "configure"
21d1c967
GD
20545#include "confdefs.h"
20546
247f5006
VZ
20547#ifdef F77_DUMMY_MAIN
20548# ifdef __cplusplus
20549 extern "C"
20550# endif
20551 int F77_DUMMY_MAIN() { return 1; }
20552#endif
20553int
20554main ()
20555{
21d1c967 20556
247f5006
VZ
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561rm -f conftest.$ac_objext conftest$ac_exeext
20562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563 (eval $ac_link) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } &&
20567 { ac_try='test -s conftest$ac_exeext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
21d1c967 20573 ac_R_nospace=yes
698dcdb6 20574else
247f5006
VZ
20575 echo "$as_me: failed program was:" >&5
20576cat conftest.$ac_ext >&5
20577ac_R_nospace=no
10f2d63a 20578fi
247f5006 20579rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 20580 if test $ac_R_nospace = yes; then
247f5006
VZ
20581 echo "$as_me:$LINENO: result: no" >&5
20582echo "${ECHO_T}no" >&6
21d1c967
GD
20583 X_LIBS="$X_LIBS -R$x_libraries"
20584 else
20585 LIBS="$ac_xsave_LIBS -R $x_libraries"
247f5006
VZ
20586 cat >conftest.$ac_ext <<_ACEOF
20587#line $LINENO "configure"
21d1c967 20588#include "confdefs.h"
10f2d63a 20589
247f5006
VZ
20590#ifdef F77_DUMMY_MAIN
20591# ifdef __cplusplus
20592 extern "C"
20593# endif
20594 int F77_DUMMY_MAIN() { return 1; }
20595#endif
20596int
20597main ()
20598{
f0c87536 20599
247f5006
VZ
20600 ;
20601 return 0;
20602}
20603_ACEOF
20604rm -f conftest.$ac_objext conftest$ac_exeext
20605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20606 (eval $ac_link) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } &&
20610 { ac_try='test -s conftest$ac_exeext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
21d1c967
GD
20616 ac_R_space=yes
20617else
247f5006
VZ
20618 echo "$as_me: failed program was:" >&5
20619cat conftest.$ac_ext >&5
20620ac_R_space=no
21d1c967 20621fi
247f5006 20622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 20623 if test $ac_R_space = yes; then
247f5006
VZ
20624 echo "$as_me:$LINENO: result: yes" >&5
20625echo "${ECHO_T}yes" >&6
21d1c967
GD
20626 X_LIBS="$X_LIBS -R $x_libraries"
20627 else
247f5006
VZ
20628 echo "$as_me:$LINENO: result: neither works" >&5
20629echo "${ECHO_T}neither works" >&6
21d1c967
GD
20630 fi
20631 fi
247f5006 20632 LIBS=$ac_xsave_LIBS
21d1c967
GD
20633 esac
20634 fi
90dd450c 20635
21d1c967
GD
20636 # Check for system-dependent libraries X programs must link with.
20637 # Do this before checking for the system-independent R6 libraries
20638 # (-lICE), since we may need -lsocket or whatever for X linking.
20639
20640 if test "$ISC" = yes; then
20641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20642 else
247f5006
VZ
20643 # Martyn Johnson says this is needed for Ultrix, if the X
20644 # libraries were built with DECnet support. And Karl Berry says
21d1c967 20645 # the Alpha needs dnet_stub (dnet does not exist).
247f5006
VZ
20646 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20647 cat >conftest.$ac_ext <<_ACEOF
20648#line $LINENO "configure"
5c6fa7d2 20649#include "confdefs.h"
247f5006 20650
5c6fa7d2 20651/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
20652#ifdef __cplusplus
20653extern "C"
20654#endif
5c6fa7d2 20655/* We use char because int might match the return type of a gcc2
247f5006
VZ
20656 builtin and then its argument prototype would still apply. */
20657char XOpenDisplay ();
20658#ifdef F77_DUMMY_MAIN
20659# ifdef __cplusplus
20660 extern "C"
20661# endif
20662 int F77_DUMMY_MAIN() { return 1; }
20663#endif
20664int
20665main ()
20666{
20667XOpenDisplay ();
20668 ;
20669 return 0;
20670}
20671_ACEOF
20672rm -f conftest.$ac_objext conftest$ac_exeext
20673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674 (eval $ac_link) 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } &&
20678 { ac_try='test -s conftest$ac_exeext'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 :
8284b0c5 20685else
247f5006
VZ
20686 echo "$as_me: failed program was:" >&5
20687cat conftest.$ac_ext >&5
20688echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20689echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
20690if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20692else
20693 ac_check_lib_save_LIBS=$LIBS
20694LIBS="-ldnet $LIBS"
20695cat >conftest.$ac_ext <<_ACEOF
20696#line $LINENO "configure"
20697#include "confdefs.h"
8284b0c5 20698
247f5006
VZ
20699/* Override any gcc2 internal prototype to avoid an error. */
20700#ifdef __cplusplus
20701extern "C"
20702#endif
20703/* We use char because int might match the return type of a gcc2
20704 builtin and then its argument prototype would still apply. */
20705char dnet_ntoa ();
20706#ifdef F77_DUMMY_MAIN
20707# ifdef __cplusplus
20708 extern "C"
20709# endif
20710 int F77_DUMMY_MAIN() { return 1; }
20711#endif
20712int
20713main ()
20714{
20715dnet_ntoa ();
20716 ;
20717 return 0;
20718}
20719_ACEOF
20720rm -f conftest.$ac_objext conftest$ac_exeext
20721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722 (eval $ac_link) 2>&5
20723 ac_status=$?
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } &&
20726 { ac_try='test -s conftest$ac_exeext'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
20732 ac_cv_lib_dnet_dnet_ntoa=yes
20733else
20734 echo "$as_me: failed program was:" >&5
20735cat conftest.$ac_ext >&5
20736ac_cv_lib_dnet_dnet_ntoa=no
20737fi
20738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20739LIBS=$ac_check_lib_save_LIBS
20740fi
20741echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20742echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
20743if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 20744 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 20745fi
0fb0dd83 20746
21d1c967 20747 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
247f5006
VZ
20748 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20749echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
20750if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20752else
247f5006 20753 ac_check_lib_save_LIBS=$LIBS
21d1c967 20754LIBS="-ldnet_stub $LIBS"
247f5006
VZ
20755cat >conftest.$ac_ext <<_ACEOF
20756#line $LINENO "configure"
21d1c967 20757#include "confdefs.h"
247f5006 20758
21d1c967 20759/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
20760#ifdef __cplusplus
20761extern "C"
20762#endif
21d1c967 20763/* We use char because int might match the return type of a gcc2
247f5006
VZ
20764 builtin and then its argument prototype would still apply. */
20765char dnet_ntoa ();
20766#ifdef F77_DUMMY_MAIN
20767# ifdef __cplusplus
20768 extern "C"
20769# endif
20770 int F77_DUMMY_MAIN() { return 1; }
20771#endif
20772int
20773main ()
20774{
20775dnet_ntoa ();
20776 ;
20777 return 0;
20778}
20779_ACEOF
20780rm -f conftest.$ac_objext conftest$ac_exeext
20781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20782 (eval $ac_link) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } &&
20786 { ac_try='test -s conftest$ac_exeext'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20793else
20794 echo "$as_me: failed program was:" >&5
20795cat conftest.$ac_ext >&5
20796ac_cv_lib_dnet_stub_dnet_ntoa=no
20797fi
20798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20799LIBS=$ac_check_lib_save_LIBS
20800fi
20801echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20802echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
20803if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 20804 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
20805fi
20806
21d1c967 20807 fi
247f5006
VZ
20808fi
20809rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20810 LIBS="$ac_xsave_LIBS"
90dd450c 20811
21d1c967
GD
20812 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20813 # to get the SysV transport functions.
247f5006 20814 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
20815 # needs -lnsl.
20816 # The nsl library prevents programs from opening the X display
247f5006
VZ
20817 # on Irix 5.2, according to T.E. Dickey.
20818 # The functions gethostbyname, getservbyname, and inet_addr are
20819 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20820 echo "$as_me:$LINENO: checking for gethostbyname" >&5
20821echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20822if test "${ac_cv_func_gethostbyname+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20824else
20825 cat >conftest.$ac_ext <<_ACEOF
20826#line $LINENO "configure"
21d1c967
GD
20827#include "confdefs.h"
20828/* System header to define __stub macros and hopefully few prototypes,
247f5006 20829 which can conflict with char gethostbyname (); below. */
21d1c967
GD
20830#include <assert.h>
20831/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
20832#ifdef __cplusplus
20833extern "C"
20834#endif
21d1c967 20835/* We use char because int might match the return type of a gcc2
247f5006
VZ
20836 builtin and then its argument prototype would still apply. */
20837char gethostbyname ();
20838char (*f) ();
20839
20840#ifdef F77_DUMMY_MAIN
20841# ifdef __cplusplus
20842 extern "C"
20843# endif
20844 int F77_DUMMY_MAIN() { return 1; }
20845#endif
20846int
20847main ()
20848{
21d1c967
GD
20849/* The GNU C library defines this for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
20853choke me
20854#else
247f5006 20855f = gethostbyname;
21d1c967 20856#endif
90dd450c 20857
247f5006
VZ
20858 ;
20859 return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext conftest$ac_exeext
20863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20864 (eval $ac_link) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } &&
20868 { ac_try='test -s conftest$ac_exeext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ac_cv_func_gethostbyname=yes
20875else
20876 echo "$as_me: failed program was:" >&5
20877cat conftest.$ac_ext >&5
20878ac_cv_func_gethostbyname=no
20879fi
20880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20881fi
20882echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20883echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 20884
21d1c967 20885 if test $ac_cv_func_gethostbyname = no; then
247f5006
VZ
20886 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20887echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20888if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20890else
247f5006 20891 ac_check_lib_save_LIBS=$LIBS
21d1c967 20892LIBS="-lnsl $LIBS"
247f5006
VZ
20893cat >conftest.$ac_ext <<_ACEOF
20894#line $LINENO "configure"
21d1c967 20895#include "confdefs.h"
247f5006 20896
21d1c967 20897/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
20898#ifdef __cplusplus
20899extern "C"
20900#endif
21d1c967 20901/* We use char because int might match the return type of a gcc2
247f5006
VZ
20902 builtin and then its argument prototype would still apply. */
20903char gethostbyname ();
20904#ifdef F77_DUMMY_MAIN
20905# ifdef __cplusplus
20906 extern "C"
20907# endif
20908 int F77_DUMMY_MAIN() { return 1; }
20909#endif
20910int
20911main ()
20912{
20913gethostbyname ();
20914 ;
20915 return 0;
20916}
20917_ACEOF
20918rm -f conftest.$ac_objext conftest$ac_exeext
20919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20920 (eval $ac_link) 2>&5
20921 ac_status=$?
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } &&
20924 { ac_try='test -s conftest$ac_exeext'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; }; then
20930 ac_cv_lib_nsl_gethostbyname=yes
20931else
20932 echo "$as_me: failed program was:" >&5
20933cat conftest.$ac_ext >&5
20934ac_cv_lib_nsl_gethostbyname=no
20935fi
20936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20937LIBS=$ac_check_lib_save_LIBS
20938fi
20939echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20940echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20941if test $ac_cv_lib_nsl_gethostbyname = yes; then
20942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8284b0c5 20943fi
5c6fa7d2 20944
247f5006
VZ
20945 if test $ac_cv_lib_nsl_gethostbyname = no; then
20946 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20947echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20948if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 20950else
247f5006
VZ
20951 ac_check_lib_save_LIBS=$LIBS
20952LIBS="-lbsd $LIBS"
20953cat >conftest.$ac_ext <<_ACEOF
20954#line $LINENO "configure"
20955#include "confdefs.h"
20956
20957/* Override any gcc2 internal prototype to avoid an error. */
20958#ifdef __cplusplus
20959extern "C"
20960#endif
20961/* We use char because int might match the return type of a gcc2
20962 builtin and then its argument prototype would still apply. */
20963char gethostbyname ();
20964#ifdef F77_DUMMY_MAIN
20965# ifdef __cplusplus
20966 extern "C"
20967# endif
20968 int F77_DUMMY_MAIN() { return 1; }
20969#endif
20970int
20971main ()
20972{
20973gethostbyname ();
20974 ;
20975 return 0;
20976}
20977_ACEOF
20978rm -f conftest.$ac_objext conftest$ac_exeext
20979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20980 (eval $ac_link) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -s conftest$ac_exeext'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_lib_bsd_gethostbyname=yes
20991else
20992 echo "$as_me: failed program was:" >&5
20993cat conftest.$ac_ext >&5
20994ac_cv_lib_bsd_gethostbyname=no
20995fi
20996rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20997LIBS=$ac_check_lib_save_LIBS
20998fi
20999echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21000echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21001if test $ac_cv_lib_bsd_gethostbyname = yes; then
21002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 21003fi
90dd450c 21004
247f5006 21005 fi
90dd450c
VZ
21006 fi
21007
21d1c967
GD
21008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21009 # socket/setsockopt and other routines are undefined under SCO ODT
21010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
247f5006
VZ
21011 # on later versions), says Simon Leinen: it contains gethostby*
21012 # variants that don't use the nameserver (or something). -lsocket
21013 # must be given before -lnsl if both are needed. We assume that
21014 # if connect needs -lnsl, so does gethostbyname.
21015 echo "$as_me:$LINENO: checking for connect" >&5
21016echo $ECHO_N "checking for connect... $ECHO_C" >&6
21017if test "${ac_cv_func_connect+set}" = set; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21019else
21020 cat >conftest.$ac_ext <<_ACEOF
21021#line $LINENO "configure"
21d1c967
GD
21022#include "confdefs.h"
21023/* System header to define __stub macros and hopefully few prototypes,
247f5006 21024 which can conflict with char connect (); below. */
21d1c967
GD
21025#include <assert.h>
21026/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
21027#ifdef __cplusplus
21028extern "C"
21029#endif
21d1c967 21030/* We use char because int might match the return type of a gcc2
247f5006
VZ
21031 builtin and then its argument prototype would still apply. */
21032char connect ();
21033char (*f) ();
21034
21035#ifdef F77_DUMMY_MAIN
21036# ifdef __cplusplus
21037 extern "C"
21038# endif
21039 int F77_DUMMY_MAIN() { return 1; }
21040#endif
21041int
21042main ()
21043{
21d1c967
GD
21044/* The GNU C library defines this for functions which it implements
21045 to always fail with ENOSYS. Some functions are actually named
21046 something starting with __ and the normal name is an alias. */
21047#if defined (__stub_connect) || defined (__stub___connect)
21048choke me
21049#else
247f5006 21050f = connect;
21d1c967 21051#endif
90dd450c 21052
247f5006
VZ
21053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest.$ac_objext conftest$ac_exeext
21058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21059 (eval $ac_link) 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 { ac_try='test -s conftest$ac_exeext'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; }; then
21069 ac_cv_func_connect=yes
21070else
21071 echo "$as_me: failed program was:" >&5
21072cat conftest.$ac_ext >&5
21073ac_cv_func_connect=no
21074fi
21075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21076fi
21077echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21078echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 21079
21d1c967 21080 if test $ac_cv_func_connect = no; then
247f5006
VZ
21081 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21082echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21083if test "${ac_cv_lib_socket_connect+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 21085else
247f5006 21086 ac_check_lib_save_LIBS=$LIBS
21d1c967 21087LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
247f5006
VZ
21088cat >conftest.$ac_ext <<_ACEOF
21089#line $LINENO "configure"
0fbb762e 21090#include "confdefs.h"
247f5006 21091
21d1c967 21092/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
21093#ifdef __cplusplus
21094extern "C"
21095#endif
21d1c967 21096/* We use char because int might match the return type of a gcc2
247f5006
VZ
21097 builtin and then its argument prototype would still apply. */
21098char connect ();
21099#ifdef F77_DUMMY_MAIN
21100# ifdef __cplusplus
21101 extern "C"
21102# endif
21103 int F77_DUMMY_MAIN() { return 1; }
21104#endif
21105int
21106main ()
21107{
21108connect ();
21109 ;
21110 return 0;
21111}
21112_ACEOF
21113rm -f conftest.$ac_objext conftest$ac_exeext
21114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21115 (eval $ac_link) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
21119 { ac_try='test -s conftest$ac_exeext'
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 ac_cv_lib_socket_connect=yes
21126else
21127 echo "$as_me: failed program was:" >&5
21128cat conftest.$ac_ext >&5
21129ac_cv_lib_socket_connect=no
21130fi
21131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21132LIBS=$ac_check_lib_save_LIBS
21133fi
21134echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21135echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21136if test $ac_cv_lib_socket_connect = yes; then
21d1c967 21137 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 21138fi
90dd450c 21139
21d1c967 21140 fi
90dd450c 21141
247f5006
VZ
21142 # Guillermo Gomez says -lposix is necessary on A/UX.
21143 echo "$as_me:$LINENO: checking for remove" >&5
21144echo $ECHO_N "checking for remove... $ECHO_C" >&6
21145if test "${ac_cv_func_remove+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21147else
247f5006
VZ
21148 cat >conftest.$ac_ext <<_ACEOF
21149#line $LINENO "configure"
21d1c967
GD
21150#include "confdefs.h"
21151/* System header to define __stub macros and hopefully few prototypes,
247f5006 21152 which can conflict with char remove (); below. */
21d1c967
GD
21153#include <assert.h>
21154/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
21155#ifdef __cplusplus
21156extern "C"
21157#endif
21d1c967 21158/* We use char because int might match the return type of a gcc2
247f5006
VZ
21159 builtin and then its argument prototype would still apply. */
21160char remove ();
21161char (*f) ();
21162
21163#ifdef F77_DUMMY_MAIN
21164# ifdef __cplusplus
21165 extern "C"
21166# endif
21167 int F77_DUMMY_MAIN() { return 1; }
21168#endif
21169int
21170main ()
21171{
21d1c967
GD
21172/* The GNU C library defines this for functions which it implements
21173 to always fail with ENOSYS. Some functions are actually named
21174 something starting with __ and the normal name is an alias. */
21175#if defined (__stub_remove) || defined (__stub___remove)
21176choke me
21177#else
247f5006 21178f = remove;
21d1c967 21179#endif
90dd450c 21180
247f5006
VZ
21181 ;
21182 return 0;
21183}
21184_ACEOF
21185rm -f conftest.$ac_objext conftest$ac_exeext
21186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187 (eval $ac_link) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
21191 { ac_try='test -s conftest$ac_exeext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ac_cv_func_remove=yes
21198else
21199 echo "$as_me: failed program was:" >&5
21200cat conftest.$ac_ext >&5
21201ac_cv_func_remove=no
21202fi
21203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21204fi
21205echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21206echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 21207
21d1c967 21208 if test $ac_cv_func_remove = no; then
247f5006
VZ
21209 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21210echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21211if test "${ac_cv_lib_posix_remove+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21213else
247f5006 21214 ac_check_lib_save_LIBS=$LIBS
21d1c967 21215LIBS="-lposix $LIBS"
247f5006
VZ
21216cat >conftest.$ac_ext <<_ACEOF
21217#line $LINENO "configure"
21d1c967 21218#include "confdefs.h"
247f5006 21219
21d1c967 21220/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
21221#ifdef __cplusplus
21222extern "C"
21223#endif
21d1c967 21224/* We use char because int might match the return type of a gcc2
247f5006
VZ
21225 builtin and then its argument prototype would still apply. */
21226char remove ();
21227#ifdef F77_DUMMY_MAIN
21228# ifdef __cplusplus
21229 extern "C"
21230# endif
21231 int F77_DUMMY_MAIN() { return 1; }
21232#endif
21233int
21234main ()
21235{
21236remove ();
21237 ;
21238 return 0;
21239}
21240_ACEOF
21241rm -f conftest.$ac_objext conftest$ac_exeext
21242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21243 (eval $ac_link) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } &&
21247 { ac_try='test -s conftest$ac_exeext'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 ac_cv_lib_posix_remove=yes
21254else
21255 echo "$as_me: failed program was:" >&5
21256cat conftest.$ac_ext >&5
21257ac_cv_lib_posix_remove=no
21258fi
21259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21260LIBS=$ac_check_lib_save_LIBS
21261fi
21262echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21263echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21264if test $ac_cv_lib_posix_remove = yes; then
21d1c967 21265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 21266fi
19bc6aad 21267
90dd450c 21268 fi
19bc6aad 21269
21d1c967 21270 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
247f5006
VZ
21271 echo "$as_me:$LINENO: checking for shmat" >&5
21272echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21273if test "${ac_cv_func_shmat+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21275else
247f5006
VZ
21276 cat >conftest.$ac_ext <<_ACEOF
21277#line $LINENO "configure"
21d1c967
GD
21278#include "confdefs.h"
21279/* System header to define __stub macros and hopefully few prototypes,
247f5006 21280 which can conflict with char shmat (); below. */
21d1c967
GD
21281#include <assert.h>
21282/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
21283#ifdef __cplusplus
21284extern "C"
21285#endif
21d1c967 21286/* We use char because int might match the return type of a gcc2
247f5006
VZ
21287 builtin and then its argument prototype would still apply. */
21288char shmat ();
21289char (*f) ();
21290
21291#ifdef F77_DUMMY_MAIN
21292# ifdef __cplusplus
21293 extern "C"
21294# endif
21295 int F77_DUMMY_MAIN() { return 1; }
21296#endif
21297int
21298main ()
21299{
21d1c967
GD
21300/* The GNU C library defines this for functions which it implements
21301 to always fail with ENOSYS. Some functions are actually named
21302 something starting with __ and the normal name is an alias. */
21303#if defined (__stub_shmat) || defined (__stub___shmat)
21304choke me
21305#else
247f5006 21306f = shmat;
21d1c967 21307#endif
90dd450c 21308
247f5006
VZ
21309 ;
21310 return 0;
21311}
21312_ACEOF
21313rm -f conftest.$ac_objext conftest$ac_exeext
21314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315 (eval $ac_link) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
21319 { ac_try='test -s conftest$ac_exeext'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_func_shmat=yes
21326else
21327 echo "$as_me: failed program was:" >&5
21328cat conftest.$ac_ext >&5
21329ac_cv_func_shmat=no
21330fi
21331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21332fi
21333echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21334echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 21335
21d1c967 21336 if test $ac_cv_func_shmat = no; then
247f5006
VZ
21337 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21338echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21339if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 21341else
247f5006 21342 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 21343LIBS="-lipc $LIBS"
247f5006
VZ
21344cat >conftest.$ac_ext <<_ACEOF
21345#line $LINENO "configure"
5c6fa7d2 21346#include "confdefs.h"
247f5006 21347
5c6fa7d2 21348/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
21349#ifdef __cplusplus
21350extern "C"
21351#endif
5c6fa7d2 21352/* We use char because int might match the return type of a gcc2
247f5006
VZ
21353 builtin and then its argument prototype would still apply. */
21354char shmat ();
21355#ifdef F77_DUMMY_MAIN
21356# ifdef __cplusplus
21357 extern "C"
21358# endif
21359 int F77_DUMMY_MAIN() { return 1; }
21360#endif
21361int
21362main ()
21363{
21364shmat ();
21365 ;
21366 return 0;
21367}
21368_ACEOF
21369rm -f conftest.$ac_objext conftest$ac_exeext
21370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
21375 { ac_try='test -s conftest$ac_exeext'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 ac_cv_lib_ipc_shmat=yes
21382else
21383 echo "$as_me: failed program was:" >&5
21384cat conftest.$ac_ext >&5
21385ac_cv_lib_ipc_shmat=no
21386fi
21387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21388LIBS=$ac_check_lib_save_LIBS
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21391echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21392if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 21393 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 21394fi
90dd450c 21395
90dd450c 21396 fi
21d1c967 21397 fi
10f2d63a 21398
21d1c967 21399 # Check for libraries that X11R6 Xt/Xaw programs need.
247f5006 21400 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
21401 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21402 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21403 # check for ICE first), but we must link in the order -lSM -lICE or
21404 # we get undefined symbols. So assume we have SM if we have ICE.
21405 # These have to be linked with before -lX11, unlike the other
21406 # libraries we check for below, so use a different variable.
247f5006
VZ
21407 # John Interrante, Karl Berry
21408 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21409echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21410if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21412else
21413 ac_check_lib_save_LIBS=$LIBS
f09359cf 21414LIBS="-lICE $X_EXTRA_LIBS $LIBS"
247f5006
VZ
21415cat >conftest.$ac_ext <<_ACEOF
21416#line $LINENO "configure"
29fd3c0c 21417#include "confdefs.h"
247f5006 21418
21d1c967 21419/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
21420#ifdef __cplusplus
21421extern "C"
21422#endif
21d1c967 21423/* We use char because int might match the return type of a gcc2
247f5006
VZ
21424 builtin and then its argument prototype would still apply. */
21425char IceConnectionNumber ();
21426#ifdef F77_DUMMY_MAIN
21427# ifdef __cplusplus
21428 extern "C"
21429# endif
21430 int F77_DUMMY_MAIN() { return 1; }
21431#endif
21432int
21433main ()
21434{
21435IceConnectionNumber ();
21436 ;
21437 return 0;
21438}
21439_ACEOF
21440rm -f conftest.$ac_objext conftest$ac_exeext
21441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21442 (eval $ac_link) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } &&
21446 { ac_try='test -s conftest$ac_exeext'
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448 (eval $ac_try) 2>&5
21449 ac_status=$?
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; }; then
21452 ac_cv_lib_ICE_IceConnectionNumber=yes
21453else
21454 echo "$as_me: failed program was:" >&5
21455cat conftest.$ac_ext >&5
21456ac_cv_lib_ICE_IceConnectionNumber=no
21457fi
21458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21459LIBS=$ac_check_lib_save_LIBS
21460fi
21461echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21462echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21463if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 21464 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 21465fi
21d1c967 21466
247f5006 21467 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 21468
10f2d63a
VZ
21469fi
21470
8284b0c5 21471
21d1c967 21472 if test "$no_x" = "yes"; then
247f5006
VZ
21473 { { echo "$as_me:$LINENO: error: X11 not found" >&5
21474echo "$as_me: error: X11 not found" >&2;}
21475 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
21476 fi
21477
21478 GUI_TK_LIBRARY="$X_LIBS"
21479 TOOLKIT_INCLUDE="$X_CFLAGS"
21480 AFMINSTALL=afminstall
21481 COMPILED_X_PROGRAM=0
21482
247f5006
VZ
21483 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
21484echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
21485
21d1c967
GD
21486ac_find_includes=
21487for ac_dir in $SEARCH_INCLUDE;
21488 do
21489 if test -f "$ac_dir/Xm/Xm.h"; then
21490 ac_find_includes=$ac_dir
21491 break
21492 fi
21493 done
21494
21495 if test "$ac_find_includes" != "" ; then
247f5006
VZ
21496 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
21497echo "${ECHO_T}found in $ac_find_includes" >&6
21498
dd0e4a90
VZ
21499 ac_path_to_include=$ac_find_includes
21500 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
21501 result=$?
21502 if test $result = 0; then
21503 ac_path_to_include=""
21504 else
21505 ac_path_to_include=" -I$ac_find_includes"
21506 fi
21507
21508 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 21509 else
247f5006
VZ
21510 cat >conftest.$ac_ext <<_ACEOF
21511#line $LINENO "configure"
10f2d63a 21512#include "confdefs.h"
21d1c967
GD
21513
21514 #include <Xm/Xm.h>
247f5006
VZ
21515
21516#ifdef F77_DUMMY_MAIN
21517# ifdef __cplusplus
21518 extern "C"
21519# endif
21520 int F77_DUMMY_MAIN() { return 1; }
21521#endif
21522int
21523main ()
21524{
21d1c967
GD
21525
21526 int version;
21527 version = xmUseVersion;
247f5006
VZ
21528
21529 ;
21530 return 0;
21531}
21532_ACEOF
21533rm -f conftest.$ac_objext
21534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21535 (eval $ac_compile) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
21539 { ac_try='test -s conftest.$ac_objext'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545
21546 echo "$as_me:$LINENO: result: found in default search path" >&5
21547echo "${ECHO_T}found in default search path" >&6
21d1c967 21548 COMPILED_X_PROGRAM=1
247f5006 21549
10f2d63a 21550else
247f5006
VZ
21551 echo "$as_me: failed program was:" >&5
21552cat conftest.$ac_ext >&5
21553
21554 echo "$as_me:$LINENO: result: no" >&5
21555echo "${ECHO_T}no" >&6
21556 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
21557echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
21558 { (exit 1); exit 1; }; }
21559
21560
10f2d63a 21561fi
247f5006 21562rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 21563 fi
10f2d63a 21564
21d1c967 21565 if test "$COMPILED_X_PROGRAM" = 0; then
247f5006
VZ
21566 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
21567echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
21568
21d1c967
GD
21569ac_find_libraries=
21570for ac_dir in $SEARCH_LIB;
21571 do
21572 for ac_extension in a so sl dylib; do
21573 if test -f "$ac_dir/libXm.$ac_extension"; then
21574 ac_find_libraries=$ac_dir
21575 break 2
21576 fi
21577 done
21578 done
21579
21580 if test "$ac_find_libraries" != "" ; then
247f5006
VZ
21581 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
21582echo "${ECHO_T}found at $ac_find_libraries" >&6
21583
21d1c967 21584
21d1c967
GD
21585 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
21586 result=$?
21587 if test $result = 0; then
21588 ac_path_to_link=""
21589 else
21590 ac_path_to_link=" -L$ac_find_libraries"
21591 fi
21592
21d1c967 21593 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 21594 else
dd0e4a90
VZ
21595 save_CFLAGS=$CFLAGS
21596 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
21597
247f5006
VZ
21598 cat >conftest.$ac_ext <<_ACEOF
21599#line $LINENO "configure"
d836ee96 21600#include "confdefs.h"
21d1c967
GD
21601
21602 #include <Xm/Xm.h>
247f5006
VZ
21603
21604#ifdef F77_DUMMY_MAIN
21605# ifdef __cplusplus
21606 extern "C"
21607# endif
21608 int F77_DUMMY_MAIN() { return 1; }
21609#endif
21610int
21611main ()
21612{
21d1c967
GD
21613
21614 int version;
21615 version = xmUseVersion;
247f5006
VZ
21616
21617 ;
21618 return 0;
21619}
21620_ACEOF
21621rm -f conftest.$ac_objext
21622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21623 (eval $ac_compile) 2>&5
21624 ac_status=$?
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } &&
21627 { ac_try='test -s conftest.$ac_objext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633
21634 echo "$as_me:$LINENO: result: found in default search path" >&5
21635echo "${ECHO_T}found in default search path" >&6
21d1c967 21636 COMPILED_X_PROGRAM=1
247f5006 21637
d836ee96 21638else
247f5006
VZ
21639 echo "$as_me: failed program was:" >&5
21640cat conftest.$ac_ext >&5
21641
21642 echo "$as_me:$LINENO: result: no" >&5
21643echo "${ECHO_T}no" >&6
21644 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
21645echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
21646 { (exit 1); exit 1; }; }
21647
21648
d836ee96 21649fi
247f5006 21650rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
21651
21652 CFLAGS=$save_CFLAGS
21d1c967
GD
21653 fi
21654 fi
21655
21656 xpm_link=
247f5006
VZ
21657 echo "$as_me:$LINENO: checking for Xpm library" >&5
21658echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
21659
21d1c967
GD
21660ac_find_libraries=
21661for ac_dir in $SEARCH_LIB;
21662 do
21663 for ac_extension in a so sl dylib; do
21664 if test -f "$ac_dir/libXpm.$ac_extension"; then
21665 ac_find_libraries=$ac_dir
21666 break 2
21667 fi
21668 done
21669 done
21670
21671 if test "$ac_find_libraries" != "" ; then
247f5006 21672
21d1c967
GD
21673 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
21674 result=$?
21675 if test $result = 0; then
21676 ac_path_to_link=""
21677 else
21678 ac_path_to_link=" -L$ac_find_libraries"
21679 fi
21680
21681 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 21682
21d1c967 21683 xpm_link=" -lXpm"
247f5006 21684 cat >>confdefs.h <<\_ACEOF
21d1c967 21685#define wxHAVE_LIB_XPM 1
247f5006 21686_ACEOF
90dd450c 21687
247f5006
VZ
21688 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
21689echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 21690 else
dd0e4a90
VZ
21691 save_CFLAGS=$CFLAGS
21692 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
21693
247f5006
VZ
21694 cat >conftest.$ac_ext <<_ACEOF
21695#line $LINENO "configure"
d836ee96 21696#include "confdefs.h"
21d1c967
GD
21697
21698 #include <X11/xpm.h>
247f5006
VZ
21699
21700#ifdef F77_DUMMY_MAIN
21701# ifdef __cplusplus
21702 extern "C"
21703# endif
21704 int F77_DUMMY_MAIN() { return 1; }
21705#endif
21706int
21707main ()
21708{
21d1c967
GD
21709
21710 int version;
21711 version = XpmLibraryVersion();
247f5006
VZ
21712
21713 ;
21714 return 0;
21715}
21716_ACEOF
21717rm -f conftest.$ac_objext
21718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21719 (eval $ac_compile) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -s conftest.$ac_objext'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729
21d1c967 21730 xpm_link=" -lXpm"
247f5006 21731 cat >>confdefs.h <<\_ACEOF
21d1c967 21732#define wxHAVE_LIB_XPM 1
247f5006 21733_ACEOF
21d1c967 21734
247f5006
VZ
21735 echo "$as_me:$LINENO: result: found in default search path" >&5
21736echo "${ECHO_T}found in default search path" >&6
21d1c967 21737 COMPILED_X_PROGRAM=0
247f5006 21738
d836ee96 21739else
247f5006
VZ
21740 echo "$as_me: failed program was:" >&5
21741cat conftest.$ac_ext >&5
21742
21743 echo "$as_me:$LINENO: result: no" >&5
21744echo "${ECHO_T}no" >&6
21745 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
21746echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
21747
21748
d836ee96 21749fi
247f5006 21750rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
21751
21752 CFLAGS=$save_CFLAGS
21d1c967
GD
21753 fi
21754
247f5006
VZ
21755 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
21756echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
21757 libp_link=""
21758 libsm_ice_link=""
21759 libs_found=0
21760 for libp in "" " -lXp"; do
21761 if test "$libs_found" = "0"; then
21762 for libsm_ice in " -lSM -lICE"; do
247f5006 21763 if test "$libs_found" = "0"; then
6a30f1c8
MB
21764 save_LIBS="$LIBS"
21765 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
21766 save_CFLAGS=$CFLAGS
21767 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
21768
247f5006
VZ
21769 cat >conftest.$ac_ext <<_ACEOF
21770#line $LINENO "configure"
6a30f1c8 21771#include "confdefs.h"
17234b26 21772
6a30f1c8
MB
21773 #include <Xm/Xm.h>
21774 #include <Xm/List.h>
247f5006
VZ
21775
21776#ifdef F77_DUMMY_MAIN
21777# ifdef __cplusplus
21778 extern "C"
21779# endif
21780 int F77_DUMMY_MAIN() { return 1; }
21781#endif
21782int
21783main ()
21784{
6a30f1c8
MB
21785
21786 XmString string = NULL;
21787 Widget w = NULL;
21788 int position = 0;
21789 XmListAddItem(w, string, position);
247f5006
VZ
21790
21791 ;
21792 return 0;
21793}
21794_ACEOF
21795rm -f conftest.$ac_objext conftest$ac_exeext
21796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21797 (eval $ac_link) 2>&5
21798 ac_status=$?
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } &&
21801 { ac_try='test -s conftest$ac_exeext'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; }; then
21807
6a30f1c8
MB
21808 libp_link="$libp"
21809 libsm_ice_link="$libsm_ice"
247f5006
VZ
21810 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
21811echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 21812 libs_found=1
247f5006 21813
6a30f1c8 21814else
247f5006
VZ
21815 echo "$as_me: failed program was:" >&5
21816cat conftest.$ac_ext >&5
21817
21818
6a30f1c8 21819fi
247f5006 21820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 21821
6a30f1c8 21822 LIBS="$save_LIBS"
dd0e4a90 21823 CFLAGS=$save_CFLAGS
6a30f1c8
MB
21824 fi
21825 done
21826 fi
21827 done
21828
21829 if test "$libs_found" = "0"; then
247f5006
VZ
21830 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
21831echo "${ECHO_T}can't find the right libraries" >&6
21832 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
21833echo "$as_me: error: can't link a simple motif program" >&2;}
21834 { (exit 1); exit 1; }; }
6a30f1c8
MB
21835 fi
21836
21837 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
21838 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
21839 TOOLKIT=MOTIF
21840 GUIDIST=MOTIF_DIST
21841 fi
21842
21843 if test "$wxUSE_MAC" = 1; then
21844 if test "$wxUSE_PRECOMP" = "yes"; then
21845 CPPFLAGS="$CPPFLAGS -cpp-precomp"
21846 else
21847 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
21848 fi
21849 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
21850 CFLAGS="$CFLAGS -fpascal-strings"
21851 CXXFLAGS="$CXXFLAGS -fpascal-strings"
21852
21853 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
21854 TOOLKIT=MAC
21855 GUIDIST=MACX_DIST
21856 fi
21857
21858 if test "$wxUSE_PM" = 1; then
21859 TOOLKIT=PM
21860 GUIDIST=GTK_DIST
21861 fi
21862
21863 if test "$TOOLKIT" = "PM" ; then
21864 TOOLKIT_DIR="os2"
21865 else
21866 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
21867 fi
21868
21869 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
21870
21871 if test "$wxUSE_UNIVERSAL" = "yes"; then
21872 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
21873
21874 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
21875 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
21876
21877 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
21878 if test "$wxUSE_X11" = 1; then
21879 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
21880 else
21881 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
21882 fi
21883 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
21884 WIDGET_SET=univ
21885 else
21886 ALL_OBJECTS="\$(GUIOBJS)"
21887 ALL_SOURCES="\$(ALL_SOURCES)"
21888 ALL_HEADERS="\$(ALL_HEADERS)"
21889 fi
21890
21891 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
21892
21893 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
21894 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
21895 fi
21896
21897 if test "$wxUSE_HTML" = "yes"; then
21898 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
21899 fi
21900
21901 if test "$wxUSE_LIBJPEG" = "builtin" ; then
21902 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
21903 fi
21904 if test "$wxUSE_LIBTIFF" = "builtin" ; then
21905 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
21906 fi
21907 if test "$wxUSE_LIBPNG" = "builtin" ; then
21908 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
21909 fi
21910
21911 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
21912 DISTDIR="wx\$(TOOLKIT)"
90dd450c 21913else
21d1c967
GD
21914 USE_GUI=0
21915
21916 TOOLKIT_DIR="base"
21917
21918 if test "$USE_WIN32" = 1 ; then
21919 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
21920 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
21921
21922 TOOLKIT="MSW"
21923 else
21924 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
21925 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
21926 fi
21927
21928 ALL_SOURCES="\$(ALL_SOURCES)"
21929 ALL_HEADERS="\$(ALL_HEADERS)"
21930
21931 PORT_FILES="\${top_srcdir}/src/files.lst"
21932
21933 GUIDIST="BASE_DIST"
21934 DISTDIR="wxBase"
d836ee96
VZ
21935fi
21936
8284b0c5 21937
21d1c967
GD
21938if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
21939 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 21940fi
21d1c967
GD
21941
21942if test "$wxUSE_REGEX" = "builtin" ; then
21943 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 21944fi
21d1c967
GD
21945if test "$wxUSE_ZLIB" = "builtin" ; then
21946 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
21947fi
21948
8284b0c5 21949
21d1c967
GD
21950if test "$wxUSE_OPENGL" = "yes"; then
21951 if test "$wxUSE_MAC" = 1; then
21952 OPENGL_LIBS="-framework OpenGL -framework AGL"
21953 elif test "$wxUSE_MSW" = 1; then
21954 OPENGL_LIBS="-lopengl32 -lglu32"
21955 else
247f5006
VZ
21956 if test "${ac_cv_header_GL_gl_h+set}" = set; then
21957 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
21958echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
21959if test "${ac_cv_header_GL_gl_h+set}" = set; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
21961fi
21962echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
21963echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
21964else
21965 # Is the header compilable?
21966echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
21967echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
21968cat >conftest.$ac_ext <<_ACEOF
21969#line $LINENO "configure"
10f2d63a 21970#include "confdefs.h"
247f5006 21971$ac_includes_default
21d1c967 21972#include <GL/gl.h>
247f5006
VZ
21973_ACEOF
21974rm -f conftest.$ac_objext
21975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21976 (eval $ac_compile) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } &&
21980 { ac_try='test -s conftest.$ac_objext'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21986 ac_header_compiler=yes
21987else
21988 echo "$as_me: failed program was:" >&5
21989cat conftest.$ac_ext >&5
21990ac_header_compiler=no
21991fi
21992rm -f conftest.$ac_objext conftest.$ac_ext
21993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21994echo "${ECHO_T}$ac_header_compiler" >&6
21995
21996# Is the header present?
21997echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
21998echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
21999cat >conftest.$ac_ext <<_ACEOF
22000#line $LINENO "configure"
22001#include "confdefs.h"
22002#include <GL/gl.h>
22003_ACEOF
22004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22006 ac_status=$?
22007 egrep -v '^ *\+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } >/dev/null; then
22012 if test -s conftest.err; then
22013 ac_cpp_err=$ac_c_preproc_warn_flag
22014 else
22015 ac_cpp_err=
22016 fi
22017else
22018 ac_cpp_err=yes
22019fi
22020if test -z "$ac_cpp_err"; then
22021 ac_header_preproc=yes
22022else
22023 echo "$as_me: failed program was:" >&5
698dcdb6 22024 cat conftest.$ac_ext >&5
247f5006
VZ
22025 ac_header_preproc=no
22026fi
22027rm -f conftest.err conftest.$ac_ext
22028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22029echo "${ECHO_T}$ac_header_preproc" >&6
22030
22031# So? What about this header?
22032case $ac_header_compiler:$ac_header_preproc in
22033 yes:no )
22034 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22035echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
22037echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};;
22038 no:yes )
22039 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
22040echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
22042echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
22044echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};;
22045esac
22046echo "$as_me:$LINENO: checking for GL/gl.h" >&5
22047echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
22048if test "${ac_cv_header_GL_gl_h+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050else
22051 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 22052fi
247f5006
VZ
22053echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22054echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
22055
698dcdb6 22056fi
247f5006
VZ
22057if test $ac_cv_header_GL_gl_h = yes; then
22058
22059 echo "$as_me:$LINENO: checking for -lGL" >&5
22060echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
22061
21d1c967
GD
22062ac_find_libraries=
22063for ac_dir in $SEARCH_LIB;
22064 do
22065 for ac_extension in a so sl dylib; do
22066 if test -f "$ac_dir/libGL.$ac_extension"; then
22067 ac_find_libraries=$ac_dir
22068 break 2
22069 fi
22070 done
22071 done
22072
22073 if test "$ac_find_libraries" != "" ; then
247f5006 22074
21d1c967
GD
22075 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
22076 result=$?
22077 if test $result = 0; then
22078 ac_path_to_link=""
22079 else
22080 ac_path_to_link=" -L$ac_find_libraries"
22081 fi
22082
22083 if test "$ac_path_to_link" = " -L/usr/lib" ; then
22084 LDFLAGS_GL="$LDFLAGS"
22085 else
22086 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
22087 fi
22088 OPENGL_LIBS="-lGL -lGLU"
247f5006
VZ
22089 echo "$as_me:$LINENO: result: yes" >&5
22090echo "${ECHO_T}yes" >&6
21d1c967 22091 else
247f5006
VZ
22092 echo "$as_me:$LINENO: result: no" >&5
22093echo "${ECHO_T}no" >&6
22094 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
22095echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
22096
21d1c967
GD
22097ac_find_libraries=
22098for ac_dir in $SEARCH_LIB;
22099 do
22100 for ac_extension in a so sl dylib; do
22101 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
22102 ac_find_libraries=$ac_dir
22103 break 2
22104 fi
22105 done
22106 done
22107
22108 if test "$ac_find_libraries" != "" ; then
247f5006 22109
21d1c967
GD
22110 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
22111 result=$?
22112 if test $result = 0; then
22113 ac_path_to_link=""
22114 else
22115 ac_path_to_link=" -L$ac_find_libraries"
22116 fi
22117
22118 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
22119 OPENGL_LIBS="-lMesaGL -lMesaGLU"
247f5006
VZ
22120 echo "$as_me:$LINENO: result: yes" >&5
22121echo "${ECHO_T}yes" >&6
21d1c967 22122 else
247f5006
VZ
22123 echo "$as_me:$LINENO: result: no" >&5
22124echo "${ECHO_T}no" >&6
21d1c967
GD
22125 fi
22126 fi
247f5006 22127
5c6fa7d2 22128fi
52127426 22129
8284b0c5 22130
247f5006 22131
21d1c967 22132 if test "x$OPENGL_LIBS" = "x"; then
247f5006
VZ
22133 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
22134echo "$as_me: error: OpenGL libraries not available" >&2;}
22135 { (exit 1); exit 1; }; }
21d1c967
GD
22136 fi
22137 fi
90dd450c 22138
21d1c967 22139 if test "$wxUSE_OPENGL" = "yes"; then
247f5006 22140 cat >>confdefs.h <<\_ACEOF
21d1c967 22141#define wxUSE_OPENGL 1
247f5006 22142_ACEOF
21d1c967 22143
247f5006 22144 cat >>confdefs.h <<\_ACEOF
21d1c967 22145#define wxUSE_GLCANVAS 1
247f5006 22146_ACEOF
21d1c967
GD
22147
22148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
22149 fi
10f2d63a 22150fi
21d1c967
GD
22151
22152if test -z "$TOOLKIT_VPATH" ; then
22153 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 22154fi
21d1c967
GD
22155
22156if test -n "$TOOLKIT" ; then
22157 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
22158fi
22159
22160lib_unicode_suffix=
22161if test "$wxUSE_UNICODE" = "yes"; then
22162 lib_unicode_suffix=u
90dd450c 22163fi
698dcdb6 22164
21d1c967
GD
22165lib_debug_suffix=
22166if test "$wxUSE_DEBUG_FLAG" = "yes"; then
22167 lib_debug_suffix=d
22168fi
698dcdb6 22169
21d1c967
GD
22170TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
22171TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
22172
22173if test "$cross_compiling" = "yes"; then
22174 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
22175 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
22176fi
22177
22178WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
22179WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
22180
22181WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
22182WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
22183
22184WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
22185WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
22186WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
22187WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
22188
22189case "${host}" in
22190 *-*-cygwin* | *-*-mingw32* )
22191
247f5006
VZ
22192
22193
17234b26 22194 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
22195 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
22196 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
22197 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
22198 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
22199 else
22200 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
22201 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
22202 fi
22203 ;;
22204
22205 *-*-darwin* )
22206 if test "$wxUSE_MAC" = 1; then
3bd8fb5f 22207 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
21d1c967
GD
22208 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
22209 fi
22210 ;;
22211esac
22212
22213WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
22214WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
22215
22216WXCONFIG_LIBS="-l${WX_LIBRARY}"
22217WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
22218
22219if test "$wxUSE_OPENGL" = "yes"; then
22220 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
22221 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
22222fi
22223
8284b0c5
MB
22224
22225
21d1c967
GD
22226if test "$wxUSE_SHARED" = "yes"; then
22227 case "${host}" in
22228 *-pc-os2_emx | *-pc-os2-emx | \
22229 *-pc-msdosdjgpp )
22230 wxUSE_SHARED=no
247f5006
VZ
22231 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
22232echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
22233 ;;
22234 esac
22235fi
22236
22237if test "$wxUSE_SHARED" = "yes"; then
22238
22239 if test "$wxUSE_OPENGL" = "yes"; then
22240 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
22241 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
22242 else
22243 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
22244 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
22245 fi
22246
22247 if test "$GCC" = "yes"; then
22248 PIC_FLAG="-fPIC"
22249 fi
22250
22251 SHARED_LD="${CXX} -shared -o"
22252
22253 case "${host}" in
22254 *-hp-hpux* )
22255 if test "$GCC" == "yes"; then
22256 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
22257 else
22258 LDFLAGS="$LDFLAGS -L/usr/lib"
22259
22260 SHARED_LD="${CXX} -b -o"
22261 PIC_FLAG="+Z"
22262 fi
22263
22264 if test "$wxUSE_OPENGL" = "yes"; then
22265 WX_ALL_INSTALLED="preinstall_gl"
22266 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
22267 else
22268 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
22269 fi
22270 ;;
22271
22272 *-*-linux* )
22273 if test "$GCC" != "yes"; then
247f5006
VZ
22274 echo "$as_me:$LINENO: checking for Intel compiler" >&5
22275echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
22276if test "${wx_cv_prog_icc+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22278else
22279
22280 cat >conftest.$ac_ext <<_ACEOF
22281#line $LINENO "configure"
698dcdb6 22282#include "confdefs.h"
90dd450c 22283
247f5006
VZ
22284#ifdef F77_DUMMY_MAIN
22285# ifdef __cplusplus
22286 extern "C"
22287# endif
22288 int F77_DUMMY_MAIN() { return 1; }
22289#endif
22290int
22291main ()
22292{
90dd450c 22293
21d1c967
GD
22294 #ifndef __INTEL_COMPILER
22295 #error Not icc
22296 #endif
247f5006
VZ
22297
22298 ;
22299 return 0;
22300}
22301_ACEOF
22302rm -f conftest.$ac_objext
22303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22304 (eval $ac_compile) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } &&
22308 { ac_try='test -s conftest.$ac_objext'
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22311 ac_status=$?
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; }; then
21d1c967 22314 wx_cv_prog_icc=yes
6232543b 22315else
247f5006
VZ
22316 echo "$as_me: failed program was:" >&5
22317cat conftest.$ac_ext >&5
22318wx_cv_prog_icc=no
22319
5c6fa7d2 22320fi
247f5006 22321rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 22322
247f5006
VZ
22323fi
22324echo "$as_me:$LINENO: result: $wx_cv_prog_icc" >&5
22325echo "${ECHO_T}$wx_cv_prog_icc" >&6
21d1c967
GD
22326 if test "$wx_cv_prog_icc" = "yes"; then
22327 PIC_FLAG="-KPIC"
22328 fi
22329 fi
22330
22331 if test "$wxUSE_SONAME" = "yes" ; then
22332 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
22333 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
22334 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
22335 fi
22336 ;;
22337
22338 *-*-solaris2* )
22339 if test "$GCC" = yes ; then
22340 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
22341 else
22342 SHARED_LD="${CXX} -G -o"
22343 PIC_FLAG="-KPIC"
22344 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
22345 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
22346 fi
22347 ;;
22348
22349 *-*-darwin* )
22350 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
22351 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
22352 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
22353 PIC_FLAG="-dynamic -fPIC"
22354 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
22355 SONAME_FLAGS_GL=${SONAME_FLAGS}
22356 ;;
22357
22358 *-*-aix* )
321d2b14
VZ
22359 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
22360set dummy makeC++SharedLib; ac_word=$2
247f5006
VZ
22361echo "$as_me:$LINENO: checking for $ac_word" >&5
22362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22363if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
321d2b14
VZ
22365else
22366 if test -n "$AIX_CXX_LD"; then
22367 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
22368else
247f5006
VZ
22369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22370for as_dir in $PATH
22371do
22372 IFS=$as_save_IFS
22373 test -z "$as_dir" && as_dir=.
22374 for ac_exec_ext in '' $ac_executable_extensions; do
22375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22376 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
22377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22378 break 2
22379 fi
22380done
22381done
22382
321d2b14
VZ
22383 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
22384fi
22385fi
247f5006 22386AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
321d2b14 22387if test -n "$AIX_CXX_LD"; then
247f5006
VZ
22388 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
22389echo "${ECHO_T}$AIX_CXX_LD" >&6
321d2b14 22390else
247f5006
VZ
22391 echo "$as_me:$LINENO: result: no" >&5
22392echo "${ECHO_T}no" >&6
321d2b14
VZ
22393fi
22394
8284b0c5 22395
321d2b14 22396 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
22397 ;;
22398
22399 *-*-cygwin* | *-*-mingw32* )
22400
22401 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
22402
22403 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
22404 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
22405
22406 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
22407
22408 if test "$wxUSE_OPENGL" = "yes"; then
22409 WX_ALL_INSTALLED="preinstall_gl"
22410 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
22411 else
22412 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
22413 fi
22414 ;;
22415
22416 *-*-beos* )
22417 SHARED_LD="${LD} -shared -o"
22418 ;;
22419
22420 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
22421 *-*-sunos4* | \
22422 *-*-irix5* | *-*-irix6* | \
22423 *-*-osf* | \
22424 *-*-dgux5* | \
22425 *-*-sysv5* )
22426 ;;
22427
22428 *)
247f5006
VZ
22429 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
22430echo "$as_me: error: unknown system type $host." >&2;}
22431 { (exit 1); exit 1; }; }
21d1c967
GD
22432 esac
22433
22434 if test "x$WX_TARGET_LIBRARY" = "x"; then
22435 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
22436 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
22437 fi
22438
22439 WX_TARGET_LIBRARY_TYPE="so"
22440 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 22441fi
10f2d63a 22442
21d1c967
GD
22443if test "$wxUSE_SHARED" = "no"; then
22444
22445 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
22446 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
22447 fi
22448
22449 if test "$wxUSE_MAC" = 1; then
22450 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
22451 fi
22452
22453 if test "$wxUSE_OPENGL" = "yes"; then
22454 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
22455 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
22456 else
22457 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
22458 fi
22459
22460 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
22461 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
22462
22463 WX_TARGET_LIBRARY_TYPE="a"
22464 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 22465fi
1e487827 22466
21d1c967
GD
22467if test "$wxUSE_MAC" = 1; then
22468 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
22469 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
22470 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
22471 # Extract the first word of "Rez", so it can be a program name with args.
22472set dummy Rez; ac_word=$2
247f5006
VZ
22473echo "$as_me:$LINENO: checking for $ac_word" >&5
22474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22475if test "${ac_cv_prog_RESCOMP+set}" = set; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 22477else
21d1c967
GD
22478 if test -n "$RESCOMP"; then
22479 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 22480else
247f5006
VZ
22481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22482for as_dir in $PATH
22483do
22484 IFS=$as_save_IFS
22485 test -z "$as_dir" && as_dir=.
22486 for ac_exec_ext in '' $ac_executable_extensions; do
22487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22488 ac_cv_prog_RESCOMP="Rez"
22489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22490 break 2
22491 fi
22492done
22493done
22494
21d1c967 22495 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 22496fi
b93d0d08 22497fi
247f5006 22498RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 22499if test -n "$RESCOMP"; then
247f5006
VZ
22500 echo "$as_me:$LINENO: result: $RESCOMP" >&5
22501echo "${ECHO_T}$RESCOMP" >&6
90dd450c 22502else
247f5006
VZ
22503 echo "$as_me:$LINENO: result: no" >&5
22504echo "${ECHO_T}no" >&6
90dd450c 22505fi
b93d0d08 22506
21d1c967
GD
22507 # Extract the first word of "DeRez", so it can be a program name with args.
22508set dummy DeRez; ac_word=$2
247f5006
VZ
22509echo "$as_me:$LINENO: checking for $ac_word" >&5
22510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22511if test "${ac_cv_prog_DEREZ+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 22513else
21d1c967
GD
22514 if test -n "$DEREZ"; then
22515 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 22516else
247f5006
VZ
22517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22518for as_dir in $PATH
22519do
22520 IFS=$as_save_IFS
22521 test -z "$as_dir" && as_dir=.
22522 for ac_exec_ext in '' $ac_executable_extensions; do
22523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22524 ac_cv_prog_DEREZ="DeRez"
22525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22526 break 2
22527 fi
22528done
22529done
22530
21d1c967 22531 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 22532fi
90dd450c 22533fi
247f5006 22534DEREZ=$ac_cv_prog_DEREZ
21d1c967 22535if test -n "$DEREZ"; then
247f5006
VZ
22536 echo "$as_me:$LINENO: result: $DEREZ" >&5
22537echo "${ECHO_T}$DEREZ" >&6
90dd450c 22538else
247f5006
VZ
22539 echo "$as_me:$LINENO: result: no" >&5
22540echo "${ECHO_T}no" >&6
3a922bb4 22541fi
698dcdb6 22542
21d1c967
GD
22543 MACOSX_BUNDLE="bundle"
22544 if test "$wxUSE_SHARED" = "yes"; then
22545 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
22546 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
22547 else
22548 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
22549 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
22550 fi
22551else
22552 if test "$wxUSE_PM" = 1; then
22553 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 22554 fi
4f14bcd8 22555fi
10f2d63a 22556
8284b0c5 22557
247f5006
VZ
22558echo "$as_me:$LINENO: checking for mode_t" >&5
22559echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
22560if test "${ac_cv_type_mode_t+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 22562else
247f5006
VZ
22563 cat >conftest.$ac_ext <<_ACEOF
22564#line $LINENO "configure"
52127426 22565#include "confdefs.h"
247f5006
VZ
22566$ac_includes_default
22567#ifdef F77_DUMMY_MAIN
22568# ifdef __cplusplus
22569 extern "C"
22570# endif
22571 int F77_DUMMY_MAIN() { return 1; }
8284b0c5 22572#endif
247f5006
VZ
22573int
22574main ()
22575{
22576if ((mode_t *) 0)
22577 return 0;
22578if (sizeof (mode_t))
22579 return 0;
22580 ;
22581 return 0;
22582}
22583_ACEOF
22584rm -f conftest.$ac_objext
22585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22586 (eval $ac_compile) 2>&5
22587 ac_status=$?
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); } &&
22590 { ac_try='test -s conftest.$ac_objext'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22593 ac_status=$?
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; }; then
8284b0c5 22596 ac_cv_type_mode_t=yes
7b4a847f 22597else
247f5006
VZ
22598 echo "$as_me: failed program was:" >&5
22599cat conftest.$ac_ext >&5
22600ac_cv_type_mode_t=no
52127426 22601fi
247f5006 22602rm -f conftest.$ac_objext conftest.$ac_ext
52127426 22603fi
247f5006
VZ
22604echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22605echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22606if test $ac_cv_type_mode_t = yes; then
22607 :
22608else
22609
22610cat >>confdefs.h <<_ACEOF
8284b0c5 22611#define mode_t int
247f5006 22612_ACEOF
8284b0c5
MB
22613
22614fi
22615
247f5006
VZ
22616echo "$as_me:$LINENO: checking for off_t" >&5
22617echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22618if test "${ac_cv_type_off_t+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 22620else
247f5006
VZ
22621 cat >conftest.$ac_ext <<_ACEOF
22622#line $LINENO "configure"
8284b0c5 22623#include "confdefs.h"
247f5006
VZ
22624$ac_includes_default
22625#ifdef F77_DUMMY_MAIN
22626# ifdef __cplusplus
22627 extern "C"
22628# endif
22629 int F77_DUMMY_MAIN() { return 1; }
8284b0c5 22630#endif
247f5006
VZ
22631int
22632main ()
22633{
22634if ((off_t *) 0)
22635 return 0;
22636if (sizeof (off_t))
22637 return 0;
22638 ;
22639 return 0;
22640}
22641_ACEOF
22642rm -f conftest.$ac_objext
22643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22644 (eval $ac_compile) 2>&5
22645 ac_status=$?
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); } &&
22648 { ac_try='test -s conftest.$ac_objext'
22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650 (eval $ac_try) 2>&5
22651 ac_status=$?
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); }; }; then
8284b0c5 22654 ac_cv_type_off_t=yes
5c6fa7d2 22655else
247f5006
VZ
22656 echo "$as_me: failed program was:" >&5
22657cat conftest.$ac_ext >&5
22658ac_cv_type_off_t=no
8284b0c5 22659fi
247f5006 22660rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 22661fi
247f5006
VZ
22662echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22663echo "${ECHO_T}$ac_cv_type_off_t" >&6
22664if test $ac_cv_type_off_t = yes; then
22665 :
22666else
22667
22668cat >>confdefs.h <<_ACEOF
90dd450c 22669#define off_t long
247f5006 22670_ACEOF
10f2d63a 22671
90dd450c 22672fi
10f2d63a 22673
247f5006
VZ
22674echo "$as_me:$LINENO: checking for pid_t" >&5
22675echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22676if test "${ac_cv_type_pid_t+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 22678else
247f5006
VZ
22679 cat >conftest.$ac_ext <<_ACEOF
22680#line $LINENO "configure"
10f2d63a 22681#include "confdefs.h"
247f5006
VZ
22682$ac_includes_default
22683#ifdef F77_DUMMY_MAIN
22684# ifdef __cplusplus
22685 extern "C"
22686# endif
22687 int F77_DUMMY_MAIN() { return 1; }
8284b0c5 22688#endif
247f5006
VZ
22689int
22690main ()
22691{
22692if ((pid_t *) 0)
22693 return 0;
22694if (sizeof (pid_t))
22695 return 0;
22696 ;
22697 return 0;
22698}
22699_ACEOF
22700rm -f conftest.$ac_objext
22701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22702 (eval $ac_compile) 2>&5
22703 ac_status=$?
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } &&
22706 { ac_try='test -s conftest.$ac_objext'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; }; then
90dd450c 22712 ac_cv_type_pid_t=yes
698dcdb6 22713else
247f5006
VZ
22714 echo "$as_me: failed program was:" >&5
22715cat conftest.$ac_ext >&5
22716ac_cv_type_pid_t=no
579d8138 22717fi
247f5006 22718rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 22719fi
247f5006
VZ
22720echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22721echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22722if test $ac_cv_type_pid_t = yes; then
22723 :
22724else
22725
22726cat >>confdefs.h <<_ACEOF
90dd450c 22727#define pid_t int
247f5006 22728_ACEOF
10f2d63a 22729
7b4a847f
RR
22730fi
22731
247f5006
VZ
22732echo "$as_me:$LINENO: checking for size_t" >&5
22733echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22734if test "${ac_cv_type_size_t+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 22736else
247f5006
VZ
22737 cat >conftest.$ac_ext <<_ACEOF
22738#line $LINENO "configure"
7b4a847f 22739#include "confdefs.h"
247f5006
VZ
22740$ac_includes_default
22741#ifdef F77_DUMMY_MAIN
22742# ifdef __cplusplus
22743 extern "C"
22744# endif
22745 int F77_DUMMY_MAIN() { return 1; }
8284b0c5 22746#endif
247f5006
VZ
22747int
22748main ()
22749{
22750if ((size_t *) 0)
22751 return 0;
22752if (sizeof (size_t))
22753 return 0;
22754 ;
22755 return 0;
22756}
22757_ACEOF
22758rm -f conftest.$ac_objext
22759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22760 (eval $ac_compile) 2>&5
22761 ac_status=$?
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } &&
22764 { ac_try='test -s conftest.$ac_objext'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22767 ac_status=$?
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
90dd450c 22770 ac_cv_type_size_t=yes
18dbb1f6 22771else
247f5006
VZ
22772 echo "$as_me: failed program was:" >&5
22773cat conftest.$ac_ext >&5
22774ac_cv_type_size_t=no
52127426 22775fi
247f5006 22776rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 22777fi
247f5006
VZ
22778echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22779echo "${ECHO_T}$ac_cv_type_size_t" >&6
22780if test $ac_cv_type_size_t = yes; then
22781 :
22782else
22783
22784cat >>confdefs.h <<_ACEOF
90dd450c 22785#define size_t unsigned
247f5006 22786_ACEOF
90dd450c
VZ
22787
22788fi
22789
247f5006
VZ
22790echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22791echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22792if test "${ac_cv_type_uid_t+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 22794else
247f5006
VZ
22795 cat >conftest.$ac_ext <<_ACEOF
22796#line $LINENO "configure"
b3e8d00a 22797#include "confdefs.h"
90dd450c 22798#include <sys/types.h>
247f5006
VZ
22799
22800_ACEOF
90dd450c
VZ
22801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22802 egrep "uid_t" >/dev/null 2>&1; then
90dd450c 22803 ac_cv_type_uid_t=yes
b3e8d00a 22804else
90dd450c 22805 ac_cv_type_uid_t=no
b3e8d00a 22806fi
90dd450c 22807rm -f conftest*
b3e8d00a 22808
4f14bcd8 22809fi
247f5006
VZ
22810echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22811echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8284b0c5 22812if test $ac_cv_type_uid_t = no; then
247f5006
VZ
22813
22814cat >>confdefs.h <<\_ACEOF
90dd450c 22815#define uid_t int
247f5006 22816_ACEOF
90dd450c 22817
247f5006
VZ
22818
22819cat >>confdefs.h <<\_ACEOF
90dd450c 22820#define gid_t int
247f5006 22821_ACEOF
4f14bcd8 22822
b3e8d00a 22823fi
b3e8d00a 22824
8284b0c5
MB
22825
22826
247f5006
VZ
22827
22828ac_ext=cc
4f14bcd8 22829ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
22830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
90dd450c 22833
247f5006
VZ
22834echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
22835echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
22836if test "${wx_cv_size_t_is_uint+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22838else
247f5006
VZ
22839 cat >conftest.$ac_ext <<_ACEOF
22840#line $LINENO "configure"
10f2d63a 22841#include "confdefs.h"
90dd450c 22842#include <stddef.h>
247f5006
VZ
22843#ifdef F77_DUMMY_MAIN
22844# ifdef __cplusplus
22845 extern "C"
22846# endif
22847 int F77_DUMMY_MAIN() { return 1; }
22848#endif
22849int
22850main ()
22851{
90dd450c
VZ
22852
22853 return 0; }
22854
22855 struct Foo { void foo(size_t); void foo(unsigned int); };
22856
22857 int bar() {
247f5006
VZ
22858
22859 ;
22860 return 0;
22861}
22862_ACEOF
22863rm -f conftest.$ac_objext
22864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22865 (eval $ac_compile) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } &&
22869 { ac_try='test -s conftest.$ac_objext'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22872 ac_status=$?
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; }; then
90dd450c 22875 wx_cv_size_t_is_uint=no
698dcdb6 22876else
247f5006
VZ
22877 echo "$as_me: failed program was:" >&5
22878cat conftest.$ac_ext >&5
22879wx_cv_size_t_is_uint=yes
52127426 22880
5c6fa7d2 22881fi
247f5006 22882rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 22883
247f5006
VZ
22884fi
22885echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
22886echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 22887
90dd450c 22888if test "$wx_cv_size_t_is_uint" = "yes"; then
247f5006 22889 cat >>confdefs.h <<\_ACEOF
90dd450c 22890#define wxSIZE_T_IS_UINT 1
247f5006 22891_ACEOF
698dcdb6 22892
90dd450c 22893else
247f5006
VZ
22894 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
22895echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
22896if test "${wx_cv_size_t_is_ulong+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 22898else
247f5006
VZ
22899 cat >conftest.$ac_ext <<_ACEOF
22900#line $LINENO "configure"
10f2d63a 22901#include "confdefs.h"
90dd450c 22902#include <stddef.h>
247f5006
VZ
22903#ifdef F77_DUMMY_MAIN
22904# ifdef __cplusplus
22905 extern "C"
22906# endif
22907 int F77_DUMMY_MAIN() { return 1; }
22908#endif
22909int
22910main ()
22911{
90dd450c
VZ
22912
22913 return 0; }
22914
22915 struct Foo { void foo(size_t); void foo(unsigned long); };
22916
22917 int bar() {
247f5006
VZ
22918
22919 ;
22920 return 0;
22921}
22922_ACEOF
22923rm -f conftest.$ac_objext
22924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22925 (eval $ac_compile) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } &&
22929 { ac_try='test -s conftest.$ac_objext'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
90dd450c 22935 wx_cv_size_t_is_ulong=no
698dcdb6 22936else
247f5006
VZ
22937 echo "$as_me: failed program was:" >&5
22938cat conftest.$ac_ext >&5
22939wx_cv_size_t_is_ulong=yes
22940
5c6fa7d2 22941fi
247f5006 22942rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 22943
247f5006
VZ
22944fi
22945echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
22946echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 22947
90dd450c 22948 if test "$wx_cv_size_t_is_ulong" = "yes"; then
247f5006 22949 cat >>confdefs.h <<\_ACEOF
90dd450c 22950#define wxSIZE_T_IS_ULONG 1
247f5006 22951_ACEOF
4f14bcd8
GD
22952
22953 fi
90dd450c 22954fi
1e487827 22955
90dd450c 22956ac_ext=c
4f14bcd8 22957ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
22958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22960ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 22961
5c6fa7d2 22962
8284b0c5 22963
247f5006
VZ
22964echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
22965echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
22966if test "${wx_cv_struct_pw_gecos+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 22968else
247f5006
VZ
22969
22970 cat >conftest.$ac_ext <<_ACEOF
22971#line $LINENO "configure"
4f14bcd8 22972#include "confdefs.h"
90dd450c 22973#include <pwd.h>
247f5006
VZ
22974#ifdef F77_DUMMY_MAIN
22975# ifdef __cplusplus
22976 extern "C"
22977# endif
22978 int F77_DUMMY_MAIN() { return 1; }
22979#endif
22980int
22981main ()
22982{
f6bcfd97 22983
90dd450c
VZ
22984 char *p;
22985 struct passwd *pw;
22986 p = pw->pw_gecos;
247f5006
VZ
22987
22988 ;
22989 return 0;
22990}
22991_ACEOF
22992rm -f conftest.$ac_objext
22993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22994 (eval $ac_compile) 2>&5
22995 ac_status=$?
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } &&
22998 { ac_try='test -s conftest.$ac_objext'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23001 ac_status=$?
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; }; then
23004
90dd450c 23005 wx_cv_struct_pw_gecos=yes
247f5006 23006
10f2d63a 23007else
247f5006
VZ
23008 echo "$as_me: failed program was:" >&5
23009cat conftest.$ac_ext >&5
23010
90dd450c 23011 wx_cv_struct_pw_gecos=no
247f5006 23012
52127426 23013
5c6fa7d2 23014fi
247f5006 23015rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 23016
247f5006
VZ
23017
23018fi
23019echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
23020echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 23021
90dd450c 23022if test "$wx_cv_struct_pw_gecos" = "yes"; then
247f5006 23023 cat >>confdefs.h <<\_ACEOF
90dd450c 23024#define HAVE_PW_GECOS 1
247f5006 23025_ACEOF
c521c494 23026
90dd450c 23027fi
4f14bcd8 23028
8284b0c5 23029
d29b553b 23030if test "$wx_cv_sizeof_wchar_t" != "0"; then
247f5006 23031 cat >>confdefs.h <<\_ACEOF
d74f4b5a 23032#define wxUSE_WCHAR_T 1
247f5006 23033_ACEOF
d74f4b5a 23034
8284b0c5 23035
d74f4b5a
VZ
23036 WCSLEN_FOUND=0
23037 WCHAR_LINK=
247f5006
VZ
23038
23039for ac_func in wcslen
7a30264c 23040do
247f5006
VZ
23041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23042echo "$as_me:$LINENO: checking for $ac_func" >&5
23043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23044if eval "test \"\${$as_ac_var+set}\" = set"; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23046else
23047 cat >conftest.$ac_ext <<_ACEOF
23048#line $LINENO "configure"
4f14bcd8 23049#include "confdefs.h"
7a30264c 23050/* System header to define __stub macros and hopefully few prototypes,
247f5006 23051 which can conflict with char $ac_func (); below. */
7a30264c 23052#include <assert.h>
4f14bcd8 23053/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
23054#ifdef __cplusplus
23055extern "C"
23056#endif
4f14bcd8 23057/* We use char because int might match the return type of a gcc2
247f5006
VZ
23058 builtin and then its argument prototype would still apply. */
23059char $ac_func ();
23060char (*f) ();
23061
23062#ifdef F77_DUMMY_MAIN
23063# ifdef __cplusplus
23064 extern "C"
23065# endif
23066 int F77_DUMMY_MAIN() { return 1; }
23067#endif
23068int
23069main ()
23070{
7a30264c
VZ
23071/* The GNU C library defines this for functions which it implements
23072 to always fail with ENOSYS. Some functions are actually named
23073 something starting with __ and the normal name is an alias. */
23074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23075choke me
23076#else
247f5006 23077f = $ac_func;
7a30264c
VZ
23078#endif
23079
247f5006
VZ
23080 ;
23081 return 0;
23082}
23083_ACEOF
23084rm -f conftest.$ac_objext conftest$ac_exeext
23085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23086 (eval $ac_link) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } &&
23090 { ac_try='test -s conftest$ac_exeext'
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; }; then
23096 eval "$as_ac_var=yes"
23097else
23098 echo "$as_me: failed program was:" >&5
23099cat conftest.$ac_ext >&5
23100eval "$as_ac_var=no"
23101fi
23102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23103fi
23104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23105echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23106if test `eval echo '${'$as_ac_var'}'` = yes; then
23107 cat >>confdefs.h <<_ACEOF
23108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23109_ACEOF
d74f4b5a 23110 WCSLEN_FOUND=1
7a30264c
VZ
23111fi
23112done
9d8deca0 23113
8284b0c5 23114
d74f4b5a 23115 if test "$WCSLEN_FOUND" = 0; then
7a30264c 23116 if test "$TOOLKIT" = "MSW"; then
247f5006
VZ
23117 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
23118echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
23119if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 23121else
247f5006 23122 ac_check_lib_save_LIBS=$LIBS
7a30264c 23123LIBS="-lmsvcrt $LIBS"
247f5006
VZ
23124cat >conftest.$ac_ext <<_ACEOF
23125#line $LINENO "configure"
10f2d63a 23126#include "confdefs.h"
247f5006 23127
4f14bcd8 23128/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
23129#ifdef __cplusplus
23130extern "C"
23131#endif
4f14bcd8 23132/* We use char because int might match the return type of a gcc2
247f5006
VZ
23133 builtin and then its argument prototype would still apply. */
23134char wcslen ();
23135#ifdef F77_DUMMY_MAIN
23136# ifdef __cplusplus
23137 extern "C"
23138# endif
23139 int F77_DUMMY_MAIN() { return 1; }
23140#endif
23141int
23142main ()
23143{
23144wcslen ();
23145 ;
23146 return 0;
23147}
23148_ACEOF
23149rm -f conftest.$ac_objext conftest$ac_exeext
23150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23151 (eval $ac_link) 2>&5
23152 ac_status=$?
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
23155 { ac_try='test -s conftest$ac_exeext'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; }; then
23161 ac_cv_lib_msvcrt_wcslen=yes
23162else
23163 echo "$as_me: failed program was:" >&5
23164cat conftest.$ac_ext >&5
23165ac_cv_lib_msvcrt_wcslen=no
23166fi
23167rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23168LIBS=$ac_check_lib_save_LIBS
23169fi
23170echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
23171echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
23172if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 23173 WCHAR_OK=1
d29b553b 23174fi
698dcdb6 23175
7a30264c 23176 else
247f5006
VZ
23177 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
23178echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
23179if test "${ac_cv_lib_w_wcslen+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 23181else
247f5006 23182 ac_check_lib_save_LIBS=$LIBS
7a30264c 23183LIBS="-lw $LIBS"
247f5006
VZ
23184cat >conftest.$ac_ext <<_ACEOF
23185#line $LINENO "configure"
95c8801c 23186#include "confdefs.h"
247f5006 23187
4f14bcd8 23188/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
23189#ifdef __cplusplus
23190extern "C"
23191#endif
4f14bcd8 23192/* We use char because int might match the return type of a gcc2
247f5006
VZ
23193 builtin and then its argument prototype would still apply. */
23194char wcslen ();
23195#ifdef F77_DUMMY_MAIN
23196# ifdef __cplusplus
23197 extern "C"
23198# endif
23199 int F77_DUMMY_MAIN() { return 1; }
23200#endif
23201int
23202main ()
23203{
23204wcslen ();
23205 ;
23206 return 0;
23207}
23208_ACEOF
23209rm -f conftest.$ac_objext conftest$ac_exeext
23210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23211 (eval $ac_link) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } &&
23215 { ac_try='test -s conftest$ac_exeext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_lib_w_wcslen=yes
23222else
23223 echo "$as_me: failed program was:" >&5
23224cat conftest.$ac_ext >&5
23225ac_cv_lib_w_wcslen=no
23226fi
23227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23228LIBS=$ac_check_lib_save_LIBS
23229fi
23230echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
23231echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
23232if test $ac_cv_lib_w_wcslen = yes; then
52127426 23233
7a30264c 23234 WCHAR_LINK=" -lw"
d74f4b5a 23235 WCSLEN_FOUND=1
247f5006 23236
4f14bcd8 23237fi
10f2d63a 23238
7a30264c 23239 fi
d29b553b 23240 fi
95c8801c 23241
d74f4b5a 23242 if test "$WCSLEN_FOUND" = 1; then
247f5006 23243 cat >>confdefs.h <<\_ACEOF
d74f4b5a 23244#define HAVE_WCSLEN 1
247f5006 23245_ACEOF
10f2d63a 23246
d74f4b5a 23247 fi
52127426 23248
247f5006
VZ
23249
23250for ac_func in wcsrtombs
eb4efbdc 23251do
247f5006
VZ
23252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23253echo "$as_me:$LINENO: checking for $ac_func" >&5
23254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23255if eval "test \"\${$as_ac_var+set}\" = set"; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23257else
23258 cat >conftest.$ac_ext <<_ACEOF
23259#line $LINENO "configure"
eb4efbdc
VZ
23260#include "confdefs.h"
23261/* System header to define __stub macros and hopefully few prototypes,
247f5006 23262 which can conflict with char $ac_func (); below. */
eb4efbdc
VZ
23263#include <assert.h>
23264/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
23265#ifdef __cplusplus
23266extern "C"
eb4efbdc 23267#endif
4f14bcd8 23268/* We use char because int might match the return type of a gcc2
247f5006
VZ
23269 builtin and then its argument prototype would still apply. */
23270char $ac_func ();
23271char (*f) ();
23272
23273#ifdef F77_DUMMY_MAIN
23274# ifdef __cplusplus
23275 extern "C"
23276# endif
23277 int F77_DUMMY_MAIN() { return 1; }
4f14bcd8 23278#endif
247f5006
VZ
23279int
23280main ()
23281{
10f2d63a
VZ
23282/* The GNU C library defines this for functions which it implements
23283 to always fail with ENOSYS. Some functions are actually named
23284 something starting with __ and the normal name is an alias. */
247f5006 23285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
23286choke me
23287#else
247f5006 23288f = $ac_func;
10f2d63a
VZ
23289#endif
23290
247f5006
VZ
23291 ;
23292 return 0;
23293}
23294_ACEOF
23295rm -f conftest.$ac_objext conftest$ac_exeext
23296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23297 (eval $ac_link) 2>&5
23298 ac_status=$?
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } &&
23301 { ac_try='test -s conftest$ac_exeext'
23302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23303 (eval $ac_try) 2>&5
23304 ac_status=$?
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); }; }; then
23307 eval "$as_ac_var=yes"
23308else
23309 echo "$as_me: failed program was:" >&5
23310cat conftest.$ac_ext >&5
23311eval "$as_ac_var=no"
23312fi
23313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23314fi
23315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23317if test `eval echo '${'$as_ac_var'}'` = yes; then
23318 cat >>confdefs.h <<_ACEOF
23319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23320_ACEOF
270a909e 23321
4f14bcd8 23322fi
247f5006 23323done
1e487827 23324
af15babd 23325else
247f5006
VZ
23326 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
23327echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 23328fi
52127426 23329
8284b0c5 23330
af15babd 23331
247f5006
VZ
23332ac_ext=cc
23333ac_cpp='$CXXCPP $CPPFLAGS'
23334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4f14bcd8 23337
af15babd 23338
247f5006
VZ
23339
23340for ac_func in vsnprintf
23341do
23342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23343echo "$as_me:$LINENO: checking for $ac_func" >&5
23344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23345if eval "test \"\${$as_ac_var+set}\" = set"; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23347else
23348 cat >conftest.$ac_ext <<_ACEOF
23349#line $LINENO "configure"
af15babd 23350#include "confdefs.h"
247f5006
VZ
23351/* System header to define __stub macros and hopefully few prototypes,
23352 which can conflict with char $ac_func (); below. */
23353#include <assert.h>
23354/* Override any gcc2 internal prototype to avoid an error. */
23355#ifdef __cplusplus
23356extern "C"
23357#endif
23358/* We use char because int might match the return type of a gcc2
23359 builtin and then its argument prototype would still apply. */
23360char $ac_func ();
23361char (*f) ();
23362
23363#ifdef F77_DUMMY_MAIN
23364# ifdef __cplusplus
23365 extern "C"
23366# endif
23367 int F77_DUMMY_MAIN() { return 1; }
23368#endif
23369int
23370main ()
23371{
23372/* The GNU C library defines this for functions which it implements
23373 to always fail with ENOSYS. Some functions are actually named
23374 something starting with __ and the normal name is an alias. */
23375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23376choke me
23377#else
23378f = $ac_func;
23379#endif
af15babd 23380
247f5006
VZ
23381 ;
23382 return 0;
23383}
23384_ACEOF
23385rm -f conftest.$ac_objext conftest$ac_exeext
23386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23387 (eval $ac_link) 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } &&
23391 { ac_try='test -s conftest$ac_exeext'
23392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; }; then
23397 eval "$as_ac_var=yes"
23398else
23399 echo "$as_me: failed program was:" >&5
23400cat conftest.$ac_ext >&5
23401eval "$as_ac_var=no"
23402fi
23403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23404fi
23405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23406echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23407if test `eval echo '${'$as_ac_var'}'` = yes; then
23408 cat >>confdefs.h <<_ACEOF
23409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23410_ACEOF
52127426 23411
5c6fa7d2 23412fi
247f5006 23413done
8284b0c5 23414
4f14bcd8 23415
247f5006 23416if test "$wxUSE_UNICODE" = yes; then
4f14bcd8 23417
af15babd 23418
247f5006
VZ
23419
23420for ac_func in fputwc wprintf vswprintf
d74f4b5a 23421do
247f5006
VZ
23422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23423echo "$as_me:$LINENO: checking for $ac_func" >&5
23424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23425if eval "test \"\${$as_ac_var+set}\" = set"; then
23426 echo $ECHO_N "(cached) $ECHO_C" >&6
23427else
23428 cat >conftest.$ac_ext <<_ACEOF
23429#line $LINENO "configure"
d74f4b5a
VZ
23430#include "confdefs.h"
23431/* System header to define __stub macros and hopefully few prototypes,
247f5006 23432 which can conflict with char $ac_func (); below. */
d74f4b5a
VZ
23433#include <assert.h>
23434/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
23435#ifdef __cplusplus
23436extern "C"
23437#endif
d74f4b5a 23438/* We use char because int might match the return type of a gcc2
247f5006
VZ
23439 builtin and then its argument prototype would still apply. */
23440char $ac_func ();
23441char (*f) ();
23442
23443#ifdef F77_DUMMY_MAIN
23444# ifdef __cplusplus
23445 extern "C"
23446# endif
23447 int F77_DUMMY_MAIN() { return 1; }
23448#endif
23449int
23450main ()
23451{
d74f4b5a
VZ
23452/* The GNU C library defines this for functions which it implements
23453 to always fail with ENOSYS. Some functions are actually named
23454 something starting with __ and the normal name is an alias. */
23455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23456choke me
23457#else
247f5006 23458f = $ac_func;
d74f4b5a
VZ
23459#endif
23460
247f5006
VZ
23461 ;
23462 return 0;
23463}
23464_ACEOF
23465rm -f conftest.$ac_objext conftest$ac_exeext
23466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23467 (eval $ac_link) 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } &&
23471 { ac_try='test -s conftest$ac_exeext'
23472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); }; }; then
23477 eval "$as_ac_var=yes"
23478else
23479 echo "$as_me: failed program was:" >&5
23480cat conftest.$ac_ext >&5
23481eval "$as_ac_var=no"
23482fi
23483rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23484fi
23485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23486echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23487if test `eval echo '${'$as_ac_var'}'` = yes; then
23488 cat >>confdefs.h <<_ACEOF
23489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23490_ACEOF
d74f4b5a 23491
d74f4b5a
VZ
23492fi
23493done
23494
23495fi
23496
247f5006
VZ
23497ac_ext=c
23498ac_cpp='$CPP $CPPFLAGS'
23499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23501ac_compiler_gnu=$ac_cv_c_compiler_gnu
23502
23503
23504
23505
4f14bcd8 23506if test "$TOOLKIT" != "MSW"; then
af15babd 23507
8284b0c5
MB
23508
23509
247f5006
VZ
23510
23511ac_ext=cc
4f14bcd8 23512ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
23513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23516
8284b0c5 23517
52127426 23518
247f5006
VZ
23519
23520# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
23521if test "${with_libiconv_prefix+set}" = set; then
23522 withval="$with_libiconv_prefix"
247f5006 23523
b040e242
VS
23524 for dir in `echo "$withval" | tr : ' '`; do
23525 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23526 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23527 done
b040e242 23528
247f5006 23529fi;
b040e242 23530
247f5006
VZ
23531 echo "$as_me:$LINENO: checking for iconv" >&5
23532echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23533if test "${am_cv_func_iconv+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 23535else
247f5006 23536
b040e242
VS
23537 am_cv_func_iconv="no, consider installing GNU libiconv"
23538 am_cv_lib_iconv=no
247f5006
VZ
23539 cat >conftest.$ac_ext <<_ACEOF
23540#line $LINENO "configure"
af15babd 23541#include "confdefs.h"
b040e242 23542#include <stdlib.h>
4f14bcd8 23543#include <iconv.h>
247f5006
VZ
23544#ifdef F77_DUMMY_MAIN
23545# ifdef __cplusplus
23546 extern "C"
23547# endif
23548 int F77_DUMMY_MAIN() { return 1; }
23549#endif
23550int
23551main ()
23552{
b040e242
VS
23553iconv_t cd = iconv_open("","");
23554 iconv(cd,NULL,NULL,NULL,NULL);
23555 iconv_close(cd);
247f5006
VZ
23556 ;
23557 return 0;
23558}
23559_ACEOF
23560rm -f conftest.$ac_objext conftest$ac_exeext
23561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562 (eval $ac_link) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } &&
23566 { ac_try='test -s conftest$ac_exeext'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
b040e242 23572 am_cv_func_iconv=yes
af15babd 23573else
247f5006
VZ
23574 echo "$as_me: failed program was:" >&5
23575cat conftest.$ac_ext >&5
b040e242 23576fi
247f5006 23577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
23578 if test "$am_cv_func_iconv" != yes; then
23579 am_save_LIBS="$LIBS"
23580 LIBS="$LIBS -liconv"
247f5006
VZ
23581 cat >conftest.$ac_ext <<_ACEOF
23582#line $LINENO "configure"
b040e242
VS
23583#include "confdefs.h"
23584#include <stdlib.h>
23585#include <iconv.h>
247f5006
VZ
23586#ifdef F77_DUMMY_MAIN
23587# ifdef __cplusplus
23588 extern "C"
23589# endif
23590 int F77_DUMMY_MAIN() { return 1; }
23591#endif
23592int
23593main ()
23594{
b040e242
VS
23595iconv_t cd = iconv_open("","");
23596 iconv(cd,NULL,NULL,NULL,NULL);
23597 iconv_close(cd);
247f5006
VZ
23598 ;
23599 return 0;
23600}
23601_ACEOF
23602rm -f conftest.$ac_objext conftest$ac_exeext
23603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23604 (eval $ac_link) 2>&5
23605 ac_status=$?
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } &&
23608 { ac_try='test -s conftest$ac_exeext'
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; }; then
b040e242
VS
23614 am_cv_lib_iconv=yes
23615 am_cv_func_iconv=yes
23616else
247f5006
VZ
23617 echo "$as_me: failed program was:" >&5
23618cat conftest.$ac_ext >&5
af15babd 23619fi
247f5006 23620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
23621 LIBS="$am_save_LIBS"
23622 fi
5c6fa7d2 23623
247f5006
VZ
23624fi
23625echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23626echo "${ECHO_T}$am_cv_func_iconv" >&6
8284b0c5 23627 if test "$am_cv_func_iconv" = yes; then
247f5006
VZ
23628
23629cat >>confdefs.h <<\_ACEOF
b040e242 23630#define HAVE_ICONV 1
247f5006 23631_ACEOF
b040e242 23632
247f5006
VZ
23633 echo "$as_me:$LINENO: checking if iconv needs const" >&5
23634echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
23635if test "${wx_cv_func_iconv_const+set}" = set; then
23636 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 23637else
247f5006
VZ
23638 cat >conftest.$ac_ext <<_ACEOF
23639#line $LINENO "configure"
b040e242
VS
23640#include "confdefs.h"
23641
23642#include <stdlib.h>
23643#include <iconv.h>
23644extern
23645#ifdef __cplusplus
23646"C"
23647#endif
23648#if defined(__STDC__) || defined(__cplusplus)
23649size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23650#else
23651size_t iconv();
23652#endif
af15babd 23653
247f5006
VZ
23654#ifdef F77_DUMMY_MAIN
23655# ifdef __cplusplus
23656 extern "C"
23657# endif
23658 int F77_DUMMY_MAIN() { return 1; }
23659#endif
23660int
23661main ()
23662{
23663
23664 ;
23665 return 0;
23666}
23667_ACEOF
23668rm -f conftest.$ac_objext
23669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23670 (eval $ac_compile) 2>&5
23671 ac_status=$?
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } &&
23674 { ac_try='test -s conftest.$ac_objext'
23675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); }; }; then
b7043674 23680 wx_cv_func_iconv_const="no"
b040e242 23681else
247f5006
VZ
23682 echo "$as_me: failed program was:" >&5
23683cat conftest.$ac_ext >&5
23684wx_cv_func_iconv_const="yes"
23685
5c6fa7d2 23686fi
247f5006 23687rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 23688
247f5006
VZ
23689fi
23690echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
23691echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
23692
23693 iconv_const=
1c405bb5 23694 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
23695 iconv_const="const"
23696 fi
23697
247f5006
VZ
23698
23699cat >>confdefs.h <<_ACEOF
f09359cf 23700#define ICONV_CONST $iconv_const
247f5006 23701_ACEOF
b040e242
VS
23702
23703 fi
23704 LIBICONV=
23705 if test "$am_cv_lib_iconv" = yes; then
23706 LIBICONV="-liconv"
23707 fi
247f5006 23708
b040e242
VS
23709
23710LIBS="$LIBICONV $LIBS"
4f14bcd8 23711ac_ext=c
4f14bcd8 23712ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
23713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23715ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 23716
5c6fa7d2 23717
8284b0c5 23718if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
247f5006
VZ
23719
23720for ac_func in sigaction
af15babd 23721do
247f5006
VZ
23722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23723echo "$as_me:$LINENO: checking for $ac_func" >&5
23724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23725if eval "test \"\${$as_ac_var+set}\" = set"; then
23726 echo $ECHO_N "(cached) $ECHO_C" >&6
23727else
23728 cat >conftest.$ac_ext <<_ACEOF
23729#line $LINENO "configure"
af15babd
VZ
23730#include "confdefs.h"
23731/* System header to define __stub macros and hopefully few prototypes,
247f5006 23732 which can conflict with char $ac_func (); below. */
af15babd
VZ
23733#include <assert.h>
23734/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
23735#ifdef __cplusplus
23736extern "C"
23737#endif
af15babd 23738/* We use char because int might match the return type of a gcc2
247f5006
VZ
23739 builtin and then its argument prototype would still apply. */
23740char $ac_func ();
23741char (*f) ();
23742
23743#ifdef F77_DUMMY_MAIN
23744# ifdef __cplusplus
23745 extern "C"
23746# endif
23747 int F77_DUMMY_MAIN() { return 1; }
23748#endif
23749int
23750main ()
23751{
af15babd
VZ
23752/* The GNU C library defines this for functions which it implements
23753 to always fail with ENOSYS. Some functions are actually named
23754 something starting with __ and the normal name is an alias. */
23755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23756choke me
23757#else
247f5006 23758f = $ac_func;
af15babd
VZ
23759#endif
23760
247f5006
VZ
23761 ;
23762 return 0;
23763}
23764_ACEOF
23765rm -f conftest.$ac_objext conftest$ac_exeext
23766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23767 (eval $ac_link) 2>&5
23768 ac_status=$?
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } &&
23771 { ac_try='test -s conftest$ac_exeext'
23772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23773 (eval $ac_try) 2>&5
23774 ac_status=$?
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); }; }; then
23777 eval "$as_ac_var=yes"
23778else
23779 echo "$as_me: failed program was:" >&5
23780cat conftest.$ac_ext >&5
23781eval "$as_ac_var=no"
23782fi
23783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23784fi
23785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23786echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23787if test `eval echo '${'$as_ac_var'}'` = yes; then
23788 cat >>confdefs.h <<_ACEOF
23789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23790_ACEOF
7b4a847f 23791
4f14bcd8
GD
23792fi
23793done
23794
8284b0c5 23795
4f14bcd8 23796 if test "$ac_cv_func_sigaction" = "no"; then
247f5006
VZ
23797 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
23798echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
23799 wxUSE_ON_FATAL_EXCEPTION=no
23800 fi
23801
23802 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
247f5006
VZ
23803
23804
23805 ac_ext=cc
5c6fa7d2 23806ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
23807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 23810
5c6fa7d2 23811
247f5006
VZ
23812 echo "$as_me:$LINENO: checking for sa_handler type" >&5
23813echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
23814if test "${wx_cv_type_sa_handler+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 23816else
247f5006
VZ
23817
23818 cat >conftest.$ac_ext <<_ACEOF
23819#line $LINENO "configure"
af15babd 23820#include "confdefs.h"
4f14bcd8 23821#include <signal.h>
247f5006
VZ
23822#ifdef F77_DUMMY_MAIN
23823# ifdef __cplusplus
23824 extern "C"
23825# endif
23826 int F77_DUMMY_MAIN() { return 1; }
23827#endif
23828int
23829main ()
23830{
4f14bcd8
GD
23831
23832 extern void testSigHandler(int);
23833
23834 struct sigaction sa;
23835 sa.sa_handler = testSigHandler;
247f5006
VZ
23836
23837 ;
23838 return 0;
23839}
23840_ACEOF
23841rm -f conftest.$ac_objext
23842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23843 (eval $ac_compile) 2>&5
23844 ac_status=$?
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } &&
23847 { ac_try='test -s conftest.$ac_objext'
23848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23849 (eval $ac_try) 2>&5
23850 ac_status=$?
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); }; }; then
23853
4f14bcd8 23854 wx_cv_type_sa_handler=int
247f5006 23855
af15babd 23856else
247f5006
VZ
23857 echo "$as_me: failed program was:" >&5
23858cat conftest.$ac_ext >&5
23859
4f14bcd8 23860 wx_cv_type_sa_handler=void
247f5006 23861
5c6fa7d2 23862fi
247f5006 23863rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 23864
247f5006
VZ
23865fi
23866echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
23867echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
23868
23869 ac_ext=c
4f14bcd8 23870ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
23871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23873ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 23874
8284b0c5 23875
247f5006 23876 cat >>confdefs.h <<_ACEOF
4f14bcd8 23877#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
247f5006 23878_ACEOF
af15babd 23879
4f14bcd8
GD
23880 fi
23881fi
af15babd 23882
247f5006 23883
4f14bcd8 23884for ac_func in vfork
af15babd 23885do
247f5006
VZ
23886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23887echo "$as_me:$LINENO: checking for $ac_func" >&5
23888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23889if eval "test \"\${$as_ac_var+set}\" = set"; then
23890 echo $ECHO_N "(cached) $ECHO_C" >&6
23891else
23892 cat >conftest.$ac_ext <<_ACEOF
23893#line $LINENO "configure"
af15babd
VZ
23894#include "confdefs.h"
23895/* System header to define __stub macros and hopefully few prototypes,
247f5006 23896 which can conflict with char $ac_func (); below. */
af15babd
VZ
23897#include <assert.h>
23898/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
23899#ifdef __cplusplus
23900extern "C"
23901#endif
af15babd 23902/* We use char because int might match the return type of a gcc2
247f5006
VZ
23903 builtin and then its argument prototype would still apply. */
23904char $ac_func ();
23905char (*f) ();
23906
23907#ifdef F77_DUMMY_MAIN
23908# ifdef __cplusplus
23909 extern "C"
23910# endif
23911 int F77_DUMMY_MAIN() { return 1; }
23912#endif
23913int
23914main ()
23915{
af15babd
VZ
23916/* The GNU C library defines this for functions which it implements
23917 to always fail with ENOSYS. Some functions are actually named
23918 something starting with __ and the normal name is an alias. */
23919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23920choke me
23921#else
247f5006 23922f = $ac_func;
af15babd
VZ
23923#endif
23924
247f5006
VZ
23925 ;
23926 return 0;
23927}
23928_ACEOF
23929rm -f conftest.$ac_objext conftest$ac_exeext
23930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23931 (eval $ac_link) 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); } &&
23935 { ac_try='test -s conftest$ac_exeext'
23936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937 (eval $ac_try) 2>&5
23938 ac_status=$?
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941 eval "$as_ac_var=yes"
23942else
23943 echo "$as_me: failed program was:" >&5
23944cat conftest.$ac_ext >&5
23945eval "$as_ac_var=no"
23946fi
23947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23948fi
23949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23950echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23951if test `eval echo '${'$as_ac_var'}'` = yes; then
23952 cat >>confdefs.h <<_ACEOF
23953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23954_ACEOF
af15babd 23955
af15babd
VZ
23956fi
23957done
23958
8284b0c5 23959
247f5006
VZ
23960
23961
ade35f11
VZ
23962for ac_func in mkstemp mktemp
23963do
247f5006
VZ
23964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23965echo "$as_me:$LINENO: checking for $ac_func" >&5
23966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23967if eval "test \"\${$as_ac_var+set}\" = set"; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969else
23970 cat >conftest.$ac_ext <<_ACEOF
23971#line $LINENO "configure"
ade35f11
VZ
23972#include "confdefs.h"
23973/* System header to define __stub macros and hopefully few prototypes,
247f5006 23974 which can conflict with char $ac_func (); below. */
ade35f11
VZ
23975#include <assert.h>
23976/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
23977#ifdef __cplusplus
23978extern "C"
23979#endif
ade35f11 23980/* We use char because int might match the return type of a gcc2
247f5006
VZ
23981 builtin and then its argument prototype would still apply. */
23982char $ac_func ();
23983char (*f) ();
23984
23985#ifdef F77_DUMMY_MAIN
23986# ifdef __cplusplus
23987 extern "C"
23988# endif
23989 int F77_DUMMY_MAIN() { return 1; }
23990#endif
23991int
23992main ()
23993{
ade35f11
VZ
23994/* The GNU C library defines this for functions which it implements
23995 to always fail with ENOSYS. Some functions are actually named
23996 something starting with __ and the normal name is an alias. */
23997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23998choke me
23999#else
247f5006 24000f = $ac_func;
ade35f11
VZ
24001#endif
24002
247f5006
VZ
24003 ;
24004 return 0;
24005}
24006_ACEOF
24007rm -f conftest.$ac_objext conftest$ac_exeext
24008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24009 (eval $ac_link) 2>&5
24010 ac_status=$?
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } &&
24013 { ac_try='test -s conftest$ac_exeext'
24014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24015 (eval $ac_try) 2>&5
24016 ac_status=$?
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); }; }; then
24019 eval "$as_ac_var=yes"
24020else
24021 echo "$as_me: failed program was:" >&5
24022cat conftest.$ac_ext >&5
24023eval "$as_ac_var=no"
24024fi
24025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24026fi
24027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24028echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24029if test `eval echo '${'$as_ac_var'}'` = yes; then
24030 cat >>confdefs.h <<_ACEOF
24031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24032_ACEOF
ade35f11 24033 break
ade35f11
VZ
24034fi
24035done
24036
8284b0c5 24037
247f5006
VZ
24038echo "$as_me:$LINENO: checking for statfs" >&5
24039echo $ECHO_N "checking for statfs... $ECHO_C" >&6
24040if test "${wx_cv_func_statfs+set}" = set; then
24041 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 24042else
247f5006
VZ
24043 cat >conftest.$ac_ext <<_ACEOF
24044#line $LINENO "configure"
4f14bcd8
GD
24045#include "confdefs.h"
24046
24047 #if defined(__BSD__)
24048 #include <sys/param.h>
24049 #include <sys/mount.h>
24050 #else
24051 #include <sys/vfs.h>
24052 #endif
247f5006
VZ
24053
24054#ifdef F77_DUMMY_MAIN
24055# ifdef __cplusplus
24056 extern "C"
24057# endif
24058 int F77_DUMMY_MAIN() { return 1; }
24059#endif
24060int
24061main ()
24062{
4f14bcd8
GD
24063
24064 long l;
24065 struct statfs fs;
24066 statfs("/", &fs);
24067 l = fs.f_bsize;
24068 l += fs.f_blocks;
24069 l += fs.f_bavail;
247f5006
VZ
24070
24071 ;
24072 return 0;
24073}
24074_ACEOF
24075rm -f conftest.$ac_objext
24076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24077 (eval $ac_compile) 2>&5
24078 ac_status=$?
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } &&
24081 { ac_try='test -s conftest.$ac_objext'
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; }; then
24087
4f14bcd8 24088 wx_cv_func_statfs=yes
247f5006 24089
4f14bcd8 24090else
247f5006
VZ
24091 echo "$as_me: failed program was:" >&5
24092cat conftest.$ac_ext >&5
24093
4f14bcd8 24094 wx_cv_func_statfs=no
247f5006 24095
52127426 24096
5c6fa7d2 24097fi
247f5006 24098rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 24099
247f5006
VZ
24100fi
24101echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
24102echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
24103
24104if test "$wx_cv_func_statfs" = "yes"; then
247f5006 24105 cat >>confdefs.h <<\_ACEOF
4f14bcd8 24106#define HAVE_STATFS 1
247f5006 24107_ACEOF
4f14bcd8
GD
24108
24109else
247f5006
VZ
24110 echo "$as_me:$LINENO: checking for statvfs" >&5
24111echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
24112if test "${wx_cv_func_statvfs+set}" = set; then
24113 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 24114else
247f5006
VZ
24115 cat >conftest.$ac_ext <<_ACEOF
24116#line $LINENO "configure"
af15babd 24117#include "confdefs.h"
af15babd 24118
4f14bcd8 24119 #include <sys/statvfs.h>
247f5006
VZ
24120
24121#ifdef F77_DUMMY_MAIN
24122# ifdef __cplusplus
24123 extern "C"
24124# endif
24125 int F77_DUMMY_MAIN() { return 1; }
24126#endif
24127int
24128main ()
24129{
af15babd 24130
4f14bcd8
GD
24131 long l;
24132 struct statvfs fs;
24133 statvfs("/", &fs);
24134 l = fs.f_bsize;
24135 l += fs.f_blocks;
24136 l += fs.f_bavail;
247f5006
VZ
24137
24138 ;
24139 return 0;
24140}
24141_ACEOF
24142rm -f conftest.$ac_objext
24143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24144 (eval $ac_compile) 2>&5
24145 ac_status=$?
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
24148 { ac_try='test -s conftest.$ac_objext'
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; }; then
24154
4f14bcd8 24155 wx_cv_func_statvfs=yes
247f5006 24156
af15babd 24157else
247f5006
VZ
24158 echo "$as_me: failed program was:" >&5
24159cat conftest.$ac_ext >&5
24160
4f14bcd8 24161 wx_cv_func_statvfs=no
247f5006
VZ
24162
24163
5c6fa7d2 24164fi
247f5006 24165rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 24166
247f5006
VZ
24167fi
24168echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
24169echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 24170
4f14bcd8 24171 if test "$wx_cv_func_statvfs" = "yes"; then
247f5006 24172 cat >>confdefs.h <<\_ACEOF
4f14bcd8 24173#define HAVE_STATVFS 1
247f5006 24174_ACEOF
af15babd 24175
4f14bcd8 24176 else
247f5006
VZ
24177 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
24178echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
4f14bcd8
GD
24179 fi
24180fi
af15babd 24181
4f14bcd8 24182if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
247f5006
VZ
24183
24184
24185for ac_func in fcntl flock
af15babd 24186do
247f5006
VZ
24187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24188echo "$as_me:$LINENO: checking for $ac_func" >&5
24189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24190if eval "test \"\${$as_ac_var+set}\" = set"; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24192else
24193 cat >conftest.$ac_ext <<_ACEOF
24194#line $LINENO "configure"
af15babd
VZ
24195#include "confdefs.h"
24196/* System header to define __stub macros and hopefully few prototypes,
247f5006 24197 which can conflict with char $ac_func (); below. */
af15babd
VZ
24198#include <assert.h>
24199/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24200#ifdef __cplusplus
24201extern "C"
24202#endif
af15babd 24203/* We use char because int might match the return type of a gcc2
247f5006
VZ
24204 builtin and then its argument prototype would still apply. */
24205char $ac_func ();
24206char (*f) ();
24207
24208#ifdef F77_DUMMY_MAIN
24209# ifdef __cplusplus
24210 extern "C"
24211# endif
24212 int F77_DUMMY_MAIN() { return 1; }
24213#endif
24214int
24215main ()
24216{
af15babd
VZ
24217/* The GNU C library defines this for functions which it implements
24218 to always fail with ENOSYS. Some functions are actually named
24219 something starting with __ and the normal name is an alias. */
24220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24221choke me
24222#else
247f5006 24223f = $ac_func;
af15babd
VZ
24224#endif
24225
247f5006
VZ
24226 ;
24227 return 0;
24228}
24229_ACEOF
24230rm -f conftest.$ac_objext conftest$ac_exeext
24231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24232 (eval $ac_link) 2>&5
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); } &&
24236 { ac_try='test -s conftest$ac_exeext'
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; }; then
24242 eval "$as_ac_var=yes"
24243else
24244 echo "$as_me: failed program was:" >&5
24245cat conftest.$ac_ext >&5
24246eval "$as_ac_var=no"
24247fi
24248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24249fi
24250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24252if test `eval echo '${'$as_ac_var'}'` = yes; then
24253 cat >>confdefs.h <<_ACEOF
24254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24255_ACEOF
4f14bcd8 24256 break
af15babd
VZ
24257fi
24258done
24259
8284b0c5 24260
4f14bcd8 24261 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
247f5006
VZ
24262 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
24263echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
24264 wxUSE_SNGLINST_CHECKER=no
24265 fi
24266fi
af15babd 24267
247f5006 24268
4f14bcd8 24269for ac_func in timegm
af15babd 24270do
247f5006
VZ
24271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24272echo "$as_me:$LINENO: checking for $ac_func" >&5
24273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24274if eval "test \"\${$as_ac_var+set}\" = set"; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24276else
24277 cat >conftest.$ac_ext <<_ACEOF
24278#line $LINENO "configure"
af15babd
VZ
24279#include "confdefs.h"
24280/* System header to define __stub macros and hopefully few prototypes,
247f5006 24281 which can conflict with char $ac_func (); below. */
af15babd
VZ
24282#include <assert.h>
24283/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24284#ifdef __cplusplus
24285extern "C"
24286#endif
af15babd 24287/* We use char because int might match the return type of a gcc2
247f5006
VZ
24288 builtin and then its argument prototype would still apply. */
24289char $ac_func ();
24290char (*f) ();
24291
24292#ifdef F77_DUMMY_MAIN
24293# ifdef __cplusplus
24294 extern "C"
24295# endif
24296 int F77_DUMMY_MAIN() { return 1; }
24297#endif
24298int
24299main ()
24300{
af15babd
VZ
24301/* The GNU C library defines this for functions which it implements
24302 to always fail with ENOSYS. Some functions are actually named
24303 something starting with __ and the normal name is an alias. */
247f5006
VZ
24304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24305choke me
24306#else
24307f = $ac_func;
24308#endif
24309
24310 ;
24311 return 0;
24312}
24313_ACEOF
24314rm -f conftest.$ac_objext conftest$ac_exeext
24315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24316 (eval $ac_link) 2>&5
24317 ac_status=$?
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } &&
24320 { ac_try='test -s conftest$ac_exeext'
24321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24322 (eval $ac_try) 2>&5
24323 ac_status=$?
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); }; }; then
24326 eval "$as_ac_var=yes"
24327else
24328 echo "$as_me: failed program was:" >&5
24329cat conftest.$ac_ext >&5
24330eval "$as_ac_var=no"
24331fi
24332rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24333fi
24334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24336if test `eval echo '${'$as_ac_var'}'` = yes; then
24337 cat >>confdefs.h <<_ACEOF
24338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24339_ACEOF
703e0a69 24340
af15babd
VZ
24341fi
24342done
24343
8284b0c5 24344
247f5006
VZ
24345
24346
4f14bcd8 24347for ac_func in putenv setenv
10f2d63a 24348do
247f5006
VZ
24349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24350echo "$as_me:$LINENO: checking for $ac_func" >&5
24351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24352if eval "test \"\${$as_ac_var+set}\" = set"; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24354else
24355 cat >conftest.$ac_ext <<_ACEOF
24356#line $LINENO "configure"
af15babd
VZ
24357#include "confdefs.h"
24358/* System header to define __stub macros and hopefully few prototypes,
247f5006 24359 which can conflict with char $ac_func (); below. */
af15babd
VZ
24360#include <assert.h>
24361/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24362#ifdef __cplusplus
24363extern "C"
24364#endif
af15babd 24365/* We use char because int might match the return type of a gcc2
247f5006
VZ
24366 builtin and then its argument prototype would still apply. */
24367char $ac_func ();
24368char (*f) ();
24369
24370#ifdef F77_DUMMY_MAIN
24371# ifdef __cplusplus
24372 extern "C"
24373# endif
24374 int F77_DUMMY_MAIN() { return 1; }
24375#endif
24376int
24377main ()
24378{
af15babd
VZ
24379/* The GNU C library defines this for functions which it implements
24380 to always fail with ENOSYS. Some functions are actually named
24381 something starting with __ and the normal name is an alias. */
24382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24383choke me
24384#else
247f5006 24385f = $ac_func;
af15babd
VZ
24386#endif
24387
247f5006
VZ
24388 ;
24389 return 0;
24390}
24391_ACEOF
24392rm -f conftest.$ac_objext conftest$ac_exeext
24393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24394 (eval $ac_link) 2>&5
24395 ac_status=$?
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); } &&
24398 { ac_try='test -s conftest$ac_exeext'
24399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; }; then
24404 eval "$as_ac_var=yes"
24405else
24406 echo "$as_me: failed program was:" >&5
24407cat conftest.$ac_ext >&5
24408eval "$as_ac_var=no"
24409fi
24410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24411fi
24412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24414if test `eval echo '${'$as_ac_var'}'` = yes; then
24415 cat >>confdefs.h <<_ACEOF
24416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24417_ACEOF
4f14bcd8 24418 break
af15babd 24419fi
af15babd
VZ
24420done
24421
8284b0c5 24422
4f14bcd8
GD
24423HAVE_SOME_SLEEP_FUNC=0
24424if test "$USE_BEOS" = 1; then
247f5006 24425 cat >>confdefs.h <<\_ACEOF
4f14bcd8 24426#define HAVE_SLEEP 1
247f5006 24427_ACEOF
af15babd 24428
4f14bcd8 24429 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
24430fi
24431
4f14bcd8 24432if test "$USE_DARWIN" = 1; then
247f5006 24433 cat >>confdefs.h <<\_ACEOF
4f14bcd8 24434#define HAVE_USLEEP 1
247f5006 24435_ACEOF
10f2d63a 24436
4f14bcd8 24437 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
24438fi
24439
4f14bcd8
GD
24440if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
24441 POSIX4_LINK=
247f5006
VZ
24442
24443for ac_func in nanosleep
4f14bcd8 24444do
247f5006
VZ
24445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24446echo "$as_me:$LINENO: checking for $ac_func" >&5
24447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24448if eval "test \"\${$as_ac_var+set}\" = set"; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24450else
24451 cat >conftest.$ac_ext <<_ACEOF
24452#line $LINENO "configure"
10f2d63a 24453#include "confdefs.h"
4f14bcd8 24454/* System header to define __stub macros and hopefully few prototypes,
247f5006 24455 which can conflict with char $ac_func (); below. */
4f14bcd8 24456#include <assert.h>
10f2d63a 24457/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24458#ifdef __cplusplus
24459extern "C"
24460#endif
10f2d63a 24461/* We use char because int might match the return type of a gcc2
247f5006
VZ
24462 builtin and then its argument prototype would still apply. */
24463char $ac_func ();
24464char (*f) ();
24465
24466#ifdef F77_DUMMY_MAIN
24467# ifdef __cplusplus
24468 extern "C"
24469# endif
24470 int F77_DUMMY_MAIN() { return 1; }
24471#endif
24472int
24473main ()
24474{
4f14bcd8
GD
24475/* The GNU C library defines this for functions which it implements
24476 to always fail with ENOSYS. Some functions are actually named
24477 something starting with __ and the normal name is an alias. */
24478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24479choke me
24480#else
247f5006 24481f = $ac_func;
4f14bcd8
GD
24482#endif
24483
247f5006
VZ
24484 ;
24485 return 0;
24486}
24487_ACEOF
24488rm -f conftest.$ac_objext conftest$ac_exeext
24489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24490 (eval $ac_link) 2>&5
24491 ac_status=$?
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } &&
24494 { ac_try='test -s conftest$ac_exeext'
24495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; }; then
24500 eval "$as_ac_var=yes"
24501else
24502 echo "$as_me: failed program was:" >&5
24503cat conftest.$ac_ext >&5
24504eval "$as_ac_var=no"
24505fi
24506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24507fi
24508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24510if test `eval echo '${'$as_ac_var'}'` = yes; then
24511 cat >>confdefs.h <<_ACEOF
24512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24513_ACEOF
24514 cat >>confdefs.h <<\_ACEOF
4f14bcd8 24515#define HAVE_NANOSLEEP 1
247f5006 24516_ACEOF
4f14bcd8 24517
10f2d63a 24518else
247f5006
VZ
24519
24520 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
24521echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
24522if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
24523 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 24524else
247f5006 24525 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 24526LIBS="-lposix4 $LIBS"
247f5006
VZ
24527cat >conftest.$ac_ext <<_ACEOF
24528#line $LINENO "configure"
10f2d63a 24529#include "confdefs.h"
247f5006 24530
10f2d63a 24531/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24532#ifdef __cplusplus
24533extern "C"
24534#endif
10f2d63a 24535/* We use char because int might match the return type of a gcc2
247f5006
VZ
24536 builtin and then its argument prototype would still apply. */
24537char nanosleep ();
24538#ifdef F77_DUMMY_MAIN
24539# ifdef __cplusplus
24540 extern "C"
24541# endif
24542 int F77_DUMMY_MAIN() { return 1; }
24543#endif
24544int
24545main ()
24546{
24547nanosleep ();
24548 ;
24549 return 0;
24550}
24551_ACEOF
24552rm -f conftest.$ac_objext conftest$ac_exeext
24553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24554 (eval $ac_link) 2>&5
24555 ac_status=$?
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } &&
24558 { ac_try='test -s conftest$ac_exeext'
24559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24560 (eval $ac_try) 2>&5
24561 ac_status=$?
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); }; }; then
24564 ac_cv_lib_posix4_nanosleep=yes
24565else
24566 echo "$as_me: failed program was:" >&5
24567cat conftest.$ac_ext >&5
24568ac_cv_lib_posix4_nanosleep=no
24569fi
24570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24571LIBS=$ac_check_lib_save_LIBS
24572fi
24573echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
24574echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
24575if test $ac_cv_lib_posix4_nanosleep = yes; then
24576
24577 cat >>confdefs.h <<\_ACEOF
4f14bcd8 24578#define HAVE_NANOSLEEP 1
247f5006 24579_ACEOF
4f14bcd8 24580
3d63bc3a 24581 POSIX4_LINK=" -lposix4"
247f5006 24582
10f2d63a 24583else
10f2d63a 24584
247f5006
VZ
24585
24586for ac_func in usleep
4f14bcd8 24587do
247f5006
VZ
24588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24589echo "$as_me:$LINENO: checking for $ac_func" >&5
24590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24591if eval "test \"\${$as_ac_var+set}\" = set"; then
24592 echo $ECHO_N "(cached) $ECHO_C" >&6
24593else
24594 cat >conftest.$ac_ext <<_ACEOF
24595#line $LINENO "configure"
10f2d63a 24596#include "confdefs.h"
4f14bcd8 24597/* System header to define __stub macros and hopefully few prototypes,
247f5006 24598 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
24599#include <assert.h>
24600/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24601#ifdef __cplusplus
24602extern "C"
24603#endif
4f14bcd8 24604/* We use char because int might match the return type of a gcc2
247f5006
VZ
24605 builtin and then its argument prototype would still apply. */
24606char $ac_func ();
24607char (*f) ();
24608
24609#ifdef F77_DUMMY_MAIN
24610# ifdef __cplusplus
24611 extern "C"
24612# endif
24613 int F77_DUMMY_MAIN() { return 1; }
24614#endif
24615int
24616main ()
24617{
4f14bcd8
GD
24618/* The GNU C library defines this for functions which it implements
24619 to always fail with ENOSYS. Some functions are actually named
24620 something starting with __ and the normal name is an alias. */
24621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24622choke me
24623#else
247f5006 24624f = $ac_func;
4f14bcd8
GD
24625#endif
24626
247f5006
VZ
24627 ;
24628 return 0;
24629}
24630_ACEOF
24631rm -f conftest.$ac_objext conftest$ac_exeext
24632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24633 (eval $ac_link) 2>&5
24634 ac_status=$?
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); } &&
24637 { ac_try='test -s conftest$ac_exeext'
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24640 ac_status=$?
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; }; then
24643 eval "$as_ac_var=yes"
24644else
24645 echo "$as_me: failed program was:" >&5
24646cat conftest.$ac_ext >&5
24647eval "$as_ac_var=no"
24648fi
24649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24650fi
24651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24653if test `eval echo '${'$as_ac_var'}'` = yes; then
24654 cat >>confdefs.h <<_ACEOF
24655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24656_ACEOF
24657 cat >>confdefs.h <<\_ACEOF
4f14bcd8 24658#define HAVE_USLEEP 1
247f5006 24659_ACEOF
4f14bcd8 24660
698dcdb6 24661else
247f5006
VZ
24662 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
24663echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
24664
10f2d63a 24665fi
4f14bcd8 24666done
10f2d63a 24667
247f5006
VZ
24668
24669
6232543b 24670fi
10f2d63a 24671
247f5006
VZ
24672
24673
1e487827 24674fi
4f14bcd8 24675done
703e0a69 24676
10f2d63a
VZ
24677fi
24678
247f5006
VZ
24679
24680
4f14bcd8 24681for ac_func in uname gethostname
70846f0a 24682do
247f5006
VZ
24683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24684echo "$as_me:$LINENO: checking for $ac_func" >&5
24685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24686if eval "test \"\${$as_ac_var+set}\" = set"; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24688else
24689 cat >conftest.$ac_ext <<_ACEOF
24690#line $LINENO "configure"
70846f0a
VZ
24691#include "confdefs.h"
24692/* System header to define __stub macros and hopefully few prototypes,
247f5006 24693 which can conflict with char $ac_func (); below. */
70846f0a
VZ
24694#include <assert.h>
24695/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24696#ifdef __cplusplus
24697extern "C"
24698#endif
70846f0a 24699/* We use char because int might match the return type of a gcc2
247f5006
VZ
24700 builtin and then its argument prototype would still apply. */
24701char $ac_func ();
24702char (*f) ();
24703
24704#ifdef F77_DUMMY_MAIN
24705# ifdef __cplusplus
24706 extern "C"
24707# endif
24708 int F77_DUMMY_MAIN() { return 1; }
24709#endif
24710int
24711main ()
24712{
70846f0a
VZ
24713/* The GNU C library defines this for functions which it implements
24714 to always fail with ENOSYS. Some functions are actually named
24715 something starting with __ and the normal name is an alias. */
24716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24717choke me
24718#else
247f5006 24719f = $ac_func;
70846f0a
VZ
24720#endif
24721
247f5006
VZ
24722 ;
24723 return 0;
24724}
24725_ACEOF
24726rm -f conftest.$ac_objext conftest$ac_exeext
24727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24728 (eval $ac_link) 2>&5
24729 ac_status=$?
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } &&
24732 { ac_try='test -s conftest$ac_exeext'
24733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734 (eval $ac_try) 2>&5
24735 ac_status=$?
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; }; then
24738 eval "$as_ac_var=yes"
24739else
24740 echo "$as_me: failed program was:" >&5
24741cat conftest.$ac_ext >&5
24742eval "$as_ac_var=no"
24743fi
24744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24745fi
24746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24748if test `eval echo '${'$as_ac_var'}'` = yes; then
24749 cat >>confdefs.h <<_ACEOF
24750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24751_ACEOF
4f14bcd8 24752 break
70846f0a
VZ
24753fi
24754done
24755
8284b0c5
MB
24756
24757
247f5006
VZ
24758
24759ac_ext=cc
4f14bcd8 24760ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
24761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24764
8284b0c5 24765
4f14bcd8
GD
24766
24767for ac_func in strtok_r
10f2d63a 24768do
247f5006
VZ
24769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24770echo "$as_me:$LINENO: checking for $ac_func" >&5
24771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24772if eval "test \"\${$as_ac_var+set}\" = set"; then
24773 echo $ECHO_N "(cached) $ECHO_C" >&6
24774else
24775 cat >conftest.$ac_ext <<_ACEOF
24776#line $LINENO "configure"
10f2d63a 24777#include "confdefs.h"
4f14bcd8 24778/* System header to define __stub macros and hopefully few prototypes,
247f5006 24779 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
24780#include <assert.h>
24781/* Override any gcc2 internal prototype to avoid an error. */
24782#ifdef __cplusplus
24783extern "C"
24784#endif
24785/* We use char because int might match the return type of a gcc2
247f5006
VZ
24786 builtin and then its argument prototype would still apply. */
24787char $ac_func ();
24788char (*f) ();
24789
24790#ifdef F77_DUMMY_MAIN
24791# ifdef __cplusplus
24792 extern "C"
24793# endif
24794 int F77_DUMMY_MAIN() { return 1; }
24795#endif
24796int
24797main ()
24798{
4f14bcd8
GD
24799/* The GNU C library defines this for functions which it implements
24800 to always fail with ENOSYS. Some functions are actually named
24801 something starting with __ and the normal name is an alias. */
24802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24803choke me
24804#else
247f5006 24805f = $ac_func;
4f14bcd8
GD
24806#endif
24807
247f5006
VZ
24808 ;
24809 return 0;
24810}
24811_ACEOF
24812rm -f conftest.$ac_objext conftest$ac_exeext
24813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24814 (eval $ac_link) 2>&5
24815 ac_status=$?
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); } &&
24818 { ac_try='test -s conftest$ac_exeext'
24819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24820 (eval $ac_try) 2>&5
24821 ac_status=$?
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); }; }; then
24824 eval "$as_ac_var=yes"
24825else
24826 echo "$as_me: failed program was:" >&5
24827cat conftest.$ac_ext >&5
24828eval "$as_ac_var=no"
24829fi
24830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24831fi
24832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24834if test `eval echo '${'$as_ac_var'}'` = yes; then
24835 cat >>confdefs.h <<_ACEOF
24836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24837_ACEOF
4f14bcd8 24838
10f2d63a
VZ
24839fi
24840done
24841
8284b0c5 24842
4f14bcd8 24843ac_ext=c
4f14bcd8 24844ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
24845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24847ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 24848
5c6fa7d2 24849
8284b0c5 24850INET_LINK=
247f5006 24851
4f14bcd8
GD
24852for ac_func in inet_addr
24853do
247f5006
VZ
24854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24855echo "$as_me:$LINENO: checking for $ac_func" >&5
24856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24857if eval "test \"\${$as_ac_var+set}\" = set"; then
24858 echo $ECHO_N "(cached) $ECHO_C" >&6
24859else
24860 cat >conftest.$ac_ext <<_ACEOF
24861#line $LINENO "configure"
10f2d63a 24862#include "confdefs.h"
4f14bcd8 24863/* System header to define __stub macros and hopefully few prototypes,
247f5006 24864 which can conflict with char $ac_func (); below. */
4f14bcd8 24865#include <assert.h>
10f2d63a 24866/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24867#ifdef __cplusplus
24868extern "C"
24869#endif
10f2d63a 24870/* We use char because int might match the return type of a gcc2
247f5006
VZ
24871 builtin and then its argument prototype would still apply. */
24872char $ac_func ();
24873char (*f) ();
24874
24875#ifdef F77_DUMMY_MAIN
24876# ifdef __cplusplus
24877 extern "C"
24878# endif
24879 int F77_DUMMY_MAIN() { return 1; }
24880#endif
24881int
24882main ()
24883{
4f14bcd8
GD
24884/* The GNU C library defines this for functions which it implements
24885 to always fail with ENOSYS. Some functions are actually named
24886 something starting with __ and the normal name is an alias. */
24887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24888choke me
24889#else
247f5006 24890f = $ac_func;
4f14bcd8
GD
24891#endif
24892
247f5006
VZ
24893 ;
24894 return 0;
24895}
24896_ACEOF
24897rm -f conftest.$ac_objext conftest$ac_exeext
24898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24899 (eval $ac_link) 2>&5
24900 ac_status=$?
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); } &&
24903 { ac_try='test -s conftest$ac_exeext'
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; }; then
24909 eval "$as_ac_var=yes"
24910else
24911 echo "$as_me: failed program was:" >&5
24912cat conftest.$ac_ext >&5
24913eval "$as_ac_var=no"
24914fi
24915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24916fi
24917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24919if test `eval echo '${'$as_ac_var'}'` = yes; then
24920 cat >>confdefs.h <<_ACEOF
24921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24922_ACEOF
24923 cat >>confdefs.h <<\_ACEOF
4f14bcd8 24924#define HAVE_INET_ADDR 1
247f5006 24925_ACEOF
10f2d63a
VZ
24926
24927else
247f5006
VZ
24928
24929 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
24930echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
24931if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
24932 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 24933else
247f5006 24934 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 24935LIBS="-lnsl $LIBS"
247f5006
VZ
24936cat >conftest.$ac_ext <<_ACEOF
24937#line $LINENO "configure"
10f2d63a 24938#include "confdefs.h"
247f5006 24939
10f2d63a 24940/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24941#ifdef __cplusplus
24942extern "C"
24943#endif
10f2d63a 24944/* We use char because int might match the return type of a gcc2
247f5006
VZ
24945 builtin and then its argument prototype would still apply. */
24946char inet_addr ();
24947#ifdef F77_DUMMY_MAIN
24948# ifdef __cplusplus
24949 extern "C"
24950# endif
24951 int F77_DUMMY_MAIN() { return 1; }
24952#endif
24953int
24954main ()
24955{
24956inet_addr ();
24957 ;
24958 return 0;
24959}
24960_ACEOF
24961rm -f conftest.$ac_objext conftest$ac_exeext
24962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24963 (eval $ac_link) 2>&5
24964 ac_status=$?
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } &&
24967 { ac_try='test -s conftest$ac_exeext'
24968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969 (eval $ac_try) 2>&5
24970 ac_status=$?
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; }; then
24973 ac_cv_lib_nsl_inet_addr=yes
24974else
24975 echo "$as_me: failed program was:" >&5
24976cat conftest.$ac_ext >&5
24977ac_cv_lib_nsl_inet_addr=no
24978fi
24979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24980LIBS=$ac_check_lib_save_LIBS
24981fi
24982echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
24983echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
24984if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 24985 INET_LINK="nsl"
10f2d63a 24986else
247f5006
VZ
24987 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
24988echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
24989if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 24991else
247f5006 24992 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 24993LIBS="-lresolv $LIBS"
247f5006
VZ
24994cat >conftest.$ac_ext <<_ACEOF
24995#line $LINENO "configure"
7b4a847f 24996#include "confdefs.h"
247f5006 24997
5c6fa7d2 24998/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
24999#ifdef __cplusplus
25000extern "C"
25001#endif
5c6fa7d2 25002/* We use char because int might match the return type of a gcc2
247f5006
VZ
25003 builtin and then its argument prototype would still apply. */
25004char inet_addr ();
25005#ifdef F77_DUMMY_MAIN
25006# ifdef __cplusplus
25007 extern "C"
25008# endif
25009 int F77_DUMMY_MAIN() { return 1; }
25010#endif
25011int
25012main ()
25013{
25014inet_addr ();
25015 ;
25016 return 0;
25017}
25018_ACEOF
25019rm -f conftest.$ac_objext conftest$ac_exeext
25020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25021 (eval $ac_link) 2>&5
25022 ac_status=$?
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); } &&
25025 { ac_try='test -s conftest$ac_exeext'
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 ac_cv_lib_resolv_inet_addr=yes
25032else
25033 echo "$as_me: failed program was:" >&5
25034cat conftest.$ac_ext >&5
25035ac_cv_lib_resolv_inet_addr=no
25036fi
25037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25038LIBS=$ac_check_lib_save_LIBS
25039fi
25040echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
25041echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
25042if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 25043 INET_LINK="resolv"
698dcdb6 25044else
247f5006
VZ
25045 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
25046echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
25047if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
25048 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 25049else
247f5006 25050 ac_check_lib_save_LIBS=$LIBS
3c011993 25051LIBS="-lsocket $LIBS"
247f5006
VZ
25052cat >conftest.$ac_ext <<_ACEOF
25053#line $LINENO "configure"
3c011993 25054#include "confdefs.h"
247f5006 25055
3c011993 25056/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25057#ifdef __cplusplus
25058extern "C"
25059#endif
3c011993 25060/* We use char because int might match the return type of a gcc2
247f5006
VZ
25061 builtin and then its argument prototype would still apply. */
25062char inet_addr ();
25063#ifdef F77_DUMMY_MAIN
25064# ifdef __cplusplus
25065 extern "C"
25066# endif
25067 int F77_DUMMY_MAIN() { return 1; }
25068#endif
25069int
25070main ()
25071{
25072inet_addr ();
25073 ;
25074 return 0;
25075}
25076_ACEOF
25077rm -f conftest.$ac_objext conftest$ac_exeext
25078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25079 (eval $ac_link) 2>&5
25080 ac_status=$?
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } &&
25083 { ac_try='test -s conftest$ac_exeext'
25084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25085 (eval $ac_try) 2>&5
25086 ac_status=$?
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); }; }; then
25089 ac_cv_lib_socket_inet_addr=yes
25090else
25091 echo "$as_me: failed program was:" >&5
25092cat conftest.$ac_ext >&5
25093ac_cv_lib_socket_inet_addr=no
25094fi
25095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25096LIBS=$ac_check_lib_save_LIBS
25097fi
25098echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
25099echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
25100if test $ac_cv_lib_socket_inet_addr = yes; then
25101 INET_LINK="socket"
4f14bcd8 25102
8284b0c5 25103fi
8284b0c5 25104
698dcdb6 25105
7b4a847f 25106fi
579d8138 25107
247f5006 25108
5c6fa7d2 25109fi
52127426 25110
247f5006 25111
8284b0c5 25112
698dcdb6 25113fi
4f14bcd8
GD
25114done
25115
8284b0c5 25116
247f5006 25117
4f14bcd8
GD
25118for ac_func in inet_aton
25119do
247f5006
VZ
25120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25121echo "$as_me:$LINENO: checking for $ac_func" >&5
25122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25123if eval "test \"\${$as_ac_var+set}\" = set"; then
25124 echo $ECHO_N "(cached) $ECHO_C" >&6
25125else
25126 cat >conftest.$ac_ext <<_ACEOF
25127#line $LINENO "configure"
f6bcfd97 25128#include "confdefs.h"
4f14bcd8 25129/* System header to define __stub macros and hopefully few prototypes,
247f5006 25130 which can conflict with char $ac_func (); below. */
4f14bcd8 25131#include <assert.h>
f6bcfd97 25132/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25133#ifdef __cplusplus
25134extern "C"
25135#endif
f6bcfd97 25136/* We use char because int might match the return type of a gcc2
247f5006
VZ
25137 builtin and then its argument prototype would still apply. */
25138char $ac_func ();
25139char (*f) ();
25140
25141#ifdef F77_DUMMY_MAIN
25142# ifdef __cplusplus
25143 extern "C"
25144# endif
25145 int F77_DUMMY_MAIN() { return 1; }
25146#endif
25147int
25148main ()
25149{
4f14bcd8
GD
25150/* The GNU C library defines this for functions which it implements
25151 to always fail with ENOSYS. Some functions are actually named
25152 something starting with __ and the normal name is an alias. */
25153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25154choke me
25155#else
247f5006 25156f = $ac_func;
4f14bcd8
GD
25157#endif
25158
247f5006
VZ
25159 ;
25160 return 0;
25161}
25162_ACEOF
25163rm -f conftest.$ac_objext conftest$ac_exeext
25164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25165 (eval $ac_link) 2>&5
25166 ac_status=$?
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); } &&
25169 { ac_try='test -s conftest$ac_exeext'
25170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25171 (eval $ac_try) 2>&5
25172 ac_status=$?
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); }; }; then
25175 eval "$as_ac_var=yes"
25176else
25177 echo "$as_me: failed program was:" >&5
25178cat conftest.$ac_ext >&5
25179eval "$as_ac_var=no"
25180fi
25181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25182fi
25183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25185if test `eval echo '${'$as_ac_var'}'` = yes; then
25186 cat >>confdefs.h <<_ACEOF
25187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25188_ACEOF
25189 cat >>confdefs.h <<\_ACEOF
4f14bcd8 25190#define HAVE_INET_ATON 1
247f5006 25191_ACEOF
4f14bcd8 25192
10f2d63a 25193else
247f5006
VZ
25194
25195 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
25196echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
25197echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
25198if eval "test \"\${$as_ac_Lib+set}\" = set"; then
25199 echo $ECHO_N "(cached) $ECHO_C" >&6
1e487827 25200else
247f5006 25201 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 25202LIBS="-l$INET_LINK $LIBS"
247f5006
VZ
25203cat >conftest.$ac_ext <<_ACEOF
25204#line $LINENO "configure"
10f2d63a 25205#include "confdefs.h"
247f5006 25206
6232543b 25207/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25208#ifdef __cplusplus
25209extern "C"
25210#endif
6232543b 25211/* We use char because int might match the return type of a gcc2
247f5006
VZ
25212 builtin and then its argument prototype would still apply. */
25213char inet_aton ();
25214#ifdef F77_DUMMY_MAIN
25215# ifdef __cplusplus
25216 extern "C"
25217# endif
25218 int F77_DUMMY_MAIN() { return 1; }
25219#endif
25220int
25221main ()
25222{
25223inet_aton ();
25224 ;
25225 return 0;
25226}
25227_ACEOF
25228rm -f conftest.$ac_objext conftest$ac_exeext
25229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230 (eval $ac_link) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); } &&
25234 { ac_try='test -s conftest$ac_exeext'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 eval "$as_ac_Lib=yes"
25241else
25242 echo "$as_me: failed program was:" >&5
25243cat conftest.$ac_ext >&5
25244eval "$as_ac_Lib=no"
25245fi
25246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25247LIBS=$ac_check_lib_save_LIBS
25248fi
25249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
25250echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
25251if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25252 cat >>confdefs.h <<\_ACEOF
4f14bcd8 25253#define HAVE_INET_ATON 1
247f5006 25254_ACEOF
4f14bcd8 25255
10f2d63a
VZ
25256fi
25257
247f5006 25258
10f2d63a 25259fi
4f14bcd8 25260done
10f2d63a 25261
8284b0c5 25262
4f14bcd8 25263if test "x$INET_LINK" != "x"; then
247f5006 25264 cat >>confdefs.h <<\_ACEOF
4f14bcd8 25265#define HAVE_INET_ADDR 1
247f5006 25266_ACEOF
4f14bcd8 25267
3d63bc3a 25268 INET_LINK=" -l$INET_LINK"
6232543b 25269fi
10f2d63a 25270
1e487827 25271fi
703e0a69 25272
8284b0c5 25273
247f5006 25274cat >confcache <<\_ACEOF
4f14bcd8
GD
25275# This file is a shell script that caches the results of configure
25276# tests run on this system so they can be shared between configure
247f5006
VZ
25277# scripts and configure runs, see configure's option --config-cache.
25278# It is not useful on other systems. If it contains results you don't
25279# want to keep, you may remove or edit it.
4f14bcd8 25280#
247f5006
VZ
25281# config.status only pays attention to the cache file if you give it
25282# the --recheck option to rerun configure.
4f14bcd8 25283#
247f5006
VZ
25284# `ac_cv_env_foo' variables (set or unset) will be overriden when
25285# loading this file, other *unset* `ac_cv_foo' will be assigned the
25286# following values.
25287
25288_ACEOF
25289
4f14bcd8
GD
25290# The following way of writing the cache mishandles newlines in values,
25291# but we know of no workaround that is simple, portable, and efficient.
25292# So, don't put newlines in cache variables' values.
25293# Ultrix sh set writes to stderr and can't be redirected directly,
25294# and sets the high bit in the cache file unless we assign to the vars.
247f5006
VZ
25295{
25296 (set) 2>&1 |
25297 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25298 *ac_space=\ *)
25299 # `set' does not quote correctly, so add quotes (double-quote
25300 # substitution turns \\\\ into \\, and sed turns \\ into \).
25301 sed -n \
25302 "s/'/'\\\\''/g;
25303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25304 ;;
25305 *)
25306 # `set' quotes correctly as required by POSIX, so do not add quotes.
25307 sed -n \
25308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25309 ;;
25310 esac;
25311} |
25312 sed '
25313 t clear
25314 : clear
25315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25316 t end
25317 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25318 : end' >>confcache
25319if cmp -s $cache_file confcache; then :; else
4f14bcd8 25320 if test -w $cache_file; then
247f5006
VZ
25321 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25322 cat confcache >$cache_file
f6bcfd97 25323 else
4f14bcd8 25324 echo "not updating unwritable cache $cache_file"
f6bcfd97 25325 fi
4f14bcd8
GD
25326fi
25327rm -f confcache
f6bcfd97 25328
8284b0c5 25329
009fead0 25330CPP_MT_FLAG=
4f14bcd8
GD
25331if test "$TOOLKIT" != "MSW"; then
25332
247f5006 25333
7274f1c7 25334 THREADS_LINK=
009fead0 25335 THREADS_CFLAGS=
7274f1c7
RL
25336
25337 if test "$wxUSE_THREADS" = "yes" ; then
25338 if test "$wxUSE_WINE" = 1 ; then
247f5006
VZ
25339 { echo "$as_me:$LINENO: WARNING: Threads are not supported under WINE... disabled" >&5
25340echo "$as_me: WARNING: Threads are not supported under WINE... disabled" >&2;}
7274f1c7
RL
25341 wxUSE_THREADS="no"
25342 elif test "$USE_BEOS" = 1; then
247f5006
VZ
25343 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
25344echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
25345 wxUSE_THREADS="no"
25346 fi
4f14bcd8 25347 fi
4f14bcd8 25348
7274f1c7 25349 if test "$wxUSE_THREADS" = "yes" ; then
247f5006
VZ
25350
25351
009fead0
VZ
25352 THREAD_OPTS="-pthread"
25353 case "${host}" in
25354 *-*-solaris2* | *-*-sunos4* )
25355 if test "x$GCC" = "xyes"; then
126be6b4 25356 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
25357 else
25358 THREAD_OPTS="-mt $THREAD_OPTS"
25359 fi
25360 ;;
25361 *-*-freebsd*)
25362 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
25363 ;;
17234b26
MB
25364 *-*-darwin* | *-*-cygwin* )
25365 THREAD_OPTS=""
4101db81 25366 ;;
8f4a9a10 25367 *-*-aix*)
009fead0
VZ
25368 THREAD_OPTS="pthreads"
25369 ;;
009fead0 25370 esac
4f14bcd8 25371
02a1dfba 25372 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 25373
009fead0
VZ
25374 THREADS_OK=no
25375 for flag in $THREAD_OPTS; do
25376 case $flag in
25377 none)
247f5006
VZ
25378 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
25379echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 25380 ;;
698dcdb6 25381
009fead0 25382 -*)
247f5006
VZ
25383 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
25384echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
25385 THREADS_CFLAGS="$flag"
25386 ;;
698dcdb6 25387
009fead0 25388 *)
247f5006
VZ
25389 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
25390echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
25391 THREADS_LINK="-l$flag"
25392 ;;
25393 esac
10f2d63a 25394
009fead0
VZ
25395 save_LIBS="$LIBS"
25396 save_CFLAGS="$CFLAGS"
25397 LIBS="$THREADS_LINK $LIBS"
04727afd 25398 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 25399
247f5006
VZ
25400 cat >conftest.$ac_ext <<_ACEOF
25401#line $LINENO "configure"
009fead0
VZ
25402#include "confdefs.h"
25403#include <pthread.h>
247f5006
VZ
25404#ifdef F77_DUMMY_MAIN
25405# ifdef __cplusplus
25406 extern "C"
25407# endif
25408 int F77_DUMMY_MAIN() { return 1; }
25409#endif
25410int
25411main ()
25412{
009fead0 25413pthread_create(0,0,0,0);
247f5006
VZ
25414 ;
25415 return 0;
25416}
25417_ACEOF
25418rm -f conftest.$ac_objext conftest$ac_exeext
25419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25420 (eval $ac_link) 2>&5
25421 ac_status=$?
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); } &&
25424 { ac_try='test -s conftest$ac_exeext'
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
25427 ac_status=$?
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
009fead0 25430 THREADS_OK=yes
10f2d63a 25431else
247f5006
VZ
25432 echo "$as_me: failed program was:" >&5
25433cat conftest.$ac_ext >&5
6232543b 25434fi
247f5006 25435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 25436
009fead0
VZ
25437 LIBS="$save_LIBS"
25438 CFLAGS="$save_CFLAGS"
d9b9876f 25439
247f5006
VZ
25440 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
25441echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
25442 if test "x$THREADS_OK" = "xyes"; then
25443 break;
25444 fi
d9b9876f 25445
009fead0
VZ
25446 THREADS_LINK=""
25447 THREADS_CFLAGS=""
25448 done
4f14bcd8 25449
009fead0
VZ
25450 if test "x$THREADS_OK" != "xyes"; then
25451 wxUSE_THREADS=no
247f5006
VZ
25452 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
25453echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 25454 else
fe5a9cab
VZ
25455 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
25456
247f5006
VZ
25457 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
25458echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
25459 flag=no
25460 case "${host}" in
25461 *-aix* | *-freebsd*)
25462 flag="-D_THREAD_SAFE"
25463 ;;
25464 *solaris* | alpha*-osf*)
25465 flag="-D_REENTRANT"
25466 ;;
25467 esac
247f5006
VZ
25468 echo "$as_me:$LINENO: result: ${flag}" >&5
25469echo "${ECHO_T}${flag}" >&6
009fead0 25470 if test "x$flag" != xno; then
04727afd 25471 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
25472 fi
25473
009fead0 25474 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 25475 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
25476 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
25477 fi
25478 fi
4f14bcd8 25479 fi
4f14bcd8 25480
7274f1c7 25481 if test "$wxUSE_THREADS" = "yes" ; then
247f5006
VZ
25482
25483for ac_func in thr_setconcurrency
4f14bcd8 25484do
247f5006
VZ
25485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25486echo "$as_me:$LINENO: checking for $ac_func" >&5
25487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25488if eval "test \"\${$as_ac_var+set}\" = set"; then
25489 echo $ECHO_N "(cached) $ECHO_C" >&6
25490else
25491 cat >conftest.$ac_ext <<_ACEOF
25492#line $LINENO "configure"
d9b9876f 25493#include "confdefs.h"
4f14bcd8 25494/* System header to define __stub macros and hopefully few prototypes,
247f5006 25495 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
25496#include <assert.h>
25497/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25498#ifdef __cplusplus
25499extern "C"
25500#endif
4f14bcd8 25501/* We use char because int might match the return type of a gcc2
247f5006
VZ
25502 builtin and then its argument prototype would still apply. */
25503char $ac_func ();
25504char (*f) ();
25505
25506#ifdef F77_DUMMY_MAIN
25507# ifdef __cplusplus
25508 extern "C"
25509# endif
25510 int F77_DUMMY_MAIN() { return 1; }
25511#endif
25512int
25513main ()
25514{
4f14bcd8
GD
25515/* The GNU C library defines this for functions which it implements
25516 to always fail with ENOSYS. Some functions are actually named
25517 something starting with __ and the normal name is an alias. */
25518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25519choke me
25520#else
247f5006 25521f = $ac_func;
4f14bcd8
GD
25522#endif
25523
247f5006
VZ
25524 ;
25525 return 0;
25526}
25527_ACEOF
25528rm -f conftest.$ac_objext conftest$ac_exeext
25529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25530 (eval $ac_link) 2>&5
25531 ac_status=$?
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
25534 { ac_try='test -s conftest$ac_exeext'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; }; then
25540 eval "$as_ac_var=yes"
25541else
25542 echo "$as_me: failed program was:" >&5
25543cat conftest.$ac_ext >&5
25544eval "$as_ac_var=no"
25545fi
25546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25547fi
25548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25550if test `eval echo '${'$as_ac_var'}'` = yes; then
25551 cat >>confdefs.h <<_ACEOF
25552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25553_ACEOF
698dcdb6 25554
10f2d63a 25555fi
4f14bcd8 25556done
10f2d63a 25557
8284b0c5 25558
247f5006
VZ
25559
25560for ac_header in sched.h
4f14bcd8 25561do
247f5006
VZ
25562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25563if eval "test \"\${$as_ac_Header+set}\" = set"; then
25564 echo "$as_me:$LINENO: checking for $ac_header" >&5
25565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25566if eval "test \"\${$as_ac_Header+set}\" = set"; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25568fi
25569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25571else
25572 # Is the header compilable?
25573echo "$as_me:$LINENO: checking $ac_header usability" >&5
25574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25575cat >conftest.$ac_ext <<_ACEOF
25576#line $LINENO "configure"
4f14bcd8 25577#include "confdefs.h"
247f5006
VZ
25578$ac_includes_default
25579#include <$ac_header>
25580_ACEOF
25581rm -f conftest.$ac_objext
25582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25583 (eval $ac_compile) 2>&5
25584 ac_status=$?
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } &&
25587 { ac_try='test -s conftest.$ac_objext'
25588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); }; }; then
25593 ac_header_compiler=yes
25594else
25595 echo "$as_me: failed program was:" >&5
25596cat conftest.$ac_ext >&5
25597ac_header_compiler=no
25598fi
25599rm -f conftest.$ac_objext conftest.$ac_ext
25600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25601echo "${ECHO_T}$ac_header_compiler" >&6
25602
25603# Is the header present?
25604echo "$as_me:$LINENO: checking $ac_header presence" >&5
25605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25606cat >conftest.$ac_ext <<_ACEOF
25607#line $LINENO "configure"
25608#include "confdefs.h"
25609#include <$ac_header>
25610_ACEOF
25611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25613 ac_status=$?
25614 egrep -v '^ *\+' conftest.er1 >conftest.err
25615 rm -f conftest.er1
25616 cat conftest.err >&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } >/dev/null; then
25619 if test -s conftest.err; then
25620 ac_cpp_err=$ac_c_preproc_warn_flag
25621 else
25622 ac_cpp_err=
25623 fi
25624else
25625 ac_cpp_err=yes
25626fi
25627if test -z "$ac_cpp_err"; then
25628 ac_header_preproc=yes
25629else
25630 echo "$as_me: failed program was:" >&5
4f14bcd8 25631 cat conftest.$ac_ext >&5
247f5006
VZ
25632 ac_header_preproc=no
25633fi
25634rm -f conftest.err conftest.$ac_ext
25635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25636echo "${ECHO_T}$ac_header_preproc" >&6
25637
25638# So? What about this header?
25639case $ac_header_compiler:$ac_header_preproc in
25640 yes:no )
25641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
25645 no:yes )
25646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
25652esac
25653echo "$as_me:$LINENO: checking for $ac_header" >&5
25654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25655if eval "test \"\${$as_ac_Header+set}\" = set"; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
25657else
25658 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 25659fi
247f5006
VZ
25660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25662
10f2d63a 25663fi
247f5006
VZ
25664if test `eval echo '${'$as_ac_Header'}'` = yes; then
25665 cat >>confdefs.h <<_ACEOF
25666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25667_ACEOF
25668
f6bcfd97 25669fi
247f5006 25670
4f14bcd8 25671done
f6bcfd97 25672
009fead0 25673 if test "$ac_cv_header_sched_h" = "yes"; then
247f5006
VZ
25674 echo "$as_me:$LINENO: checking for sched_yield" >&5
25675echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
25676if test "${ac_cv_func_sched_yield+set}" = set; then
25677 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25678else
247f5006
VZ
25679 cat >conftest.$ac_ext <<_ACEOF
25680#line $LINENO "configure"
4f14bcd8 25681#include "confdefs.h"
009fead0 25682/* System header to define __stub macros and hopefully few prototypes,
247f5006 25683 which can conflict with char sched_yield (); below. */
009fead0 25684#include <assert.h>
4f14bcd8 25685/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25686#ifdef __cplusplus
25687extern "C"
25688#endif
4f14bcd8 25689/* We use char because int might match the return type of a gcc2
247f5006
VZ
25690 builtin and then its argument prototype would still apply. */
25691char sched_yield ();
25692char (*f) ();
25693
25694#ifdef F77_DUMMY_MAIN
25695# ifdef __cplusplus
25696 extern "C"
25697# endif
25698 int F77_DUMMY_MAIN() { return 1; }
25699#endif
25700int
25701main ()
25702{
009fead0
VZ
25703/* The GNU C library defines this for functions which it implements
25704 to always fail with ENOSYS. Some functions are actually named
25705 something starting with __ and the normal name is an alias. */
25706#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
25707choke me
25708#else
247f5006 25709f = sched_yield;
009fead0
VZ
25710#endif
25711
247f5006
VZ
25712 ;
25713 return 0;
25714}
25715_ACEOF
25716rm -f conftest.$ac_objext conftest$ac_exeext
25717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25718 (eval $ac_link) 2>&5
25719 ac_status=$?
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); } &&
25722 { ac_try='test -s conftest$ac_exeext'
25723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25725 ac_status=$?
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; }; then
25728 ac_cv_func_sched_yield=yes
25729else
25730 echo "$as_me: failed program was:" >&5
25731cat conftest.$ac_ext >&5
25732ac_cv_func_sched_yield=no
25733fi
25734rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25735fi
25736echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
25737echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
25738if test $ac_cv_func_sched_yield = yes; then
25739 cat >>confdefs.h <<\_ACEOF
4f14bcd8 25740#define HAVE_SCHED_YIELD 1
247f5006 25741_ACEOF
10f2d63a 25742
4f14bcd8 25743else
009fead0 25744
247f5006
VZ
25745 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
25746echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
25747if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25749else
247f5006 25750 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 25751LIBS="-lposix4 $LIBS"
247f5006
VZ
25752cat >conftest.$ac_ext <<_ACEOF
25753#line $LINENO "configure"
4f14bcd8 25754#include "confdefs.h"
247f5006 25755
4f14bcd8 25756/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25757#ifdef __cplusplus
25758extern "C"
25759#endif
4f14bcd8 25760/* We use char because int might match the return type of a gcc2
247f5006
VZ
25761 builtin and then its argument prototype would still apply. */
25762char sched_yield ();
25763#ifdef F77_DUMMY_MAIN
25764# ifdef __cplusplus
25765 extern "C"
25766# endif
25767 int F77_DUMMY_MAIN() { return 1; }
25768#endif
25769int
25770main ()
25771{
25772sched_yield ();
25773 ;
25774 return 0;
25775}
25776_ACEOF
25777rm -f conftest.$ac_objext conftest$ac_exeext
25778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779 (eval $ac_link) 2>&5
25780 ac_status=$?
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); } &&
25783 { ac_try='test -s conftest$ac_exeext'
25784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785 (eval $ac_try) 2>&5
25786 ac_status=$?
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); }; }; then
25789 ac_cv_lib_posix4_sched_yield=yes
25790else
25791 echo "$as_me: failed program was:" >&5
25792cat conftest.$ac_ext >&5
25793ac_cv_lib_posix4_sched_yield=no
25794fi
25795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25796LIBS=$ac_check_lib_save_LIBS
25797fi
25798echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
25799echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
25800if test $ac_cv_lib_posix4_sched_yield = yes; then
25801 cat >>confdefs.h <<\_ACEOF
4f14bcd8 25802#define HAVE_SCHED_YIELD 1
247f5006 25803_ACEOF
3d63bc3a 25804 POSIX4_LINK=" -lposix4"
4f14bcd8 25805else
247f5006
VZ
25806 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
25807echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
25808
54276ccf
VZ
25809fi
25810
247f5006
VZ
25811
25812
4f14bcd8 25813fi
698dcdb6 25814
009fead0 25815 fi
10f2d63a 25816
7274f1c7 25817 HAVE_PRIOR_FUNCS=0
247f5006
VZ
25818 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
25819echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
25820if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25822else
247f5006
VZ
25823 cat >conftest.$ac_ext <<_ACEOF
25824#line $LINENO "configure"
422107f9 25825#include "confdefs.h"
009fead0 25826/* System header to define __stub macros and hopefully few prototypes,
247f5006 25827 which can conflict with char pthread_attr_getschedpolicy (); below. */
009fead0 25828#include <assert.h>
4f14bcd8 25829/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25830#ifdef __cplusplus
25831extern "C"
25832#endif
4f14bcd8 25833/* We use char because int might match the return type of a gcc2
247f5006
VZ
25834 builtin and then its argument prototype would still apply. */
25835char pthread_attr_getschedpolicy ();
25836char (*f) ();
25837
25838#ifdef F77_DUMMY_MAIN
25839# ifdef __cplusplus
25840 extern "C"
25841# endif
25842 int F77_DUMMY_MAIN() { return 1; }
25843#endif
25844int
25845main ()
25846{
009fead0
VZ
25847/* The GNU C library defines this for functions which it implements
25848 to always fail with ENOSYS. Some functions are actually named
25849 something starting with __ and the normal name is an alias. */
25850#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
25851choke me
25852#else
247f5006 25853f = pthread_attr_getschedpolicy;
009fead0
VZ
25854#endif
25855
247f5006
VZ
25856 ;
25857 return 0;
25858}
25859_ACEOF
25860rm -f conftest.$ac_objext conftest$ac_exeext
25861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25862 (eval $ac_link) 2>&5
25863 ac_status=$?
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
25866 { ac_try='test -s conftest$ac_exeext'
25867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); }; }; then
25872 ac_cv_func_pthread_attr_getschedpolicy=yes
25873else
25874 echo "$as_me: failed program was:" >&5
25875cat conftest.$ac_ext >&5
25876ac_cv_func_pthread_attr_getschedpolicy=no
25877fi
25878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25879fi
25880echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
25881echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
25882if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
25883 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
25884echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
25885if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25887else
25888 cat >conftest.$ac_ext <<_ACEOF
25889#line $LINENO "configure"
8284b0c5 25890#include "confdefs.h"
247f5006
VZ
25891/* System header to define __stub macros and hopefully few prototypes
25892else
25893 which can conflict with char pthread_attr_setschedparam (); below. */
009fead0 25894#include <assert.h>
422107f9 25895/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25896#ifdef __cplusplus
25897extern "C"
25898#endif
422107f9 25899/* We use char because int might match the return type of a gcc2
247f5006
VZ
25900 builtin and then its argument prototype would still apply. */
25901char pthread_attr_setschedparam ();
25902char (*f) ();
25903
25904#ifdef F77_DUMMY_MAIN
25905# ifdef __cplusplus
25906 extern "C"
25907# endif
25908 int F77_DUMMY_MAIN() { return 1; }
25909#endif
25910int
25911main ()
25912{
009fead0
VZ
25913/* The GNU C library defines this for functions which it implements
25914 to always fail with ENOSYS. Some functions are actually named
25915 something starting with __ and the normal name is an alias. */
25916#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
25917choke me
25918#else
247f5006 25919f = pthread_attr_setschedparam;
009fead0
VZ
25920#endif
25921
247f5006
VZ
25922 ;
25923 return 0;
25924}
25925_ACEOF
25926rm -f conftest.$ac_objext conftest$ac_exeext
25927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25928 (eval $ac_link) 2>&5
25929 ac_status=$?
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } &&
25932 { ac_try='test -s conftest$ac_exeext'
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; }; then
25938 ac_cv_func_pthread_attr_setschedparam=yes
25939else
25940 echo "$as_me: failed program was:" >&5
25941cat conftest.$ac_ext >&5
25942ac_cv_func_pthread_attr_setschedparam=no
25943fi
25944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25945fi
25946echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
25947echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
25948if test $ac_cv_func_pthread_attr_setschedparam = yes; then
25949 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
25950echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
25951if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25953else
25954 cat >conftest.$ac_ext <<_ACEOF
25955#line $LINENO "configure"
422107f9 25956#include "confdefs.h"
009fead0
VZ
25957/* System header to define __stub macros and hopefully few prototypes
25958else
247f5006 25959 which can conflict with char sched_get_priority_max (); below. */
009fead0 25960#include <assert.h>
4f14bcd8 25961/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
25962#ifdef __cplusplus
25963extern "C"
25964#endif
4f14bcd8 25965/* We use char because int might match the return type of a gcc2
247f5006
VZ
25966 builtin and then its argument prototype would still apply. */
25967char sched_get_priority_max ();
25968char (*f) ();
25969
25970#ifdef F77_DUMMY_MAIN
25971# ifdef __cplusplus
25972 extern "C"
25973# endif
25974 int F77_DUMMY_MAIN() { return 1; }
25975#endif
25976int
25977main ()
25978{
009fead0
VZ
25979/* The GNU C library defines this for functions which it implements
25980 to always fail with ENOSYS. Some functions are actually named
25981 something starting with __ and the normal name is an alias. */
25982#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
25983choke me
25984#else
247f5006 25985f = sched_get_priority_max;
009fead0
VZ
25986#endif
25987
247f5006
VZ
25988 ;
25989 return 0;
25990}
25991_ACEOF
25992rm -f conftest.$ac_objext conftest$ac_exeext
25993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25994 (eval $ac_link) 2>&5
25995 ac_status=$?
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); } &&
25998 { ac_try='test -s conftest$ac_exeext'
25999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; }; then
26004 ac_cv_func_sched_get_priority_max=yes
26005else
26006 echo "$as_me: failed program was:" >&5
26007cat conftest.$ac_ext >&5
26008ac_cv_func_sched_get_priority_max=no
26009fi
26010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26011fi
26012echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
26013echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
26014if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
26015 HAVE_PRIOR_FUNCS=1
26016else
247f5006
VZ
26017 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
26018echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
26019if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
26020 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 26021else
247f5006 26022 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 26023LIBS="-lposix4 $LIBS"
247f5006
VZ
26024cat >conftest.$ac_ext <<_ACEOF
26025#line $LINENO "configure"
422107f9 26026#include "confdefs.h"
247f5006 26027
422107f9 26028/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26029#ifdef __cplusplus
26030extern "C"
26031#endif
422107f9 26032/* We use char because int might match the return type of a gcc2
247f5006
VZ
26033 builtin and then its argument prototype would still apply. */
26034char sched_get_priority_max ();
26035#ifdef F77_DUMMY_MAIN
26036# ifdef __cplusplus
26037 extern "C"
26038# endif
26039 int F77_DUMMY_MAIN() { return 1; }
26040#endif
26041int
26042main ()
26043{
26044sched_get_priority_max ();
26045 ;
26046 return 0;
26047}
26048_ACEOF
26049rm -f conftest.$ac_objext conftest$ac_exeext
26050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26051 (eval $ac_link) 2>&5
26052 ac_status=$?
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } &&
26055 { ac_try='test -s conftest$ac_exeext'
26056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057 (eval $ac_try) 2>&5
26058 ac_status=$?
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); }; }; then
26061 ac_cv_lib_posix4_sched_get_priority_max=yes
26062else
26063 echo "$as_me: failed program was:" >&5
26064cat conftest.$ac_ext >&5
26065ac_cv_lib_posix4_sched_get_priority_max=no
26066fi
26067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26068LIBS=$ac_check_lib_save_LIBS
26069fi
26070echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
26071echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
26072if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 26073
7274f1c7
RL
26074 HAVE_PRIOR_FUNCS=1
26075 POSIX4_LINK=" -lposix4"
247f5006 26076
4f14bcd8 26077fi
463abc64 26078
247f5006 26079
328a083c 26080fi
463abc64 26081
247f5006 26082
7b4a847f 26083fi
579d8138 26084
247f5006 26085
5c6fa7d2 26086fi
52127426 26087
8284b0c5 26088
7274f1c7 26089 if test "$HAVE_PRIOR_FUNCS" = 1; then
247f5006 26090 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26091#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
247f5006 26092_ACEOF
463abc64 26093
7274f1c7 26094 else
247f5006
VZ
26095 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
26096echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 26097 fi
463abc64 26098
247f5006
VZ
26099 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
26100echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
26101if test "${ac_cv_func_pthread_cancel+set}" = set; then
26102 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 26103else
247f5006
VZ
26104 cat >conftest.$ac_ext <<_ACEOF
26105#line $LINENO "configure"
422107f9 26106#include "confdefs.h"
009fead0 26107/* System header to define __stub macros and hopefully few prototypes,
247f5006 26108 which can conflict with char pthread_cancel (); below. */
009fead0 26109#include <assert.h>
422107f9 26110/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26111#ifdef __cplusplus
26112extern "C"
26113#endif
422107f9 26114/* We use char because int might match the return type of a gcc2
247f5006
VZ
26115 builtin and then its argument prototype would still apply. */
26116char pthread_cancel ();
26117char (*f) ();
26118
26119#ifdef F77_DUMMY_MAIN
26120# ifdef __cplusplus
26121 extern "C"
26122# endif
26123 int F77_DUMMY_MAIN() { return 1; }
26124#endif
26125int
26126main ()
26127{
009fead0
VZ
26128/* The GNU C library defines this for functions which it implements
26129 to always fail with ENOSYS. Some functions are actually named
26130 something starting with __ and the normal name is an alias. */
26131#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
26132choke me
26133#else
247f5006 26134f = pthread_cancel;
009fead0
VZ
26135#endif
26136
247f5006
VZ
26137 ;
26138 return 0;
26139}
26140_ACEOF
26141rm -f conftest.$ac_objext conftest$ac_exeext
26142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26143 (eval $ac_link) 2>&5
26144 ac_status=$?
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); } &&
26147 { ac_try='test -s conftest$ac_exeext'
26148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149 (eval $ac_try) 2>&5
26150 ac_status=$?
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); }; }; then
26153 ac_cv_func_pthread_cancel=yes
26154else
26155 echo "$as_me: failed program was:" >&5
26156cat conftest.$ac_ext >&5
26157ac_cv_func_pthread_cancel=no
26158fi
26159rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26160fi
26161echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
26162echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
26163if test $ac_cv_func_pthread_cancel = yes; then
26164 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26165#define HAVE_PTHREAD_CANCEL 1
247f5006 26166_ACEOF
4f14bcd8 26167
698dcdb6 26168else
247f5006
VZ
26169 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
26170echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
26171fi
26172
5c6fa7d2 26173
247f5006
VZ
26174 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
26175echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
26176if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
26177 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26178else
247f5006
VZ
26179
26180 cat >conftest.$ac_ext <<_ACEOF
26181#line $LINENO "configure"
4f14bcd8
GD
26182#include "confdefs.h"
26183#include <pthread.h>
247f5006
VZ
26184#ifdef F77_DUMMY_MAIN
26185# ifdef __cplusplus
26186 extern "C"
26187# endif
26188 int F77_DUMMY_MAIN() { return 1; }
26189#endif
26190int
26191main ()
26192{
4f14bcd8 26193
7274f1c7
RL
26194 pthread_cleanup_push(NULL, NULL);
26195 pthread_cleanup_pop(0);
247f5006
VZ
26196
26197 ;
26198 return 0;
26199}
26200_ACEOF
26201rm -f conftest.$ac_objext
26202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26203 (eval $ac_compile) 2>&5
26204 ac_status=$?
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); } &&
26207 { ac_try='test -s conftest.$ac_objext'
26208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213
7274f1c7 26214 wx_cv_func_pthread_cleanup_push=yes
247f5006 26215
4f14bcd8 26216else
247f5006
VZ
26217 echo "$as_me: failed program was:" >&5
26218cat conftest.$ac_ext >&5
26219
7274f1c7 26220 wx_cv_func_pthread_cleanup_push=no
247f5006 26221
5c6fa7d2 26222fi
247f5006 26223rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26224
247f5006
VZ
26225fi
26226echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
26227echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 26228
7274f1c7 26229 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
247f5006 26230 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26231#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
247f5006 26232_ACEOF
c7a2bf27 26233
7274f1c7 26234 fi
4f14bcd8 26235
247f5006
VZ
26236
26237 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
26238echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
26239if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
26240 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26241else
247f5006
VZ
26242
26243 cat >conftest.$ac_ext <<_ACEOF
26244#line $LINENO "configure"
0dcf9893 26245#include "confdefs.h"
4f14bcd8 26246#include <pthread.h>
247f5006
VZ
26247#ifdef F77_DUMMY_MAIN
26248# ifdef __cplusplus
26249 extern "C"
26250# endif
26251 int F77_DUMMY_MAIN() { return 1; }
26252#endif
26253int
26254main ()
26255{
4f14bcd8 26256
7274f1c7
RL
26257 pthread_mutexattr_t attr;
26258 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
247f5006
VZ
26259
26260 ;
26261 return 0;
26262}
26263_ACEOF
26264rm -f conftest.$ac_objext
26265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26266 (eval $ac_compile) 2>&5
26267 ac_status=$?
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } &&
26270 { ac_try='test -s conftest.$ac_objext'
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; }; then
26276
7274f1c7 26277 wx_cv_type_pthread_mutexattr_t=yes
247f5006 26278
3fed1840 26279else
247f5006
VZ
26280 echo "$as_me: failed program was:" >&5
26281cat conftest.$ac_ext >&5
26282
7274f1c7 26283 wx_cv_type_pthread_mutexattr_t=no
247f5006
VZ
26284
26285
5c6fa7d2 26286fi
247f5006 26287rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26288
247f5006
VZ
26289fi
26290echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
26291echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 26292
7274f1c7 26293 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
247f5006 26294 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26295#define HAVE_PTHREAD_MUTEXATTR_T 1
247f5006 26296_ACEOF
4f14bcd8 26297
7274f1c7 26298 else
247f5006
VZ
26299 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
26300echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
26301if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
26302 echo $ECHO_N "(cached) $ECHO_C" >&6
26303else
26304
26305 cat >conftest.$ac_ext <<_ACEOF
26306#line $LINENO "configure"
3fed1840 26307#include "confdefs.h"
4f14bcd8 26308#include <pthread.h>
247f5006
VZ
26309#ifdef F77_DUMMY_MAIN
26310# ifdef __cplusplus
26311 extern "C"
26312# endif
26313 int F77_DUMMY_MAIN() { return 1; }
26314#endif
26315int
26316main ()
26317{
4f14bcd8 26318
7274f1c7 26319 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
247f5006
VZ
26320
26321 ;
26322 return 0;
26323}
26324_ACEOF
26325rm -f conftest.$ac_objext
26326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26327 (eval $ac_compile) 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } &&
26331 { ac_try='test -s conftest.$ac_objext'
26332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333 (eval $ac_try) 2>&5
26334 ac_status=$?
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; }; then
26337
7274f1c7 26338 wx_cv_type_pthread_rec_mutex_init=yes
247f5006 26339
698dcdb6 26340else
247f5006
VZ
26341 echo "$as_me: failed program was:" >&5
26342cat conftest.$ac_ext >&5
26343
7274f1c7 26344 wx_cv_type_pthread_rec_mutex_init=no
247f5006
VZ
26345
26346
5c6fa7d2 26347fi
247f5006 26348rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26349
247f5006
VZ
26350fi
26351echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
26352echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 26353 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
247f5006 26354 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26355#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
247f5006 26356_ACEOF
3fed1840 26357
7274f1c7 26358 else
247f5006
VZ
26359 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
26360echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
26361 fi
26362 fi
7274f1c7 26363 fi
3fed1840 26364
4f14bcd8
GD
26365fi
26366
26367if test "$wxUSE_THREADS" = "yes"; then
247f5006 26368 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26369#define wxUSE_THREADS 1
247f5006 26370_ACEOF
7b6058cd 26371
8284b0c5 26372
4f14bcd8 26373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 26374else
4f14bcd8 26375 if test "$ac_cv_func_strtok_r" = "yes"; then
247f5006
VZ
26376 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
26377echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
26378 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
26379 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
247f5006
VZ
26380 echo "$as_me:$LINENO: result: yes" >&5
26381echo "${ECHO_T}yes" >&6
4f14bcd8 26382 else
247f5006
VZ
26383 echo "$as_me:$LINENO: result: no" >&5
26384echo "${ECHO_T}no" >&6
4f14bcd8
GD
26385 fi
26386 fi
26387fi
26388
26389if test "$WXGTK20" = 1 ; then
247f5006 26390 cat >>confdefs.h <<_ACEOF
4f14bcd8 26391#define __WXGTK20__ $WXGTK20
247f5006 26392_ACEOF
4f14bcd8
GD
26393
26394 WXGTK12=1
10f2d63a 26395fi
4f14bcd8
GD
26396
26397if test "$WXGTK12" = 1 ; then
247f5006 26398 cat >>confdefs.h <<_ACEOF
4f14bcd8 26399#define __WXGTK12__ $WXGTK12
247f5006 26400_ACEOF
4f14bcd8 26401
10f2d63a 26402fi
698dcdb6 26403
4f14bcd8 26404if test "$WXGTK127" = 1 ; then
247f5006 26405 cat >>confdefs.h <<_ACEOF
4f14bcd8 26406#define __WXGTK127__ $WXGTK127
247f5006 26407_ACEOF
4f14bcd8 26408
698dcdb6 26409fi
10f2d63a 26410
4f14bcd8
GD
26411WXDEBUG=
26412
26413if test "$wxUSE_DEBUG_INFO" = "yes" ; then
26414 WXDEBUG="-g"
26415 wxUSE_OPTIMISE=no
698dcdb6 26416fi
4f14bcd8
GD
26417
26418if test "$wxUSE_DEBUG_GDB" = "yes" ; then
26419 wxUSE_DEBUG_INFO=yes
26420 WXDEBUG="-ggdb"
10f2d63a
VZ
26421fi
26422
4f14bcd8 26423if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
247f5006 26424 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26425#define WXDEBUG 1
247f5006 26426_ACEOF
4f14bcd8
GD
26427
26428 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 26429else
4f14bcd8
GD
26430 if test "$wxUSE_GTK" = 1 ; then
26431 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
26432 fi
26433fi
26434
26435if test "$wxUSE_MEM_TRACING" = "yes" ; then
247f5006 26436 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26437#define wxUSE_MEMORY_TRACING 1
247f5006 26438_ACEOF
4f14bcd8 26439
247f5006 26440 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26441#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
247f5006 26442_ACEOF
4f14bcd8 26443
247f5006 26444 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26445#define wxUSE_DEBUG_NEW_ALWAYS 1
247f5006 26446_ACEOF
4f14bcd8
GD
26447
26448 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
26449fi
26450
26451if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 26452 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
26453fi
26454
26455PROFILE=
26456if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 26457 PROFILE=" -pg"
10f2d63a
VZ
26458fi
26459
009fead0
VZ
26460CODE_GEN_FLAGS=
26461CODE_GEN_FLAGS_CXX=
88e30f2b 26462if test "$GCC" = "yes" ; then
4f14bcd8
GD
26463 if test "$wxUSE_NO_RTTI" = "yes" ; then
26464 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 26465 fi
4f14bcd8
GD
26466 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
26467 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
26468 fi
26469 if test "$wxUSE_PERMISSIVE" = "yes" ; then
26470 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
26471 fi
4f14bcd8
GD
26472 if test "$USE_WIN32" = 1 ; then
26473 # I'm not even really sure what this was ever added to solve,
26474 # but someone added it for mingw native builds, so I guess
26475 # they had a reason, right??
26476 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
26477 fi
1d1b75ac
VZ
26478
26479 case "${host}" in
26480 powerpc*-*-aix* )
26481 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
26482 ;;
26483 esac
4f14bcd8
GD
26484fi
26485
4f14bcd8
GD
26486if test "$wxUSE_OPTIMISE" = "no" ; then
26487 OPTIMISE=
26488else
26489 if test "$GCC" = yes ; then
26490 OPTIMISE="-O2"
26491 case "${host}" in
26492 i586-*-*|i686-*-* )
26493 OPTIMISE="${OPTIMISE} "
26494 ;;
26495 esac
26496 else
26497 OPTIMISE="-O"
26498 fi
26499fi
26500
26501if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
247f5006 26502 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26503#define WXWIN_COMPATIBILITY_2 1
247f5006 26504_ACEOF
4f14bcd8 26505
8284b0c5 26506
4f14bcd8
GD
26507 WXWIN_COMPATIBILITY_2_2="yes"
26508fi
26509
0c9a1c32 26510if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
247f5006 26511 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26512#define WXWIN_COMPATIBILITY_2_2 1
247f5006 26513_ACEOF
4f14bcd8 26514
10f2d63a
VZ
26515fi
26516
8284b0c5 26517
10f2d63a 26518if test "$wxUSE_GUI" = "yes"; then
247f5006 26519 cat >>confdefs.h <<\_ACEOF
10f2d63a 26520#define wxUSE_GUI 1
247f5006 26521_ACEOF
10f2d63a 26522
8284b0c5 26523
10f2d63a 26524 else
247f5006 26525 cat >>confdefs.h <<\_ACEOF
10f2d63a 26526#define wxUSE_NOGUI 1
247f5006 26527_ACEOF
10f2d63a
VZ
26528
26529fi
26530
8284b0c5 26531
10f2d63a 26532if test "$wxUSE_UNIX" = "yes"; then
247f5006 26533 cat >>confdefs.h <<\_ACEOF
10f2d63a 26534#define wxUSE_UNIX 1
247f5006 26535_ACEOF
10f2d63a
VZ
26536
26537fi
26538
8284b0c5 26539
10f2d63a 26540if test "$wxUSE_APPLE_IEEE" = "yes"; then
247f5006 26541 cat >>confdefs.h <<\_ACEOF
10f2d63a 26542#define wxUSE_APPLE_IEEE 1
247f5006 26543_ACEOF
10f2d63a
VZ
26544
26545fi
26546
1e6feb95 26547if test "$wxUSE_TIMER" = "yes"; then
247f5006 26548 cat >>confdefs.h <<\_ACEOF
1e6feb95 26549#define wxUSE_TIMER 1
247f5006 26550_ACEOF
1e6feb95
VZ
26551
26552fi
26553
10f2d63a 26554if test "$wxUSE_WAVE" = "yes"; then
247f5006 26555 cat >>confdefs.h <<\_ACEOF
10f2d63a 26556#define wxUSE_WAVE 1
247f5006 26557_ACEOF
10f2d63a
VZ
26558
26559fi
26560
1e6feb95 26561if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
247f5006 26562 cat >>confdefs.h <<\_ACEOF
1e6feb95 26563#define wxUSE_CMDLINE_PARSER 1
247f5006 26564_ACEOF
1e6feb95
VZ
26565
26566fi
26567
26568if test "$wxUSE_STOPWATCH" = "yes"; then
247f5006 26569 cat >>confdefs.h <<\_ACEOF
1e6feb95 26570#define wxUSE_STOPWATCH 1
247f5006 26571_ACEOF
1e6feb95
VZ
26572
26573fi
26574
26575if test "$wxUSE_DATETIME" = "yes"; then
247f5006 26576 cat >>confdefs.h <<\_ACEOF
1e6feb95 26577#define wxUSE_DATETIME 1
247f5006 26578_ACEOF
1e6feb95
VZ
26579
26580fi
26581
26582if test "$wxUSE_TIMEDATE" = "yes"; then
247f5006 26583 cat >>confdefs.h <<\_ACEOF
1e6feb95 26584#define wxUSE_TIMEDATE 1
247f5006 26585_ACEOF
1e6feb95
VZ
26586
26587fi
26588
10f2d63a 26589if test "$wxUSE_FILE" = "yes"; then
247f5006 26590 cat >>confdefs.h <<\_ACEOF
10f2d63a 26591#define wxUSE_FILE 1
247f5006 26592_ACEOF
10f2d63a
VZ
26593
26594fi
26595
1e6feb95 26596if test "$wxUSE_FFILE" = "yes"; then
247f5006 26597 cat >>confdefs.h <<\_ACEOF
1e6feb95 26598#define wxUSE_FFILE 1
247f5006 26599_ACEOF
1e6feb95
VZ
26600
26601fi
26602
24528b0c 26603if test "$wxUSE_FILESYSTEM" = "yes"; then
247f5006 26604 cat >>confdefs.h <<\_ACEOF
24528b0c 26605#define wxUSE_FILESYSTEM 1
247f5006 26606_ACEOF
24528b0c
VS
26607
26608fi
26609
10f2d63a 26610if test "$wxUSE_FS_INET" = "yes"; then
247f5006 26611 cat >>confdefs.h <<\_ACEOF
10f2d63a 26612#define wxUSE_FS_INET 1
247f5006 26613_ACEOF
10f2d63a
VZ
26614
26615fi
26616
26617if test "$wxUSE_FS_ZIP" = "yes"; then
247f5006 26618 cat >>confdefs.h <<\_ACEOF
10f2d63a 26619#define wxUSE_FS_ZIP 1
247f5006 26620_ACEOF
10f2d63a
VZ
26621
26622fi
26623
26624if test "$wxUSE_ZIPSTREAM" = "yes"; then
247f5006 26625 cat >>confdefs.h <<\_ACEOF
10f2d63a 26626#define wxUSE_ZIPSTREAM 1
247f5006 26627_ACEOF
10f2d63a
VZ
26628
26629fi
26630
eb4efbdc 26631if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
247f5006 26632 cat >>confdefs.h <<\_ACEOF
eb4efbdc 26633#define wxUSE_ON_FATAL_EXCEPTION 1
247f5006 26634_ACEOF
eb4efbdc
VZ
26635
26636fi
26637
4f3c5f06 26638if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
247f5006 26639 cat >>confdefs.h <<\_ACEOF
4f3c5f06 26640#define wxUSE_SNGLINST_CHECKER 1
247f5006 26641_ACEOF
4f3c5f06
VZ
26642
26643fi
26644
10f2d63a 26645if test "$wxUSE_BUSYINFO" = "yes"; then
247f5006 26646 cat >>confdefs.h <<\_ACEOF
10f2d63a 26647#define wxUSE_BUSYINFO 1
247f5006 26648_ACEOF
10f2d63a
VZ
26649
26650fi
26651
26652if test "$wxUSE_STD_IOSTREAM" = "yes"; then
247f5006 26653 cat >>confdefs.h <<\_ACEOF
10f2d63a 26654#define wxUSE_STD_IOSTREAM 1
247f5006 26655_ACEOF
10f2d63a
VZ
26656
26657fi
26658
a3a584a7 26659if test "$wxUSE_TEXTBUFFER" = "yes"; then
247f5006 26660 cat >>confdefs.h <<\_ACEOF
a3a584a7 26661#define wxUSE_TEXTBUFFER 1
247f5006 26662_ACEOF
a3a584a7
VZ
26663
26664fi
26665
10f2d63a 26666if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 26667 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
247f5006
VZ
26668 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
26669echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 26670 else
247f5006 26671 cat >>confdefs.h <<\_ACEOF
10f2d63a 26672#define wxUSE_TEXTFILE 1
247f5006 26673_ACEOF
10f2d63a
VZ
26674
26675 fi
26676fi
26677
26678if test "$wxUSE_CONFIG" = "yes" ; then
26679 if test "$wxUSE_TEXTFILE" != "yes"; then
247f5006
VZ
26680 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
26681echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 26682 else
247f5006 26683 cat >>confdefs.h <<\_ACEOF
10f2d63a 26684#define wxUSE_CONFIG 1
247f5006 26685_ACEOF
10f2d63a
VZ
26686
26687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
26688 fi
26689fi
26690
26691if test "$wxUSE_INTL" = "yes" ; then
26692 if test "$wxUSE_FILE" != "yes"; then
247f5006
VZ
26693 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
26694echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 26695 else
247f5006 26696 cat >>confdefs.h <<\_ACEOF
10f2d63a 26697#define wxUSE_INTL 1
247f5006 26698_ACEOF
10f2d63a
VZ
26699
26700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 26701 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
26702 fi
26703fi
26704
26705if test "$wxUSE_LOG" = "yes"; then
247f5006 26706 cat >>confdefs.h <<\_ACEOF
10f2d63a 26707#define wxUSE_LOG 1
247f5006 26708_ACEOF
10f2d63a 26709
8284b0c5 26710
d73be714 26711 if test "$wxUSE_LOGGUI" = "yes"; then
247f5006 26712 cat >>confdefs.h <<\_ACEOF
d73be714 26713#define wxUSE_LOGGUI 1
247f5006 26714_ACEOF
d73be714
VZ
26715
26716 fi
26717
26718 if test "$wxUSE_LOGWINDOW" = "yes"; then
247f5006 26719 cat >>confdefs.h <<\_ACEOF
d73be714 26720#define wxUSE_LOGWINDOW 1
247f5006 26721_ACEOF
69d27ff7
MB
26722
26723 fi
26724
26725 if test "$wxUSE_LOGDIALOG" = "yes"; then
247f5006 26726 cat >>confdefs.h <<\_ACEOF
69d27ff7 26727#define wxUSE_LOG_DIALOG 1
247f5006 26728_ACEOF
d73be714
VZ
26729
26730 fi
10f2d63a
VZ
26731fi
26732
26733if test "$wxUSE_LONGLONG" = "yes"; then
247f5006 26734 cat >>confdefs.h <<\_ACEOF
10f2d63a 26735#define wxUSE_LONGLONG 1
247f5006 26736_ACEOF
10f2d63a
VZ
26737
26738fi
26739
e8f65ba6 26740if test "$wxUSE_GEOMETRY" = "yes"; then
247f5006 26741 cat >>confdefs.h <<\_ACEOF
e8f65ba6 26742#define wxUSE_GEOMETRY 1
247f5006 26743_ACEOF
e8f65ba6
RR
26744
26745fi
26746
10f2d63a 26747if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
247f5006 26748 cat >>confdefs.h <<\_ACEOF
10f2d63a 26749#define wxUSE_DIALUP_MANAGER 1
247f5006 26750_ACEOF
10f2d63a 26751
70f7a477 26752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
26753fi
26754
26755if test "$wxUSE_STREAMS" = "yes" ; then
247f5006 26756 cat >>confdefs.h <<\_ACEOF
10f2d63a 26757#define wxUSE_STREAMS 1
247f5006 26758_ACEOF
10f2d63a
VZ
26759
26760fi
26761
5c6fa7d2 26762
8284b0c5 26763if test "$wxUSE_DATETIME" = "yes"; then
247f5006
VZ
26764
26765for ac_func in strptime
83307f33 26766do
247f5006
VZ
26767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26768echo "$as_me:$LINENO: checking for $ac_func" >&5
26769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26770if eval "test \"\${$as_ac_var+set}\" = set"; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772else
26773 cat >conftest.$ac_ext <<_ACEOF
26774#line $LINENO "configure"
83307f33
VZ
26775#include "confdefs.h"
26776/* System header to define __stub macros and hopefully few prototypes,
247f5006 26777 which can conflict with char $ac_func (); below. */
83307f33
VZ
26778#include <assert.h>
26779/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26780#ifdef __cplusplus
26781extern "C"
26782#endif
83307f33 26783/* We use char because int might match the return type of a gcc2
247f5006
VZ
26784 builtin and then its argument prototype would still apply. */
26785char $ac_func ();
26786char (*f) ();
26787
26788#ifdef F77_DUMMY_MAIN
26789# ifdef __cplusplus
26790 extern "C"
26791# endif
26792 int F77_DUMMY_MAIN() { return 1; }
26793#endif
26794int
26795main ()
26796{
83307f33
VZ
26797/* The GNU C library defines this for functions which it implements
26798 to always fail with ENOSYS. Some functions are actually named
26799 something starting with __ and the normal name is an alias. */
26800#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26801choke me
26802#else
247f5006 26803f = $ac_func;
83307f33
VZ
26804#endif
26805
247f5006
VZ
26806 ;
26807 return 0;
26808}
26809_ACEOF
26810rm -f conftest.$ac_objext conftest$ac_exeext
26811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26812 (eval $ac_link) 2>&5
26813 ac_status=$?
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } &&
26816 { ac_try='test -s conftest$ac_exeext'
26817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26819 ac_status=$?
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; }; then
26822 eval "$as_ac_var=yes"
26823else
26824 echo "$as_me: failed program was:" >&5
26825cat conftest.$ac_ext >&5
26826eval "$as_ac_var=no"
26827fi
26828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26829fi
26830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26832if test `eval echo '${'$as_ac_var'}'` = yes; then
26833 cat >>confdefs.h <<_ACEOF
26834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26835_ACEOF
83307f33 26836
83307f33
VZ
26837fi
26838done
26839
5c6fa7d2 26840
247f5006
VZ
26841 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
26842echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
26843if test "${wx_cv_var_timezone+set}" = set; then
26844 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26845else
247f5006
VZ
26846
26847 cat >conftest.$ac_ext <<_ACEOF
26848#line $LINENO "configure"
360d6699
VZ
26849#include "confdefs.h"
26850
b4085ce6 26851 #include <time.h>
247f5006
VZ
26852
26853#ifdef F77_DUMMY_MAIN
26854# ifdef __cplusplus
26855 extern "C"
26856# endif
26857 int F77_DUMMY_MAIN() { return 1; }
26858#endif
26859int
26860main ()
26861{
360d6699
VZ
26862
26863 int tz;
4f11a343 26864 tz = timezone;
247f5006
VZ
26865
26866 ;
26867 return 0;
26868}
26869_ACEOF
26870rm -f conftest.$ac_objext
26871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26872 (eval $ac_compile) 2>&5
26873 ac_status=$?
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } &&
26876 { ac_try='test -s conftest.$ac_objext'
26877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878 (eval $ac_try) 2>&5
26879 ac_status=$?
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; }; then
26882
4f11a343 26883 wx_cv_var_timezone=timezone
247f5006 26884
360d6699 26885else
247f5006
VZ
26886 echo "$as_me: failed program was:" >&5
26887cat conftest.$ac_ext >&5
26888
26889 cat >conftest.$ac_ext <<_ACEOF
26890#line $LINENO "configure"
360d6699
VZ
26891#include "confdefs.h"
26892
b4085ce6 26893 #include <time.h>
247f5006
VZ
26894
26895#ifdef F77_DUMMY_MAIN
26896# ifdef __cplusplus
26897 extern "C"
26898# endif
26899 int F77_DUMMY_MAIN() { return 1; }
26900#endif
26901int
26902main ()
26903{
360d6699
VZ
26904
26905 int tz;
26906 tz = _timezone;
247f5006
VZ
26907
26908 ;
26909 return 0;
26910}
26911_ACEOF
26912rm -f conftest.$ac_objext
26913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26914 (eval $ac_compile) 2>&5
26915 ac_status=$?
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); } &&
26918 { ac_try='test -s conftest.$ac_objext'
26919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920 (eval $ac_try) 2>&5
26921 ac_status=$?
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); }; }; then
26924
360d6699 26925 wx_cv_var_timezone=_timezone
247f5006 26926
5357c8e8 26927else
247f5006
VZ
26928 echo "$as_me: failed program was:" >&5
26929cat conftest.$ac_ext >&5
26930
26931 cat >conftest.$ac_ext <<_ACEOF
26932#line $LINENO "configure"
5357c8e8
VZ
26933#include "confdefs.h"
26934
b4085ce6 26935 #include <time.h>
247f5006
VZ
26936
26937#ifdef F77_DUMMY_MAIN
26938# ifdef __cplusplus
26939 extern "C"
26940# endif
26941 int F77_DUMMY_MAIN() { return 1; }
26942#endif
26943int
26944main ()
26945{
5357c8e8
VZ
26946
26947 int tz;
4f11a343 26948 tz = __timezone;
247f5006
VZ
26949
26950 ;
26951 return 0;
26952}
26953_ACEOF
26954rm -f conftest.$ac_objext
26955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26956 (eval $ac_compile) 2>&5
26957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); } &&
26960 { ac_try='test -s conftest.$ac_objext'
26961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26962 (eval $ac_try) 2>&5
26963 ac_status=$?
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; }; then
26966
4f11a343 26967 wx_cv_var_timezone=__timezone
247f5006 26968
360d6699 26969else
247f5006
VZ
26970 echo "$as_me: failed program was:" >&5
26971cat conftest.$ac_ext >&5
26972
f9bc1684 26973 if test "$USE_DOS" = 0 ; then
247f5006
VZ
26974 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
26975echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 26976 fi
247f5006
VZ
26977
26978
328a083c 26979fi
247f5006
VZ
26980rm -f conftest.$ac_objext conftest.$ac_ext
26981
26982
7b4a847f 26983fi
247f5006
VZ
26984rm -f conftest.$ac_objext conftest.$ac_ext
26985
26986
5c6fa7d2 26987fi
247f5006 26988rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26989
247f5006
VZ
26990
26991fi
26992echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
26993echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 26994
f9bc1684 26995 if test "x$wx_cv_var_timezone" != x ; then
247f5006 26996 cat >>confdefs.h <<_ACEOF
360d6699 26997#define WX_TIMEZONE $wx_cv_var_timezone
247f5006 26998_ACEOF
360d6699 26999
f9bc1684 27000 fi
698dcdb6 27001
247f5006
VZ
27002
27003for ac_func in localtime
afc31813 27004do
247f5006
VZ
27005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27006echo "$as_me:$LINENO: checking for $ac_func" >&5
27007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27008if eval "test \"\${$as_ac_var+set}\" = set"; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27010else
27011 cat >conftest.$ac_ext <<_ACEOF
27012#line $LINENO "configure"
10f2d63a 27013#include "confdefs.h"
afc31813 27014/* System header to define __stub macros and hopefully few prototypes,
247f5006 27015 which can conflict with char $ac_func (); below. */
afc31813
VZ
27016#include <assert.h>
27017/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
27018#ifdef __cplusplus
27019extern "C"
27020#endif
afc31813 27021/* We use char because int might match the return type of a gcc2
247f5006
VZ
27022 builtin and then its argument prototype would still apply. */
27023char $ac_func ();
27024char (*f) ();
27025
27026#ifdef F77_DUMMY_MAIN
27027# ifdef __cplusplus
27028 extern "C"
27029# endif
27030 int F77_DUMMY_MAIN() { return 1; }
27031#endif
27032int
27033main ()
27034{
afc31813
VZ
27035/* The GNU C library defines this for functions which it implements
27036 to always fail with ENOSYS. Some functions are actually named
27037 something starting with __ and the normal name is an alias. */
27038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27039choke me
27040#else
247f5006 27041f = $ac_func;
afc31813
VZ
27042#endif
27043
247f5006
VZ
27044 ;
27045 return 0;
27046}
27047_ACEOF
27048rm -f conftest.$ac_objext conftest$ac_exeext
27049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27050 (eval $ac_link) 2>&5
27051 ac_status=$?
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); } &&
27054 { ac_try='test -s conftest$ac_exeext'
27055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056 (eval $ac_try) 2>&5
27057 ac_status=$?
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; }; then
27060 eval "$as_ac_var=yes"
27061else
27062 echo "$as_me: failed program was:" >&5
27063cat conftest.$ac_ext >&5
27064eval "$as_ac_var=no"
27065fi
27066rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27067fi
27068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27069echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27070if test `eval echo '${'$as_ac_var'}'` = yes; then
27071 cat >>confdefs.h <<_ACEOF
27072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27073_ACEOF
afc31813 27074
afc31813
VZ
27075fi
27076done
27077
5c6fa7d2 27078
8284b0c5 27079 if test "$ac_cv_func_localtime" = "yes"; then
247f5006
VZ
27080 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27081echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27082if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27084else
27085
27086 cat >conftest.$ac_ext <<_ACEOF
27087#line $LINENO "configure"
0470b1e6
VZ
27088#include "confdefs.h"
27089
b4085ce6 27090 #include <time.h>
247f5006
VZ
27091
27092#ifdef F77_DUMMY_MAIN
27093# ifdef __cplusplus
27094 extern "C"
27095# endif
27096 int F77_DUMMY_MAIN() { return 1; }
27097#endif
27098int
27099main ()
27100{
0470b1e6
VZ
27101
27102 struct tm tm;
27103 tm.tm_gmtoff++;
247f5006
VZ
27104
27105 ;
27106 return 0;
27107}
27108_ACEOF
27109rm -f conftest.$ac_objext
27110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27111 (eval $ac_compile) 2>&5
27112 ac_status=$?
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } &&
27115 { ac_try='test -s conftest.$ac_objext'
27116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117 (eval $ac_try) 2>&5
27118 ac_status=$?
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); }; }; then
27121
f03a98d8 27122 wx_cv_struct_tm_has_gmtoff=yes
247f5006 27123
0470b1e6 27124else
247f5006
VZ
27125 echo "$as_me: failed program was:" >&5
27126cat conftest.$ac_ext >&5
27127wx_cv_struct_tm_has_gmtoff=no
27128
5c6fa7d2 27129fi
247f5006 27130rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 27131
247f5006
VZ
27132fi
27133echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
27134echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
27135 fi
27136
27137 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
247f5006 27138 cat >>confdefs.h <<\_ACEOF
6232543b 27139#define WX_GMTOFF_IN_TM 1
247f5006 27140_ACEOF
0470b1e6 27141
3fcdd07b
VZ
27142 fi
27143
247f5006
VZ
27144
27145
27146for ac_func in gettimeofday ftime
3fcdd07b 27147do
247f5006
VZ
27148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27149echo "$as_me:$LINENO: checking for $ac_func" >&5
27150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27151if eval "test \"\${$as_ac_var+set}\" = set"; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27153else
27154 cat >conftest.$ac_ext <<_ACEOF
27155#line $LINENO "configure"
3fcdd07b
VZ
27156#include "confdefs.h"
27157/* System header to define __stub macros and hopefully few prototypes,
247f5006 27158 which can conflict with char $ac_func (); below. */
3fcdd07b
VZ
27159#include <assert.h>
27160/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
27161#ifdef __cplusplus
27162extern "C"
27163#endif
3fcdd07b 27164/* We use char because int might match the return type of a gcc2
247f5006
VZ
27165 builtin and then its argument prototype would still apply. */
27166char $ac_func ();
27167char (*f) ();
27168
27169#ifdef F77_DUMMY_MAIN
27170# ifdef __cplusplus
27171 extern "C"
27172# endif
27173 int F77_DUMMY_MAIN() { return 1; }
27174#endif
27175int
27176main ()
27177{
3fcdd07b
VZ
27178/* The GNU C library defines this for functions which it implements
27179 to always fail with ENOSYS. Some functions are actually named
27180 something starting with __ and the normal name is an alias. */
27181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27182choke me
27183#else
247f5006 27184f = $ac_func;
3fcdd07b
VZ
27185#endif
27186
247f5006
VZ
27187 ;
27188 return 0;
27189}
27190_ACEOF
27191rm -f conftest.$ac_objext conftest$ac_exeext
27192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27193 (eval $ac_link) 2>&5
27194 ac_status=$?
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } &&
27197 { ac_try='test -s conftest$ac_exeext'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; }; then
27203 eval "$as_ac_var=yes"
27204else
27205 echo "$as_me: failed program was:" >&5
27206cat conftest.$ac_ext >&5
27207eval "$as_ac_var=no"
27208fi
27209rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27210fi
27211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27213if test `eval echo '${'$as_ac_var'}'` = yes; then
27214 cat >>confdefs.h <<_ACEOF
27215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27216_ACEOF
3fcdd07b 27217 break
3fcdd07b
VZ
27218fi
27219done
27220
698dcdb6 27221
8284b0c5 27222 if test "$ac_cv_func_gettimeofday" = "yes"; then
247f5006
VZ
27223 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
27224echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
27225if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27227else
27228
27229
27230
27231 ac_ext=cc
5c6fa7d2 27232ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
27233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 27236
8284b0c5 27237
247f5006
VZ
27238 cat >conftest.$ac_ext <<_ACEOF
27239#line $LINENO "configure"
10f2d63a 27240#include "confdefs.h"
afc31813
VZ
27241
27242 #include <sys/time.h>
27243 #include <unistd.h>
247f5006
VZ
27244
27245#ifdef F77_DUMMY_MAIN
27246# ifdef __cplusplus
27247 extern "C"
27248# endif
27249 int F77_DUMMY_MAIN() { return 1; }
27250#endif
27251int
27252main ()
27253{
afc31813
VZ
27254
27255 struct timeval tv;
776862b4 27256 gettimeofday(&tv, NULL);
247f5006
VZ
27257
27258 ;
27259 return 0;
27260}
27261_ACEOF
27262rm -f conftest.$ac_objext
27263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27264 (eval $ac_compile) 2>&5
27265 ac_status=$?
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); } &&
27268 { ac_try='test -s conftest.$ac_objext'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5
27271 ac_status=$?
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; }; then
afc31813 27274 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 27275else
247f5006
VZ
27276 echo "$as_me: failed program was:" >&5
27277cat conftest.$ac_ext >&5
27278cat >conftest.$ac_ext <<_ACEOF
27279#line $LINENO "configure"
10f2d63a 27280#include "confdefs.h"
afc31813
VZ
27281
27282 #include <sys/time.h>
27283 #include <unistd.h>
247f5006
VZ
27284
27285#ifdef F77_DUMMY_MAIN
27286# ifdef __cplusplus
27287 extern "C"
27288# endif
27289 int F77_DUMMY_MAIN() { return 1; }
27290#endif
27291int
27292main ()
27293{
afc31813
VZ
27294
27295 struct timeval tv;
27296 gettimeofday(&tv);
247f5006
VZ
27297
27298 ;
27299 return 0;
27300}
27301_ACEOF
27302rm -f conftest.$ac_objext
27303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27304 (eval $ac_compile) 2>&5
27305 ac_status=$?
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } &&
27308 { ac_try='test -s conftest.$ac_objext'
27309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27310 (eval $ac_try) 2>&5
27311 ac_status=$?
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
afc31813 27314 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 27315else
247f5006
VZ
27316 echo "$as_me: failed program was:" >&5
27317cat conftest.$ac_ext >&5
27318
27319 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
27320echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 27321 wx_cv_func_gettimeofday_has_2_args=unknown
247f5006
VZ
27322
27323
10f2d63a 27324fi
247f5006
VZ
27325rm -f conftest.$ac_objext conftest.$ac_ext
27326
10f2d63a 27327fi
247f5006 27328rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 27329 ac_ext=c
10f2d63a 27330ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
27331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27333ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 27334
8284b0c5 27335
247f5006
VZ
27336fi
27337echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
27338echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 27339
afc31813 27340 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
247f5006 27341 cat >>confdefs.h <<\_ACEOF
afc31813 27342#define WX_GETTIMEOFDAY_NO_TZ 1
247f5006 27343_ACEOF
afc31813
VZ
27344
27345 fi
27346 fi
27347
247f5006 27348 cat >>confdefs.h <<\_ACEOF
afc31813 27349#define wxUSE_TIMEDATE 1
247f5006 27350_ACEOF
afc31813
VZ
27351
27352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
27353fi
27354
8284b0c5 27355
52127426 27356if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 27357 if test "$wxUSE_MGL" = "1"; then
247f5006
VZ
27358 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
27359echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
27360 wxUSE_SOCKETS="no"
27361 fi
0feee163 27362fi
b089607b 27363
0feee163
VZ
27364if test "$wxUSE_SOCKETS" = "yes"; then
27365 if test "$TOOLKIT" != "MSW"; then
247f5006
VZ
27366 echo "$as_me:$LINENO: checking for socket" >&5
27367echo $ECHO_N "checking for socket... $ECHO_C" >&6
27368if test "${ac_cv_func_socket+set}" = set; then
27369 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 27370else
247f5006
VZ
27371 cat >conftest.$ac_ext <<_ACEOF
27372#line $LINENO "configure"
c63c7106
VZ
27373#include "confdefs.h"
27374/* System header to define __stub macros and hopefully few prototypes,
247f5006 27375 which can conflict with char socket (); below. */
c63c7106
VZ
27376#include <assert.h>
27377/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
27378#ifdef __cplusplus
27379extern "C"
27380#endif
c63c7106 27381/* We use char because int might match the return type of a gcc2
247f5006
VZ
27382 builtin and then its argument prototype would still apply. */
27383char socket ();
27384char (*f) ();
27385
27386#ifdef F77_DUMMY_MAIN
27387# ifdef __cplusplus
27388 extern "C"
27389# endif
27390 int F77_DUMMY_MAIN() { return 1; }
27391#endif
27392int
27393main ()
27394{
c63c7106
VZ
27395/* The GNU C library defines this for functions which it implements
27396 to always fail with ENOSYS. Some functions are actually named
27397 something starting with __ and the normal name is an alias. */
27398#if defined (__stub_socket) || defined (__stub___socket)
27399choke me
27400#else
247f5006 27401f = socket;
c63c7106
VZ
27402#endif
27403
247f5006
VZ
27404 ;
27405 return 0;
27406}
27407_ACEOF
27408rm -f conftest.$ac_objext conftest$ac_exeext
27409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27410 (eval $ac_link) 2>&5
27411 ac_status=$?
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } &&
27414 { ac_try='test -s conftest$ac_exeext'
27415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; }; then
27420 ac_cv_func_socket=yes
27421else
27422 echo "$as_me: failed program was:" >&5
27423cat conftest.$ac_ext >&5
27424ac_cv_func_socket=no
27425fi
27426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27427fi
27428echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27429echo "${ECHO_T}$ac_cv_func_socket" >&6
27430if test $ac_cv_func_socket = yes; then
c63c7106
VZ
27431 :
27432else
247f5006
VZ
27433 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27434echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
27435if test "${ac_cv_lib_socket_socket+set}" = set; then
27436 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 27437else
247f5006 27438 ac_check_lib_save_LIBS=$LIBS
c63c7106 27439LIBS="-lsocket $LIBS"
247f5006
VZ
27440cat >conftest.$ac_ext <<_ACEOF
27441#line $LINENO "configure"
c63c7106 27442#include "confdefs.h"
247f5006 27443
c63c7106 27444/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
27445#ifdef __cplusplus
27446extern "C"
27447#endif
c63c7106 27448/* We use char because int might match the return type of a gcc2
247f5006
VZ
27449 builtin and then its argument prototype would still apply. */
27450char socket ();
27451#ifdef F77_DUMMY_MAIN
27452# ifdef __cplusplus
27453 extern "C"
27454# endif
27455 int F77_DUMMY_MAIN() { return 1; }
27456#endif
27457int
27458main ()
27459{
27460socket ();
27461 ;
27462 return 0;
27463}
27464_ACEOF
27465rm -f conftest.$ac_objext conftest$ac_exeext
27466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27467 (eval $ac_link) 2>&5
27468 ac_status=$?
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
27471 { ac_try='test -s conftest$ac_exeext'
27472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473 (eval $ac_try) 2>&5
27474 ac_status=$?
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; }; then
27477 ac_cv_lib_socket_socket=yes
27478else
27479 echo "$as_me: failed program was:" >&5
27480cat conftest.$ac_ext >&5
27481ac_cv_lib_socket_socket=no
27482fi
27483rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27484LIBS=$ac_check_lib_save_LIBS
27485fi
27486echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27487echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
27488if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
27489 if test "$INET_LINK" != " -lsocket"; then
27490 INET_LINK="$INET_LINK -lsocket"
27491 fi
c63c7106 27492else
afc31813 27493
247f5006
VZ
27494 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
27495echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 27496 wxUSE_SOCKETS=no
247f5006
VZ
27497
27498
6232543b 27499fi
b089607b 27500
247f5006 27501
1e487827 27502fi
afc31813 27503
3a922bb4 27504 fi
0feee163 27505fi
51a9faba 27506
0feee163
VZ
27507if test "$wxUSE_SOCKETS" = "yes" ; then
27508 if test "$TOOLKIT" != "MSW"; then
247f5006
VZ
27509 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
27510echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
27511if test "${wx_cv_type_getsockname3+set}" = set; then
27512 echo $ECHO_N "(cached) $ECHO_C" >&6
27513else
27514
27515
27516
27517 ac_ext=cc
5c6fa7d2 27518ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
27519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
698dcdb6 27522
8284b0c5 27523
247f5006
VZ
27524 cat >conftest.$ac_ext <<_ACEOF
27525#line $LINENO "configure"
afc31813 27526#include "confdefs.h"
51a9faba 27527
3a922bb4
RL
27528 #include <sys/types.h>
27529 #include <sys/socket.h>
247f5006
VZ
27530
27531#ifdef F77_DUMMY_MAIN
27532# ifdef __cplusplus
27533 extern "C"
27534# endif
27535 int F77_DUMMY_MAIN() { return 1; }
27536#endif
27537int
27538main ()
27539{
51a9faba 27540
3a922bb4
RL
27541 socklen_t len;
27542 getsockname(0, 0, &len);
247f5006
VZ
27543
27544 ;
27545 return 0;
27546}
27547_ACEOF
27548rm -f conftest.$ac_objext
27549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27550 (eval $ac_compile) 2>&5
27551 ac_status=$?
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); } &&
27554 { ac_try='test -s conftest.$ac_objext'
27555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27556 (eval $ac_try) 2>&5
27557 ac_status=$?
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); }; }; then
51a9faba 27560 wx_cv_type_getsockname3=socklen_t
afc31813 27561else
247f5006
VZ
27562 echo "$as_me: failed program was:" >&5
27563cat conftest.$ac_ext >&5
27564cat >conftest.$ac_ext <<_ACEOF
27565#line $LINENO "configure"
afc31813 27566#include "confdefs.h"
51a9faba 27567
3a922bb4
RL
27568 #include <sys/types.h>
27569 #include <sys/socket.h>
247f5006
VZ
27570
27571#ifdef F77_DUMMY_MAIN
27572# ifdef __cplusplus
27573 extern "C"
27574# endif
27575 int F77_DUMMY_MAIN() { return 1; }
27576#endif
27577int
27578main ()
27579{
51a9faba 27580
3a922bb4
RL
27581 size_t len;
27582 getsockname(0, 0, &len);
247f5006
VZ
27583
27584 ;
27585 return 0;
27586}
27587_ACEOF
27588rm -f conftest.$ac_objext
27589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27590 (eval $ac_compile) 2>&5
27591 ac_status=$?
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); } &&
27594 { ac_try='test -s conftest.$ac_objext'
27595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596 (eval $ac_try) 2>&5
27597 ac_status=$?
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; }; then
51a9faba 27600 wx_cv_type_getsockname3=size_t
afc31813 27601else
247f5006
VZ
27602 echo "$as_me: failed program was:" >&5
27603cat conftest.$ac_ext >&5
27604cat >conftest.$ac_ext <<_ACEOF
27605#line $LINENO "configure"
afc31813 27606#include "confdefs.h"
51a9faba 27607
3a922bb4
RL
27608 #include <sys/types.h>
27609 #include <sys/socket.h>
247f5006
VZ
27610
27611#ifdef F77_DUMMY_MAIN
27612# ifdef __cplusplus
27613 extern "C"
27614# endif
27615 int F77_DUMMY_MAIN() { return 1; }
27616#endif
27617int
27618main ()
27619{
51a9faba 27620
3a922bb4
RL
27621 int len;
27622 getsockname(0, 0, &len);
247f5006
VZ
27623
27624 ;
27625 return 0;
27626}
27627_ACEOF
27628rm -f conftest.$ac_objext
27629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27630 (eval $ac_compile) 2>&5
27631 ac_status=$?
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } &&
27634 { ac_try='test -s conftest.$ac_objext'
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27637 ac_status=$?
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; }; then
51a9faba 27640 wx_cv_type_getsockname3=int
afc31813 27641else
247f5006
VZ
27642 echo "$as_me: failed program was:" >&5
27643cat conftest.$ac_ext >&5
27644wx_cv_type_getsockname3=unknown
27645
afc31813 27646fi
247f5006
VZ
27647rm -f conftest.$ac_objext conftest.$ac_ext
27648
afc31813 27649fi
247f5006
VZ
27650rm -f conftest.$ac_objext conftest.$ac_ext
27651
afc31813 27652fi
247f5006 27653rm -f conftest.$ac_objext conftest.$ac_ext
51a9faba 27654
3a922bb4 27655 ac_ext=c
afc31813 27656ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
27657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27659ac_compiler_gnu=$ac_cv_c_compiler_gnu
afc31813 27660
8284b0c5 27661
247f5006
VZ
27662fi
27663echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
27664echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 27665
3a922bb4
RL
27666 if test "$wx_cv_type_getsockname3" = "unknown"; then
27667 wxUSE_SOCKETS=no
247f5006
VZ
27668 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
27669echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 27670 else
247f5006 27671 cat >>confdefs.h <<_ACEOF
51a9faba 27672#define SOCKLEN_T $wx_cv_type_getsockname3
247f5006 27673_ACEOF
51a9faba 27674
3a922bb4 27675 fi
51a9faba
VZ
27676 fi
27677fi
afc31813 27678
51a9faba 27679if test "$wxUSE_SOCKETS" = "yes" ; then
247f5006 27680 cat >>confdefs.h <<\_ACEOF
afc31813 27681#define wxUSE_SOCKETS 1
247f5006 27682_ACEOF
afc31813 27683
70f7a477 27684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
27685fi
27686
8284b0c5 27687
dc3d889d
VZ
27688if test "$wxUSE_GUI" = "yes"; then
27689
156b2523 27690 if test "$TOOLKIT" = "MAC"; then
247f5006
VZ
27691 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
27692echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
27693 wxUSE_JOYSTICK=no
27694 fi
27695 if test "$TOOLKIT" = "MOTIF"; then
247f5006
VZ
27696 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
27697echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 27698 wxUSE_JOYSTICK=no
f79bd02d
JS
27699 fi
27700 if test "$TOOLKIT" = "X11"; then
247f5006
VZ
27701 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
27702echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 27703 wxUSE_JOYSTICK=no
156b2523
GD
27704 fi
27705
3a922bb4
RL
27706 if test "$TOOLKIT" != "MSW"; then
27707 if test "$wxUSE_JOYSTICK" = "yes"; then
247f5006
VZ
27708
27709for ac_header in linux/joystick.h
10f2d63a 27710do
247f5006
VZ
27711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27712if eval "test \"\${$as_ac_Header+set}\" = set"; then
27713 echo "$as_me:$LINENO: checking for $ac_header" >&5
27714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27715if eval "test \"\${$as_ac_Header+set}\" = set"; then
27716 echo $ECHO_N "(cached) $ECHO_C" >&6
27717fi
27718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27720else
27721 # Is the header compilable?
27722echo "$as_me:$LINENO: checking $ac_header usability" >&5
27723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27724cat >conftest.$ac_ext <<_ACEOF
27725#line $LINENO "configure"
10f2d63a 27726#include "confdefs.h"
247f5006
VZ
27727$ac_includes_default
27728#include <$ac_header>
27729_ACEOF
27730rm -f conftest.$ac_objext
27731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27732 (eval $ac_compile) 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } &&
27736 { ac_try='test -s conftest.$ac_objext'
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; }; then
27742 ac_header_compiler=yes
27743else
27744 echo "$as_me: failed program was:" >&5
27745cat conftest.$ac_ext >&5
27746ac_header_compiler=no
27747fi
27748rm -f conftest.$ac_objext conftest.$ac_ext
27749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27750echo "${ECHO_T}$ac_header_compiler" >&6
27751
27752# Is the header present?
27753echo "$as_me:$LINENO: checking $ac_header presence" >&5
27754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27755cat >conftest.$ac_ext <<_ACEOF
27756#line $LINENO "configure"
27757#include "confdefs.h"
27758#include <$ac_header>
27759_ACEOF
27760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27762 ac_status=$?
27763 egrep -v '^ *\+' conftest.er1 >conftest.err
27764 rm -f conftest.er1
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } >/dev/null; then
27768 if test -s conftest.err; then
27769 ac_cpp_err=$ac_c_preproc_warn_flag
27770 else
27771 ac_cpp_err=
27772 fi
27773else
27774 ac_cpp_err=yes
10f2d63a 27775fi
247f5006
VZ
27776if test -z "$ac_cpp_err"; then
27777 ac_header_preproc=yes
27778else
27779 echo "$as_me: failed program was:" >&5
27780 cat conftest.$ac_ext >&5
27781 ac_header_preproc=no
27782fi
27783rm -f conftest.err conftest.$ac_ext
27784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27785echo "${ECHO_T}$ac_header_preproc" >&6
27786
27787# So? What about this header?
27788case $ac_header_compiler:$ac_header_preproc in
27789 yes:no )
27790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
27794 no:yes )
27795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
27801esac
27802echo "$as_me:$LINENO: checking for $ac_header" >&5
27803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27804if eval "test \"\${$as_ac_Header+set}\" = set"; then
27805 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27806else
247f5006
VZ
27807 eval "$as_ac_Header=$ac_header_preproc"
27808fi
27809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27811
10f2d63a 27812fi
247f5006
VZ
27813if test `eval echo '${'$as_ac_Header'}'` = yes; then
27814 cat >>confdefs.h <<_ACEOF
27815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27816_ACEOF
27817
27818fi
27819
10f2d63a
VZ
27820done
27821
3a922bb4
RL
27822 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
27823 wxUSE_JOYSTICK=no
247f5006
VZ
27824 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
27825echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
27826 fi
27827 fi
27828 fi
b089607b 27829
3a922bb4 27830 if test "$wxUSE_JOYSTICK" = "yes"; then
247f5006 27831 cat >>confdefs.h <<\_ACEOF
10f2d63a 27832#define wxUSE_JOYSTICK 1
247f5006 27833_ACEOF
10f2d63a 27834
3a922bb4
RL
27835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
27836 fi
dc3d889d
VZ
27837fi
27838
8284b0c5 27839
b089607b
VZ
27840if test "$TOOLKIT" != "MSW"; then
27841
3a922bb4
RL
27842 HAVE_DL_FUNCS=0
27843 HAVE_SHL_FUNCS=0
0b9ab0bd 27844 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
27845 if test "$USE_DARWIN" = 1; then
27846 HAVE_DL_FUNCS=1
27847 else
247f5006
VZ
27848
27849for ac_func in dlopen
10f2d63a 27850do
247f5006
VZ
27851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27852echo "$as_me:$LINENO: checking for $ac_func" >&5
27853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27854if eval "test \"\${$as_ac_var+set}\" = set"; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27856else
27857 cat >conftest.$ac_ext <<_ACEOF
27858#line $LINENO "configure"
10f2d63a
VZ
27859#include "confdefs.h"
27860/* System header to define __stub macros and hopefully few prototypes,
247f5006 27861 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
27862#include <assert.h>
27863/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
27864#ifdef __cplusplus
27865extern "C"
27866#endif
10f2d63a 27867/* We use char because int might match the return type of a gcc2
247f5006
VZ
27868 builtin and then its argument prototype would still apply. */
27869char $ac_func ();
27870char (*f) ();
27871
27872#ifdef F77_DUMMY_MAIN
27873# ifdef __cplusplus
27874 extern "C"
27875# endif
27876 int F77_DUMMY_MAIN() { return 1; }
27877#endif
27878int
27879main ()
27880{
10f2d63a
VZ
27881/* The GNU C library defines this for functions which it implements
27882 to always fail with ENOSYS. Some functions are actually named
27883 something starting with __ and the normal name is an alias. */
27884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27885choke me
27886#else
247f5006 27887f = $ac_func;
10f2d63a
VZ
27888#endif
27889
247f5006
VZ
27890 ;
27891 return 0;
27892}
27893_ACEOF
27894rm -f conftest.$ac_objext conftest$ac_exeext
27895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27896 (eval $ac_link) 2>&5
27897 ac_status=$?
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } &&
27900 { ac_try='test -s conftest$ac_exeext'
27901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902 (eval $ac_try) 2>&5
27903 ac_status=$?
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); }; }; then
27906 eval "$as_ac_var=yes"
27907else
27908 echo "$as_me: failed program was:" >&5
27909cat conftest.$ac_ext >&5
27910eval "$as_ac_var=no"
27911fi
27912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27913fi
27914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27915echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27916if test `eval echo '${'$as_ac_var'}'` = yes; then
27917 cat >>confdefs.h <<_ACEOF
27918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27919_ACEOF
27920
27921 cat >>confdefs.h <<\_ACEOF
10f2d63a 27922#define HAVE_DLOPEN 1
247f5006 27923_ACEOF
10f2d63a 27924
3a922bb4 27925 HAVE_DL_FUNCS=1
247f5006 27926
10f2d63a 27927else
247f5006
VZ
27928
27929 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27930echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27931if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27932 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27933else
247f5006 27934 ac_check_lib_save_LIBS=$LIBS
10f2d63a 27935LIBS="-ldl $LIBS"
247f5006
VZ
27936cat >conftest.$ac_ext <<_ACEOF
27937#line $LINENO "configure"
10f2d63a 27938#include "confdefs.h"
247f5006 27939
10f2d63a 27940/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
27941#ifdef __cplusplus
27942extern "C"
27943#endif
10f2d63a 27944/* We use char because int might match the return type of a gcc2
247f5006
VZ
27945 builtin and then its argument prototype would still apply. */
27946char dlopen ();
27947#ifdef F77_DUMMY_MAIN
27948# ifdef __cplusplus
27949 extern "C"
27950# endif
27951 int F77_DUMMY_MAIN() { return 1; }
27952#endif
27953int
27954main ()
27955{
27956dlopen ();
27957 ;
27958 return 0;
27959}
27960_ACEOF
27961rm -f conftest.$ac_objext conftest$ac_exeext
27962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27963 (eval $ac_link) 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } &&
27967 { ac_try='test -s conftest$ac_exeext'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; }; then
27973 ac_cv_lib_dl_dlopen=yes
27974else
27975 echo "$as_me: failed program was:" >&5
27976cat conftest.$ac_ext >&5
27977ac_cv_lib_dl_dlopen=no
27978fi
27979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27980LIBS=$ac_check_lib_save_LIBS
27981fi
27982echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27983echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27984if test $ac_cv_lib_dl_dlopen = yes; then
27985
27986 cat >>confdefs.h <<\_ACEOF
10f2d63a 27987#define HAVE_DLOPEN 1
247f5006 27988_ACEOF
10f2d63a 27989
3a922bb4 27990 HAVE_DL_FUNCS=1
3d63bc3a 27991 DL_LINK=" -ldl$DL_LINK"
247f5006 27992
10f2d63a 27993else
10f2d63a 27994
247f5006
VZ
27995
27996for ac_func in shl_load
10f2d63a 27997do
247f5006
VZ
27998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27999echo "$as_me:$LINENO: checking for $ac_func" >&5
28000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28001if eval "test \"\${$as_ac_var+set}\" = set"; then
28002 echo $ECHO_N "(cached) $ECHO_C" >&6
28003else
28004 cat >conftest.$ac_ext <<_ACEOF
28005#line $LINENO "configure"
10f2d63a
VZ
28006#include "confdefs.h"
28007/* System header to define __stub macros and hopefully few prototypes,
247f5006 28008 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
28009#include <assert.h>
28010/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28011#ifdef __cplusplus
28012extern "C"
28013#endif
10f2d63a 28014/* We use char because int might match the return type of a gcc2
247f5006
VZ
28015 builtin and then its argument prototype would still apply. */
28016char $ac_func ();
28017char (*f) ();
28018
28019#ifdef F77_DUMMY_MAIN
28020# ifdef __cplusplus
28021 extern "C"
28022# endif
28023 int F77_DUMMY_MAIN() { return 1; }
28024#endif
28025int
28026main ()
28027{
10f2d63a
VZ
28028/* The GNU C library defines this for functions which it implements
28029 to always fail with ENOSYS. Some functions are actually named
28030 something starting with __ and the normal name is an alias. */
28031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28032choke me
28033#else
247f5006 28034f = $ac_func;
10f2d63a
VZ
28035#endif
28036
247f5006
VZ
28037 ;
28038 return 0;
28039}
28040_ACEOF
28041rm -f conftest.$ac_objext conftest$ac_exeext
28042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28043 (eval $ac_link) 2>&5
28044 ac_status=$?
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } &&
28047 { ac_try='test -s conftest$ac_exeext'
28048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28049 (eval $ac_try) 2>&5
28050 ac_status=$?
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); }; }; then
28053 eval "$as_ac_var=yes"
28054else
28055 echo "$as_me: failed program was:" >&5
28056cat conftest.$ac_ext >&5
28057eval "$as_ac_var=no"
28058fi
28059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28060fi
28061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28063if test `eval echo '${'$as_ac_var'}'` = yes; then
28064 cat >>confdefs.h <<_ACEOF
28065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28066_ACEOF
28067
28068 cat >>confdefs.h <<\_ACEOF
10f2d63a 28069#define HAVE_SHL_LOAD 1
247f5006 28070_ACEOF
10f2d63a 28071
3a922bb4 28072 HAVE_SHL_FUNCS=1
247f5006 28073
10f2d63a 28074else
247f5006
VZ
28075
28076 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
28077echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
28078if test "${ac_cv_lib_shl_load_dld+set}" = set; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 28080else
247f5006 28081 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 28082LIBS="-lshl_load $LIBS"
247f5006
VZ
28083cat >conftest.$ac_ext <<_ACEOF
28084#line $LINENO "configure"
f6bcfd97 28085#include "confdefs.h"
247f5006 28086
8284b0c5 28087/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28088#ifdef __cplusplus
28089extern "C"
28090#endif
f6bcfd97 28091/* We use char because int might match the return type of a gcc2
247f5006
VZ
28092 builtin and then its argument prototype would still apply. */
28093char dld ();
28094#ifdef F77_DUMMY_MAIN
28095# ifdef __cplusplus
28096 extern "C"
28097# endif
28098 int F77_DUMMY_MAIN() { return 1; }
28099#endif
28100int
28101main ()
28102{
28103dld ();
28104 ;
28105 return 0;
28106}
28107_ACEOF
28108rm -f conftest.$ac_objext conftest$ac_exeext
28109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28110 (eval $ac_link) 2>&5
28111 ac_status=$?
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); } &&
28114 { ac_try='test -s conftest$ac_exeext'
28115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116 (eval $ac_try) 2>&5
28117 ac_status=$?
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; }; then
28120 ac_cv_lib_shl_load_dld=yes
28121else
28122 echo "$as_me: failed program was:" >&5
28123cat conftest.$ac_ext >&5
28124ac_cv_lib_shl_load_dld=no
28125fi
28126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28127LIBS=$ac_check_lib_save_LIBS
28128fi
28129echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
28130echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
28131if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 28132
3a922bb4 28133 HAVE_SHL_FUNCS=1
3d63bc3a 28134 DL_LINK=" -ldld$DL_LINK"
247f5006 28135
f6bcfd97
BP
28136fi
28137
247f5006 28138
10f2d63a
VZ
28139fi
28140done
28141
247f5006 28142
10f2d63a
VZ
28143fi
28144
247f5006 28145
10f2d63a
VZ
28146fi
28147done
28148
5c6fa7d2 28149
8284b0c5 28150 if test "$HAVE_DL_FUNCS" = 1; then
247f5006
VZ
28151
28152for ac_func in dlerror
f6bcfd97 28153do
247f5006
VZ
28154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28155echo "$as_me:$LINENO: checking for $ac_func" >&5
28156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28157if eval "test \"\${$as_ac_var+set}\" = set"; then
28158 echo $ECHO_N "(cached) $ECHO_C" >&6
28159else
28160 cat >conftest.$ac_ext <<_ACEOF
28161#line $LINENO "configure"
f6bcfd97
BP
28162#include "confdefs.h"
28163/* System header to define __stub macros and hopefully few prototypes,
247f5006 28164 which can conflict with char $ac_func (); below. */
f6bcfd97
BP
28165#include <assert.h>
28166/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28167#ifdef __cplusplus
28168extern "C"
28169#endif
f6bcfd97 28170/* We use char because int might match the return type of a gcc2
247f5006
VZ
28171 builtin and then its argument prototype would still apply. */
28172char $ac_func ();
28173char (*f) ();
28174
28175#ifdef F77_DUMMY_MAIN
28176# ifdef __cplusplus
28177 extern "C"
28178# endif
28179 int F77_DUMMY_MAIN() { return 1; }
28180#endif
28181int
28182main ()
28183{
f6bcfd97
BP
28184/* The GNU C library defines this for functions which it implements
28185 to always fail with ENOSYS. Some functions are actually named
28186 something starting with __ and the normal name is an alias. */
28187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28188choke me
28189#else
247f5006 28190f = $ac_func;
f6bcfd97
BP
28191#endif
28192
247f5006
VZ
28193 ;
28194 return 0;
28195}
28196_ACEOF
28197rm -f conftest.$ac_objext conftest$ac_exeext
28198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28199 (eval $ac_link) 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); } &&
28203 { ac_try='test -s conftest$ac_exeext'
28204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205 (eval $ac_try) 2>&5
28206 ac_status=$?
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); }; }; then
28209 eval "$as_ac_var=yes"
28210else
28211 echo "$as_me: failed program was:" >&5
28212cat conftest.$ac_ext >&5
28213eval "$as_ac_var=no"
28214fi
28215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28216fi
28217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28219if test `eval echo '${'$as_ac_var'}'` = yes; then
28220 cat >>confdefs.h <<_ACEOF
28221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28222_ACEOF
28223 cat >>confdefs.h <<\_ACEOF
f6bcfd97 28224#define HAVE_DLERROR 1
247f5006 28225_ACEOF
f6bcfd97
BP
28226
28227else
247f5006
VZ
28228 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
28229echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
28230if test "${ac_cv_lib_dl_dlerror+set}" = set; then
28231 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 28232else
247f5006 28233 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 28234LIBS="-ldl $LIBS"
247f5006
VZ
28235cat >conftest.$ac_ext <<_ACEOF
28236#line $LINENO "configure"
f6bcfd97 28237#include "confdefs.h"
247f5006 28238
f6bcfd97 28239/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28240#ifdef __cplusplus
28241extern "C"
28242#endif
f6bcfd97 28243/* We use char because int might match the return type of a gcc2
247f5006
VZ
28244 builtin and then its argument prototype would still apply. */
28245char dlerror ();
28246#ifdef F77_DUMMY_MAIN
28247# ifdef __cplusplus
28248 extern "C"
28249# endif
28250 int F77_DUMMY_MAIN() { return 1; }
28251#endif
28252int
28253main ()
28254{
28255dlerror ();
28256 ;
28257 return 0;
28258}
28259_ACEOF
28260rm -f conftest.$ac_objext conftest$ac_exeext
28261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28262 (eval $ac_link) 2>&5
28263 ac_status=$?
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); } &&
28266 { ac_try='test -s conftest$ac_exeext'
28267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268 (eval $ac_try) 2>&5
28269 ac_status=$?
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); }; }; then
28272 ac_cv_lib_dl_dlerror=yes
28273else
28274 echo "$as_me: failed program was:" >&5
28275cat conftest.$ac_ext >&5
28276ac_cv_lib_dl_dlerror=no
28277fi
28278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28279LIBS=$ac_check_lib_save_LIBS
28280fi
28281echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
28282echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
28283if test $ac_cv_lib_dl_dlerror = yes; then
28284 cat >>confdefs.h <<\_ACEOF
f6bcfd97 28285#define HAVE_DLERROR 1
247f5006 28286_ACEOF
f6bcfd97 28287
f6bcfd97
BP
28288fi
28289
28290fi
28291done
28292
3a922bb4
RL
28293 fi
28294 fi
f6bcfd97 28295
3a922bb4
RL
28296 if test "$HAVE_DL_FUNCS" = 0; then
28297 if test "$HAVE_SHL_FUNCS" = 0; then
28298 if test "$USE_UNIX" = 1; then
247f5006
VZ
28299 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
28300echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 28301 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
28302 wxUSE_DYNLIB_CLASS=no
28303 else
247f5006
VZ
28304 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
28305echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
28306 fi
28307 fi
10f2d63a
VZ
28308 fi
28309 fi
28310fi
28311
0b9ab0bd 28312if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
247f5006 28313 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 28314#define wxUSE_DYNAMIC_LOADER 1
247f5006 28315_ACEOF
0b9ab0bd
RL
28316
28317elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
247f5006 28318 cat >>confdefs.h <<\_ACEOF
10f2d63a 28319#define wxUSE_DYNLIB_CLASS 1
247f5006 28320_ACEOF
10f2d63a
VZ
28321
28322fi
28323
8284b0c5 28324
1e6feb95 28325if test "$wxUSE_FONTMAP" = "yes" ; then
247f5006 28326 cat >>confdefs.h <<\_ACEOF
1e6feb95 28327#define wxUSE_FONTMAP 1
247f5006 28328_ACEOF
1e6feb95
VZ
28329
28330fi
28331
10f2d63a 28332if test "$wxUSE_UNICODE" = "yes" ; then
247f5006 28333 cat >>confdefs.h <<\_ACEOF
10f2d63a 28334#define wxUSE_UNICODE 1
247f5006 28335_ACEOF
10f2d63a 28336
8284b0c5 28337
bbc3925a
VS
28338 if test "$wxUSE_MSW" != 1; then
28339 wxUSE_UNICODE_MSLU=no
28340 fi
a72a4bfa
VS
28341
28342 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
247f5006
VZ
28343 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
28344echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
28345if test "${ac_cv_lib_unicows_main+set}" = set; then
28346 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 28347else
247f5006 28348 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 28349LIBS="-lunicows $LIBS"
247f5006
VZ
28350cat >conftest.$ac_ext <<_ACEOF
28351#line $LINENO "configure"
a72a4bfa
VS
28352#include "confdefs.h"
28353
8284b0c5 28354
247f5006
VZ
28355#ifdef F77_DUMMY_MAIN
28356# ifdef __cplusplus
28357 extern "C"
28358# endif
28359 int F77_DUMMY_MAIN() { return 1; }
28360#endif
28361int
28362main ()
28363{
28364main ();
28365 ;
28366 return 0;
28367}
28368_ACEOF
28369rm -f conftest.$ac_objext conftest$ac_exeext
28370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28371 (eval $ac_link) 2>&5
28372 ac_status=$?
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } &&
28375 { ac_try='test -s conftest$ac_exeext'
28376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; }; then
28381 ac_cv_lib_unicows_main=yes
28382else
28383 echo "$as_me: failed program was:" >&5
28384cat conftest.$ac_ext >&5
28385ac_cv_lib_unicows_main=no
28386fi
28387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28388LIBS=$ac_check_lib_save_LIBS
28389fi
28390echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
28391echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
28392if test $ac_cv_lib_unicows_main = yes; then
28393
28394 cat >>confdefs.h <<\_ACEOF
a72a4bfa 28395#define wxUSE_UNICODE_MSLU 1
247f5006
VZ
28396_ACEOF
28397
a72a4bfa 28398
a72a4bfa 28399else
a72a4bfa 28400
247f5006
VZ
28401 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
28402 Applications will only run on Windows NT/2000/XP!" >&5
28403echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
28404 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 28405 wxUSE_UNICODE_MSLU=no
247f5006 28406
a72a4bfa
VS
28407fi
28408
28409 fi
10f2d63a
VZ
28410fi
28411
10f2d63a 28412if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
247f5006 28413 cat >>confdefs.h <<\_ACEOF
10f2d63a 28414#define wxUSE_EXPERIMENTAL_PRINTF 1
247f5006 28415_ACEOF
10f2d63a
VZ
28416
28417fi
28418
8284b0c5
MB
28419
28420
10f2d63a
VZ
28421IODBC_C_SRC=""
28422if test "$wxUSE_ODBC" = "yes" ; then
247f5006 28423 cat >>confdefs.h <<\_ACEOF
10f2d63a 28424#define wxUSE_ODBC 1
247f5006 28425_ACEOF
10f2d63a
VZ
28426
28427 WXODBCFLAG="-D_IODBC_"
28428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
28429fi
28430
8284b0c5 28431
10f2d63a 28432if test "$wxUSE_POSTSCRIPT" = "yes" ; then
247f5006 28433 cat >>confdefs.h <<\_ACEOF
10f2d63a 28434#define wxUSE_POSTSCRIPT 1
247f5006 28435_ACEOF
10f2d63a
VZ
28436
28437fi
28438
247f5006 28439cat >>confdefs.h <<\_ACEOF
10f2d63a 28440#define wxUSE_AFM_FOR_POSTSCRIPT 1
247f5006 28441_ACEOF
10f2d63a 28442
8284b0c5 28443
247f5006 28444cat >>confdefs.h <<\_ACEOF
10f2d63a 28445#define wxUSE_NORMALIZED_PS_FONTS 1
247f5006 28446_ACEOF
10f2d63a 28447
8284b0c5
MB
28448
28449
10f2d63a 28450if test "$wxUSE_CONSTRAINTS" = "yes"; then
247f5006 28451 cat >>confdefs.h <<\_ACEOF
10f2d63a 28452#define wxUSE_CONSTRAINTS 1
247f5006 28453_ACEOF
10f2d63a
VZ
28454
28455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
28456fi
28457
28458if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 28459
8284b0c5 28460
bb811f17 28461 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
247f5006 28462 cat >>confdefs.h <<\_ACEOF
10f2d63a 28463#define wxUSE_MDI_ARCHITECTURE 1
247f5006 28464_ACEOF
10f2d63a 28465
bb811f17
JS
28466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
28467 fi
10f2d63a
VZ
28468fi
28469
28470if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
247f5006 28471 cat >>confdefs.h <<\_ACEOF
10f2d63a 28472#define wxUSE_DOC_VIEW_ARCHITECTURE 1
247f5006 28473_ACEOF
10f2d63a
VZ
28474
28475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
28476 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
28477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
28478 fi
28479fi
28480
28481if test "$wxUSE_HELP" = "yes"; then
247f5006 28482 cat >>confdefs.h <<\_ACEOF
10f2d63a 28483#define wxUSE_HELP 1
247f5006 28484_ACEOF
10f2d63a
VZ
28485
28486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 28487
77e13408 28488 if test "$wxUSE_MSW" = 1; then
031d8228 28489 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
247f5006 28490 cat >>confdefs.h <<\_ACEOF
29fd3c0c 28491#define wxUSE_MS_HTML_HELP 1
247f5006 28492_ACEOF
29fd3c0c 28493
3e44f09d 28494 fi
3379ed37 28495 fi
031d8228
VS
28496
28497 if test "$wxUSE_WXHTML_HELP" = "yes"; then
28498 if test "$wxUSE_HTML" = "yes"; then
247f5006 28499 cat >>confdefs.h <<\_ACEOF
031d8228 28500#define wxUSE_WXHTML_HELP 1
247f5006 28501_ACEOF
031d8228
VS
28502
28503 else
247f5006
VZ
28504 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
28505echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
28506 wxUSE_WXHTML_HELP=no
28507 fi
28508 fi
10f2d63a
VZ
28509fi
28510
28511if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
28512 if test "$wxUSE_CONSTRAINTS" != "yes"; then
247f5006
VZ
28513 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
28514echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 28515 else
247f5006 28516 cat >>confdefs.h <<\_ACEOF
10f2d63a 28517#define wxUSE_PRINTING_ARCHITECTURE 1
247f5006 28518_ACEOF
10f2d63a
VZ
28519
28520 fi
28521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
28522fi
28523
28524if test "$wxUSE_PROLOGIO" = "yes" ; then
247f5006 28525 cat >>confdefs.h <<\_ACEOF
10f2d63a 28526#define wxUSE_PROLOGIO 1
247f5006 28527_ACEOF
10f2d63a
VZ
28528
28529fi
28530
28531if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 28532 if test "$wxUSE_NANOX" = "yes"; then
247f5006
VZ
28533 { echo "$as_me:$LINENO: WARNING: Cannot use resource database functions in NanoX" >&5
28534echo "$as_me: WARNING: Cannot use resource database functions in NanoX" >&2;}
e334d0ea 28535 else
247f5006 28536 cat >>confdefs.h <<\_ACEOF
10f2d63a 28537#define wxUSE_RESOURCES 1
247f5006 28538_ACEOF
10f2d63a 28539
e334d0ea
JS
28540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
28541 fi
10f2d63a
VZ
28542fi
28543
28544if test "$wxUSE_X_RESOURCES" = "yes"; then
247f5006 28545 cat >>confdefs.h <<\_ACEOF
10f2d63a 28546#define wxUSE_X_RESOURCES 1
247f5006 28547_ACEOF
10f2d63a
VZ
28548
28549fi
28550
8284b0c5 28551
77e13408
RL
28552if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
28553 -o "$wxUSE_CLIPBOARD" = "yes" \
28554 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
247f5006
VZ
28555
28556for ac_header in ole2.h
10f2d63a 28557do
247f5006
VZ
28558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28559if eval "test \"\${$as_ac_Header+set}\" = set"; then
28560 echo "$as_me:$LINENO: checking for $ac_header" >&5
28561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28562if eval "test \"\${$as_ac_Header+set}\" = set"; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28564fi
28565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28567else
28568 # Is the header compilable?
28569echo "$as_me:$LINENO: checking $ac_header usability" >&5
28570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28571cat >conftest.$ac_ext <<_ACEOF
28572#line $LINENO "configure"
10f2d63a 28573#include "confdefs.h"
247f5006
VZ
28574$ac_includes_default
28575#include <$ac_header>
28576_ACEOF
28577rm -f conftest.$ac_objext
28578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28579 (eval $ac_compile) 2>&5
28580 ac_status=$?
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); } &&
28583 { ac_try='test -s conftest.$ac_objext'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28586 ac_status=$?
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; }; then
28589 ac_header_compiler=yes
28590else
28591 echo "$as_me: failed program was:" >&5
28592cat conftest.$ac_ext >&5
28593ac_header_compiler=no
28594fi
28595rm -f conftest.$ac_objext conftest.$ac_ext
28596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28597echo "${ECHO_T}$ac_header_compiler" >&6
28598
28599# Is the header present?
28600echo "$as_me:$LINENO: checking $ac_header presence" >&5
28601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28602cat >conftest.$ac_ext <<_ACEOF
28603#line $LINENO "configure"
28604#include "confdefs.h"
28605#include <$ac_header>
28606_ACEOF
28607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28609 ac_status=$?
28610 egrep -v '^ *\+' conftest.er1 >conftest.err
28611 rm -f conftest.er1
28612 cat conftest.err >&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } >/dev/null; then
28615 if test -s conftest.err; then
28616 ac_cpp_err=$ac_c_preproc_warn_flag
28617 else
28618 ac_cpp_err=
28619 fi
28620else
28621 ac_cpp_err=yes
28622fi
28623if test -z "$ac_cpp_err"; then
28624 ac_header_preproc=yes
28625else
28626 echo "$as_me: failed program was:" >&5
10f2d63a 28627 cat conftest.$ac_ext >&5
247f5006
VZ
28628 ac_header_preproc=no
28629fi
28630rm -f conftest.err conftest.$ac_ext
28631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28632echo "${ECHO_T}$ac_header_preproc" >&6
28633
28634# So? What about this header?
28635case $ac_header_compiler:$ac_header_preproc in
28636 yes:no )
28637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
28641 no:yes )
28642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28643echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28645echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
28648esac
28649echo "$as_me:$LINENO: checking for $ac_header" >&5
28650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28651if eval "test \"\${$as_ac_Header+set}\" = set"; then
28652 echo $ECHO_N "(cached) $ECHO_C" >&6
28653else
28654 eval "$as_ac_Header=$ac_header_preproc"
10f2d63a 28655fi
247f5006
VZ
28656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28658
10f2d63a 28659fi
247f5006
VZ
28660if test `eval echo '${'$as_ac_Header'}'` = yes; then
28661 cat >>confdefs.h <<_ACEOF
28662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28663_ACEOF
28664
10f2d63a 28665fi
247f5006 28666
10f2d63a
VZ
28667done
28668
8284b0c5 28669
2b9bdf71
VZ
28670 if test "$ac_cv_header_ole2_h" = "yes" ; then
28671 if test "$GCC" = yes ; then
247f5006
VZ
28672
28673
28674 ac_ext=cc
8284b0c5 28675ac_cpp='$CXXCPP $CPPFLAGS'
247f5006
VZ
28676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5
MB
28679
28680
247f5006
VZ
28681 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
28682echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
28683 cat >conftest.$ac_ext <<_ACEOF
28684#line $LINENO "configure"
8284b0c5
MB
28685#include "confdefs.h"
28686#include <windows.h>
28687 #include <ole2.h>
247f5006
VZ
28688#ifdef F77_DUMMY_MAIN
28689# ifdef __cplusplus
28690 extern "C"
28691# endif
28692 int F77_DUMMY_MAIN() { return 1; }
28693#endif
28694int
28695main ()
28696{
8284b0c5 28697
247f5006
VZ
28698 ;
28699 return 0;
28700}
28701_ACEOF
28702rm -f conftest.$ac_objext
28703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28704 (eval $ac_compile) 2>&5
28705 ac_status=$?
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } &&
28708 { ac_try='test -s conftest.$ac_objext'
28709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28710 (eval $ac_try) 2>&5
28711 ac_status=$?
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; }; then
28714 echo "$as_me:$LINENO: result: no" >&5
28715echo "${ECHO_T}no" >&6
28716else
28717 echo "$as_me: failed program was:" >&5
28718cat conftest.$ac_ext >&5
28719echo "$as_me:$LINENO: result: yes" >&5
28720echo "${ECHO_T}yes" >&6
8284b0c5
MB
28721 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
28722fi
247f5006 28723rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 28724 ac_ext=c
8284b0c5 28725ac_cpp='$CPP $CPPFLAGS'
247f5006
VZ
28726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28728ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 28729
2b9bdf71 28730 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 28731 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
247f5006 28732 cat >>confdefs.h <<\_ACEOF
4f11a343 28733#define wxUSE_OLE 1
247f5006 28734_ACEOF
4f11a343 28735
8284b0c5 28736
2b9bdf71
VZ
28737 fi
28738
247f5006 28739 cat >>confdefs.h <<\_ACEOF
2b9bdf71 28740#define wxUSE_DATAOBJ 1
247f5006 28741_ACEOF
2b9bdf71
VZ
28742
28743 else
247f5006
VZ
28744 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
28745echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
28746
28747 wxUSE_CLIPBOARD=no
28748 wxUSE_DRAG_AND_DROP=no
28749 wxUSE_DATAOBJ=no
28750 fi
28751
77e13408 28752 if test "$wxUSE_METAFILE" = "yes"; then
247f5006 28753 cat >>confdefs.h <<\_ACEOF
b64f0a5f 28754#define wxUSE_METAFILE 1
247f5006 28755_ACEOF
b64f0a5f 28756
8284b0c5 28757
247f5006 28758 cat >>confdefs.h <<\_ACEOF
b64f0a5f 28759#define wxUSE_ENH_METAFILE 1
247f5006 28760_ACEOF
b64f0a5f 28761
2b9bdf71
VZ
28762 fi
28763fi
28764
28765if test "$wxUSE_IPC" = "yes"; then
28766 if test "$wxUSE_SOCKETS" != "yes"; then
247f5006
VZ
28767 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
28768echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
28769 fi
28770
247f5006 28771 cat >>confdefs.h <<\_ACEOF
2b9bdf71 28772#define wxUSE_IPC 1
247f5006 28773_ACEOF
2b9bdf71
VZ
28774
28775fi
28776
28777if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 28778 if test "$wxUSE_MGL" = 1; then
247f5006
VZ
28779 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
28780echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
28781 wxUSE_CLIPBOARD=no
28782 fi
28783
28784 if test "$wxUSE_CLIPBOARD" = "yes"; then
247f5006 28785 cat >>confdefs.h <<\_ACEOF
2b9bdf71 28786#define wxUSE_CLIPBOARD 1
247f5006 28787_ACEOF
2b9bdf71 28788
8284b0c5 28789
247f5006 28790 cat >>confdefs.h <<\_ACEOF
673f4220 28791#define wxUSE_DATAOBJ 1
247f5006 28792_ACEOF
673f4220 28793
6c657b52 28794 fi
2b9bdf71
VZ
28795fi
28796
28797if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
28798 if test "$wxUSE_GTK" = 1; then
28799 if test "$WXGTK12" != 1; then
247f5006
VZ
28800 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
28801echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
28802 wxUSE_DRAG_AND_DROP=no
28803 fi
28804 fi
28805
2b9bdf71 28806 if test "$wxUSE_MOTIF" = 1; then
247f5006
VZ
28807 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
28808echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
28809 wxUSE_DRAG_AND_DROP=no
28810 fi
28811
f79bd02d 28812 if test "$wxUSE_X11" = 1; then
247f5006
VZ
28813 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
28814echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
28815 wxUSE_DRAG_AND_DROP=no
28816 fi
28817
6c657b52 28818 if test "$wxUSE_MGL" = 1; then
247f5006
VZ
28819 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
28820echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
28821 wxUSE_DRAG_AND_DROP=no
28822 fi
28823
10f2d63a 28824 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
247f5006 28825 cat >>confdefs.h <<\_ACEOF
10f2d63a 28826#define wxUSE_DRAG_AND_DROP 1
247f5006 28827_ACEOF
10f2d63a
VZ
28828
28829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
28830 fi
28831
28832fi
28833
28834if test "$wxUSE_SPLINES" = "yes" ; then
247f5006 28835 cat >>confdefs.h <<\_ACEOF
10f2d63a 28836#define wxUSE_SPLINES 1
247f5006 28837_ACEOF
10f2d63a
VZ
28838
28839fi
28840
8284b0c5 28841
1e6feb95
VZ
28842USES_CONTROLS=0
28843if test "$wxUSE_CONTROLS" = "yes"; then
28844 USES_CONTROLS=1
28845fi
28846
10f2d63a 28847if test "$wxUSE_ACCEL" = "yes"; then
247f5006 28848 cat >>confdefs.h <<\_ACEOF
10f2d63a 28849#define wxUSE_ACCEL 1
247f5006 28850_ACEOF
10f2d63a 28851
1e6feb95
VZ
28852 USES_CONTROLS=1
28853fi
28854
28855if test "$wxUSE_BUTTON" = "yes"; then
247f5006 28856 cat >>confdefs.h <<\_ACEOF
1e6feb95 28857#define wxUSE_BUTTON 1
247f5006 28858_ACEOF
1e6feb95
VZ
28859
28860 USES_CONTROLS=1
28861fi
28862
28863if test "$wxUSE_BMPBUTTON" = "yes"; then
247f5006 28864 cat >>confdefs.h <<\_ACEOF
1e6feb95 28865#define wxUSE_BMPBUTTON 1
247f5006 28866_ACEOF
1e6feb95
VZ
28867
28868 USES_CONTROLS=1
28869fi
28870
28871if test "$wxUSE_CALCTRL" = "yes"; then
247f5006 28872 cat >>confdefs.h <<\_ACEOF
1e6feb95 28873#define wxUSE_CALENDARCTRL 1
247f5006 28874_ACEOF
1e6feb95
VZ
28875
28876 USES_CONTROLS=1
28877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
28878fi
28879
28880if test "$wxUSE_CARET" = "yes"; then
247f5006 28881 cat >>confdefs.h <<\_ACEOF
10f2d63a 28882#define wxUSE_CARET 1
247f5006 28883_ACEOF
10f2d63a 28884
1e6feb95 28885 USES_CONTROLS=1
10f2d63a
VZ
28886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
28887fi
28888
28889if test "$wxUSE_COMBOBOX" = "yes"; then
247f5006 28890 cat >>confdefs.h <<\_ACEOF
10f2d63a 28891#define wxUSE_COMBOBOX 1
247f5006 28892_ACEOF
10f2d63a 28893
1e6feb95 28894 USES_CONTROLS=1
10f2d63a
VZ
28895fi
28896
28897if test "$wxUSE_CHOICE" = "yes"; then
247f5006 28898 cat >>confdefs.h <<\_ACEOF
10f2d63a 28899#define wxUSE_CHOICE 1
247f5006 28900_ACEOF
10f2d63a 28901
1e6feb95 28902 USES_CONTROLS=1
10f2d63a
VZ
28903fi
28904
28905if test "$wxUSE_CHECKBOX" = "yes"; then
247f5006 28906 cat >>confdefs.h <<\_ACEOF
10f2d63a 28907#define wxUSE_CHECKBOX 1
247f5006 28908_ACEOF
10f2d63a 28909
1e6feb95 28910 USES_CONTROLS=1
10f2d63a
VZ
28911fi
28912
28913if test "$wxUSE_CHECKLST" = "yes"; then
247f5006 28914 cat >>confdefs.h <<\_ACEOF
10f2d63a 28915#define wxUSE_CHECKLISTBOX 1
247f5006 28916_ACEOF
10f2d63a 28917
1e6feb95 28918 USES_CONTROLS=1
10f2d63a
VZ
28919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
28920fi
28921
28922if test "$wxUSE_GAUGE" = "yes"; then
247f5006 28923 cat >>confdefs.h <<\_ACEOF
10f2d63a 28924#define wxUSE_GAUGE 1
247f5006 28925_ACEOF
10f2d63a 28926
1e6feb95 28927 USES_CONTROLS=1
10f2d63a
VZ
28928fi
28929
d6a55c4b
VZ
28930if test "$wxUSE_NEW_GRID" = "yes"; then
28931 wxUSE_GRID="yes"
247f5006 28932 cat >>confdefs.h <<\_ACEOF
d6a55c4b 28933#define wxUSE_NEW_GRID 1
247f5006 28934_ACEOF
10f2d63a 28935
1e6feb95 28936 USES_CONTROLS=1
d6a55c4b 28937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
28938fi
28939
d6a55c4b 28940if test "$wxUSE_GRID" = "yes"; then
247f5006 28941 cat >>confdefs.h <<\_ACEOF
d6a55c4b 28942#define wxUSE_GRID 1
247f5006 28943_ACEOF
10f2d63a 28944
1e6feb95 28945 USES_CONTROLS=1
d6a55c4b 28946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
28947fi
28948
28949if test "$wxUSE_IMAGLIST" = "yes"; then
247f5006 28950 cat >>confdefs.h <<\_ACEOF
10f2d63a 28951#define wxUSE_IMAGLIST 1
247f5006 28952_ACEOF
10f2d63a
VZ
28953
28954fi
28955
28956if test "$wxUSE_LISTBOX" = "yes"; then
247f5006 28957 cat >>confdefs.h <<\_ACEOF
10f2d63a 28958#define wxUSE_LISTBOX 1
247f5006 28959_ACEOF
10f2d63a 28960
1e6feb95 28961 USES_CONTROLS=1
10f2d63a
VZ
28962fi
28963
28964if test "$wxUSE_LISTCTRL" = "yes"; then
28965 if test "$wxUSE_IMAGLIST" = "yes"; then
247f5006 28966 cat >>confdefs.h <<\_ACEOF
10f2d63a 28967#define wxUSE_LISTCTRL 1
247f5006 28968_ACEOF
10f2d63a 28969
1e6feb95 28970 USES_CONTROLS=1
10f2d63a
VZ
28971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
28972 else
247f5006
VZ
28973 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
28974echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
28975 fi
28976fi
28977
28978if test "$wxUSE_NOTEBOOK" = "yes"; then
247f5006 28979 cat >>confdefs.h <<\_ACEOF
10f2d63a 28980#define wxUSE_NOTEBOOK 1
247f5006 28981_ACEOF
10f2d63a 28982
1e6feb95 28983 USES_CONTROLS=1
10f2d63a
VZ
28984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
28985fi
28986
24176f2c 28987if test "$wxUSE_PROPSHEET" = "yes"; then
247f5006 28988 cat >>confdefs.h <<\_ACEOF
24176f2c 28989#define wxUSE_PROPSHEET 1
247f5006 28990_ACEOF
24176f2c
GD
28991
28992 USES_CONTROLS=1
28993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
28994fi
28995
10f2d63a 28996if test "$wxUSE_RADIOBOX" = "yes"; then
247f5006 28997 cat >>confdefs.h <<\_ACEOF
10f2d63a 28998#define wxUSE_RADIOBOX 1
247f5006 28999_ACEOF
10f2d63a 29000
1e6feb95 29001 USES_CONTROLS=1
10f2d63a
VZ
29002fi
29003
29004if test "$wxUSE_RADIOBTN" = "yes"; then
247f5006 29005 cat >>confdefs.h <<\_ACEOF
10f2d63a 29006#define wxUSE_RADIOBTN 1
247f5006 29007_ACEOF
10f2d63a 29008
1e6feb95 29009 USES_CONTROLS=1
10f2d63a
VZ
29010fi
29011
29012if test "$wxUSE_SASH" = "yes"; then
247f5006 29013 cat >>confdefs.h <<\_ACEOF
10f2d63a 29014#define wxUSE_SASH 1
247f5006 29015_ACEOF
10f2d63a
VZ
29016
29017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
29018fi
29019
29020if test "$wxUSE_SCROLLBAR" = "yes"; then
247f5006 29021 cat >>confdefs.h <<\_ACEOF
10f2d63a 29022#define wxUSE_SCROLLBAR 1
247f5006 29023_ACEOF
10f2d63a 29024
1e6feb95 29025 USES_CONTROLS=1
741a9306 29026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
29027fi
29028
29029if test "$wxUSE_SLIDER" = "yes"; then
247f5006 29030 cat >>confdefs.h <<\_ACEOF
10f2d63a 29031#define wxUSE_SLIDER 1
247f5006 29032_ACEOF
10f2d63a 29033
1e6feb95 29034 USES_CONTROLS=1
10f2d63a
VZ
29035fi
29036
29037if test "$wxUSE_SPINBTN" = "yes"; then
247f5006 29038 cat >>confdefs.h <<\_ACEOF
10f2d63a 29039#define wxUSE_SPINBTN 1
247f5006 29040_ACEOF
10f2d63a 29041
1e6feb95 29042 USES_CONTROLS=1
10f2d63a
VZ
29043fi
29044
56cfaa52 29045if test "$wxUSE_SPINCTRL" = "yes"; then
247f5006 29046 cat >>confdefs.h <<\_ACEOF
56cfaa52 29047#define wxUSE_SPINCTRL 1
247f5006 29048_ACEOF
56cfaa52 29049
1e6feb95 29050 USES_CONTROLS=1
56cfaa52
RR
29051fi
29052
10f2d63a 29053if test "$wxUSE_SPLITTER" = "yes"; then
247f5006 29054 cat >>confdefs.h <<\_ACEOF
10f2d63a 29055#define wxUSE_SPLITTER 1
247f5006 29056_ACEOF
10f2d63a
VZ
29057
29058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
29059fi
29060
29061if test "$wxUSE_STATBMP" = "yes"; then
247f5006 29062 cat >>confdefs.h <<\_ACEOF
10f2d63a 29063#define wxUSE_STATBMP 1
247f5006 29064_ACEOF
10f2d63a 29065
1e6feb95 29066 USES_CONTROLS=1
10f2d63a
VZ
29067fi
29068
29069if test "$wxUSE_STATBOX" = "yes"; then
247f5006 29070 cat >>confdefs.h <<\_ACEOF
10f2d63a 29071#define wxUSE_STATBOX 1
247f5006 29072_ACEOF
10f2d63a 29073
1e6feb95
VZ
29074 USES_CONTROLS=1
29075fi
29076
29077if test "$wxUSE_STATTEXT" = "yes"; then
247f5006 29078 cat >>confdefs.h <<\_ACEOF
1e6feb95 29079#define wxUSE_STATTEXT 1
247f5006 29080_ACEOF
1e6feb95
VZ
29081
29082 USES_CONTROLS=1
10f2d63a
VZ
29083fi
29084
29085if test "$wxUSE_STATLINE" = "yes"; then
29086 if test "$wxUSE_WINE" = 1 ; then
247f5006
VZ
29087 { echo "$as_me:$LINENO: WARNING: wxStaticLine is not supported under WINE" >&5
29088echo "$as_me: WARNING: wxStaticLine is not supported under WINE" >&2;}
10f2d63a 29089 else
247f5006 29090 cat >>confdefs.h <<\_ACEOF
10f2d63a 29091#define wxUSE_STATLINE 1
247f5006 29092_ACEOF
10f2d63a 29093
1e6feb95 29094 USES_CONTROLS=1
10f2d63a
VZ
29095 fi
29096fi
29097
29098if test "$wxUSE_STATUSBAR" = "yes"; then
247f5006 29099 cat >>confdefs.h <<\_ACEOF
10f2d63a 29100#define wxUSE_STATUSBAR 1
247f5006 29101_ACEOF
10f2d63a 29102
1e6feb95 29103 USES_CONTROLS=1
698dcdb6 29104
2286341c 29105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
29106fi
29107
29108if test "$wxUSE_TABDIALOG" = "yes"; then
247f5006 29109 cat >>confdefs.h <<\_ACEOF
10f2d63a 29110#define wxUSE_TAB_DIALOG 1
247f5006 29111_ACEOF
10f2d63a
VZ
29112
29113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
29114fi
29115
1e6feb95 29116if test "$wxUSE_TEXTCTRL" = "yes"; then
247f5006 29117 cat >>confdefs.h <<\_ACEOF
1e6feb95 29118#define wxUSE_TEXTCTRL 1
247f5006 29119_ACEOF
1e6feb95
VZ
29120
29121 USES_CONTROLS=1
29122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
29123fi
29124
1db8dc4a 29125if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 29126 if test "$wxUSE_MAC" = 1; then
247f5006
VZ
29127 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
29128echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
29129 wxUSE_TOGGLEBTN=no
29130 fi
29131 if test "$wxUSE_UNIVERSAL" = "yes"; then
247f5006
VZ
29132 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
29133echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
29134 wxUSE_TOGGLEBTN=no
29135 fi
29136
29137 if test "$wxUSE_TOGGLEBTN" = "yes"; then
247f5006 29138 cat >>confdefs.h <<\_ACEOF
1db8dc4a 29139#define wxUSE_TOGGLEBTN 1
247f5006 29140_ACEOF
1db8dc4a 29141
1e6feb95 29142 USES_CONTROLS=1
a45d7ab7 29143 fi
1db8dc4a
VZ
29144fi
29145
360d6699 29146if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
247f5006 29147 cat >>confdefs.h <<\_ACEOF
360d6699 29148#define wxUSE_TOOLBAR_SIMPLE 1
247f5006 29149_ACEOF
360d6699
VZ
29150
29151 wxUSE_TOOLBAR="yes"
1e6feb95 29152 USES_CONTROLS=1
360d6699
VZ
29153fi
29154
10f2d63a 29155if test "$wxUSE_TOOLBAR" = "yes"; then
247f5006 29156 cat >>confdefs.h <<\_ACEOF
10f2d63a 29157#define wxUSE_TOOLBAR 1
247f5006 29158_ACEOF
10f2d63a 29159
1e6feb95 29160 USES_CONTROLS=1
698dcdb6 29161
360d6699
VZ
29162 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
29163 wxUSE_TOOLBAR_NATIVE="yes"
29164 fi
29165
1e6feb95 29166 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
247f5006 29167 cat >>confdefs.h <<\_ACEOF
360d6699 29168#define wxUSE_TOOLBAR_NATIVE 1
247f5006 29169_ACEOF
360d6699 29170
1e6feb95
VZ
29171 USES_CONTROLS=1
29172 fi
29173
29174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
29175fi
29176
10f2d63a
VZ
29177if test "$wxUSE_TOOLTIPS" = "yes"; then
29178 if test "$wxUSE_MOTIF" = 1; then
247f5006
VZ
29179 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
29180echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a
VZ
29181 else
29182 if test "$wxUSE_WINE" = 1; then
247f5006
VZ
29183 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported under WINE... disabled" >&5
29184echo "$as_me: WARNING: wxTooltip not supported under WINE... disabled" >&2;}
10f2d63a 29185 else
69d27ff7 29186 if test "$wxUSE_UNIVERSAL" = "yes"; then
247f5006
VZ
29187 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
29188echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
69d27ff7 29189 else
247f5006 29190 cat >>confdefs.h <<\_ACEOF
10f2d63a 29191#define wxUSE_TOOLTIPS 1
247f5006 29192_ACEOF
10f2d63a 29193
69d27ff7 29194 fi
10f2d63a
VZ
29195 fi
29196 fi
29197fi
29198
29199if test "$wxUSE_TREECTRL" = "yes"; then
29200 if test "$wxUSE_IMAGLIST" = "yes"; then
247f5006 29201 cat >>confdefs.h <<\_ACEOF
10f2d63a 29202#define wxUSE_TREECTRL 1
247f5006 29203_ACEOF
10f2d63a 29204
1e6feb95 29205 USES_CONTROLS=1
10f2d63a
VZ
29206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
29207 else
247f5006
VZ
29208 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
29209echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
29210 fi
29211fi
29212
9f41d601 29213if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 29214 if test "$wxUSE_MAC" = 1; then
247f5006
VZ
29215 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
29216echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 29217 else
485cf710 29218 if test "$wxUSE_MOTIF" = 1; then
247f5006
VZ
29219 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
29220echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 29221 else
3c011993 29222 if test "$wxUSE_PM" = 1; then
247f5006
VZ
29223 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
29224echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 29225 else
247f5006 29226 cat >>confdefs.h <<\_ACEOF
9f41d601 29227#define wxUSE_POPUPWIN 1
247f5006 29228_ACEOF
9f41d601 29229
8284b0c5 29230
3c011993
VZ
29231 USES_CONTROLS=1
29232 fi
485cf710 29233 fi
6abe4b65 29234 fi
9f41d601
RR
29235fi
29236
dd964dcc 29237if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 29238 if test "$wxUSE_PM" = 1; then
247f5006
VZ
29239 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
29240echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 29241 else
247f5006 29242 cat >>confdefs.h <<\_ACEOF
dd964dcc 29243#define wxUSE_TIPWINDOW 1
247f5006 29244_ACEOF
dd964dcc 29245
3c011993 29246 fi
dd964dcc
VZ
29247fi
29248
1e6feb95 29249if test "$USES_CONTROLS" = 1; then
247f5006 29250 cat >>confdefs.h <<\_ACEOF
1e6feb95 29251#define wxUSE_CONTROLS 1
247f5006 29252_ACEOF
10f2d63a 29253
10f2d63a
VZ
29254fi
29255
8284b0c5 29256
24176f2c 29257if test "$wxUSE_TREELAYOUT" = "yes"; then
247f5006 29258 cat >>confdefs.h <<\_ACEOF
24176f2c 29259#define wxUSE_TREELAYOUT 1
247f5006 29260_ACEOF
24176f2c
GD
29261
29262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
29263fi
1e6feb95 29264
24fd6d87 29265if test "$wxUSE_DRAGIMAGE" = "yes"; then
247f5006 29266 cat >>confdefs.h <<\_ACEOF
24fd6d87 29267#define wxUSE_DRAGIMAGE 1
247f5006 29268_ACEOF
24fd6d87
VZ
29269
29270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
29271fi
29272
1e6feb95 29273if test "$wxUSE_MENUS" = "yes"; then
247f5006 29274 cat >>confdefs.h <<\_ACEOF
1e6feb95 29275#define wxUSE_MENUS 1
247f5006 29276_ACEOF
10f2d63a 29277
1e6feb95 29278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
29279fi
29280
1e6feb95 29281if test "$wxUSE_METAFILE" = "yes"; then
247f5006 29282 cat >>confdefs.h <<\_ACEOF
1e6feb95 29283#define wxUSE_METAFILE 1
247f5006 29284_ACEOF
10f2d63a 29285
10f2d63a
VZ
29286fi
29287
1e6feb95 29288if test "$wxUSE_MIMETYPE" = "yes"; then
247f5006 29289 cat >>confdefs.h <<\_ACEOF
1e6feb95 29290#define wxUSE_MIMETYPE 1
247f5006 29291_ACEOF
10f2d63a 29292
10f2d63a
VZ
29293fi
29294
3e44f09d 29295if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
247f5006 29296 cat >>confdefs.h <<\_ACEOF
3e44f09d 29297#define wxUSE_SYSTEM_OPTIONS 1
247f5006 29298_ACEOF
3e44f09d 29299
321d2b14
VZ
29300if test "$TOOLKIT" = "MSW"; then
29301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
29302fi
29303
3e44f09d
VZ
29304fi
29305
4cdb0ab0 29306if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 29307 if test "$wxUSE_SOCKETS" != "yes"; then
247f5006
VZ
29308 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
29309echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
3954f9ca
VS
29310 wxUSE_PROTOCOL=no
29311 fi
29312
29313 if test "$wxUSE_PROTOCOL" = "yes"; then
247f5006 29314 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 29315#define wxUSE_PROTOCOL 1
247f5006 29316_ACEOF
4cdb0ab0 29317
8284b0c5 29318
3954f9ca 29319 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
247f5006 29320 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 29321#define wxUSE_PROTOCOL_HTTP 1
247f5006 29322_ACEOF
4cdb0ab0 29323
3954f9ca
VS
29324 fi
29325 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
247f5006 29326 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 29327#define wxUSE_PROTOCOL_FTP 1
247f5006 29328_ACEOF
4cdb0ab0 29329
3954f9ca
VS
29330 fi
29331 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
247f5006 29332 cat >>confdefs.h <<\_ACEOF
3954f9ca 29333#define wxUSE_PROTOCOL_FILE 1
247f5006 29334_ACEOF
3954f9ca
VS
29335
29336 fi
4cdb0ab0 29337 fi
3954f9ca
VS
29338fi
29339
29340if test "$wxUSE_URL" = "yes"; then
29341 if test "$wxUSE_PROTOCOL" != "yes"; then
247f5006
VZ
29342 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
29343echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
3954f9ca
VS
29344 wxUSE_URL=no
29345 fi
29346 if test "$wxUSE_URL" = "yes"; then
247f5006 29347 cat >>confdefs.h <<\_ACEOF
3954f9ca 29348#define wxUSE_URL 1
247f5006 29349_ACEOF
4cdb0ab0
VS
29350
29351 fi
29352fi
29353
10f2d63a 29354if test "$wxUSE_MINIFRAME" = "yes"; then
247f5006 29355 cat >>confdefs.h <<\_ACEOF
10f2d63a 29356#define wxUSE_MINIFRAME 1
247f5006 29357_ACEOF
10f2d63a
VZ
29358
29359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
29360fi
29361
29362if test "$wxUSE_HTML" = "yes"; then
247f5006 29363 cat >>confdefs.h <<\_ACEOF
10f2d63a 29364#define wxUSE_HTML 1
247f5006 29365_ACEOF
10f2d63a
VZ
29366
29367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
29368fi
29369
29370if test "$wxUSE_VALIDATORS" = "yes"; then
247f5006 29371 cat >>confdefs.h <<\_ACEOF
1e487827 29372#define wxUSE_VALIDATORS 1
247f5006 29373_ACEOF
703e0a69 29374
698dcdb6
VZ
29375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
29376fi
29377
edae8572 29378if test "$wxUSE_PALETTE" = "yes" ; then
247f5006 29379 cat >>confdefs.h <<\_ACEOF
edae8572 29380#define wxUSE_PALETTE 1
247f5006 29381_ACEOF
edae8572
VZ
29382
29383fi
29384
698dcdb6 29385if test "$wxUSE_IMAGE" = "yes" ; then
247f5006 29386 cat >>confdefs.h <<\_ACEOF
698dcdb6 29387#define wxUSE_IMAGE 1
247f5006 29388_ACEOF
698dcdb6
VZ
29389
29390fi
29391
29392if test "$wxUSE_GIF" = "yes" ; then
247f5006 29393 cat >>confdefs.h <<\_ACEOF
698dcdb6 29394#define wxUSE_GIF 1
247f5006 29395_ACEOF
698dcdb6
VZ
29396
29397fi
29398
29399if test "$wxUSE_PCX" = "yes" ; then
247f5006 29400 cat >>confdefs.h <<\_ACEOF
698dcdb6 29401#define wxUSE_PCX 1
247f5006 29402_ACEOF
698dcdb6
VZ
29403
29404fi
29405
4b6b4dfc 29406if test "$wxUSE_IFF" = "yes" ; then
247f5006 29407 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 29408#define wxUSE_IFF 1
247f5006 29409_ACEOF
4b6b4dfc
RR
29410
29411fi
29412
698dcdb6 29413if test "$wxUSE_PNM" = "yes" ; then
247f5006 29414 cat >>confdefs.h <<\_ACEOF
698dcdb6 29415#define wxUSE_PNM 1
247f5006 29416_ACEOF
698dcdb6
VZ
29417
29418fi
29419
29420if test "$wxUSE_XPM" = "yes" ; then
247f5006 29421 cat >>confdefs.h <<\_ACEOF
698dcdb6 29422#define wxUSE_XPM 1
247f5006 29423_ACEOF
698dcdb6
VZ
29424
29425fi
29426
658974ae 29427if test "$wxUSE_ICO_CUR" = "yes" ; then
247f5006 29428 cat >>confdefs.h <<\_ACEOF
658974ae 29429#define wxUSE_ICO_CUR 1
247f5006 29430_ACEOF
658974ae
VS
29431
29432fi
29433
a72a4bfa
VS
29434if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
29435 LIBS=" -lunicows $LIBS"
29436fi
29437
8284b0c5 29438
1e6feb95 29439if test "$wxUSE_CHOICEDLG" = "yes"; then
247f5006 29440 cat >>confdefs.h <<\_ACEOF
1e6feb95 29441#define wxUSE_CHOICEDLG 1
247f5006 29442_ACEOF
1e6feb95
VZ
29443
29444fi
29445
29446if test "$wxUSE_COLOURDLG" = "yes"; then
247f5006 29447 cat >>confdefs.h <<\_ACEOF
1e6feb95 29448#define wxUSE_COLOURDLG 1
247f5006 29449_ACEOF
1e6feb95
VZ
29450
29451fi
29452
29453if test "$wxUSE_FILEDLG" = "yes"; then
247f5006 29454 cat >>confdefs.h <<\_ACEOF
1e6feb95 29455#define wxUSE_FILEDLG 1
247f5006 29456_ACEOF
1e6feb95
VZ
29457
29458fi
29459
8db37e06 29460if test "$wxUSE_FINDREPLDLG" = "yes"; then
247f5006 29461 cat >>confdefs.h <<\_ACEOF
8db37e06 29462#define wxUSE_FINDREPLDLG 1
247f5006 29463_ACEOF
8db37e06
VZ
29464
29465fi
29466
1e6feb95 29467if test "$wxUSE_FONTDLG" = "yes"; then
247f5006 29468 cat >>confdefs.h <<\_ACEOF
1e6feb95 29469#define wxUSE_FONTDLG 1
247f5006 29470_ACEOF
1e6feb95
VZ
29471
29472fi
29473
29474if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 29475 if test "$wxUSE_TREECTRL" != "yes"; then
247f5006
VZ
29476 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
29477echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 29478 else
247f5006 29479 cat >>confdefs.h <<\_ACEOF
1e6feb95 29480#define wxUSE_DIRDLG 1
247f5006 29481_ACEOF
1e6feb95 29482
1e6feb95
VZ
29483 fi
29484fi
29485
29486if test "$wxUSE_MSGDLG" = "yes"; then
247f5006 29487 cat >>confdefs.h <<\_ACEOF
1e6feb95 29488#define wxUSE_MSGDLG 1
247f5006 29489_ACEOF
1e6feb95
VZ
29490
29491fi
29492
29493if test "$wxUSE_NUMBERDLG" = "yes"; then
247f5006 29494 cat >>confdefs.h <<\_ACEOF
1e6feb95 29495#define wxUSE_NUMBERDLG 1
247f5006 29496_ACEOF
1e6feb95
VZ
29497
29498fi
29499
29500if test "$wxUSE_PROGRESSDLG" = "yes"; then
29501 if test "$wxUSE_CONSTRAINTS" != "yes"; then
247f5006
VZ
29502 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
29503echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 29504 else
247f5006 29505 cat >>confdefs.h <<\_ACEOF
1e6feb95 29506#define wxUSE_PROGRESSDLG 1
247f5006 29507_ACEOF
1e6feb95
VZ
29508
29509 fi
29510fi
29511
cbca9943 29512if test "$wxUSE_SPLASH" = "yes"; then
247f5006 29513 cat >>confdefs.h <<\_ACEOF
cbca9943 29514#define wxUSE_SPLASH 1
247f5006 29515_ACEOF
cbca9943
VZ
29516
29517fi
29518
1e6feb95
VZ
29519if test "$wxUSE_STARTUP_TIPS" = "yes"; then
29520 if test "$wxUSE_CONSTRAINTS" != "yes"; then
247f5006
VZ
29521 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
29522echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 29523 else
247f5006 29524 cat >>confdefs.h <<\_ACEOF
1e6feb95 29525#define wxUSE_STARTUP_TIPS 1
247f5006 29526_ACEOF
1e6feb95 29527
7b4a847f
RR
29528 fi
29529fi
579d8138 29530
8284b0c5 29531if test "$wxUSE_TEXTDLG" = "yes"; then
247f5006 29532 cat >>confdefs.h <<\_ACEOF
8284b0c5 29533#define wxUSE_TEXTDLG 1
247f5006 29534_ACEOF
8284b0c5
MB
29535
29536fi
29537
29538if test "$wxUSE_WIZARDDLG" = "yes"; then
247f5006 29539 cat >>confdefs.h <<\_ACEOF
8284b0c5 29540#define wxUSE_WIZARDDLG 1
247f5006 29541_ACEOF
8284b0c5
MB
29542
29543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
29544fi
29545
29546
29547if test "$cross_compiling" = "yes"; then
29548 OSINFO="\"$host\""
29549else
29550 OSINFO=`uname -s -r -m`
29551 OSINFO="\"$OSINFO\""
29552fi
29553
247f5006 29554cat >>confdefs.h <<_ACEOF
8284b0c5 29555#define WXWIN_OS_DESCRIPTION $OSINFO
247f5006 29556_ACEOF
8284b0c5
MB
29557
29558
29559
29560if test "x$prefix" != "xNONE"; then
29561 wxPREFIX=$prefix
29562else
29563 wxPREFIX=$ac_default_prefix
29564fi
29565
247f5006 29566cat >>confdefs.h <<_ACEOF
8284b0c5 29567#define wxINSTALL_PREFIX "$wxPREFIX"
247f5006 29568_ACEOF
8284b0c5
MB
29569
29570
29571
29572
29573
29574if test "$wxUSE_MAC" = 1 ; then
29575 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
29576fi
29577
29578
29579LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
29580
29581if test "$wxUSE_GUI" = "yes"; then
29582
29583 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
29584
247f5006 29585
8284b0c5
MB
29586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
29587 drawing dynamic erase event exec font image \
29588 minimal propsize rotate widgets"
29589
29590 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
29591else
29592 SAMPLES_SUBDIRS="console"
29593fi
29594
29595
29596INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
29597-I\${top_srcdir}/include \
29598$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
29599$TOOLKIT_INCLUDE"
29600
29601if test "$wxUSE_GTK" = 1; then
29602 WXCONFIG_INCLUDE=
29603else
29604 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
29605fi
29606
29607if test "$GXX" = yes ; then
29608 CXXWARNINGS="-Wall"
247f5006 29609
8284b0c5
MB
29610 if test "$wxUSE_NO_DEPS" = "no" ; then
29611 CFLAGS="-MMD $CFLAGS"
29612 CXXFLAGS="-MMD $CXXFLAGS"
29613 fi
29614fi
29615
29616EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
29617
29618CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
29619CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
29620LIBS=`echo $LIBS | sed 's/ \+/ /g'`
29621
29622LDFLAGS="$LDFLAGS $PROFILE"
29623
29624SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
2f51a9ec
GD
29693
29694
29695
29696
f6bcfd97 29697
dad6c0ea 29698
caa2c79b 29699
3711412e 29700
1e6feb95
VZ
29701
29702
885d4bf5
VS
29703
29704
29705
29706
9b695262
VZ
29707
29708
62d0491b 29709
ef7f2189 29710
40f7145c 29711
3bd8fb5f 29712
10f2d63a
VZ
29713
29714
247f5006
VZ
29715echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
29716echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
29717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
29718if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
29719 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 29720else
247f5006 29721 cat >conftest.make <<\_ACEOF
10f2d63a
VZ
29722all:
29723 @echo 'ac_maketemp="${MAKE}"'
247f5006 29724_ACEOF
10f2d63a 29725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
247f5006 29726eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10f2d63a
VZ
29727if test -n "$ac_maketemp"; then
29728 eval ac_cv_prog_make_${ac_make}_set=yes
29729else
29730 eval ac_cv_prog_make_${ac_make}_set=no
29731fi
247f5006 29732rm -f conftest.make
10f2d63a
VZ
29733fi
29734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
247f5006
VZ
29735 echo "$as_me:$LINENO: result: yes" >&5
29736echo "${ECHO_T}yes" >&6
10f2d63a
VZ
29737 SET_MAKE=
29738else
247f5006
VZ
29739 echo "$as_me:$LINENO: result: no" >&5
29740echo "${ECHO_T}no" >&6
10f2d63a
VZ
29741 SET_MAKE="MAKE=${MAKE-make}"
29742fi
29743
8284b0c5 29744
3a922bb4
RL
29745if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
29746 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 29747fi
665bbe97 29748
247f5006 29749ac_config_headers="$ac_config_headers setup.h:setup.h.in"
8284b0c5 29750
10f2d63a 29751
57973b9c
VZ
29752wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
29753wx_cv_if_gnu_make=$IF_GNU_MAKE
29754wx_cv_path_ifs=$PATH_IFS
29755wx_cv_program_ext=$PROGRAM_EXT
29756wx_cv_target_library=$WX_TARGET_LIBRARY
29757wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
29758wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
29759export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
29760 wx_cv_path_ifs wx_cv_program_ext \
29761 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
29762
8284b0c5 29763
10f2d63a 29764
247f5006
VZ
29765subdirs="$subdirs demos samples utils contrib"
29766
29767
29768ac_config_files="$ac_config_files wx-config src/make.env src/makeprog.env src/makelib.env Makefile"
29769ac_config_commands="$ac_config_commands default"
29770cat >confcache <<\_ACEOF
10f2d63a
VZ
29771# This file is a shell script that caches the results of configure
29772# tests run on this system so they can be shared between configure
247f5006
VZ
29773# scripts and configure runs, see configure's option --config-cache.
29774# It is not useful on other systems. If it contains results you don't
29775# want to keep, you may remove or edit it.
10f2d63a 29776#
247f5006
VZ
29777# config.status only pays attention to the cache file if you give it
29778# the --recheck option to rerun configure.
10f2d63a 29779#
247f5006
VZ
29780# `ac_cv_env_foo' variables (set or unset) will be overriden when
29781# loading this file, other *unset* `ac_cv_foo' will be assigned the
29782# following values.
29783
29784_ACEOF
29785
10f2d63a
VZ
29786# The following way of writing the cache mishandles newlines in values,
29787# but we know of no workaround that is simple, portable, and efficient.
29788# So, don't put newlines in cache variables' values.
29789# Ultrix sh set writes to stderr and can't be redirected directly,
29790# and sets the high bit in the cache file unless we assign to the vars.
247f5006
VZ
29791{
29792 (set) 2>&1 |
29793 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29794 *ac_space=\ *)
29795 # `set' does not quote correctly, so add quotes (double-quote
29796 # substitution turns \\\\ into \\, and sed turns \\ into \).
29797 sed -n \
29798 "s/'/'\\\\''/g;
29799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29800 ;;
29801 *)
29802 # `set' quotes correctly as required by POSIX, so do not add quotes.
29803 sed -n \
29804 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29805 ;;
29806 esac;
29807} |
29808 sed '
29809 t clear
29810 : clear
29811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29812 t end
29813 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29814 : end' >>confcache
29815if cmp -s $cache_file confcache; then :; else
10f2d63a 29816 if test -w $cache_file; then
247f5006
VZ
29817 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29818 cat confcache >$cache_file
10f2d63a
VZ
29819 else
29820 echo "not updating unwritable cache $cache_file"
29821 fi
29822fi
29823rm -f confcache
29824
10f2d63a
VZ
29825test "x$prefix" = xNONE && prefix=$ac_default_prefix
29826# Let make expand exec_prefix.
29827test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29828
247f5006
VZ
29829# VPATH may cause trouble with some makes, so we remove $(srcdir),
29830# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29831# trailing colons and then remove the whole line if VPATH becomes empty
29832# (actually we leave an empty line to preserve line numbers).
10f2d63a 29833if test "x$srcdir" = x.; then
247f5006
VZ
29834 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29835s/:*\$(srcdir):*/:/;
29836s/:*\${srcdir}:*/:/;
29837s/:*@srcdir@:*/:/;
29838s/^\([^=]*=[ ]*\):*/\1/;
29839s/:*$//;
29840s/^[^=]*=[ ]*$//;
29841}'
10f2d63a
VZ
29842fi
29843
10f2d63a
VZ
29844DEFS=-DHAVE_CONFIG_H
29845
8284b0c5 29846
247f5006
VZ
29847: ${CONFIG_STATUS=./config.status}
29848ac_clean_files_save=$ac_clean_files
29849ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29850{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29851echo "$as_me: creating $CONFIG_STATUS" >&6;}
29852cat >$CONFIG_STATUS <<_ACEOF
29853#! $SHELL
29854# Generated by $as_me.
10f2d63a 29855# Run this file to recreate the current configuration.
8284b0c5 29856# Compiler output produced by configure, useful for debugging
247f5006 29857# configure, is in config.log if it exists.
52127426 29858
247f5006
VZ
29859debug=false
29860SHELL=\${CONFIG_SHELL-$SHELL}
29861_ACEOF
29862
29863cat >>$CONFIG_STATUS <<\_ACEOF
29864
29865## --------------------- ##
29866## M4sh Initialization. ##
29867## --------------------- ##
29868
29869# Be Bourne compatible
29870if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29871 emulate sh
29872 NULLCMD=:
29873elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29874 set -o posix
29875fi
29876
29877# NLS nuisances.
29878# Support unset when possible.
29879if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29880 as_unset=unset
29881else
29882 as_unset=false
29883fi
29884
29885(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
29886 { $as_unset LANG || test "${LANG+set}" != set; } ||
29887 { LANG=C; export LANG; }
29888(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
29889 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
29890 { LC_ALL=C; export LC_ALL; }
29891(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
29892 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
29893 { LC_TIME=C; export LC_TIME; }
29894(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
29895 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
29896 { LC_CTYPE=C; export LC_CTYPE; }
29897(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
29898 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
29899 { LANGUAGE=C; export LANGUAGE; }
29900(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
29901 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
29902 { LC_COLLATE=C; export LC_COLLATE; }
29903(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
29904 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
29905 { LC_NUMERIC=C; export LC_NUMERIC; }
29906(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
29907 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
29908 { LC_MESSAGES=C; export LC_MESSAGES; }
29909
29910
29911# Name of the executable.
29912as_me=`(basename "$0") 2>/dev/null ||
29913$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29914 X"$0" : 'X\(//\)$' \| \
29915 X"$0" : 'X\(/\)$' \| \
29916 . : '\(.\)' 2>/dev/null ||
29917echo X/"$0" |
29918 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29919 /^X\/\(\/\/\)$/{ s//\1/; q; }
29920 /^X\/\(\/\).*/{ s//\1/; q; }
29921 s/.*/./; q'`
29922
29923# PATH needs CR, and LINENO needs CR and PATH.
29924# Avoid depending upon Character Ranges.
29925as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29926as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29927as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29928as_cr_digits='0123456789'
29929as_cr_alnum=$as_cr_Letters$as_cr_digits
29930
29931# The user is always right.
29932if test "${PATH_SEPARATOR+set}" != set; then
29933 echo "#! /bin/sh" >conftest.sh
29934 echo "exit 0" >>conftest.sh
29935 chmod +x conftest.sh
29936 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
29937 PATH_SEPARATOR=';'
29938 else
29939 PATH_SEPARATOR=:
29940 fi
29941 rm -f conftest.sh
29942fi
29943
29944
29945 as_lineno_1=$LINENO
29946 as_lineno_2=$LINENO
29947 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29948 test "x$as_lineno_1" != "x$as_lineno_2" &&
29949 test "x$as_lineno_3" = "x$as_lineno_2" || {
29950 # Find who we are. Look in the path if we contain no path at all
29951 # relative or not.
29952 case $0 in
29953 *[\\/]* ) as_myself=$0 ;;
29954 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29955for as_dir in $PATH
5c6fa7d2 29956do
247f5006
VZ
29957 IFS=$as_save_IFS
29958 test -z "$as_dir" && as_dir=.
29959 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29960done
29961
29962 ;;
5c6fa7d2 29963 esac
247f5006
VZ
29964 # We did not find ourselves, most probably we were run as `sh COMMAND'
29965 # in which case we are not to be found in the path.
29966 if test "x$as_myself" = x; then
29967 as_myself=$0
29968 fi
29969 if test ! -f "$as_myself"; then
29970 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29971echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29972 { (exit 1); exit 1; }; }
29973 fi
29974 case $CONFIG_SHELL in
29975 '')
29976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29977for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29978do
29979 IFS=$as_save_IFS
29980 test -z "$as_dir" && as_dir=.
29981 for as_base in sh bash ksh sh5; do
29982 case $as_dir in
29983 /*)
29984 if ("$as_dir/$as_base" -c '
29985 as_lineno_1=$LINENO
29986 as_lineno_2=$LINENO
29987 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29988 test "x$as_lineno_1" != "x$as_lineno_2" &&
29989 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29990 CONFIG_SHELL=$as_dir/$as_base
29991 export CONFIG_SHELL
29992 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29993 fi;;
29994 esac
29995 done
52127426 29996done
247f5006
VZ
29997;;
29998 esac
5c6fa7d2 29999
247f5006
VZ
30000 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30001 # uniformly replaced by the line number. The first 'sed' inserts a
30002 # line-number line before each line; the second 'sed' does the real
30003 # work. The second script uses 'N' to pair each line-number line
30004 # with the numbered line, and appends trailing '-' during
30005 # substitution so that $LINENO is not a special case at line end.
30006 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30007 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30008 sed '=' <$as_myself |
30009 sed '
30010 N
30011 s,$,-,
30012 : loop
30013 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30014 t loop
30015 s,-$,,
30016 s,^['$as_cr_digits']*\n,,
30017 ' >$as_me.lineno &&
30018 chmod +x $as_me.lineno ||
30019 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30020echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30021 { (exit 1); exit 1; }; }
30022
30023 # Don't try to exec as it changes $[0], causing all sort of problems
30024 # (the dirname of $[0] is not the place where we might find the
30025 # original and so on. Autoconf is especially sensible to this).
30026 . ./$as_me.lineno
30027 # Exit status is that of the last command.
30028 exit
30029}
5c6fa7d2 30030
5c6fa7d2 30031
247f5006
VZ
30032case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30033 *c*,-n*) ECHO_N= ECHO_C='
30034' ECHO_T=' ' ;;
30035 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30036 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30037esac
5c6fa7d2 30038
247f5006
VZ
30039if expr a : '\(a\)' >/dev/null 2>&1; then
30040 as_expr=expr
30041else
30042 as_expr=false
30043fi
52127426 30044
247f5006
VZ
30045rm -f conf$$ conf$$.exe conf$$.file
30046echo >conf$$.file
30047if ln -s conf$$.file conf$$ 2>/dev/null; then
30048 # We could just check for DJGPP; but this test a) works b) is more generic
30049 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30050 if test -f conf$$.exe; then
30051 # Don't use ln at all; we don't have any links
30052 as_ln_s='cp -p'
8284b0c5 30053 else
247f5006 30054 as_ln_s='ln -s'
8284b0c5 30055 fi
247f5006
VZ
30056elif ln conf$$.file conf$$ 2>/dev/null; then
30057 as_ln_s=ln
30058else
30059 as_ln_s='cp -p'
8284b0c5 30060fi
247f5006 30061rm -f conf$$ conf$$.exe conf$$.file
8284b0c5 30062
247f5006 30063as_executable_p="test -f"
698dcdb6 30064
247f5006
VZ
30065# Sed expression to map a string onto a valid CPP name.
30066as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
30067
30068# Sed expression to map a string onto a valid variable name.
30069as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
30070
30071
30072# IFS
30073# We need space, tab and new line, in precisely that order.
30074as_nl='
30075'
30076IFS=" $as_nl"
30077
30078# CDPATH.
30079$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
30080
30081exec 6>&1
30082
30083# Open the log real soon, to keep \$[0] and so on meaningful, and to
30084# report actual input values of CONFIG_FILES etc. instead of their
30085# values after options handling. Logging --version etc. is OK.
30086exec 5>>config.log
30087{
30088 echo
30089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30090## Running $as_me. ##
30091_ASBOX
30092} >&5
30093cat >&5 <<_CSEOF
30094
30095This file was extended by $as_me, which was
30096generated by GNU Autoconf 2.53. Invocation command line was
30097
30098 CONFIG_FILES = $CONFIG_FILES
30099 CONFIG_HEADERS = $CONFIG_HEADERS
30100 CONFIG_LINKS = $CONFIG_LINKS
30101 CONFIG_COMMANDS = $CONFIG_COMMANDS
30102 $ $0 $@
30103
30104_CSEOF
30105echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30106echo >&5
30107_ACEOF
30108
30109# Files that config.status was made for.
30110if test -n "$ac_config_files"; then
30111 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30112fi
30113
30114if test -n "$ac_config_headers"; then
30115 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30116fi
30117
30118if test -n "$ac_config_links"; then
30119 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30120fi
30121
30122if test -n "$ac_config_commands"; then
30123 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30124fi
30125
30126cat >>$CONFIG_STATUS <<\_ACEOF
30127
30128ac_cs_usage="\
30129\`$as_me' instantiates files from templates according to the
30130current configuration.
30131
30132Usage: $0 [OPTIONS] [FILE]...
30133
30134 -h, --help print this help, then exit
30135 -V, --version print version number, then exit
30136 -d, --debug don't remove temporary files
30137 --recheck update $as_me by reconfiguring in the same conditions
30138 --file=FILE[:TEMPLATE]
30139 instantiate the configuration file FILE
30140 --header=FILE[:TEMPLATE]
30141 instantiate the configuration header FILE
30142
30143Configuration files:
30144$config_files
30145
30146Configuration headers:
30147$config_headers
30148
30149Configuration commands:
30150$config_commands
30151
30152Report bugs to <bug-autoconf@gnu.org>."
30153_ACEOF
30154
30155cat >>$CONFIG_STATUS <<_ACEOF
30156ac_cs_version="\\
30157config.status
30158configured by $0, generated by GNU Autoconf 2.53,
30159 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30160
30161Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
30162Free Software Foundation, Inc.
30163This config.status script is free software; the Free Software Foundation
30164gives unlimited permission to copy, distribute and modify it."
30165srcdir=$srcdir
30166INSTALL="$INSTALL"
30167_ACEOF
30168
30169cat >>$CONFIG_STATUS <<\_ACEOF
30170# If no file are specified by the user, then we need to provide default
30171# value. By we need to know if files were specified by the user.
30172ac_need_defaults=:
30173while test $# != 0
30174do
30175 case $1 in
30176 --*=*)
30177 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30178 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30179 shift
30180 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
30181 shift
30182 ;;
30183 -*);;
30184 *) # This is not an option, so the user has probably given explicit
30185 # arguments.
30186 ac_need_defaults=false;;
10f2d63a
VZ
30187 esac
30188
247f5006
VZ
30189 case $1 in
30190 # Handling of the options.
30191_ACEOF
30192cat >>$CONFIG_STATUS <<_ACEOF
30193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30194 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
30195 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
30196_ACEOF
30197cat >>$CONFIG_STATUS <<\_ACEOF
30198 --version | --vers* | -V )
30199 echo "$ac_cs_version"; exit 0 ;;
30200 --he | --h)
30201 # Conflict between --help and --header
30202 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30203Try \`$0 --help' for more information." >&5
30204echo "$as_me: error: ambiguous option: $1
30205Try \`$0 --help' for more information." >&2;}
30206 { (exit 1); exit 1; }; };;
30207 --help | --hel | -h )
30208 echo "$ac_cs_usage"; exit 0 ;;
30209 --debug | --d* | -d )
30210 debug=: ;;
30211 --file | --fil | --fi | --f )
30212 shift
30213 CONFIG_FILES="$CONFIG_FILES $1"
30214 ac_need_defaults=false;;
30215 --header | --heade | --head | --hea )
30216 shift
30217 CONFIG_HEADERS="$CONFIG_HEADERS $1"
30218 ac_need_defaults=false;;
30219
30220 # This is an error.
30221 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30222Try \`$0 --help' for more information." >&5
30223echo "$as_me: error: unrecognized option: $1
30224Try \`$0 --help' for more information." >&2;}
30225 { (exit 1); exit 1; }; } ;;
5c6fa7d2 30226
247f5006
VZ
30227 *) ac_config_targets="$ac_config_targets $1" ;;
30228
30229 esac
30230 shift
30231done
30232
30233_ACEOF
30234
30235cat >>$CONFIG_STATUS <<_ACEOF
30236#
30237# INIT-COMMANDS section.
30238#
30239
30240
30241 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
30242 LN_S="${LN_S}"
30243
30244
30245
30246_ACEOF
30247
30248
30249
30250cat >>$CONFIG_STATUS <<\_ACEOF
30251for ac_config_target in $ac_config_targets
30252do
30253 case "$ac_config_target" in
30254 # Handling of arguments.
30255 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
30256 "src/make.env" ) CONFIG_FILES="$CONFIG_FILES src/make.env" ;;
30257 "src/makeprog.env" ) CONFIG_FILES="$CONFIG_FILES src/makeprog.env" ;;
30258 "src/makelib.env" ) CONFIG_FILES="$CONFIG_FILES src/makelib.env" ;;
30259 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30260 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30261 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h:setup.h.in" ;;
30262 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30263echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30264 { (exit 1); exit 1; }; };;
30265 esac
30266done
30267
30268# If the user did not use the arguments to specify the items to instantiate,
30269# then the envvar interface is used. Set only those that are not.
30270# We use the long form for the default assignment because of an extremely
30271# bizarre bug on SunOS 4.1.3.
30272if $ac_need_defaults; then
30273 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30274 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30275 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30276fi
30277
30278# Create a temporary directory, and hook for its removal unless debugging.
30279$debug ||
30280{
30281 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30282 trap '{ (exit 1); exit 1; }' 1 2 13 15
30283}
30284
30285# Create a (secure) tmp directory for tmp files.
30286: ${TMPDIR=/tmp}
30287{
30288 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
30289 test -n "$tmp" && test -d "$tmp"
30290} ||
30291{
30292 tmp=$TMPDIR/cs$$-$RANDOM
30293 (umask 077 && mkdir $tmp)
30294} ||
30295{
30296 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
30297 { (exit 1); exit 1; }
30298}
30299
30300_ACEOF
30301
30302cat >>$CONFIG_STATUS <<_ACEOF
30303
30304#
30305# CONFIG_FILES section.
30306#
30307
30308# No need to generate the scripts if there are no CONFIG_FILES.
30309# This happens for instance when ./config.status config.h
30310if test -n "\$CONFIG_FILES"; then
30311 # Protect against being on the right side of a sed subst in config.status.
30312 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30313 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30314s,@SHELL@,$SHELL,;t t
30315s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30316s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30317s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30318s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30319s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30320s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30321s,@exec_prefix@,$exec_prefix,;t t
30322s,@prefix@,$prefix,;t t
30323s,@program_transform_name@,$program_transform_name,;t t
30324s,@bindir@,$bindir,;t t
30325s,@sbindir@,$sbindir,;t t
30326s,@libexecdir@,$libexecdir,;t t
30327s,@datadir@,$datadir,;t t
30328s,@sysconfdir@,$sysconfdir,;t t
30329s,@sharedstatedir@,$sharedstatedir,;t t
30330s,@localstatedir@,$localstatedir,;t t
30331s,@libdir@,$libdir,;t t
30332s,@includedir@,$includedir,;t t
30333s,@oldincludedir@,$oldincludedir,;t t
30334s,@infodir@,$infodir,;t t
30335s,@mandir@,$mandir,;t t
30336s,@build_alias@,$build_alias,;t t
30337s,@host_alias@,$host_alias,;t t
30338s,@target_alias@,$target_alias,;t t
30339s,@DEFS@,$DEFS,;t t
30340s,@ECHO_C@,$ECHO_C,;t t
30341s,@ECHO_N@,$ECHO_N,;t t
30342s,@ECHO_T@,$ECHO_T,;t t
30343s,@LIBS@,$LIBS,;t t
30344s,@build@,$build,;t t
30345s,@build_cpu@,$build_cpu,;t t
30346s,@build_vendor@,$build_vendor,;t t
30347s,@build_os@,$build_os,;t t
30348s,@host@,$host,;t t
30349s,@host_cpu@,$host_cpu,;t t
30350s,@host_vendor@,$host_vendor,;t t
30351s,@host_os@,$host_os,;t t
30352s,@target@,$target,;t t
30353s,@target_cpu@,$target_cpu,;t t
30354s,@target_vendor@,$target_vendor,;t t
30355s,@target_os@,$target_os,;t t
30356s,@CC@,$CC,;t t
30357s,@CFLAGS@,$CFLAGS,;t t
30358s,@LDFLAGS@,$LDFLAGS,;t t
30359s,@CPPFLAGS@,$CPPFLAGS,;t t
30360s,@ac_ct_CC@,$ac_ct_CC,;t t
30361s,@EXEEXT@,$EXEEXT,;t t
30362s,@OBJEXT@,$OBJEXT,;t t
30363s,@CPP@,$CPP,;t t
30364s,@CXX@,$CXX,;t t
30365s,@CXXFLAGS@,$CXXFLAGS,;t t
30366s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30367s,@RANLIB@,$RANLIB,;t t
30368s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30369s,@AR@,$AR,;t t
30370s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30371s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30372s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30373s,@STRIP@,$STRIP,;t t
30374s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
30375s,@YACC@,$YACC,;t t
30376s,@LEX@,$LEX,;t t
30377s,@LEXLIB@,$LEXLIB,;t t
30378s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30379s,@LN_S@,$LN_S,;t t
30380s,@CXXCPP@,$CXXCPP,;t t
30381s,@PKG_CONFIG@,$PKG_CONFIG,;t t
30382s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
30383s,@GTK_LIBS@,$GTK_LIBS,;t t
30384s,@GTK_CONFIG@,$GTK_CONFIG,;t t
30385s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
30386s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
30387s,@X_CFLAGS@,$X_CFLAGS,;t t
30388s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30389s,@X_LIBS@,$X_LIBS,;t t
30390s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30391s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
30392s,@RESCOMP@,$RESCOMP,;t t
30393s,@DEREZ@,$DEREZ,;t t
30394s,@LIBICONV@,$LIBICONV,;t t
30395s,@LEX_STEM@,$LEX_STEM,;t t
30396s,@PATH_IFS@,$PATH_IFS,;t t
30397s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
30398s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
30399s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
30400s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
30401s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
30402s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
30403s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
30404s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
30405s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
30406s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
30407s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
30408s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
30409s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
30410s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
30411s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
30412s,@WX_ALL@,$WX_ALL,;t t
30413s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
30414s,@SHARED_LD@,$SHARED_LD,;t t
30415s,@PIC_FLAG@,$PIC_FLAG,;t t
30416s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
30417s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
30418s,@SONAME_FLAGS@,$SONAME_FLAGS,;t t
30419s,@SONAME_FLAGS_GL@,$SONAME_FLAGS_GL,;t t
30420s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t
30421s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
30422s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
30423s,@USE_GUI@,$USE_GUI,;t t
30424s,@AFMINSTALL@,$AFMINSTALL,;t t
30425s,@TOOLKIT@,$TOOLKIT,;t t
30426s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
30427s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
30428s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
30429s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
30430s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
30431s,@cross_compiling@,$cross_compiling,;t t
30432s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
30433s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
30434s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
30435s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
30436s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
30437s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
30438s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
30439s,@ALL_HEADERS@,$ALL_HEADERS,;t t
30440s,@ALL_SOURCES@,$ALL_SOURCES,;t t
30441s,@GUIDIST@,$GUIDIST,;t t
30442s,@PORT_FILES@,$PORT_FILES,;t t
30443s,@DISTDIR@,$DISTDIR,;t t
30444s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
30445s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
30446s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
30447s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
30448s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
30449s,@EXTRADEFS@,$EXTRADEFS,;t t
30450s,@RESFLAGS@,$RESFLAGS,;t t
30451s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
30452s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
30453s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
30454s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
30455s,@LIBWXMACRES@,$LIBWXMACRES,;t t
30456s,@LIBWXMACRESCOMP@,$LIBWXMACRESCOMP,;t t
30457s,@LIBWXMACRESWXCONFIG@,$LIBWXMACRESWXCONFIG,;t t
30458s,@DLLTOOL@,$DLLTOOL,;t t
30459s,@AS@,$AS,;t t
30460s,@NM@,$NM,;t t
30461s,@LD@,$LD,;t t
30462s,@MAKEINFO@,$MAKEINFO,;t t
30463s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
30464s,@SET_MAKE@,$SET_MAKE,;t t
30465s,@subdirs@,$subdirs,;t t
30466CEOF
30467
30468_ACEOF
30469
30470 cat >>$CONFIG_STATUS <<\_ACEOF
30471 # Split the substitutions into bite-sized pieces for seds with
30472 # small command number limits, like on Digital OSF/1 and HP-UX.
30473 ac_max_sed_lines=48
30474 ac_sed_frag=1 # Number of current file.
30475 ac_beg=1 # First line for current file.
30476 ac_end=$ac_max_sed_lines # Line after last line for current file.
30477 ac_more_lines=:
30478 ac_sed_cmds=
30479 while $ac_more_lines; do
30480 if test $ac_beg -gt 1; then
30481 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30482 else
30483 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30484 fi
30485 if test ! -s $tmp/subs.frag; then
30486 ac_more_lines=false
30487 else
30488 # The purpose of the label and of the branching condition is to
30489 # speed up the sed processing (if there are no `@' at all, there
30490 # is no need to browse any of the substitutions).
30491 # These are the two extra sed commands mentioned above.
30492 (echo ':t
30493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30494 if test -z "$ac_sed_cmds"; then
30495 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30496 else
30497 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30498 fi
30499 ac_sed_frag=`expr $ac_sed_frag + 1`
30500 ac_beg=$ac_end
30501 ac_end=`expr $ac_end + $ac_max_sed_lines`
30502 fi
30503 done
30504 if test -z "$ac_sed_cmds"; then
30505 ac_sed_cmds=cat
10f2d63a 30506 fi
247f5006 30507fi # test -n "$CONFIG_FILES"
10f2d63a 30508
247f5006
VZ
30509_ACEOF
30510cat >>$CONFIG_STATUS <<\_ACEOF
30511for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30513 case $ac_file in
30514 - | *:- | *:-:* ) # input from stdin
30515 cat >$tmp/stdin
30516 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30518 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30519 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30520 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
30521 esac
30522
247f5006
VZ
30523 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30524 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30525$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30526 X"$ac_file" : 'X\(//\)[^/]' \| \
30527 X"$ac_file" : 'X\(//\)$' \| \
30528 X"$ac_file" : 'X\(/\)' \| \
30529 . : '\(.\)' 2>/dev/null ||
30530echo X"$ac_file" |
30531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30533 /^X\(\/\/\)$/{ s//\1/; q; }
30534 /^X\(\/\).*/{ s//\1/; q; }
30535 s/.*/./; q'`
30536 { case "$ac_dir" in
30537 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30538 *) as_incr_dir=.;;
30539esac
30540as_dummy="$ac_dir"
30541for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30542 case $as_mkdir_dir in
30543 # Skip DOS drivespec
30544 ?:) as_incr_dir=$as_mkdir_dir ;;
30545 *)
30546 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30547 test -d "$as_incr_dir" ||
30548 mkdir "$as_incr_dir" ||
30549 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
30550echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
30551 { (exit 1); exit 1; }; }
30552 ;;
10f2d63a 30553 esac
247f5006
VZ
30554done; }
30555
30556 ac_builddir=.
30557
30558if test "$ac_dir" != .; then
30559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30560 # A "../" for each directory in $ac_dir_suffix.
30561 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30562else
30563 ac_dir_suffix= ac_top_builddir=
30564fi
30565
30566case $srcdir in
30567 .) # No --srcdir option. We are building in place.
30568 ac_srcdir=.
30569 if test -z "$ac_top_builddir"; then
30570 ac_top_srcdir=.
30571 else
30572 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30573 fi ;;
30574 [\\/]* | ?:[\\/]* ) # Absolute path.
30575 ac_srcdir=$srcdir$ac_dir_suffix;
30576 ac_top_srcdir=$srcdir ;;
30577 *) # Relative path.
30578 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30579 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30580esac
30581# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
30582# absolute.
30583ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
30584ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
30585ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
30586ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
30587
10f2d63a 30588
247f5006
VZ
30589 case $INSTALL in
30590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30591 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8284b0c5 30592 esac
10f2d63a 30593
247f5006
VZ
30594 if test x"$ac_file" != x-; then
30595 { echo "$as_me:$LINENO: creating $ac_file" >&5
30596echo "$as_me: creating $ac_file" >&6;}
30597 rm -f "$ac_file"
30598 fi
30599 # Let's still pretend it is `configure' which instantiates (i.e., don't
30600 # use $as_me), people would be surprised to read:
30601 # /* config.h. Generated by config.status. */
30602 if test x"$ac_file" = x-; then
30603 configure_input=
30604 else
30605 configure_input="$ac_file. "
30606 fi
30607 configure_input=$configure_input"Generated from `echo $ac_file_in |
30608 sed 's,.*/,,'` by configure."
30609
30610 # First look for the input files in the build tree, otherwise in the
30611 # src tree.
30612 ac_file_inputs=`IFS=:
30613 for f in $ac_file_in; do
30614 case $f in
30615 -) echo $tmp/stdin ;;
30616 [\\/$]*)
30617 # Absolute (can't be DOS-style, as IFS=:)
30618 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30619echo "$as_me: error: cannot find input file: $f" >&2;}
30620 { (exit 1); exit 1; }; }
30621 echo $f;;
30622 *) # Relative
30623 if test -f "$f"; then
30624 # Build tree
30625 echo $f
30626 elif test -f "$srcdir/$f"; then
30627 # Source tree
30628 echo $srcdir/$f
30629 else
30630 # /dev/null tree
30631 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30632echo "$as_me: error: cannot find input file: $f" >&2;}
30633 { (exit 1); exit 1; }; }
30634 fi;;
30635 esac
30636 done` || { (exit 1); exit 1; }
30637_ACEOF
30638cat >>$CONFIG_STATUS <<_ACEOF
30639 sed "$ac_vpsub
30640$extrasub
30641_ACEOF
30642cat >>$CONFIG_STATUS <<\_ACEOF
30643:t
30644/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30645s,@configure_input@,$configure_input,;t t
30646s,@srcdir@,$ac_srcdir,;t t
30647s,@abs_srcdir@,$ac_abs_srcdir,;t t
30648s,@top_srcdir@,$ac_top_srcdir,;t t
30649s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30650s,@builddir@,$ac_builddir,;t t
30651s,@abs_builddir@,$ac_abs_builddir,;t t
30652s,@top_builddir@,$ac_top_builddir,;t t
30653s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30654s,@INSTALL@,$ac_INSTALL,;t t
30655" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30656 rm -f $tmp/stdin
30657 if test x"$ac_file" != x-; then
30658 mv $tmp/out $ac_file
30659 else
30660 cat $tmp/out
30661 rm -f $tmp/out
30662 fi
30663
30664done
30665_ACEOF
30666cat >>$CONFIG_STATUS <<\_ACEOF
30667
30668#
30669# CONFIG_HEADER section.
30670#
10f2d63a
VZ
30671
30672# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30673# NAME is the cpp macro being defined and VALUE is the value it is being given.
30674#
30675# ac_d sets the value in "#define NAME VALUE" lines.
247f5006
VZ
30676ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30677ac_dB='[ ].*$,\1#\2'
30678ac_dC=' '
30679ac_dD=',;t'
30680# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30681ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30682ac_uB='$,\1#\2define\3'
10f2d63a 30683ac_uC=' '
247f5006
VZ
30684ac_uD=',;t'
30685
30686for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 30687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
247f5006
VZ
30688 case $ac_file in
30689 - | *:- | *:-:* ) # input from stdin
30690 cat >$tmp/stdin
30691 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30693 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30695 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
30696 esac
30697
247f5006
VZ
30698 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30699echo "$as_me: creating $ac_file" >&6;}
30700
30701 # First look for the input files in the build tree, otherwise in the
30702 # src tree.
30703 ac_file_inputs=`IFS=:
30704 for f in $ac_file_in; do
30705 case $f in
30706 -) echo $tmp/stdin ;;
30707 [\\/$]*)
30708 # Absolute (can't be DOS-style, as IFS=:)
30709 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30710echo "$as_me: error: cannot find input file: $f" >&2;}
30711 { (exit 1); exit 1; }; }
30712 echo $f;;
30713 *) # Relative
30714 if test -f "$f"; then
30715 # Build tree
30716 echo $f
30717 elif test -f "$srcdir/$f"; then
30718 # Source tree
30719 echo $srcdir/$f
30720 else
30721 # /dev/null tree
30722 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30723echo "$as_me: error: cannot find input file: $f" >&2;}
30724 { (exit 1); exit 1; }; }
30725 fi;;
30726 esac
30727 done` || { (exit 1); exit 1; }
30728 # Remove the trailing spaces.
30729 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30730
30731_ACEOF
30732
30733# Transform confdefs.h into two sed scripts, `conftest.defines' and
30734# `conftest.undefs', that substitutes the proper values into
30735# config.h.in to produce config.h. The first handles `#define'
30736# templates, and the second `#undef' templates.
30737# And first: Protect against being on the right side of a sed subst in
30738# config.status. Protect against being in an unquoted here document
30739# in config.status.
30740rm -f conftest.defines conftest.undefs
30741# Using a here document instead of a string reduces the quoting nightmare.
30742# Putting comments in sed scripts is not portable.
30743#
30744# `end' is used to avoid that the second main sed command (meant for
30745# 0-ary CPP macros) applies to n-ary macro definitions.
30746# See the Autoconf documentation for `clear'.
30747cat >confdef2sed.sed <<\_ACEOF
30748s/[\\&,]/\\&/g
30749s,[\\$`],\\&,g
30750t clear
30751: clear
30752s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30753t end
30754s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30755: end
30756_ACEOF
30757# If some macros were called several times there might be several times
30758# the same #defines, which is useless. Nevertheless, we may not want to
30759# sort them, since we want the *last* AC-DEFINE to be honored.
30760uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30761sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30762rm -f confdef2sed.sed
10f2d63a
VZ
30763
30764# This sed command replaces #undef with comments. This is necessary, for
30765# example, in the case of _POSIX_SOURCE, which is predefined and required
30766# on some systems where configure will not decide to define it.
247f5006
VZ
30767cat >>conftest.undefs <<\_ACEOF
30768s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30769_ACEOF
30770
30771# Break up conftest.defines because some shells have a limit on the size
30772# of here documents, and old seds have small limits too (100 cmds).
30773echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30774echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30775echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30776echo ' :' >>$CONFIG_STATUS
30777rm -f conftest.tail
30778while grep . conftest.defines >/dev/null
30779do
30780 # Write a limited-size here document to $tmp/defines.sed.
30781 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30782 # Speed up: don't consider the non `#define' lines.
30783 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30784 # Work around the forget-to-reset-the-flag bug.
30785 echo 't clr' >>$CONFIG_STATUS
30786 echo ': clr' >>$CONFIG_STATUS
30787 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30788 echo 'CEOF
30789 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30790 rm -f $tmp/in
30791 mv $tmp/out $tmp/in
30792' >>$CONFIG_STATUS
30793 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30794 rm -f conftest.defines
30795 mv conftest.tail conftest.defines
30796done
30797rm -f conftest.defines
30798echo ' fi # egrep' >>$CONFIG_STATUS
30799echo >>$CONFIG_STATUS
10f2d63a 30800
247f5006
VZ
30801# Break up conftest.undefs because some shells have a limit on the size
30802# of here documents, and old seds have small limits too (100 cmds).
30803echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 30804rm -f conftest.tail
247f5006 30805while grep . conftest.undefs >/dev/null
10f2d63a 30806do
247f5006
VZ
30807 # Write a limited-size here document to $tmp/undefs.sed.
30808 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30809 # Speed up: don't consider the non `#undef'
30810 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30811 # Work around the forget-to-reset-the-flag bug.
30812 echo 't clr' >>$CONFIG_STATUS
30813 echo ': clr' >>$CONFIG_STATUS
30814 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 30815 echo 'CEOF
247f5006
VZ
30816 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30817 rm -f $tmp/in
30818 mv $tmp/out $tmp/in
30819' >>$CONFIG_STATUS
30820 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30821 rm -f conftest.undefs
30822 mv conftest.tail conftest.undefs
10f2d63a 30823done
247f5006
VZ
30824rm -f conftest.undefs
30825
30826cat >>$CONFIG_STATUS <<\_ACEOF
30827 # Let's still pretend it is `configure' which instantiates (i.e., don't
30828 # use $as_me), people would be surprised to read:
30829 # /* config.h. Generated by config.status. */
30830 if test x"$ac_file" = x-; then
30831 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 30832 else
247f5006 30833 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10f2d63a 30834 fi
247f5006
VZ
30835 cat $tmp/in >>$tmp/config.h
30836 rm -f $tmp/in
30837 if test x"$ac_file" != x-; then
30838 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
30839 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30840echo "$as_me: $ac_file is unchanged" >&6;}
30841 else
30842 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30843$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30844 X"$ac_file" : 'X\(//\)[^/]' \| \
30845 X"$ac_file" : 'X\(//\)$' \| \
30846 X"$ac_file" : 'X\(/\)' \| \
30847 . : '\(.\)' 2>/dev/null ||
30848echo X"$ac_file" |
30849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30851 /^X\(\/\/\)$/{ s//\1/; q; }
30852 /^X\(\/\).*/{ s//\1/; q; }
30853 s/.*/./; q'`
30854 { case "$ac_dir" in
30855 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30856 *) as_incr_dir=.;;
30857esac
30858as_dummy="$ac_dir"
30859for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30860 case $as_mkdir_dir in
30861 # Skip DOS drivespec
30862 ?:) as_incr_dir=$as_mkdir_dir ;;
30863 *)
30864 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30865 test -d "$as_incr_dir" ||
30866 mkdir "$as_incr_dir" ||
30867 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
30868echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
30869 { (exit 1); exit 1; }; }
30870 ;;
30871 esac
30872done; }
10f2d63a 30873
247f5006
VZ
30874 rm -f $ac_file
30875 mv $tmp/config.h $ac_file
30876 fi
30877 else
30878 cat $tmp/config.h
30879 rm -f $tmp/config.h
30880 fi
30881done
30882_ACEOF
30883cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 30884
247f5006
VZ
30885#
30886# CONFIG_COMMANDS section.
30887#
30888for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30889 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30890 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30891 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30892$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30893 X"$ac_dest" : 'X\(//\)[^/]' \| \
30894 X"$ac_dest" : 'X\(//\)$' \| \
30895 X"$ac_dest" : 'X\(/\)' \| \
30896 . : '\(.\)' 2>/dev/null ||
30897echo X"$ac_dest" |
30898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30900 /^X\(\/\/\)$/{ s//\1/; q; }
30901 /^X\(\/\).*/{ s//\1/; q; }
30902 s/.*/./; q'`
30903 ac_builddir=.
30904
30905if test "$ac_dir" != .; then
30906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30907 # A "../" for each directory in $ac_dir_suffix.
30908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30909else
30910 ac_dir_suffix= ac_top_builddir=
30911fi
30912
30913case $srcdir in
30914 .) # No --srcdir option. We are building in place.
30915 ac_srcdir=.
30916 if test -z "$ac_top_builddir"; then
30917 ac_top_srcdir=.
30918 else
30919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30920 fi ;;
30921 [\\/]* | ?:[\\/]* ) # Absolute path.
30922 ac_srcdir=$srcdir$ac_dir_suffix;
30923 ac_top_srcdir=$srcdir ;;
30924 *) # Relative path.
30925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30927esac
30928# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
30929# absolute.
30930ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
30931ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
30932ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
30933ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
30934
30935
30936 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30937echo "$as_me: executing $ac_dest commands" >&6;}
30938 case $ac_dest in
30939 default )
652d930d 30940 if test ! -h wx-config; then
991a5759 30941 chmod +x wx-config
3a922bb4
RL
30942 mv wx-config wx${TOOLCHAIN_NAME}-config
30943 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 30944 fi
665bbe97 30945
00cf1208
RR
30946 if test ! -d lib; then
30947 mkdir lib
30948 fi
30949 if test ! -d lib/wx; then
30950 mkdir lib/wx
30951 fi
30952 if test ! -d lib/wx/include; then
30953 mkdir lib/wx/include
30954 fi
3a922bb4
RL
30955 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
30956 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 30957 fi
3a922bb4
RL
30958 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
30959 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
30960 fi
30961 if test -f setup.h; then
3a922bb4 30962 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 30963 fi
247f5006
VZ
30964 ;;
30965 esac
30966done
30967_ACEOF
30968
30969cat >>$CONFIG_STATUS <<\_ACEOF
30970
30971{ (exit 0); exit 0; }
30972_ACEOF
10f2d63a 30973chmod +x $CONFIG_STATUS
247f5006
VZ
30974ac_clean_files=$ac_clean_files_save
30975
30976
30977# configure is writing to config.log, and then calls config.status.
30978# config.status does its own redirection, appending to config.log.
30979# Unfortunately, on DOS this fails, as config.log is still kept open
30980# by configure, so config.status won't be able to write to it; its
30981# output is simply discarded. So we exec the FD to /dev/null,
30982# effectively closing config.log, so it can be properly (re)opened and
30983# appended to by config.status. When coming back to configure, we
30984# need to make the FD available again.
30985if test "$no_create" != yes; then
30986 ac_cs_success=:
30987 exec 5>/dev/null
30988 $SHELL $CONFIG_STATUS || ac_cs_success=false
30989 exec 5>>config.log
30990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30991 # would make configure fail if this is the last instruction.
30992 $ac_cs_success || { (exit 1); exit 1; }
30993fi
10f2d63a 30994
247f5006
VZ
30995#
30996# CONFIG_SUBDIRS section.
30997#
2224580a
VZ
30998if test "$no_recursion" != yes; then
30999
31000 # Remove --cache-file and --srcdir arguments so they do not pile up.
31001 ac_sub_configure_args=
31002 ac_prev=
31003 for ac_arg in $ac_configure_args; do
31004 if test -n "$ac_prev"; then
31005 ac_prev=
31006 continue
31007 fi
247f5006 31008 case $ac_arg in
2224580a
VZ
31009 -cache-file | --cache-file | --cache-fil | --cache-fi \
31010 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31011 ac_prev=cache_file ;;
31012 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
247f5006
VZ
31013 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31014 | --c=*)
31015 ;;
31016 --config-cache | -C)
2224580a
VZ
31017 ;;
31018 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31019 ac_prev=srcdir ;;
31020 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31021 ;;
247f5006
VZ
31022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31023 ac_prev=prefix ;;
31024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31025 ;;
2224580a
VZ
31026 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31027 esac
31028 done
31029
247f5006
VZ
31030 # Always prepend --prefix to ensure using the same prefix
31031 # in subdir configurations.
31032 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31033
31034 ac_popdir=`pwd`
31035 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
2224580a
VZ
31036
31037 # Do not complain, so a configure script can configure whichever
31038 # parts of a large source tree are present.
247f5006 31039 test -d $srcdir/$ac_dir || continue
2224580a 31040
247f5006
VZ
31041 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31042echo "$as_me: configuring in $ac_dir" >&6;}
31043 { case "$ac_dir" in
31044 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
31045 *) as_incr_dir=.;;
31046esac
31047as_dummy="$ac_dir"
31048for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
31049 case $as_mkdir_dir in
31050 # Skip DOS drivespec
31051 ?:) as_incr_dir=$as_mkdir_dir ;;
2224580a 31052 *)
247f5006
VZ
31053 as_incr_dir=$as_incr_dir/$as_mkdir_dir
31054 test -d "$as_incr_dir" ||
31055 mkdir "$as_incr_dir" ||
31056 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
31057echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
31058 { (exit 1); exit 1; }; }
31059 ;;
31060 esac
31061done; }
2224580a 31062
247f5006 31063 ac_builddir=.
2224580a 31064
247f5006
VZ
31065if test "$ac_dir" != .; then
31066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31067 # A "../" for each directory in $ac_dir_suffix.
31068 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31069else
31070 ac_dir_suffix= ac_top_builddir=
31071fi
2224580a 31072
247f5006
VZ
31073case $srcdir in
31074 .) # No --srcdir option. We are building in place.
31075 ac_srcdir=.
31076 if test -z "$ac_top_builddir"; then
31077 ac_top_srcdir=.
31078 else
31079 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31080 fi ;;
31081 [\\/]* | ?:[\\/]* ) # Absolute path.
31082 ac_srcdir=$srcdir$ac_dir_suffix;
31083 ac_top_srcdir=$srcdir ;;
31084 *) # Relative path.
31085 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31086 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31087esac
31088# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
31089# absolute.
31090ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
31091ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
31092ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
31093ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
31094
31095
31096 cd $ac_dir
2224580a
VZ
31097
31098 # Check for guested configure; otherwise get Cygnus style configure.
247f5006
VZ
31099 if test -f $ac_srcdir/configure.gnu; then
31100 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31101 elif test -f $ac_srcdir/configure; then
31102 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31103 elif test -f $ac_srcdir/configure.in; then
2224580a
VZ
31104 ac_sub_configure=$ac_configure
31105 else
247f5006
VZ
31106 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31107echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
2224580a
VZ
31108 ac_sub_configure=
31109 fi
31110
31111 # The recursion is here.
31112 if test -n "$ac_sub_configure"; then
2224580a 31113 # Make the cache file name correct relative to the subdirectory.
247f5006
VZ
31114 case $cache_file in
31115 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
2224580a 31116 *) # Relative path.
247f5006 31117 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
2224580a 31118 esac
2224580a 31119
247f5006
VZ
31120 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31121echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
2224580a 31122 # The eval makes quoting arguments work.
247f5006
VZ
31123 eval $ac_sub_configure $ac_sub_configure_args \
31124 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31125 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31126echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31127 { (exit 1); exit 1; }; }
2224580a
VZ
31128 fi
31129
31130 cd $ac_popdir
31131 done
31132fi
31133
8284b0c5 31134