]> git.saurik.com Git - wxWidgets.git/blame - configure
new dependency tracking from bakefile cvs
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
272PACKAGE_VERSION='2.5.0'
273PACKAGE_STRING='wxWindows 2.5.0'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
49b0a3aa 314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS AIX_CXX_LD RESCOMP DEREZ SETFILE LIBICONV wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF WXUNIV MONOLITHIC EXTRALIBS UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SET_MAKE MAKE_SET INSTALL_DIR PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING COND_SHARED_1_MONOLITHIC_0 COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_GUI_1 COND_WXUSE_ODBC_BUILTIN COND_TOOLKIT_X11 COND_TOOLKIT_MGL COND_TOOLKIT_GTK COND_TOOLKIT_MSW COND_TOOLKIT_MAC COND_USE_SOVERSION_1_PLATFORM_MACOSX_0 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1 COND_PLATFORM_WIN32_1 COND_SHARED_0_USE_GUI_1_MONOLITHIC_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_MACOSX_1 COND_WXUSE_LIBTIFF_BUILTIN COND_SHARED_1_USE_GUI_1_MONOLITHIC_0 COND_MONOLITHIC_0 COND_WXUSE_REGEX_BUILTIN COND_TOOLKIT_MOTIF COND_TOOLKIT_COCOA COND_TOOLKIT_OS2 COND_WXUNIV_1 COND_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_0 COND_SHARED_1_MONOLITHIC_1 COND_SHARED_0_MONOLITHIC_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSOLARIS_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_UNICODE_1 COND_PLATFORM_WIN32_0 COND_MONOLITHIC_1 COND_SHARED_0_MONOLITHIC_0 COND_BUILD_DEBUG COND_DEPS_TYPE_GCC COND_PLATFORM_MAC_1 COND_SHARED_1 COND_SHARED_0 COND_DEPS_TRACKING_1 COND_DEPS_TRACKING_0 LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX SONAME_FLAGS SONAME_FLAGS_GL WX_TARGET_LIBRARY_SONAME WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY ESD_LINK LIBOBJS LTLIBOBJS'
e6cc62c6 315ac_subst_files=''
10f2d63a
VZ
316
317# Initialize some variables set by options.
e6cc62c6
VS
318ac_init_help=
319ac_init_version=false
10f2d63a
VZ
320# The variables have the same names as the options, with
321# dashes changed to underlines.
e6cc62c6 322cache_file=/dev/null
10f2d63a 323exec_prefix=NONE
10f2d63a 324no_create=
10f2d63a
VZ
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
10f2d63a
VZ
333verbose=
334x_includes=NONE
335x_libraries=NONE
e6cc62c6
VS
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
10f2d63a
VZ
355ac_prev=
356for ac_option
357do
10f2d63a
VZ
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
e6cc62c6 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
e6cc62c6 369 case $ac_option in
10f2d63a
VZ
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 374 bindir=$ac_optarg ;;
10f2d63a
VZ
375
376 -build | --build | --buil | --bui | --bu)
e6cc62c6 377 ac_prev=build_alias ;;
10f2d63a 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 379 build_alias=$ac_optarg ;;
10f2d63a
VZ
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
10f2d63a
VZ
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
e6cc62c6 395 datadir=$ac_optarg ;;
10f2d63a
VZ
396
397 -disable-* | --disable-*)
e6cc62c6 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 399 # Reject names that are not valid shell variable names.
e6cc62c6
VS
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
405
406 -enable-* | --enable-*)
e6cc62c6 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 408 # Reject names that are not valid shell variable names.
e6cc62c6
VS
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
415 *) ac_optarg=yes ;;
416 esac
e6cc62c6 417 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
e6cc62c6 426 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
e6cc62c6
VS
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
10f2d63a
VZ
438
439 -host | --host | --hos | --ho)
e6cc62c6 440 ac_prev=host_alias ;;
10f2d63a 441 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 442 host_alias=$ac_optarg ;;
10f2d63a
VZ
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 449 includedir=$ac_optarg ;;
10f2d63a
VZ
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 454 infodir=$ac_optarg ;;
10f2d63a
VZ
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 459 libdir=$ac_optarg ;;
10f2d63a
VZ
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 466 libexecdir=$ac_optarg ;;
10f2d63a
VZ
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 475 localstatedir=$ac_optarg ;;
10f2d63a
VZ
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 480 mandir=$ac_optarg ;;
10f2d63a
VZ
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 487 | --no-cr | --no-c | -n)
10f2d63a
VZ
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 501 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 506 prefix=$ac_optarg ;;
10f2d63a
VZ
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 513 program_prefix=$ac_optarg ;;
10f2d63a
VZ
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 520 program_suffix=$ac_optarg ;;
10f2d63a
VZ
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 537 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
e6cc62c6 547 sbindir=$ac_optarg ;;
10f2d63a
VZ
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
e6cc62c6 558 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
e6cc62c6 563 site=$ac_optarg ;;
10f2d63a
VZ
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 568 srcdir=$ac_optarg ;;
10f2d63a
VZ
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 575 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 578 ac_prev=target_alias ;;
10f2d63a 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 580 target_alias=$ac_optarg ;;
10f2d63a
VZ
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
e6cc62c6
VS
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
10f2d63a
VZ
587
588 -with-* | --with-*)
e6cc62c6 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 590 # Reject names that are not valid shell variable names.
e6cc62c6
VS
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
10f2d63a 594 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
597 *) ac_optarg=yes ;;
598 esac
e6cc62c6 599 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
600
601 -without-* | --without-*)
e6cc62c6 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 603 # Reject names that are not valid shell variable names.
e6cc62c6
VS
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
10f2d63a
VZ
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 619 x_includes=$ac_optarg ;;
10f2d63a
VZ
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 626 x_libraries=$ac_optarg ;;
10f2d63a 627
e6cc62c6
VS
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
10f2d63a
VZ
631 ;;
632
e6cc62c6
VS
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
10f2d63a 643 *)
e6cc62c6
VS
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
e6cc62c6
VS
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
a0b9e27f 658fi
a0b9e27f 659
e6cc62c6
VS
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
8284b0c5 670
e6cc62c6
VS
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 674do
e6cc62c6
VS
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
10f2d63a
VZ
680 esac
681done
682
e6cc62c6
VS
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
247f5006 700
e6cc62c6
VS
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
10f2d63a 705
10f2d63a
VZ
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
e6cc62c6
VS
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
10f2d63a
VZ
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
10f2d63a 734 else
e6cc62c6
VS
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
10f2d63a
VZ
737 fi
738fi
e6cc62c6
VS
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775ac_env_CXX_set=${CXX+set}
776ac_env_CXX_value=$CXX
777ac_cv_env_CXX_set=${CXX+set}
778ac_cv_env_CXX_value=$CXX
779ac_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_env_CXXFLAGS_value=$CXXFLAGS
781ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_cv_env_CXXFLAGS_value=$CXXFLAGS
783ac_env_CXXCPP_set=${CXXCPP+set}
784ac_env_CXXCPP_value=$CXXCPP
785ac_cv_env_CXXCPP_set=${CXXCPP+set}
786ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 787
e6cc62c6
VS
788#
789# Report the --help message.
790#
791if test "$ac_init_help" = "long"; then
792 # Omit some internal or obsolete options to make the list less imposing.
793 # This message is too long to be a string in the A/UX 3.1 sh.
794 cat <<_ACEOF
795\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 796
e6cc62c6 797Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 798
e6cc62c6
VS
799To assign environment variables (e.g., CC, CFLAGS...), specify them as
800VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 801
e6cc62c6
VS
802Defaults for the options are specified in brackets.
803
804Configuration:
805 -h, --help display this help and exit
806 --help=short display options specific to this package
807 --help=recursive display the short help of all the included packages
808 -V, --version display version information and exit
809 -q, --quiet, --silent do not print \`checking...' messages
810 --cache-file=FILE cache test results in FILE [disabled]
811 -C, --config-cache alias for \`--cache-file=config.cache'
812 -n, --no-create do not create output files
813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814
815_ACEOF
816
817 cat <<_ACEOF
818Installation directories:
819 --prefix=PREFIX install architecture-independent files in PREFIX
820 [$ac_default_prefix]
821 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 [PREFIX]
823
824By default, \`make install' will install all the files in
825\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
826an installation prefix other than \`$ac_default_prefix' using \`--prefix',
827for instance \`--prefix=\$HOME'.
828
829For better control, use the options below.
830
831Fine tuning of the installation directories:
832 --bindir=DIR user executables [EPREFIX/bin]
833 --sbindir=DIR system admin executables [EPREFIX/sbin]
834 --libexecdir=DIR program executables [EPREFIX/libexec]
835 --datadir=DIR read-only architecture-independent data [PREFIX/share]
836 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
837 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
838 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
839 --libdir=DIR object code libraries [EPREFIX/lib]
840 --includedir=DIR C header files [PREFIX/include]
841 --oldincludedir=DIR C header files for non-gcc [/usr/include]
842 --infodir=DIR info documentation [PREFIX/info]
843 --mandir=DIR man documentation [PREFIX/man]
844_ACEOF
845
846 cat <<\_ACEOF
847
848X features:
849 --x-includes=DIR X include files are in DIR
850 --x-libraries=DIR X library files are in DIR
851
852System types:
853 --build=BUILD configure for building on BUILD [guessed]
854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
855 --target=TARGET configure for building compilers for TARGET [HOST]
856_ACEOF
857fi
858
859if test -n "$ac_init_help"; then
860 case $ac_init_help in
861 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
862 esac
863 cat <<\_ACEOF
864
865Optional Features:
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-gui use GUI classes
9747f85d 869 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
870 --enable-universal use wxWindows GUI controls instead of native ones
871 --enable-nanox use NanoX
872 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
873 --enable-shared create shared library code
874 --enable-soname set the DT_SONAME field in ELF shared libraries
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
877 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
888 --enable-compat20 enable wxWindows 2.0 compatibility
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
899 --enable-ole use OLE classes
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
902 --enable-cmdline use wxCmdLineParser class
903 --enable-datetime use wxDateTime class
904 --enable-stopwatch use wxStopWatch class
905 --enable-dialupman use dialup network classes
906 --enable-apple_ieee use the Apple IEEE codec
907 --enable-timer use wxTimer class
908 --enable-wave use wxWave class
909 --enable-fraction use wxFraction class
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-longlong use wxLongLong class
913 --enable-geometry use geometry class
914 --enable-log use logging system
915 --enable-streams use wxStream etc classes
916 --enable-file use wxFile classes
917 --enable-ffile use wxFFile classes
918 --enable-textbuf use wxTextBuffer class
919 --enable-textfile use wxTextFile class
920 --enable-fontmap use font encodings conversion classes
921 --enable-unicode compile wxString with Unicode support
922 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
923 --enable-wxprintfv use wxWindows implementation of vprintf()
924 --enable-std_iostreams use standard C++ stream classes
925 --enable-filesystem use virtual file systems classes
926 --enable-fs_inet use virtual HTTP/FTP filesystems
927 --enable-fs_zip use virtual ZIP filesystems
928 --enable-zipstream use wxZipInputStream
929 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
930 --enable-snglinst use wxSingleInstanceChecker class
931 --enable-mimetype use wxMimeTypesManager
932 --enable-sysoptions use wxSystemOptions
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
970 --enable-listbox use wxListBox class
971 --enable-listctrl use wxListCtrl class
972 --enable-notebook use wxNotebook class
973 --enable-radiobox use wxRadioBox class
974 --enable-radiobtn use wxRadioButton class
975 --enable-sash use wxSashWindow class
976 --enable-scrollbar use wxScrollBar class and scrollable windows
977 --enable-slider use wxSlider class
978 --enable-spinbtn use wxSpinButton class
979 --enable-spinctrl use wxSpinCtrl class
980 --enable-splitter use wxSplitterWindow class
981 --enable-statbmp use wxStaticBitmap class
982 --enable-statbox use wxStaticBox class
983 --enable-statline use wxStaticLine class
984 --enable-stattext use wxStaticText class
985 --enable-statusbar use wxStatusBar class
986 --enable-tabdialog use wxTabControl class
987 --enable-textctrl use wxTextCtrl class
988 --enable-togglebtn use wxToggleButton class
989 --enable-toolbar use wxToolBar class
990 --enable-tbarnative use native wxToolBar class
991 --enable-tbarsmpl use wxToolBarSimple class
992 --enable-treectrl use wxTreeCtrl class
993 --enable-tipwindow use wxTipWindow class
994 --enable-popupwin use wxPopUpWindow class
995 --enable-commondlg use all common dialogs
996 --enable-choicedlg use wxChoiceDialog
997 --enable-coldlg use wxColourDialog
998 --enable-filedlg use wxFileDialog
999 --enable-finddlg use wxFindReplaceDialog
1000 --enable-fontdlg use wxFontDialog
1001 --enable-dirdlg use wxDirDialog
1002 --enable-msgdlg use wxMessageDialog
1003 --enable-numberdlg use wxNumberEntryDialog
1004 --enable-splash use wxSplashScreen
1005 --enable-textdlg use wxTextDialog
1006 --enable-tipdlg use startup tips
1007 --enable-progressdlg use wxProgressDialog
1008 --enable-wizarddlg use wxWizard
1009 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1010 --enable-miniframe use wxMiniFrame class
1011 --enable-tooltips use wxToolTip class
1012 --enable-splines use spline drawing code
1013 --enable-validators use wxValidator and derived classes
1014 --enable-busyinfo use wxBusyInfo
1015 --enable-joystick use wxJoystick (Linux only)
1016 --enable-metafiles use wxMetaFile (Windows only)
1017 --enable-dragimage use wxDragImage
1018 --enable-accessibility enable accessibility support
1019 --enable-palette use wxPalette class
1020 --enable-image use wxImage class
1021 --enable-gif use gif images (GIF file format)
1022 --enable-pcx use pcx images (PCX file format)
1023 --enable-iff use iff images (IFF file format)
1024 --enable-pnm use pnm images (PNM file format)
1025 --enable-xpm use xpm images (XPM file format)
1026 --enable-icocur use Windows ICO and CUR formats
1027 --disable-largefile omit support for large files
1028 --disable-gtktest do not try to compile and run a test GTK+ program
1029 --disable-gtktest Do not try to compile and run a test GTK program
1030
1031Optional Packages:
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1034 --with-gtk use GTK+
1035 --with-motif use Motif/Lesstif
1036 --with-mac use Mac OS X
1037 --with-cocoa use Cocoa
1038 --with-wine use Wine
1039 --with-msw use MS-Windows
1040 --with-pm use OS/2 Presentation Manager
1041 --with-mgl use SciTech MGL
1042 --with-microwin use MicroWindows
1043 --with-x11 use X11
1044 --with-libpng use libpng (PNG image format)
1045 --with-libjpeg use libjpeg (JPEG file format)
1046 --with-libtiff use libtiff (TIFF file format)
1047 --with-opengl use OpenGL (or Mesa)
1048 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1049 --with-regex enable support for wxRegEx class
1050 --with-zlib use zlib for LZW compression
1051 --with-odbc use the IODBC and wxODBC classes
1052 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1053 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1054 --with-x use the X Window System
1055 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1056
1057Some influential environment variables:
1058 CC C compiler command
1059 CFLAGS C compiler flags
1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
1064 CPP C preprocessor
1065 CXX C++ compiler command
1066 CXXFLAGS C++ compiler flags
1067 CXXCPP C++ preprocessor
1068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <wx-dev@lists.wxwindows.org>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107# absolute.
1108ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1109ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1110ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130fi
8284b0c5 1131
e6cc62c6
VS
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135wxWindows configure 2.5.0
1136generated by GNU Autoconf 2.57
10f2d63a 1137
e6cc62c6
VS
1138Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
7c66a493 1144fi
e6cc62c6
VS
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
1149
1150It was created by wxWindows $as_me 2.5.0, which was
1151generated by GNU Autoconf 2.57. Invocation command line was
1152
1153 $ $0 $@
1154
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
1188
1189} >&5
1190
1191cat >&5 <<_ACEOF
1192
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core core.* *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1431 fi;;
1432 esac
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1435 case $ac_new_val in
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1439 esac
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 esac
1444 fi
1445done
1446if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1452fi
1453
1454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
698dcdb6 1476
8284b0c5 1477
7c66a493 1478
a0b9e27f
MB
1479
1480
a0b9e27f 1481
a0b9e27f 1482
a0b9e27f 1483
a0b9e27f 1484
a0b9e27f 1485
a0b9e27f 1486
e6cc62c6
VS
1487
1488
1489ac_aux_dir=
1490for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1491 if test -f $ac_dir/install-sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install-sh -c"
1494 break
1495 elif test -f $ac_dir/install.sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install.sh -c"
1498 break
1499 elif test -f $ac_dir/shtool; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 break
1503 fi
1504done
1505if test -z "$ac_aux_dir"; then
1506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1507echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1511ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1512ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513
1514# Make sure we can run config.sub.
1515$ac_config_sub sun4 >/dev/null 2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520echo "$as_me:$LINENO: checking build system type" >&5
1521echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 ac_cv_build_alias=$build_alias
1526test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias=`$ac_config_guess`
1528test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1536
1537fi
1538echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539echo "${ECHO_T}$ac_cv_build" >&6
1540build=$ac_cv_build
1541build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546echo "$as_me:$LINENO: checking host system type" >&5
1547echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551 ac_cv_host_alias=$host_alias
1552test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias=$ac_cv_build_alias
1554ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1558
1559fi
1560echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561echo "${ECHO_T}$ac_cv_host" >&6
1562host=$ac_cv_host
1563host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
1567
1568echo "$as_me:$LINENO: checking target system type" >&5
1569echo $ECHO_N "checking target system type... $ECHO_C" >&6
1570if test "${ac_cv_target+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573 ac_cv_target_alias=$target_alias
1574test "x$ac_cv_target_alias" = "x" &&
1575 ac_cv_target_alias=$ac_cv_host_alias
1576ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1578echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581fi
1582echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1583echo "${ECHO_T}$ac_cv_target" >&6
1584target=$ac_cv_target
1585target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590# The aliases save the names the user supplied, while $host etc.
1591# will get canonicalized.
1592test -n "$target_alias" &&
7c66a493
VZ
1593 test "$program_prefix$program_suffix$program_transform_name" = \
1594 NONENONEs,x,x, &&
1595 program_prefix=${target_alias}-
8284b0c5
MB
1596
1597
a0b9e27f 1598
10f2d63a 1599WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1600WX_MINOR_VERSION_NUMBER=5
1601WX_RELEASE_NUMBER=0
10f2d63a 1602
10f2d63a 1603WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1604WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1605
978f1259
RL
1606WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1607
34bed6d9 1608WX_CURRENT=0
6426998c
RL
1609WX_REVISION=0
1610WX_AGE=0
1611
8284b0c5
MB
1612
1613
10f2d63a
VZ
1614USE_UNIX=1
1615USE_WIN32=0
f9bc1684 1616USE_DOS=0
b12915c1 1617USE_BEOS=0
1216f52d 1618USE_MAC=0
b12915c1 1619
10f2d63a 1620USE_AIX=
fe0895cf
VS
1621USE_BSD= USE_DARWIN= USE_FREEBSD=
1622USE_GNU= USE_HPUX=
89e3b3e4 1623USE_LINUX=
f6bcfd97 1624USE_NETBSD=
89e3b3e4 1625USE_OPENBSD=
fe0895cf
VS
1626USE_OSF= USE_SGI=
1627USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1628USE_ULTRIX=
89e3b3e4
VZ
1629USE_UNIXWARE=
1630
1631USE_ALPHA=
10f2d63a 1632
ab9b9eab
VZ
1633NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1634
ac0c4cc3 1635ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1636
ac0c4cc3 1637DEFAULT_wxUSE_COCOA=0
10f2d63a 1638DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1639DEFAULT_wxUSE_MAC=0
1640DEFAULT_wxUSE_MGL=0
1725144d 1641DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1642DEFAULT_wxUSE_MOTIF=0
1643DEFAULT_wxUSE_MSW=0
e07802fc 1644DEFAULT_wxUSE_PM=0
f79bd02d 1645DEFAULT_wxUSE_X11=0
10f2d63a 1646
ac0c4cc3 1647DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1648DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1649DEFAULT_DEFAULT_wxUSE_MAC=0
1650DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1651DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1652DEFAULT_DEFAULT_wxUSE_MOTIF=0
1653DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1654DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1655DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1656
d6a55c4b 1657PROGRAM_EXT=
3a922bb4 1658SO_SUFFIX=so
fe0895cf 1659SAMPLES_RPATH_FLAG=
d6a55c4b 1660
10f2d63a
VZ
1661case "${host}" in
1662 *-hp-hpux* )
1663 USE_HPUX=1
1664 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1665 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1666 SO_SUFFIX=sl
e6cc62c6 1667 cat >>confdefs.h <<\_ACEOF
10f2d63a 1668#define __HPUX__ 1
e6cc62c6 1669_ACEOF
10f2d63a
VZ
1670
1671 ;;
1672 *-*-linux* )
1673 USE_LINUX=1
e6cc62c6 1674 cat >>confdefs.h <<\_ACEOF
10f2d63a 1675#define __LINUX__ 1
e6cc62c6 1676_ACEOF
10f2d63a
VZ
1677
1678 TMP=`uname -m`
1679 if test "x$TMP" = "xalpha"; then
1680 USE_ALPHA=1
e6cc62c6 1681 cat >>confdefs.h <<\_ACEOF
10f2d63a 1682#define __ALPHA__ 1
e6cc62c6 1683_ACEOF
fe0895cf
VS
1684
1685 fi
1686 DEFAULT_DEFAULT_wxUSE_GTK=1
1687 ;;
1688 *-*-gnu* )
1689 USE_GNU=1
e6cc62c6 1690 cat >>confdefs.h <<\_ACEOF
fe0895cf 1691#define __GNU__ 1
e6cc62c6 1692_ACEOF
fe0895cf
VS
1693
1694 TMP=`uname -m`
1695 if test "x$TMP" = "xalpha"; then
1696 USE_ALPHA=1
e6cc62c6 1697 cat >>confdefs.h <<\_ACEOF
fe0895cf 1698#define __ALPHA__ 1
e6cc62c6 1699_ACEOF
10f2d63a
VZ
1700
1701 fi
1702 DEFAULT_DEFAULT_wxUSE_GTK=1
1703 ;;
1704 *-*-irix5* | *-*-irix6* )
1705 USE_SGI=1
1706 USE_SVR4=1
e6cc62c6 1707 cat >>confdefs.h <<\_ACEOF
10f2d63a 1708#define __SGI__ 1
e6cc62c6 1709_ACEOF
10f2d63a 1710
e6cc62c6 1711 cat >>confdefs.h <<\_ACEOF
10f2d63a 1712#define __SVR4__ 1
e6cc62c6 1713_ACEOF
10f2d63a
VZ
1714
1715 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1716 ;;
1717 *-*-solaris2* )
1718 USE_SUN=1
1719 USE_SOLARIS=1
1720 USE_SVR4=1
e6cc62c6 1721 cat >>confdefs.h <<\_ACEOF
10f2d63a 1722#define __SUN__ 1
e6cc62c6 1723_ACEOF
10f2d63a 1724
e6cc62c6 1725 cat >>confdefs.h <<\_ACEOF
10f2d63a 1726#define __SOLARIS__ 1
e6cc62c6 1727_ACEOF
10f2d63a 1728
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
10f2d63a 1730#define __SVR4__ 1
e6cc62c6 1731_ACEOF
10f2d63a
VZ
1732
1733 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1734 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1735 ;;
1736 *-*-sunos4* )
1737 USE_SUN=1
1738 USE_SUNOS=1
1739 USE_BSD=1
e6cc62c6 1740 cat >>confdefs.h <<\_ACEOF
10f2d63a 1741#define __SUN__ 1
e6cc62c6 1742_ACEOF
10f2d63a 1743
e6cc62c6 1744 cat >>confdefs.h <<\_ACEOF
10f2d63a 1745#define __SUNOS__ 1
e6cc62c6 1746_ACEOF
10f2d63a 1747
e6cc62c6 1748 cat >>confdefs.h <<\_ACEOF
10f2d63a 1749#define __BSD__ 1
e6cc62c6 1750_ACEOF
10f2d63a
VZ
1751
1752 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1753 ;;
f6bcfd97 1754 *-*-freebsd*)
10f2d63a
VZ
1755 USE_BSD=1
1756 USE_FREEBSD=1
e6cc62c6 1757 cat >>confdefs.h <<\_ACEOF
10f2d63a 1758#define __FREEBSD__ 1
e6cc62c6 1759_ACEOF
10f2d63a 1760
e6cc62c6 1761 cat >>confdefs.h <<\_ACEOF
10f2d63a 1762#define __BSD__ 1
e6cc62c6 1763_ACEOF
95c8801c
VS
1764
1765 DEFAULT_DEFAULT_wxUSE_GTK=1
1766 ;;
1767 *-*-openbsd*)
1768 USE_BSD=1
1769 USE_OPENBSD=1
e6cc62c6 1770 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1771#define __OPENBSD__ 1
e6cc62c6 1772_ACEOF
95c8801c 1773
e6cc62c6 1774 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1775#define __BSD__ 1
e6cc62c6 1776_ACEOF
f6bcfd97
BP
1777
1778 DEFAULT_DEFAULT_wxUSE_GTK=1
1779 ;;
1780 *-*-netbsd*)
1781 USE_BSD=1
1782 USE_NETBSD=1
e6cc62c6 1783 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1784#define __NETBSD__ 1
e6cc62c6 1785_ACEOF
f6bcfd97 1786
e6cc62c6 1787 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1788#define __BSD__ 1
e6cc62c6 1789_ACEOF
10f2d63a
VZ
1790
1791 DEFAULT_DEFAULT_wxUSE_GTK=1
1792 ;;
1793 *-*-osf* )
1794 USE_ALPHA=1
1795 USE_OSF=1
e6cc62c6 1796 cat >>confdefs.h <<\_ACEOF
10f2d63a 1797#define __ALPHA__ 1
e6cc62c6 1798_ACEOF
10f2d63a 1799
e6cc62c6 1800 cat >>confdefs.h <<\_ACEOF
10f2d63a 1801#define __OSF__ 1
e6cc62c6 1802_ACEOF
10f2d63a
VZ
1803
1804 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1805 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1806 ;;
1807 *-*-dgux5* )
1808 USE_ALPHA=1
1809 USE_SVR4=1
e6cc62c6 1810 cat >>confdefs.h <<\_ACEOF
10f2d63a 1811#define __ALPHA__ 1
e6cc62c6 1812_ACEOF
10f2d63a 1813
e6cc62c6 1814 cat >>confdefs.h <<\_ACEOF
10f2d63a 1815#define __SVR4__ 1
e6cc62c6 1816_ACEOF
10f2d63a
VZ
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 ;;
1820 *-*-sysv5* )
1821 USE_SYSV=1
1822 USE_SVR4=1
e6cc62c6 1823 cat >>confdefs.h <<\_ACEOF
10f2d63a 1824#define __SYSV__ 1
e6cc62c6 1825_ACEOF
10f2d63a 1826
e6cc62c6 1827 cat >>confdefs.h <<\_ACEOF
10f2d63a 1828#define __SVR4__ 1
e6cc62c6 1829_ACEOF
10f2d63a
VZ
1830
1831 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1832 ;;
1833 *-*-aix* )
1834 USE_AIX=1
1835 USE_SYSV=1
1836 USE_SVR4=1
2b5f62a0 1837 SO_SUFFIX=a
e6cc62c6 1838 cat >>confdefs.h <<\_ACEOF
10f2d63a 1839#define __AIX__ 1
e6cc62c6 1840_ACEOF
10f2d63a 1841
e6cc62c6 1842 cat >>confdefs.h <<\_ACEOF
10f2d63a 1843#define __SYSV__ 1
e6cc62c6 1844_ACEOF
10f2d63a 1845
e6cc62c6 1846 cat >>confdefs.h <<\_ACEOF
10f2d63a 1847#define __SVR4__ 1
e6cc62c6 1848_ACEOF
10f2d63a
VZ
1849
1850 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1851 ;;
1852
89e3b3e4
VZ
1853 *-*-*UnixWare*)
1854 USE_SYSV=1
1855 USE_SVR4=1
1856 USE_UNIXWARE=1
e6cc62c6 1857 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1858#define __UNIXWARE__ 1
e6cc62c6 1859_ACEOF
89e3b3e4
VZ
1860
1861 ;;
1862
1c8183e2 1863 *-*-cygwin* | *-*-mingw32* )
17234b26 1864 SO_SUFFIX=dll
cf27ef00 1865 PROGRAM_EXT=".exe"
7b7a7637 1866 RESCOMP=windres
10f2d63a
VZ
1867 DEFAULT_DEFAULT_wxUSE_MSW=1
1868 ;;
1869
f9bc1684
VS
1870 *-pc-msdosdjgpp )
1871 USE_UNIX=0
1872 USE_DOS=1
e6cc62c6 1873 cat >>confdefs.h <<\_ACEOF
f9bc1684 1874#define __DOS__ 1
e6cc62c6 1875_ACEOF
f9bc1684
VS
1876
1877 PROGRAM_EXT=".exe"
1878 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1879 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1880 ;;
1881
6fa882bd 1882 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1883 cat >>confdefs.h <<\_ACEOF
10f2d63a 1884#define __EMX__ 1
e6cc62c6 1885_ACEOF
10f2d63a 1886
cf27ef00 1887 PROGRAM_EXT=".exe"
e07802fc 1888 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1889 ;;
1890
d08b457b
GD
1891 powerpc-*-darwin* )
1892 USE_BSD=1
f11bdd03 1893 USE_DARWIN=1
3a922bb4 1894 SO_SUFFIX=dylib
e6cc62c6 1895 cat >>confdefs.h <<\_ACEOF
f11bdd03 1896#define __BSD__ 1
e6cc62c6 1897_ACEOF
b4085ce6 1898
e6cc62c6 1899 cat >>confdefs.h <<\_ACEOF
f11bdd03 1900#define __DARWIN__ 1
e6cc62c6 1901_ACEOF
d08b457b 1902
e6cc62c6 1903 cat >>confdefs.h <<\_ACEOF
d08b457b 1904#define __POWERPC__ 1
e6cc62c6 1905_ACEOF
82d43113 1906
e6cc62c6 1907 cat >>confdefs.h <<\_ACEOF
82d43113 1908#define TARGET_CARBON 1
e6cc62c6 1909_ACEOF
b4085ce6
GD
1910
1911 DEFAULT_DEFAULT_wxUSE_MAC=1
1912 ;;
1913
b12915c1
VZ
1914 *-*-beos* )
1915 USE_BEOS=1
e6cc62c6 1916 cat >>confdefs.h <<\_ACEOF
b12915c1 1917#define __BEOS__ 1
e6cc62c6 1918_ACEOF
b12915c1
VZ
1919
1920 ;;
1921
10f2d63a 1922 *)
e6cc62c6
VS
1923 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1924echo "$as_me: error: unknown system type ${host}." >&2;}
1925 { (exit 1); exit 1; }; }
10f2d63a
VZ
1926esac
1927
8284b0c5
MB
1928
1929
1930
1931 wx_arg_cache_file="configarg.cache"
1932 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1933 rm -f ${wx_arg_cache_file}.tmp
1934 touch ${wx_arg_cache_file}.tmp
1935 touch ${wx_arg_cache_file}
e6cc62c6 1936
10f2d63a
VZ
1937
1938DEBUG_CONFIGURE=0
1939if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1940 DEFAULT_wxUSE_UNIVERSAL=no
1941
d8356fa3
VZ
1942 DEFAULT_wxUSE_NANOX=no
1943
10f2d63a
VZ
1944 DEFAULT_wxUSE_THREADS=yes
1945
1946 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1947 DEFAULT_wxUSE_SONAME=no
1e6feb95 1948 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1949 DEFAULT_wxUSE_PROFILE=no
1950 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1951 DEFAULT_wxUSE_NO_RTTI=no
1952 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1953 DEFAULT_wxUSE_PERMISSIVE=no
1954 DEFAULT_wxUSE_DEBUG_FLAG=yes
1955 DEFAULT_wxUSE_DEBUG_INFO=yes
1956 DEFAULT_wxUSE_DEBUG_GDB=yes
1957 DEFAULT_wxUSE_MEM_TRACING=no
1958 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1959 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1960 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1961 DEFAULT_wxUSE_APPLE_IEEE=no
1962
1963 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1964 DEFAULT_wxUSE_LOGWINDOW=no
1965 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1966 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1967
1968 DEFAULT_wxUSE_GUI=yes
1e6feb95 1969 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1970
3e44f09d 1971 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1972 DEFAULT_wxUSE_ZLIB=no
1973 DEFAULT_wxUSE_LIBPNG=no
1974 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1975 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1976 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1977 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1978
eb4efbdc 1979 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1980 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1981 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1982 DEFAULT_wxUSE_CMDLINE_PARSER=no
1983 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1984 DEFAULT_wxUSE_TIMER=no
1985 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1986 DEFAULT_wxUSE_FILE=no
1e6feb95 1987 DEFAULT_wxUSE_FFILE=no
a3a584a7 1988 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1989 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1990 DEFAULT_wxUSE_WAVE=no
1991 DEFAULT_wxUSE_INTL=no
1992 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1993 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1994 DEFAULT_wxUSE_STREAMS=no
1995 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1996 DEFAULT_wxUSE_OLE=no
1997 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1998 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1999 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2000 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2001 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2002 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2003 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2004
2005 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2006 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2007 DEFAULT_wxUSE_POSTSCRIPT=no
2008
10f2d63a
VZ
2009 DEFAULT_wxUSE_CLIPBOARD=no
2010 DEFAULT_wxUSE_TOOLTIPS=no
2011 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2012 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2013 DEFAULT_wxUSE_SPLINES=no
2014
2015 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2016 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2017 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2018
10f2d63a
VZ
2019 DEFAULT_wxUSE_RESOURCES=no
2020 DEFAULT_wxUSE_CONSTRAINTS=no
2021 DEFAULT_wxUSE_IPC=no
2022 DEFAULT_wxUSE_HELP=no
29fd3c0c 2023 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2024 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2025 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2026 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2027 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2028 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2029 DEFAULT_wxUSE_PROTOCOL=no
2030 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2031 DEFAULT_wxUSE_PROTOCOL_FTP=no
2032 DEFAULT_wxUSE_PROTOCOL_FILE=no
2033 DEFAULT_wxUSE_URL=no
3bd8fb5f 2034
10f2d63a 2035 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2036 DEFAULT_wxUSE_CHOICEDLG=no
2037 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2038 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2039 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2040 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2041 DEFAULT_wxUSE_FONTDLG=no
2042 DEFAULT_wxUSE_MSGDLG=no
2043 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2044 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2045 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2046 DEFAULT_wxUSE_STARTUP_TIPS=no
2047 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2048 DEFAULT_wxUSE_WIZARDDLG=no
2049
1e6feb95 2050 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2051 DEFAULT_wxUSE_MINIFRAME=no
2052 DEFAULT_wxUSE_HTML=no
24528b0c 2053 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_FS_INET=no
2055 DEFAULT_wxUSE_FS_ZIP=no
2056 DEFAULT_wxUSE_BUSYINFO=no
2057 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2058 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2059
2060 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2061 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2062 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2063 DEFAULT_wxUSE_CALCTRL=no
2064 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2065 DEFAULT_wxUSE_CHECKBOX=no
2066 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2067 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2068 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2069 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2070 DEFAULT_wxUSE_GAUGE=no
2071 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2072 DEFAULT_wxUSE_IMAGLIST=no
2073 DEFAULT_wxUSE_LISTBOX=no
2074 DEFAULT_wxUSE_LISTCTRL=no
2075 DEFAULT_wxUSE_NOTEBOOK=no
2076 DEFAULT_wxUSE_RADIOBOX=no
2077 DEFAULT_wxUSE_RADIOBTN=no
2078 DEFAULT_wxUSE_SASH=no
2079 DEFAULT_wxUSE_SCROLLBAR=no
2080 DEFAULT_wxUSE_SLIDER=no
2081 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2082 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2083 DEFAULT_wxUSE_SPLITTER=no
2084 DEFAULT_wxUSE_STATBMP=no
2085 DEFAULT_wxUSE_STATBOX=no
2086 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2087 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2088 DEFAULT_wxUSE_STATUSBAR=yes
2089 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2090 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2091 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2092 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2093 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2094 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2095 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2096 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2097 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2098
2099 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2100 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2101 DEFAULT_wxUSE_WCSRTOMBS=no
2102
edae8572 2103 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2104 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2105 DEFAULT_wxUSE_GIF=no
2106 DEFAULT_wxUSE_PCX=no
2107 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2108 DEFAULT_wxUSE_IFF=no
0046ff7c 2109 DEFAULT_wxUSE_XPM=no
658974ae 2110 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2111 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2112
2113 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a 2114else
1e6feb95
VZ
2115 DEFAULT_wxUSE_UNIVERSAL=no
2116
d8356fa3
VZ
2117 DEFAULT_wxUSE_NANOX=no
2118
10f2d63a
VZ
2119 DEFAULT_wxUSE_THREADS=yes
2120
2121 DEFAULT_wxUSE_SHARED=yes
3a922bb4 2122 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
2123 DEFAULT_wxUSE_OPTIMISE=yes
2124 DEFAULT_wxUSE_PROFILE=no
2125 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2126 DEFAULT_wxUSE_NO_RTTI=no
2127 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2128 DEFAULT_wxUSE_PERMISSIVE=no
2129 DEFAULT_wxUSE_DEBUG_FLAG=no
2130 DEFAULT_wxUSE_DEBUG_INFO=no
2131 DEFAULT_wxUSE_DEBUG_GDB=no
2132 DEFAULT_wxUSE_MEM_TRACING=no
2133 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2134 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 2135 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
2136 DEFAULT_wxUSE_APPLE_IEEE=yes
2137
2138 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2139 DEFAULT_wxUSE_LOGWINDOW=yes
2140 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2141 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2142
2143 DEFAULT_wxUSE_GUI=yes
2144
831b3152 2145 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
2146 DEFAULT_wxUSE_ZLIB=yes
2147 DEFAULT_wxUSE_LIBPNG=yes
2148 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2149 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2150 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2151 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2152
eb4efbdc 2153 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2154 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2155 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2156 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2157 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2158 DEFAULT_wxUSE_TIMER=yes
2159 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2160 DEFAULT_wxUSE_FILE=yes
1e6feb95 2161 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2162 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2163 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2164 DEFAULT_wxUSE_WAVE=no
2165 DEFAULT_wxUSE_INTL=yes
2166 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2167 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2168 DEFAULT_wxUSE_STREAMS=yes
2169 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2170 DEFAULT_wxUSE_OLE=yes
2171 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2172 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2173 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2174 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2175 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2176 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2177 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2178
2179 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2180 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2181 DEFAULT_wxUSE_POSTSCRIPT=yes
2182
10f2d63a
VZ
2183 DEFAULT_wxUSE_CLIPBOARD=yes
2184 DEFAULT_wxUSE_TOOLTIPS=yes
2185 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2186 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2187 DEFAULT_wxUSE_SPLINES=yes
2188
2189 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2190 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2191 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2192
2b5f62a0 2193 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2194 DEFAULT_wxUSE_CONSTRAINTS=yes
2195 DEFAULT_wxUSE_IPC=yes
2196 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2197 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2198 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2199 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2200 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2201 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2202 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2203 DEFAULT_wxUSE_PROTOCOL=yes
2204 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2205 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2206 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2207 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2208
2209 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2210 DEFAULT_wxUSE_CHOICEDLG=yes
2211 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2212 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2213 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2214 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2215 DEFAULT_wxUSE_FONTDLG=yes
2216 DEFAULT_wxUSE_MSGDLG=yes
2217 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2218 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2219 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2220 DEFAULT_wxUSE_STARTUP_TIPS=yes
2221 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2222 DEFAULT_wxUSE_WIZARDDLG=yes
2223
1e6feb95 2224 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2225 DEFAULT_wxUSE_MINIFRAME=yes
2226 DEFAULT_wxUSE_HTML=yes
24528b0c 2227 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2228 DEFAULT_wxUSE_FS_INET=yes
2229 DEFAULT_wxUSE_FS_ZIP=yes
2230 DEFAULT_wxUSE_BUSYINFO=yes
2231 DEFAULT_wxUSE_ZIPSTREAM=yes
2232 DEFAULT_wxUSE_VALIDATORS=yes
2233
2234 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2235 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2236 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2237 DEFAULT_wxUSE_CALCTRL=yes
2238 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2239 DEFAULT_wxUSE_CHECKBOX=yes
2240 DEFAULT_wxUSE_CHECKLST=yes
2241 DEFAULT_wxUSE_CHOICE=yes
2242 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2243 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2244 DEFAULT_wxUSE_GAUGE=yes
2245 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2246 DEFAULT_wxUSE_IMAGLIST=yes
2247 DEFAULT_wxUSE_LISTBOX=yes
2248 DEFAULT_wxUSE_LISTCTRL=yes
2249 DEFAULT_wxUSE_NOTEBOOK=yes
2250 DEFAULT_wxUSE_RADIOBOX=yes
2251 DEFAULT_wxUSE_RADIOBTN=yes
2252 DEFAULT_wxUSE_SASH=yes
2253 DEFAULT_wxUSE_SCROLLBAR=yes
2254 DEFAULT_wxUSE_SLIDER=yes
2255 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2256 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2257 DEFAULT_wxUSE_SPLITTER=yes
2258 DEFAULT_wxUSE_STATBMP=yes
2259 DEFAULT_wxUSE_STATBOX=yes
2260 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2261 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2262 DEFAULT_wxUSE_STATUSBAR=yes
2263 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2264 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2265 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2266 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2267 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2268 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2269 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2270 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2271 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2272
2273 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2274 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2275 DEFAULT_wxUSE_WCSRTOMBS=no
2276
edae8572 2277 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2278 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2279 DEFAULT_wxUSE_GIF=yes
2280 DEFAULT_wxUSE_PCX=yes
cc0e8480 2281 DEFAULT_wxUSE_IFF=no
10f2d63a 2282 DEFAULT_wxUSE_PNM=yes
0046ff7c 2283 DEFAULT_wxUSE_XPM=yes
658974ae 2284 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2285 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2286
2287 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a
VZ
2288fi
2289
8284b0c5
MB
2290
2291
10f2d63a 2292for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2293 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2294 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2295 has_toolkit_in_cache=1
2296 eval "DEFAULT_$LINE"
2297 eval "CACHE_$toolkit=1"
2298 fi
2299done
2300
8284b0c5
MB
2301
2302
5005acfe 2303 enablestring=
e6cc62c6
VS
2304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2305echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2306 no_cache=0
2307 # Check whether --enable-gui or --disable-gui was given.
2308if test "${enable_gui+set}" = set; then
2309 enableval="$enable_gui"
e6cc62c6 2310
10f2d63a
VZ
2311 if test "$enableval" = yes; then
2312 ac_cv_use_gui='wxUSE_GUI=yes'
2313 else
2314 ac_cv_use_gui='wxUSE_GUI=no'
2315 fi
e6cc62c6 2316
10f2d63a 2317else
e6cc62c6 2318
10f2d63a
VZ
2319 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2320 if test "x$LINE" != x ; then
2321 eval "DEFAULT_$LINE"
2322 else
2323 no_cache=1
2324 fi
2325
2326 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2327
e6cc62c6 2328fi;
10f2d63a
VZ
2329
2330 eval "$ac_cv_use_gui"
2331 if test "$no_cache" != 1; then
2332 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2333 fi
2334
2335 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2336 echo "$as_me:$LINENO: result: yes" >&5
2337echo "${ECHO_T}yes" >&6
10f2d63a 2338 else
e6cc62c6
VS
2339 echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6
10f2d63a 2341 fi
e6cc62c6 2342
10f2d63a 2343
9747f85d
VS
2344 enablestring=
2345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2346echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2347 no_cache=0
2348 # Check whether --enable-monolithic or --disable-monolithic was given.
2349if test "${enable_monolithic+set}" = set; then
2350 enableval="$enable_monolithic"
2351
2352 if test "$enableval" = yes; then
2353 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2354 else
2355 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2356 fi
2357
2358else
2359
2360 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2361 if test "x$LINE" != x ; then
2362 eval "DEFAULT_$LINE"
2363 else
2364 no_cache=1
2365 fi
2366
2367 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2368
2369fi;
2370
2371 eval "$ac_cv_use_monolithic"
2372 if test "$no_cache" != 1; then
2373 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2374 fi
2375
2376 if test "$wxUSE_MONOLITHIC" = yes; then
2377 echo "$as_me:$LINENO: result: yes" >&5
2378echo "${ECHO_T}yes" >&6
2379 else
2380 echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6
2382 fi
2383
2384
b12915c1 2385if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2386
8284b0c5 2387
5005acfe 2388 enablestring=
e6cc62c6
VS
2389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2390echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2391 no_cache=0
2392 # Check whether --enable-universal or --disable-universal was given.
2393if test "${enable_universal+set}" = set; then
2394 enableval="$enable_universal"
e6cc62c6 2395
1e6feb95
VZ
2396 if test "$enableval" = yes; then
2397 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2398 else
2399 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2400 fi
e6cc62c6 2401
1e6feb95 2402else
e6cc62c6 2403
1e6feb95
VZ
2404 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2405 if test "x$LINE" != x ; then
2406 eval "DEFAULT_$LINE"
2407 else
2408 no_cache=1
2409 fi
2410
2411 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2412
e6cc62c6 2413fi;
1e6feb95
VZ
2414
2415 eval "$ac_cv_use_universal"
2416 if test "$no_cache" != 1; then
2417 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2418 fi
2419
2420 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2421 echo "$as_me:$LINENO: result: yes" >&5
2422echo "${ECHO_T}yes" >&6
1e6feb95 2423 else
e6cc62c6
VS
2424 echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6
1e6feb95 2426 fi
e6cc62c6
VS
2427
2428
10f2d63a
VZ
2429# Check whether --with-gtk or --without-gtk was given.
2430if test "${with_gtk+set}" = set; then
2431 withval="$with_gtk"
2432 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2433fi;
10f2d63a
VZ
2434
2435# Check whether --with-motif or --without-motif was given.
2436if test "${with_motif+set}" = set; then
2437 withval="$with_motif"
2438 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2439fi;
10f2d63a 2440
b4085ce6
GD
2441# Check whether --with-mac or --without-mac was given.
2442if test "${with_mac+set}" = set; then
2443 withval="$with_mac"
2444 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2445fi;
b4085ce6 2446
ac0c4cc3
DE
2447# Check whether --with-cocoa or --without-cocoa was given.
2448if test "${with_cocoa+set}" = set; then
2449 withval="$with_cocoa"
2450 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2451fi;
ac0c4cc3 2452
10f2d63a
VZ
2453# Check whether --with-wine or --without-wine was given.
2454if test "${with_wine+set}" = set; then
2455 withval="$with_wine"
89e6bf6d 2456 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2457fi;
10f2d63a 2458
77e13408
RL
2459# Check whether --with-msw or --without-msw was given.
2460if test "${with_msw+set}" = set; then
2461 withval="$with_msw"
b4efce5e 2462 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2463fi;
10f2d63a 2464
e07802fc
VZ
2465# Check whether --with-pm or --without-pm was given.
2466if test "${with_pm+set}" = set; then
2467 withval="$with_pm"
2468 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2469fi;
698dcdb6 2470
1e6feb95
VZ
2471# Check whether --with-mgl or --without-mgl was given.
2472if test "${with_mgl+set}" = set; then
2473 withval="$with_mgl"
6c657b52 2474 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2475fi;
1e6feb95 2476
1725144d
RR
2477# Check whether --with-microwin or --without-microwin was given.
2478if test "${with_microwin+set}" = set; then
2479 withval="$with_microwin"
2480 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2481fi;
1725144d 2482
f79bd02d
JS
2483# Check whether --with-x11 or --without-x11 was given.
2484if test "${with_x11+set}" = set; then
2485 withval="$with_x11"
3c011993 2486 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2487fi;
a0b9e27f 2488
5005acfe 2489 enablestring=
e6cc62c6
VS
2490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2491echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2492 no_cache=0
ba875e66
VZ
2493 # Check whether --enable-nanox or --disable-nanox was given.
2494if test "${enable_nanox+set}" = set; then
2495 enableval="$enable_nanox"
e6cc62c6 2496
d8356fa3 2497 if test "$enableval" = yes; then
ba875e66 2498 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2499 else
ba875e66 2500 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2501 fi
e6cc62c6 2502
d8356fa3 2503else
e6cc62c6 2504
d8356fa3
VZ
2505 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
ba875e66 2512 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2513
e6cc62c6 2514fi;
d8356fa3 2515
ba875e66 2516 eval "$ac_cv_use_nanox"
d8356fa3 2517 if test "$no_cache" != 1; then
ba875e66 2518 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2519 fi
2520
2521 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2522 echo "$as_me:$LINENO: result: yes" >&5
2523echo "${ECHO_T}yes" >&6
d8356fa3 2524 else
e6cc62c6
VS
2525 echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6
d8356fa3 2527 fi
e6cc62c6 2528
8284b0c5 2529
d74f4b5a 2530
5005acfe 2531 enablestring=
e6cc62c6
VS
2532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2533echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2534 no_cache=0
2535 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2536if test "${enable_gtk2+set}" = set; then
2537 enableval="$enable_gtk2"
e6cc62c6 2538
d74f4b5a
VZ
2539 if test "$enableval" = yes; then
2540 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2541 else
2542 ac_cv_use_gtk2='wxUSE_GTK2=no'
2543 fi
e6cc62c6 2544
10f2d63a 2545else
e6cc62c6 2546
d74f4b5a
VZ
2547 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2555
e6cc62c6 2556fi;
328a083c 2557
d74f4b5a
VZ
2558 eval "$ac_cv_use_gtk2"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2564 echo "$as_me:$LINENO: result: yes" >&5
2565echo "${ECHO_T}yes" >&6
d74f4b5a 2566 else
e6cc62c6
VS
2567 echo "$as_me:$LINENO: result: no" >&5
2568echo "${ECHO_T}no" >&6
d74f4b5a 2569 fi
d74f4b5a 2570
5c6fa7d2 2571
e6cc62c6
VS
2572
2573 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2574echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2575 no_cache=0
e6cc62c6
VS
2576
2577# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2578if test "${with_libpng+set}" = set; then
2579 withval="$with_libpng"
e6cc62c6 2580
10f2d63a 2581 if test "$withval" = yes; then
b12915c1 2582 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2583 elif test "$withval" = no; then
b12915c1 2584 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2585 elif test "$withval" = sys; then
2586 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2587 elif test "$withval" = builtin; then
2588 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2589 else
e6cc62c6
VS
2590 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2591echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2592 { (exit 1); exit 1; }; }
10f2d63a 2593 fi
e6cc62c6 2594
10f2d63a 2595else
e6cc62c6 2596
b12915c1 2597 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2598 if test "x$LINE" != x ; then
2599 eval "DEFAULT_$LINE"
2600 else
2601 no_cache=1
2602 fi
2603
b12915c1 2604 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2605
e6cc62c6 2606fi;
10f2d63a 2607
b12915c1 2608 eval "$ac_cv_use_libpng"
10f2d63a 2609 if test "$no_cache" != 1; then
b12915c1 2610 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2611 fi
2612
b12915c1 2613 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2614 echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6
422107f9 2616 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2617 echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6
422107f9 2619 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2620 echo "$as_me:$LINENO: result: system version" >&5
2621echo "${ECHO_T}system version" >&6
4f14bcd8 2622 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2623 echo "$as_me:$LINENO: result: builtin version" >&5
2624echo "${ECHO_T}builtin version" >&6
422107f9 2625 else
e6cc62c6
VS
2626 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2627echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2628 { (exit 1); exit 1; }; }
10f2d63a 2629 fi
10f2d63a 2630
e6cc62c6
VS
2631
2632 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2633echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2634 no_cache=0
e6cc62c6
VS
2635
2636# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2637if test "${with_libjpeg+set}" = set; then
2638 withval="$with_libjpeg"
e6cc62c6 2639
10f2d63a 2640 if test "$withval" = yes; then
b12915c1 2641 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2642 elif test "$withval" = no; then
b12915c1 2643 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2644 elif test "$withval" = sys; then
2645 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2646 elif test "$withval" = builtin; then
2647 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2648 else
e6cc62c6
VS
2649 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2650echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2651 { (exit 1); exit 1; }; }
10f2d63a 2652 fi
e6cc62c6 2653
10f2d63a 2654else
e6cc62c6 2655
b12915c1 2656 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2657 if test "x$LINE" != x ; then
2658 eval "DEFAULT_$LINE"
2659 else
2660 no_cache=1
2661 fi
2662
b12915c1 2663 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2664
e6cc62c6 2665fi;
10f2d63a 2666
b12915c1 2667 eval "$ac_cv_use_libjpeg"
10f2d63a 2668 if test "$no_cache" != 1; then
b12915c1 2669 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2670 fi
2671
b12915c1 2672 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2673 echo "$as_me:$LINENO: result: yes" >&5
2674echo "${ECHO_T}yes" >&6
422107f9 2675 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2676 echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6
422107f9 2678 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2679 echo "$as_me:$LINENO: result: system version" >&5
2680echo "${ECHO_T}system version" >&6
4f14bcd8 2681 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2682 echo "$as_me:$LINENO: result: builtin version" >&5
2683echo "${ECHO_T}builtin version" >&6
422107f9 2684 else
e6cc62c6
VS
2685 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2686echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2687 { (exit 1); exit 1; }; }
10f2d63a 2688 fi
10f2d63a 2689
e6cc62c6
VS
2690
2691 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2692echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2693 no_cache=0
e6cc62c6
VS
2694
2695# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2696if test "${with_libtiff+set}" = set; then
2697 withval="$with_libtiff"
e6cc62c6 2698
10f2d63a 2699 if test "$withval" = yes; then
b12915c1 2700 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2701 elif test "$withval" = no; then
b12915c1 2702 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2703 elif test "$withval" = sys; then
2704 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2705 elif test "$withval" = builtin; then
2706 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2707 else
e6cc62c6
VS
2708 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2709echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2710 { (exit 1); exit 1; }; }
10f2d63a 2711 fi
e6cc62c6 2712
10f2d63a 2713else
e6cc62c6 2714
b12915c1 2715 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2716 if test "x$LINE" != x ; then
2717 eval "DEFAULT_$LINE"
2718 else
2719 no_cache=1
2720 fi
2721
b12915c1 2722 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2723
e6cc62c6 2724fi;
10f2d63a 2725
b12915c1 2726 eval "$ac_cv_use_libtiff"
10f2d63a 2727 if test "$no_cache" != 1; then
b12915c1 2728 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2729 fi
2730
b12915c1 2731 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2732 echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
0dcf9893 2734 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2735 echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
0dcf9893 2737 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2738 echo "$as_me:$LINENO: result: system version" >&5
2739echo "${ECHO_T}system version" >&6
4f14bcd8 2740 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2741 echo "$as_me:$LINENO: result: builtin version" >&5
2742echo "${ECHO_T}builtin version" >&6
0dcf9893 2743 else
e6cc62c6
VS
2744 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2745echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2746 { (exit 1); exit 1; }; }
10f2d63a 2747 fi
10f2d63a 2748
e6cc62c6
VS
2749
2750 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2751echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2752 no_cache=0
e6cc62c6
VS
2753
2754# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2755if test "${with_opengl+set}" = set; then
2756 withval="$with_opengl"
e6cc62c6 2757
10f2d63a 2758 if test "$withval" = yes; then
b12915c1 2759 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2760 else
b12915c1 2761 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2762 fi
e6cc62c6 2763
10f2d63a 2764else
e6cc62c6 2765
b12915c1 2766 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2767 if test "x$LINE" != x ; then
2768 eval "DEFAULT_$LINE"
2769 else
2770 no_cache=1
2771 fi
2772
b12915c1 2773 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2774
e6cc62c6 2775fi;
10f2d63a 2776
b12915c1 2777 eval "$ac_cv_use_opengl"
10f2d63a 2778 if test "$no_cache" != 1; then
b12915c1 2779 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2780 fi
2781
b12915c1 2782 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2783 echo "$as_me:$LINENO: result: yes" >&5
2784echo "${ECHO_T}yes" >&6
10f2d63a 2785 else
e6cc62c6
VS
2786 echo "$as_me:$LINENO: result: no" >&5
2787echo "${ECHO_T}no" >&6
10f2d63a 2788 fi
e6cc62c6 2789
10f2d63a 2790
b12915c1
VZ
2791fi
2792
5c6fa7d2 2793
e6cc62c6
VS
2794 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2795echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2796 no_cache=0
e6cc62c6
VS
2797
2798# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2799if test "${with_dmalloc+set}" = set; then
2800 withval="$with_dmalloc"
e6cc62c6 2801
c7a2bf27 2802 if test "$withval" = yes; then
b12915c1 2803 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2804 else
b12915c1 2805 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2806 fi
e6cc62c6 2807
c7a2bf27 2808else
e6cc62c6 2809
b12915c1 2810 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
b12915c1 2817 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2818
e6cc62c6 2819fi;
c7a2bf27 2820
b12915c1 2821 eval "$ac_cv_use_dmalloc"
c7a2bf27 2822 if test "$no_cache" != 1; then
b12915c1 2823 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2824 fi
2825
b12915c1 2826 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2827 echo "$as_me:$LINENO: result: yes" >&5
2828echo "${ECHO_T}yes" >&6
c7a2bf27 2829 else
e6cc62c6
VS
2830 echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6
c7a2bf27 2832 fi
c7a2bf27 2833
e6cc62c6
VS
2834
2835 echo "$as_me:$LINENO: checking for --with-regex" >&5
2836echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2837 no_cache=0
e6cc62c6
VS
2838
2839# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2840if test "${with_regex+set}" = set; then
2841 withval="$with_regex"
e6cc62c6 2842
3e44f09d
VZ
2843 if test "$withval" = yes; then
2844 ac_cv_use_regex='wxUSE_REGEX=yes'
2845 elif test "$withval" = no; then
2846 ac_cv_use_regex='wxUSE_REGEX=no'
2847 elif test "$withval" = sys; then
2848 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2849 elif test "$withval" = builtin; then
2850 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2851 else
e6cc62c6
VS
2852 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2853echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2854 { (exit 1); exit 1; }; }
3e44f09d 2855 fi
e6cc62c6 2856
3e44f09d 2857else
e6cc62c6 2858
3e44f09d
VZ
2859 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2860 if test "x$LINE" != x ; then
2861 eval "DEFAULT_$LINE"
2862 else
2863 no_cache=1
2864 fi
2865
2866 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2867
e6cc62c6 2868fi;
3e44f09d
VZ
2869
2870 eval "$ac_cv_use_regex"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2876 echo "$as_me:$LINENO: result: yes" >&5
2877echo "${ECHO_T}yes" >&6
3e44f09d 2878 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2879 echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6
3e44f09d 2881 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2882 echo "$as_me:$LINENO: result: system version" >&5
2883echo "${ECHO_T}system version" >&6
4f14bcd8 2884 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2885 echo "$as_me:$LINENO: result: builtin version" >&5
2886echo "${ECHO_T}builtin version" >&6
3e44f09d 2887 else
e6cc62c6
VS
2888 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2889echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2890 { (exit 1); exit 1; }; }
3e44f09d 2891 fi
3e44f09d 2892
e6cc62c6
VS
2893
2894 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2895echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2896 no_cache=0
e6cc62c6
VS
2897
2898# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2899if test "${with_zlib+set}" = set; then
2900 withval="$with_zlib"
e6cc62c6 2901
10f2d63a 2902 if test "$withval" = yes; then
b12915c1 2903 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2904 elif test "$withval" = no; then
b12915c1 2905 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2906 elif test "$withval" = sys; then
2907 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2908 elif test "$withval" = builtin; then
2909 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2910 else
e6cc62c6
VS
2911 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2912echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2913 { (exit 1); exit 1; }; }
10f2d63a 2914 fi
e6cc62c6 2915
10f2d63a 2916else
e6cc62c6 2917
b12915c1 2918 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2919 if test "x$LINE" != x ; then
2920 eval "DEFAULT_$LINE"
2921 else
2922 no_cache=1
2923 fi
2924
b12915c1 2925 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2926
e6cc62c6 2927fi;
10f2d63a 2928
b12915c1 2929 eval "$ac_cv_use_zlib"
10f2d63a 2930 if test "$no_cache" != 1; then
b12915c1 2931 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2932 fi
2933
b12915c1 2934 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2935 echo "$as_me:$LINENO: result: yes" >&5
2936echo "${ECHO_T}yes" >&6
422107f9 2937 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2938 echo "$as_me:$LINENO: result: no" >&5
2939echo "${ECHO_T}no" >&6
422107f9 2940 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2941 echo "$as_me:$LINENO: result: system version" >&5
2942echo "${ECHO_T}system version" >&6
4f14bcd8 2943 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2944 echo "$as_me:$LINENO: result: builtin version" >&5
2945echo "${ECHO_T}builtin version" >&6
422107f9 2946 else
e6cc62c6
VS
2947 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2948echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2949 { (exit 1); exit 1; }; }
10f2d63a 2950 fi
10f2d63a 2951
e6cc62c6
VS
2952
2953 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2954echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2955 no_cache=0
e6cc62c6
VS
2956
2957# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2958if test "${with_odbc+set}" = set; then
2959 withval="$with_odbc"
e6cc62c6 2960
10f2d63a
VZ
2961 if test "$withval" = yes; then
2962 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2963 elif test "$withval" = no; then
10f2d63a 2964 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2965 elif test "$withval" = sys; then
2966 ac_cv_use_odbc='wxUSE_ODBC=sys'
2967 elif test "$withval" = builtin; then
2968 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2969 else
e6cc62c6
VS
2970 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2971echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2972 { (exit 1); exit 1; }; }
10f2d63a 2973 fi
e6cc62c6 2974
10f2d63a 2975else
e6cc62c6 2976
10f2d63a
VZ
2977 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2978 if test "x$LINE" != x ; then
2979 eval "DEFAULT_$LINE"
2980 else
2981 no_cache=1
2982 fi
2983
2984 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2985
e6cc62c6 2986fi;
10f2d63a
VZ
2987
2988 eval "$ac_cv_use_odbc"
2989 if test "$no_cache" != 1; then
2990 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2991 fi
2992
2993 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
2994 echo "$as_me:$LINENO: result: yes" >&5
2995echo "${ECHO_T}yes" >&6
8647bec6 2996 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
2997 echo "$as_me:$LINENO: result: no" >&5
2998echo "${ECHO_T}no" >&6
8647bec6 2999 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3000 echo "$as_me:$LINENO: result: system version" >&5
3001echo "${ECHO_T}system version" >&6
8647bec6 3002 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3003 echo "$as_me:$LINENO: result: builtin version" >&5
3004echo "${ECHO_T}builtin version" >&6
8647bec6 3005 else
e6cc62c6
VS
3006 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3007echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3008 { (exit 1); exit 1; }; }
10f2d63a 3009 fi
e6cc62c6 3010
52127426 3011
8284b0c5
MB
3012
3013
5005acfe 3014 enablestring=
e6cc62c6
VS
3015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3016echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3017 no_cache=0
3018 # Check whether --enable-shared or --disable-shared was given.
3019if test "${enable_shared+set}" = set; then
3020 enableval="$enable_shared"
e6cc62c6 3021
10f2d63a
VZ
3022 if test "$enableval" = yes; then
3023 ac_cv_use_shared='wxUSE_SHARED=yes'
3024 else
3025 ac_cv_use_shared='wxUSE_SHARED=no'
3026 fi
e6cc62c6 3027
10f2d63a 3028else
e6cc62c6 3029
10f2d63a
VZ
3030 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3031 if test "x$LINE" != x ; then
3032 eval "DEFAULT_$LINE"
3033 else
3034 no_cache=1
3035 fi
3036
3037 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3038
e6cc62c6 3039fi;
10f2d63a
VZ
3040
3041 eval "$ac_cv_use_shared"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3047 echo "$as_me:$LINENO: result: yes" >&5
3048echo "${ECHO_T}yes" >&6
10f2d63a 3049 else
e6cc62c6
VS
3050 echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6
10f2d63a 3052 fi
e6cc62c6 3053
10f2d63a 3054
5005acfe 3055 enablestring=
e6cc62c6
VS
3056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-soname" >&5
3057echo $ECHO_N "checking for --${enablestring:-enable}-soname... $ECHO_C" >&6
00cf1208 3058 no_cache=0
3a922bb4
RL
3059 # Check whether --enable-soname or --disable-soname was given.
3060if test "${enable_soname+set}" = set; then
3061 enableval="$enable_soname"
e6cc62c6 3062
00cf1208 3063 if test "$enableval" = yes; then
3a922bb4 3064 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 3065 else
3a922bb4 3066 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 3067 fi
e6cc62c6 3068
00cf1208 3069else
e6cc62c6 3070
3a922bb4 3071 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
3072 if test "x$LINE" != x ; then
3073 eval "DEFAULT_$LINE"
3074 else
3075 no_cache=1
3076 fi
3077
3a922bb4 3078 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
00cf1208 3079
e6cc62c6 3080fi;
00cf1208 3081
3a922bb4 3082 eval "$ac_cv_use_soname"
00cf1208 3083 if test "$no_cache" != 1; then
3a922bb4 3084 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
3085 fi
3086
3a922bb4 3087 if test "$wxUSE_SONAME" = yes; then
e6cc62c6
VS
3088 echo "$as_me:$LINENO: result: yes" >&5
3089echo "${ECHO_T}yes" >&6
00cf1208 3090 else
e6cc62c6
VS
3091 echo "$as_me:$LINENO: result: no" >&5
3092echo "${ECHO_T}no" >&6
00cf1208 3093 fi
e6cc62c6 3094
00cf1208 3095
5005acfe 3096 enablestring=
e6cc62c6
VS
3097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3098echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3099 no_cache=0
3100 # Check whether --enable-optimise or --disable-optimise was given.
3101if test "${enable_optimise+set}" = set; then
3102 enableval="$enable_optimise"
e6cc62c6 3103
10f2d63a
VZ
3104 if test "$enableval" = yes; then
3105 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3106 else
3107 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3108 fi
e6cc62c6 3109
10f2d63a 3110else
e6cc62c6 3111
10f2d63a
VZ
3112 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3113 if test "x$LINE" != x ; then
3114 eval "DEFAULT_$LINE"
3115 else
3116 no_cache=1
3117 fi
3118
3119 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3120
e6cc62c6 3121fi;
10f2d63a
VZ
3122
3123 eval "$ac_cv_use_optimise"
3124 if test "$no_cache" != 1; then
3125 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3126 fi
3127
3128 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3129 echo "$as_me:$LINENO: result: yes" >&5
3130echo "${ECHO_T}yes" >&6
10f2d63a 3131 else
e6cc62c6
VS
3132 echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
10f2d63a 3134 fi
e6cc62c6 3135
10f2d63a 3136
5005acfe 3137 enablestring=
e6cc62c6
VS
3138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3139echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3140 no_cache=0
3141 # Check whether --enable-debug or --disable-debug was given.
3142if test "${enable_debug+set}" = set; then
3143 enableval="$enable_debug"
e6cc62c6 3144
10f2d63a
VZ
3145 if test "$enableval" = yes; then
3146 ac_cv_use_debug='wxUSE_DEBUG=yes'
3147 else
3148 ac_cv_use_debug='wxUSE_DEBUG=no'
3149 fi
e6cc62c6 3150
10f2d63a 3151else
e6cc62c6 3152
10f2d63a
VZ
3153 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3154 if test "x$LINE" != x ; then
3155 eval "DEFAULT_$LINE"
3156 else
3157 no_cache=1
3158 fi
3159
3160 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3161
e6cc62c6 3162fi;
10f2d63a
VZ
3163
3164 eval "$ac_cv_use_debug"
3165 if test "$no_cache" != 1; then
3166 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3167 fi
3168
3169 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3170 echo "$as_me:$LINENO: result: yes" >&5
3171echo "${ECHO_T}yes" >&6
10f2d63a 3172 else
e6cc62c6
VS
3173 echo "$as_me:$LINENO: result: no" >&5
3174echo "${ECHO_T}no" >&6
10f2d63a 3175 fi
e6cc62c6 3176
52127426 3177
8284b0c5 3178
5005acfe 3179 enablestring=
e6cc62c6
VS
3180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5
3181echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6
683dccda
GD
3182 no_cache=0
3183 # Check whether --enable-precomp or --disable-precomp was given.
3184if test "${enable_precomp+set}" = set; then
3185 enableval="$enable_precomp"
e6cc62c6 3186
683dccda
GD
3187 if test "$enableval" = yes; then
3188 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
3189 else
3190 ac_cv_use_precomp='wxUSE_PRECOMP=no'
3191 fi
e6cc62c6 3192
683dccda 3193else
e6cc62c6 3194
683dccda
GD
3195 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
3196 if test "x$LINE" != x ; then
3197 eval "DEFAULT_$LINE"
3198 else
3199 no_cache=1
3200 fi
3201
3202 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
683dccda 3203
e6cc62c6 3204fi;
683dccda
GD
3205
3206 eval "$ac_cv_use_precomp"
3207 if test "$no_cache" != 1; then
3208 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
3209 fi
3210
3211 if test "$wxUSE_PRECOMP" = yes; then
e6cc62c6
VS
3212 echo "$as_me:$LINENO: result: yes" >&5
3213echo "${ECHO_T}yes" >&6
683dccda 3214 else
e6cc62c6
VS
3215 echo "$as_me:$LINENO: result: no" >&5
3216echo "${ECHO_T}no" >&6
683dccda 3217 fi
e6cc62c6 3218
683dccda 3219
10f2d63a
VZ
3220if test "$wxUSE_DEBUG" = "yes"; then
3221 DEFAULT_wxUSE_DEBUG_FLAG=yes
3222 DEFAULT_wxUSE_DEBUG_INFO=yes
3223elif test "$wxUSE_DEBUG" = "no"; then
3224 DEFAULT_wxUSE_DEBUG_FLAG=no
3225 DEFAULT_wxUSE_DEBUG_INFO=no
3226fi
3227
8284b0c5 3228
5005acfe 3229 enablestring=
e6cc62c6
VS
3230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3231echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3232 no_cache=0
3233 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3234if test "${enable_debug_flag+set}" = set; then
3235 enableval="$enable_debug_flag"
e6cc62c6 3236
10f2d63a
VZ
3237 if test "$enableval" = yes; then
3238 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3239 else
3240 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3241 fi
e6cc62c6 3242
10f2d63a 3243else
e6cc62c6 3244
10f2d63a
VZ
3245 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3253
e6cc62c6 3254fi;
10f2d63a
VZ
3255
3256 eval "$ac_cv_use_debug_flag"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3262 echo "$as_me:$LINENO: result: yes" >&5
3263echo "${ECHO_T}yes" >&6
10f2d63a 3264 else
e6cc62c6
VS
3265 echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
10f2d63a 3267 fi
e6cc62c6 3268
10f2d63a 3269
5005acfe 3270 enablestring=
e6cc62c6
VS
3271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3272echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3273 no_cache=0
3274 # Check whether --enable-debug_info or --disable-debug_info was given.
3275if test "${enable_debug_info+set}" = set; then
3276 enableval="$enable_debug_info"
e6cc62c6 3277
10f2d63a
VZ
3278 if test "$enableval" = yes; then
3279 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3280 else
3281 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3282 fi
e6cc62c6 3283
10f2d63a 3284else
e6cc62c6 3285
10f2d63a
VZ
3286 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3287 if test "x$LINE" != x ; then
3288 eval "DEFAULT_$LINE"
3289 else
3290 no_cache=1
3291 fi
3292
3293 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3294
e6cc62c6 3295fi;
10f2d63a
VZ
3296
3297 eval "$ac_cv_use_debug_info"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3303 echo "$as_me:$LINENO: result: yes" >&5
3304echo "${ECHO_T}yes" >&6
10f2d63a 3305 else
e6cc62c6
VS
3306 echo "$as_me:$LINENO: result: no" >&5
3307echo "${ECHO_T}no" >&6
10f2d63a 3308 fi
e6cc62c6 3309
10f2d63a 3310
5005acfe 3311 enablestring=
e6cc62c6
VS
3312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3313echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3314 no_cache=0
3315 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3316if test "${enable_debug_gdb+set}" = set; then
3317 enableval="$enable_debug_gdb"
e6cc62c6 3318
10f2d63a
VZ
3319 if test "$enableval" = yes; then
3320 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3321 else
3322 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3323 fi
e6cc62c6 3324
10f2d63a 3325else
e6cc62c6 3326
10f2d63a
VZ
3327 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3335
e6cc62c6 3336fi;
10f2d63a
VZ
3337
3338 eval "$ac_cv_use_debug_gdb"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3344 echo "$as_me:$LINENO: result: yes" >&5
3345echo "${ECHO_T}yes" >&6
10f2d63a 3346 else
e6cc62c6
VS
3347 echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
10f2d63a 3349 fi
e6cc62c6 3350
10f2d63a 3351
5005acfe 3352 enablestring=
e6cc62c6
VS
3353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3354echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3355 no_cache=0
3356 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3357if test "${enable_debug_cntxt+set}" = set; then
3358 enableval="$enable_debug_cntxt"
e6cc62c6 3359
10f2d63a
VZ
3360 if test "$enableval" = yes; then
3361 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3362 else
3363 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3364 fi
e6cc62c6 3365
10f2d63a 3366else
e6cc62c6 3367
10f2d63a
VZ
3368 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3376
e6cc62c6 3377fi;
10f2d63a
VZ
3378
3379 eval "$ac_cv_use_debug_cntxt"
3380 if test "$no_cache" != 1; then
3381 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3382 fi
3383
3384 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3385 echo "$as_me:$LINENO: result: yes" >&5
3386echo "${ECHO_T}yes" >&6
10f2d63a 3387 else
e6cc62c6
VS
3388 echo "$as_me:$LINENO: result: no" >&5
3389echo "${ECHO_T}no" >&6
10f2d63a 3390 fi
e6cc62c6 3391
10f2d63a 3392
5005acfe 3393 enablestring=
e6cc62c6
VS
3394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3395echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3396 no_cache=0
3397 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3398if test "${enable_mem_tracing+set}" = set; then
3399 enableval="$enable_mem_tracing"
e6cc62c6 3400
10f2d63a
VZ
3401 if test "$enableval" = yes; then
3402 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3403 else
3404 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3405 fi
e6cc62c6 3406
10f2d63a 3407else
e6cc62c6 3408
10f2d63a
VZ
3409 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3417
e6cc62c6 3418fi;
10f2d63a
VZ
3419
3420 eval "$ac_cv_use_mem_tracing"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3426 echo "$as_me:$LINENO: result: yes" >&5
3427echo "${ECHO_T}yes" >&6
10f2d63a 3428 else
e6cc62c6
VS
3429 echo "$as_me:$LINENO: result: no" >&5
3430echo "${ECHO_T}no" >&6
10f2d63a 3431 fi
e6cc62c6 3432
10f2d63a 3433
5005acfe 3434 enablestring=
e6cc62c6
VS
3435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3436echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3437 no_cache=0
3438 # Check whether --enable-profile or --disable-profile was given.
3439if test "${enable_profile+set}" = set; then
3440 enableval="$enable_profile"
e6cc62c6 3441
10f2d63a
VZ
3442 if test "$enableval" = yes; then
3443 ac_cv_use_profile='wxUSE_PROFILE=yes'
3444 else
3445 ac_cv_use_profile='wxUSE_PROFILE=no'
3446 fi
e6cc62c6 3447
10f2d63a 3448else
e6cc62c6 3449
10f2d63a
VZ
3450 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3451 if test "x$LINE" != x ; then
3452 eval "DEFAULT_$LINE"
3453 else
3454 no_cache=1
3455 fi
3456
3457 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3458
e6cc62c6 3459fi;
10f2d63a
VZ
3460
3461 eval "$ac_cv_use_profile"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3467 echo "$as_me:$LINENO: result: yes" >&5
3468echo "${ECHO_T}yes" >&6
10f2d63a 3469 else
e6cc62c6
VS
3470 echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
10f2d63a 3472 fi
e6cc62c6 3473
10f2d63a 3474
5005acfe 3475 enablestring=
e6cc62c6
VS
3476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3477echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3478 no_cache=0
3479 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3480if test "${enable_no_rtti+set}" = set; then
3481 enableval="$enable_no_rtti"
e6cc62c6 3482
10f2d63a
VZ
3483 if test "$enableval" = yes; then
3484 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3485 else
3486 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3487 fi
e6cc62c6 3488
10f2d63a 3489else
e6cc62c6 3490
10f2d63a
VZ
3491 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3492 if test "x$LINE" != x ; then
3493 eval "DEFAULT_$LINE"
3494 else
3495 no_cache=1
3496 fi
3497
3498 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3499
e6cc62c6 3500fi;
10f2d63a
VZ
3501
3502 eval "$ac_cv_use_no_rtti"
3503 if test "$no_cache" != 1; then
3504 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3505 fi
3506
3507 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3508 echo "$as_me:$LINENO: result: yes" >&5
3509echo "${ECHO_T}yes" >&6
10f2d63a 3510 else
e6cc62c6
VS
3511 echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6
10f2d63a 3513 fi
e6cc62c6 3514
10f2d63a 3515
5005acfe 3516 enablestring=
e6cc62c6
VS
3517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3518echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3519 no_cache=0
3520 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3521if test "${enable_no_exceptions+set}" = set; then
3522 enableval="$enable_no_exceptions"
e6cc62c6 3523
10f2d63a
VZ
3524 if test "$enableval" = yes; then
3525 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3526 else
3527 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3528 fi
e6cc62c6 3529
10f2d63a 3530else
e6cc62c6 3531
10f2d63a
VZ
3532 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3540
e6cc62c6 3541fi;
10f2d63a
VZ
3542
3543 eval "$ac_cv_use_no_exceptions"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3549 echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6
10f2d63a 3551 else
e6cc62c6
VS
3552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
10f2d63a 3554 fi
e6cc62c6 3555
10f2d63a 3556
5005acfe 3557 enablestring=
e6cc62c6
VS
3558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3559echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3560 no_cache=0
3561 # Check whether --enable-permissive or --disable-permissive was given.
3562if test "${enable_permissive+set}" = set; then
3563 enableval="$enable_permissive"
e6cc62c6 3564
10f2d63a
VZ
3565 if test "$enableval" = yes; then
3566 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3567 else
3568 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3569 fi
e6cc62c6 3570
10f2d63a 3571else
e6cc62c6 3572
10f2d63a
VZ
3573 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3581
e6cc62c6 3582fi;
10f2d63a
VZ
3583
3584 eval "$ac_cv_use_permissive"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3590 echo "$as_me:$LINENO: result: yes" >&5
3591echo "${ECHO_T}yes" >&6
10f2d63a 3592 else
e6cc62c6
VS
3593 echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
10f2d63a 3595 fi
e6cc62c6 3596
10f2d63a 3597
5005acfe 3598 enablestring=
e6cc62c6
VS
3599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3600echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3601 no_cache=0
3602 # Check whether --enable-no_deps or --disable-no_deps was given.
3603if test "${enable_no_deps+set}" = set; then
3604 enableval="$enable_no_deps"
e6cc62c6 3605
10f2d63a
VZ
3606 if test "$enableval" = yes; then
3607 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3608 else
3609 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3610 fi
e6cc62c6 3611
10f2d63a 3612else
e6cc62c6 3613
10f2d63a
VZ
3614 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3622
e6cc62c6 3623fi;
10f2d63a
VZ
3624
3625 eval "$ac_cv_use_no_deps"
3626 if test "$no_cache" != 1; then
3627 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3628 fi
3629
3630 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3631 echo "$as_me:$LINENO: result: yes" >&5
3632echo "${ECHO_T}yes" >&6
10f2d63a 3633 else
e6cc62c6
VS
3634 echo "$as_me:$LINENO: result: no" >&5
3635echo "${ECHO_T}no" >&6
10f2d63a 3636 fi
e6cc62c6 3637
52127426 3638
8284b0c5 3639
5005acfe 3640 enablestring=
e6cc62c6
VS
3641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3642echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3643 no_cache=0
3644 # Check whether --enable-compat20 or --disable-compat20 was given.
3645if test "${enable_compat20+set}" = set; then
3646 enableval="$enable_compat20"
e6cc62c6 3647
54276ccf
VZ
3648 if test "$enableval" = yes; then
3649 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3650 else
3651 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3652 fi
e6cc62c6 3653
54276ccf 3654else
e6cc62c6 3655
54276ccf
VZ
3656 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3657 if test "x$LINE" != x ; then
3658 eval "DEFAULT_$LINE"
3659 else
3660 no_cache=1
3661 fi
3662
3663 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3664
e6cc62c6 3665fi;
54276ccf
VZ
3666
3667 eval "$ac_cv_use_compat20"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3673 echo "$as_me:$LINENO: result: yes" >&5
3674echo "${ECHO_T}yes" >&6
54276ccf 3675 else
e6cc62c6
VS
3676 echo "$as_me:$LINENO: result: no" >&5
3677echo "${ECHO_T}no" >&6
54276ccf 3678 fi
e6cc62c6 3679
54276ccf 3680
65d8ef1e 3681 enablestring=
e6cc62c6
VS
3682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3683echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3684 no_cache=0
3685 # Check whether --enable-compat22 or --disable-compat22 was given.
3686if test "${enable_compat22+set}" = set; then
3687 enableval="$enable_compat22"
e6cc62c6 3688
54276ccf
VZ
3689 if test "$enableval" = yes; then
3690 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3691 else
3692 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3693 fi
e6cc62c6 3694
54276ccf 3695else
e6cc62c6 3696
54276ccf
VZ
3697 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3705
e6cc62c6 3706fi;
54276ccf
VZ
3707
3708 eval "$ac_cv_use_compat22"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3714 echo "$as_me:$LINENO: result: yes" >&5
3715echo "${ECHO_T}yes" >&6
54276ccf 3716 else
e6cc62c6
VS
3717 echo "$as_me:$LINENO: result: no" >&5
3718echo "${ECHO_T}no" >&6
54276ccf 3719 fi
e6cc62c6 3720
54276ccf 3721
65d8ef1e 3722 enablestring=disable
e6cc62c6
VS
3723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3724echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3725 no_cache=0
3726 # Check whether --enable-compat24 or --disable-compat24 was given.
3727if test "${enable_compat24+set}" = set; then
3728 enableval="$enable_compat24"
e6cc62c6 3729
65d8ef1e
VS
3730 if test "$enableval" = yes; then
3731 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3732 else
3733 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3734 fi
e6cc62c6 3735
65d8ef1e 3736else
e6cc62c6 3737
65d8ef1e
VS
3738 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3746
e6cc62c6 3747fi;
65d8ef1e
VS
3748
3749 eval "$ac_cv_use_compat24"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3755 echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6
65d8ef1e 3757 else
e6cc62c6
VS
3758 echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6
65d8ef1e 3760 fi
e6cc62c6 3761
65d8ef1e 3762
3bd8fb5f
RD
3763# Check whether --enable-rpath or --disable-rpath was given.
3764if test "${enable_rpath+set}" = set; then
3765 enableval="$enable_rpath"
3766 wxRPATH_DIR="$enableval"
e6cc62c6 3767fi;
3bd8fb5f
RD
3768
3769if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3770 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3771fi
3772
8284b0c5
MB
3773
3774
3775
5005acfe 3776 enablestring=
e6cc62c6
VS
3777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3778echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3779 no_cache=0
3780 # Check whether --enable-intl or --disable-intl was given.
3781if test "${enable_intl+set}" = set; then
3782 enableval="$enable_intl"
e6cc62c6 3783
10f2d63a
VZ
3784 if test "$enableval" = yes; then
3785 ac_cv_use_intl='wxUSE_INTL=yes'
3786 else
3787 ac_cv_use_intl='wxUSE_INTL=no'
3788 fi
e6cc62c6 3789
10f2d63a 3790else
e6cc62c6 3791
10f2d63a
VZ
3792 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3793 if test "x$LINE" != x ; then
3794 eval "DEFAULT_$LINE"
3795 else
3796 no_cache=1
3797 fi
3798
3799 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3800
e6cc62c6 3801fi;
10f2d63a
VZ
3802
3803 eval "$ac_cv_use_intl"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3809 echo "$as_me:$LINENO: result: yes" >&5
3810echo "${ECHO_T}yes" >&6
10f2d63a 3811 else
e6cc62c6
VS
3812 echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
10f2d63a 3814 fi
e6cc62c6 3815
10f2d63a 3816
5005acfe 3817 enablestring=
e6cc62c6
VS
3818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3819echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3820 no_cache=0
3821 # Check whether --enable-config or --disable-config was given.
3822if test "${enable_config+set}" = set; then
3823 enableval="$enable_config"
e6cc62c6 3824
10f2d63a
VZ
3825 if test "$enableval" = yes; then
3826 ac_cv_use_config='wxUSE_CONFIG=yes'
3827 else
3828 ac_cv_use_config='wxUSE_CONFIG=no'
3829 fi
e6cc62c6 3830
10f2d63a 3831else
e6cc62c6 3832
10f2d63a
VZ
3833 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3834 if test "x$LINE" != x ; then
3835 eval "DEFAULT_$LINE"
3836 else
3837 no_cache=1
3838 fi
3839
3840 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3841
e6cc62c6 3842fi;
10f2d63a
VZ
3843
3844 eval "$ac_cv_use_config"
3845 if test "$no_cache" != 1; then
3846 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3847 fi
3848
3849 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3850 echo "$as_me:$LINENO: result: yes" >&5
3851echo "${ECHO_T}yes" >&6
10f2d63a 3852 else
e6cc62c6
VS
3853 echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6
10f2d63a 3855 fi
e6cc62c6 3856
52127426 3857
8284b0c5 3858
5005acfe 3859 enablestring=
e6cc62c6
VS
3860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3861echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3862 no_cache=0
3863 # Check whether --enable-protocols or --disable-protocols was given.
3864if test "${enable_protocols+set}" = set; then
3865 enableval="$enable_protocols"
e6cc62c6 3866
a1622950
VZ
3867 if test "$enableval" = yes; then
3868 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3869 else
3870 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3871 fi
e6cc62c6 3872
a1622950 3873else
e6cc62c6 3874
a1622950
VZ
3875 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3883
e6cc62c6 3884fi;
a1622950
VZ
3885
3886 eval "$ac_cv_use_protocols"
3887 if test "$no_cache" != 1; then
3888 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3889 fi
3890
3891 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3892 echo "$as_me:$LINENO: result: yes" >&5
3893echo "${ECHO_T}yes" >&6
a1622950 3894 else
e6cc62c6
VS
3895 echo "$as_me:$LINENO: result: no" >&5
3896echo "${ECHO_T}no" >&6
a1622950 3897 fi
e6cc62c6 3898
a1622950 3899
5005acfe 3900 enablestring=
e6cc62c6
VS
3901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3902echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3903 no_cache=0
3904 # Check whether --enable-ftp or --disable-ftp was given.
3905if test "${enable_ftp+set}" = set; then
3906 enableval="$enable_ftp"
e6cc62c6 3907
a1622950
VZ
3908 if test "$enableval" = yes; then
3909 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3910 else
3911 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3912 fi
e6cc62c6 3913
a1622950 3914else
e6cc62c6 3915
a1622950
VZ
3916 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3917 if test "x$LINE" != x ; then
3918 eval "DEFAULT_$LINE"
3919 else
3920 no_cache=1
3921 fi
3922
3923 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3924
e6cc62c6 3925fi;
a1622950
VZ
3926
3927 eval "$ac_cv_use_ftp"
3928 if test "$no_cache" != 1; then
3929 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3930 fi
3931
3932 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3933 echo "$as_me:$LINENO: result: yes" >&5
3934echo "${ECHO_T}yes" >&6
a1622950 3935 else
e6cc62c6
VS
3936 echo "$as_me:$LINENO: result: no" >&5
3937echo "${ECHO_T}no" >&6
a1622950 3938 fi
e6cc62c6 3939
a1622950 3940
5005acfe 3941 enablestring=
e6cc62c6
VS
3942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3943echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3944 no_cache=0
3945 # Check whether --enable-http or --disable-http was given.
3946if test "${enable_http+set}" = set; then
3947 enableval="$enable_http"
e6cc62c6 3948
a1622950
VZ
3949 if test "$enableval" = yes; then
3950 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3951 else
3952 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3953 fi
e6cc62c6 3954
a1622950 3955else
e6cc62c6 3956
a1622950
VZ
3957 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3958 if test "x$LINE" != x ; then
3959 eval "DEFAULT_$LINE"
3960 else
3961 no_cache=1
3962 fi
3963
3964 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3965
e6cc62c6 3966fi;
a1622950
VZ
3967
3968 eval "$ac_cv_use_http"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3974 echo "$as_me:$LINENO: result: yes" >&5
3975echo "${ECHO_T}yes" >&6
a1622950 3976 else
e6cc62c6
VS
3977 echo "$as_me:$LINENO: result: no" >&5
3978echo "${ECHO_T}no" >&6
a1622950 3979 fi
e6cc62c6 3980
a1622950 3981
5005acfe 3982 enablestring=
e6cc62c6
VS
3983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3984echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3985 no_cache=0
3986 # Check whether --enable-fileproto or --disable-fileproto was given.
3987if test "${enable_fileproto+set}" = set; then
3988 enableval="$enable_fileproto"
e6cc62c6 3989
a1622950
VZ
3990 if test "$enableval" = yes; then
3991 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3992 else
3993 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3994 fi
e6cc62c6 3995
a1622950 3996else
e6cc62c6 3997
a1622950
VZ
3998 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4006
e6cc62c6 4007fi;
a1622950
VZ
4008
4009 eval "$ac_cv_use_fileproto"
4010 if test "$no_cache" != 1; then
4011 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4012 fi
4013
4014 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4015 echo "$as_me:$LINENO: result: yes" >&5
4016echo "${ECHO_T}yes" >&6
a1622950 4017 else
e6cc62c6
VS
4018 echo "$as_me:$LINENO: result: no" >&5
4019echo "${ECHO_T}no" >&6
a1622950 4020 fi
e6cc62c6 4021
a1622950 4022
5005acfe 4023 enablestring=
e6cc62c6
VS
4024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4025echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4026 no_cache=0
4027 # Check whether --enable-sockets or --disable-sockets was given.
4028if test "${enable_sockets+set}" = set; then
4029 enableval="$enable_sockets"
e6cc62c6 4030
10f2d63a
VZ
4031 if test "$enableval" = yes; then
4032 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4033 else
4034 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4035 fi
e6cc62c6 4036
10f2d63a 4037else
e6cc62c6 4038
10f2d63a
VZ
4039 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4047
e6cc62c6 4048fi;
10f2d63a
VZ
4049
4050 eval "$ac_cv_use_sockets"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4056 echo "$as_me:$LINENO: result: yes" >&5
4057echo "${ECHO_T}yes" >&6
10f2d63a 4058 else
e6cc62c6
VS
4059 echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
10f2d63a 4061 fi
e6cc62c6 4062
8284b0c5 4063
5005acfe 4064 enablestring=
e6cc62c6
VS
4065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4066echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4067 no_cache=0
4068 # Check whether --enable-ole or --disable-ole was given.
4069if test "${enable_ole+set}" = set; then
4070 enableval="$enable_ole"
e6cc62c6 4071
3bce6687
JS
4072 if test "$enableval" = yes; then
4073 ac_cv_use_ole='wxUSE_OLE=yes'
4074 else
4075 ac_cv_use_ole='wxUSE_OLE=no'
4076 fi
e6cc62c6 4077
3bce6687 4078else
e6cc62c6 4079
3bce6687
JS
4080 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4088
e6cc62c6 4089fi;
3bce6687
JS
4090
4091 eval "$ac_cv_use_ole"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4097 echo "$as_me:$LINENO: result: yes" >&5
4098echo "${ECHO_T}yes" >&6
3bce6687 4099 else
e6cc62c6
VS
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
3bce6687 4102 fi
e6cc62c6 4103
3bce6687 4104
5005acfe 4105 enablestring=
e6cc62c6
VS
4106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4107echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4108 no_cache=0
4109 # Check whether --enable-dataobj or --disable-dataobj was given.
4110if test "${enable_dataobj+set}" = set; then
4111 enableval="$enable_dataobj"
e6cc62c6 4112
3bce6687
JS
4113 if test "$enableval" = yes; then
4114 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4115 else
4116 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4117 fi
e6cc62c6 4118
3bce6687 4119else
e6cc62c6 4120
3bce6687
JS
4121 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4129
e6cc62c6 4130fi;
3bce6687
JS
4131
4132 eval "$ac_cv_use_dataobj"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4138 echo "$as_me:$LINENO: result: yes" >&5
4139echo "${ECHO_T}yes" >&6
3bce6687 4140 else
e6cc62c6
VS
4141 echo "$as_me:$LINENO: result: no" >&5
4142echo "${ECHO_T}no" >&6
3bce6687 4143 fi
e6cc62c6 4144
3bce6687 4145
52127426 4146
5005acfe 4147 enablestring=
e6cc62c6
VS
4148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4149echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4150 no_cache=0
eb4efbdc
VZ
4151 # Check whether --enable-ipc or --disable-ipc was given.
4152if test "${enable_ipc+set}" = set; then
4153 enableval="$enable_ipc"
e6cc62c6 4154
10f2d63a 4155 if test "$enableval" = yes; then
eb4efbdc 4156 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4157 else
eb4efbdc 4158 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4159 fi
e6cc62c6 4160
10f2d63a 4161else
e6cc62c6 4162
eb4efbdc 4163 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
eb4efbdc 4170 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4171
e6cc62c6 4172fi;
10f2d63a 4173
eb4efbdc 4174 eval "$ac_cv_use_ipc"
10f2d63a 4175 if test "$no_cache" != 1; then
eb4efbdc 4176 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4177 fi
4178
eb4efbdc 4179 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4180 echo "$as_me:$LINENO: result: yes" >&5
4181echo "${ECHO_T}yes" >&6
10f2d63a 4182 else
e6cc62c6
VS
4183 echo "$as_me:$LINENO: result: no" >&5
4184echo "${ECHO_T}no" >&6
10f2d63a 4185 fi
e6cc62c6 4186
52127426 4187
8284b0c5 4188
5005acfe 4189 enablestring=
e6cc62c6
VS
4190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4191echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4192 no_cache=0
4193 # Check whether --enable-cmdline or --disable-cmdline was given.
4194if test "${enable_cmdline+set}" = set; then
4195 enableval="$enable_cmdline"
e6cc62c6 4196
1e6feb95
VZ
4197 if test "$enableval" = yes; then
4198 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4199 else
4200 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4201 fi
e6cc62c6 4202
1e6feb95 4203else
e6cc62c6 4204
1e6feb95
VZ
4205 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4206 if test "x$LINE" != x ; then
4207 eval "DEFAULT_$LINE"
4208 else
4209 no_cache=1
4210 fi
4211
4212 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4213
e6cc62c6 4214fi;
1e6feb95
VZ
4215
4216 eval "$ac_cv_use_cmdline"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4222 echo "$as_me:$LINENO: result: yes" >&5
4223echo "${ECHO_T}yes" >&6
1e6feb95 4224 else
e6cc62c6
VS
4225 echo "$as_me:$LINENO: result: no" >&5
4226echo "${ECHO_T}no" >&6
1e6feb95 4227 fi
e6cc62c6 4228
1e6feb95 4229
5005acfe 4230 enablestring=
e6cc62c6
VS
4231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4232echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4233 no_cache=0
4234 # Check whether --enable-datetime or --disable-datetime was given.
4235if test "${enable_datetime+set}" = set; then
4236 enableval="$enable_datetime"
e6cc62c6 4237
1e6feb95
VZ
4238 if test "$enableval" = yes; then
4239 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4240 else
4241 ac_cv_use_datetime='wxUSE_DATETIME=no'
4242 fi
e6cc62c6 4243
1e6feb95 4244else
e6cc62c6 4245
1e6feb95
VZ
4246 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
4253 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4254
e6cc62c6 4255fi;
1e6feb95
VZ
4256
4257 eval "$ac_cv_use_datetime"
4258 if test "$no_cache" != 1; then
4259 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4260 fi
4261
4262 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4263 echo "$as_me:$LINENO: result: yes" >&5
4264echo "${ECHO_T}yes" >&6
1e6feb95 4265 else
e6cc62c6
VS
4266 echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
1e6feb95 4268 fi
e6cc62c6 4269
1e6feb95 4270
5005acfe 4271 enablestring=
e6cc62c6
VS
4272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4273echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4274 no_cache=0
4275 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4276if test "${enable_stopwatch+set}" = set; then
4277 enableval="$enable_stopwatch"
e6cc62c6 4278
1e6feb95
VZ
4279 if test "$enableval" = yes; then
4280 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4281 else
4282 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4283 fi
e6cc62c6 4284
1e6feb95 4285else
e6cc62c6 4286
1e6feb95
VZ
4287 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4295
e6cc62c6 4296fi;
1e6feb95
VZ
4297
4298 eval "$ac_cv_use_stopwatch"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4304 echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6
1e6feb95 4306 else
e6cc62c6
VS
4307 echo "$as_me:$LINENO: result: no" >&5
4308echo "${ECHO_T}no" >&6
1e6feb95 4309 fi
e6cc62c6 4310
1e6feb95 4311
5005acfe 4312 enablestring=
e6cc62c6
VS
4313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4314echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4315 no_cache=0
eb4efbdc
VZ
4316 # Check whether --enable-dialupman or --disable-dialupman was given.
4317if test "${enable_dialupman+set}" = set; then
4318 enableval="$enable_dialupman"
e6cc62c6 4319
10f2d63a 4320 if test "$enableval" = yes; then
eb4efbdc 4321 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4322 else
eb4efbdc 4323 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4324 fi
e6cc62c6 4325
10f2d63a 4326else
e6cc62c6 4327
eb4efbdc 4328 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4329 if test "x$LINE" != x ; then
4330 eval "DEFAULT_$LINE"
4331 else
4332 no_cache=1
4333 fi
4334
eb4efbdc 4335 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4336
e6cc62c6 4337fi;
10f2d63a 4338
eb4efbdc 4339 eval "$ac_cv_use_dialupman"
10f2d63a 4340 if test "$no_cache" != 1; then
eb4efbdc 4341 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4342 fi
4343
eb4efbdc 4344 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4345 echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
10f2d63a 4347 else
e6cc62c6
VS
4348 echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6
10f2d63a 4350 fi
e6cc62c6 4351
10f2d63a 4352
5005acfe 4353 enablestring=
e6cc62c6
VS
4354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4355echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4356 no_cache=0
4357 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4358if test "${enable_apple_ieee+set}" = set; then
4359 enableval="$enable_apple_ieee"
e6cc62c6 4360
10f2d63a
VZ
4361 if test "$enableval" = yes; then
4362 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4363 else
4364 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4365 fi
e6cc62c6 4366
10f2d63a 4367else
e6cc62c6 4368
10f2d63a
VZ
4369 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4370 if test "x$LINE" != x ; then
4371 eval "DEFAULT_$LINE"
4372 else
4373 no_cache=1
4374 fi
4375
4376 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4377
e6cc62c6 4378fi;
10f2d63a
VZ
4379
4380 eval "$ac_cv_use_apple_ieee"
4381 if test "$no_cache" != 1; then
4382 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4383 fi
4384
4385 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4386 echo "$as_me:$LINENO: result: yes" >&5
4387echo "${ECHO_T}yes" >&6
10f2d63a 4388 else
e6cc62c6
VS
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
10f2d63a 4391 fi
e6cc62c6 4392
10f2d63a 4393
5005acfe 4394 enablestring=
e6cc62c6
VS
4395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4396echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4397 no_cache=0
1e6feb95
VZ
4398 # Check whether --enable-timer or --disable-timer was given.
4399if test "${enable_timer+set}" = set; then
4400 enableval="$enable_timer"
e6cc62c6 4401
10f2d63a 4402 if test "$enableval" = yes; then
1e6feb95 4403 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4404 else
1e6feb95 4405 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4406 fi
e6cc62c6 4407
10f2d63a 4408else
e6cc62c6 4409
1e6feb95 4410 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4411 if test "x$LINE" != x ; then
4412 eval "DEFAULT_$LINE"
4413 else
4414 no_cache=1
4415 fi
4416
1e6feb95 4417 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4418
e6cc62c6 4419fi;
10f2d63a 4420
1e6feb95 4421 eval "$ac_cv_use_timer"
10f2d63a 4422 if test "$no_cache" != 1; then
1e6feb95 4423 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4424 fi
4425
1e6feb95 4426 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4427 echo "$as_me:$LINENO: result: yes" >&5
4428echo "${ECHO_T}yes" >&6
10f2d63a 4429 else
e6cc62c6
VS
4430 echo "$as_me:$LINENO: result: no" >&5
4431echo "${ECHO_T}no" >&6
10f2d63a 4432 fi
e6cc62c6 4433
10f2d63a 4434
5005acfe 4435 enablestring=
e6cc62c6
VS
4436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4437echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4438 no_cache=0
4439 # Check whether --enable-wave or --disable-wave was given.
4440if test "${enable_wave+set}" = set; then
4441 enableval="$enable_wave"
e6cc62c6 4442
10f2d63a
VZ
4443 if test "$enableval" = yes; then
4444 ac_cv_use_wave='wxUSE_WAVE=yes'
4445 else
4446 ac_cv_use_wave='wxUSE_WAVE=no'
4447 fi
e6cc62c6 4448
10f2d63a 4449else
e6cc62c6 4450
10f2d63a
VZ
4451 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4452 if test "x$LINE" != x ; then
4453 eval "DEFAULT_$LINE"
4454 else
4455 no_cache=1
4456 fi
4457
4458 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4459
e6cc62c6 4460fi;
10f2d63a
VZ
4461
4462 eval "$ac_cv_use_wave"
4463 if test "$no_cache" != 1; then
4464 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4465 fi
4466
4467 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4468 echo "$as_me:$LINENO: result: yes" >&5
4469echo "${ECHO_T}yes" >&6
10f2d63a 4470 else
e6cc62c6
VS
4471 echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
10f2d63a 4473 fi
e6cc62c6 4474
10f2d63a 4475
5005acfe 4476 enablestring=
e6cc62c6
VS
4477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4478echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4479 no_cache=0
4480 # Check whether --enable-fraction or --disable-fraction was given.
4481if test "${enable_fraction+set}" = set; then
4482 enableval="$enable_fraction"
e6cc62c6 4483
10f2d63a
VZ
4484 if test "$enableval" = yes; then
4485 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4486 else
4487 ac_cv_use_fraction='wxUSE_FRACTION=no'
4488 fi
e6cc62c6 4489
10f2d63a 4490else
e6cc62c6 4491
10f2d63a
VZ
4492 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4493 if test "x$LINE" != x ; then
4494 eval "DEFAULT_$LINE"
4495 else
4496 no_cache=1
4497 fi
4498
4499 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4500
e6cc62c6 4501fi;
10f2d63a
VZ
4502
4503 eval "$ac_cv_use_fraction"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4509 echo "$as_me:$LINENO: result: yes" >&5
4510echo "${ECHO_T}yes" >&6
10f2d63a 4511 else
e6cc62c6
VS
4512 echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6
10f2d63a 4514 fi
e6cc62c6 4515
10f2d63a 4516
5005acfe 4517 enablestring=
e6cc62c6
VS
4518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4519echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4520 no_cache=0
4521 # Check whether --enable-dynlib or --disable-dynlib was given.
4522if test "${enable_dynlib+set}" = set; then
4523 enableval="$enable_dynlib"
e6cc62c6 4524
10f2d63a
VZ
4525 if test "$enableval" = yes; then
4526 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4527 else
4528 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4529 fi
e6cc62c6 4530
10f2d63a 4531else
e6cc62c6 4532
10f2d63a
VZ
4533 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4534 if test "x$LINE" != x ; then
4535 eval "DEFAULT_$LINE"
4536 else
4537 no_cache=1
4538 fi
4539
4540 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4541
e6cc62c6 4542fi;
10f2d63a
VZ
4543
4544 eval "$ac_cv_use_dynlib"
4545 if test "$no_cache" != 1; then
4546 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4547 fi
4548
4549 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4550 echo "$as_me:$LINENO: result: yes" >&5
4551echo "${ECHO_T}yes" >&6
10f2d63a 4552 else
e6cc62c6
VS
4553 echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6
10f2d63a 4555 fi
e6cc62c6 4556
10f2d63a 4557
5005acfe 4558 enablestring=
e6cc62c6
VS
4559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4560echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4561 no_cache=0
4562 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4563if test "${enable_dynamicloader+set}" = set; then
4564 enableval="$enable_dynamicloader"
e6cc62c6 4565
0b9ab0bd
RL
4566 if test "$enableval" = yes; then
4567 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4568 else
4569 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4570 fi
e6cc62c6 4571
0b9ab0bd 4572else
e6cc62c6 4573
0b9ab0bd
RL
4574 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4575 if test "x$LINE" != x ; then
4576 eval "DEFAULT_$LINE"
4577 else
4578 no_cache=1
4579 fi
4580
4581 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4582
e6cc62c6 4583fi;
0b9ab0bd
RL
4584
4585 eval "$ac_cv_use_dynamicloader"
4586 if test "$no_cache" != 1; then
4587 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4588 fi
4589
4590 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4591 echo "$as_me:$LINENO: result: yes" >&5
4592echo "${ECHO_T}yes" >&6
0b9ab0bd 4593 else
e6cc62c6
VS
4594 echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6
0b9ab0bd 4596 fi
e6cc62c6 4597
0b9ab0bd 4598
5005acfe 4599 enablestring=
e6cc62c6
VS
4600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4601echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4602 no_cache=0
4603 # Check whether --enable-longlong or --disable-longlong was given.
4604if test "${enable_longlong+set}" = set; then
4605 enableval="$enable_longlong"
e6cc62c6 4606
10f2d63a
VZ
4607 if test "$enableval" = yes; then
4608 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4609 else
4610 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4611 fi
e6cc62c6 4612
10f2d63a 4613else
e6cc62c6 4614
10f2d63a
VZ
4615 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4616 if test "x$LINE" != x ; then
4617 eval "DEFAULT_$LINE"
4618 else
4619 no_cache=1
4620 fi
4621
4622 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4623
e6cc62c6 4624fi;
10f2d63a
VZ
4625
4626 eval "$ac_cv_use_longlong"
4627 if test "$no_cache" != 1; then
4628 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4629 fi
4630
4631 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4632 echo "$as_me:$LINENO: result: yes" >&5
4633echo "${ECHO_T}yes" >&6
10f2d63a 4634 else
e6cc62c6
VS
4635 echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6
10f2d63a 4637 fi
e6cc62c6 4638
10f2d63a 4639
5005acfe 4640 enablestring=
e6cc62c6
VS
4641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4642echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4643 no_cache=0
4644 # Check whether --enable-geometry or --disable-geometry was given.
4645if test "${enable_geometry+set}" = set; then
4646 enableval="$enable_geometry"
e6cc62c6 4647
e8f65ba6
RR
4648 if test "$enableval" = yes; then
4649 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4650 else
4651 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4652 fi
e6cc62c6 4653
e8f65ba6 4654else
e6cc62c6 4655
e8f65ba6
RR
4656 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4664
e6cc62c6 4665fi;
e8f65ba6
RR
4666
4667 eval "$ac_cv_use_geometry"
4668 if test "$no_cache" != 1; then
4669 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4670 fi
4671
4672 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4673 echo "$as_me:$LINENO: result: yes" >&5
4674echo "${ECHO_T}yes" >&6
e8f65ba6 4675 else
e6cc62c6
VS
4676 echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
e8f65ba6 4678 fi
e6cc62c6 4679
e8f65ba6 4680
5005acfe 4681 enablestring=
e6cc62c6
VS
4682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4683echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4684 no_cache=0
4685 # Check whether --enable-log or --disable-log was given.
4686if test "${enable_log+set}" = set; then
4687 enableval="$enable_log"
e6cc62c6 4688
10f2d63a
VZ
4689 if test "$enableval" = yes; then
4690 ac_cv_use_log='wxUSE_LOG=yes'
4691 else
4692 ac_cv_use_log='wxUSE_LOG=no'
4693 fi
e6cc62c6 4694
10f2d63a 4695else
e6cc62c6 4696
10f2d63a
VZ
4697 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4698 if test "x$LINE" != x ; then
4699 eval "DEFAULT_$LINE"
4700 else
4701 no_cache=1
4702 fi
4703
4704 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4705
e6cc62c6 4706fi;
10f2d63a
VZ
4707
4708 eval "$ac_cv_use_log"
4709 if test "$no_cache" != 1; then
4710 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4711 fi
4712
4713 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4714 echo "$as_me:$LINENO: result: yes" >&5
4715echo "${ECHO_T}yes" >&6
10f2d63a 4716 else
e6cc62c6
VS
4717 echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6
10f2d63a 4719 fi
e6cc62c6 4720
10f2d63a 4721
5005acfe 4722 enablestring=
e6cc62c6
VS
4723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4724echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4725 no_cache=0
4726 # Check whether --enable-streams or --disable-streams was given.
4727if test "${enable_streams+set}" = set; then
4728 enableval="$enable_streams"
e6cc62c6 4729
10f2d63a
VZ
4730 if test "$enableval" = yes; then
4731 ac_cv_use_streams='wxUSE_STREAMS=yes'
4732 else
4733 ac_cv_use_streams='wxUSE_STREAMS=no'
4734 fi
e6cc62c6 4735
10f2d63a 4736else
e6cc62c6 4737
10f2d63a
VZ
4738 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4746
e6cc62c6 4747fi;
10f2d63a
VZ
4748
4749 eval "$ac_cv_use_streams"
4750 if test "$no_cache" != 1; then
4751 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4752 fi
4753
4754 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4755 echo "$as_me:$LINENO: result: yes" >&5
4756echo "${ECHO_T}yes" >&6
10f2d63a 4757 else
e6cc62c6
VS
4758 echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6
10f2d63a 4760 fi
e6cc62c6 4761
10f2d63a 4762
5005acfe 4763 enablestring=
e6cc62c6
VS
4764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4765echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4766 no_cache=0
4767 # Check whether --enable-file or --disable-file was given.
4768if test "${enable_file+set}" = set; then
4769 enableval="$enable_file"
e6cc62c6 4770
10f2d63a
VZ
4771 if test "$enableval" = yes; then
4772 ac_cv_use_file='wxUSE_FILE=yes'
4773 else
4774 ac_cv_use_file='wxUSE_FILE=no'
4775 fi
e6cc62c6 4776
10f2d63a 4777else
e6cc62c6 4778
10f2d63a
VZ
4779 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4780 if test "x$LINE" != x ; then
4781 eval "DEFAULT_$LINE"
4782 else
4783 no_cache=1
4784 fi
4785
4786 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4787
e6cc62c6 4788fi;
10f2d63a
VZ
4789
4790 eval "$ac_cv_use_file"
4791 if test "$no_cache" != 1; then
4792 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4793 fi
4794
4795 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4796 echo "$as_me:$LINENO: result: yes" >&5
4797echo "${ECHO_T}yes" >&6
10f2d63a 4798 else
e6cc62c6
VS
4799 echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6
10f2d63a 4801 fi
e6cc62c6 4802
10f2d63a 4803
5005acfe 4804 enablestring=
e6cc62c6
VS
4805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4806echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4807 no_cache=0
1e6feb95
VZ
4808 # Check whether --enable-ffile or --disable-ffile was given.
4809if test "${enable_ffile+set}" = set; then
4810 enableval="$enable_ffile"
e6cc62c6 4811
10f2d63a 4812 if test "$enableval" = yes; then
1e6feb95 4813 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4814 else
1e6feb95 4815 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4816 fi
e6cc62c6 4817
10f2d63a 4818else
e6cc62c6 4819
1e6feb95 4820 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
1e6feb95 4827 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4828
e6cc62c6 4829fi;
10f2d63a 4830
1e6feb95 4831 eval "$ac_cv_use_ffile"
10f2d63a 4832 if test "$no_cache" != 1; then
1e6feb95 4833 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4834 fi
4835
1e6feb95 4836 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4837 echo "$as_me:$LINENO: result: yes" >&5
4838echo "${ECHO_T}yes" >&6
10f2d63a 4839 else
e6cc62c6
VS
4840 echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6
10f2d63a 4842 fi
e6cc62c6 4843
10f2d63a 4844
5005acfe 4845 enablestring=
e6cc62c6
VS
4846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4847echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4848 no_cache=0
4849 # Check whether --enable-textbuf or --disable-textbuf was given.
4850if test "${enable_textbuf+set}" = set; then
4851 enableval="$enable_textbuf"
e6cc62c6 4852
a3a584a7
VZ
4853 if test "$enableval" = yes; then
4854 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4855 else
4856 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4857 fi
e6cc62c6 4858
a3a584a7 4859else
e6cc62c6 4860
a3a584a7
VZ
4861 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4862 if test "x$LINE" != x ; then
4863 eval "DEFAULT_$LINE"
4864 else
4865 no_cache=1
4866 fi
4867
4868 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4869
e6cc62c6 4870fi;
a3a584a7
VZ
4871
4872 eval "$ac_cv_use_textbuf"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4878 echo "$as_me:$LINENO: result: yes" >&5
4879echo "${ECHO_T}yes" >&6
a3a584a7 4880 else
e6cc62c6
VS
4881 echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
a3a584a7 4883 fi
e6cc62c6 4884
a3a584a7 4885
5005acfe 4886 enablestring=
e6cc62c6
VS
4887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4888echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4889 no_cache=0
1e6feb95
VZ
4890 # Check whether --enable-textfile or --disable-textfile was given.
4891if test "${enable_textfile+set}" = set; then
4892 enableval="$enable_textfile"
e6cc62c6 4893
10f2d63a 4894 if test "$enableval" = yes; then
1e6feb95 4895 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4896 else
1e6feb95 4897 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4898 fi
e6cc62c6 4899
10f2d63a 4900else
e6cc62c6 4901
1e6feb95 4902 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
1e6feb95 4909 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4910
e6cc62c6 4911fi;
10f2d63a 4912
1e6feb95 4913 eval "$ac_cv_use_textfile"
10f2d63a 4914 if test "$no_cache" != 1; then
1e6feb95 4915 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4916 fi
4917
1e6feb95 4918 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4919 echo "$as_me:$LINENO: result: yes" >&5
4920echo "${ECHO_T}yes" >&6
10f2d63a 4921 else
e6cc62c6
VS
4922 echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
10f2d63a 4924 fi
e6cc62c6 4925
10f2d63a 4926
5005acfe 4927 enablestring=
e6cc62c6
VS
4928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4929echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4930 no_cache=0
1e6feb95
VZ
4931 # Check whether --enable-fontmap or --disable-fontmap was given.
4932if test "${enable_fontmap+set}" = set; then
4933 enableval="$enable_fontmap"
e6cc62c6 4934
10f2d63a 4935 if test "$enableval" = yes; then
1e6feb95 4936 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4937 else
1e6feb95 4938 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4939 fi
e6cc62c6 4940
10f2d63a 4941else
e6cc62c6 4942
1e6feb95 4943 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
1e6feb95 4950 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4951
e6cc62c6 4952fi;
10f2d63a 4953
1e6feb95 4954 eval "$ac_cv_use_fontmap"
10f2d63a 4955 if test "$no_cache" != 1; then
1e6feb95 4956 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4957 fi
4958
1e6feb95 4959 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4960 echo "$as_me:$LINENO: result: yes" >&5
4961echo "${ECHO_T}yes" >&6
10f2d63a 4962 else
e6cc62c6
VS
4963 echo "$as_me:$LINENO: result: no" >&5
4964echo "${ECHO_T}no" >&6
10f2d63a 4965 fi
e6cc62c6 4966
10f2d63a 4967
5005acfe 4968 enablestring=
e6cc62c6
VS
4969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4970echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4971 no_cache=0
1e6feb95
VZ
4972 # Check whether --enable-unicode or --disable-unicode was given.
4973if test "${enable_unicode+set}" = set; then
4974 enableval="$enable_unicode"
e6cc62c6 4975
1e6feb95
VZ
4976 if test "$enableval" = yes; then
4977 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4978 else
4979 ac_cv_use_unicode='wxUSE_UNICODE=no'
4980 fi
e6cc62c6 4981
1e6feb95 4982else
e6cc62c6 4983
1e6feb95
VZ
4984 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4992
e6cc62c6 4993fi;
1e6feb95
VZ
4994
4995 eval "$ac_cv_use_unicode"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5001 echo "$as_me:$LINENO: result: yes" >&5
5002echo "${ECHO_T}yes" >&6
1e6feb95 5003 else
e6cc62c6
VS
5004 echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
1e6feb95 5006 fi
e6cc62c6 5007
1e6feb95 5008
5005acfe 5009 enablestring=
e6cc62c6
VS
5010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5011echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5012 no_cache=0
5013 # Check whether --enable-mslu or --disable-mslu was given.
5014if test "${enable_mslu+set}" = set; then
5015 enableval="$enable_mslu"
e6cc62c6 5016
a72a4bfa
VS
5017 if test "$enableval" = yes; then
5018 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5019 else
5020 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5021 fi
e6cc62c6 5022
a72a4bfa 5023else
e6cc62c6 5024
a72a4bfa
VS
5025 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5026 if test "x$LINE" != x ; then
5027 eval "DEFAULT_$LINE"
5028 else
5029 no_cache=1
5030 fi
5031
5032 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5033
e6cc62c6 5034fi;
a72a4bfa
VS
5035
5036 eval "$ac_cv_use_mslu"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5042 echo "$as_me:$LINENO: result: yes" >&5
5043echo "${ECHO_T}yes" >&6
a72a4bfa 5044 else
e6cc62c6
VS
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
a72a4bfa 5047 fi
e6cc62c6 5048
a72a4bfa 5049
5005acfe 5050 enablestring=
e6cc62c6
VS
5051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5052echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5053 no_cache=0
5054 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5055if test "${enable_wxprintfv+set}" = set; then
5056 enableval="$enable_wxprintfv"
e6cc62c6 5057
1e6feb95 5058 if test "$enableval" = yes; then
10f2d63a
VZ
5059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5060 else
5061 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5062 fi
e6cc62c6 5063
10f2d63a 5064else
e6cc62c6 5065
10f2d63a
VZ
5066 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5074
e6cc62c6 5075fi;
10f2d63a
VZ
5076
5077 eval "$ac_cv_use_wxprintfv"
5078 if test "$no_cache" != 1; then
5079 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5080 fi
5081
5082 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5083 echo "$as_me:$LINENO: result: yes" >&5
5084echo "${ECHO_T}yes" >&6
10f2d63a 5085 else
e6cc62c6
VS
5086 echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6
10f2d63a 5088 fi
e6cc62c6 5089
10f2d63a 5090
5005acfe 5091 enablestring=
e6cc62c6
VS
5092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5093echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5094 no_cache=0
5095 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5096if test "${enable_std_iostreams+set}" = set; then
5097 enableval="$enable_std_iostreams"
e6cc62c6 5098
10f2d63a
VZ
5099 if test "$enableval" = yes; then
5100 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5101 else
5102 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5103 fi
e6cc62c6 5104
10f2d63a 5105else
e6cc62c6 5106
10f2d63a
VZ
5107 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5115
e6cc62c6 5116fi;
10f2d63a
VZ
5117
5118 eval "$ac_cv_use_std_iostreams"
5119 if test "$no_cache" != 1; then
5120 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5121 fi
5122
5123 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5124 echo "$as_me:$LINENO: result: yes" >&5
5125echo "${ECHO_T}yes" >&6
10f2d63a 5126 else
e6cc62c6
VS
5127 echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6
10f2d63a 5129 fi
e6cc62c6 5130
10f2d63a 5131
5005acfe 5132 enablestring=
e6cc62c6
VS
5133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5134echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5135 no_cache=0
5136 # Check whether --enable-filesystem or --disable-filesystem was given.
5137if test "${enable_filesystem+set}" = set; then
5138 enableval="$enable_filesystem"
e6cc62c6 5139
24528b0c
VS
5140 if test "$enableval" = yes; then
5141 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5142 else
5143 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5144 fi
e6cc62c6 5145
24528b0c 5146else
e6cc62c6 5147
24528b0c
VS
5148 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
5155 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5156
e6cc62c6 5157fi;
24528b0c
VS
5158
5159 eval "$ac_cv_use_filesystem"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5165 echo "$as_me:$LINENO: result: yes" >&5
5166echo "${ECHO_T}yes" >&6
24528b0c 5167 else
e6cc62c6
VS
5168 echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
24528b0c 5170 fi
e6cc62c6 5171
24528b0c 5172
5005acfe 5173 enablestring=
e6cc62c6
VS
5174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5175echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5176 no_cache=0
5177 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5178if test "${enable_fs_inet+set}" = set; then
5179 enableval="$enable_fs_inet"
e6cc62c6 5180
10f2d63a
VZ
5181 if test "$enableval" = yes; then
5182 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5183 else
5184 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5185 fi
e6cc62c6 5186
10f2d63a 5187else
e6cc62c6 5188
10f2d63a
VZ
5189 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5197
e6cc62c6 5198fi;
10f2d63a
VZ
5199
5200 eval "$ac_cv_use_fs_inet"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5206 echo "$as_me:$LINENO: result: yes" >&5
5207echo "${ECHO_T}yes" >&6
10f2d63a 5208 else
e6cc62c6
VS
5209 echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
10f2d63a 5211 fi
e6cc62c6 5212
10f2d63a 5213
5005acfe 5214 enablestring=
e6cc62c6
VS
5215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5216echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5217 no_cache=0
5218 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5219if test "${enable_fs_zip+set}" = set; then
5220 enableval="$enable_fs_zip"
e6cc62c6 5221
10f2d63a
VZ
5222 if test "$enableval" = yes; then
5223 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5224 else
5225 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5226 fi
e6cc62c6 5227
10f2d63a 5228else
e6cc62c6 5229
10f2d63a
VZ
5230 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5238
e6cc62c6 5239fi;
10f2d63a
VZ
5240
5241 eval "$ac_cv_use_fs_zip"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5247 echo "$as_me:$LINENO: result: yes" >&5
5248echo "${ECHO_T}yes" >&6
10f2d63a 5249 else
e6cc62c6
VS
5250 echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
10f2d63a 5252 fi
e6cc62c6 5253
10f2d63a 5254
5005acfe 5255 enablestring=
e6cc62c6
VS
5256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5257echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5258 no_cache=0
5259 # Check whether --enable-zipstream or --disable-zipstream was given.
5260if test "${enable_zipstream+set}" = set; then
5261 enableval="$enable_zipstream"
e6cc62c6 5262
10f2d63a
VZ
5263 if test "$enableval" = yes; then
5264 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5265 else
5266 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5267 fi
e6cc62c6 5268
10f2d63a 5269else
e6cc62c6 5270
10f2d63a
VZ
5271 LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5279
e6cc62c6 5280fi;
10f2d63a
VZ
5281
5282 eval "$ac_cv_use_zipstream"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5288 echo "$as_me:$LINENO: result: yes" >&5
5289echo "${ECHO_T}yes" >&6
10f2d63a 5290 else
e6cc62c6
VS
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
10f2d63a 5293 fi
e6cc62c6 5294
8284b0c5 5295
52127426 5296
5005acfe 5297 enablestring=
e6cc62c6
VS
5298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5299echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5300 no_cache=0
5301 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5302if test "${enable_catch_segvs+set}" = set; then
5303 enableval="$enable_catch_segvs"
e6cc62c6 5304
eb4efbdc
VZ
5305 if test "$enableval" = yes; then
5306 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5307 else
5308 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5309 fi
e6cc62c6 5310
eb4efbdc 5311else
e6cc62c6 5312
eb4efbdc
VZ
5313 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5314 if test "x$LINE" != x ; then
5315 eval "DEFAULT_$LINE"
5316 else
5317 no_cache=1
5318 fi
5319
5320 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5321
e6cc62c6 5322fi;
eb4efbdc
VZ
5323
5324 eval "$ac_cv_use_catch_segvs"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5330 echo "$as_me:$LINENO: result: yes" >&5
5331echo "${ECHO_T}yes" >&6
eb4efbdc 5332 else
e6cc62c6
VS
5333 echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
eb4efbdc 5335 fi
e6cc62c6 5336
eb4efbdc 5337
5005acfe 5338 enablestring=
e6cc62c6
VS
5339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5340echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5341 no_cache=0
5342 # Check whether --enable-snglinst or --disable-snglinst was given.
5343if test "${enable_snglinst+set}" = set; then
5344 enableval="$enable_snglinst"
e6cc62c6 5345
4f3c5f06
VZ
5346 if test "$enableval" = yes; then
5347 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5348 else
5349 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5350 fi
e6cc62c6 5351
4f3c5f06 5352else
e6cc62c6 5353
4f3c5f06
VZ
5354 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5362
e6cc62c6 5363fi;
4f3c5f06
VZ
5364
5365 eval "$ac_cv_use_snglinst"
5366 if test "$no_cache" != 1; then
5367 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5368 fi
5369
5370 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5371 echo "$as_me:$LINENO: result: yes" >&5
5372echo "${ECHO_T}yes" >&6
4f3c5f06 5373 else
e6cc62c6
VS
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
4f3c5f06 5376 fi
e6cc62c6 5377
52127426 5378
8284b0c5 5379
5005acfe 5380 enablestring=
e6cc62c6
VS
5381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5382echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5383 no_cache=0
5384 # Check whether --enable-mimetype or --disable-mimetype was given.
5385if test "${enable_mimetype+set}" = set; then
5386 enableval="$enable_mimetype"
e6cc62c6 5387
1e6feb95
VZ
5388 if test "$enableval" = yes; then
5389 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5390 else
5391 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5392 fi
e6cc62c6 5393
1e6feb95 5394else
e6cc62c6 5395
1e6feb95
VZ
5396 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5397 if test "x$LINE" != x ; then
5398 eval "DEFAULT_$LINE"
5399 else
5400 no_cache=1
5401 fi
5402
5403 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5404
e6cc62c6 5405fi;
1e6feb95
VZ
5406
5407 eval "$ac_cv_use_mimetype"
5408 if test "$no_cache" != 1; then
5409 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5410 fi
5411
5412 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5413 echo "$as_me:$LINENO: result: yes" >&5
5414echo "${ECHO_T}yes" >&6
1e6feb95 5415 else
e6cc62c6
VS
5416 echo "$as_me:$LINENO: result: no" >&5
5417echo "${ECHO_T}no" >&6
1e6feb95 5418 fi
e6cc62c6 5419
1e6feb95 5420
5005acfe 5421 enablestring=
e6cc62c6
VS
5422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5423echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5424 no_cache=0
5425 # Check whether --enable-system_options or --disable-system_options was given.
5426if test "${enable_system_options+set}" = set; then
5427 enableval="$enable_system_options"
e6cc62c6 5428
3e44f09d
VZ
5429 if test "$enableval" = yes; then
5430 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5431 else
5432 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5433 fi
e6cc62c6 5434
3e44f09d 5435else
e6cc62c6 5436
3e44f09d
VZ
5437 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5438 if test "x$LINE" != x ; then
5439 eval "DEFAULT_$LINE"
5440 else
5441 no_cache=1
5442 fi
5443
5444 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5445
e6cc62c6 5446fi;
3e44f09d
VZ
5447
5448 eval "$ac_cv_use_system_options"
5449 if test "$no_cache" != 1; then
5450 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5451 fi
5452
5453 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5454 echo "$as_me:$LINENO: result: yes" >&5
5455echo "${ECHO_T}yes" >&6
3e44f09d 5456 else
e6cc62c6
VS
5457 echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6
3e44f09d 5459 fi
e6cc62c6 5460
8284b0c5 5461
52127426 5462
5005acfe 5463 enablestring=
e6cc62c6
VS
5464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5465echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5466 no_cache=0
5467 # Check whether --enable-url or --disable-url was given.
5468if test "${enable_url+set}" = set; then
5469 enableval="$enable_url"
e6cc62c6 5470
4cdb0ab0
VS
5471 if test "$enableval" = yes; then
5472 ac_cv_use_url='wxUSE_URL=yes'
5473 else
5474 ac_cv_use_url='wxUSE_URL=no'
5475 fi
e6cc62c6 5476
4cdb0ab0 5477else
e6cc62c6 5478
4cdb0ab0
VS
5479 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5480 if test "x$LINE" != x ; then
5481 eval "DEFAULT_$LINE"
5482 else
5483 no_cache=1
5484 fi
5485
5486 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5487
e6cc62c6 5488fi;
4cdb0ab0
VS
5489
5490 eval "$ac_cv_use_url"
5491 if test "$no_cache" != 1; then
5492 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5493 fi
5494
5495 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5496 echo "$as_me:$LINENO: result: yes" >&5
5497echo "${ECHO_T}yes" >&6
4cdb0ab0 5498 else
e6cc62c6
VS
5499 echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
4cdb0ab0 5501 fi
e6cc62c6 5502
4cdb0ab0 5503
5005acfe 5504 enablestring=
e6cc62c6
VS
5505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5506echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5507 no_cache=0
5508 # Check whether --enable-protocol or --disable-protocol was given.
5509if test "${enable_protocol+set}" = set; then
5510 enableval="$enable_protocol"
e6cc62c6 5511
4cdb0ab0
VS
5512 if test "$enableval" = yes; then
5513 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5514 else
5515 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5516 fi
e6cc62c6 5517
4cdb0ab0 5518else
e6cc62c6 5519
4cdb0ab0
VS
5520 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5521 if test "x$LINE" != x ; then
5522 eval "DEFAULT_$LINE"
5523 else
5524 no_cache=1
5525 fi
5526
5527 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5528
e6cc62c6 5529fi;
4cdb0ab0
VS
5530
5531 eval "$ac_cv_use_protocol"
5532 if test "$no_cache" != 1; then
5533 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5534 fi
5535
5536 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5537 echo "$as_me:$LINENO: result: yes" >&5
5538echo "${ECHO_T}yes" >&6
4cdb0ab0 5539 else
e6cc62c6
VS
5540 echo "$as_me:$LINENO: result: no" >&5
5541echo "${ECHO_T}no" >&6
4cdb0ab0 5542 fi
e6cc62c6 5543
4cdb0ab0 5544
5005acfe 5545 enablestring=
e6cc62c6
VS
5546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5547echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5548 no_cache=0
5549 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5550if test "${enable_protocol_http+set}" = set; then
5551 enableval="$enable_protocol_http"
e6cc62c6 5552
4cdb0ab0
VS
5553 if test "$enableval" = yes; then
5554 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5555 else
5556 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5557 fi
e6cc62c6 5558
4cdb0ab0 5559else
e6cc62c6 5560
4cdb0ab0
VS
5561 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5562 if test "x$LINE" != x ; then
5563 eval "DEFAULT_$LINE"
5564 else
5565 no_cache=1
5566 fi
5567
5568 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5569
e6cc62c6 5570fi;
4cdb0ab0
VS
5571
5572 eval "$ac_cv_use_protocol_http"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5578 echo "$as_me:$LINENO: result: yes" >&5
5579echo "${ECHO_T}yes" >&6
4cdb0ab0 5580 else
e6cc62c6
VS
5581 echo "$as_me:$LINENO: result: no" >&5
5582echo "${ECHO_T}no" >&6
4cdb0ab0 5583 fi
e6cc62c6 5584
4cdb0ab0 5585
5005acfe 5586 enablestring=
e6cc62c6
VS
5587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5588echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5589 no_cache=0
5590 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5591if test "${enable_protocol_ftp+set}" = set; then
5592 enableval="$enable_protocol_ftp"
e6cc62c6 5593
4cdb0ab0
VS
5594 if test "$enableval" = yes; then
5595 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5596 else
5597 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5598 fi
e6cc62c6 5599
4cdb0ab0 5600else
e6cc62c6 5601
4cdb0ab0
VS
5602 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5603 if test "x$LINE" != x ; then
5604 eval "DEFAULT_$LINE"
5605 else
5606 no_cache=1
5607 fi
5608
5609 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5610
e6cc62c6 5611fi;
4cdb0ab0
VS
5612
5613 eval "$ac_cv_use_protocol_ftp"
5614 if test "$no_cache" != 1; then
5615 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5616 fi
5617
5618 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5619 echo "$as_me:$LINENO: result: yes" >&5
5620echo "${ECHO_T}yes" >&6
4cdb0ab0 5621 else
e6cc62c6
VS
5622 echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6
4cdb0ab0 5624 fi
e6cc62c6 5625
4cdb0ab0 5626
5005acfe 5627 enablestring=
e6cc62c6
VS
5628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5629echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5630 no_cache=0
5631 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5632if test "${enable_protocol_file+set}" = set; then
5633 enableval="$enable_protocol_file"
e6cc62c6 5634
4cdb0ab0
VS
5635 if test "$enableval" = yes; then
5636 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5637 else
5638 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5639 fi
e6cc62c6 5640
4cdb0ab0 5641else
e6cc62c6 5642
4cdb0ab0
VS
5643 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5644 if test "x$LINE" != x ; then
5645 eval "DEFAULT_$LINE"
5646 else
5647 no_cache=1
5648 fi
5649
5650 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5651
e6cc62c6 5652fi;
4cdb0ab0
VS
5653
5654 eval "$ac_cv_use_protocol_file"
5655 if test "$no_cache" != 1; then
5656 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5657 fi
5658
5659 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5660 echo "$as_me:$LINENO: result: yes" >&5
5661echo "${ECHO_T}yes" >&6
4cdb0ab0 5662 else
e6cc62c6
VS
5663 echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6
4cdb0ab0 5665 fi
e6cc62c6 5666
52127426 5667
8284b0c5
MB
5668
5669
5670
5005acfe 5671 enablestring=
e6cc62c6
VS
5672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5673echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5674 no_cache=0
5675 # Check whether --enable-threads or --disable-threads was given.
5676if test "${enable_threads+set}" = set; then
5677 enableval="$enable_threads"
e6cc62c6 5678
10f2d63a
VZ
5679 if test "$enableval" = yes; then
5680 ac_cv_use_threads='wxUSE_THREADS=yes'
5681 else
5682 ac_cv_use_threads='wxUSE_THREADS=no'
5683 fi
e6cc62c6 5684
10f2d63a 5685else
e6cc62c6 5686
10f2d63a
VZ
5687 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5695
e6cc62c6 5696fi;
10f2d63a
VZ
5697
5698 eval "$ac_cv_use_threads"
5699 if test "$no_cache" != 1; then
5700 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5701 fi
5702
5703 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5704 echo "$as_me:$LINENO: result: yes" >&5
5705echo "${ECHO_T}yes" >&6
10f2d63a 5706 else
e6cc62c6
VS
5707 echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6
10f2d63a 5709 fi
e6cc62c6 5710
10f2d63a 5711
b12915c1
VZ
5712if test "$wxUSE_GUI" = "yes"; then
5713
8284b0c5
MB
5714
5715
5005acfe 5716 enablestring=
e6cc62c6
VS
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5719 no_cache=0
5720 # Check whether --enable-docview or --disable-docview was given.
5721if test "${enable_docview+set}" = set; then
5722 enableval="$enable_docview"
e6cc62c6 5723
10f2d63a
VZ
5724 if test "$enableval" = yes; then
5725 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5726 else
5727 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5728 fi
e6cc62c6 5729
10f2d63a 5730else
e6cc62c6 5731
10f2d63a
VZ
5732 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5740
e6cc62c6 5741fi;
10f2d63a
VZ
5742
5743 eval "$ac_cv_use_docview"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
10f2d63a 5751 else
e6cc62c6
VS
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
10f2d63a 5754 fi
e6cc62c6 5755
10f2d63a 5756
5005acfe 5757 enablestring=
e6cc62c6
VS
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5760 no_cache=0
5761 # Check whether --enable-help or --disable-help was given.
5762if test "${enable_help+set}" = set; then
5763 enableval="$enable_help"
e6cc62c6 5764
10f2d63a
VZ
5765 if test "$enableval" = yes; then
5766 ac_cv_use_help='wxUSE_HELP=yes'
5767 else
5768 ac_cv_use_help='wxUSE_HELP=no'
5769 fi
e6cc62c6 5770
10f2d63a 5771else
e6cc62c6 5772
10f2d63a
VZ
5773 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5781
e6cc62c6 5782fi;
10f2d63a
VZ
5783
5784 eval "$ac_cv_use_help"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
10f2d63a 5792 else
e6cc62c6
VS
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
10f2d63a 5795 fi
e6cc62c6 5796
10f2d63a 5797
5005acfe 5798 enablestring=
e6cc62c6
VS
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5801 no_cache=0
5802 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5803if test "${enable_mshtmlhelp+set}" = set; then
5804 enableval="$enable_mshtmlhelp"
e6cc62c6 5805
29fd3c0c
VS
5806 if test "$enableval" = yes; then
5807 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5808 else
5809 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5810 fi
e6cc62c6 5811
29fd3c0c 5812else
e6cc62c6 5813
29fd3c0c
VS
5814 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5822
e6cc62c6 5823fi;
29fd3c0c
VS
5824
5825 eval "$ac_cv_use_mshtmlhelp"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5831 echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
29fd3c0c 5833 else
e6cc62c6
VS
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
29fd3c0c 5836 fi
e6cc62c6 5837
29fd3c0c 5838
5005acfe 5839 enablestring=
e6cc62c6
VS
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5842 no_cache=0
5843 # Check whether --enable-html or --disable-html was given.
5844if test "${enable_html+set}" = set; then
5845 enableval="$enable_html"
e6cc62c6 5846
3379ed37
VZ
5847 if test "$enableval" = yes; then
5848 ac_cv_use_html='wxUSE_HTML=yes'
5849 else
5850 ac_cv_use_html='wxUSE_HTML=no'
5851 fi
e6cc62c6 5852
3379ed37 5853else
e6cc62c6 5854
3379ed37
VZ
5855 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5863
e6cc62c6 5864fi;
3379ed37
VZ
5865
5866 eval "$ac_cv_use_html"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5872 echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
3379ed37 5874 else
e6cc62c6
VS
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
3379ed37 5877 fi
e6cc62c6 5878
3379ed37 5879
5005acfe 5880 enablestring=
e6cc62c6
VS
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5883 no_cache=0
5884 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5885if test "${enable_htmlhelp+set}" = set; then
5886 enableval="$enable_htmlhelp"
e6cc62c6 5887
3379ed37
VZ
5888 if test "$enableval" = yes; then
5889 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5890 else
5891 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5892 fi
e6cc62c6 5893
3379ed37 5894else
e6cc62c6 5895
3379ed37
VZ
5896 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5904
e6cc62c6 5905fi;
3379ed37
VZ
5906
5907 eval "$ac_cv_use_htmlhelp"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5913 echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
3379ed37 5915 else
e6cc62c6
VS
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
3379ed37 5918 fi
e6cc62c6 5919
3379ed37 5920
5005acfe 5921 enablestring=
e6cc62c6
VS
5922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5923echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5924 no_cache=0
5925 # Check whether --enable-constraints or --disable-constraints was given.
5926if test "${enable_constraints+set}" = set; then
5927 enableval="$enable_constraints"
e6cc62c6 5928
10f2d63a
VZ
5929 if test "$enableval" = yes; then
5930 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5931 else
5932 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5933 fi
e6cc62c6 5934
10f2d63a 5935else
e6cc62c6 5936
10f2d63a
VZ
5937 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5945
e6cc62c6 5946fi;
10f2d63a
VZ
5947
5948 eval "$ac_cv_use_constraints"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5954 echo "$as_me:$LINENO: result: yes" >&5
5955echo "${ECHO_T}yes" >&6
10f2d63a 5956 else
e6cc62c6
VS
5957 echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6
10f2d63a 5959 fi
e6cc62c6 5960
10f2d63a 5961
5005acfe 5962 enablestring=
e6cc62c6
VS
5963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5964echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5965 no_cache=0
5966 # Check whether --enable-printarch or --disable-printarch was given.
5967if test "${enable_printarch+set}" = set; then
5968 enableval="$enable_printarch"
e6cc62c6 5969
10f2d63a
VZ
5970 if test "$enableval" = yes; then
5971 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5972 else
5973 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5974 fi
e6cc62c6 5975
10f2d63a 5976else
e6cc62c6 5977
10f2d63a
VZ
5978 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5979 if test "x$LINE" != x ; then
5980 eval "DEFAULT_$LINE"
5981 else
5982 no_cache=1
5983 fi
5984
5985 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5986
e6cc62c6 5987fi;
10f2d63a
VZ
5988
5989 eval "$ac_cv_use_printarch"
5990 if test "$no_cache" != 1; then
5991 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5992 fi
5993
5994 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
5995 echo "$as_me:$LINENO: result: yes" >&5
5996echo "${ECHO_T}yes" >&6
10f2d63a 5997 else
e6cc62c6
VS
5998 echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6
10f2d63a 6000 fi
e6cc62c6 6001
10f2d63a 6002
5005acfe 6003 enablestring=
e6cc62c6
VS
6004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6005echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6006 no_cache=0
6007 # Check whether --enable-mdi or --disable-mdi was given.
6008if test "${enable_mdi+set}" = set; then
6009 enableval="$enable_mdi"
e6cc62c6 6010
10f2d63a
VZ
6011 if test "$enableval" = yes; then
6012 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6013 else
6014 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6015 fi
e6cc62c6 6016
10f2d63a 6017else
e6cc62c6 6018
10f2d63a
VZ
6019 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6020 if test "x$LINE" != x ; then
6021 eval "DEFAULT_$LINE"
6022 else
6023 no_cache=1
6024 fi
6025
6026 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6027
e6cc62c6 6028fi;
10f2d63a
VZ
6029
6030 eval "$ac_cv_use_mdi"
6031 if test "$no_cache" != 1; then
6032 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6033 fi
6034
6035 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6036 echo "$as_me:$LINENO: result: yes" >&5
6037echo "${ECHO_T}yes" >&6
10f2d63a 6038 else
e6cc62c6
VS
6039 echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6
10f2d63a 6041 fi
e6cc62c6 6042
698dcdb6 6043
5005acfe 6044 enablestring=
e6cc62c6
VS
6045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6046echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6047 no_cache=0
6048 # Check whether --enable-loggui or --disable-loggui was given.
6049if test "${enable_loggui+set}" = set; then
6050 enableval="$enable_loggui"
e6cc62c6 6051
1e6feb95
VZ
6052 if test "$enableval" = yes; then
6053 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6054 else
6055 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6056 fi
e6cc62c6 6057
1e6feb95 6058else
e6cc62c6 6059
1e6feb95
VZ
6060 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6068
e6cc62c6 6069fi;
1e6feb95
VZ
6070
6071 eval "$ac_cv_use_loggui"
6072 if test "$no_cache" != 1; then
6073 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6074 fi
6075
6076 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6077 echo "$as_me:$LINENO: result: yes" >&5
6078echo "${ECHO_T}yes" >&6
1e6feb95 6079 else
e6cc62c6
VS
6080 echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
1e6feb95 6082 fi
e6cc62c6 6083
1e6feb95 6084
5005acfe 6085 enablestring=
e6cc62c6
VS
6086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6087echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6088 no_cache=0
6089 # Check whether --enable-logwin or --disable-logwin was given.
6090if test "${enable_logwin+set}" = set; then
6091 enableval="$enable_logwin"
e6cc62c6 6092
1e6feb95
VZ
6093 if test "$enableval" = yes; then
6094 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6095 else
6096 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6097 fi
e6cc62c6 6098
1e6feb95 6099else
e6cc62c6 6100
1e6feb95
VZ
6101 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6102 if test "x$LINE" != x ; then
6103 eval "DEFAULT_$LINE"
6104 else
6105 no_cache=1
6106 fi
6107
6108 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6109
e6cc62c6 6110fi;
1e6feb95
VZ
6111
6112 eval "$ac_cv_use_logwin"
6113 if test "$no_cache" != 1; then
6114 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6115 fi
6116
6117 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6118 echo "$as_me:$LINENO: result: yes" >&5
6119echo "${ECHO_T}yes" >&6
1e6feb95 6120 else
e6cc62c6
VS
6121 echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
1e6feb95 6123 fi
e6cc62c6 6124
1e6feb95 6125
5005acfe 6126 enablestring=
e6cc62c6
VS
6127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6128echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6129 no_cache=0
6130 # Check whether --enable-logdialog or --disable-logdialog was given.
6131if test "${enable_logdialog+set}" = set; then
6132 enableval="$enable_logdialog"
e6cc62c6 6133
69d27ff7
MB
6134 if test "$enableval" = yes; then
6135 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6136 else
6137 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6138 fi
e6cc62c6 6139
69d27ff7 6140else
e6cc62c6 6141
69d27ff7
MB
6142 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6143 if test "x$LINE" != x ; then
6144 eval "DEFAULT_$LINE"
6145 else
6146 no_cache=1
6147 fi
6148
6149 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6150
e6cc62c6 6151fi;
69d27ff7
MB
6152
6153 eval "$ac_cv_use_logdialog"
6154 if test "$no_cache" != 1; then
6155 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6156 fi
6157
6158 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6159 echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6
69d27ff7 6161 else
e6cc62c6
VS
6162 echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
69d27ff7 6164 fi
e6cc62c6 6165
8284b0c5 6166
52127426 6167
5005acfe 6168 enablestring=
e6cc62c6
VS
6169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6170echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6171 no_cache=0
6172 # Check whether --enable-postscript or --disable-postscript was given.
6173if test "${enable_postscript+set}" = set; then
6174 enableval="$enable_postscript"
e6cc62c6 6175
10f2d63a
VZ
6176 if test "$enableval" = yes; then
6177 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6178 else
6179 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6180 fi
e6cc62c6 6181
10f2d63a 6182else
e6cc62c6 6183
10f2d63a
VZ
6184 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6192
e6cc62c6 6193fi;
10f2d63a
VZ
6194
6195 eval "$ac_cv_use_postscript"
6196 if test "$no_cache" != 1; then
6197 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6198 fi
6199
6200 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6201 echo "$as_me:$LINENO: result: yes" >&5
6202echo "${ECHO_T}yes" >&6
10f2d63a 6203 else
e6cc62c6
VS
6204 echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6
10f2d63a 6206 fi
e6cc62c6 6207
8284b0c5
MB
6208
6209
52127426 6210
8284b0c5 6211
5005acfe 6212 enablestring=
e6cc62c6
VS
6213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6214echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6215 no_cache=0
3c907f20
VZ
6216 # Check whether --enable-prologio or --disable-prologio was given.
6217if test "${enable_prologio+set}" = set; then
6218 enableval="$enable_prologio"
e6cc62c6 6219
10f2d63a 6220 if test "$enableval" = yes; then
3c907f20 6221 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6222 else
3c907f20 6223 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6224 fi
e6cc62c6 6225
10f2d63a 6226else
e6cc62c6 6227
3c907f20 6228 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
3c907f20 6235 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6236
e6cc62c6 6237fi;
10f2d63a 6238
3c907f20 6239 eval "$ac_cv_use_prologio"
10f2d63a 6240 if test "$no_cache" != 1; then
3c907f20 6241 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6242 fi
6243
3c907f20 6244 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6245 echo "$as_me:$LINENO: result: yes" >&5
6246echo "${ECHO_T}yes" >&6
10f2d63a 6247 else
e6cc62c6
VS
6248 echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6
10f2d63a 6250 fi
e6cc62c6 6251
8284b0c5 6252
5005acfe 6253 enablestring=
e6cc62c6
VS
6254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6255echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6256 no_cache=0
3c907f20
VZ
6257 # Check whether --enable-resources or --disable-resources was given.
6258if test "${enable_resources+set}" = set; then
6259 enableval="$enable_resources"
e6cc62c6 6260
10f2d63a 6261 if test "$enableval" = yes; then
3c907f20 6262 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6263 else
3c907f20 6264 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6265 fi
e6cc62c6 6266
10f2d63a 6267else
e6cc62c6 6268
3c907f20 6269 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6270 if test "x$LINE" != x ; then
6271 eval "DEFAULT_$LINE"
6272 else
6273 no_cache=1
6274 fi
6275
3c907f20 6276 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6277
e6cc62c6 6278fi;
10f2d63a 6279
3c907f20 6280 eval "$ac_cv_use_resources"
10f2d63a 6281 if test "$no_cache" != 1; then
3c907f20 6282 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6283 fi
6284
3c907f20 6285 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6286 echo "$as_me:$LINENO: result: yes" >&5
6287echo "${ECHO_T}yes" >&6
10f2d63a 6288 else
e6cc62c6
VS
6289 echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6
10f2d63a 6291 fi
e6cc62c6 6292
8284b0c5
MB
6293
6294
52127426 6295
5005acfe 6296 enablestring=
e6cc62c6
VS
6297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6298echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6299 no_cache=0
6300 # Check whether --enable-clipboard or --disable-clipboard was given.
6301if test "${enable_clipboard+set}" = set; then
6302 enableval="$enable_clipboard"
e6cc62c6 6303
10f2d63a
VZ
6304 if test "$enableval" = yes; then
6305 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6306 else
6307 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6308 fi
e6cc62c6 6309
10f2d63a 6310else
e6cc62c6 6311
10f2d63a
VZ
6312 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6320
e6cc62c6 6321fi;
10f2d63a
VZ
6322
6323 eval "$ac_cv_use_clipboard"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6329 echo "$as_me:$LINENO: result: yes" >&5
6330echo "${ECHO_T}yes" >&6
10f2d63a 6331 else
e6cc62c6
VS
6332 echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6
10f2d63a 6334 fi
e6cc62c6 6335
10f2d63a 6336
5005acfe 6337 enablestring=
e6cc62c6
VS
6338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6339echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6340 no_cache=0
6341 # Check whether --enable-dnd or --disable-dnd was given.
6342if test "${enable_dnd+set}" = set; then
6343 enableval="$enable_dnd"
e6cc62c6 6344
10f2d63a
VZ
6345 if test "$enableval" = yes; then
6346 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6347 else
6348 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6349 fi
e6cc62c6 6350
10f2d63a 6351else
e6cc62c6 6352
10f2d63a
VZ
6353 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6354 if test "x$LINE" != x ; then
6355 eval "DEFAULT_$LINE"
6356 else
6357 no_cache=1
6358 fi
6359
6360 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6361
e6cc62c6 6362fi;
10f2d63a
VZ
6363
6364 eval "$ac_cv_use_dnd"
6365 if test "$no_cache" != 1; then
6366 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6367 fi
6368
6369 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6370 echo "$as_me:$LINENO: result: yes" >&5
6371echo "${ECHO_T}yes" >&6
10f2d63a 6372 else
e6cc62c6
VS
6373 echo "$as_me:$LINENO: result: no" >&5
6374echo "${ECHO_T}no" >&6
10f2d63a 6375 fi
e6cc62c6 6376
10f2d63a 6377
5005acfe 6378 enablestring=
e6cc62c6
VS
6379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6380echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6381 no_cache=0
6382 # Check whether --enable-metafile or --disable-metafile was given.
6383if test "${enable_metafile+set}" = set; then
6384 enableval="$enable_metafile"
e6cc62c6 6385
b64f0a5f
RL
6386 if test "$enableval" = yes; then
6387 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6388 else
6389 ac_cv_use_metafile='wxUSE_METAFILE=no'
6390 fi
e6cc62c6 6391
b64f0a5f 6392else
e6cc62c6 6393
b64f0a5f
RL
6394 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6395 if test "x$LINE" != x ; then
6396 eval "DEFAULT_$LINE"
6397 else
6398 no_cache=1
6399 fi
6400
6401 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6402
e6cc62c6 6403fi;
b64f0a5f
RL
6404
6405 eval "$ac_cv_use_metafile"
6406 if test "$no_cache" != 1; then
6407 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6408 fi
6409
6410 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6411 echo "$as_me:$LINENO: result: yes" >&5
6412echo "${ECHO_T}yes" >&6
b64f0a5f 6413 else
e6cc62c6
VS
6414 echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6
b64f0a5f 6416 fi
e6cc62c6 6417
52127426 6418
8284b0c5 6419
52127426 6420
8284b0c5 6421
5005acfe 6422 enablestring=
e6cc62c6
VS
6423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6424echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6425 no_cache=0
6426 # Check whether --enable-controls or --disable-controls was given.
6427if test "${enable_controls+set}" = set; then
6428 enableval="$enable_controls"
e6cc62c6 6429
10f2d63a
VZ
6430 if test "$enableval" = yes; then
6431 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6432 else
6433 ac_cv_use_controls='wxUSE_CONTROLS=no'
6434 fi
e6cc62c6 6435
10f2d63a 6436else
e6cc62c6 6437
10f2d63a
VZ
6438 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6439 if test "x$LINE" != x ; then
6440 eval "DEFAULT_$LINE"
6441 else
6442 no_cache=1
6443 fi
6444
6445 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6446
e6cc62c6 6447fi;
10f2d63a
VZ
6448
6449 eval "$ac_cv_use_controls"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6455 echo "$as_me:$LINENO: result: yes" >&5
6456echo "${ECHO_T}yes" >&6
10f2d63a 6457 else
e6cc62c6
VS
6458 echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6
10f2d63a 6460 fi
e6cc62c6 6461
10f2d63a
VZ
6462
6463if test "$wxUSE_CONTROLS" = "yes"; then
6464 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6465 DEFAULT_wxUSE_BMPBUTTON=yes
6466 DEFAULT_wxUSE_BUTTON=yes
6467 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6468 DEFAULT_wxUSE_CARET=yes
6469 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6470 DEFAULT_wxUSE_CHECKBOX=yes
6471 DEFAULT_wxUSE_CHECKLISTBOX=yes
6472 DEFAULT_wxUSE_CHOICE=yes
6473 DEFAULT_wxUSE_GAUGE=yes
6474 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6475 DEFAULT_wxUSE_IMAGLIST=yes
6476 DEFAULT_wxUSE_LISTBOX=yes
6477 DEFAULT_wxUSE_LISTCTRL=yes
6478 DEFAULT_wxUSE_NOTEBOOK=yes
6479 DEFAULT_wxUSE_RADIOBOX=yes
6480 DEFAULT_wxUSE_RADIOBTN=yes
6481 DEFAULT_wxUSE_SASH=yes
6482 DEFAULT_wxUSE_SCROLLBAR=yes
6483 DEFAULT_wxUSE_SLIDER=yes
6484 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6485 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6486 DEFAULT_wxUSE_SPLITTER=yes
6487 DEFAULT_wxUSE_STATBMP=yes
6488 DEFAULT_wxUSE_STATBOX=yes
6489 DEFAULT_wxUSE_STATLINE=yes
6490 DEFAULT_wxUSE_STATUSBAR=yes
6491 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6492 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6493 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6494 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6495 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6496 DEFAULT_wxUSE_TOOLTIPS=yes
6497 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6498 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6499 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6500elif test "$wxUSE_CONTROLS" = "no"; then
6501 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6502 DEFAULT_wxUSE_BMPBUTTON=no
6503 DEFAULT_wxUSE_BUTTON=no
6504 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6505 DEFAULT_wxUSE_CARET=no
6506 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6507 DEFAULT_wxUSE_CHECKBOX=no
6508 DEFAULT_wxUSE_CHECKLISTBOX=no
6509 DEFAULT_wxUSE_CHOICE=no
6510 DEFAULT_wxUSE_GAUGE=no
6511 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6512 DEFAULT_wxUSE_IMAGLIST=no
6513 DEFAULT_wxUSE_LISTBOX=no
6514 DEFAULT_wxUSE_LISTCTRL=no
6515 DEFAULT_wxUSE_NOTEBOOK=no
6516 DEFAULT_wxUSE_RADIOBOX=no
6517 DEFAULT_wxUSE_RADIOBTN=no
6518 DEFAULT_wxUSE_SASH=no
6519 DEFAULT_wxUSE_SCROLLBAR=no
6520 DEFAULT_wxUSE_SLIDER=no
6521 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6522 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6523 DEFAULT_wxUSE_SPLITTER=no
6524 DEFAULT_wxUSE_STATBMP=no
6525 DEFAULT_wxUSE_STATBOX=no
6526 DEFAULT_wxUSE_STATLINE=no
6527 DEFAULT_wxUSE_STATUSBAR=no
6528 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6529 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6530 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6531 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6532 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6533 DEFAULT_wxUSE_TOOLTIPS=no
6534 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6535 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6536 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6537fi
6538
ac0c4cc3
DE
6539## FIXME: This is a blatant hack
6540if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6541 wxUSE_PRINTING_ARCHITECTURE=no
6542 wxUSE_HELP=no
6543 wxUSE_CLIPBOARD=no
6544 wxUSE_DRAG_AND_DROP=no
6545 wxUSE_DATAOBJ=no
8b389fab
DE
6546 # Generic notebook requires tab dialog
6547 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6548 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3
DE
6549 DEFAULT_wxUSE_GAUGE=no
6550 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3
DE
6551 DEFAULT_wxUSE_COMBOBOX=no
6552 DEFAULT_wxUSE_CALCTRL=no
6553 DEFAULT_wxUSE_SPINBTN=no
6554 DEFAULT_wxUSE_SPINCTRL=no
6555 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3
DE
6556 DEFAULT_wxUSE_DRAGIMAGE=no
6557 DEFAULT_wxUSE_FINDREPLDLG=no
6558 DEFAULT_wxUSE_FONTDLG=no
6559 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
6560 DEFAULT_wxUSE_NUMBERDLG=no
6561 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
6562 DEFAULT_wxUSE_SASH=no
6563 DEFAULT_wxUSE_SPLITTER=no
6564 DEFAULT_wxUSE_WIZARDDLG=no
6565 DEFAULT_wxUSE_SPLITTER=no
6566 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
6567fi
6568
8284b0c5 6569
5005acfe 6570 enablestring=
e6cc62c6
VS
6571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6572echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6573 no_cache=0
6574 # Check whether --enable-accel or --disable-accel was given.
6575if test "${enable_accel+set}" = set; then
6576 enableval="$enable_accel"
e6cc62c6 6577
10f2d63a
VZ
6578 if test "$enableval" = yes; then
6579 ac_cv_use_accel='wxUSE_ACCEL=yes'
6580 else
6581 ac_cv_use_accel='wxUSE_ACCEL=no'
6582 fi
e6cc62c6 6583
10f2d63a 6584else
e6cc62c6 6585
10f2d63a
VZ
6586 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6587 if test "x$LINE" != x ; then
6588 eval "DEFAULT_$LINE"
6589 else
6590 no_cache=1
6591 fi
6592
6593 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6594
e6cc62c6 6595fi;
10f2d63a
VZ
6596
6597 eval "$ac_cv_use_accel"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6603 echo "$as_me:$LINENO: result: yes" >&5
6604echo "${ECHO_T}yes" >&6
10f2d63a 6605 else
e6cc62c6
VS
6606 echo "$as_me:$LINENO: result: no" >&5
6607echo "${ECHO_T}no" >&6
10f2d63a 6608 fi
e6cc62c6 6609
10f2d63a 6610
5005acfe 6611 enablestring=
e6cc62c6
VS
6612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6613echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6614 no_cache=0
1e6feb95
VZ
6615 # Check whether --enable-button or --disable-button was given.
6616if test "${enable_button+set}" = set; then
6617 enableval="$enable_button"
e6cc62c6 6618
10f2d63a 6619 if test "$enableval" = yes; then
1e6feb95 6620 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6621 else
1e6feb95 6622 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6623 fi
e6cc62c6 6624
10f2d63a 6625else
e6cc62c6 6626
1e6feb95 6627 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6628 if test "x$LINE" != x ; then
6629 eval "DEFAULT_$LINE"
6630 else
6631 no_cache=1
6632 fi
6633
1e6feb95 6634 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6635
e6cc62c6 6636fi;
10f2d63a 6637
1e6feb95 6638 eval "$ac_cv_use_button"
10f2d63a 6639 if test "$no_cache" != 1; then
1e6feb95 6640 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6641 fi
6642
1e6feb95 6643 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6644 echo "$as_me:$LINENO: result: yes" >&5
6645echo "${ECHO_T}yes" >&6
10f2d63a 6646 else
e6cc62c6
VS
6647 echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6
10f2d63a 6649 fi
e6cc62c6 6650
10f2d63a 6651
5005acfe 6652 enablestring=
e6cc62c6
VS
6653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6654echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6655 no_cache=0
6656 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6657if test "${enable_bmpbutton+set}" = set; then
6658 enableval="$enable_bmpbutton"
e6cc62c6 6659
10f2d63a
VZ
6660 if test "$enableval" = yes; then
6661 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6662 else
6663 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6664 fi
e6cc62c6 6665
10f2d63a 6666else
e6cc62c6 6667
10f2d63a
VZ
6668 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6676
e6cc62c6 6677fi;
10f2d63a
VZ
6678
6679 eval "$ac_cv_use_bmpbutton"
6680 if test "$no_cache" != 1; then
6681 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6682 fi
6683
6684 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6685 echo "$as_me:$LINENO: result: yes" >&5
6686echo "${ECHO_T}yes" >&6
10f2d63a 6687 else
e6cc62c6
VS
6688 echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6
10f2d63a 6690 fi
e6cc62c6 6691
10f2d63a 6692
5005acfe 6693 enablestring=
e6cc62c6
VS
6694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6695echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6696 no_cache=0
6697 # Check whether --enable-calendar or --disable-calendar was given.
6698if test "${enable_calendar+set}" = set; then
6699 enableval="$enable_calendar"
e6cc62c6 6700
1e6feb95
VZ
6701 if test "$enableval" = yes; then
6702 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6703 else
6704 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6705 fi
e6cc62c6 6706
1e6feb95 6707else
e6cc62c6 6708
1e6feb95
VZ
6709 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6717
e6cc62c6 6718fi;
1e6feb95
VZ
6719
6720 eval "$ac_cv_use_calendar"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6726 echo "$as_me:$LINENO: result: yes" >&5
6727echo "${ECHO_T}yes" >&6
1e6feb95 6728 else
e6cc62c6
VS
6729 echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6
1e6feb95 6731 fi
e6cc62c6 6732
1e6feb95 6733
5005acfe 6734 enablestring=
e6cc62c6
VS
6735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6736echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6737 no_cache=0
6738 # Check whether --enable-caret or --disable-caret was given.
6739if test "${enable_caret+set}" = set; then
6740 enableval="$enable_caret"
e6cc62c6 6741
1e6feb95
VZ
6742 if test "$enableval" = yes; then
6743 ac_cv_use_caret='wxUSE_CARET=yes'
6744 else
6745 ac_cv_use_caret='wxUSE_CARET=no'
6746 fi
e6cc62c6 6747
1e6feb95 6748else
e6cc62c6 6749
1e6feb95
VZ
6750 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6751 if test "x$LINE" != x ; then
6752 eval "DEFAULT_$LINE"
6753 else
6754 no_cache=1
6755 fi
6756
6757 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6758
e6cc62c6 6759fi;
1e6feb95
VZ
6760
6761 eval "$ac_cv_use_caret"
6762 if test "$no_cache" != 1; then
6763 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6764 fi
6765
6766 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6767 echo "$as_me:$LINENO: result: yes" >&5
6768echo "${ECHO_T}yes" >&6
1e6feb95 6769 else
e6cc62c6
VS
6770 echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6
1e6feb95 6772 fi
e6cc62c6 6773
1e6feb95 6774
5005acfe 6775 enablestring=
e6cc62c6
VS
6776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6777echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6778 no_cache=0
6779 # Check whether --enable-checkbox or --disable-checkbox was given.
6780if test "${enable_checkbox+set}" = set; then
6781 enableval="$enable_checkbox"
e6cc62c6 6782
10f2d63a
VZ
6783 if test "$enableval" = yes; then
6784 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6785 else
6786 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6787 fi
e6cc62c6 6788
10f2d63a 6789else
e6cc62c6 6790
10f2d63a
VZ
6791 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6792 if test "x$LINE" != x ; then
6793 eval "DEFAULT_$LINE"
6794 else
6795 no_cache=1
6796 fi
6797
6798 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6799
e6cc62c6 6800fi;
10f2d63a
VZ
6801
6802 eval "$ac_cv_use_checkbox"
6803 if test "$no_cache" != 1; then
6804 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6805 fi
6806
6807 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6808 echo "$as_me:$LINENO: result: yes" >&5
6809echo "${ECHO_T}yes" >&6
10f2d63a 6810 else
e6cc62c6
VS
6811 echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6
10f2d63a 6813 fi
e6cc62c6 6814
10f2d63a 6815
5005acfe 6816 enablestring=
e6cc62c6
VS
6817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6818echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6819 no_cache=0
6820 # Check whether --enable-checklst or --disable-checklst was given.
6821if test "${enable_checklst+set}" = set; then
6822 enableval="$enable_checklst"
e6cc62c6 6823
10f2d63a
VZ
6824 if test "$enableval" = yes; then
6825 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6826 else
6827 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6828 fi
e6cc62c6 6829
10f2d63a 6830else
e6cc62c6 6831
10f2d63a
VZ
6832 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6833 if test "x$LINE" != x ; then
6834 eval "DEFAULT_$LINE"
6835 else
6836 no_cache=1
6837 fi
6838
6839 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6840
e6cc62c6 6841fi;
10f2d63a
VZ
6842
6843 eval "$ac_cv_use_checklst"
6844 if test "$no_cache" != 1; then
6845 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6846 fi
6847
6848 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6849 echo "$as_me:$LINENO: result: yes" >&5
6850echo "${ECHO_T}yes" >&6
10f2d63a 6851 else
e6cc62c6
VS
6852 echo "$as_me:$LINENO: result: no" >&5
6853echo "${ECHO_T}no" >&6
10f2d63a 6854 fi
e6cc62c6 6855
10f2d63a 6856
5005acfe 6857 enablestring=
e6cc62c6
VS
6858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6859echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6860 no_cache=0
6861 # Check whether --enable-choice or --disable-choice was given.
6862if test "${enable_choice+set}" = set; then
6863 enableval="$enable_choice"
e6cc62c6 6864
10f2d63a
VZ
6865 if test "$enableval" = yes; then
6866 ac_cv_use_choice='wxUSE_CHOICE=yes'
6867 else
6868 ac_cv_use_choice='wxUSE_CHOICE=no'
6869 fi
e6cc62c6 6870
10f2d63a 6871else
e6cc62c6 6872
10f2d63a
VZ
6873 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6881
e6cc62c6 6882fi;
10f2d63a
VZ
6883
6884 eval "$ac_cv_use_choice"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6887 fi
6888
6889 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6890 echo "$as_me:$LINENO: result: yes" >&5
6891echo "${ECHO_T}yes" >&6
10f2d63a 6892 else
e6cc62c6
VS
6893 echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6
10f2d63a 6895 fi
e6cc62c6 6896
10f2d63a 6897
5005acfe 6898 enablestring=
e6cc62c6
VS
6899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6900echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6901 no_cache=0
6902 # Check whether --enable-combobox or --disable-combobox was given.
6903if test "${enable_combobox+set}" = set; then
6904 enableval="$enable_combobox"
e6cc62c6 6905
10f2d63a
VZ
6906 if test "$enableval" = yes; then
6907 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6908 else
6909 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6910 fi
e6cc62c6 6911
10f2d63a 6912else
e6cc62c6 6913
10f2d63a
VZ
6914 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6915 if test "x$LINE" != x ; then
6916 eval "DEFAULT_$LINE"
6917 else
6918 no_cache=1
6919 fi
6920
6921 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6922
e6cc62c6 6923fi;
10f2d63a
VZ
6924
6925 eval "$ac_cv_use_combobox"
6926 if test "$no_cache" != 1; then
6927 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6928 fi
6929
6930 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6931 echo "$as_me:$LINENO: result: yes" >&5
6932echo "${ECHO_T}yes" >&6
10f2d63a 6933 else
e6cc62c6
VS
6934 echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6
10f2d63a 6936 fi
e6cc62c6 6937
10f2d63a 6938
da494b40 6939 enablestring=
e6cc62c6
VS
6940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6941echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6942 no_cache=0
6943 # Check whether --enable-display or --disable-display was given.
6944if test "${enable_display+set}" = set; then
6945 enableval="$enable_display"
e6cc62c6 6946
da494b40
MB
6947 if test "$enableval" = yes; then
6948 ac_cv_use_display='wxUSE_DISPLAY=yes'
6949 else
6950 ac_cv_use_display='wxUSE_DISPLAY=no'
6951 fi
e6cc62c6 6952
da494b40 6953else
e6cc62c6 6954
da494b40
MB
6955 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6956 if test "x$LINE" != x ; then
6957 eval "DEFAULT_$LINE"
6958 else
6959 no_cache=1
6960 fi
6961
6962 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6963
e6cc62c6 6964fi;
da494b40
MB
6965
6966 eval "$ac_cv_use_display"
6967 if test "$no_cache" != 1; then
6968 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6969 fi
6970
6971 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6972 echo "$as_me:$LINENO: result: yes" >&5
6973echo "${ECHO_T}yes" >&6
da494b40 6974 else
e6cc62c6
VS
6975 echo "$as_me:$LINENO: result: no" >&5
6976echo "${ECHO_T}no" >&6
da494b40 6977 fi
e6cc62c6 6978
da494b40 6979
5005acfe 6980 enablestring=
e6cc62c6
VS
6981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6982echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6983 no_cache=0
6984 # Check whether --enable-gauge or --disable-gauge was given.
6985if test "${enable_gauge+set}" = set; then
6986 enableval="$enable_gauge"
e6cc62c6 6987
10f2d63a
VZ
6988 if test "$enableval" = yes; then
6989 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6990 else
6991 ac_cv_use_gauge='wxUSE_GAUGE=no'
6992 fi
e6cc62c6 6993
10f2d63a 6994else
e6cc62c6 6995
10f2d63a
VZ
6996 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6997 if test "x$LINE" != x ; then
6998 eval "DEFAULT_$LINE"
6999 else
7000 no_cache=1
7001 fi
7002
7003 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7004
e6cc62c6 7005fi;
10f2d63a
VZ
7006
7007 eval "$ac_cv_use_gauge"
7008 if test "$no_cache" != 1; then
7009 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7010 fi
7011
7012 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7013 echo "$as_me:$LINENO: result: yes" >&5
7014echo "${ECHO_T}yes" >&6
10f2d63a 7015 else
e6cc62c6
VS
7016 echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6
10f2d63a 7018 fi
e6cc62c6 7019
10f2d63a 7020
5005acfe 7021 enablestring=
e6cc62c6
VS
7022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7023echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7024 no_cache=0
7025 # Check whether --enable-grid or --disable-grid was given.
7026if test "${enable_grid+set}" = set; then
7027 enableval="$enable_grid"
e6cc62c6 7028
10f2d63a
VZ
7029 if test "$enableval" = yes; then
7030 ac_cv_use_grid='wxUSE_GRID=yes'
7031 else
7032 ac_cv_use_grid='wxUSE_GRID=no'
7033 fi
e6cc62c6 7034
10f2d63a 7035else
e6cc62c6 7036
10f2d63a
VZ
7037 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7038 if test "x$LINE" != x ; then
7039 eval "DEFAULT_$LINE"
7040 else
7041 no_cache=1
7042 fi
7043
7044 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7045
e6cc62c6 7046fi;
10f2d63a
VZ
7047
7048 eval "$ac_cv_use_grid"
7049 if test "$no_cache" != 1; then
7050 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7051 fi
7052
7053 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7054 echo "$as_me:$LINENO: result: yes" >&5
7055echo "${ECHO_T}yes" >&6
10f2d63a 7056 else
e6cc62c6
VS
7057 echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6
10f2d63a 7059 fi
e6cc62c6 7060
10f2d63a 7061
5005acfe 7062 enablestring=
e6cc62c6
VS
7063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7064echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7065 no_cache=0
7066 # Check whether --enable-imaglist or --disable-imaglist was given.
7067if test "${enable_imaglist+set}" = set; then
7068 enableval="$enable_imaglist"
e6cc62c6 7069
10f2d63a
VZ
7070 if test "$enableval" = yes; then
7071 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7072 else
7073 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7074 fi
e6cc62c6 7075
10f2d63a 7076else
e6cc62c6 7077
10f2d63a
VZ
7078 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7079 if test "x$LINE" != x ; then
7080 eval "DEFAULT_$LINE"
7081 else
7082 no_cache=1
7083 fi
7084
7085 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7086
e6cc62c6 7087fi;
10f2d63a
VZ
7088
7089 eval "$ac_cv_use_imaglist"
7090 if test "$no_cache" != 1; then
7091 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7092 fi
7093
7094 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7095 echo "$as_me:$LINENO: result: yes" >&5
7096echo "${ECHO_T}yes" >&6
10f2d63a 7097 else
e6cc62c6
VS
7098 echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6
10f2d63a 7100 fi
e6cc62c6 7101
10f2d63a 7102
5005acfe 7103 enablestring=
e6cc62c6
VS
7104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7105echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7106 no_cache=0
7107 # Check whether --enable-listbox or --disable-listbox was given.
7108if test "${enable_listbox+set}" = set; then
7109 enableval="$enable_listbox"
e6cc62c6 7110
10f2d63a
VZ
7111 if test "$enableval" = yes; then
7112 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7113 else
7114 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7115 fi
e6cc62c6 7116
10f2d63a 7117else
e6cc62c6 7118
10f2d63a
VZ
7119 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7120 if test "x$LINE" != x ; then
7121 eval "DEFAULT_$LINE"
7122 else
7123 no_cache=1
7124 fi
7125
7126 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7127
e6cc62c6 7128fi;
10f2d63a
VZ
7129
7130 eval "$ac_cv_use_listbox"
7131 if test "$no_cache" != 1; then
7132 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7133 fi
7134
7135 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7136 echo "$as_me:$LINENO: result: yes" >&5
7137echo "${ECHO_T}yes" >&6
10f2d63a 7138 else
e6cc62c6
VS
7139 echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6
10f2d63a 7141 fi
e6cc62c6 7142
10f2d63a 7143
5005acfe 7144 enablestring=
e6cc62c6
VS
7145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7146echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7147 no_cache=0
7148 # Check whether --enable-listctrl or --disable-listctrl was given.
7149if test "${enable_listctrl+set}" = set; then
7150 enableval="$enable_listctrl"
e6cc62c6 7151
10f2d63a
VZ
7152 if test "$enableval" = yes; then
7153 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7154 else
7155 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7156 fi
e6cc62c6 7157
10f2d63a 7158else
e6cc62c6 7159
10f2d63a
VZ
7160 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7161 if test "x$LINE" != x ; then
7162 eval "DEFAULT_$LINE"
7163 else
7164 no_cache=1
7165 fi
7166
7167 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7168
e6cc62c6 7169fi;
10f2d63a
VZ
7170
7171 eval "$ac_cv_use_listctrl"
7172 if test "$no_cache" != 1; then
7173 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7174 fi
7175
7176 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7177 echo "$as_me:$LINENO: result: yes" >&5
7178echo "${ECHO_T}yes" >&6
10f2d63a 7179 else
e6cc62c6
VS
7180 echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6
10f2d63a 7182 fi
e6cc62c6 7183
10f2d63a 7184
5005acfe 7185 enablestring=
e6cc62c6
VS
7186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7187echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7188 no_cache=0
7189 # Check whether --enable-notebook or --disable-notebook was given.
7190if test "${enable_notebook+set}" = set; then
7191 enableval="$enable_notebook"
e6cc62c6 7192
10f2d63a
VZ
7193 if test "$enableval" = yes; then
7194 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7195 else
7196 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7197 fi
e6cc62c6 7198
10f2d63a 7199else
e6cc62c6 7200
10f2d63a
VZ
7201 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7202 if test "x$LINE" != x ; then
7203 eval "DEFAULT_$LINE"
7204 else
7205 no_cache=1
7206 fi
7207
7208 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7209
e6cc62c6 7210fi;
10f2d63a
VZ
7211
7212 eval "$ac_cv_use_notebook"
7213 if test "$no_cache" != 1; then
7214 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7215 fi
7216
7217 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7218 echo "$as_me:$LINENO: result: yes" >&5
7219echo "${ECHO_T}yes" >&6
10f2d63a 7220 else
e6cc62c6
VS
7221 echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6
10f2d63a 7223 fi
e6cc62c6 7224
10f2d63a 7225
5005acfe 7226 enablestring=
e6cc62c6
VS
7227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7228echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7229 no_cache=0
7230 # Check whether --enable-radiobox or --disable-radiobox was given.
7231if test "${enable_radiobox+set}" = set; then
7232 enableval="$enable_radiobox"
e6cc62c6 7233
10f2d63a
VZ
7234 if test "$enableval" = yes; then
7235 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7236 else
7237 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7238 fi
e6cc62c6 7239
10f2d63a 7240else
e6cc62c6 7241
10f2d63a
VZ
7242 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7243 if test "x$LINE" != x ; then
7244 eval "DEFAULT_$LINE"
7245 else
7246 no_cache=1
7247 fi
7248
7249 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7250
e6cc62c6 7251fi;
10f2d63a
VZ
7252
7253 eval "$ac_cv_use_radiobox"
7254 if test "$no_cache" != 1; then
7255 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7256 fi
7257
7258 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7259 echo "$as_me:$LINENO: result: yes" >&5
7260echo "${ECHO_T}yes" >&6
10f2d63a 7261 else
e6cc62c6
VS
7262 echo "$as_me:$LINENO: result: no" >&5
7263echo "${ECHO_T}no" >&6
10f2d63a 7264 fi
e6cc62c6 7265
10f2d63a 7266
5005acfe 7267 enablestring=
e6cc62c6
VS
7268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7269echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7270 no_cache=0
7271 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7272if test "${enable_radiobtn+set}" = set; then
7273 enableval="$enable_radiobtn"
e6cc62c6 7274
10f2d63a
VZ
7275 if test "$enableval" = yes; then
7276 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7277 else
7278 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7279 fi
e6cc62c6 7280
10f2d63a 7281else
e6cc62c6 7282
10f2d63a
VZ
7283 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7284 if test "x$LINE" != x ; then
7285 eval "DEFAULT_$LINE"
7286 else
7287 no_cache=1
7288 fi
7289
7290 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7291
e6cc62c6 7292fi;
10f2d63a
VZ
7293
7294 eval "$ac_cv_use_radiobtn"
7295 if test "$no_cache" != 1; then
7296 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7297 fi
7298
7299 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7300 echo "$as_me:$LINENO: result: yes" >&5
7301echo "${ECHO_T}yes" >&6
10f2d63a 7302 else
e6cc62c6
VS
7303 echo "$as_me:$LINENO: result: no" >&5
7304echo "${ECHO_T}no" >&6
10f2d63a 7305 fi
e6cc62c6 7306
10f2d63a 7307
5005acfe 7308 enablestring=
e6cc62c6
VS
7309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7310echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7311 no_cache=0
7312 # Check whether --enable-sash or --disable-sash was given.
7313if test "${enable_sash+set}" = set; then
7314 enableval="$enable_sash"
e6cc62c6 7315
10f2d63a
VZ
7316 if test "$enableval" = yes; then
7317 ac_cv_use_sash='wxUSE_SASH=yes'
7318 else
7319 ac_cv_use_sash='wxUSE_SASH=no'
7320 fi
e6cc62c6 7321
10f2d63a 7322else
e6cc62c6 7323
10f2d63a
VZ
7324 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7325 if test "x$LINE" != x ; then
7326 eval "DEFAULT_$LINE"
7327 else
7328 no_cache=1
7329 fi
7330
7331 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7332
e6cc62c6 7333fi;
10f2d63a
VZ
7334
7335 eval "$ac_cv_use_sash"
7336 if test "$no_cache" != 1; then
7337 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7338 fi
7339
7340 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7341 echo "$as_me:$LINENO: result: yes" >&5
7342echo "${ECHO_T}yes" >&6
10f2d63a 7343 else
e6cc62c6
VS
7344 echo "$as_me:$LINENO: result: no" >&5
7345echo "${ECHO_T}no" >&6
10f2d63a 7346 fi
e6cc62c6 7347
10f2d63a 7348
5005acfe 7349 enablestring=
e6cc62c6
VS
7350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7351echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7352 no_cache=0
7353 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7354if test "${enable_scrollbar+set}" = set; then
7355 enableval="$enable_scrollbar"
e6cc62c6 7356
10f2d63a
VZ
7357 if test "$enableval" = yes; then
7358 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7359 else
7360 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7361 fi
e6cc62c6 7362
10f2d63a 7363else
e6cc62c6 7364
10f2d63a
VZ
7365 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7366 if test "x$LINE" != x ; then
7367 eval "DEFAULT_$LINE"
7368 else
7369 no_cache=1
7370 fi
7371
7372 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7373
e6cc62c6 7374fi;
10f2d63a
VZ
7375
7376 eval "$ac_cv_use_scrollbar"
7377 if test "$no_cache" != 1; then
7378 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7379 fi
7380
7381 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7382 echo "$as_me:$LINENO: result: yes" >&5
7383echo "${ECHO_T}yes" >&6
10f2d63a 7384 else
e6cc62c6
VS
7385 echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6
10f2d63a 7387 fi
e6cc62c6 7388
10f2d63a 7389
5005acfe 7390 enablestring=
e6cc62c6
VS
7391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7392echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7393 no_cache=0
7394 # Check whether --enable-slider or --disable-slider was given.
7395if test "${enable_slider+set}" = set; then
7396 enableval="$enable_slider"
e6cc62c6 7397
10f2d63a
VZ
7398 if test "$enableval" = yes; then
7399 ac_cv_use_slider='wxUSE_SLIDER=yes'
7400 else
7401 ac_cv_use_slider='wxUSE_SLIDER=no'
7402 fi
e6cc62c6 7403
10f2d63a 7404else
e6cc62c6 7405
10f2d63a
VZ
7406 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7407 if test "x$LINE" != x ; then
7408 eval "DEFAULT_$LINE"
7409 else
7410 no_cache=1
7411 fi
7412
7413 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7414
e6cc62c6 7415fi;
10f2d63a
VZ
7416
7417 eval "$ac_cv_use_slider"
7418 if test "$no_cache" != 1; then
7419 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7420 fi
7421
7422 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7423 echo "$as_me:$LINENO: result: yes" >&5
7424echo "${ECHO_T}yes" >&6
10f2d63a 7425 else
e6cc62c6
VS
7426 echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6
10f2d63a 7428 fi
e6cc62c6 7429
10f2d63a 7430
5005acfe 7431 enablestring=
e6cc62c6
VS
7432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7433echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7434 no_cache=0
7435 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7436if test "${enable_spinbtn+set}" = set; then
7437 enableval="$enable_spinbtn"
e6cc62c6 7438
10f2d63a
VZ
7439 if test "$enableval" = yes; then
7440 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7441 else
7442 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7443 fi
e6cc62c6 7444
10f2d63a 7445else
e6cc62c6 7446
10f2d63a
VZ
7447 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7455
e6cc62c6 7456fi;
10f2d63a
VZ
7457
7458 eval "$ac_cv_use_spinbtn"
7459 if test "$no_cache" != 1; then
7460 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7461 fi
7462
7463 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7464 echo "$as_me:$LINENO: result: yes" >&5
7465echo "${ECHO_T}yes" >&6
10f2d63a 7466 else
e6cc62c6
VS
7467 echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6
10f2d63a 7469 fi
e6cc62c6 7470
10f2d63a 7471
5005acfe 7472 enablestring=
e6cc62c6
VS
7473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7474echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7475 no_cache=0
7476 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7477if test "${enable_spinctrl+set}" = set; then
7478 enableval="$enable_spinctrl"
e6cc62c6 7479
56cfaa52
RR
7480 if test "$enableval" = yes; then
7481 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7482 else
7483 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7484 fi
e6cc62c6 7485
56cfaa52 7486else
e6cc62c6 7487
56cfaa52
RR
7488 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7489 if test "x$LINE" != x ; then
7490 eval "DEFAULT_$LINE"
7491 else
7492 no_cache=1
7493 fi
7494
7495 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7496
e6cc62c6 7497fi;
56cfaa52
RR
7498
7499 eval "$ac_cv_use_spinctrl"
7500 if test "$no_cache" != 1; then
7501 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7502 fi
7503
7504 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7505 echo "$as_me:$LINENO: result: yes" >&5
7506echo "${ECHO_T}yes" >&6
56cfaa52 7507 else
e6cc62c6
VS
7508 echo "$as_me:$LINENO: result: no" >&5
7509echo "${ECHO_T}no" >&6
56cfaa52 7510 fi
e6cc62c6 7511
56cfaa52 7512
5005acfe 7513 enablestring=
e6cc62c6
VS
7514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7515echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7516 no_cache=0
7517 # Check whether --enable-splitter or --disable-splitter was given.
7518if test "${enable_splitter+set}" = set; then
7519 enableval="$enable_splitter"
e6cc62c6 7520
10f2d63a
VZ
7521 if test "$enableval" = yes; then
7522 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7523 else
7524 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7525 fi
e6cc62c6 7526
10f2d63a 7527else
e6cc62c6 7528
10f2d63a
VZ
7529 LINE=`grep "wxUSE_SPLITTER" ${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_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7537
e6cc62c6 7538fi;
10f2d63a
VZ
7539
7540 eval "$ac_cv_use_splitter"
7541 if test "$no_cache" != 1; then
7542 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7543 fi
7544
7545 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7546 echo "$as_me:$LINENO: result: yes" >&5
7547echo "${ECHO_T}yes" >&6
10f2d63a 7548 else
e6cc62c6
VS
7549 echo "$as_me:$LINENO: result: no" >&5
7550echo "${ECHO_T}no" >&6
10f2d63a 7551 fi
e6cc62c6 7552
10f2d63a 7553
5005acfe 7554 enablestring=
e6cc62c6
VS
7555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7556echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7557 no_cache=0
7558 # Check whether --enable-statbmp or --disable-statbmp was given.
7559if test "${enable_statbmp+set}" = set; then
7560 enableval="$enable_statbmp"
e6cc62c6 7561
10f2d63a
VZ
7562 if test "$enableval" = yes; then
7563 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7564 else
7565 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7566 fi
e6cc62c6 7567
10f2d63a 7568else
e6cc62c6 7569
10f2d63a
VZ
7570 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7571 if test "x$LINE" != x ; then
7572 eval "DEFAULT_$LINE"
7573 else
7574 no_cache=1
7575 fi
7576
7577 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7578
e6cc62c6 7579fi;
10f2d63a
VZ
7580
7581 eval "$ac_cv_use_statbmp"
7582 if test "$no_cache" != 1; then
7583 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7584 fi
7585
7586 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7587 echo "$as_me:$LINENO: result: yes" >&5
7588echo "${ECHO_T}yes" >&6
10f2d63a 7589 else
e6cc62c6
VS
7590 echo "$as_me:$LINENO: result: no" >&5
7591echo "${ECHO_T}no" >&6
10f2d63a 7592 fi
e6cc62c6 7593
10f2d63a 7594
5005acfe 7595 enablestring=
e6cc62c6
VS
7596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7597echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7598 no_cache=0
7599 # Check whether --enable-statbox or --disable-statbox was given.
7600if test "${enable_statbox+set}" = set; then
7601 enableval="$enable_statbox"
e6cc62c6 7602
10f2d63a
VZ
7603 if test "$enableval" = yes; then
7604 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7605 else
7606 ac_cv_use_statbox='wxUSE_STATBOX=no'
7607 fi
e6cc62c6 7608
10f2d63a 7609else
e6cc62c6 7610
10f2d63a
VZ
7611 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7612 if test "x$LINE" != x ; then
7613 eval "DEFAULT_$LINE"
7614 else
7615 no_cache=1
7616 fi
7617
7618 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7619
e6cc62c6 7620fi;
10f2d63a
VZ
7621
7622 eval "$ac_cv_use_statbox"
7623 if test "$no_cache" != 1; then
7624 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7625 fi
7626
7627 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7628 echo "$as_me:$LINENO: result: yes" >&5
7629echo "${ECHO_T}yes" >&6
10f2d63a 7630 else
e6cc62c6
VS
7631 echo "$as_me:$LINENO: result: no" >&5
7632echo "${ECHO_T}no" >&6
10f2d63a 7633 fi
e6cc62c6 7634
10f2d63a 7635
5005acfe 7636 enablestring=
e6cc62c6
VS
7637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7638echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7639 no_cache=0
7640 # Check whether --enable-statline or --disable-statline was given.
7641if test "${enable_statline+set}" = set; then
7642 enableval="$enable_statline"
e6cc62c6 7643
10f2d63a
VZ
7644 if test "$enableval" = yes; then
7645 ac_cv_use_statline='wxUSE_STATLINE=yes'
7646 else
7647 ac_cv_use_statline='wxUSE_STATLINE=no'
7648 fi
e6cc62c6 7649
10f2d63a 7650else
e6cc62c6 7651
10f2d63a
VZ
7652 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7653 if test "x$LINE" != x ; then
7654 eval "DEFAULT_$LINE"
7655 else
7656 no_cache=1
7657 fi
7658
7659 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7660
e6cc62c6 7661fi;
10f2d63a
VZ
7662
7663 eval "$ac_cv_use_statline"
7664 if test "$no_cache" != 1; then
7665 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7666 fi
7667
7668 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7669 echo "$as_me:$LINENO: result: yes" >&5
7670echo "${ECHO_T}yes" >&6
10f2d63a 7671 else
e6cc62c6
VS
7672 echo "$as_me:$LINENO: result: no" >&5
7673echo "${ECHO_T}no" >&6
10f2d63a 7674 fi
e6cc62c6 7675
10f2d63a 7676
5005acfe 7677 enablestring=
e6cc62c6
VS
7678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7679echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7680 no_cache=0
7681 # Check whether --enable-stattext or --disable-stattext was given.
7682if test "${enable_stattext+set}" = set; then
7683 enableval="$enable_stattext"
e6cc62c6 7684
1e6feb95
VZ
7685 if test "$enableval" = yes; then
7686 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7687 else
7688 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7689 fi
e6cc62c6 7690
1e6feb95 7691else
e6cc62c6 7692
1e6feb95
VZ
7693 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7694 if test "x$LINE" != x ; then
7695 eval "DEFAULT_$LINE"
7696 else
7697 no_cache=1
7698 fi
7699
7700 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7701
e6cc62c6 7702fi;
1e6feb95
VZ
7703
7704 eval "$ac_cv_use_stattext"
7705 if test "$no_cache" != 1; then
7706 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7707 fi
7708
7709 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7710 echo "$as_me:$LINENO: result: yes" >&5
7711echo "${ECHO_T}yes" >&6
1e6feb95 7712 else
e6cc62c6
VS
7713 echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6
1e6feb95 7715 fi
e6cc62c6 7716
1e6feb95 7717
5005acfe 7718 enablestring=
e6cc62c6
VS
7719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7720echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7721 no_cache=0
7722 # Check whether --enable-statusbar or --disable-statusbar was given.
7723if test "${enable_statusbar+set}" = set; then
7724 enableval="$enable_statusbar"
e6cc62c6 7725
10f2d63a
VZ
7726 if test "$enableval" = yes; then
7727 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7728 else
7729 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7730 fi
e6cc62c6 7731
10f2d63a 7732else
e6cc62c6 7733
10f2d63a
VZ
7734 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7735 if test "x$LINE" != x ; then
7736 eval "DEFAULT_$LINE"
7737 else
7738 no_cache=1
7739 fi
7740
7741 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7742
e6cc62c6 7743fi;
10f2d63a
VZ
7744
7745 eval "$ac_cv_use_statusbar"
7746 if test "$no_cache" != 1; then
7747 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7748 fi
7749
7750 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7751 echo "$as_me:$LINENO: result: yes" >&5
7752echo "${ECHO_T}yes" >&6
10f2d63a 7753 else
e6cc62c6
VS
7754 echo "$as_me:$LINENO: result: no" >&5
7755echo "${ECHO_T}no" >&6
10f2d63a 7756 fi
e6cc62c6 7757
10f2d63a 7758
5005acfe 7759 enablestring=
e6cc62c6
VS
7760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7761echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7762 no_cache=0
7763 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7764if test "${enable_tabdialog+set}" = set; then
7765 enableval="$enable_tabdialog"
e6cc62c6 7766
10f2d63a
VZ
7767 if test "$enableval" = yes; then
7768 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7769 else
7770 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7771 fi
e6cc62c6 7772
10f2d63a 7773else
e6cc62c6 7774
10f2d63a
VZ
7775 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7776 if test "x$LINE" != x ; then
7777 eval "DEFAULT_$LINE"
7778 else
7779 no_cache=1
7780 fi
7781
7782 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7783
e6cc62c6 7784fi;
10f2d63a
VZ
7785
7786 eval "$ac_cv_use_tabdialog"
7787 if test "$no_cache" != 1; then
7788 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7789 fi
7790
7791 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7792 echo "$as_me:$LINENO: result: yes" >&5
7793echo "${ECHO_T}yes" >&6
10f2d63a 7794 else
e6cc62c6
VS
7795 echo "$as_me:$LINENO: result: no" >&5
7796echo "${ECHO_T}no" >&6
10f2d63a 7797 fi
e6cc62c6 7798
10f2d63a 7799
5005acfe 7800 enablestring=
e6cc62c6
VS
7801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7802echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7803 no_cache=0
7804 # Check whether --enable-textctrl or --disable-textctrl was given.
7805if test "${enable_textctrl+set}" = set; then
7806 enableval="$enable_textctrl"
e6cc62c6 7807
1e6feb95
VZ
7808 if test "$enableval" = yes; then
7809 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7810 else
7811 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7812 fi
e6cc62c6 7813
1e6feb95 7814else
e6cc62c6 7815
1e6feb95
VZ
7816 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7817 if test "x$LINE" != x ; then
7818 eval "DEFAULT_$LINE"
7819 else
7820 no_cache=1
7821 fi
7822
7823 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7824
e6cc62c6 7825fi;
1e6feb95
VZ
7826
7827 eval "$ac_cv_use_textctrl"
7828 if test "$no_cache" != 1; then
7829 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7830 fi
7831
7832 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7833 echo "$as_me:$LINENO: result: yes" >&5
7834echo "${ECHO_T}yes" >&6
1e6feb95 7835 else
e6cc62c6
VS
7836 echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6
1e6feb95 7838 fi
e6cc62c6 7839
1e6feb95 7840
5005acfe 7841 enablestring=
e6cc62c6
VS
7842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7843echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7844 no_cache=0
7845 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7846if test "${enable_togglebtn+set}" = set; then
7847 enableval="$enable_togglebtn"
e6cc62c6 7848
1db8dc4a
VZ
7849 if test "$enableval" = yes; then
7850 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7851 else
7852 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7853 fi
e6cc62c6 7854
1db8dc4a 7855else
e6cc62c6 7856
1db8dc4a
VZ
7857 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7858 if test "x$LINE" != x ; then
7859 eval "DEFAULT_$LINE"
7860 else
7861 no_cache=1
7862 fi
7863
7864 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7865
e6cc62c6 7866fi;
1db8dc4a
VZ
7867
7868 eval "$ac_cv_use_togglebtn"
7869 if test "$no_cache" != 1; then
7870 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7871 fi
7872
7873 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7874 echo "$as_me:$LINENO: result: yes" >&5
7875echo "${ECHO_T}yes" >&6
1db8dc4a 7876 else
e6cc62c6
VS
7877 echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6
1db8dc4a 7879 fi
e6cc62c6 7880
1db8dc4a 7881
5005acfe 7882 enablestring=
e6cc62c6
VS
7883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7884echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7885 no_cache=0
7886 # Check whether --enable-toolbar or --disable-toolbar was given.
7887if test "${enable_toolbar+set}" = set; then
7888 enableval="$enable_toolbar"
e6cc62c6 7889
10f2d63a
VZ
7890 if test "$enableval" = yes; then
7891 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7892 else
7893 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7894 fi
e6cc62c6 7895
10f2d63a 7896else
e6cc62c6 7897
10f2d63a
VZ
7898 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7899 if test "x$LINE" != x ; then
7900 eval "DEFAULT_$LINE"
7901 else
7902 no_cache=1
7903 fi
7904
7905 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7906
e6cc62c6 7907fi;
10f2d63a
VZ
7908
7909 eval "$ac_cv_use_toolbar"
7910 if test "$no_cache" != 1; then
7911 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7912 fi
7913
7914 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7915 echo "$as_me:$LINENO: result: yes" >&5
7916echo "${ECHO_T}yes" >&6
10f2d63a 7917 else
e6cc62c6
VS
7918 echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6
10f2d63a 7920 fi
e6cc62c6 7921
10f2d63a 7922
5005acfe 7923 enablestring=
e6cc62c6
VS
7924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7925echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7926 no_cache=0
7927 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7928if test "${enable_tbarnative+set}" = set; then
7929 enableval="$enable_tbarnative"
e6cc62c6 7930
360d6699
VZ
7931 if test "$enableval" = yes; then
7932 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7933 else
7934 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7935 fi
e6cc62c6 7936
360d6699 7937else
e6cc62c6 7938
360d6699
VZ
7939 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7940 if test "x$LINE" != x ; then
7941 eval "DEFAULT_$LINE"
7942 else
7943 no_cache=1
7944 fi
7945
7946 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7947
e6cc62c6 7948fi;
360d6699
VZ
7949
7950 eval "$ac_cv_use_tbarnative"
7951 if test "$no_cache" != 1; then
7952 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7953 fi
7954
7955 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7956 echo "$as_me:$LINENO: result: yes" >&5
7957echo "${ECHO_T}yes" >&6
360d6699 7958 else
e6cc62c6
VS
7959 echo "$as_me:$LINENO: result: no" >&5
7960echo "${ECHO_T}no" >&6
360d6699 7961 fi
e6cc62c6 7962
360d6699 7963
5005acfe 7964 enablestring=
e6cc62c6
VS
7965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7966echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7967 no_cache=0
7968 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7969if test "${enable_tbarsmpl+set}" = set; then
7970 enableval="$enable_tbarsmpl"
e6cc62c6 7971
360d6699
VZ
7972 if test "$enableval" = yes; then
7973 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7974 else
7975 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7976 fi
e6cc62c6 7977
360d6699 7978else
e6cc62c6 7979
360d6699
VZ
7980 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7981 if test "x$LINE" != x ; then
7982 eval "DEFAULT_$LINE"
7983 else
7984 no_cache=1
7985 fi
7986
7987 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7988
e6cc62c6 7989fi;
360d6699
VZ
7990
7991 eval "$ac_cv_use_tbarsmpl"
7992 if test "$no_cache" != 1; then
7993 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7994 fi
7995
7996 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
7997 echo "$as_me:$LINENO: result: yes" >&5
7998echo "${ECHO_T}yes" >&6
360d6699 7999 else
e6cc62c6
VS
8000 echo "$as_me:$LINENO: result: no" >&5
8001echo "${ECHO_T}no" >&6
360d6699 8002 fi
e6cc62c6 8003
360d6699 8004
5005acfe 8005 enablestring=
e6cc62c6
VS
8006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8007echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8008 no_cache=0
8009 # Check whether --enable-treectrl or --disable-treectrl was given.
8010if test "${enable_treectrl+set}" = set; then
8011 enableval="$enable_treectrl"
e6cc62c6 8012
10f2d63a
VZ
8013 if test "$enableval" = yes; then
8014 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8015 else
8016 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8017 fi
e6cc62c6 8018
10f2d63a 8019else
e6cc62c6 8020
10f2d63a
VZ
8021 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8022 if test "x$LINE" != x ; then
8023 eval "DEFAULT_$LINE"
8024 else
8025 no_cache=1
8026 fi
8027
8028 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8029
e6cc62c6 8030fi;
10f2d63a 8031
1e6feb95
VZ
8032 eval "$ac_cv_use_treectrl"
8033 if test "$no_cache" != 1; then
8034 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8035 fi
8036
8037 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8038 echo "$as_me:$LINENO: result: yes" >&5
8039echo "${ECHO_T}yes" >&6
1e6feb95 8040 else
e6cc62c6
VS
8041 echo "$as_me:$LINENO: result: no" >&5
8042echo "${ECHO_T}no" >&6
1e6feb95 8043 fi
e6cc62c6 8044
1e6feb95 8045
5005acfe 8046 enablestring=
e6cc62c6
VS
8047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8048echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8049 no_cache=0
8050 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8051if test "${enable_tipwindow+set}" = set; then
8052 enableval="$enable_tipwindow"
e6cc62c6 8053
9926e4a4
VZ
8054 if test "$enableval" = yes; then
8055 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8056 else
8057 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8058 fi
e6cc62c6 8059
9926e4a4 8060else
e6cc62c6 8061
9926e4a4
VZ
8062 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8063 if test "x$LINE" != x ; then
8064 eval "DEFAULT_$LINE"
8065 else
8066 no_cache=1
8067 fi
8068
8069 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8070
e6cc62c6 8071fi;
9926e4a4
VZ
8072
8073 eval "$ac_cv_use_tipwindow"
8074 if test "$no_cache" != 1; then
8075 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8076 fi
8077
8078 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8079 echo "$as_me:$LINENO: result: yes" >&5
8080echo "${ECHO_T}yes" >&6
9926e4a4 8081 else
e6cc62c6
VS
8082 echo "$as_me:$LINENO: result: no" >&5
8083echo "${ECHO_T}no" >&6
9926e4a4 8084 fi
e6cc62c6 8085
9926e4a4 8086
5005acfe 8087 enablestring=
e6cc62c6
VS
8088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8089echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8090 no_cache=0
8091 # Check whether --enable-popupwin or --disable-popupwin was given.
8092if test "${enable_popupwin+set}" = set; then
8093 enableval="$enable_popupwin"
e6cc62c6 8094
9f41d601
RR
8095 if test "$enableval" = yes; then
8096 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8097 else
8098 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8099 fi
e6cc62c6 8100
9f41d601 8101else
e6cc62c6 8102
9f41d601
RR
8103 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8104 if test "x$LINE" != x ; then
8105 eval "DEFAULT_$LINE"
8106 else
8107 no_cache=1
8108 fi
8109
8110 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8111
e6cc62c6 8112fi;
9f41d601
RR
8113
8114 eval "$ac_cv_use_popupwin"
8115 if test "$no_cache" != 1; then
8116 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8117 fi
8118
8119 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8120 echo "$as_me:$LINENO: result: yes" >&5
8121echo "${ECHO_T}yes" >&6
9f41d601 8122 else
e6cc62c6
VS
8123 echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6
9f41d601 8125 fi
e6cc62c6 8126
52127426 8127
8284b0c5
MB
8128
8129
5005acfe 8130 enablestring=
e6cc62c6
VS
8131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8132echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8133 no_cache=0
8134 # Check whether --enable-commondlg or --disable-commondlg was given.
8135if test "${enable_commondlg+set}" = set; then
8136 enableval="$enable_commondlg"
e6cc62c6 8137
1e6feb95
VZ
8138 if test "$enableval" = yes; then
8139 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8140 else
8141 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8142 fi
e6cc62c6 8143
1e6feb95 8144else
e6cc62c6 8145
1e6feb95
VZ
8146 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8147 if test "x$LINE" != x ; then
8148 eval "DEFAULT_$LINE"
8149 else
8150 no_cache=1
8151 fi
8152
8153 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8154
e6cc62c6 8155fi;
1e6feb95
VZ
8156
8157 eval "$ac_cv_use_commondlg"
8158 if test "$no_cache" != 1; then
8159 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8160 fi
8161
8162 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8163 echo "$as_me:$LINENO: result: yes" >&5
8164echo "${ECHO_T}yes" >&6
1e6feb95 8165 else
e6cc62c6
VS
8166 echo "$as_me:$LINENO: result: no" >&5
8167echo "${ECHO_T}no" >&6
1e6feb95 8168 fi
e6cc62c6 8169
1e6feb95 8170
5005acfe 8171 enablestring=
e6cc62c6
VS
8172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8173echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8174 no_cache=0
8175 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8176if test "${enable_choicedlg+set}" = set; then
8177 enableval="$enable_choicedlg"
e6cc62c6 8178
1e6feb95
VZ
8179 if test "$enableval" = yes; then
8180 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8181 else
8182 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8183 fi
e6cc62c6 8184
1e6feb95 8185else
e6cc62c6 8186
1e6feb95
VZ
8187 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8188 if test "x$LINE" != x ; then
8189 eval "DEFAULT_$LINE"
8190 else
8191 no_cache=1
8192 fi
8193
8194 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8195
e6cc62c6 8196fi;
1e6feb95
VZ
8197
8198 eval "$ac_cv_use_choicedlg"
8199 if test "$no_cache" != 1; then
8200 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8201 fi
8202
8203 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8204 echo "$as_me:$LINENO: result: yes" >&5
8205echo "${ECHO_T}yes" >&6
1e6feb95 8206 else
e6cc62c6
VS
8207 echo "$as_me:$LINENO: result: no" >&5
8208echo "${ECHO_T}no" >&6
1e6feb95 8209 fi
e6cc62c6 8210
1e6feb95 8211
5005acfe 8212 enablestring=
e6cc62c6
VS
8213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8214echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8215 no_cache=0
8216 # Check whether --enable-coldlg or --disable-coldlg was given.
8217if test "${enable_coldlg+set}" = set; then
8218 enableval="$enable_coldlg"
e6cc62c6 8219
1e6feb95
VZ
8220 if test "$enableval" = yes; then
8221 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8222 else
8223 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8224 fi
e6cc62c6 8225
1e6feb95 8226else
e6cc62c6 8227
1e6feb95
VZ
8228 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8236
e6cc62c6 8237fi;
1e6feb95
VZ
8238
8239 eval "$ac_cv_use_coldlg"
8240 if test "$no_cache" != 1; then
8241 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8242 fi
8243
8244 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8245 echo "$as_me:$LINENO: result: yes" >&5
8246echo "${ECHO_T}yes" >&6
1e6feb95 8247 else
e6cc62c6
VS
8248 echo "$as_me:$LINENO: result: no" >&5
8249echo "${ECHO_T}no" >&6
1e6feb95 8250 fi
e6cc62c6 8251
1e6feb95 8252
5005acfe 8253 enablestring=
e6cc62c6
VS
8254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8255echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8256 no_cache=0
8257 # Check whether --enable-filedlg or --disable-filedlg was given.
8258if test "${enable_filedlg+set}" = set; then
8259 enableval="$enable_filedlg"
e6cc62c6 8260
1e6feb95
VZ
8261 if test "$enableval" = yes; then
8262 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8263 else
8264 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8265 fi
e6cc62c6 8266
1e6feb95 8267else
e6cc62c6 8268
1e6feb95
VZ
8269 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8270 if test "x$LINE" != x ; then
8271 eval "DEFAULT_$LINE"
8272 else
8273 no_cache=1
8274 fi
8275
8276 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8277
e6cc62c6 8278fi;
1e6feb95
VZ
8279
8280 eval "$ac_cv_use_filedlg"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8286 echo "$as_me:$LINENO: result: yes" >&5
8287echo "${ECHO_T}yes" >&6
1e6feb95 8288 else
e6cc62c6
VS
8289 echo "$as_me:$LINENO: result: no" >&5
8290echo "${ECHO_T}no" >&6
1e6feb95 8291 fi
e6cc62c6 8292
1e6feb95 8293
5005acfe 8294 enablestring=
e6cc62c6
VS
8295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8296echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8297 no_cache=0
69d27ff7
MB
8298 # Check whether --enable-finddlg or --disable-finddlg was given.
8299if test "${enable_finddlg+set}" = set; then
8300 enableval="$enable_finddlg"
e6cc62c6 8301
8db37e06 8302 if test "$enableval" = yes; then
69d27ff7 8303 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8304 else
69d27ff7 8305 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8306 fi
e6cc62c6 8307
8db37e06 8308else
e6cc62c6 8309
8db37e06
VZ
8310 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8311 if test "x$LINE" != x ; then
8312 eval "DEFAULT_$LINE"
8313 else
8314 no_cache=1
8315 fi
8316
69d27ff7 8317 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8318
e6cc62c6 8319fi;
8db37e06 8320
69d27ff7 8321 eval "$ac_cv_use_finddlg"
8db37e06 8322 if test "$no_cache" != 1; then
69d27ff7 8323 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8324 fi
8325
8326 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8327 echo "$as_me:$LINENO: result: yes" >&5
8328echo "${ECHO_T}yes" >&6
8db37e06 8329 else
e6cc62c6
VS
8330 echo "$as_me:$LINENO: result: no" >&5
8331echo "${ECHO_T}no" >&6
8db37e06 8332 fi
e6cc62c6 8333
8db37e06 8334
5005acfe 8335 enablestring=
e6cc62c6
VS
8336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8337echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8338 no_cache=0
8339 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8340if test "${enable_fontdlg+set}" = set; then
8341 enableval="$enable_fontdlg"
e6cc62c6 8342
1e6feb95
VZ
8343 if test "$enableval" = yes; then
8344 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8345 else
8346 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8347 fi
e6cc62c6 8348
1e6feb95 8349else
e6cc62c6 8350
1e6feb95
VZ
8351 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8352 if test "x$LINE" != x ; then
8353 eval "DEFAULT_$LINE"
8354 else
8355 no_cache=1
8356 fi
8357
8358 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8359
e6cc62c6 8360fi;
1e6feb95
VZ
8361
8362 eval "$ac_cv_use_fontdlg"
8363 if test "$no_cache" != 1; then
8364 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8365 fi
8366
8367 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8368 echo "$as_me:$LINENO: result: yes" >&5
8369echo "${ECHO_T}yes" >&6
1e6feb95 8370 else
e6cc62c6
VS
8371 echo "$as_me:$LINENO: result: no" >&5
8372echo "${ECHO_T}no" >&6
1e6feb95 8373 fi
e6cc62c6 8374
1e6feb95 8375
5005acfe 8376 enablestring=
e6cc62c6
VS
8377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8378echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8379 no_cache=0
8380 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8381if test "${enable_dirdlg+set}" = set; then
8382 enableval="$enable_dirdlg"
e6cc62c6 8383
1e6feb95
VZ
8384 if test "$enableval" = yes; then
8385 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8386 else
8387 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8388 fi
e6cc62c6 8389
1e6feb95 8390else
e6cc62c6 8391
1e6feb95
VZ
8392 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8393 if test "x$LINE" != x ; then
8394 eval "DEFAULT_$LINE"
8395 else
8396 no_cache=1
8397 fi
8398
8399 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8400
e6cc62c6 8401fi;
1e6feb95
VZ
8402
8403 eval "$ac_cv_use_dirdlg"
10f2d63a 8404 if test "$no_cache" != 1; then
1e6feb95 8405 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8406 fi
8407
1e6feb95 8408 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8409 echo "$as_me:$LINENO: result: yes" >&5
8410echo "${ECHO_T}yes" >&6
10f2d63a 8411 else
e6cc62c6
VS
8412 echo "$as_me:$LINENO: result: no" >&5
8413echo "${ECHO_T}no" >&6
10f2d63a 8414 fi
e6cc62c6 8415
698dcdb6 8416
5005acfe 8417 enablestring=
e6cc62c6
VS
8418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8419echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8420 no_cache=0
1e6feb95
VZ
8421 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8422if test "${enable_msgdlg+set}" = set; then
8423 enableval="$enable_msgdlg"
e6cc62c6 8424
10f2d63a 8425 if test "$enableval" = yes; then
1e6feb95 8426 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8427 else
1e6feb95 8428 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8429 fi
e6cc62c6 8430
10f2d63a 8431else
e6cc62c6 8432
1e6feb95 8433 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8434 if test "x$LINE" != x ; then
8435 eval "DEFAULT_$LINE"
8436 else
8437 no_cache=1
8438 fi
8439
1e6feb95 8440 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8441
e6cc62c6 8442fi;
10f2d63a 8443
1e6feb95 8444 eval "$ac_cv_use_msgdlg"
10f2d63a 8445 if test "$no_cache" != 1; then
1e6feb95 8446 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8447 fi
8448
1e6feb95 8449 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8450 echo "$as_me:$LINENO: result: yes" >&5
8451echo "${ECHO_T}yes" >&6
10f2d63a 8452 else
e6cc62c6
VS
8453 echo "$as_me:$LINENO: result: no" >&5
8454echo "${ECHO_T}no" >&6
10f2d63a 8455 fi
e6cc62c6 8456
10f2d63a 8457
5005acfe 8458 enablestring=
e6cc62c6
VS
8459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8460echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8461 no_cache=0
1e6feb95
VZ
8462 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8463if test "${enable_numberdlg+set}" = set; then
8464 enableval="$enable_numberdlg"
e6cc62c6 8465
10f2d63a 8466 if test "$enableval" = yes; then
1e6feb95 8467 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8468 else
1e6feb95 8469 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8470 fi
e6cc62c6 8471
10f2d63a 8472else
e6cc62c6 8473
1e6feb95 8474 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8475 if test "x$LINE" != x ; then
8476 eval "DEFAULT_$LINE"
8477 else
8478 no_cache=1
8479 fi
8480
1e6feb95 8481 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8482
e6cc62c6 8483fi;
10f2d63a 8484
1e6feb95 8485 eval "$ac_cv_use_numberdlg"
10f2d63a 8486 if test "$no_cache" != 1; then
1e6feb95 8487 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8488 fi
8489
1e6feb95 8490 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8491 echo "$as_me:$LINENO: result: yes" >&5
8492echo "${ECHO_T}yes" >&6
10f2d63a 8493 else
e6cc62c6
VS
8494 echo "$as_me:$LINENO: result: no" >&5
8495echo "${ECHO_T}no" >&6
10f2d63a 8496 fi
e6cc62c6 8497
10f2d63a 8498
5005acfe 8499 enablestring=
e6cc62c6
VS
8500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8501echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8502 no_cache=0
8503 # Check whether --enable-splash or --disable-splash was given.
8504if test "${enable_splash+set}" = set; then
8505 enableval="$enable_splash"
e6cc62c6 8506
cbca9943
VZ
8507 if test "$enableval" = yes; then
8508 ac_cv_use_splash='wxUSE_SPLASH=yes'
8509 else
8510 ac_cv_use_splash='wxUSE_SPLASH=no'
8511 fi
e6cc62c6 8512
cbca9943 8513else
e6cc62c6 8514
cbca9943
VZ
8515 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8516 if test "x$LINE" != x ; then
8517 eval "DEFAULT_$LINE"
8518 else
8519 no_cache=1
8520 fi
8521
8522 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8523
e6cc62c6 8524fi;
cbca9943
VZ
8525
8526 eval "$ac_cv_use_splash"
8527 if test "$no_cache" != 1; then
8528 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8529 fi
8530
8531 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8532 echo "$as_me:$LINENO: result: yes" >&5
8533echo "${ECHO_T}yes" >&6
cbca9943 8534 else
e6cc62c6
VS
8535 echo "$as_me:$LINENO: result: no" >&5
8536echo "${ECHO_T}no" >&6
cbca9943 8537 fi
e6cc62c6 8538
cbca9943 8539
5005acfe 8540 enablestring=
e6cc62c6
VS
8541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8542echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8543 no_cache=0
8544 # Check whether --enable-textdlg or --disable-textdlg was given.
8545if test "${enable_textdlg+set}" = set; then
8546 enableval="$enable_textdlg"
e6cc62c6 8547
10f2d63a
VZ
8548 if test "$enableval" = yes; then
8549 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8550 else
8551 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8552 fi
e6cc62c6 8553
10f2d63a 8554else
e6cc62c6 8555
10f2d63a
VZ
8556 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8557 if test "x$LINE" != x ; then
8558 eval "DEFAULT_$LINE"
8559 else
8560 no_cache=1
8561 fi
8562
8563 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8564
e6cc62c6 8565fi;
10f2d63a
VZ
8566
8567 eval "$ac_cv_use_textdlg"
8568 if test "$no_cache" != 1; then
8569 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8570 fi
8571
8572 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8573 echo "$as_me:$LINENO: result: yes" >&5
8574echo "${ECHO_T}yes" >&6
10f2d63a 8575 else
e6cc62c6
VS
8576 echo "$as_me:$LINENO: result: no" >&5
8577echo "${ECHO_T}no" >&6
10f2d63a 8578 fi
e6cc62c6 8579
10f2d63a 8580
5005acfe 8581 enablestring=
e6cc62c6
VS
8582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8583echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8584 no_cache=0
8585 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8586if test "${enable_tipdlg+set}" = set; then
8587 enableval="$enable_tipdlg"
e6cc62c6 8588
10f2d63a
VZ
8589 if test "$enableval" = yes; then
8590 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8591 else
8592 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8593 fi
e6cc62c6 8594
10f2d63a 8595else
e6cc62c6 8596
10f2d63a
VZ
8597 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8598 if test "x$LINE" != x ; then
8599 eval "DEFAULT_$LINE"
8600 else
8601 no_cache=1
8602 fi
8603
8604 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8605
e6cc62c6 8606fi;
10f2d63a
VZ
8607
8608 eval "$ac_cv_use_tipdlg"
8609 if test "$no_cache" != 1; then
8610 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8611 fi
8612
8613 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8614 echo "$as_me:$LINENO: result: yes" >&5
8615echo "${ECHO_T}yes" >&6
10f2d63a 8616 else
e6cc62c6
VS
8617 echo "$as_me:$LINENO: result: no" >&5
8618echo "${ECHO_T}no" >&6
10f2d63a 8619 fi
e6cc62c6 8620
10f2d63a 8621
5005acfe 8622 enablestring=
e6cc62c6
VS
8623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8624echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8625 no_cache=0
8626 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8627if test "${enable_progressdlg+set}" = set; then
8628 enableval="$enable_progressdlg"
e6cc62c6 8629
10f2d63a
VZ
8630 if test "$enableval" = yes; then
8631 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8632 else
8633 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8634 fi
e6cc62c6 8635
10f2d63a 8636else
e6cc62c6 8637
10f2d63a
VZ
8638 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8639 if test "x$LINE" != x ; then
8640 eval "DEFAULT_$LINE"
8641 else
8642 no_cache=1
8643 fi
8644
8645 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8646
e6cc62c6 8647fi;
10f2d63a
VZ
8648
8649 eval "$ac_cv_use_progressdlg"
8650 if test "$no_cache" != 1; then
8651 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8652 fi
8653
8654 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8655 echo "$as_me:$LINENO: result: yes" >&5
8656echo "${ECHO_T}yes" >&6
10f2d63a 8657 else
e6cc62c6
VS
8658 echo "$as_me:$LINENO: result: no" >&5
8659echo "${ECHO_T}no" >&6
10f2d63a 8660 fi
e6cc62c6 8661
10f2d63a 8662
5005acfe 8663 enablestring=
e6cc62c6
VS
8664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8665echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8666 no_cache=0
8667 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8668if test "${enable_wizarddlg+set}" = set; then
8669 enableval="$enable_wizarddlg"
e6cc62c6 8670
b1f5d087
VZ
8671 if test "$enableval" = yes; then
8672 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8673 else
8674 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8675 fi
e6cc62c6 8676
b1f5d087 8677else
e6cc62c6 8678
b1f5d087
VZ
8679 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8680 if test "x$LINE" != x ; then
8681 eval "DEFAULT_$LINE"
8682 else
8683 no_cache=1
8684 fi
8685
8686 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8687
e6cc62c6 8688fi;
b1f5d087
VZ
8689
8690 eval "$ac_cv_use_wizarddlg"
8691 if test "$no_cache" != 1; then
8692 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8693 fi
8694
8695 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8696 echo "$as_me:$LINENO: result: yes" >&5
8697echo "${ECHO_T}yes" >&6
b1f5d087 8698 else
e6cc62c6
VS
8699 echo "$as_me:$LINENO: result: no" >&5
8700echo "${ECHO_T}no" >&6
b1f5d087 8701 fi
e6cc62c6 8702
8284b0c5
MB
8703
8704
52127426 8705
5005acfe 8706 enablestring=
e6cc62c6
VS
8707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8708echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8709 no_cache=0
8710 # Check whether --enable-menus or --disable-menus was given.
8711if test "${enable_menus+set}" = set; then
8712 enableval="$enable_menus"
e6cc62c6 8713
1e6feb95
VZ
8714 if test "$enableval" = yes; then
8715 ac_cv_use_menus='wxUSE_MENUS=yes'
8716 else
8717 ac_cv_use_menus='wxUSE_MENUS=no'
8718 fi
e6cc62c6 8719
1e6feb95 8720else
e6cc62c6 8721
1e6feb95
VZ
8722 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8723 if test "x$LINE" != x ; then
8724 eval "DEFAULT_$LINE"
8725 else
8726 no_cache=1
8727 fi
8728
8729 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8730
e6cc62c6 8731fi;
1e6feb95
VZ
8732
8733 eval "$ac_cv_use_menus"
8734 if test "$no_cache" != 1; then
8735 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8736 fi
8737
8738 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8739 echo "$as_me:$LINENO: result: yes" >&5
8740echo "${ECHO_T}yes" >&6
1e6feb95 8741 else
e6cc62c6
VS
8742 echo "$as_me:$LINENO: result: no" >&5
8743echo "${ECHO_T}no" >&6
1e6feb95 8744 fi
e6cc62c6 8745
1e6feb95 8746
5005acfe 8747 enablestring=
e6cc62c6
VS
8748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8749echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8750 no_cache=0
8751 # Check whether --enable-miniframe or --disable-miniframe was given.
8752if test "${enable_miniframe+set}" = set; then
8753 enableval="$enable_miniframe"
e6cc62c6 8754
10f2d63a
VZ
8755 if test "$enableval" = yes; then
8756 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8757 else
8758 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8759 fi
e6cc62c6 8760
10f2d63a 8761else
e6cc62c6 8762
10f2d63a
VZ
8763 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8764 if test "x$LINE" != x ; then
8765 eval "DEFAULT_$LINE"
8766 else
8767 no_cache=1
8768 fi
8769
8770 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8771
e6cc62c6 8772fi;
10f2d63a
VZ
8773
8774 eval "$ac_cv_use_miniframe"
8775 if test "$no_cache" != 1; then
8776 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8777 fi
8778
8779 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8780 echo "$as_me:$LINENO: result: yes" >&5
8781echo "${ECHO_T}yes" >&6
10f2d63a 8782 else
e6cc62c6
VS
8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
10f2d63a 8785 fi
e6cc62c6 8786
10f2d63a 8787
5005acfe 8788 enablestring=
e6cc62c6
VS
8789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8790echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8791 no_cache=0
8792 # Check whether --enable-tooltips or --disable-tooltips was given.
8793if test "${enable_tooltips+set}" = set; then
8794 enableval="$enable_tooltips"
e6cc62c6 8795
10f2d63a
VZ
8796 if test "$enableval" = yes; then
8797 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8798 else
8799 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8800 fi
e6cc62c6 8801
10f2d63a 8802else
e6cc62c6 8803
10f2d63a
VZ
8804 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8805 if test "x$LINE" != x ; then
8806 eval "DEFAULT_$LINE"
8807 else
8808 no_cache=1
8809 fi
8810
8811 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8812
e6cc62c6 8813fi;
10f2d63a
VZ
8814
8815 eval "$ac_cv_use_tooltips"
8816 if test "$no_cache" != 1; then
8817 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8818 fi
8819
8820 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8821 echo "$as_me:$LINENO: result: yes" >&5
8822echo "${ECHO_T}yes" >&6
10f2d63a 8823 else
e6cc62c6
VS
8824 echo "$as_me:$LINENO: result: no" >&5
8825echo "${ECHO_T}no" >&6
10f2d63a 8826 fi
e6cc62c6 8827
10f2d63a 8828
5005acfe 8829 enablestring=
e6cc62c6
VS
8830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8831echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8832 no_cache=0
8833 # Check whether --enable-splines or --disable-splines was given.
8834if test "${enable_splines+set}" = set; then
8835 enableval="$enable_splines"
e6cc62c6 8836
10f2d63a
VZ
8837 if test "$enableval" = yes; then
8838 ac_cv_use_splines='wxUSE_SPLINES=yes'
8839 else
8840 ac_cv_use_splines='wxUSE_SPLINES=no'
8841 fi
e6cc62c6 8842
10f2d63a 8843else
e6cc62c6 8844
10f2d63a
VZ
8845 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8846 if test "x$LINE" != x ; then
8847 eval "DEFAULT_$LINE"
8848 else
8849 no_cache=1
8850 fi
8851
8852 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8853
e6cc62c6 8854fi;
10f2d63a
VZ
8855
8856 eval "$ac_cv_use_splines"
8857 if test "$no_cache" != 1; then
8858 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8859 fi
8860
8861 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8862 echo "$as_me:$LINENO: result: yes" >&5
8863echo "${ECHO_T}yes" >&6
10f2d63a 8864 else
e6cc62c6
VS
8865 echo "$as_me:$LINENO: result: no" >&5
8866echo "${ECHO_T}no" >&6
10f2d63a 8867 fi
e6cc62c6 8868
10f2d63a 8869
5005acfe 8870 enablestring=
e6cc62c6
VS
8871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8872echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8873 no_cache=0
8874 # Check whether --enable-validators or --disable-validators was given.
8875if test "${enable_validators+set}" = set; then
8876 enableval="$enable_validators"
e6cc62c6 8877
10f2d63a
VZ
8878 if test "$enableval" = yes; then
8879 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8880 else
8881 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8882 fi
e6cc62c6 8883
10f2d63a 8884else
e6cc62c6 8885
10f2d63a
VZ
8886 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8887 if test "x$LINE" != x ; then
8888 eval "DEFAULT_$LINE"
8889 else
8890 no_cache=1
8891 fi
8892
8893 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8894
e6cc62c6 8895fi;
10f2d63a
VZ
8896
8897 eval "$ac_cv_use_validators"
8898 if test "$no_cache" != 1; then
8899 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8900 fi
8901
8902 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8903 echo "$as_me:$LINENO: result: yes" >&5
8904echo "${ECHO_T}yes" >&6
10f2d63a 8905 else
e6cc62c6
VS
8906 echo "$as_me:$LINENO: result: no" >&5
8907echo "${ECHO_T}no" >&6
10f2d63a 8908 fi
e6cc62c6 8909
10f2d63a 8910
5005acfe 8911 enablestring=
e6cc62c6
VS
8912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8913echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8914 no_cache=0
8915 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8916if test "${enable_busyinfo+set}" = set; then
8917 enableval="$enable_busyinfo"
e6cc62c6 8918
10f2d63a
VZ
8919 if test "$enableval" = yes; then
8920 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8921 else
8922 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8923 fi
e6cc62c6 8924
10f2d63a 8925else
e6cc62c6 8926
10f2d63a
VZ
8927 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8928 if test "x$LINE" != x ; then
8929 eval "DEFAULT_$LINE"
8930 else
8931 no_cache=1
8932 fi
8933
8934 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8935
e6cc62c6 8936fi;
10f2d63a
VZ
8937
8938 eval "$ac_cv_use_busyinfo"
8939 if test "$no_cache" != 1; then
8940 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8941 fi
8942
8943 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8944 echo "$as_me:$LINENO: result: yes" >&5
8945echo "${ECHO_T}yes" >&6
10f2d63a 8946 else
e6cc62c6
VS
8947 echo "$as_me:$LINENO: result: no" >&5
8948echo "${ECHO_T}no" >&6
10f2d63a 8949 fi
e6cc62c6 8950
10f2d63a 8951
5005acfe 8952 enablestring=
e6cc62c6
VS
8953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8954echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8955 no_cache=0
8956 # Check whether --enable-joystick or --disable-joystick was given.
8957if test "${enable_joystick+set}" = set; then
8958 enableval="$enable_joystick"
e6cc62c6 8959
f6bcfd97
BP
8960 if test "$enableval" = yes; then
8961 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8962 else
8963 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8964 fi
e6cc62c6 8965
f6bcfd97 8966else
e6cc62c6 8967
f6bcfd97
BP
8968 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8969 if test "x$LINE" != x ; then
8970 eval "DEFAULT_$LINE"
8971 else
8972 no_cache=1
8973 fi
8974
8975 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8976
e6cc62c6 8977fi;
f6bcfd97
BP
8978
8979 eval "$ac_cv_use_joystick"
8980 if test "$no_cache" != 1; then
8981 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8982 fi
8983
8984 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8985 echo "$as_me:$LINENO: result: yes" >&5
8986echo "${ECHO_T}yes" >&6
f6bcfd97 8987 else
e6cc62c6
VS
8988 echo "$as_me:$LINENO: result: no" >&5
8989echo "${ECHO_T}no" >&6
f6bcfd97 8990 fi
e6cc62c6 8991
698dcdb6 8992
5005acfe 8993 enablestring=
e6cc62c6
VS
8994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8995echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
8996 no_cache=0
8997 # Check whether --enable-metafile or --disable-metafile was given.
8998if test "${enable_metafile+set}" = set; then
8999 enableval="$enable_metafile"
e6cc62c6 9000
1e6feb95
VZ
9001 if test "$enableval" = yes; then
9002 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9003 else
9004 ac_cv_use_metafile='wxUSE_METAFILE=no'
9005 fi
e6cc62c6 9006
1e6feb95 9007else
e6cc62c6 9008
1e6feb95
VZ
9009 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9010 if test "x$LINE" != x ; then
9011 eval "DEFAULT_$LINE"
9012 else
9013 no_cache=1
9014 fi
9015
9016 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9017
e6cc62c6 9018fi;
1e6feb95
VZ
9019
9020 eval "$ac_cv_use_metafile"
9021 if test "$no_cache" != 1; then
9022 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9023 fi
9024
9025 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9026 echo "$as_me:$LINENO: result: yes" >&5
9027echo "${ECHO_T}yes" >&6
1e6feb95 9028 else
e6cc62c6
VS
9029 echo "$as_me:$LINENO: result: no" >&5
9030echo "${ECHO_T}no" >&6
1e6feb95 9031 fi
e6cc62c6 9032
1e6feb95 9033
5005acfe 9034 enablestring=
e6cc62c6
VS
9035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9036echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9037 no_cache=0
9038 # Check whether --enable-dragimage or --disable-dragimage was given.
9039if test "${enable_dragimage+set}" = set; then
9040 enableval="$enable_dragimage"
e6cc62c6 9041
24fd6d87
VZ
9042 if test "$enableval" = yes; then
9043 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9044 else
9045 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9046 fi
e6cc62c6 9047
24fd6d87 9048else
e6cc62c6 9049
24fd6d87
VZ
9050 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9051 if test "x$LINE" != x ; then
9052 eval "DEFAULT_$LINE"
9053 else
9054 no_cache=1
9055 fi
9056
9057 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9058
e6cc62c6 9059fi;
24fd6d87
VZ
9060
9061 eval "$ac_cv_use_dragimage"
9062 if test "$no_cache" != 1; then
9063 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9064 fi
9065
9066 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9067 echo "$as_me:$LINENO: result: yes" >&5
9068echo "${ECHO_T}yes" >&6
24fd6d87 9069 else
e6cc62c6
VS
9070 echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
24fd6d87 9072 fi
e6cc62c6 9073
52127426 9074
7bb2947d 9075 enablestring=
e6cc62c6
VS
9076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9077echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9078 no_cache=0
9079 # Check whether --enable-accessibility or --disable-accessibility was given.
9080if test "${enable_accessibility+set}" = set; then
9081 enableval="$enable_accessibility"
e6cc62c6 9082
7bb2947d
MB
9083 if test "$enableval" = yes; then
9084 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9085 else
9086 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9087 fi
e6cc62c6 9088
7bb2947d 9089else
e6cc62c6 9090
7bb2947d
MB
9091 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9092 if test "x$LINE" != x ; then
9093 eval "DEFAULT_$LINE"
9094 else
9095 no_cache=1
9096 fi
9097
9098 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9099
e6cc62c6 9100fi;
7bb2947d
MB
9101
9102 eval "$ac_cv_use_accessibility"
9103 if test "$no_cache" != 1; then
9104 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9105 fi
9106
9107 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9108 echo "$as_me:$LINENO: result: yes" >&5
9109echo "${ECHO_T}yes" >&6
7bb2947d 9110 else
e6cc62c6
VS
9111 echo "$as_me:$LINENO: result: no" >&5
9112echo "${ECHO_T}no" >&6
7bb2947d 9113 fi
e6cc62c6 9114
7bb2947d 9115
8284b0c5
MB
9116
9117
5005acfe 9118 enablestring=
e6cc62c6
VS
9119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9120echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9121 no_cache=0
9122 # Check whether --enable-palette or --disable-palette was given.
9123if test "${enable_palette+set}" = set; then
9124 enableval="$enable_palette"
e6cc62c6 9125
edae8572
VZ
9126 if test "$enableval" = yes; then
9127 ac_cv_use_palette='wxUSE_PALETTE=yes'
9128 else
9129 ac_cv_use_palette='wxUSE_PALETTE=no'
9130 fi
e6cc62c6 9131
edae8572 9132else
e6cc62c6 9133
edae8572
VZ
9134 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9135 if test "x$LINE" != x ; then
9136 eval "DEFAULT_$LINE"
9137 else
9138 no_cache=1
9139 fi
9140
9141 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9142
e6cc62c6 9143fi;
edae8572
VZ
9144
9145 eval "$ac_cv_use_palette"
9146 if test "$no_cache" != 1; then
9147 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9148 fi
9149
9150 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9151 echo "$as_me:$LINENO: result: yes" >&5
9152echo "${ECHO_T}yes" >&6
edae8572 9153 else
e6cc62c6
VS
9154 echo "$as_me:$LINENO: result: no" >&5
9155echo "${ECHO_T}no" >&6
edae8572 9156 fi
e6cc62c6 9157
edae8572 9158
5005acfe 9159 enablestring=
e6cc62c6
VS
9160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9161echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9162 no_cache=0
9163 # Check whether --enable-image or --disable-image was given.
9164if test "${enable_image+set}" = set; then
9165 enableval="$enable_image"
e6cc62c6 9166
0046ff7c
VS
9167 if test "$enableval" = yes; then
9168 ac_cv_use_image='wxUSE_IMAGE=yes'
9169 else
9170 ac_cv_use_image='wxUSE_IMAGE=no'
9171 fi
e6cc62c6 9172
0046ff7c 9173else
e6cc62c6 9174
0046ff7c
VS
9175 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9176 if test "x$LINE" != x ; then
9177 eval "DEFAULT_$LINE"
9178 else
9179 no_cache=1
9180 fi
9181
9182 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9183
e6cc62c6 9184fi;
0046ff7c
VS
9185
9186 eval "$ac_cv_use_image"
9187 if test "$no_cache" != 1; then
9188 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9189 fi
9190
9191 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9192 echo "$as_me:$LINENO: result: yes" >&5
9193echo "${ECHO_T}yes" >&6
0046ff7c 9194 else
e6cc62c6
VS
9195 echo "$as_me:$LINENO: result: no" >&5
9196echo "${ECHO_T}no" >&6
0046ff7c 9197 fi
e6cc62c6 9198
0046ff7c 9199
5005acfe 9200 enablestring=
e6cc62c6
VS
9201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9202echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9203 no_cache=0
9204 # Check whether --enable-gif or --disable-gif was given.
9205if test "${enable_gif+set}" = set; then
9206 enableval="$enable_gif"
e6cc62c6 9207
10f2d63a
VZ
9208 if test "$enableval" = yes; then
9209 ac_cv_use_gif='wxUSE_GIF=yes'
9210 else
9211 ac_cv_use_gif='wxUSE_GIF=no'
9212 fi
e6cc62c6 9213
10f2d63a 9214else
e6cc62c6 9215
10f2d63a
VZ
9216 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9217 if test "x$LINE" != x ; then
9218 eval "DEFAULT_$LINE"
9219 else
9220 no_cache=1
9221 fi
9222
9223 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9224
e6cc62c6 9225fi;
10f2d63a
VZ
9226
9227 eval "$ac_cv_use_gif"
9228 if test "$no_cache" != 1; then
9229 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9230 fi
9231
9232 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9233 echo "$as_me:$LINENO: result: yes" >&5
9234echo "${ECHO_T}yes" >&6
10f2d63a 9235 else
e6cc62c6
VS
9236 echo "$as_me:$LINENO: result: no" >&5
9237echo "${ECHO_T}no" >&6
10f2d63a 9238 fi
e6cc62c6 9239
10f2d63a 9240
5005acfe 9241 enablestring=
e6cc62c6
VS
9242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9243echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9244 no_cache=0
9245 # Check whether --enable-pcx or --disable-pcx was given.
9246if test "${enable_pcx+set}" = set; then
9247 enableval="$enable_pcx"
e6cc62c6 9248
10f2d63a
VZ
9249 if test "$enableval" = yes; then
9250 ac_cv_use_pcx='wxUSE_PCX=yes'
9251 else
9252 ac_cv_use_pcx='wxUSE_PCX=no'
9253 fi
e6cc62c6 9254
10f2d63a 9255else
e6cc62c6 9256
10f2d63a
VZ
9257 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9258 if test "x$LINE" != x ; then
9259 eval "DEFAULT_$LINE"
9260 else
9261 no_cache=1
9262 fi
9263
9264 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9265
e6cc62c6 9266fi;
10f2d63a
VZ
9267
9268 eval "$ac_cv_use_pcx"
9269 if test "$no_cache" != 1; then
9270 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9271 fi
9272
9273 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9274 echo "$as_me:$LINENO: result: yes" >&5
9275echo "${ECHO_T}yes" >&6
10f2d63a 9276 else
e6cc62c6
VS
9277 echo "$as_me:$LINENO: result: no" >&5
9278echo "${ECHO_T}no" >&6
10f2d63a 9279 fi
e6cc62c6 9280
10f2d63a 9281
5005acfe 9282 enablestring=
e6cc62c6
VS
9283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9284echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9285 no_cache=0
9286 # Check whether --enable-iff or --disable-iff was given.
9287if test "${enable_iff+set}" = set; then
9288 enableval="$enable_iff"
e6cc62c6 9289
4b6b4dfc
RR
9290 if test "$enableval" = yes; then
9291 ac_cv_use_iff='wxUSE_IFF=yes'
9292 else
9293 ac_cv_use_iff='wxUSE_IFF=no'
9294 fi
e6cc62c6 9295
4b6b4dfc 9296else
e6cc62c6 9297
4b6b4dfc
RR
9298 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9299 if test "x$LINE" != x ; then
9300 eval "DEFAULT_$LINE"
9301 else
9302 no_cache=1
9303 fi
9304
9305 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9306
e6cc62c6 9307fi;
4b6b4dfc
RR
9308
9309 eval "$ac_cv_use_iff"
9310 if test "$no_cache" != 1; then
9311 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9312 fi
9313
9314 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9315 echo "$as_me:$LINENO: result: yes" >&5
9316echo "${ECHO_T}yes" >&6
4b6b4dfc 9317 else
e6cc62c6
VS
9318 echo "$as_me:$LINENO: result: no" >&5
9319echo "${ECHO_T}no" >&6
4b6b4dfc 9320 fi
e6cc62c6 9321
4b6b4dfc 9322
5005acfe 9323 enablestring=
e6cc62c6
VS
9324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9325echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9326 no_cache=0
9327 # Check whether --enable-pnm or --disable-pnm was given.
9328if test "${enable_pnm+set}" = set; then
9329 enableval="$enable_pnm"
e6cc62c6 9330
10f2d63a
VZ
9331 if test "$enableval" = yes; then
9332 ac_cv_use_pnm='wxUSE_PNM=yes'
9333 else
9334 ac_cv_use_pnm='wxUSE_PNM=no'
9335 fi
e6cc62c6 9336
10f2d63a 9337else
e6cc62c6 9338
10f2d63a
VZ
9339 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9340 if test "x$LINE" != x ; then
9341 eval "DEFAULT_$LINE"
9342 else
9343 no_cache=1
9344 fi
9345
9346 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9347
e6cc62c6 9348fi;
10f2d63a
VZ
9349
9350 eval "$ac_cv_use_pnm"
9351 if test "$no_cache" != 1; then
9352 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9353 fi
9354
9355 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9356 echo "$as_me:$LINENO: result: yes" >&5
9357echo "${ECHO_T}yes" >&6
10f2d63a 9358 else
e6cc62c6
VS
9359 echo "$as_me:$LINENO: result: no" >&5
9360echo "${ECHO_T}no" >&6
10f2d63a 9361 fi
e6cc62c6 9362
10f2d63a 9363
5005acfe 9364 enablestring=
e6cc62c6
VS
9365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9366echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9367 no_cache=0
69d27ff7
MB
9368 # Check whether --enable-xpm or --disable-xpm was given.
9369if test "${enable_xpm+set}" = set; then
9370 enableval="$enable_xpm"
e6cc62c6 9371
0046ff7c 9372 if test "$enableval" = yes; then
69d27ff7 9373 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9374 else
69d27ff7 9375 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9376 fi
e6cc62c6 9377
0046ff7c 9378else
e6cc62c6 9379
0046ff7c
VS
9380 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9381 if test "x$LINE" != x ; then
9382 eval "DEFAULT_$LINE"
9383 else
9384 no_cache=1
9385 fi
9386
69d27ff7 9387 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9388
e6cc62c6 9389fi;
0046ff7c 9390
69d27ff7 9391 eval "$ac_cv_use_xpm"
0046ff7c 9392 if test "$no_cache" != 1; then
69d27ff7 9393 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9394 fi
9395
9396 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9397 echo "$as_me:$LINENO: result: yes" >&5
9398echo "${ECHO_T}yes" >&6
0046ff7c 9399 else
e6cc62c6
VS
9400 echo "$as_me:$LINENO: result: no" >&5
9401echo "${ECHO_T}no" >&6
0046ff7c 9402 fi
e6cc62c6 9403
0046ff7c 9404
5005acfe 9405 enablestring=
e6cc62c6
VS
9406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9407echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9408 no_cache=0
c7206e64
VS
9409 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9410if test "${enable_ico_cur+set}" = set; then
9411 enableval="$enable_ico_cur"
e6cc62c6 9412
658974ae 9413 if test "$enableval" = yes; then
c7206e64 9414 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9415 else
c7206e64 9416 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9417 fi
e6cc62c6 9418
658974ae 9419else
e6cc62c6 9420
658974ae
VS
9421 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9422 if test "x$LINE" != x ; then
9423 eval "DEFAULT_$LINE"
9424 else
9425 no_cache=1
9426 fi
9427
c7206e64 9428 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9429
e6cc62c6 9430fi;
658974ae 9431
c7206e64 9432 eval "$ac_cv_use_ico_cur"
658974ae 9433 if test "$no_cache" != 1; then
c7206e64 9434 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9435 fi
9436
9437 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9438 echo "$as_me:$LINENO: result: yes" >&5
9439echo "${ECHO_T}yes" >&6
658974ae 9440 else
e6cc62c6
VS
9441 echo "$as_me:$LINENO: result: no" >&5
9442echo "${ECHO_T}no" >&6
658974ae 9443 fi
e6cc62c6 9444
658974ae 9445
b12915c1
VZ
9446fi
9447
d558c907
VS
9448case "${host}" in
9449 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9450 PATH_IFS=';'
9451 LEX_STEM="lexyy"
d558c907
VS
9452 ;;
9453 *)
9454 PATH_IFS=':'
9455 LEX_STEM="lex.yy"
9456 ;;
9457esac
9458
8284b0c5
MB
9459
9460
10f2d63a
VZ
9461 echo "saving argument cache $wx_arg_cache_file"
9462 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9463
8284b0c5 9464
e6cc62c6
VS
9465
9466echo "$as_me:$LINENO: checking for toolkit" >&5
9467echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9468
9469# In Wine, we need to default to MSW, not GTK or MOTIF
9470if test "$wxUSE_WINE" = "yes"; then
9471 DEFAULT_DEFAULT_wxUSE_GTK=0
9472 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9473 DEFAULT_DEFAULT_wxUSE_MSW=1
9474fi
10f2d63a
VZ
9475
9476if test "$wxUSE_GUI" = "yes"; then
9477
3a922bb4 9478 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9479 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9480echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9481 { (exit 1); exit 1; }; }
3a922bb4 9482 fi
b12915c1 9483
3a922bb4
RL
9484 if test "$TOOLKIT_GIVEN" = 1; then
9485 for toolkit in `echo $ALL_TOOLKITS`; do
9486 var=wxUSE_$toolkit
9487 eval "value=\$${var}"
9488 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9489 done
10f2d63a 9490 else
3a922bb4
RL
9491 for toolkit in `echo $ALL_TOOLKITS`; do
9492 if test "$has_toolkit_in_cache" != 1; then
9493 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9494 else
9495 var=DEFAULT_wxUSE_$toolkit
9496 fi
9497 eval "wxUSE_$toolkit=\$${var}"
9498 done
10f2d63a 9499 fi
10f2d63a 9500
ac0c4cc3
DE
9501 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9502 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9503 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9504
d558c907 9505 case "${host}" in
6fa882bd 9506 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9507 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9508 esac
10f2d63a 9509
3a922bb4
RL
9510 case "$NUM_TOOLKITS" in
9511 1)
9512 ;;
9513 0)
e6cc62c6
VS
9514 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9515echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9516 { (exit 1); exit 1; }; }
3a922bb4
RL
9517 ;;
9518 *)
e6cc62c6
VS
9519 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9520echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9521 { (exit 1); exit 1; }; }
3a922bb4 9522 esac
10f2d63a 9523
3a922bb4
RL
9524 for toolkit in `echo $ALL_TOOLKITS`; do
9525 var=wxUSE_$toolkit
9526 eval "value=\$${var}"
9527 if test "x$value" != x; then
9528 cache_var=CACHE_$toolkit
9529 eval "cache=\$${cache_var}"
9530 if test "$cache" = 1; then
9531 echo "$var=$value" >> ${wx_arg_cache_file}
9532 fi
9533 if test "$value" = 1; then
9534 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9535 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9536echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9537 fi
9538 fi
9539 done
10f2d63a 9540else
e6cc62c6
VS
9541 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9542echo "${ECHO_T}base ($host_alias hosted) only" >&6
10f2d63a
VZ
9543fi
9544
43d99b6d
VS
9545wants_win32=0
9546doesnt_want_win32=0
17234b26
MB
9547case "${host}" in
9548 *-*-cygwin*)
9549 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9550 wants_win32=1
9551 else
9552 doesnt_want_win32=1
17234b26
MB
9553 fi
9554 ;;
9555 *-*-mingw*)
43d99b6d 9556 wants_win32=1
17234b26
MB
9557 ;;
9558esac
9559
89e6bf6d
VZ
9560if test "$wxUSE_WINE" = "yes"; then
9561 wants_win32=1
9562 CC=winegcc
9563 CXX=wineg++
9564 RESCOMP=wrc
9565fi
9566
43d99b6d 9567if test "$wants_win32" = 1 ; then
17234b26
MB
9568 USE_UNIX=0
9569 USE_WIN32=1
e6cc62c6 9570 cat >>confdefs.h <<\_ACEOF
17234b26 9571#define __WIN32__ 1
e6cc62c6 9572_ACEOF
17234b26 9573
e6cc62c6 9574 cat >>confdefs.h <<\_ACEOF
17234b26 9575#define __WIN95__ 1
e6cc62c6 9576_ACEOF
17234b26 9577
e6cc62c6 9578 cat >>confdefs.h <<\_ACEOF
17234b26 9579#define __WINDOWS__ 1
e6cc62c6 9580_ACEOF
17234b26 9581
e6cc62c6 9582 cat >>confdefs.h <<\_ACEOF
17234b26 9583#define __GNUWIN32__ 1
e6cc62c6 9584_ACEOF
17234b26 9585
e6cc62c6 9586 cat >>confdefs.h <<\_ACEOF
17234b26 9587#define STRICT 1
e6cc62c6 9588_ACEOF
17234b26 9589
e6cc62c6 9590 cat >>confdefs.h <<\_ACEOF
17234b26 9591#define WINVER 0x0400
e6cc62c6 9592_ACEOF
17234b26 9593
43d99b6d
VS
9594fi
9595if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9596 USE_UNIX=1
9597 USE_WIN32=0
9598fi
9599
9600if test "$USE_UNIX" = 1 ; then
9601 wxUSE_UNIX=yes
e6cc62c6 9602 cat >>confdefs.h <<\_ACEOF
17234b26 9603#define __UNIX__ 1
e6cc62c6 9604_ACEOF
17234b26
MB
9605
9606fi
9607
8284b0c5 9608
e6cc62c6 9609cat >confcache <<\_ACEOF
10f2d63a
VZ
9610# This file is a shell script that caches the results of configure
9611# tests run on this system so they can be shared between configure
e6cc62c6
VS
9612# scripts and configure runs, see configure's option --config-cache.
9613# It is not useful on other systems. If it contains results you don't
9614# want to keep, you may remove or edit it.
10f2d63a 9615#
e6cc62c6
VS
9616# config.status only pays attention to the cache file if you give it
9617# the --recheck option to rerun configure.
10f2d63a 9618#
e6cc62c6
VS
9619# `ac_cv_env_foo' variables (set or unset) will be overridden when
9620# loading this file, other *unset* `ac_cv_foo' will be assigned the
9621# following values.
9622
9623_ACEOF
9624
10f2d63a
VZ
9625# The following way of writing the cache mishandles newlines in values,
9626# but we know of no workaround that is simple, portable, and efficient.
9627# So, don't put newlines in cache variables' values.
9628# Ultrix sh set writes to stderr and can't be redirected directly,
9629# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9630{
9631 (set) 2>&1 |
9632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9633 *ac_space=\ *)
9634 # `set' does not quote correctly, so add quotes (double-quote
9635 # substitution turns \\\\ into \\, and sed turns \\ into \).
9636 sed -n \
9637 "s/'/'\\\\''/g;
9638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9639 ;;
9640 *)
9641 # `set' quotes correctly as required by POSIX, so do not add quotes.
9642 sed -n \
9643 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9644 ;;
9645 esac;
9646} |
9647 sed '
9648 t clear
9649 : clear
9650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9651 t end
9652 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9653 : end' >>confcache
9654if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9655 if test -w $cache_file; then
e6cc62c6
VS
9656 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9657 cat confcache >$cache_file
10f2d63a
VZ
9658 else
9659 echo "not updating unwritable cache $cache_file"
9660 fi
9661fi
9662rm -f confcache
9663
e59890c3 9664if test "$build" != "$host" ; then
9d353d4a 9665 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9666 CC=$host_alias-gcc
9667 CXX=$host_alias-c++
9668 AR=$host_alias-ar
9669 RANLIB=$host_alias-ranlib
9670 DLLTOOL=$host_alias-dlltool
9671 RESCOMP=$host_alias-windres
9672 LD=$host_alias-ld
9673 NM=$host_alias-nm
9674 STRIP=$host_alias-strip
9675 else
e6cc62c6
VS
9676 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9677echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9678 { (exit 1); exit 1; }; }
3a922bb4 9679 fi
10f2d63a
VZ
9680fi
9681
ec603395 9682CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9683ac_ext=c
9684ac_cpp='$CPP $CPPFLAGS'
9685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688if test -n "$ac_tool_prefix"; then
9689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9690set dummy ${ac_tool_prefix}gcc; ac_word=$2
9691echo "$as_me:$LINENO: checking for $ac_word" >&5
9692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9693if test "${ac_cv_prog_CC+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695else
9696 if test -n "$CC"; then
9697 ac_cv_prog_CC="$CC" # Let the user override the test.
9698else
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710done
9711done
9712
9713fi
9714fi
9715CC=$ac_cv_prog_CC
9716if test -n "$CC"; then
9717 echo "$as_me:$LINENO: result: $CC" >&5
9718echo "${ECHO_T}$CC" >&6
9719else
9720 echo "$as_me:$LINENO: result: no" >&5
9721echo "${ECHO_T}no" >&6
9722fi
9723
9724fi
9725if test -z "$ac_cv_prog_CC"; then
9726 ac_ct_CC=$CC
9727 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9728set dummy gcc; ac_word=$2
e6cc62c6
VS
9729echo "$as_me:$LINENO: checking for $ac_word" >&5
9730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9731if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734 if test -n "$ac_ct_CC"; then
9735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9736else
9737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738for as_dir in $PATH
9739do
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_prog_ac_ct_CC="gcc"
9745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9747 fi
9748done
9749done
9750
9751fi
9752fi
9753ac_ct_CC=$ac_cv_prog_ac_ct_CC
9754if test -n "$ac_ct_CC"; then
9755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9756echo "${ECHO_T}$ac_ct_CC" >&6
9757else
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
9760fi
9761
9762 CC=$ac_ct_CC
9763else
9764 CC="$ac_cv_prog_CC"
9765fi
9766
9767if test -z "$CC"; then
9768 if test -n "$ac_tool_prefix"; then
9769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9770set dummy ${ac_tool_prefix}cc; ac_word=$2
9771echo "$as_me:$LINENO: checking for $ac_word" >&5
9772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9773if test "${ac_cv_prog_CC+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9775else
9776 if test -n "$CC"; then
9777 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9778else
e6cc62c6
VS
9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780for as_dir in $PATH
9781do
9782 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786 ac_cv_prog_CC="${ac_tool_prefix}cc"
9787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2
9789 fi
9790done
9791done
9792
10f2d63a 9793fi
6232543b 9794fi
e6cc62c6 9795CC=$ac_cv_prog_CC
6232543b 9796if test -n "$CC"; then
e6cc62c6
VS
9797 echo "$as_me:$LINENO: result: $CC" >&5
9798echo "${ECHO_T}$CC" >&6
9799else
9800 echo "$as_me:$LINENO: result: no" >&5
9801echo "${ECHO_T}no" >&6
9802fi
9803
9804fi
9805if test -z "$ac_cv_prog_CC"; then
9806 ac_ct_CC=$CC
9807 # Extract the first word of "cc", so it can be a program name with args.
9808set dummy cc; ac_word=$2
9809echo "$as_me:$LINENO: checking for $ac_word" >&5
9810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814 if test -n "$ac_ct_CC"; then
9815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9816else
9817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $PATH
9819do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824 ac_cv_prog_ac_ct_CC="cc"
9825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9827 fi
9828done
9829done
9830
9831fi
9832fi
9833ac_ct_CC=$ac_cv_prog_ac_ct_CC
9834if test -n "$ac_ct_CC"; then
9835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9836echo "${ECHO_T}$ac_ct_CC" >&6
9837else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840fi
9841
9842 CC=$ac_ct_CC
247f5006 9843else
e6cc62c6 9844 CC="$ac_cv_prog_CC"
247f5006
VZ
9845fi
9846
e6cc62c6 9847fi
5c6fa7d2
RR
9848if test -z "$CC"; then
9849 # Extract the first word of "cc", so it can be a program name with args.
9850set dummy cc; ac_word=$2
e6cc62c6
VS
9851echo "$as_me:$LINENO: checking for $ac_word" >&5
9852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9853if test "${ac_cv_prog_CC+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9855else
9856 if test -n "$CC"; then
9857 ac_cv_prog_CC="$CC" # Let the user override the test.
9858else
9859 ac_prog_rejected=no
e6cc62c6
VS
9860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9867 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9868 ac_prog_rejected=yes
9869 continue
9870 fi
9871 ac_cv_prog_CC="cc"
9872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875done
9876done
9877
328a083c
RR
9878if test $ac_prog_rejected = yes; then
9879 # We found a bogon in the path, so make sure we never use it.
9880 set dummy $ac_cv_prog_CC
9881 shift
e6cc62c6 9882 if test $# != 0; then
328a083c 9883 # We chose a different compiler from the bogus one.
1e487827
VS
9884 # However, it has the same basename, so the bogon will be chosen
9885 # first if we set CC to just the basename; use the full file name.
9886 shift
e6cc62c6 9887 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9888 fi
1e487827
VS
9889fi
9890fi
9891fi
e6cc62c6 9892CC=$ac_cv_prog_CC
1e487827 9893if test -n "$CC"; then
e6cc62c6
VS
9894 echo "$as_me:$LINENO: result: $CC" >&5
9895echo "${ECHO_T}$CC" >&6
703e0a69 9896else
e6cc62c6
VS
9897 echo "$as_me:$LINENO: result: no" >&5
9898echo "${ECHO_T}no" >&6
703e0a69 9899fi
1e487827 9900
e6cc62c6
VS
9901fi
9902if test -z "$CC"; then
9903 if test -n "$ac_tool_prefix"; then
9904 for ac_prog in cl
9905 do
9906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9907set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9908echo "$as_me:$LINENO: checking for $ac_word" >&5
9909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9910if test "${ac_cv_prog_CC+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9912else
9913 if test -n "$CC"; then
9914 ac_cv_prog_CC="$CC" # Let the user override the test.
9915else
e6cc62c6
VS
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927done
9928done
9929
f09359cf
VS
9930fi
9931fi
e6cc62c6 9932CC=$ac_cv_prog_CC
f09359cf 9933if test -n "$CC"; then
e6cc62c6
VS
9934 echo "$as_me:$LINENO: result: $CC" >&5
9935echo "${ECHO_T}$CC" >&6
f09359cf 9936else
e6cc62c6
VS
9937 echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
5c6fa7d2 9939fi
1e487827 9940
e6cc62c6
VS
9941 test -n "$CC" && break
9942 done
9943fi
9944if test -z "$CC"; then
9945 ac_ct_CC=$CC
9946 for ac_prog in cl
9947do
9948 # Extract the first word of "$ac_prog", so it can be a program name with args.
9949set dummy $ac_prog; ac_word=$2
9950echo "$as_me:$LINENO: checking for $ac_word" >&5
9951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9952if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954else
9955 if test -n "$ac_ct_CC"; then
9956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9957else
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965 ac_cv_prog_ac_ct_CC="$ac_prog"
9966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9968 fi
9969done
9970done
f09359cf 9971
e6cc62c6
VS
9972fi
9973fi
9974ac_ct_CC=$ac_cv_prog_ac_ct_CC
9975if test -n "$ac_ct_CC"; then
9976 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9977echo "${ECHO_T}$ac_ct_CC" >&6
9978else
9979 echo "$as_me:$LINENO: result: no" >&5
9980echo "${ECHO_T}no" >&6
9981fi
f09359cf 9982
e6cc62c6
VS
9983 test -n "$ac_ct_CC" && break
9984done
247f5006 9985
e6cc62c6
VS
9986 CC=$ac_ct_CC
9987fi
9988
9989fi
9990
9991
9992test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9993See \`config.log' for more details." >&5
9994echo "$as_me: error: no acceptable C compiler found in \$PATH
9995See \`config.log' for more details." >&2;}
9996 { (exit 1); exit 1; }; }
9997
9998# Provide some information about the compiler.
9999echo "$as_me:$LINENO:" \
10000 "checking for C compiler version" >&5
10001ac_compiler=`set X $ac_compile; echo $2`
10002{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10003 (eval $ac_compiler --version </dev/null >&5) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }
10007{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10008 (eval $ac_compiler -v </dev/null >&5) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }
10012{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10013 (eval $ac_compiler -V </dev/null >&5) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }
10017
10018cat >conftest.$ac_ext <<_ACEOF
10019#line $LINENO "configure"
10020/* confdefs.h. */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h. */
10025
10026int
10027main ()
10028{
247f5006 10029
e6cc62c6
VS
10030 ;
10031 return 0;
10032}
10033_ACEOF
10034ac_clean_files_save=$ac_clean_files
10035ac_clean_files="$ac_clean_files a.out a.exe b.out"
10036# Try to create an executable without -o first, disregard a.out.
10037# It will help us diagnose broken compilers, and finding out an intuition
10038# of exeext.
10039echo "$as_me:$LINENO: checking for C compiler default output" >&5
10040echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10041ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10042if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10043 (eval $ac_link_default) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; then
10047 # Find the output, starting from the most likely. This scheme is
10048# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10049# resort.
10050
10051# Be careful to initialize this variable, since it used to be cached.
10052# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10053ac_cv_exeext=
10054# b.out is created by i960 compilers.
10055for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10056do
10057 test -f "$ac_file" || continue
10058 case $ac_file in
10059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10060 ;;
10061 conftest.$ac_ext )
10062 # This is the source file.
10063 ;;
10064 [ab].out )
10065 # We found the default executable, but exeext='' is most
10066 # certainly right.
10067 break;;
10068 *.* )
10069 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10070 # FIXME: I believe we export ac_cv_exeext for Libtool,
10071 # but it would be cool to find out if it's true. Does anybody
10072 # maintain Libtool? --akim.
10073 export ac_cv_exeext
10074 break;;
10075 * )
10076 break;;
10077 esac
10078done
10079else
10080 echo "$as_me: failed program was:" >&5
10081sed 's/^/| /' conftest.$ac_ext >&5
10082
10083{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10084See \`config.log' for more details." >&5
10085echo "$as_me: error: C compiler cannot create executables
10086See \`config.log' for more details." >&2;}
10087 { (exit 77); exit 77; }; }
10088fi
10089
10090ac_exeext=$ac_cv_exeext
10091echo "$as_me:$LINENO: result: $ac_file" >&5
10092echo "${ECHO_T}$ac_file" >&6
10093
10094# Check the compiler produces executables we can run. If not, either
10095# the compiler is broken, or we cross compile.
10096echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10097echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10098# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10099# If not cross compiling, check that we can run a simple program.
10100if test "$cross_compiling" != yes; then
10101 if { ac_try='./$ac_file'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 cross_compiling=no
698dcdb6 10108 else
e6cc62c6
VS
10109 if test "$cross_compiling" = maybe; then
10110 cross_compiling=yes
10111 else
10112 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10113If you meant to cross compile, use \`--host'.
10114See \`config.log' for more details." >&5
10115echo "$as_me: error: cannot run C compiled programs.
10116If you meant to cross compile, use \`--host'.
10117See \`config.log' for more details." >&2;}
10118 { (exit 1); exit 1; }; }
10119 fi
698dcdb6 10120 fi
52127426 10121fi
e6cc62c6
VS
10122echo "$as_me:$LINENO: result: yes" >&5
10123echo "${ECHO_T}yes" >&6
10124
10125rm -f a.out a.exe conftest$ac_cv_exeext b.out
10126ac_clean_files=$ac_clean_files_save
10127# Check the compiler produces executables we can run. If not, either
10128# the compiler is broken, or we cross compile.
10129echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10130echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10131echo "$as_me:$LINENO: result: $cross_compiling" >&5
10132echo "${ECHO_T}$cross_compiling" >&6
10133
10134echo "$as_me:$LINENO: checking for suffix of executables" >&5
10135echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137 (eval $ac_link) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; then
10141 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10142# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10143# work properly (i.e., refer to `conftest.exe'), while it won't with
10144# `rm'.
10145for ac_file in conftest.exe conftest conftest.*; do
10146 test -f "$ac_file" || continue
10147 case $ac_file in
10148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10150 export ac_cv_exeext
10151 break;;
10152 * ) break;;
10153 esac
10154done
5c6fa7d2 10155else
e6cc62c6
VS
10156 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10157See \`config.log' for more details." >&5
10158echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10159See \`config.log' for more details." >&2;}
10160 { (exit 1); exit 1; }; }
10161fi
10162
10163rm -f conftest$ac_cv_exeext
10164echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10165echo "${ECHO_T}$ac_cv_exeext" >&6
10166
10167rm -f conftest.$ac_ext
10168EXEEXT=$ac_cv_exeext
10169ac_exeext=$EXEEXT
10170echo "$as_me:$LINENO: checking for suffix of object files" >&5
10171echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10172if test "${ac_cv_objext+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10174else
10175 cat >conftest.$ac_ext <<_ACEOF
10176#line $LINENO "configure"
10177/* confdefs.h. */
10178_ACEOF
10179cat confdefs.h >>conftest.$ac_ext
10180cat >>conftest.$ac_ext <<_ACEOF
10181/* end confdefs.h. */
10182
10183int
10184main ()
10185{
f09359cf 10186
e6cc62c6
VS
10187 ;
10188 return 0;
10189}
10190_ACEOF
10191rm -f conftest.o conftest.obj
10192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; then
10197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10198 case $ac_file in
10199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10201 break;;
10202 esac
10203done
a0b9e27f 10204else
e6cc62c6
VS
10205 echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10209See \`config.log' for more details." >&5
10210echo "$as_me: error: cannot compute suffix of object files: cannot compile
10211See \`config.log' for more details." >&2;}
10212 { (exit 1); exit 1; }; }
a0b9e27f 10213fi
247f5006 10214
e6cc62c6
VS
10215rm -f conftest.$ac_cv_objext conftest.$ac_ext
10216fi
10217echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10218echo "${ECHO_T}$ac_cv_objext" >&6
10219OBJEXT=$ac_cv_objext
10220ac_objext=$OBJEXT
10221echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10222echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10223if test "${ac_cv_c_compiler_gnu+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10225else
e6cc62c6
VS
10226 cat >conftest.$ac_ext <<_ACEOF
10227#line $LINENO "configure"
10228/* confdefs.h. */
10229_ACEOF
10230cat confdefs.h >>conftest.$ac_ext
10231cat >>conftest.$ac_ext <<_ACEOF
10232/* end confdefs.h. */
10233
10234int
10235main ()
10236{
10237#ifndef __GNUC__
10238 choke me
10239#endif
10240
10241 ;
10242 return 0;
10243}
10244_ACEOF
10245rm -f conftest.$ac_objext
10246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247 (eval $ac_compile) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_compiler_gnu=yes
10258else
10259 echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
10262ac_compiler_gnu=no
10263fi
10264rm -f conftest.$ac_objext conftest.$ac_ext
10265ac_cv_c_compiler_gnu=$ac_compiler_gnu
10266
10267fi
10268echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10269echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10270GCC=`test $ac_compiler_gnu = yes && echo yes`
10271ac_test_CFLAGS=${CFLAGS+set}
10272ac_save_CFLAGS=$CFLAGS
10273CFLAGS="-g"
10274echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10275echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10276if test "${ac_cv_prog_cc_g+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
10279 cat >conftest.$ac_ext <<_ACEOF
10280#line $LINENO "configure"
10281/* confdefs.h. */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h. */
10286
10287int
10288main ()
10289{
10290
10291 ;
10292 return 0;
10293}
10294_ACEOF
10295rm -f conftest.$ac_objext
10296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297 (eval $ac_compile) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -s conftest.$ac_objext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10f2d63a
VZ
10307 ac_cv_prog_cc_g=yes
10308else
e6cc62c6
VS
10309 echo "$as_me: failed program was:" >&5
10310sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10311
e6cc62c6 10312ac_cv_prog_cc_g=no
10f2d63a 10313fi
e6cc62c6
VS
10314rm -f conftest.$ac_objext conftest.$ac_ext
10315fi
10316echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10317echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10318if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10319 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10320elif test $ac_cv_prog_cc_g = yes; then
10321 if test "$GCC" = yes; then
10f2d63a
VZ
10322 CFLAGS="-g -O2"
10323 else
f09359cf 10324 CFLAGS="-g"
10f2d63a 10325 fi
5c0a20c3 10326else
f09359cf
VS
10327 if test "$GCC" = yes; then
10328 CFLAGS="-O2"
10329 else
10330 CFLAGS=
10331 fi
10f2d63a 10332fi
e6cc62c6
VS
10333echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10334echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10335if test "${ac_cv_prog_cc_stdc+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337else
10338 ac_cv_prog_cc_stdc=no
10339ac_save_CC=$CC
10340cat >conftest.$ac_ext <<_ACEOF
10341#line $LINENO "configure"
10342/* confdefs.h. */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h. */
10347#include <stdarg.h>
10348#include <stdio.h>
10349#include <sys/types.h>
10350#include <sys/stat.h>
10351/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10352struct buf { int x; };
10353FILE * (*rcsopen) (struct buf *, struct stat *, int);
10354static char *e (p, i)
10355 char **p;
10356 int i;
10357{
10358 return p[i];
10359}
10360static char *f (char * (*g) (char **, int), char **p, ...)
10361{
10362 char *s;
10363 va_list v;
10364 va_start (v,p);
10365 s = g (p, va_arg (v,int));
10366 va_end (v);
10367 return s;
10368}
10369int test (int i, double x);
10370struct s1 {int (*f) (int a);};
10371struct s2 {int (*f) (double a);};
10372int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10373int argc;
10374char **argv;
10375int
10376main ()
10377{
10378return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10379 ;
10380 return 0;
10381}
10382_ACEOF
10383# Don't try gcc -ansi; that turns off useful extensions and
10384# breaks some systems' header files.
10385# AIX -qlanglvl=ansi
10386# Ultrix and OSF/1 -std1
10387# HP-UX 10.20 and later -Ae
10388# HP-UX older versions -Aa -D_HPUX_SOURCE
10389# SVR4 -Xc -D__EXTENSIONS__
10390for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10391do
10392 CC="$ac_save_CC $ac_arg"
10393 rm -f conftest.$ac_objext
10394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10395 (eval $ac_compile) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -s conftest.$ac_objext'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 ac_cv_prog_cc_stdc=$ac_arg
10406break
10407else
10408 echo "$as_me: failed program was:" >&5
10409sed 's/^/| /' conftest.$ac_ext >&5
10410
10411fi
10412rm -f conftest.$ac_objext
10413done
10414rm -f conftest.$ac_ext conftest.$ac_objext
10415CC=$ac_save_CC
10416
10417fi
10418
10419case "x$ac_cv_prog_cc_stdc" in
10420 x|xno)
10421 echo "$as_me:$LINENO: result: none needed" >&5
10422echo "${ECHO_T}none needed" >&6 ;;
10423 *)
10424 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10425echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10426 CC="$CC $ac_cv_prog_cc_stdc" ;;
10427esac
10428
10429# Some people use a C++ compiler to compile C. Since we use `exit',
10430# in C++ we need to declare it. In case someone uses the same compiler
10431# for both compiling C and C++ we need to have the C++ compiler decide
10432# the declaration of exit, since it's the most demanding environment.
10433cat >conftest.$ac_ext <<_ACEOF
10434#ifndef __cplusplus
10435 choke me
10436#endif
10437_ACEOF
10438rm -f conftest.$ac_objext
10439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440 (eval $ac_compile) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 for ac_declaration in \
10451 ''\
10452 '#include <stdlib.h>' \
10453 'extern "C" void std::exit (int) throw (); using std::exit;' \
10454 'extern "C" void std::exit (int); using std::exit;' \
10455 'extern "C" void exit (int) throw ();' \
10456 'extern "C" void exit (int);' \
10457 'void exit (int);'
10458do
10459 cat >conftest.$ac_ext <<_ACEOF
10460#line $LINENO "configure"
10461/* confdefs.h. */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h. */
10466#include <stdlib.h>
10467$ac_declaration
10468int
10469main ()
10470{
10471exit (42);
10472 ;
10473 return 0;
10474}
10475_ACEOF
10476rm -f conftest.$ac_objext
10477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 :
10489else
10490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493continue
10494fi
10495rm -f conftest.$ac_objext conftest.$ac_ext
10496 cat >conftest.$ac_ext <<_ACEOF
10497#line $LINENO "configure"
10498/* confdefs.h. */
10499_ACEOF
10500cat confdefs.h >>conftest.$ac_ext
10501cat >>conftest.$ac_ext <<_ACEOF
10502/* end confdefs.h. */
10503$ac_declaration
10504int
10505main ()
10506{
10507exit (42);
10508 ;
10509 return 0;
10510}
10511_ACEOF
10512rm -f conftest.$ac_objext
10513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10514 (eval $ac_compile) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 break
10525else
10526 echo "$as_me: failed program was:" >&5
10527sed 's/^/| /' conftest.$ac_ext >&5
10528
10529fi
10530rm -f conftest.$ac_objext conftest.$ac_ext
10531done
10532rm -f conftest*
10533if test -n "$ac_declaration"; then
10534 echo '#ifdef __cplusplus' >>confdefs.h
10535 echo $ac_declaration >>confdefs.h
10536 echo '#endif' >>confdefs.h
10537fi
10538
10539else
10540 echo "$as_me: failed program was:" >&5
10541sed 's/^/| /' conftest.$ac_ext >&5
10542
10543fi
10544rm -f conftest.$ac_objext conftest.$ac_ext
10545ac_ext=c
10546ac_cpp='$CPP $CPPFLAGS'
10547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10549ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10550
10551
e6cc62c6
VS
10552
10553ac_ext=c
10554ac_cpp='$CPP $CPPFLAGS'
10555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10557ac_compiler_gnu=$ac_cv_c_compiler_gnu
10558echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10559echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10560# On Suns, sometimes $CPP names a directory.
10561if test -n "$CPP" && test -d "$CPP"; then
10562 CPP=
10563fi
10564if test -z "$CPP"; then
e6cc62c6
VS
10565 if test "${ac_cv_prog_CPP+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 # Double quotes because CPP needs to be expanded
10569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10570 do
10571 ac_preproc_ok=false
10572for ac_c_preproc_warn_flag in '' yes
10573do
10574 # Use a header file that comes with gcc, so configuring glibc
10575 # with a fresh cross-compiler works.
10576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10577 # <limits.h> exists even on freestanding compilers.
10f2d63a 10578 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10579 # not just through cpp. "Syntax error" is here to catch this case.
10580 cat >conftest.$ac_ext <<_ACEOF
10581#line $LINENO "configure"
10582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
10587#ifdef __STDC__
10588# include <limits.h>
10589#else
10590# include <assert.h>
10591#endif
10592 Syntax error
10593_ACEOF
10594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } >/dev/null; then
10602 if test -s conftest.err; then
10603 ac_cpp_err=$ac_c_preproc_warn_flag
10604 else
10605 ac_cpp_err=
10606 fi
10f2d63a 10607else
e6cc62c6
VS
10608 ac_cpp_err=yes
10609fi
10610if test -z "$ac_cpp_err"; then
a0b9e27f 10611 :
247f5006 10612else
e6cc62c6
VS
10613 echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 # Broken: fails on valid input.
10617continue
10618fi
10619rm -f conftest.err conftest.$ac_ext
10620
10621 # OK, works on sane cases. Now check whether non-existent headers
10622 # can be detected and how.
10623 cat >conftest.$ac_ext <<_ACEOF
10624#line $LINENO "configure"
10625/* confdefs.h. */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h. */
10630#include <ac_nonexistent.h>
10631_ACEOF
10632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } >/dev/null; then
10640 if test -s conftest.err; then
10641 ac_cpp_err=$ac_c_preproc_warn_flag
10642 else
10643 ac_cpp_err=
10644 fi
10f2d63a 10645else
e6cc62c6 10646 ac_cpp_err=yes
579d8138 10647fi
e6cc62c6
VS
10648if test -z "$ac_cpp_err"; then
10649 # Broken: success on invalid input.
10650continue
10651else
10652 echo "$as_me: failed program was:" >&5
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 # Passes both tests.
10656ac_preproc_ok=:
10657break
52127426 10658fi
e6cc62c6
VS
10659rm -f conftest.err conftest.$ac_ext
10660
10661done
10662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10663rm -f conftest.err conftest.$ac_ext
10664if $ac_preproc_ok; then
10665 break
8284b0c5 10666fi
e6cc62c6
VS
10667
10668 done
10669 ac_cv_prog_CPP=$CPP
10670
10671fi
10672 CPP=$ac_cv_prog_CPP
10673else
10674 ac_cv_prog_CPP=$CPP
10675fi
10676echo "$as_me:$LINENO: result: $CPP" >&5
10677echo "${ECHO_T}$CPP" >&6
10678ac_preproc_ok=false
10679for ac_c_preproc_warn_flag in '' yes
10680do
10681 # Use a header file that comes with gcc, so configuring glibc
10682 # with a fresh cross-compiler works.
10683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684 # <limits.h> exists even on freestanding compilers.
10685 # On the NeXT, cc -E runs the code through the compiler's parser,
10686 # not just through cpp. "Syntax error" is here to catch this case.
10687 cat >conftest.$ac_ext <<_ACEOF
10688#line $LINENO "configure"
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694#ifdef __STDC__
10695# include <limits.h>
10696#else
10697# include <assert.h>
10698#endif
10699 Syntax error
10700_ACEOF
10701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 else
10712 ac_cpp_err=
10713 fi
10714else
10715 ac_cpp_err=yes
10716fi
10717if test -z "$ac_cpp_err"; then
10718 :
10719else
10720 echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
10723 # Broken: fails on valid input.
10724continue
10725fi
10726rm -f conftest.err conftest.$ac_ext
10727
10728 # OK, works on sane cases. Now check whether non-existent headers
10729 # can be detected and how.
10730 cat >conftest.$ac_ext <<_ACEOF
10731#line $LINENO "configure"
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h. */
10737#include <ac_nonexistent.h>
10738_ACEOF
10739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } >/dev/null; then
10747 if test -s conftest.err; then
10748 ac_cpp_err=$ac_c_preproc_warn_flag
10749 else
10750 ac_cpp_err=
10751 fi
10752else
10753 ac_cpp_err=yes
10754fi
10755if test -z "$ac_cpp_err"; then
10756 # Broken: success on invalid input.
10757continue
10758else
10759 echo "$as_me: failed program was:" >&5
10760sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 # Passes both tests.
10763ac_preproc_ok=:
10764break
a0b9e27f 10765fi
e6cc62c6
VS
10766rm -f conftest.err conftest.$ac_ext
10767
10768done
10769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10770rm -f conftest.err conftest.$ac_ext
10771if $ac_preproc_ok; then
10772 :
10773else
10774 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10775See \`config.log' for more details." >&5
10776echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10777See \`config.log' for more details." >&2;}
10778 { (exit 1); exit 1; }; }
10779fi
10780
10781ac_ext=c
10782ac_cpp='$CPP $CPPFLAGS'
10783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10785ac_compiler_gnu=$ac_cv_c_compiler_gnu
10786
10787
10788echo "$as_me:$LINENO: checking for egrep" >&5
10789echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10790if test "${ac_cv_prog_egrep+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10792else
e6cc62c6
VS
10793 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10794 then ac_cv_prog_egrep='grep -E'
10795 else ac_cv_prog_egrep='egrep'
10796 fi
10f2d63a 10797fi
e6cc62c6
VS
10798echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10799echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10800 EGREP=$ac_cv_prog_egrep
10801
10f2d63a 10802
e6cc62c6
VS
10803if test $ac_cv_c_compiler_gnu = yes; then
10804 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10805echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10806if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10808else
10809 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10810 cat >conftest.$ac_ext <<_ACEOF
10811#line $LINENO "configure"
10812/* confdefs.h. */
10813_ACEOF
10814cat confdefs.h >>conftest.$ac_ext
10815cat >>conftest.$ac_ext <<_ACEOF
10816/* end confdefs.h. */
10f2d63a
VZ
10817#include <sgtty.h>
10818Autoconf TIOCGETP
e6cc62c6 10819_ACEOF
10f2d63a 10820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10821 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10822 ac_cv_prog_gcc_traditional=yes
10823else
10f2d63a
VZ
10824 ac_cv_prog_gcc_traditional=no
10825fi
10826rm -f conftest*
10827
8284b0c5 10828
10f2d63a 10829 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10830 cat >conftest.$ac_ext <<_ACEOF
10831#line $LINENO "configure"
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
10f2d63a
VZ
10837#include <termio.h>
10838Autoconf TCGETA
e6cc62c6 10839_ACEOF
10f2d63a 10840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10841 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10842 ac_cv_prog_gcc_traditional=yes
10843fi
10844rm -f conftest*
10845
10846 fi
10847fi
e6cc62c6
VS
10848echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10849echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10850 if test $ac_cv_prog_gcc_traditional = yes; then
10851 CC="$CC -traditional"
10852 fi
10853fi
10854
8284b0c5
MB
10855
10856
e6cc62c6
VS
10857
10858ac_ext=cc
1e487827 10859ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10863
698dcdb6 10864
ec603395 10865CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10866ac_ext=cc
10867ac_cpp='$CXXCPP $CPPFLAGS'
10868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10871if test -n "$ac_tool_prefix"; then
10872 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10873 do
10874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10876echo "$as_me:$LINENO: checking for $ac_word" >&5
10877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10878if test "${ac_cv_prog_CXX+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10880else
10881 if test -n "$CXX"; then
10882 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10883else
e6cc62c6
VS
10884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885for as_dir in $PATH
10886do
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10894 fi
10895done
10896done
10897
10f2d63a
VZ
10898fi
10899fi
e6cc62c6 10900CXX=$ac_cv_prog_CXX
10f2d63a 10901if test -n "$CXX"; then
e6cc62c6
VS
10902 echo "$as_me:$LINENO: result: $CXX" >&5
10903echo "${ECHO_T}$CXX" >&6
10f2d63a 10904else
e6cc62c6
VS
10905 echo "$as_me:$LINENO: result: no" >&5
10906echo "${ECHO_T}no" >&6
10f2d63a
VZ
10907fi
10908
e6cc62c6
VS
10909 test -n "$CXX" && break
10910 done
10911fi
10912if test -z "$CXX"; then
10913 ac_ct_CXX=$CXX
10914 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10915do
10916 # Extract the first word of "$ac_prog", so it can be a program name with args.
10917set dummy $ac_prog; ac_word=$2
10918echo "$as_me:$LINENO: checking for $ac_word" >&5
10919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10920if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922else
10923 if test -n "$ac_ct_CXX"; then
10924 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10925else
10926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $PATH
10928do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933 ac_cv_prog_ac_ct_CXX="$ac_prog"
10934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10936 fi
10937done
10f2d63a 10938done
a0b9e27f 10939
8284b0c5 10940fi
a0b9e27f 10941fi
e6cc62c6
VS
10942ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10943if test -n "$ac_ct_CXX"; then
10944 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10945echo "${ECHO_T}$ac_ct_CXX" >&6
10946else
10947 echo "$as_me:$LINENO: result: no" >&5
10948echo "${ECHO_T}no" >&6
a0b9e27f 10949fi
10f2d63a 10950
e6cc62c6
VS
10951 test -n "$ac_ct_CXX" && break
10952done
10953test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10954
10955 CXX=$ac_ct_CXX
10956fi
10957
10958
10959# Provide some information about the compiler.
10960echo "$as_me:$LINENO:" \
10961 "checking for C++ compiler version" >&5
10962ac_compiler=`set X $ac_compile; echo $2`
10963{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10964 (eval $ac_compiler --version </dev/null >&5) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }
10968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10969 (eval $ac_compiler -v </dev/null >&5) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }
10973{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10974 (eval $ac_compiler -V </dev/null >&5) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }
10978
10979echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10980echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10981if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983else
10984 cat >conftest.$ac_ext <<_ACEOF
10985#line $LINENO "configure"
10986/* confdefs.h. */
10987_ACEOF
10988cat confdefs.h >>conftest.$ac_ext
10989cat >>conftest.$ac_ext <<_ACEOF
10990/* end confdefs.h. */
10991
10992int
10993main ()
10994{
10995#ifndef __GNUC__
10996 choke me
10997#endif
10f2d63a 10998
e6cc62c6
VS
10999 ;
11000 return 0;
11001}
11002_ACEOF
11003rm -f conftest.$ac_objext
11004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005 (eval $ac_compile) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; }; then
11015 ac_compiler_gnu=yes
11016else
11017 echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
11020ac_compiler_gnu=no
11021fi
11022rm -f conftest.$ac_objext conftest.$ac_ext
11023ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11024
11025fi
11026echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11027echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11028GXX=`test $ac_compiler_gnu = yes && echo yes`
11029ac_test_CXXFLAGS=${CXXFLAGS+set}
11030ac_save_CXXFLAGS=$CXXFLAGS
11031CXXFLAGS="-g"
11032echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11033echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11034if test "${ac_cv_prog_cxx_g+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036else
11037 cat >conftest.$ac_ext <<_ACEOF
11038#line $LINENO "configure"
11039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044
11045int
11046main ()
11047{
f09359cf 11048
e6cc62c6
VS
11049 ;
11050 return 0;
11051}
11052_ACEOF
11053rm -f conftest.$ac_objext
11054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055 (eval $ac_compile) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -s conftest.$ac_objext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
10f2d63a
VZ
11065 ac_cv_prog_cxx_g=yes
11066else
e6cc62c6
VS
11067 echo "$as_me: failed program was:" >&5
11068sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11069
e6cc62c6 11070ac_cv_prog_cxx_g=no
10f2d63a 11071fi
e6cc62c6
VS
11072rm -f conftest.$ac_objext conftest.$ac_ext
11073fi
11074echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11075echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11076if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11077 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11078elif test $ac_cv_prog_cxx_g = yes; then
11079 if test "$GXX" = yes; then
10f2d63a
VZ
11080 CXXFLAGS="-g -O2"
11081 else
f09359cf 11082 CXXFLAGS="-g"
10f2d63a 11083 fi
5c0a20c3 11084else
f09359cf
VS
11085 if test "$GXX" = yes; then
11086 CXXFLAGS="-O2"
11087 else
11088 CXXFLAGS=
11089 fi
10f2d63a 11090fi
e6cc62c6
VS
11091for ac_declaration in \
11092 ''\
11093 '#include <stdlib.h>' \
11094 'extern "C" void std::exit (int) throw (); using std::exit;' \
11095 'extern "C" void std::exit (int); using std::exit;' \
11096 'extern "C" void exit (int) throw ();' \
11097 'extern "C" void exit (int);' \
11098 'void exit (int);'
11099do
11100 cat >conftest.$ac_ext <<_ACEOF
11101#line $LINENO "configure"
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
11107#include <stdlib.h>
11108$ac_declaration
11109int
11110main ()
11111{
11112exit (42);
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.$ac_objext
11118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -s conftest.$ac_objext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 :
11130else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134continue
11135fi
11136rm -f conftest.$ac_objext conftest.$ac_ext
11137 cat >conftest.$ac_ext <<_ACEOF
11138#line $LINENO "configure"
11139/* confdefs.h. */
11140_ACEOF
11141cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */
11144$ac_declaration
11145int
11146main ()
11147{
11148exit (42);
11149 ;
11150 return 0;
11151}
11152_ACEOF
11153rm -f conftest.$ac_objext
11154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 break
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170fi
11171rm -f conftest.$ac_objext conftest.$ac_ext
11172done
11173rm -f conftest*
11174if test -n "$ac_declaration"; then
11175 echo '#ifdef __cplusplus' >>confdefs.h
11176 echo $ac_declaration >>confdefs.h
11177 echo '#endif' >>confdefs.h
11178fi
11179
11180ac_ext=cc
11181ac_cpp='$CXXCPP $CPPFLAGS'
11182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11185
11186
10f2d63a 11187ac_ext=c
10f2d63a 11188ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11192
11193
e6cc62c6
VS
11194if test -n "$ac_tool_prefix"; then
11195 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11196set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11197echo "$as_me:$LINENO: checking for $ac_word" >&5
11198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11199if test "${ac_cv_prog_RANLIB+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11201else
11202 if test -n "$RANLIB"; then
11203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11204else
e6cc62c6
VS
11205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206for as_dir in $PATH
11207do
11208 IFS=$as_save_IFS
11209 test -z "$as_dir" && as_dir=.
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11212 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11214 break 2
11215 fi
11216done
11217done
11218
10f2d63a
VZ
11219fi
11220fi
e6cc62c6 11221RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11222if test -n "$RANLIB"; then
e6cc62c6
VS
11223 echo "$as_me:$LINENO: result: $RANLIB" >&5
11224echo "${ECHO_T}$RANLIB" >&6
11225else
11226 echo "$as_me:$LINENO: result: no" >&5
11227echo "${ECHO_T}no" >&6
11228fi
11229
11230fi
11231if test -z "$ac_cv_prog_RANLIB"; then
11232 ac_ct_RANLIB=$RANLIB
11233 # Extract the first word of "ranlib", so it can be a program name with args.
11234set dummy ranlib; ac_word=$2
11235echo "$as_me:$LINENO: checking for $ac_word" >&5
11236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11237if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11239else
e6cc62c6
VS
11240 if test -n "$ac_ct_RANLIB"; then
11241 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11242else
11243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244for as_dir in $PATH
11245do
11246 IFS=$as_save_IFS
11247 test -z "$as_dir" && as_dir=.
11248 for ac_exec_ext in '' $ac_executable_extensions; do
11249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11250 ac_cv_prog_ac_ct_RANLIB="ranlib"
11251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 break 2
11253 fi
11254done
11255done
11256
11257 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11258fi
11259fi
11260ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11261if test -n "$ac_ct_RANLIB"; then
11262 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11263echo "${ECHO_T}$ac_ct_RANLIB" >&6
11264else
11265 echo "$as_me:$LINENO: result: no" >&5
11266echo "${ECHO_T}no" >&6
11267fi
11268
11269 RANLIB=$ac_ct_RANLIB
11270else
11271 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11272fi
11273
10f2d63a
VZ
11274
11275# Extract the first word of "ar", so it can be a program name with args.
11276set dummy ar; ac_word=$2
e6cc62c6
VS
11277echo "$as_me:$LINENO: checking for $ac_word" >&5
11278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11279if test "${ac_cv_prog_AR+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11281else
11282 if test -n "$AR"; then
11283 ac_cv_prog_AR="$AR" # Let the user override the test.
11284else
e6cc62c6
VS
11285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286for as_dir in $PATH
11287do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11292 ac_cv_prog_AR="ar"
11293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 break 2
11295 fi
11296done
11297done
11298
10f2d63a
VZ
11299 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11300fi
11301fi
e6cc62c6 11302AR=$ac_cv_prog_AR
10f2d63a 11303if test -n "$AR"; then
e6cc62c6
VS
11304 echo "$as_me:$LINENO: result: $AR" >&5
11305echo "${ECHO_T}$AR" >&6
10f2d63a 11306else
e6cc62c6
VS
11307 echo "$as_me:$LINENO: result: no" >&5
11308echo "${ECHO_T}no" >&6
10f2d63a
VZ
11309fi
11310
8284b0c5 11311
6054113a 11312# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11313# so one script is as good as another. But avoid the broken or
11314# incompatible versions:
11315# SysV /etc/install, /usr/sbin/install
11316# SunOS /usr/etc/install
11317# IRIX /sbin/install
11318# AIX /bin/install
e6cc62c6 11319# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11320# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11321# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11322# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11323# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11324echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11325echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11326if test -z "$INSTALL"; then
e6cc62c6
VS
11327if test "${ac_cv_path_install+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329else
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 # Account for people who put trailing slashes in PATH elements.
11336case $as_dir/ in
11337 ./ | .// | /cC/* | \
11338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11339 /usr/ucb/* ) ;;
11340 *)
11341 # OSF1 and SCO ODT 3.0 have their own names for install.
11342 # Don't use installbsd from OSF since it installs stuff as root
11343 # by default.
11344 for ac_prog in ginstall scoinst install; do
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11347 if test $ac_prog = install &&
11348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11349 # AIX install. It has an incompatible calling convention.
11350 :
11351 elif test $ac_prog = install &&
11352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11353 # program-specific install script used by HP pwplus--don't use.
11354 :
11355 else
11356 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11357 break 3
11358 fi
11359 fi
10f2d63a 11360 done
e6cc62c6
VS
11361 done
11362 ;;
11363esac
11364done
11365
10f2d63a
VZ
11366
11367fi
11368 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11369 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11370 else
11371 # As a last resort, use the slow shell script. We don't cache a
11372 # path for INSTALL within a source directory, because that will
11373 # break other packages using the cache if that directory is
11374 # removed, or if the path is relative.
e6cc62c6 11375 INSTALL=$ac_install_sh
10f2d63a
VZ
11376 fi
11377fi
e6cc62c6
VS
11378echo "$as_me:$LINENO: result: $INSTALL" >&5
11379echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11380
11381# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11382# It thinks the first close brace ends the variable substitution.
11383test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11384
e6cc62c6 11385test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11386
10f2d63a
VZ
11387test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11388
8284b0c5 11389
1d1b75ac
VZ
11390case ${INSTALL} in
11391 /* ) # Absolute
11392 ;;
4f5a7f74
VZ
11393 ?:* ) # Drive letter, considered as absolute.
11394 ;;
3bd8fb5f 11395 *)
1d1b75ac
VZ
11396 INSTALL=`pwd`/${INSTALL} ;;
11397esac
11398
4f5a7f74
VZ
11399case ${host} in
11400 *-hp-hpux* )
11401 INSTALL_DIR="mkdir"
11402 ;;
11403
11404 *) INSTALL_DIR="$INSTALL -d"
11405 ;;
11406esac
11407
8284b0c5 11408
6054113a
GD
11409case "${host}" in
11410
b5853384 11411 powerpc-*-darwin* )
eb99ae0b
GD
11412 INSTALL_PROGRAM="cp -fp"
11413 INSTALL_DATA="cp -fp"
6054113a
GD
11414 ;;
11415 *)
11416 ;;
d6853540 11417esac
698dcdb6 11418
10f2d63a
VZ
11419# Extract the first word of "strip", so it can be a program name with args.
11420set dummy strip; ac_word=$2
e6cc62c6
VS
11421echo "$as_me:$LINENO: checking for $ac_word" >&5
11422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11423if test "${ac_cv_prog_STRIP+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11425else
11426 if test -n "$STRIP"; then
11427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11428else
e6cc62c6
VS
11429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430for as_dir in $PATH
11431do
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_prog_STRIP="strip"
11437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 break 2
11439 fi
11440done
11441done
11442
10f2d63a
VZ
11443 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11444fi
11445fi
e6cc62c6 11446STRIP=$ac_cv_prog_STRIP
10f2d63a 11447if test -n "$STRIP"; then
e6cc62c6
VS
11448 echo "$as_me:$LINENO: result: $STRIP" >&5
11449echo "${ECHO_T}$STRIP" >&6
10f2d63a 11450else
e6cc62c6
VS
11451 echo "$as_me:$LINENO: result: no" >&5
11452echo "${ECHO_T}no" >&6
10f2d63a
VZ
11453fi
11454
5c6fa7d2 11455
e6cc62c6
VS
11456echo "$as_me:$LINENO: checking if make is GNU make" >&5
11457echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11458if test "${wx_cv_prog_makeisgnu+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11460else
e6cc62c6 11461
414eab6d 11462 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11463 egrep -s GNU > /dev/null); then
414eab6d
VZ
11464 wx_cv_prog_makeisgnu="yes"
11465 else
11466 wx_cv_prog_makeisgnu="no"
11467 fi
11468
11469fi
e6cc62c6
VS
11470echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11471echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11472
11473if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11474 IF_GNU_MAKE=""
11475else
11476 IF_GNU_MAKE="#"
11477fi
11478
8284b0c5
MB
11479
11480
414eab6d 11481if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11482echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11483echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11484if test "${wx_cv_prog_makevpath+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11486else
e6cc62c6 11487
10f2d63a
VZ
11488cat - << EOF > confMake
11489check : file
11490 cp \$? \$@
11491 cp \$? final_file
11492EOF
11493
11494if test ! -d sub ; then
11495 mkdir sub
11496fi
11497echo dummy > sub/file
f6bcfd97 11498${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11499RESULT=$?
11500rm -f sub/file check final_file confMake
11501rmdir sub
11502if test "$RESULT" = 0; then
04e7a216 11503 wx_cv_prog_makevpath="yes"
10f2d63a 11504else
04e7a216
VZ
11505 wx_cv_prog_makevpath="no"
11506fi
11507
11508fi
e6cc62c6
VS
11509echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11510echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11511
11512if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11513{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11514You need a make-utility that is able to use the variable
11515VPATH correctly.
11516If your version of make does not support VPATH correctly,
11517please install GNU-make (possibly as gmake), and start
11518configure with the following command:
11519export MAKE=gmake; ./configure for sh-type shells
11520setenv MAKE gmake; ./configure for csh-type shells
11521Also please do remember to use gmake in this case every time
11522you are trying to compile.
e6cc62c6
VS
11523" >&5
11524echo "$as_me: error:
11525You need a make-utility that is able to use the variable
11526VPATH correctly.
11527If your version of make does not support VPATH correctly,
11528please install GNU-make (possibly as gmake), and start
11529configure with the following command:
11530export MAKE=gmake; ./configure for sh-type shells
11531setenv MAKE gmake; ./configure for csh-type shells
11532Also please do remember to use gmake in this case every time
11533you are trying to compile.
11534" >&2;}
11535 { (exit 1); exit 1; }; }
11536fi fi
10f2d63a
VZ
11537for ac_prog in 'bison -y' byacc
11538do
e6cc62c6 11539 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11540set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11541echo "$as_me:$LINENO: checking for $ac_word" >&5
11542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11543if test "${ac_cv_prog_YACC+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11545else
11546 if test -n "$YACC"; then
11547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11548else
e6cc62c6
VS
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556 ac_cv_prog_YACC="$ac_prog"
11557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11559 fi
11560done
11561done
11562
10f2d63a
VZ
11563fi
11564fi
e6cc62c6 11565YACC=$ac_cv_prog_YACC
10f2d63a 11566if test -n "$YACC"; then
e6cc62c6
VS
11567 echo "$as_me:$LINENO: result: $YACC" >&5
11568echo "${ECHO_T}$YACC" >&6
10f2d63a 11569else
e6cc62c6
VS
11570 echo "$as_me:$LINENO: result: no" >&5
11571echo "${ECHO_T}no" >&6
10f2d63a
VZ
11572fi
11573
e6cc62c6 11574 test -n "$YACC" && break
10f2d63a
VZ
11575done
11576test -n "$YACC" || YACC="yacc"
11577
8284b0c5 11578
e6cc62c6
VS
11579for ac_prog in flex lex
11580do
11581 # Extract the first word of "$ac_prog", so it can be a program name with args.
11582set dummy $ac_prog; ac_word=$2
11583echo "$as_me:$LINENO: checking for $ac_word" >&5
11584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11585if test "${ac_cv_prog_LEX+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11587else
11588 if test -n "$LEX"; then
11589 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11590else
e6cc62c6
VS
11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598 ac_cv_prog_LEX="$ac_prog"
11599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11601 fi
11602done
11603done
11604
10f2d63a
VZ
11605fi
11606fi
e6cc62c6 11607LEX=$ac_cv_prog_LEX
10f2d63a 11608if test -n "$LEX"; then
e6cc62c6
VS
11609 echo "$as_me:$LINENO: result: $LEX" >&5
11610echo "${ECHO_T}$LEX" >&6
10f2d63a 11611else
e6cc62c6
VS
11612 echo "$as_me:$LINENO: result: no" >&5
11613echo "${ECHO_T}no" >&6
10f2d63a
VZ
11614fi
11615
e6cc62c6
VS
11616 test -n "$LEX" && break
11617done
11618test -n "$LEX" || LEX=":"
11619
10f2d63a
VZ
11620if test -z "$LEXLIB"
11621then
e6cc62c6
VS
11622 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11623echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11624if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626else
11627 ac_check_lib_save_LIBS=$LIBS
11628LIBS="-lfl $LIBS"
11629cat >conftest.$ac_ext <<_ACEOF
11630#line $LINENO "configure"
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636
11637/* Override any gcc2 internal prototype to avoid an error. */
11638#ifdef __cplusplus
11639extern "C"
11640#endif
11641/* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11643char yywrap ();
11644int
11645main ()
11646{
11647yywrap ();
11648 ;
11649 return 0;
11650}
11651_ACEOF
11652rm -f conftest.$ac_objext conftest$ac_exeext
11653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654 (eval $ac_link) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 ac_cv_lib_fl_yywrap=yes
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669ac_cv_lib_fl_yywrap=no
11670fi
11671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11672LIBS=$ac_check_lib_save_LIBS
11673fi
11674echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11675echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11676if test $ac_cv_lib_fl_yywrap = yes; then
11677 LEXLIB="-lfl"
11678else
11679 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11680echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11681if test "${ac_cv_lib_l_yywrap+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684 ac_check_lib_save_LIBS=$LIBS
11685LIBS="-ll $LIBS"
11686cat >conftest.$ac_ext <<_ACEOF
11687#line $LINENO "configure"
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693
247f5006 11694/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11695#ifdef __cplusplus
11696extern "C"
11697#endif
247f5006 11698/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11699 builtin and then its argument prototype would still apply. */
11700char yywrap ();
11701int
11702main ()
11703{
11704yywrap ();
11705 ;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext conftest$ac_exeext
11710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711 (eval $ac_link) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
11715 { ac_try='test -s conftest$ac_exeext'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 ac_cv_lib_l_yywrap=yes
11722else
11723 echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726ac_cv_lib_l_yywrap=no
11727fi
11728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11729LIBS=$ac_check_lib_save_LIBS
11730fi
11731echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11732echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11733if test $ac_cv_lib_l_yywrap = yes; then
11734 LEXLIB="-ll"
11735fi
10f2d63a 11736
10f2d63a 11737fi
8284b0c5 11738
10f2d63a 11739fi
e6cc62c6
VS
11740
11741if test "x$LEX" != "x:"; then
11742 echo "$as_me:$LINENO: checking lex output file root" >&5
11743echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11744if test "${ac_cv_prog_lex_root+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11746else
11747 # The minimal lex program is just a single line: %%. But some broken lexes
11748# (Solaris, I think it was) want two %% lines, so accommodate them.
11749cat >conftest.l <<_ACEOF
11750%%
11751%%
11752_ACEOF
11753{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11754 (eval $LEX conftest.l) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }
11758if test -f lex.yy.c; then
11759 ac_cv_prog_lex_root=lex.yy
11760elif test -f lexyy.c; then
11761 ac_cv_prog_lex_root=lexyy
8284b0c5 11762else
e6cc62c6
VS
11763 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11764echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11765 { (exit 1); exit 1; }; }
10f2d63a 11766fi
a0b9e27f 11767fi
e6cc62c6
VS
11768echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11769echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11770rm -f conftest.l
11771LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11772
e6cc62c6
VS
11773echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11774echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11775if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11777else
e6cc62c6
VS
11778 # POSIX says lex can declare yytext either as a pointer or an array; the
11779# default is implementation-dependent. Figure out which it is, since
11780# not all implementations provide the %pointer and %array declarations.
11781ac_cv_prog_lex_yytext_pointer=no
11782echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11783ac_save_LIBS=$LIBS
11784LIBS="$LIBS $LEXLIB"
11785cat >conftest.$ac_ext <<_ACEOF
11786`cat $LEX_OUTPUT_ROOT.c`
11787_ACEOF
11788rm -f conftest.$ac_objext conftest$ac_exeext
11789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790 (eval $ac_link) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11801else
e6cc62c6
VS
11802 echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
10f2d63a 11805fi
e6cc62c6
VS
11806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11807LIBS=$ac_save_LIBS
11808rm -f "${LEX_OUTPUT_ROOT}.c"
11809
11810fi
11811echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11812echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11813if test $ac_cv_prog_lex_yytext_pointer = yes; then
11814
11815cat >>confdefs.h <<\_ACEOF
11816#define YYTEXT_POINTER 1
11817_ACEOF
11818
a0b9e27f 11819fi
e6cc62c6
VS
11820
11821fi
11822
11823echo "$as_me:$LINENO: checking whether ln -s works" >&5
11824echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11825LN_S=$as_ln_s
11826if test "$LN_S" = "ln -s"; then
11827 echo "$as_me:$LINENO: result: yes" >&5
11828echo "${ECHO_T}yes" >&6
10f2d63a 11829else
e6cc62c6
VS
11830 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11831echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11832fi
5c6fa7d2 11833
247f5006 11834
2b5f62a0
VZ
11835case "${host}" in
11836 *-pc-os2_emx | *-pc-os2-emx )
11837 LIBS="$LIBS -lstdcpp"
11838 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11839 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11840echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11841if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11843else
e6cc62c6 11844 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11845LIBS="-lcExt $LIBS"
e6cc62c6
VS
11846cat >conftest.$ac_ext <<_ACEOF
11847#line $LINENO "configure"
11848/* confdefs.h. */
11849_ACEOF
11850cat confdefs.h >>conftest.$ac_ext
11851cat >>conftest.$ac_ext <<_ACEOF
11852/* end confdefs.h. */
11853
2b5f62a0 11854/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11855#ifdef __cplusplus
11856extern "C"
11857#endif
2b5f62a0 11858/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11859 builtin and then its argument prototype would still apply. */
11860char drand48 ();
11861int
11862main ()
11863{
11864drand48 ();
11865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest.$ac_objext conftest$ac_exeext
11870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -s conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_cv_lib_cExt_drand48=yes
11882else
11883 echo "$as_me: failed program was:" >&5
11884sed 's/^/| /' conftest.$ac_ext >&5
11885
11886ac_cv_lib_cExt_drand48=no
11887fi
11888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11889LIBS=$ac_check_lib_save_LIBS
11890fi
11891echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11892echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11893if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11894 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11895fi
11896
11897 else
11898 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11899 fi
11900 ;;
11901esac
11902
a0b9e27f 11903
01aa5863
VS
11904if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11905 echo "$as_me:$LINENO: checking for strings.h" >&5
11906echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11907if test "${ac_cv_header_strings_h+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11909else
11910 ac_cv_header_strings_h=no
11911fi
11912echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11913echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11914 if test "$ac_cv_header_strings_h" = "no"; then
11915 echo "$as_me:$LINENO: result: forced no into cache" >&5
11916echo "${ECHO_T}forced no into cache" >&6
11917 else
11918 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11919echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11920 fi
11921fi
11922echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11923echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11924if test "${ac_cv_header_stdc+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926else
11927 cat >conftest.$ac_ext <<_ACEOF
11928#line $LINENO "configure"
11929/* confdefs.h. */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h. */
11934#include <stdlib.h>
11935#include <stdarg.h>
11936#include <string.h>
11937#include <float.h>
247f5006 11938
e6cc62c6
VS
11939int
11940main ()
11941{
90dd450c 11942
e6cc62c6
VS
11943 ;
11944 return 0;
11945}
11946_ACEOF
11947rm -f conftest.$ac_objext
11948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_header_stdc=yes
8284b0c5 11960else
e6cc62c6
VS
11961 echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
11964ac_cv_header_stdc=no
21d1c967 11965fi
e6cc62c6 11966rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11967
e6cc62c6
VS
11968if test $ac_cv_header_stdc = yes; then
11969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11970 cat >conftest.$ac_ext <<_ACEOF
11971#line $LINENO "configure"
11972/* confdefs.h. */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h. */
11977#include <string.h>
11978
11979_ACEOF
11980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11981 $EGREP "memchr" >/dev/null 2>&1; then
11982 :
11983else
11984 ac_cv_header_stdc=no
3a922bb4 11985fi
a0b9e27f 11986rm -f conftest*
e6cc62c6 11987
90dd450c 11988fi
e6cc62c6
VS
11989
11990if test $ac_cv_header_stdc = yes; then
11991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11992 cat >conftest.$ac_ext <<_ACEOF
11993#line $LINENO "configure"
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999#include <stdlib.h>
12000
12001_ACEOF
12002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12003 $EGREP "free" >/dev/null 2>&1; then
12004 :
a0b9e27f 12005else
e6cc62c6 12006 ac_cv_header_stdc=no
21d1c967 12007fi
e6cc62c6 12008rm -f conftest*
247f5006
VZ
12009
12010fi
e6cc62c6
VS
12011
12012if test $ac_cv_header_stdc = yes; then
12013 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12014 if test "$cross_compiling" = yes; then
12015 :
12016else
12017 cat >conftest.$ac_ext <<_ACEOF
12018#line $LINENO "configure"
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024#include <ctype.h>
12025#if ((' ' & 0x0FF) == 0x020)
12026# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12027# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12028#else
12029# define ISLOWER(c) \
12030 (('a' <= (c) && (c) <= 'i') \
12031 || ('j' <= (c) && (c) <= 'r') \
12032 || ('s' <= (c) && (c) <= 'z'))
12033# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12034#endif
12035
12036#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12037int
12038main ()
12039{
12040 int i;
12041 for (i = 0; i < 256; i++)
12042 if (XOR (islower (i), ISLOWER (i))
12043 || toupper (i) != TOUPPER (i))
12044 exit(2);
12045 exit (0);
12046}
12047_ACEOF
12048rm -f conftest$ac_exeext
12049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 :
a0b9e27f 12060else
e6cc62c6
VS
12061 echo "$as_me: program exited with status $ac_status" >&5
12062echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065( exit $ac_status )
12066ac_cv_header_stdc=no
12067fi
12068rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12069fi
12070fi
12071fi
12072echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12073echo "${ECHO_T}$ac_cv_header_stdc" >&6
12074if test $ac_cv_header_stdc = yes; then
12075
12076cat >>confdefs.h <<\_ACEOF
12077#define STDC_HEADERS 1
12078_ACEOF
12079
a0b9e27f 12080fi
e6cc62c6
VS
12081
12082# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12093 inttypes.h stdint.h unistd.h
12094do
12095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12096echo "$as_me:$LINENO: checking for $ac_header" >&5
12097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12098if eval "test \"\${$as_ac_Header+set}\" = set"; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101 cat >conftest.$ac_ext <<_ACEOF
12102#line $LINENO "configure"
12103/* confdefs.h. */
12104_ACEOF
12105cat confdefs.h >>conftest.$ac_ext
12106cat >>conftest.$ac_ext <<_ACEOF
12107/* end confdefs.h. */
12108$ac_includes_default
12109
12110#include <$ac_header>
12111_ACEOF
12112rm -f conftest.$ac_objext
12113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_Header=yes"
12125else
12126 echo "$as_me: failed program was:" >&5
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
12129eval "$as_ac_Header=no"
12130fi
12131rm -f conftest.$ac_objext conftest.$ac_ext
12132fi
12133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12135if test `eval echo '${'$as_ac_Header'}'` = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12138_ACEOF
12139
12140fi
12141
a0b9e27f 12142done
90dd450c 12143
e6cc62c6
VS
12144
12145
12146for ac_header in strings.h
21d1c967 12147do
e6cc62c6
VS
12148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12149if eval "test \"\${$as_ac_Header+set}\" = set"; then
12150 echo "$as_me:$LINENO: checking for $ac_header" >&5
12151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12152if eval "test \"\${$as_ac_Header+set}\" = set"; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154fi
12155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12157else
12158 # Is the header compilable?
12159echo "$as_me:$LINENO: checking $ac_header usability" >&5
12160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12161cat >conftest.$ac_ext <<_ACEOF
12162#line $LINENO "configure"
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168$ac_includes_default
12169#include <$ac_header>
12170_ACEOF
12171rm -f conftest.$ac_objext
12172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_header_compiler=yes
12184else
12185 echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188ac_header_compiler=no
12189fi
12190rm -f conftest.$ac_objext conftest.$ac_ext
12191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12192echo "${ECHO_T}$ac_header_compiler" >&6
12193
12194# Is the header present?
12195echo "$as_me:$LINENO: checking $ac_header presence" >&5
12196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12197cat >conftest.$ac_ext <<_ACEOF
12198#line $LINENO "configure"
12199/* confdefs.h. */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h. */
12204#include <$ac_header>
12205_ACEOF
12206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } >/dev/null; then
12214 if test -s conftest.err; then
12215 ac_cpp_err=$ac_c_preproc_warn_flag
12216 else
12217 ac_cpp_err=
12218 fi
12219else
12220 ac_cpp_err=yes
12221fi
12222if test -z "$ac_cpp_err"; then
12223 ac_header_preproc=yes
12224else
12225 echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
12228 ac_header_preproc=no
12229fi
12230rm -f conftest.err conftest.$ac_ext
12231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12232echo "${ECHO_T}$ac_header_preproc" >&6
12233
12234# So? What about this header?
12235case $ac_header_compiler:$ac_header_preproc in
12236 yes:no )
12237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12241 (
12242 cat <<\_ASBOX
12243## ------------------------------------ ##
12244## Report this to bug-autoconf@gnu.org. ##
12245## ------------------------------------ ##
12246_ASBOX
12247 ) |
12248 sed "s/^/$as_me: WARNING: /" >&2
12249 ;;
12250 no:yes )
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12257 (
12258 cat <<\_ASBOX
12259## ------------------------------------ ##
12260## Report this to bug-autoconf@gnu.org. ##
12261## ------------------------------------ ##
12262_ASBOX
12263 ) |
12264 sed "s/^/$as_me: WARNING: /" >&2
12265 ;;
12266esac
12267echo "$as_me:$LINENO: checking for $ac_header" >&5
12268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12269if eval "test \"\${$as_ac_Header+set}\" = set"; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271else
12272 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12273fi
e6cc62c6
VS
12274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12276
a0b9e27f 12277fi
e6cc62c6
VS
12278if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281_ACEOF
12282
12283fi
12284
12285done
12286
e6cc62c6
VS
12287
12288
12289for ac_header in stdlib.h
12290do
12291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292if eval "test \"\${$as_ac_Header+set}\" = set"; then
12293 echo "$as_me:$LINENO: checking for $ac_header" >&5
12294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12295if eval "test \"\${$as_ac_Header+set}\" = set"; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297fi
12298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12300else
12301 # Is the header compilable?
12302echo "$as_me:$LINENO: checking $ac_header usability" >&5
12303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12304cat >conftest.$ac_ext <<_ACEOF
12305#line $LINENO "configure"
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
12311$ac_includes_default
12312#include <$ac_header>
12313_ACEOF
12314rm -f conftest.$ac_objext
12315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316 (eval $ac_compile) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -s conftest.$ac_objext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_header_compiler=yes
12327else
12328 echo "$as_me: failed program was:" >&5
12329sed 's/^/| /' conftest.$ac_ext >&5
12330
12331ac_header_compiler=no
12332fi
12333rm -f conftest.$ac_objext conftest.$ac_ext
12334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335echo "${ECHO_T}$ac_header_compiler" >&6
12336
12337# Is the header present?
12338echo "$as_me:$LINENO: checking $ac_header presence" >&5
12339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12340cat >conftest.$ac_ext <<_ACEOF
12341#line $LINENO "configure"
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347#include <$ac_header>
12348_ACEOF
12349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } >/dev/null; then
12357 if test -s conftest.err; then
12358 ac_cpp_err=$ac_c_preproc_warn_flag
12359 else
12360 ac_cpp_err=
12361 fi
12362else
12363 ac_cpp_err=yes
12364fi
12365if test -z "$ac_cpp_err"; then
12366 ac_header_preproc=yes
12367else
12368 echo "$as_me: failed program was:" >&5
12369sed 's/^/| /' conftest.$ac_ext >&5
12370
12371 ac_header_preproc=no
12372fi
12373rm -f conftest.err conftest.$ac_ext
12374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12375echo "${ECHO_T}$ac_header_preproc" >&6
12376
12377# So? What about this header?
12378case $ac_header_compiler:$ac_header_preproc in
12379 yes:no )
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12384 (
12385 cat <<\_ASBOX
12386## ------------------------------------ ##
12387## Report this to bug-autoconf@gnu.org. ##
12388## ------------------------------------ ##
12389_ASBOX
12390 ) |
12391 sed "s/^/$as_me: WARNING: /" >&2
12392 ;;
12393 no:yes )
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12400 (
12401 cat <<\_ASBOX
12402## ------------------------------------ ##
12403## Report this to bug-autoconf@gnu.org. ##
12404## ------------------------------------ ##
12405_ASBOX
12406 ) |
12407 sed "s/^/$as_me: WARNING: /" >&2
12408 ;;
12409esac
12410echo "$as_me:$LINENO: checking for $ac_header" >&5
12411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12412if eval "test \"\${$as_ac_Header+set}\" = set"; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12414else
e6cc62c6
VS
12415 eval "$as_ac_Header=$ac_header_preproc"
12416fi
12417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12419
21d1c967 12420fi
e6cc62c6
VS
12421if test `eval echo '${'$as_ac_Header'}'` = yes; then
12422 cat >>confdefs.h <<_ACEOF
12423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12424_ACEOF
12425
12426fi
12427
21d1c967 12428done
4f14bcd8 12429
5c6fa7d2 12430
e6cc62c6 12431for ac_header in malloc.h
21d1c967 12432do
e6cc62c6
VS
12433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12434if eval "test \"\${$as_ac_Header+set}\" = set"; then
12435 echo "$as_me:$LINENO: checking for $ac_header" >&5
12436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12437if eval "test \"\${$as_ac_Header+set}\" = set"; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439fi
12440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12442else
12443 # Is the header compilable?
12444echo "$as_me:$LINENO: checking $ac_header usability" >&5
12445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12446cat >conftest.$ac_ext <<_ACEOF
12447#line $LINENO "configure"
12448/* confdefs.h. */
12449_ACEOF
12450cat confdefs.h >>conftest.$ac_ext
12451cat >>conftest.$ac_ext <<_ACEOF
12452/* end confdefs.h. */
12453$ac_includes_default
12454#include <$ac_header>
12455_ACEOF
12456rm -f conftest.$ac_objext
12457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458 (eval $ac_compile) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -s conftest.$ac_objext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_header_compiler=yes
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473ac_header_compiler=no
12474fi
12475rm -f conftest.$ac_objext conftest.$ac_ext
12476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12477echo "${ECHO_T}$ac_header_compiler" >&6
12478
12479# Is the header present?
12480echo "$as_me:$LINENO: checking $ac_header presence" >&5
12481echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12482cat >conftest.$ac_ext <<_ACEOF
12483#line $LINENO "configure"
12484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h. */
12489#include <$ac_header>
12490_ACEOF
12491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12493 ac_status=$?
12494 grep -v '^ *+' conftest.er1 >conftest.err
12495 rm -f conftest.er1
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } >/dev/null; then
12499 if test -s conftest.err; then
12500 ac_cpp_err=$ac_c_preproc_warn_flag
12501 else
12502 ac_cpp_err=
12503 fi
12504else
12505 ac_cpp_err=yes
12506fi
12507if test -z "$ac_cpp_err"; then
12508 ac_header_preproc=yes
12509else
12510 echo "$as_me: failed program was:" >&5
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_header_preproc=no
12514fi
12515rm -f conftest.err conftest.$ac_ext
12516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12517echo "${ECHO_T}$ac_header_preproc" >&6
12518
12519# So? What about this header?
12520case $ac_header_compiler:$ac_header_preproc in
12521 yes:no )
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12526 (
12527 cat <<\_ASBOX
12528## ------------------------------------ ##
12529## Report this to bug-autoconf@gnu.org. ##
12530## ------------------------------------ ##
12531_ASBOX
12532 ) |
12533 sed "s/^/$as_me: WARNING: /" >&2
12534 ;;
12535 no:yes )
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12542 (
12543 cat <<\_ASBOX
12544## ------------------------------------ ##
12545## Report this to bug-autoconf@gnu.org. ##
12546## ------------------------------------ ##
12547_ASBOX
12548 ) |
12549 sed "s/^/$as_me: WARNING: /" >&2
12550 ;;
12551esac
12552echo "$as_me:$LINENO: checking for $ac_header" >&5
12553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12554if eval "test \"\${$as_ac_Header+set}\" = set"; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556else
12557 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12558fi
e6cc62c6
VS
12559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12561
21d1c967 12562fi
e6cc62c6
VS
12563if test `eval echo '${'$as_ac_Header'}'` = yes; then
12564 cat >>confdefs.h <<_ACEOF
12565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12566_ACEOF
12567
12568fi
12569
12570done
12571
12572
12573for ac_header in unistd.h
12574do
12575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12576if eval "test \"\${$as_ac_Header+set}\" = set"; then
12577 echo "$as_me:$LINENO: checking for $ac_header" >&5
12578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12579if eval "test \"\${$as_ac_Header+set}\" = set"; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581fi
12582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12584else
12585 # Is the header compilable?
12586echo "$as_me:$LINENO: checking $ac_header usability" >&5
12587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12588cat >conftest.$ac_ext <<_ACEOF
12589#line $LINENO "configure"
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
12595$ac_includes_default
12596#include <$ac_header>
12597_ACEOF
12598rm -f conftest.$ac_objext
12599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -s conftest.$ac_objext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_header_compiler=yes
12611else
12612 echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615ac_header_compiler=no
12616fi
12617rm -f conftest.$ac_objext conftest.$ac_ext
12618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12619echo "${ECHO_T}$ac_header_compiler" >&6
12620
12621# Is the header present?
12622echo "$as_me:$LINENO: checking $ac_header presence" >&5
12623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12624cat >conftest.$ac_ext <<_ACEOF
12625#line $LINENO "configure"
12626/* confdefs.h. */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h. */
12631#include <$ac_header>
12632_ACEOF
12633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } >/dev/null; then
12641 if test -s conftest.err; then
12642 ac_cpp_err=$ac_c_preproc_warn_flag
12643 else
12644 ac_cpp_err=
12645 fi
a0b9e27f 12646else
e6cc62c6
VS
12647 ac_cpp_err=yes
12648fi
12649if test -z "$ac_cpp_err"; then
12650 ac_header_preproc=yes
12651else
12652 echo "$as_me: failed program was:" >&5
12653sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 ac_header_preproc=no
12656fi
12657rm -f conftest.err conftest.$ac_ext
12658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12659echo "${ECHO_T}$ac_header_preproc" >&6
12660
12661# So? What about this header?
12662case $ac_header_compiler:$ac_header_preproc in
12663 yes:no )
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12668 (
12669 cat <<\_ASBOX
12670## ------------------------------------ ##
12671## Report this to bug-autoconf@gnu.org. ##
12672## ------------------------------------ ##
12673_ASBOX
12674 ) |
12675 sed "s/^/$as_me: WARNING: /" >&2
12676 ;;
12677 no:yes )
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12684 (
12685 cat <<\_ASBOX
12686## ------------------------------------ ##
12687## Report this to bug-autoconf@gnu.org. ##
12688## ------------------------------------ ##
12689_ASBOX
12690 ) |
12691 sed "s/^/$as_me: WARNING: /" >&2
12692 ;;
12693esac
12694echo "$as_me:$LINENO: checking for $ac_header" >&5
12695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12696if eval "test \"\${$as_ac_Header+set}\" = set"; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698else
12699 eval "$as_ac_Header=$ac_header_preproc"
12700fi
12701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12703
12704fi
12705if test `eval echo '${'$as_ac_Header'}'` = yes; then
12706 cat >>confdefs.h <<_ACEOF
12707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12708_ACEOF
12709
d4158b5d 12710fi
e6cc62c6 12711
21d1c967 12712done
f6bcfd97 12713
e6cc62c6
VS
12714
12715for ac_header in wchar.h
12716do
12717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12718if eval "test \"\${$as_ac_Header+set}\" = set"; then
12719 echo "$as_me:$LINENO: checking for $ac_header" >&5
12720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12721if eval "test \"\${$as_ac_Header+set}\" = set"; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723fi
12724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12726else
12727 # Is the header compilable?
12728echo "$as_me:$LINENO: checking $ac_header usability" >&5
12729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12730cat >conftest.$ac_ext <<_ACEOF
12731#line $LINENO "configure"
12732/* confdefs.h. */
12733_ACEOF
12734cat confdefs.h >>conftest.$ac_ext
12735cat >>conftest.$ac_ext <<_ACEOF
12736/* end confdefs.h. */
12737$ac_includes_default
12738#include <$ac_header>
12739_ACEOF
12740rm -f conftest.$ac_objext
12741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742 (eval $ac_compile) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try='test -s conftest.$ac_objext'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_header_compiler=yes
12753else
12754 echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757ac_header_compiler=no
12758fi
12759rm -f conftest.$ac_objext conftest.$ac_ext
12760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12761echo "${ECHO_T}$ac_header_compiler" >&6
12762
12763# Is the header present?
12764echo "$as_me:$LINENO: checking $ac_header presence" >&5
12765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12766cat >conftest.$ac_ext <<_ACEOF
12767#line $LINENO "configure"
12768/* confdefs.h. */
12769_ACEOF
12770cat confdefs.h >>conftest.$ac_ext
12771cat >>conftest.$ac_ext <<_ACEOF
12772/* end confdefs.h. */
12773#include <$ac_header>
12774_ACEOF
12775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } >/dev/null; then
12783 if test -s conftest.err; then
12784 ac_cpp_err=$ac_c_preproc_warn_flag
12785 else
12786 ac_cpp_err=
12787 fi
12788else
12789 ac_cpp_err=yes
12790fi
12791if test -z "$ac_cpp_err"; then
12792 ac_header_preproc=yes
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 ac_header_preproc=no
12798fi
12799rm -f conftest.err conftest.$ac_ext
12800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12801echo "${ECHO_T}$ac_header_preproc" >&6
12802
12803# So? What about this header?
12804case $ac_header_compiler:$ac_header_preproc in
12805 yes:no )
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12810 (
12811 cat <<\_ASBOX
12812## ------------------------------------ ##
12813## Report this to bug-autoconf@gnu.org. ##
12814## ------------------------------------ ##
12815_ASBOX
12816 ) |
12817 sed "s/^/$as_me: WARNING: /" >&2
12818 ;;
12819 no:yes )
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12826 (
12827 cat <<\_ASBOX
12828## ------------------------------------ ##
12829## Report this to bug-autoconf@gnu.org. ##
12830## ------------------------------------ ##
12831_ASBOX
12832 ) |
12833 sed "s/^/$as_me: WARNING: /" >&2
12834 ;;
12835esac
12836echo "$as_me:$LINENO: checking for $ac_header" >&5
12837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12838if eval "test \"\${$as_ac_Header+set}\" = set"; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840else
12841 eval "$as_ac_Header=$ac_header_preproc"
12842fi
12843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12845
90dd450c 12846fi
e6cc62c6
VS
12847if test `eval echo '${'$as_ac_Header'}'` = yes; then
12848 cat >>confdefs.h <<_ACEOF
12849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12850_ACEOF
12851
12852fi
12853
12854done
90dd450c 12855
e6cc62c6
VS
12856
12857if test "$ac_cv_header_wchar_h" != "yes"; then
12858
12859for ac_header in wcstr.h
21d1c967 12860do
e6cc62c6
VS
12861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12862if eval "test \"\${$as_ac_Header+set}\" = set"; then
12863 echo "$as_me:$LINENO: checking for $ac_header" >&5
12864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12865if eval "test \"\${$as_ac_Header+set}\" = set"; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12867fi
12868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12870else
12871 # Is the header compilable?
12872echo "$as_me:$LINENO: checking $ac_header usability" >&5
12873echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12874cat >conftest.$ac_ext <<_ACEOF
12875#line $LINENO "configure"
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881$ac_includes_default
12882#include <$ac_header>
12883_ACEOF
12884rm -f conftest.$ac_objext
12885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_header_compiler=yes
12897else
12898 echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
12901ac_header_compiler=no
12902fi
12903rm -f conftest.$ac_objext conftest.$ac_ext
12904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12905echo "${ECHO_T}$ac_header_compiler" >&6
12906
12907# Is the header present?
12908echo "$as_me:$LINENO: checking $ac_header presence" >&5
12909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12910cat >conftest.$ac_ext <<_ACEOF
12911#line $LINENO "configure"
12912/* confdefs.h. */
12913_ACEOF
12914cat confdefs.h >>conftest.$ac_ext
12915cat >>conftest.$ac_ext <<_ACEOF
12916/* end confdefs.h. */
12917#include <$ac_header>
12918_ACEOF
12919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } >/dev/null; then
12927 if test -s conftest.err; then
12928 ac_cpp_err=$ac_c_preproc_warn_flag
12929 else
12930 ac_cpp_err=
12931 fi
12932else
12933 ac_cpp_err=yes
12934fi
12935if test -z "$ac_cpp_err"; then
12936 ac_header_preproc=yes
12937else
12938 echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 ac_header_preproc=no
12942fi
12943rm -f conftest.err conftest.$ac_ext
12944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12945echo "${ECHO_T}$ac_header_preproc" >&6
12946
12947# So? What about this header?
12948case $ac_header_compiler:$ac_header_preproc in
12949 yes:no )
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12954 (
12955 cat <<\_ASBOX
12956## ------------------------------------ ##
12957## Report this to bug-autoconf@gnu.org. ##
12958## ------------------------------------ ##
12959_ASBOX
12960 ) |
12961 sed "s/^/$as_me: WARNING: /" >&2
12962 ;;
12963 no:yes )
12964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12967echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12970 (
12971 cat <<\_ASBOX
12972## ------------------------------------ ##
12973## Report this to bug-autoconf@gnu.org. ##
12974## ------------------------------------ ##
12975_ASBOX
12976 ) |
12977 sed "s/^/$as_me: WARNING: /" >&2
12978 ;;
12979esac
12980echo "$as_me:$LINENO: checking for $ac_header" >&5
12981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12982if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984else
12985 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12986fi
e6cc62c6
VS
12987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12989
4f14bcd8 12990fi
e6cc62c6
VS
12991if test `eval echo '${'$as_ac_Header'}'` = yes; then
12992 cat >>confdefs.h <<_ACEOF
12993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12994_ACEOF
12995
12996fi
12997
12998done
12999
13000fi
13001
13002
13003for ac_header in fnmatch.h
13004do
13005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13006if eval "test \"\${$as_ac_Header+set}\" = set"; then
13007 echo "$as_me:$LINENO: checking for $ac_header" >&5
13008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13009if eval "test \"\${$as_ac_Header+set}\" = set"; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011fi
13012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13013echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13014else
13015 # Is the header compilable?
13016echo "$as_me:$LINENO: checking $ac_header usability" >&5
13017echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13018cat >conftest.$ac_ext <<_ACEOF
13019#line $LINENO "configure"
13020/* confdefs.h. */
13021_ACEOF
13022cat confdefs.h >>conftest.$ac_ext
13023cat >>conftest.$ac_ext <<_ACEOF
13024/* end confdefs.h. */
13025$ac_includes_default
13026#include <$ac_header>
13027_ACEOF
13028rm -f conftest.$ac_objext
13029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13030 (eval $ac_compile) 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -s conftest.$ac_objext'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 ac_header_compiler=yes
13041else
13042 echo "$as_me: failed program was:" >&5
13043sed 's/^/| /' conftest.$ac_ext >&5
13044
13045ac_header_compiler=no
13046fi
13047rm -f conftest.$ac_objext conftest.$ac_ext
13048echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13049echo "${ECHO_T}$ac_header_compiler" >&6
13050
13051# Is the header present?
13052echo "$as_me:$LINENO: checking $ac_header presence" >&5
13053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13054cat >conftest.$ac_ext <<_ACEOF
13055#line $LINENO "configure"
13056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
13060/* end confdefs.h. */
13061#include <$ac_header>
13062_ACEOF
13063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } >/dev/null; then
13071 if test -s conftest.err; then
13072 ac_cpp_err=$ac_c_preproc_warn_flag
13073 else
13074 ac_cpp_err=
13075 fi
13076else
13077 ac_cpp_err=yes
13078fi
13079if test -z "$ac_cpp_err"; then
13080 ac_header_preproc=yes
13081else
13082 echo "$as_me: failed program was:" >&5
13083sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 ac_header_preproc=no
13086fi
13087rm -f conftest.err conftest.$ac_ext
13088echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13089echo "${ECHO_T}$ac_header_preproc" >&6
13090
13091# So? What about this header?
13092case $ac_header_compiler:$ac_header_preproc in
13093 yes:no )
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13095echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13098 (
13099 cat <<\_ASBOX
13100## ------------------------------------ ##
13101## Report this to bug-autoconf@gnu.org. ##
13102## ------------------------------------ ##
13103_ASBOX
13104 ) |
13105 sed "s/^/$as_me: WARNING: /" >&2
13106 ;;
13107 no:yes )
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13113echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13114 (
13115 cat <<\_ASBOX
13116## ------------------------------------ ##
13117## Report this to bug-autoconf@gnu.org. ##
13118## ------------------------------------ ##
13119_ASBOX
13120 ) |
13121 sed "s/^/$as_me: WARNING: /" >&2
13122 ;;
13123esac
13124echo "$as_me:$LINENO: checking for $ac_header" >&5
13125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13126if eval "test \"\${$as_ac_Header+set}\" = set"; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13128else
e6cc62c6
VS
13129 eval "$as_ac_Header=$ac_header_preproc"
13130fi
13131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13133
21d1c967 13134fi
e6cc62c6
VS
13135if test `eval echo '${'$as_ac_Header'}'` = yes; then
13136 cat >>confdefs.h <<_ACEOF
13137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13138_ACEOF
13139
13140fi
13141
21d1c967 13142done
90dd450c 13143
5c6fa7d2 13144
a0b9e27f 13145if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13146
13147for ac_func in fnmatch
21d1c967 13148do
e6cc62c6
VS
13149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13150echo "$as_me:$LINENO: checking for $ac_func" >&5
13151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13152if eval "test \"\${$as_ac_var+set}\" = set"; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
13155 cat >conftest.$ac_ext <<_ACEOF
13156#line $LINENO "configure"
13157/* confdefs.h. */
13158_ACEOF
13159cat confdefs.h >>conftest.$ac_ext
13160cat >>conftest.$ac_ext <<_ACEOF
13161/* end confdefs.h. */
a0b9e27f 13162/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13163 which can conflict with char $ac_func (); below.
13164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13165 <limits.h> exists even on freestanding compilers. */
13166#ifdef __STDC__
13167# include <limits.h>
13168#else
13169# include <assert.h>
13170#endif
a0b9e27f 13171/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13172#ifdef __cplusplus
13173extern "C"
13174{
13175#endif
a0b9e27f 13176/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13177 builtin and then its argument prototype would still apply. */
13178char $ac_func ();
a0b9e27f
MB
13179/* The GNU C library defines this for functions which it implements
13180 to always fail with ENOSYS. Some functions are actually named
13181 something starting with __ and the normal name is an alias. */
13182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13183choke me
13184#else
e6cc62c6
VS
13185char (*f) () = $ac_func;
13186#endif
13187#ifdef __cplusplus
13188}
a0b9e27f
MB
13189#endif
13190
e6cc62c6
VS
13191int
13192main ()
13193{
13194return f != $ac_func;
13195 ;
13196 return 0;
13197}
13198_ACEOF
13199rm -f conftest.$ac_objext conftest$ac_exeext
13200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13201 (eval $ac_link) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 eval "$as_ac_var=yes"
13212else
13213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216eval "$as_ac_var=no"
13217fi
13218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13219fi
13220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13222if test `eval echo '${'$as_ac_var'}'` = yes; then
13223 cat >>confdefs.h <<_ACEOF
13224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13225_ACEOF
32832908 13226
21d1c967
GD
13227fi
13228done
90dd450c 13229
a0b9e27f 13230fi
90dd450c 13231
e6cc62c6
VS
13232
13233for ac_header in langinfo.h
21d1c967 13234do
e6cc62c6
VS
13235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237 echo "$as_me:$LINENO: checking for $ac_header" >&5
13238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13239if eval "test \"\${$as_ac_Header+set}\" = set"; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241fi
13242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13244else
13245 # Is the header compilable?
13246echo "$as_me:$LINENO: checking $ac_header usability" >&5
13247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13248cat >conftest.$ac_ext <<_ACEOF
13249#line $LINENO "configure"
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
13254/* end confdefs.h. */
13255$ac_includes_default
13256#include <$ac_header>
13257_ACEOF
13258rm -f conftest.$ac_objext
13259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -s conftest.$ac_objext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_header_compiler=yes
13271else
13272 echo "$as_me: failed program was:" >&5
13273sed 's/^/| /' conftest.$ac_ext >&5
13274
13275ac_header_compiler=no
13276fi
13277rm -f conftest.$ac_objext conftest.$ac_ext
13278echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279echo "${ECHO_T}$ac_header_compiler" >&6
13280
13281# Is the header present?
13282echo "$as_me:$LINENO: checking $ac_header presence" >&5
13283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13284cat >conftest.$ac_ext <<_ACEOF
13285#line $LINENO "configure"
13286/* confdefs.h. */
13287_ACEOF
13288cat confdefs.h >>conftest.$ac_ext
13289cat >>conftest.$ac_ext <<_ACEOF
13290/* end confdefs.h. */
13291#include <$ac_header>
13292_ACEOF
13293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } >/dev/null; then
13301 if test -s conftest.err; then
13302 ac_cpp_err=$ac_c_preproc_warn_flag
13303 else
13304 ac_cpp_err=
13305 fi
13306else
13307 ac_cpp_err=yes
13308fi
13309if test -z "$ac_cpp_err"; then
13310 ac_header_preproc=yes
13311else
13312 echo "$as_me: failed program was:" >&5
13313sed 's/^/| /' conftest.$ac_ext >&5
13314
13315 ac_header_preproc=no
13316fi
13317rm -f conftest.err conftest.$ac_ext
13318echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13319echo "${ECHO_T}$ac_header_preproc" >&6
13320
13321# So? What about this header?
13322case $ac_header_compiler:$ac_header_preproc in
13323 yes:no )
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13328 (
13329 cat <<\_ASBOX
13330## ------------------------------------ ##
13331## Report this to bug-autoconf@gnu.org. ##
13332## ------------------------------------ ##
13333_ASBOX
13334 ) |
13335 sed "s/^/$as_me: WARNING: /" >&2
13336 ;;
13337 no:yes )
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13344 (
13345 cat <<\_ASBOX
13346## ------------------------------------ ##
13347## Report this to bug-autoconf@gnu.org. ##
13348## ------------------------------------ ##
13349_ASBOX
13350 ) |
13351 sed "s/^/$as_me: WARNING: /" >&2
13352 ;;
13353esac
13354echo "$as_me:$LINENO: checking for $ac_header" >&5
13355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13356if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13358else
13359 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13360fi
e6cc62c6
VS
13361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13363
4f14bcd8 13364fi
e6cc62c6
VS
13365if test `eval echo '${'$as_ac_Header'}'` = yes; then
13366 cat >>confdefs.h <<_ACEOF
13367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13368_ACEOF
13369
21d1c967 13370fi
e6cc62c6 13371
21d1c967 13372done
3a922bb4 13373
8284b0c5 13374
4f5a7f74
VZ
13375case "${host}" in
13376 *-pc-os2_emx | *-pc-os2-emx )
13377 if test $ac_cv_header_langinfo_h = "yes"; then
13378 LIBS="$LIBS -lintl"
13379 fi
13380 ;;
13381esac
1542ea39 13382
a0b9e27f
MB
13383if test "$wxUSE_GUI" = "yes"; then
13384 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13385
13386for ac_header in X11/XKBlib.h
21d1c967 13387do
e6cc62c6
VS
13388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13389if eval "test \"\${$as_ac_Header+set}\" = set"; then
13390 echo "$as_me:$LINENO: checking for $ac_header" >&5
13391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13392if eval "test \"\${$as_ac_Header+set}\" = set"; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394fi
13395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13397else
13398 # Is the header compilable?
13399echo "$as_me:$LINENO: checking $ac_header usability" >&5
13400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13401cat >conftest.$ac_ext <<_ACEOF
13402#line $LINENO "configure"
13403/* confdefs.h. */
13404_ACEOF
13405cat confdefs.h >>conftest.$ac_ext
13406cat >>conftest.$ac_ext <<_ACEOF
13407/* end confdefs.h. */
13408$ac_includes_default
13409#include <$ac_header>
13410_ACEOF
13411rm -f conftest.$ac_objext
13412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -s conftest.$ac_objext'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_header_compiler=yes
13424else
13425 echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
13428ac_header_compiler=no
13429fi
13430rm -f conftest.$ac_objext conftest.$ac_ext
13431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13432echo "${ECHO_T}$ac_header_compiler" >&6
13433
13434# Is the header present?
13435echo "$as_me:$LINENO: checking $ac_header presence" >&5
13436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13437cat >conftest.$ac_ext <<_ACEOF
13438#line $LINENO "configure"
13439/* confdefs.h. */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h. */
13444#include <$ac_header>
13445_ACEOF
13446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } >/dev/null; then
13454 if test -s conftest.err; then
13455 ac_cpp_err=$ac_c_preproc_warn_flag
13456 else
13457 ac_cpp_err=
13458 fi
13459else
13460 ac_cpp_err=yes
13461fi
13462if test -z "$ac_cpp_err"; then
13463 ac_header_preproc=yes
13464else
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468 ac_header_preproc=no
13469fi
13470rm -f conftest.err conftest.$ac_ext
13471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13472echo "${ECHO_T}$ac_header_preproc" >&6
13473
13474# So? What about this header?
13475case $ac_header_compiler:$ac_header_preproc in
13476 yes:no )
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13481 (
13482 cat <<\_ASBOX
13483## ------------------------------------ ##
13484## Report this to bug-autoconf@gnu.org. ##
13485## ------------------------------------ ##
13486_ASBOX
13487 ) |
13488 sed "s/^/$as_me: WARNING: /" >&2
13489 ;;
13490 no:yes )
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13497 (
13498 cat <<\_ASBOX
13499## ------------------------------------ ##
13500## Report this to bug-autoconf@gnu.org. ##
13501## ------------------------------------ ##
13502_ASBOX
13503 ) |
13504 sed "s/^/$as_me: WARNING: /" >&2
13505 ;;
13506esac
13507echo "$as_me:$LINENO: checking for $ac_header" >&5
13508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13509if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511else
13512 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13513fi
e6cc62c6
VS
13514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13516
90dd450c 13517fi
e6cc62c6
VS
13518if test `eval echo '${'$as_ac_Header'}'` = yes; then
13519 cat >>confdefs.h <<_ACEOF
13520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13521_ACEOF
13522
247f5006 13523fi
e6cc62c6 13524
247f5006
VZ
13525done
13526
a0b9e27f
MB
13527 fi
13528fi
247f5006 13529
247f5006 13530
e6cc62c6
VS
13531echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13532echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13533if test "${ac_cv_c_const+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536 cat >conftest.$ac_ext <<_ACEOF
13537#line $LINENO "configure"
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
13543
13544int
13545main ()
13546{
13547/* FIXME: Include the comments suggested by Paul. */
13548#ifndef __cplusplus
13549 /* Ultrix mips cc rejects this. */
13550 typedef int charset[2];
13551 const charset x;
13552 /* SunOS 4.1.1 cc rejects this. */
13553 char const *const *ccp;
13554 char **p;
13555 /* NEC SVR4.0.2 mips cc rejects this. */
13556 struct point {int x, y;};
13557 static struct point const zero = {0,0};
13558 /* AIX XL C 1.02.0.0 rejects this.
13559 It does not let you subtract one const X* pointer from another in
13560 an arm of an if-expression whose if-part is not a constant
13561 expression */
13562 const char *g = "string";
13563 ccp = &g + (g ? g-g : 0);
13564 /* HPUX 7.0 cc rejects these. */
13565 ++ccp;
13566 p = (char**) ccp;
13567 ccp = (char const *const *) p;
13568 { /* SCO 3.2v4 cc rejects this. */
13569 char *t;
13570 char const *s = 0 ? (char *) 0 : (char const *) 0;
13571
13572 *t++ = 0;
13573 }
13574 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13575 int x[] = {25, 17};
13576 const int *foo = &x[0];
13577 ++foo;
13578 }
13579 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13580 typedef const int *iptr;
13581 iptr p = 0;
13582 ++p;
13583 }
13584 { /* AIX XL C 1.02.0.0 rejects this saying
13585 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13586 struct s { int j; const int *ap[3]; };
13587 struct s *b; b->j = 5;
13588 }
13589 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13590 const int foo = 10;
13591 }
13592#endif
13593
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
a0b9e27f 13610 ac_cv_c_const=yes
247f5006 13611else
e6cc62c6
VS
13612 echo "$as_me: failed program was:" >&5
13613sed 's/^/| /' conftest.$ac_ext >&5
13614
13615ac_cv_c_const=no
247f5006 13616fi
e6cc62c6 13617rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13618fi
e6cc62c6
VS
13619echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13620echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13621if test $ac_cv_c_const = no; then
e6cc62c6
VS
13622
13623cat >>confdefs.h <<\_ACEOF
13624#define const
13625_ACEOF
10f2d63a 13626
90dd450c 13627fi
81809c07 13628
e6cc62c6
VS
13629echo "$as_me:$LINENO: checking for inline" >&5
13630echo $ECHO_N "checking for inline... $ECHO_C" >&6
13631if test "${ac_cv_c_inline+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13633else
a0b9e27f
MB
13634 ac_cv_c_inline=no
13635for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13636 cat >conftest.$ac_ext <<_ACEOF
13637#line $LINENO "configure"
13638/* confdefs.h. */
13639_ACEOF
13640cat confdefs.h >>conftest.$ac_ext
13641cat >>conftest.$ac_ext <<_ACEOF
13642/* end confdefs.h. */
13643#ifndef __cplusplus
13644typedef int foo_t;
13645static $ac_kw foo_t static_foo () {return 0; }
13646$ac_kw foo_t foo () {return 0; }
13647#endif
a0b9e27f 13648
e6cc62c6
VS
13649_ACEOF
13650rm -f conftest.$ac_objext
13651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652 (eval $ac_compile) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
13656 { ac_try='test -s conftest.$ac_objext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
a0b9e27f 13662 ac_cv_c_inline=$ac_kw; break
247f5006 13663else
e6cc62c6
VS
13664 echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
247f5006 13667fi
e6cc62c6 13668rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13669done
247f5006
VZ
13670
13671fi
e6cc62c6
VS
13672echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13673echo "${ECHO_T}$ac_cv_c_inline" >&6
13674case $ac_cv_c_inline in
a0b9e27f 13675 inline | yes) ;;
e6cc62c6
VS
13676 no)
13677cat >>confdefs.h <<\_ACEOF
13678#define inline
13679_ACEOF
a0b9e27f 13680 ;;
e6cc62c6 13681 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13682#define inline $ac_cv_c_inline
e6cc62c6 13683_ACEOF
a0b9e27f
MB
13684 ;;
13685esac
247f5006 13686
247f5006 13687
e6cc62c6
VS
13688echo "$as_me:$LINENO: checking for char" >&5
13689echo $ECHO_N "checking for char... $ECHO_C" >&6
13690if test "${ac_cv_type_char+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692else
13693 cat >conftest.$ac_ext <<_ACEOF
13694#line $LINENO "configure"
13695/* confdefs.h. */
13696_ACEOF
13697cat confdefs.h >>conftest.$ac_ext
13698cat >>conftest.$ac_ext <<_ACEOF
13699/* end confdefs.h. */
13700$ac_includes_default
13701int
13702main ()
13703{
13704if ((char *) 0)
13705 return 0;
13706if (sizeof (char))
13707 return 0;
13708 ;
13709 return 0;
13710}
13711_ACEOF
13712rm -f conftest.$ac_objext
13713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714 (eval $ac_compile) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -s conftest.$ac_objext'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_type_char=yes
13725else
13726 echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
13729ac_cv_type_char=no
13730fi
13731rm -f conftest.$ac_objext conftest.$ac_ext
13732fi
13733echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13734echo "${ECHO_T}$ac_cv_type_char" >&6
13735
13736echo "$as_me:$LINENO: checking size of char" >&5
13737echo $ECHO_N "checking size of char... $ECHO_C" >&6
13738if test "${ac_cv_sizeof_char+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740else
13741 if test "$ac_cv_type_char" = yes; then
13742 # The cast to unsigned long works around a bug in the HP C Compiler
13743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13745 # This bug is HP SR number 8606223364.
a0b9e27f 13746 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13747 # Depending upon the size, compute the lo and hi bounds.
13748cat >conftest.$ac_ext <<_ACEOF
13749#line $LINENO "configure"
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755$ac_includes_default
13756int
13757main ()
13758{
13759static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13760test_array [0] = 0
13761
13762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext
13767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -s conftest.$ac_objext'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_lo=0 ac_mid=0
13779 while :; do
13780 cat >conftest.$ac_ext <<_ACEOF
13781#line $LINENO "configure"
13782/* confdefs.h. */
13783_ACEOF
13784cat confdefs.h >>conftest.$ac_ext
13785cat >>conftest.$ac_ext <<_ACEOF
13786/* end confdefs.h. */
13787$ac_includes_default
13788int
13789main ()
13790{
13791static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13792test_array [0] = 0
13793
13794 ;
13795 return 0;
13796}
13797_ACEOF
13798rm -f conftest.$ac_objext
13799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_hi=$ac_mid; break
13811else
13812 echo "$as_me: failed program was:" >&5
13813sed 's/^/| /' conftest.$ac_ext >&5
13814
13815ac_lo=`expr $ac_mid + 1`
13816 if test $ac_lo -le $ac_mid; then
13817 ac_lo= ac_hi=
13818 break
13819 fi
13820 ac_mid=`expr 2 '*' $ac_mid + 1`
13821fi
13822rm -f conftest.$ac_objext conftest.$ac_ext
13823 done
a0b9e27f 13824else
e6cc62c6
VS
13825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828cat >conftest.$ac_ext <<_ACEOF
13829#line $LINENO "configure"
13830/* confdefs.h. */
13831_ACEOF
13832cat confdefs.h >>conftest.$ac_ext
13833cat >>conftest.$ac_ext <<_ACEOF
13834/* end confdefs.h. */
13835$ac_includes_default
13836int
13837main ()
13838{
13839static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13840test_array [0] = 0
13841
13842 ;
13843 return 0;
13844}
13845_ACEOF
13846rm -f conftest.$ac_objext
13847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13848 (eval $ac_compile) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 ac_hi=-1 ac_mid=-1
13859 while :; do
13860 cat >conftest.$ac_ext <<_ACEOF
13861#line $LINENO "configure"
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867$ac_includes_default
13868int
13869main ()
13870{
13871static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13872test_array [0] = 0
13873
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -s conftest.$ac_objext'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 ac_lo=$ac_mid; break
13891else
13892 echo "$as_me: failed program was:" >&5
13893sed 's/^/| /' conftest.$ac_ext >&5
13894
13895ac_hi=`expr '(' $ac_mid ')' - 1`
13896 if test $ac_mid -le $ac_hi; then
13897 ac_lo= ac_hi=
13898 break
13899 fi
13900 ac_mid=`expr 2 '*' $ac_mid`
13901fi
13902rm -f conftest.$ac_objext conftest.$ac_ext
13903 done
13904else
13905 echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
13908ac_lo= ac_hi=
13909fi
13910rm -f conftest.$ac_objext conftest.$ac_ext
13911fi
13912rm -f conftest.$ac_objext conftest.$ac_ext
13913# Binary search between lo and hi bounds.
13914while test "x$ac_lo" != "x$ac_hi"; do
13915 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13916 cat >conftest.$ac_ext <<_ACEOF
13917#line $LINENO "configure"
13918/* confdefs.h. */
13919_ACEOF
13920cat confdefs.h >>conftest.$ac_ext
13921cat >>conftest.$ac_ext <<_ACEOF
13922/* end confdefs.h. */
13923$ac_includes_default
13924int
13925main ()
13926{
13927static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13928test_array [0] = 0
13929
13930 ;
13931 return 0;
13932}
13933_ACEOF
13934rm -f conftest.$ac_objext
13935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_hi=$ac_mid
13947else
13948 echo "$as_me: failed program was:" >&5
13949sed 's/^/| /' conftest.$ac_ext >&5
13950
13951ac_lo=`expr '(' $ac_mid ')' + 1`
13952fi
13953rm -f conftest.$ac_objext conftest.$ac_ext
13954done
13955case $ac_lo in
13956?*) ac_cv_sizeof_char=$ac_lo;;
13957'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13958See \`config.log' for more details." >&5
13959echo "$as_me: error: cannot compute sizeof (char), 77
13960See \`config.log' for more details." >&2;}
13961 { (exit 1); exit 1; }; } ;;
13962esac
13963else
13964 if test "$cross_compiling" = yes; then
13965 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13966See \`config.log' for more details." >&5
13967echo "$as_me: error: cannot run test program while cross compiling
13968See \`config.log' for more details." >&2;}
13969 { (exit 1); exit 1; }; }
13970else
13971 cat >conftest.$ac_ext <<_ACEOF
13972#line $LINENO "configure"
13973/* confdefs.h. */
13974_ACEOF
13975cat confdefs.h >>conftest.$ac_ext
13976cat >>conftest.$ac_ext <<_ACEOF
13977/* end confdefs.h. */
13978$ac_includes_default
13979long longval () { return (long) (sizeof (char)); }
13980unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13981#include <stdio.h>
e6cc62c6
VS
13982#include <stdlib.h>
13983int
13984main ()
247f5006 13985{
e6cc62c6
VS
13986
13987 FILE *f = fopen ("conftest.val", "w");
13988 if (! f)
13989 exit (1);
13990 if (((long) (sizeof (char))) < 0)
13991 {
13992 long i = longval ();
13993 if (i != ((long) (sizeof (char))))
13994 exit (1);
13995 fprintf (f, "%ld\n", i);
13996 }
13997 else
13998 {
13999 unsigned long i = ulongval ();
14000 if (i != ((long) (sizeof (char))))
14001 exit (1);
14002 fprintf (f, "%lu\n", i);
14003 }
14004 exit (ferror (f) || fclose (f) != 0);
14005
14006 ;
14007 return 0;
52127426 14008}
e6cc62c6
VS
14009_ACEOF
14010rm -f conftest$ac_exeext
14011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14012 (eval $ac_link) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 ac_cv_sizeof_char=`cat conftest.val`
14022else
14023 echo "$as_me: program exited with status $ac_status" >&5
14024echo "$as_me: failed program was:" >&5
14025sed 's/^/| /' conftest.$ac_ext >&5
14026
14027( exit $ac_status )
14028{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14029See \`config.log' for more details." >&5
14030echo "$as_me: error: cannot compute sizeof (char), 77
14031See \`config.log' for more details." >&2;}
14032 { (exit 1); exit 1; }; }
14033fi
14034rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14035fi
14036fi
14037rm -f conftest.val
247f5006 14038else
a0b9e27f 14039 ac_cv_sizeof_char=0
247f5006 14040fi
247f5006 14041fi
e6cc62c6
VS
14042echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14043echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14044cat >>confdefs.h <<_ACEOF
14045#define SIZEOF_CHAR $ac_cv_sizeof_char
14046_ACEOF
14047
14048
14049echo "$as_me:$LINENO: checking for short" >&5
14050echo $ECHO_N "checking for short... $ECHO_C" >&6
14051if test "${ac_cv_type_short+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053else
14054 cat >conftest.$ac_ext <<_ACEOF
14055#line $LINENO "configure"
14056/* confdefs.h. */
14057_ACEOF
14058cat confdefs.h >>conftest.$ac_ext
14059cat >>conftest.$ac_ext <<_ACEOF
14060/* end confdefs.h. */
14061$ac_includes_default
14062int
14063main ()
14064{
14065if ((short *) 0)
14066 return 0;
14067if (sizeof (short))
14068 return 0;
14069 ;
14070 return 0;
14071}
14072_ACEOF
14073rm -f conftest.$ac_objext
14074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 (eval $ac_compile) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -s conftest.$ac_objext'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 ac_cv_type_short=yes
14086else
14087 echo "$as_me: failed program was:" >&5
14088sed 's/^/| /' conftest.$ac_ext >&5
14089
14090ac_cv_type_short=no
14091fi
14092rm -f conftest.$ac_objext conftest.$ac_ext
14093fi
14094echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14095echo "${ECHO_T}$ac_cv_type_short" >&6
14096
14097echo "$as_me:$LINENO: checking size of short" >&5
14098echo $ECHO_N "checking size of short... $ECHO_C" >&6
14099if test "${ac_cv_sizeof_short+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102 if test "$ac_cv_type_short" = yes; then
14103 # The cast to unsigned long works around a bug in the HP C Compiler
14104 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14105 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14106 # This bug is HP SR number 8606223364.
14107 if test "$cross_compiling" = yes; then
14108 # Depending upon the size, compute the lo and hi bounds.
14109cat >conftest.$ac_ext <<_ACEOF
14110#line $LINENO "configure"
14111/* confdefs.h. */
14112_ACEOF
14113cat confdefs.h >>conftest.$ac_ext
14114cat >>conftest.$ac_ext <<_ACEOF
14115/* end confdefs.h. */
14116$ac_includes_default
14117int
14118main ()
14119{
14120static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14121test_array [0] = 0
247f5006 14122
e6cc62c6
VS
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_lo=0 ac_mid=0
14140 while :; do
14141 cat >conftest.$ac_ext <<_ACEOF
14142#line $LINENO "configure"
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
14148$ac_includes_default
14149int
14150main ()
14151{
14152static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14153test_array [0] = 0
14154
14155 ;
14156 return 0;
14157}
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_hi=$ac_mid; break
14172else
14173 echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176ac_lo=`expr $ac_mid + 1`
14177 if test $ac_lo -le $ac_mid; then
14178 ac_lo= ac_hi=
14179 break
14180 fi
14181 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14182fi
e6cc62c6
VS
14183rm -f conftest.$ac_objext conftest.$ac_ext
14184 done
14185else
14186 echo "$as_me: failed program was:" >&5
14187sed 's/^/| /' conftest.$ac_ext >&5
14188
14189cat >conftest.$ac_ext <<_ACEOF
14190#line $LINENO "configure"
14191/* confdefs.h. */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
14195/* end confdefs.h. */
14196$ac_includes_default
14197int
14198main ()
14199{
14200static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14201test_array [0] = 0
247f5006 14202
e6cc62c6
VS
14203 ;
14204 return 0;
14205}
14206_ACEOF
14207rm -f conftest.$ac_objext
14208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -s conftest.$ac_objext'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 ac_hi=-1 ac_mid=-1
14220 while :; do
14221 cat >conftest.$ac_ext <<_ACEOF
14222#line $LINENO "configure"
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
14228$ac_includes_default
14229int
14230main ()
14231{
14232static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14233test_array [0] = 0
247f5006 14234
e6cc62c6
VS
14235 ;
14236 return 0;
14237}
14238_ACEOF
14239rm -f conftest.$ac_objext
14240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_lo=$ac_mid; break
14252else
14253 echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
14256ac_hi=`expr '(' $ac_mid ')' - 1`
14257 if test $ac_mid -le $ac_hi; then
14258 ac_lo= ac_hi=
14259 break
14260 fi
14261 ac_mid=`expr 2 '*' $ac_mid`
14262fi
14263rm -f conftest.$ac_objext conftest.$ac_ext
14264 done
247f5006 14265else
e6cc62c6
VS
14266 echo "$as_me: failed program was:" >&5
14267sed 's/^/| /' conftest.$ac_ext >&5
14268
14269ac_lo= ac_hi=
14270fi
14271rm -f conftest.$ac_objext conftest.$ac_ext
14272fi
14273rm -f conftest.$ac_objext conftest.$ac_ext
14274# Binary search between lo and hi bounds.
14275while test "x$ac_lo" != "x$ac_hi"; do
14276 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14277 cat >conftest.$ac_ext <<_ACEOF
14278#line $LINENO "configure"
14279/* confdefs.h. */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
14283/* end confdefs.h. */
14284$ac_includes_default
14285int
14286main ()
14287{
14288static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14289test_array [0] = 0
14290
14291 ;
14292 return 0;
14293}
14294_ACEOF
14295rm -f conftest.$ac_objext
14296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14297 (eval $ac_compile) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -s conftest.$ac_objext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 ac_hi=$ac_mid
14308else
14309 echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312ac_lo=`expr '(' $ac_mid ')' + 1`
14313fi
14314rm -f conftest.$ac_objext conftest.$ac_ext
14315done
14316case $ac_lo in
14317?*) ac_cv_sizeof_short=$ac_lo;;
14318'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14319See \`config.log' for more details." >&5
14320echo "$as_me: error: cannot compute sizeof (short), 77
14321See \`config.log' for more details." >&2;}
14322 { (exit 1); exit 1; }; } ;;
14323esac
247f5006 14324else
e6cc62c6
VS
14325 if test "$cross_compiling" = yes; then
14326 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14327See \`config.log' for more details." >&5
14328echo "$as_me: error: cannot run test program while cross compiling
14329See \`config.log' for more details." >&2;}
14330 { (exit 1); exit 1; }; }
14331else
14332 cat >conftest.$ac_ext <<_ACEOF
14333#line $LINENO "configure"
14334/* confdefs.h. */
14335_ACEOF
14336cat confdefs.h >>conftest.$ac_ext
14337cat >>conftest.$ac_ext <<_ACEOF
14338/* end confdefs.h. */
14339$ac_includes_default
14340long longval () { return (long) (sizeof (short)); }
14341unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14342#include <stdio.h>
e6cc62c6
VS
14343#include <stdlib.h>
14344int
14345main ()
a0b9e27f 14346{
e6cc62c6
VS
14347
14348 FILE *f = fopen ("conftest.val", "w");
14349 if (! f)
14350 exit (1);
14351 if (((long) (sizeof (short))) < 0)
14352 {
14353 long i = longval ();
14354 if (i != ((long) (sizeof (short))))
14355 exit (1);
14356 fprintf (f, "%ld\n", i);
14357 }
14358 else
14359 {
14360 unsigned long i = ulongval ();
14361 if (i != ((long) (sizeof (short))))
14362 exit (1);
14363 fprintf (f, "%lu\n", i);
14364 }
14365 exit (ferror (f) || fclose (f) != 0);
14366
14367 ;
14368 return 0;
a0b9e27f 14369}
e6cc62c6
VS
14370_ACEOF
14371rm -f conftest$ac_exeext
14372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_sizeof_short=`cat conftest.val`
14383else
14384 echo "$as_me: program exited with status $ac_status" >&5
14385echo "$as_me: failed program was:" >&5
14386sed 's/^/| /' conftest.$ac_ext >&5
14387
14388( exit $ac_status )
14389{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14390See \`config.log' for more details." >&5
14391echo "$as_me: error: cannot compute sizeof (short), 77
14392See \`config.log' for more details." >&2;}
14393 { (exit 1); exit 1; }; }
14394fi
14395rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14396fi
14397fi
14398rm -f conftest.val
247f5006 14399else
a0b9e27f 14400 ac_cv_sizeof_short=0
247f5006 14401fi
247f5006 14402fi
e6cc62c6
VS
14403echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14404echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14405cat >>confdefs.h <<_ACEOF
14406#define SIZEOF_SHORT $ac_cv_sizeof_short
14407_ACEOF
14408
14409
14410echo "$as_me:$LINENO: checking for void *" >&5
14411echo $ECHO_N "checking for void *... $ECHO_C" >&6
14412if test "${ac_cv_type_void_p+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414else
14415 cat >conftest.$ac_ext <<_ACEOF
14416#line $LINENO "configure"
14417/* confdefs.h. */
14418_ACEOF
14419cat confdefs.h >>conftest.$ac_ext
14420cat >>conftest.$ac_ext <<_ACEOF
14421/* end confdefs.h. */
14422$ac_includes_default
14423int
14424main ()
14425{
14426if ((void * *) 0)
14427 return 0;
14428if (sizeof (void *))
14429 return 0;
14430 ;
14431 return 0;
14432}
14433_ACEOF
14434rm -f conftest.$ac_objext
14435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -s conftest.$ac_objext'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14446 ac_cv_type_void_p=yes
14447else
14448 echo "$as_me: failed program was:" >&5
14449sed 's/^/| /' conftest.$ac_ext >&5
14450
14451ac_cv_type_void_p=no
14452fi
14453rm -f conftest.$ac_objext conftest.$ac_ext
14454fi
14455echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14456echo "${ECHO_T}$ac_cv_type_void_p" >&6
14457
14458echo "$as_me:$LINENO: checking size of void *" >&5
14459echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14460if test "${ac_cv_sizeof_void_p+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462else
14463 if test "$ac_cv_type_void_p" = yes; then
14464 # The cast to unsigned long works around a bug in the HP C Compiler
14465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14467 # This bug is HP SR number 8606223364.
14468 if test "$cross_compiling" = yes; then
14469 # Depending upon the size, compute the lo and hi bounds.
14470cat >conftest.$ac_ext <<_ACEOF
14471#line $LINENO "configure"
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477$ac_includes_default
14478int
14479main ()
14480{
14481static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14482test_array [0] = 0
14483
14484 ;
14485 return 0;
14486}
14487_ACEOF
14488rm -f conftest.$ac_objext
14489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490 (eval $ac_compile) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_lo=0 ac_mid=0
14501 while :; do
14502 cat >conftest.$ac_ext <<_ACEOF
14503#line $LINENO "configure"
14504/* confdefs.h. */
14505_ACEOF
14506cat confdefs.h >>conftest.$ac_ext
14507cat >>conftest.$ac_ext <<_ACEOF
14508/* end confdefs.h. */
14509$ac_includes_default
14510int
14511main ()
14512{
14513static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14514test_array [0] = 0
247f5006 14515
e6cc62c6
VS
14516 ;
14517 return 0;
14518}
14519_ACEOF
14520rm -f conftest.$ac_objext
14521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522 (eval $ac_compile) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_hi=$ac_mid; break
14533else
14534 echo "$as_me: failed program was:" >&5
14535sed 's/^/| /' conftest.$ac_ext >&5
14536
14537ac_lo=`expr $ac_mid + 1`
14538 if test $ac_lo -le $ac_mid; then
14539 ac_lo= ac_hi=
14540 break
14541 fi
14542 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14543fi
e6cc62c6
VS
14544rm -f conftest.$ac_objext conftest.$ac_ext
14545 done
14546else
14547 echo "$as_me: failed program was:" >&5
14548sed 's/^/| /' conftest.$ac_ext >&5
14549
14550cat >conftest.$ac_ext <<_ACEOF
14551#line $LINENO "configure"
14552/* confdefs.h. */
14553_ACEOF
14554cat confdefs.h >>conftest.$ac_ext
14555cat >>conftest.$ac_ext <<_ACEOF
14556/* end confdefs.h. */
14557$ac_includes_default
14558int
14559main ()
14560{
14561static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14562test_array [0] = 0
247f5006 14563
e6cc62c6
VS
14564 ;
14565 return 0;
14566}
14567_ACEOF
14568rm -f conftest.$ac_objext
14569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -s conftest.$ac_objext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_hi=-1 ac_mid=-1
14581 while :; do
14582 cat >conftest.$ac_ext <<_ACEOF
14583#line $LINENO "configure"
14584/* confdefs.h. */
14585_ACEOF
14586cat confdefs.h >>conftest.$ac_ext
14587cat >>conftest.$ac_ext <<_ACEOF
14588/* end confdefs.h. */
14589$ac_includes_default
14590int
14591main ()
14592{
14593static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14594test_array [0] = 0
247f5006 14595
e6cc62c6
VS
14596 ;
14597 return 0;
14598}
14599_ACEOF
14600rm -f conftest.$ac_objext
14601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_lo=$ac_mid; break
14613else
14614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617ac_hi=`expr '(' $ac_mid ')' - 1`
14618 if test $ac_mid -le $ac_hi; then
14619 ac_lo= ac_hi=
14620 break
14621 fi
14622 ac_mid=`expr 2 '*' $ac_mid`
14623fi
14624rm -f conftest.$ac_objext conftest.$ac_ext
14625 done
a0b9e27f 14626else
e6cc62c6
VS
14627 echo "$as_me: failed program was:" >&5
14628sed 's/^/| /' conftest.$ac_ext >&5
14629
14630ac_lo= ac_hi=
14631fi
14632rm -f conftest.$ac_objext conftest.$ac_ext
14633fi
14634rm -f conftest.$ac_objext conftest.$ac_ext
14635# Binary search between lo and hi bounds.
14636while test "x$ac_lo" != "x$ac_hi"; do
14637 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14638 cat >conftest.$ac_ext <<_ACEOF
14639#line $LINENO "configure"
14640/* confdefs.h. */
14641_ACEOF
14642cat confdefs.h >>conftest.$ac_ext
14643cat >>conftest.$ac_ext <<_ACEOF
14644/* end confdefs.h. */
14645$ac_includes_default
14646int
14647main ()
14648{
14649static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14650test_array [0] = 0
14651
14652 ;
14653 return 0;
14654}
14655_ACEOF
14656rm -f conftest.$ac_objext
14657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14658 (eval $ac_compile) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_hi=$ac_mid
14669else
14670 echo "$as_me: failed program was:" >&5
14671sed 's/^/| /' conftest.$ac_ext >&5
14672
14673ac_lo=`expr '(' $ac_mid ')' + 1`
14674fi
14675rm -f conftest.$ac_objext conftest.$ac_ext
14676done
14677case $ac_lo in
14678?*) ac_cv_sizeof_void_p=$ac_lo;;
14679'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14680See \`config.log' for more details." >&5
14681echo "$as_me: error: cannot compute sizeof (void *), 77
14682See \`config.log' for more details." >&2;}
14683 { (exit 1); exit 1; }; } ;;
14684esac
247f5006 14685else
e6cc62c6
VS
14686 if test "$cross_compiling" = yes; then
14687 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14688See \`config.log' for more details." >&5
14689echo "$as_me: error: cannot run test program while cross compiling
14690See \`config.log' for more details." >&2;}
14691 { (exit 1); exit 1; }; }
14692else
14693 cat >conftest.$ac_ext <<_ACEOF
14694#line $LINENO "configure"
14695/* confdefs.h. */
14696_ACEOF
14697cat confdefs.h >>conftest.$ac_ext
14698cat >>conftest.$ac_ext <<_ACEOF
14699/* end confdefs.h. */
14700$ac_includes_default
14701long longval () { return (long) (sizeof (void *)); }
14702unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14703#include <stdio.h>
e6cc62c6
VS
14704#include <stdlib.h>
14705int
14706main ()
247f5006 14707{
e6cc62c6
VS
14708
14709 FILE *f = fopen ("conftest.val", "w");
14710 if (! f)
14711 exit (1);
14712 if (((long) (sizeof (void *))) < 0)
14713 {
14714 long i = longval ();
14715 if (i != ((long) (sizeof (void *))))
14716 exit (1);
14717 fprintf (f, "%ld\n", i);
14718 }
14719 else
14720 {
14721 unsigned long i = ulongval ();
14722 if (i != ((long) (sizeof (void *))))
14723 exit (1);
14724 fprintf (f, "%lu\n", i);
14725 }
14726 exit (ferror (f) || fclose (f) != 0);
14727
14728 ;
14729 return 0;
5c6fa7d2 14730}
e6cc62c6
VS
14731_ACEOF
14732rm -f conftest$ac_exeext
14733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734 (eval $ac_link) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_cv_sizeof_void_p=`cat conftest.val`
14744else
14745 echo "$as_me: program exited with status $ac_status" >&5
14746echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
14749( exit $ac_status )
14750{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14751See \`config.log' for more details." >&5
14752echo "$as_me: error: cannot compute sizeof (void *), 77
14753See \`config.log' for more details." >&2;}
14754 { (exit 1); exit 1; }; }
14755fi
14756rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14757fi
14758fi
14759rm -f conftest.val
a0b9e27f 14760else
a0b9e27f
MB
14761 ac_cv_sizeof_void_p=0
14762fi
a0b9e27f 14763fi
e6cc62c6
VS
14764echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14765echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14766cat >>confdefs.h <<_ACEOF
14767#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14768_ACEOF
14769
14770
14771echo "$as_me:$LINENO: checking for int" >&5
14772echo $ECHO_N "checking for int... $ECHO_C" >&6
14773if test "${ac_cv_type_int+set}" = set; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14775else
14776 cat >conftest.$ac_ext <<_ACEOF
14777#line $LINENO "configure"
14778/* confdefs.h. */
14779_ACEOF
14780cat confdefs.h >>conftest.$ac_ext
14781cat >>conftest.$ac_ext <<_ACEOF
14782/* end confdefs.h. */
14783$ac_includes_default
14784int
14785main ()
14786{
14787if ((int *) 0)
14788 return 0;
14789if (sizeof (int))
14790 return 0;
14791 ;
14792 return 0;
14793}
14794_ACEOF
14795rm -f conftest.$ac_objext
14796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_type_int=yes
14808else
14809 echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5
14811
14812ac_cv_type_int=no
14813fi
14814rm -f conftest.$ac_objext conftest.$ac_ext
14815fi
14816echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14817echo "${ECHO_T}$ac_cv_type_int" >&6
14818
14819echo "$as_me:$LINENO: checking size of int" >&5
14820echo $ECHO_N "checking size of int... $ECHO_C" >&6
14821if test "${ac_cv_sizeof_int+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823else
14824 if test "$ac_cv_type_int" = yes; then
14825 # The cast to unsigned long works around a bug in the HP C Compiler
14826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14828 # This bug is HP SR number 8606223364.
14829 if test "$cross_compiling" = yes; then
14830 # Depending upon the size, compute the lo and hi bounds.
14831cat >conftest.$ac_ext <<_ACEOF
14832#line $LINENO "configure"
14833/* confdefs.h. */
14834_ACEOF
14835cat confdefs.h >>conftest.$ac_ext
14836cat >>conftest.$ac_ext <<_ACEOF
14837/* end confdefs.h. */
14838$ac_includes_default
14839int
14840main ()
14841{
14842static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14843test_array [0] = 0
8284b0c5 14844
e6cc62c6
VS
14845 ;
14846 return 0;
14847}
14848_ACEOF
14849rm -f conftest.$ac_objext
14850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851 (eval $ac_compile) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_lo=0 ac_mid=0
14862 while :; do
14863 cat >conftest.$ac_ext <<_ACEOF
14864#line $LINENO "configure"
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h. */
14870$ac_includes_default
14871int
14872main ()
14873{
14874static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14875test_array [0] = 0
14876
14877 ;
14878 return 0;
14879}
14880_ACEOF
14881rm -f conftest.$ac_objext
14882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_hi=$ac_mid; break
14894else
14895 echo "$as_me: failed program was:" >&5
14896sed 's/^/| /' conftest.$ac_ext >&5
14897
14898ac_lo=`expr $ac_mid + 1`
14899 if test $ac_lo -le $ac_mid; then
14900 ac_lo= ac_hi=
14901 break
14902 fi
14903 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14904fi
e6cc62c6
VS
14905rm -f conftest.$ac_objext conftest.$ac_ext
14906 done
14907else
14908 echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911cat >conftest.$ac_ext <<_ACEOF
14912#line $LINENO "configure"
14913/* confdefs.h. */
14914_ACEOF
14915cat confdefs.h >>conftest.$ac_ext
14916cat >>conftest.$ac_ext <<_ACEOF
14917/* end confdefs.h. */
14918$ac_includes_default
14919int
14920main ()
14921{
14922static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14923test_array [0] = 0
247f5006 14924
e6cc62c6
VS
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929rm -f conftest.$ac_objext
14930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931 (eval $ac_compile) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_hi=-1 ac_mid=-1
14942 while :; do
14943 cat >conftest.$ac_ext <<_ACEOF
14944#line $LINENO "configure"
14945/* confdefs.h. */
14946_ACEOF
14947cat confdefs.h >>conftest.$ac_ext
14948cat >>conftest.$ac_ext <<_ACEOF
14949/* end confdefs.h. */
14950$ac_includes_default
14951int
14952main ()
14953{
14954static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14955test_array [0] = 0
247f5006 14956
e6cc62c6
VS
14957 ;
14958 return 0;
14959}
14960_ACEOF
14961rm -f conftest.$ac_objext
14962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963 (eval $ac_compile) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_lo=$ac_mid; break
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978ac_hi=`expr '(' $ac_mid ')' - 1`
14979 if test $ac_mid -le $ac_hi; then
14980 ac_lo= ac_hi=
14981 break
14982 fi
14983 ac_mid=`expr 2 '*' $ac_mid`
14984fi
14985rm -f conftest.$ac_objext conftest.$ac_ext
14986 done
247f5006 14987else
e6cc62c6
VS
14988 echo "$as_me: failed program was:" >&5
14989sed 's/^/| /' conftest.$ac_ext >&5
14990
14991ac_lo= ac_hi=
14992fi
14993rm -f conftest.$ac_objext conftest.$ac_ext
14994fi
14995rm -f conftest.$ac_objext conftest.$ac_ext
14996# Binary search between lo and hi bounds.
14997while test "x$ac_lo" != "x$ac_hi"; do
14998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14999 cat >conftest.$ac_ext <<_ACEOF
15000#line $LINENO "configure"
15001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h. */
15006$ac_includes_default
15007int
15008main ()
15009{
15010static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15011test_array [0] = 0
15012
15013 ;
15014 return 0;
15015}
15016_ACEOF
15017rm -f conftest.$ac_objext
15018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15019 (eval $ac_compile) 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -s conftest.$ac_objext'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }; then
15029 ac_hi=$ac_mid
15030else
15031 echo "$as_me: failed program was:" >&5
15032sed 's/^/| /' conftest.$ac_ext >&5
15033
15034ac_lo=`expr '(' $ac_mid ')' + 1`
15035fi
15036rm -f conftest.$ac_objext conftest.$ac_ext
15037done
15038case $ac_lo in
15039?*) ac_cv_sizeof_int=$ac_lo;;
15040'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15041See \`config.log' for more details." >&5
15042echo "$as_me: error: cannot compute sizeof (int), 77
15043See \`config.log' for more details." >&2;}
15044 { (exit 1); exit 1; }; } ;;
15045esac
a0b9e27f 15046else
e6cc62c6
VS
15047 if test "$cross_compiling" = yes; then
15048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15049See \`config.log' for more details." >&5
15050echo "$as_me: error: cannot run test program while cross compiling
15051See \`config.log' for more details." >&2;}
15052 { (exit 1); exit 1; }; }
15053else
15054 cat >conftest.$ac_ext <<_ACEOF
15055#line $LINENO "configure"
15056/* confdefs.h. */
15057_ACEOF
15058cat confdefs.h >>conftest.$ac_ext
15059cat >>conftest.$ac_ext <<_ACEOF
15060/* end confdefs.h. */
15061$ac_includes_default
15062long longval () { return (long) (sizeof (int)); }
15063unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15064#include <stdio.h>
e6cc62c6
VS
15065#include <stdlib.h>
15066int
15067main ()
247f5006 15068{
e6cc62c6
VS
15069
15070 FILE *f = fopen ("conftest.val", "w");
15071 if (! f)
15072 exit (1);
15073 if (((long) (sizeof (int))) < 0)
15074 {
15075 long i = longval ();
15076 if (i != ((long) (sizeof (int))))
15077 exit (1);
15078 fprintf (f, "%ld\n", i);
15079 }
15080 else
15081 {
15082 unsigned long i = ulongval ();
15083 if (i != ((long) (sizeof (int))))
15084 exit (1);
15085 fprintf (f, "%lu\n", i);
15086 }
15087 exit (ferror (f) || fclose (f) != 0);
15088
15089 ;
15090 return 0;
247f5006 15091}
e6cc62c6
VS
15092_ACEOF
15093rm -f conftest$ac_exeext
15094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095 (eval $ac_link) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_cv_sizeof_int=`cat conftest.val`
15105else
15106 echo "$as_me: program exited with status $ac_status" >&5
15107echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110( exit $ac_status )
15111{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15112See \`config.log' for more details." >&5
15113echo "$as_me: error: cannot compute sizeof (int), 77
15114See \`config.log' for more details." >&2;}
15115 { (exit 1); exit 1; }; }
15116fi
15117rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15118fi
15119fi
15120rm -f conftest.val
6f72b082 15121else
a0b9e27f 15122 ac_cv_sizeof_int=0
21d1c967 15123fi
698dcdb6 15124fi
e6cc62c6
VS
15125echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15126echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15127cat >>confdefs.h <<_ACEOF
15128#define SIZEOF_INT $ac_cv_sizeof_int
15129_ACEOF
15130
15131
15132echo "$as_me:$LINENO: checking for long" >&5
15133echo $ECHO_N "checking for long... $ECHO_C" >&6
15134if test "${ac_cv_type_long+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136else
15137 cat >conftest.$ac_ext <<_ACEOF
15138#line $LINENO "configure"
15139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
15144$ac_includes_default
15145int
15146main ()
15147{
15148if ((long *) 0)
15149 return 0;
15150if (sizeof (long))
15151 return 0;
15152 ;
15153 return 0;
15154}
15155_ACEOF
15156rm -f conftest.$ac_objext
15157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158 (eval $ac_compile) 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
15162 { ac_try='test -s conftest.$ac_objext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_cv_type_long=yes
15169else
15170 echo "$as_me: failed program was:" >&5
15171sed 's/^/| /' conftest.$ac_ext >&5
15172
15173ac_cv_type_long=no
15174fi
15175rm -f conftest.$ac_objext conftest.$ac_ext
15176fi
15177echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15178echo "${ECHO_T}$ac_cv_type_long" >&6
15179
15180echo "$as_me:$LINENO: checking size of long" >&5
15181echo $ECHO_N "checking size of long... $ECHO_C" >&6
15182if test "${ac_cv_sizeof_long+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184else
15185 if test "$ac_cv_type_long" = yes; then
15186 # The cast to unsigned long works around a bug in the HP C Compiler
15187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15189 # This bug is HP SR number 8606223364.
15190 if test "$cross_compiling" = yes; then
15191 # Depending upon the size, compute the lo and hi bounds.
15192cat >conftest.$ac_ext <<_ACEOF
15193#line $LINENO "configure"
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199$ac_includes_default
15200int
15201main ()
15202{
15203static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15204test_array [0] = 0
15205
15206 ;
15207 return 0;
15208}
15209_ACEOF
15210rm -f conftest.$ac_objext
15211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212 (eval $ac_compile) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -s conftest.$ac_objext'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; }; then
15222 ac_lo=0 ac_mid=0
15223 while :; do
15224 cat >conftest.$ac_ext <<_ACEOF
15225#line $LINENO "configure"
15226/* confdefs.h. */
15227_ACEOF
15228cat confdefs.h >>conftest.$ac_ext
15229cat >>conftest.$ac_ext <<_ACEOF
15230/* end confdefs.h. */
15231$ac_includes_default
15232int
15233main ()
15234{
15235static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15236test_array [0] = 0
4f14bcd8 15237
e6cc62c6
VS
15238 ;
15239 return 0;
15240}
15241_ACEOF
15242rm -f conftest.$ac_objext
15243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_hi=$ac_mid; break
15255else
15256 echo "$as_me: failed program was:" >&5
15257sed 's/^/| /' conftest.$ac_ext >&5
15258
15259ac_lo=`expr $ac_mid + 1`
15260 if test $ac_lo -le $ac_mid; then
15261 ac_lo= ac_hi=
15262 break
15263 fi
15264 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15265fi
e6cc62c6
VS
15266rm -f conftest.$ac_objext conftest.$ac_ext
15267 done
15268else
15269 echo "$as_me: failed program was:" >&5
15270sed 's/^/| /' conftest.$ac_ext >&5
15271
15272cat >conftest.$ac_ext <<_ACEOF
15273#line $LINENO "configure"
15274/* confdefs.h. */
15275_ACEOF
15276cat confdefs.h >>conftest.$ac_ext
15277cat >>conftest.$ac_ext <<_ACEOF
15278/* end confdefs.h. */
15279$ac_includes_default
15280int
15281main ()
15282{
15283static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15284test_array [0] = 0
4f14bcd8 15285
e6cc62c6
VS
15286 ;
15287 return 0;
15288}
15289_ACEOF
15290rm -f conftest.$ac_objext
15291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15292 (eval $ac_compile) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
15296 { ac_try='test -s conftest.$ac_objext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_hi=-1 ac_mid=-1
15303 while :; do
15304 cat >conftest.$ac_ext <<_ACEOF
15305#line $LINENO "configure"
15306/* confdefs.h. */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h. */
15311$ac_includes_default
15312int
15313main ()
15314{
15315static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15316test_array [0] = 0
5c6fa7d2 15317
e6cc62c6
VS
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext
15323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15324 (eval $ac_compile) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_lo=$ac_mid; break
15335else
15336 echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339ac_hi=`expr '(' $ac_mid ')' - 1`
15340 if test $ac_mid -le $ac_hi; then
15341 ac_lo= ac_hi=
15342 break
15343 fi
15344 ac_mid=`expr 2 '*' $ac_mid`
15345fi
15346rm -f conftest.$ac_objext conftest.$ac_ext
15347 done
247f5006 15348else
e6cc62c6
VS
15349 echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352ac_lo= ac_hi=
15353fi
15354rm -f conftest.$ac_objext conftest.$ac_ext
15355fi
15356rm -f conftest.$ac_objext conftest.$ac_ext
15357# Binary search between lo and hi bounds.
15358while test "x$ac_lo" != "x$ac_hi"; do
15359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15360 cat >conftest.$ac_ext <<_ACEOF
15361#line $LINENO "configure"
15362/* confdefs.h. */
15363_ACEOF
15364cat confdefs.h >>conftest.$ac_ext
15365cat >>conftest.$ac_ext <<_ACEOF
15366/* end confdefs.h. */
15367$ac_includes_default
15368int
15369main ()
15370{
15371static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15372test_array [0] = 0
15373
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15380 (eval $ac_compile) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -s conftest.$ac_objext'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 ac_hi=$ac_mid
15391else
15392 echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395ac_lo=`expr '(' $ac_mid ')' + 1`
15396fi
15397rm -f conftest.$ac_objext conftest.$ac_ext
15398done
15399case $ac_lo in
15400?*) ac_cv_sizeof_long=$ac_lo;;
15401'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15402See \`config.log' for more details." >&5
15403echo "$as_me: error: cannot compute sizeof (long), 77
15404See \`config.log' for more details." >&2;}
15405 { (exit 1); exit 1; }; } ;;
15406esac
247f5006 15407else
e6cc62c6
VS
15408 if test "$cross_compiling" = yes; then
15409 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15410See \`config.log' for more details." >&5
15411echo "$as_me: error: cannot run test program while cross compiling
15412See \`config.log' for more details." >&2;}
15413 { (exit 1); exit 1; }; }
15414else
15415 cat >conftest.$ac_ext <<_ACEOF
15416#line $LINENO "configure"
15417/* confdefs.h. */
15418_ACEOF
15419cat confdefs.h >>conftest.$ac_ext
15420cat >>conftest.$ac_ext <<_ACEOF
15421/* end confdefs.h. */
15422$ac_includes_default
15423long longval () { return (long) (sizeof (long)); }
15424unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15425#include <stdio.h>
e6cc62c6
VS
15426#include <stdlib.h>
15427int
15428main ()
247f5006 15429{
e6cc62c6
VS
15430
15431 FILE *f = fopen ("conftest.val", "w");
15432 if (! f)
15433 exit (1);
15434 if (((long) (sizeof (long))) < 0)
15435 {
15436 long i = longval ();
15437 if (i != ((long) (sizeof (long))))
15438 exit (1);
15439 fprintf (f, "%ld\n", i);
15440 }
15441 else
15442 {
15443 unsigned long i = ulongval ();
15444 if (i != ((long) (sizeof (long))))
15445 exit (1);
15446 fprintf (f, "%lu\n", i);
15447 }
15448 exit (ferror (f) || fclose (f) != 0);
15449
15450 ;
15451 return 0;
247f5006 15452}
e6cc62c6
VS
15453_ACEOF
15454rm -f conftest$ac_exeext
15455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_cv_sizeof_long=`cat conftest.val`
15466else
15467 echo "$as_me: program exited with status $ac_status" >&5
15468echo "$as_me: failed program was:" >&5
15469sed 's/^/| /' conftest.$ac_ext >&5
15470
15471( exit $ac_status )
15472{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15473See \`config.log' for more details." >&5
15474echo "$as_me: error: cannot compute sizeof (long), 77
15475See \`config.log' for more details." >&2;}
15476 { (exit 1); exit 1; }; }
15477fi
15478rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15479fi
15480fi
15481rm -f conftest.val
247f5006 15482else
a0b9e27f 15483 ac_cv_sizeof_long=0
247f5006 15484fi
247f5006 15485fi
e6cc62c6
VS
15486echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15487echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15488cat >>confdefs.h <<_ACEOF
a0b9e27f 15489#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15490_ACEOF
247f5006 15491
a0b9e27f
MB
15492
15493
15494case "${host}" in
15495 arm-*-linux* )
e6cc62c6
VS
15496 echo "$as_me:$LINENO: checking for long long" >&5
15497echo $ECHO_N "checking for long long... $ECHO_C" >&6
15498if test "${ac_cv_type_long_long+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500else
15501 cat >conftest.$ac_ext <<_ACEOF
15502#line $LINENO "configure"
15503/* confdefs.h. */
15504_ACEOF
15505cat confdefs.h >>conftest.$ac_ext
15506cat >>conftest.$ac_ext <<_ACEOF
15507/* end confdefs.h. */
15508$ac_includes_default
15509int
15510main ()
15511{
15512if ((long long *) 0)
15513 return 0;
15514if (sizeof (long long))
15515 return 0;
15516 ;
15517 return 0;
15518}
15519_ACEOF
15520rm -f conftest.$ac_objext
15521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522 (eval $ac_compile) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -s conftest.$ac_objext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_type_long_long=yes
15533else
15534 echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537ac_cv_type_long_long=no
15538fi
15539rm -f conftest.$ac_objext conftest.$ac_ext
15540fi
15541echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15542echo "${ECHO_T}$ac_cv_type_long_long" >&6
15543
15544echo "$as_me:$LINENO: checking size of long long" >&5
15545echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15546if test "${ac_cv_sizeof_long_long+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15548else
15549 if test "$ac_cv_type_long_long" = yes; then
15550 # The cast to unsigned long works around a bug in the HP C Compiler
15551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15553 # This bug is HP SR number 8606223364.
a0b9e27f 15554 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15555 # Depending upon the size, compute the lo and hi bounds.
15556cat >conftest.$ac_ext <<_ACEOF
15557#line $LINENO "configure"
15558/* confdefs.h. */
15559_ACEOF
15560cat confdefs.h >>conftest.$ac_ext
15561cat >>conftest.$ac_ext <<_ACEOF
15562/* end confdefs.h. */
15563$ac_includes_default
15564int
15565main ()
15566{
15567static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15568test_array [0] = 0
15569
15570 ;
15571 return 0;
15572}
15573_ACEOF
15574rm -f conftest.$ac_objext
15575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576 (eval $ac_compile) 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -s conftest.$ac_objext'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; }; then
15586 ac_lo=0 ac_mid=0
15587 while :; do
15588 cat >conftest.$ac_ext <<_ACEOF
15589#line $LINENO "configure"
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
15594/* end confdefs.h. */
15595$ac_includes_default
15596int
15597main ()
15598{
15599static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15600test_array [0] = 0
15601
15602 ;
15603 return 0;
15604}
15605_ACEOF
15606rm -f conftest.$ac_objext
15607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_hi=$ac_mid; break
15619else
15620 echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623ac_lo=`expr $ac_mid + 1`
15624 if test $ac_lo -le $ac_mid; then
15625 ac_lo= ac_hi=
15626 break
15627 fi
15628 ac_mid=`expr 2 '*' $ac_mid + 1`
15629fi
15630rm -f conftest.$ac_objext conftest.$ac_ext
15631 done
15632else
15633 echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
15636cat >conftest.$ac_ext <<_ACEOF
15637#line $LINENO "configure"
15638/* confdefs.h. */
15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
15643$ac_includes_default
15644int
15645main ()
15646{
15647static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15648test_array [0] = 0
15649
15650 ;
15651 return 0;
15652}
15653_ACEOF
15654rm -f conftest.$ac_objext
15655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15656 (eval $ac_compile) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15666 ac_hi=-1 ac_mid=-1
15667 while :; do
15668 cat >conftest.$ac_ext <<_ACEOF
15669#line $LINENO "configure"
15670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
15674/* end confdefs.h. */
15675$ac_includes_default
15676int
15677main ()
15678{
15679static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15680test_array [0] = 0
15681
15682 ;
15683 return 0;
15684}
15685_ACEOF
15686rm -f conftest.$ac_objext
15687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15688 (eval $ac_compile) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_lo=$ac_mid; break
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703ac_hi=`expr '(' $ac_mid ')' - 1`
15704 if test $ac_mid -le $ac_hi; then
15705 ac_lo= ac_hi=
15706 break
15707 fi
15708 ac_mid=`expr 2 '*' $ac_mid`
15709fi
15710rm -f conftest.$ac_objext conftest.$ac_ext
15711 done
15712else
15713 echo "$as_me: failed program was:" >&5
15714sed 's/^/| /' conftest.$ac_ext >&5
15715
15716ac_lo= ac_hi=
15717fi
15718rm -f conftest.$ac_objext conftest.$ac_ext
15719fi
15720rm -f conftest.$ac_objext conftest.$ac_ext
15721# Binary search between lo and hi bounds.
15722while test "x$ac_lo" != "x$ac_hi"; do
15723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15724 cat >conftest.$ac_ext <<_ACEOF
15725#line $LINENO "configure"
15726/* confdefs.h. */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h. */
15731$ac_includes_default
15732int
15733main ()
15734{
15735static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15736test_array [0] = 0
15737
15738 ;
15739 return 0;
15740}
15741_ACEOF
15742rm -f conftest.$ac_objext
15743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try='test -s conftest.$ac_objext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_hi=$ac_mid
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759ac_lo=`expr '(' $ac_mid ')' + 1`
15760fi
15761rm -f conftest.$ac_objext conftest.$ac_ext
15762done
15763case $ac_lo in
15764?*) ac_cv_sizeof_long_long=$ac_lo;;
15765'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15766See \`config.log' for more details." >&5
15767echo "$as_me: error: cannot compute sizeof (long long), 77
15768See \`config.log' for more details." >&2;}
15769 { (exit 1); exit 1; }; } ;;
15770esac
a0b9e27f 15771else
e6cc62c6
VS
15772 if test "$cross_compiling" = yes; then
15773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15774See \`config.log' for more details." >&5
15775echo "$as_me: error: cannot run test program while cross compiling
15776See \`config.log' for more details." >&2;}
15777 { (exit 1); exit 1; }; }
15778else
15779 cat >conftest.$ac_ext <<_ACEOF
15780#line $LINENO "configure"
15781/* confdefs.h. */
15782_ACEOF
15783cat confdefs.h >>conftest.$ac_ext
15784cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h. */
15786$ac_includes_default
15787long longval () { return (long) (sizeof (long long)); }
15788unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15789#include <stdio.h>
e6cc62c6
VS
15790#include <stdlib.h>
15791int
15792main ()
247f5006 15793{
e6cc62c6
VS
15794
15795 FILE *f = fopen ("conftest.val", "w");
15796 if (! f)
15797 exit (1);
15798 if (((long) (sizeof (long long))) < 0)
15799 {
15800 long i = longval ();
15801 if (i != ((long) (sizeof (long long))))
15802 exit (1);
15803 fprintf (f, "%ld\n", i);
15804 }
15805 else
15806 {
15807 unsigned long i = ulongval ();
15808 if (i != ((long) (sizeof (long long))))
15809 exit (1);
15810 fprintf (f, "%lu\n", i);
15811 }
15812 exit (ferror (f) || fclose (f) != 0);
15813
15814 ;
15815 return 0;
247f5006 15816}
e6cc62c6
VS
15817_ACEOF
15818rm -f conftest$ac_exeext
15819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15820 (eval $ac_link) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_cv_sizeof_long_long=`cat conftest.val`
15830else
15831 echo "$as_me: program exited with status $ac_status" >&5
15832echo "$as_me: failed program was:" >&5
15833sed 's/^/| /' conftest.$ac_ext >&5
15834
15835( exit $ac_status )
15836{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15837See \`config.log' for more details." >&5
15838echo "$as_me: error: cannot compute sizeof (long long), 77
15839See \`config.log' for more details." >&2;}
15840 { (exit 1); exit 1; }; }
15841fi
15842rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15843fi
15844fi
15845rm -f conftest.val
7b4a847f 15846else
a0b9e27f 15847 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15848fi
15849fi
e6cc62c6
VS
15850echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15851echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15852cat >>confdefs.h <<_ACEOF
15853#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15854_ACEOF
15855
15856
15857 ;;
15858 *-hp-hpux* )
15859 echo "$as_me:$LINENO: checking for long long" >&5
15860echo $ECHO_N "checking for long long... $ECHO_C" >&6
15861if test "${ac_cv_type_long_long+set}" = set; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15863else
15864 cat >conftest.$ac_ext <<_ACEOF
15865#line $LINENO "configure"
15866/* confdefs.h. */
15867_ACEOF
15868cat confdefs.h >>conftest.$ac_ext
15869cat >>conftest.$ac_ext <<_ACEOF
15870/* end confdefs.h. */
15871$ac_includes_default
15872int
15873main ()
15874{
15875if ((long long *) 0)
15876 return 0;
15877if (sizeof (long long))
15878 return 0;
15879 ;
15880 return 0;
15881}
15882_ACEOF
15883rm -f conftest.$ac_objext
15884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885 (eval $ac_compile) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_type_long_long=yes
15896else
15897 echo "$as_me: failed program was:" >&5
15898sed 's/^/| /' conftest.$ac_ext >&5
15899
15900ac_cv_type_long_long=no
15901fi
15902rm -f conftest.$ac_objext conftest.$ac_ext
15903fi
15904echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15905echo "${ECHO_T}$ac_cv_type_long_long" >&6
15906
15907echo "$as_me:$LINENO: checking size of long long" >&5
15908echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15909if test "${ac_cv_sizeof_long_long+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911else
15912 if test "$ac_cv_type_long_long" = yes; then
15913 # The cast to unsigned long works around a bug in the HP C Compiler
15914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15916 # This bug is HP SR number 8606223364.
15917 if test "$cross_compiling" = yes; then
15918 # Depending upon the size, compute the lo and hi bounds.
15919cat >conftest.$ac_ext <<_ACEOF
15920#line $LINENO "configure"
15921/* confdefs.h. */
15922_ACEOF
15923cat confdefs.h >>conftest.$ac_ext
15924cat >>conftest.$ac_ext <<_ACEOF
15925/* end confdefs.h. */
15926$ac_includes_default
15927int
15928main ()
15929{
15930static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15931test_array [0] = 0
15932
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937rm -f conftest.$ac_objext
15938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -s conftest.$ac_objext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 ac_lo=0 ac_mid=0
15950 while :; do
15951 cat >conftest.$ac_ext <<_ACEOF
15952#line $LINENO "configure"
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
15958$ac_includes_default
15959int
15960main ()
15961{
15962static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15963test_array [0] = 0
8284b0c5 15964
e6cc62c6
VS
15965 ;
15966 return 0;
15967}
15968_ACEOF
15969rm -f conftest.$ac_objext
15970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 (eval $ac_compile) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 ac_hi=$ac_mid; break
15982else
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986ac_lo=`expr $ac_mid + 1`
15987 if test $ac_lo -le $ac_mid; then
15988 ac_lo= ac_hi=
15989 break
15990 fi
15991 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15992fi
e6cc62c6
VS
15993rm -f conftest.$ac_objext conftest.$ac_ext
15994 done
15995else
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999cat >conftest.$ac_ext <<_ACEOF
16000#line $LINENO "configure"
16001/* confdefs.h. */
16002_ACEOF
16003cat confdefs.h >>conftest.$ac_ext
16004cat >>conftest.$ac_ext <<_ACEOF
16005/* end confdefs.h. */
16006$ac_includes_default
16007int
16008main ()
16009{
16010static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16011test_array [0] = 0
a0b9e27f 16012
e6cc62c6
VS
16013 ;
16014 return 0;
16015}
16016_ACEOF
16017rm -f conftest.$ac_objext
16018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16019 (eval $ac_compile) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -s conftest.$ac_objext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_hi=-1 ac_mid=-1
16030 while :; do
16031 cat >conftest.$ac_ext <<_ACEOF
16032#line $LINENO "configure"
16033/* confdefs.h. */
16034_ACEOF
16035cat confdefs.h >>conftest.$ac_ext
16036cat >>conftest.$ac_ext <<_ACEOF
16037/* end confdefs.h. */
16038$ac_includes_default
16039int
16040main ()
16041{
16042static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16043test_array [0] = 0
a0b9e27f 16044
e6cc62c6
VS
16045 ;
16046 return 0;
16047}
16048_ACEOF
16049rm -f conftest.$ac_objext
16050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -s conftest.$ac_objext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_lo=$ac_mid; break
16062else
16063 echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
16066ac_hi=`expr '(' $ac_mid ')' - 1`
16067 if test $ac_mid -le $ac_hi; then
16068 ac_lo= ac_hi=
16069 break
16070 fi
16071 ac_mid=`expr 2 '*' $ac_mid`
16072fi
16073rm -f conftest.$ac_objext conftest.$ac_ext
16074 done
8284b0c5 16075else
e6cc62c6
VS
16076 echo "$as_me: failed program was:" >&5
16077sed 's/^/| /' conftest.$ac_ext >&5
16078
16079ac_lo= ac_hi=
16080fi
16081rm -f conftest.$ac_objext conftest.$ac_ext
16082fi
16083rm -f conftest.$ac_objext conftest.$ac_ext
16084# Binary search between lo and hi bounds.
16085while test "x$ac_lo" != "x$ac_hi"; do
16086 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16087 cat >conftest.$ac_ext <<_ACEOF
16088#line $LINENO "configure"
16089/* confdefs.h. */
16090_ACEOF
16091cat confdefs.h >>conftest.$ac_ext
16092cat >>conftest.$ac_ext <<_ACEOF
16093/* end confdefs.h. */
16094$ac_includes_default
16095int
16096main ()
16097{
16098static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16099test_array [0] = 0
16100
16101 ;
16102 return 0;
16103}
16104_ACEOF
16105rm -f conftest.$ac_objext
16106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107 (eval $ac_compile) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -s conftest.$ac_objext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 ac_hi=$ac_mid
16118else
16119 echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122ac_lo=`expr '(' $ac_mid ')' + 1`
16123fi
16124rm -f conftest.$ac_objext conftest.$ac_ext
16125done
16126case $ac_lo in
16127?*) ac_cv_sizeof_long_long=$ac_lo;;
16128'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16129See \`config.log' for more details." >&5
16130echo "$as_me: error: cannot compute sizeof (long long), 77
16131See \`config.log' for more details." >&2;}
16132 { (exit 1); exit 1; }; } ;;
16133esac
8284b0c5 16134else
e6cc62c6
VS
16135 if test "$cross_compiling" = yes; then
16136 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16137See \`config.log' for more details." >&5
16138echo "$as_me: error: cannot run test program while cross compiling
16139See \`config.log' for more details." >&2;}
16140 { (exit 1); exit 1; }; }
16141else
16142 cat >conftest.$ac_ext <<_ACEOF
16143#line $LINENO "configure"
16144/* confdefs.h. */
16145_ACEOF
16146cat confdefs.h >>conftest.$ac_ext
16147cat >>conftest.$ac_ext <<_ACEOF
16148/* end confdefs.h. */
16149$ac_includes_default
16150long longval () { return (long) (sizeof (long long)); }
16151unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16152#include <stdio.h>
e6cc62c6
VS
16153#include <stdlib.h>
16154int
16155main ()
8284b0c5 16156{
e6cc62c6
VS
16157
16158 FILE *f = fopen ("conftest.val", "w");
16159 if (! f)
16160 exit (1);
16161 if (((long) (sizeof (long long))) < 0)
16162 {
16163 long i = longval ();
16164 if (i != ((long) (sizeof (long long))))
16165 exit (1);
16166 fprintf (f, "%ld\n", i);
16167 }
16168 else
16169 {
16170 unsigned long i = ulongval ();
16171 if (i != ((long) (sizeof (long long))))
16172 exit (1);
16173 fprintf (f, "%lu\n", i);
16174 }
16175 exit (ferror (f) || fclose (f) != 0);
16176
16177 ;
16178 return 0;
8284b0c5 16179}
e6cc62c6
VS
16180_ACEOF
16181rm -f conftest$ac_exeext
16182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16183 (eval $ac_link) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16192 ac_cv_sizeof_long_long=`cat conftest.val`
16193else
16194 echo "$as_me: program exited with status $ac_status" >&5
16195echo "$as_me: failed program was:" >&5
16196sed 's/^/| /' conftest.$ac_ext >&5
16197
16198( exit $ac_status )
16199{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16200See \`config.log' for more details." >&5
16201echo "$as_me: error: cannot compute sizeof (long long), 77
16202See \`config.log' for more details." >&2;}
16203 { (exit 1); exit 1; }; }
16204fi
16205rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16206fi
16207fi
16208rm -f conftest.val
5c6fa7d2
RR
16209else
16210 ac_cv_sizeof_long_long=0
52127426 16211fi
4f57cf11 16212fi
e6cc62c6
VS
16213echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16214echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16215cat >>confdefs.h <<_ACEOF
4f57cf11 16216#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16217_ACEOF
4f57cf11
GD
16218
16219
16220 if test "$ac_cv_sizeof_long_long" != "0"; then
16221 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16222 fi
16223 ;;
16224 * )
e6cc62c6
VS
16225 echo "$as_me:$LINENO: checking for long long" >&5
16226echo $ECHO_N "checking for long long... $ECHO_C" >&6
16227if test "${ac_cv_type_long_long+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16229else
16230 cat >conftest.$ac_ext <<_ACEOF
16231#line $LINENO "configure"
16232/* confdefs.h. */
16233_ACEOF
16234cat confdefs.h >>conftest.$ac_ext
16235cat >>conftest.$ac_ext <<_ACEOF
16236/* end confdefs.h. */
16237$ac_includes_default
16238int
16239main ()
16240{
16241if ((long long *) 0)
16242 return 0;
16243if (sizeof (long long))
16244 return 0;
16245 ;
16246 return 0;
16247}
16248_ACEOF
16249rm -f conftest.$ac_objext
16250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16251 (eval $ac_compile) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -s conftest.$ac_objext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_cv_type_long_long=yes
16262else
16263 echo "$as_me: failed program was:" >&5
16264sed 's/^/| /' conftest.$ac_ext >&5
16265
16266ac_cv_type_long_long=no
16267fi
16268rm -f conftest.$ac_objext conftest.$ac_ext
16269fi
16270echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16271echo "${ECHO_T}$ac_cv_type_long_long" >&6
16272
16273echo "$as_me:$LINENO: checking size of long long" >&5
16274echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16275if test "${ac_cv_sizeof_long_long+set}" = set; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16277else
16278 if test "$ac_cv_type_long_long" = yes; then
16279 # The cast to unsigned long works around a bug in the HP C Compiler
16280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16282 # This bug is HP SR number 8606223364.
4f57cf11 16283 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16284 # Depending upon the size, compute the lo and hi bounds.
16285cat >conftest.$ac_ext <<_ACEOF
16286#line $LINENO "configure"
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
16292$ac_includes_default
16293int
16294main ()
16295{
16296static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16297test_array [0] = 0
16298
16299 ;
16300 return 0;
16301}
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315 ac_lo=0 ac_mid=0
16316 while :; do
16317 cat >conftest.$ac_ext <<_ACEOF
16318#line $LINENO "configure"
16319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h. */
16324$ac_includes_default
16325int
16326main ()
16327{
16328static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16329test_array [0] = 0
16330
16331 ;
16332 return 0;
16333}
16334_ACEOF
16335rm -f conftest.$ac_objext
16336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 ac_hi=$ac_mid; break
16348else
16349 echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352ac_lo=`expr $ac_mid + 1`
16353 if test $ac_lo -le $ac_mid; then
16354 ac_lo= ac_hi=
16355 break
16356 fi
16357 ac_mid=`expr 2 '*' $ac_mid + 1`
16358fi
16359rm -f conftest.$ac_objext conftest.$ac_ext
16360 done
16361else
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365cat >conftest.$ac_ext <<_ACEOF
16366#line $LINENO "configure"
16367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
16372$ac_includes_default
16373int
16374main ()
16375{
16376static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16377test_array [0] = 0
16378
16379 ;
16380 return 0;
16381}
16382_ACEOF
16383rm -f conftest.$ac_objext
16384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385 (eval $ac_compile) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -s conftest.$ac_objext'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_hi=-1 ac_mid=-1
16396 while :; do
16397 cat >conftest.$ac_ext <<_ACEOF
16398#line $LINENO "configure"
16399/* confdefs.h. */
16400_ACEOF
16401cat confdefs.h >>conftest.$ac_ext
16402cat >>conftest.$ac_ext <<_ACEOF
16403/* end confdefs.h. */
16404$ac_includes_default
16405int
16406main ()
16407{
16408static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16409test_array [0] = 0
16410
16411 ;
16412 return 0;
16413}
16414_ACEOF
16415rm -f conftest.$ac_objext
16416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16417 (eval $ac_compile) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -s conftest.$ac_objext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_lo=$ac_mid; break
16428else
16429 echo "$as_me: failed program was:" >&5
16430sed 's/^/| /' conftest.$ac_ext >&5
16431
16432ac_hi=`expr '(' $ac_mid ')' - 1`
16433 if test $ac_mid -le $ac_hi; then
16434 ac_lo= ac_hi=
16435 break
16436 fi
16437 ac_mid=`expr 2 '*' $ac_mid`
16438fi
16439rm -f conftest.$ac_objext conftest.$ac_ext
16440 done
4f57cf11 16441else
e6cc62c6
VS
16442 echo "$as_me: failed program was:" >&5
16443sed 's/^/| /' conftest.$ac_ext >&5
16444
16445ac_lo= ac_hi=
16446fi
16447rm -f conftest.$ac_objext conftest.$ac_ext
16448fi
16449rm -f conftest.$ac_objext conftest.$ac_ext
16450# Binary search between lo and hi bounds.
16451while test "x$ac_lo" != "x$ac_hi"; do
16452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16453 cat >conftest.$ac_ext <<_ACEOF
16454#line $LINENO "configure"
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461int
16462main ()
16463{
16464static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16465test_array [0] = 0
16466
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest.$ac_objext
16472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479 (eval $ac_try) 2>&5
16480 ac_status=$?
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; }; then
16483 ac_hi=$ac_mid
16484else
16485 echo "$as_me: failed program was:" >&5
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488ac_lo=`expr '(' $ac_mid ')' + 1`
16489fi
16490rm -f conftest.$ac_objext conftest.$ac_ext
16491done
16492case $ac_lo in
16493?*) ac_cv_sizeof_long_long=$ac_lo;;
16494'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16495See \`config.log' for more details." >&5
16496echo "$as_me: error: cannot compute sizeof (long long), 77
16497See \`config.log' for more details." >&2;}
16498 { (exit 1); exit 1; }; } ;;
16499esac
16500else
16501 if test "$cross_compiling" = yes; then
16502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16503See \`config.log' for more details." >&5
16504echo "$as_me: error: cannot run test program while cross compiling
16505See \`config.log' for more details." >&2;}
16506 { (exit 1); exit 1; }; }
16507else
16508 cat >conftest.$ac_ext <<_ACEOF
16509#line $LINENO "configure"
16510/* confdefs.h. */
16511_ACEOF
16512cat confdefs.h >>conftest.$ac_ext
16513cat >>conftest.$ac_ext <<_ACEOF
16514/* end confdefs.h. */
16515$ac_includes_default
16516long longval () { return (long) (sizeof (long long)); }
16517unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16518#include <stdio.h>
e6cc62c6
VS
16519#include <stdlib.h>
16520int
16521main ()
4f57cf11 16522{
e6cc62c6
VS
16523
16524 FILE *f = fopen ("conftest.val", "w");
16525 if (! f)
16526 exit (1);
16527 if (((long) (sizeof (long long))) < 0)
16528 {
16529 long i = longval ();
16530 if (i != ((long) (sizeof (long long))))
16531 exit (1);
16532 fprintf (f, "%ld\n", i);
16533 }
16534 else
16535 {
16536 unsigned long i = ulongval ();
16537 if (i != ((long) (sizeof (long long))))
16538 exit (1);
16539 fprintf (f, "%lu\n", i);
16540 }
16541 exit (ferror (f) || fclose (f) != 0);
16542
16543 ;
16544 return 0;
4f57cf11 16545}
e6cc62c6
VS
16546_ACEOF
16547rm -f conftest$ac_exeext
16548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549 (eval $ac_link) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_cv_sizeof_long_long=`cat conftest.val`
16559else
16560 echo "$as_me: program exited with status $ac_status" >&5
16561echo "$as_me: failed program was:" >&5
16562sed 's/^/| /' conftest.$ac_ext >&5
16563
16564( exit $ac_status )
16565{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16566See \`config.log' for more details." >&5
16567echo "$as_me: error: cannot compute sizeof (long long), 77
16568See \`config.log' for more details." >&2;}
16569 { (exit 1); exit 1; }; }
16570fi
16571rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16572fi
16573fi
16574rm -f conftest.val
4f57cf11 16575else
4f57cf11
GD
16576 ac_cv_sizeof_long_long=0
16577fi
7b4a847f 16578fi
e6cc62c6
VS
16579echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16580echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16581cat >>confdefs.h <<_ACEOF
21d1c967 16582#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16583_ACEOF
9e691f46 16584
8284b0c5 16585
21d1c967
GD
16586esac
16587
e6cc62c6
VS
16588echo "$as_me:$LINENO: checking size of wchar_t" >&5
16589echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16590if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16592else
e6cc62c6 16593
21d1c967 16594 if test "$cross_compiling" = yes; then
e6cc62c6 16595
2b5f62a0
VZ
16596 case "${host}" in
16597 *-pc-msdosdjgpp )
16598 wx_cv_sizeof_wchar_t=0
16599 ;;
16600 * )
16601 wx_cv_sizeof_wchar_t=4
16602 ;;
16603 esac
e6cc62c6
VS
16604
16605
6f72b082 16606else
e6cc62c6
VS
16607 cat >conftest.$ac_ext <<_ACEOF
16608#line $LINENO "configure"
16609/* confdefs.h. */
16610_ACEOF
16611cat confdefs.h >>conftest.$ac_ext
16612cat >>conftest.$ac_ext <<_ACEOF
16613/* end confdefs.h. */
21d1c967 16614
2b5f62a0
VZ
16615 /* DJGPP only has fake wchar_t: */
16616 #ifdef __DJGPP__
16617 # error "fake wchar_t"
16618 #endif
21d1c967
GD
16619 #ifdef HAVE_WCHAR_H
16620 # ifdef __CYGWIN__
16621 # include <stddef.h>
16622 # endif
16623 # include <wchar.h>
16624 #endif
16625 #ifdef HAVE_STDLIB_H
16626 # include <stdlib.h>
16627 #endif
16628 #include <stdio.h>
16629 int main()
16630 {
16631 FILE *f=fopen("conftestval", "w");
16632 if (!f) exit(1);
16633 fprintf(f, "%i", sizeof(wchar_t));
16634 exit(0);
16635 }
e6cc62c6
VS
16636
16637_ACEOF
16638rm -f conftest$ac_exeext
16639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640 (eval $ac_link) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
21d1c967 16649 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16650else
e6cc62c6
VS
16651 echo "$as_me: program exited with status $ac_status" >&5
16652echo "$as_me: failed program was:" >&5
16653sed 's/^/| /' conftest.$ac_ext >&5
16654
16655( exit $ac_status )
16656wx_cv_sizeof_wchar_t=0
6f72b082 16657fi
e6cc62c6 16658rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16659fi
6f72b082 16660
3f345b47 16661fi
e6cc62c6
VS
16662echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16663echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16664
e6cc62c6 16665cat >>confdefs.h <<_ACEOF
21d1c967 16666#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16667_ACEOF
90dd450c 16668
8284b0c5 16669
21d1c967
GD
16670# Check whether --enable-largefile or --disable-largefile was given.
16671if test "${enable_largefile+set}" = set; then
16672 enableval="$enable_largefile"
3f345b47 16673
e6cc62c6 16674fi;
21d1c967
GD
16675if test "$enable_largefile" != no; then
16676 wx_largefile=no
e6cc62c6
VS
16677
16678 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16679echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16680if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682else
16683
16684 cat >conftest.$ac_ext <<_ACEOF
16685#line $LINENO "configure"
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
21d1c967
GD
16691#define _FILE_OFFSET_BITS 64
16692 #include <sys/types.h>
e6cc62c6
VS
16693int
16694main ()
16695{
21d1c967
GD
16696typedef struct {
16697 unsigned int field: sizeof(off_t) == 8;
16698} wxlf;
16699
e6cc62c6
VS
16700 ;
16701 return 0;
16702}
16703_ACEOF
16704rm -f conftest.$ac_objext
16705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -s conftest.$ac_objext'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
21d1c967 16716 ac_cv_sys_file_offset_bits=64
f6bcfd97 16717else
e6cc62c6
VS
16718 echo "$as_me: failed program was:" >&5
16719sed 's/^/| /' conftest.$ac_ext >&5
16720
16721ac_cv_sys_file_offset_bits=no
247f5006 16722fi
e6cc62c6
VS
16723rm -f conftest.$ac_objext conftest.$ac_ext
16724
a0b9e27f 16725
e6cc62c6
VS
16726fi
16727echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16728echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16729
16730 if test "$ac_cv_sys_file_offset_bits" != no; then
16731 wx_largefile=yes
e6cc62c6 16732 cat >>confdefs.h <<_ACEOF
21d1c967 16733#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16734_ACEOF
21d1c967
GD
16735
16736 fi
16737
16738 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16739
16740 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16741echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16742if test "${ac_cv_sys_large_files+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744else
16745
16746 cat >conftest.$ac_ext <<_ACEOF
16747#line $LINENO "configure"
16748/* confdefs.h. */
16749_ACEOF
16750cat confdefs.h >>conftest.$ac_ext
16751cat >>conftest.$ac_ext <<_ACEOF
16752/* end confdefs.h. */
21d1c967
GD
16753#define _LARGE_FILES 1
16754 #include <sys/types.h>
e6cc62c6
VS
16755int
16756main ()
16757{
21d1c967
GD
16758typedef struct {
16759 unsigned int field: sizeof(off_t) == 8;
16760} wxlf;
16761
e6cc62c6
VS
16762 ;
16763 return 0;
16764}
16765_ACEOF
16766rm -f conftest.$ac_objext
16767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16768 (eval $ac_compile) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -s conftest.$ac_objext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
21d1c967 16778 ac_cv_sys_large_files=1
f6bcfd97 16779else
e6cc62c6
VS
16780 echo "$as_me: failed program was:" >&5
16781sed 's/^/| /' conftest.$ac_ext >&5
16782
16783ac_cv_sys_large_files=no
247f5006 16784fi
e6cc62c6 16785rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16786
e6cc62c6
VS
16787
16788fi
16789echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16790echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16791
21d1c967
GD
16792 if test "$ac_cv_sys_large_files" != no; then
16793 wx_largefile=yes
e6cc62c6 16794 cat >>confdefs.h <<_ACEOF
21d1c967 16795#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16796_ACEOF
90dd450c 16797
90dd450c
VZ
16798 fi
16799
90dd450c 16800 fi
90dd450c 16801
e6cc62c6
VS
16802 echo "$as_me:$LINENO: checking if large file support is available" >&5
16803echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16804 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16805 cat >>confdefs.h <<\_ACEOF
21d1c967 16806#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16807_ACEOF
90dd450c 16808
90dd450c 16809 fi
e6cc62c6
VS
16810 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16811echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16812fi
90dd450c 16813
8284b0c5 16814
f02444d0 16815if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16816 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16817 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16818 else
e26c13cf 16819 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16820 fi
e26c13cf 16821 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16822fi
16823
e6cc62c6
VS
16824echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16825echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16826if test "${ac_cv_c_bigendian+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16828else
21d1c967
GD
16829 ac_cv_c_bigendian=unknown
16830# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16831cat >conftest.$ac_ext <<_ACEOF
16832#line $LINENO "configure"
16833/* confdefs.h. */
16834_ACEOF
16835cat confdefs.h >>conftest.$ac_ext
16836cat >>conftest.$ac_ext <<_ACEOF
16837/* end confdefs.h. */
21d1c967
GD
16838#include <sys/types.h>
16839#include <sys/param.h>
e6cc62c6
VS
16840int
16841main ()
16842{
21d1c967
GD
16843
16844#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16845 bogus endian macros
16846#endif
e6cc62c6
VS
16847 ;
16848 return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext
16852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16853 (eval $ac_compile) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -s conftest.$ac_objext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
21d1c967 16863 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16864cat >conftest.$ac_ext <<_ACEOF
16865#line $LINENO "configure"
16866/* confdefs.h. */
16867_ACEOF
16868cat confdefs.h >>conftest.$ac_ext
16869cat >>conftest.$ac_ext <<_ACEOF
16870/* end confdefs.h. */
21d1c967
GD
16871#include <sys/types.h>
16872#include <sys/param.h>
e6cc62c6
VS
16873int
16874main ()
16875{
21d1c967
GD
16876
16877#if BYTE_ORDER != BIG_ENDIAN
16878 not big endian
16879#endif
e6cc62c6
VS
16880 ;
16881 return 0;
16882}
16883_ACEOF
16884rm -f conftest.$ac_objext
16885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -s conftest.$ac_objext'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
21d1c967 16896 ac_cv_c_bigendian=yes
3f345b47 16897else
e6cc62c6
VS
16898 echo "$as_me: failed program was:" >&5
16899sed 's/^/| /' conftest.$ac_ext >&5
16900
16901ac_cv_c_bigendian=no
3f345b47 16902fi
e6cc62c6 16903rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16904else
e6cc62c6
VS
16905 echo "$as_me: failed program was:" >&5
16906sed 's/^/| /' conftest.$ac_ext >&5
16907
3f345b47 16908fi
e6cc62c6 16909rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16910if test $ac_cv_c_bigendian = unknown; then
16911if test "$cross_compiling" = yes; then
16912 ac_cv_c_bigendian=unknown
10f2d63a 16913else
e6cc62c6
VS
16914 cat >conftest.$ac_ext <<_ACEOF
16915#line $LINENO "configure"
16916/* confdefs.h. */
16917_ACEOF
16918cat confdefs.h >>conftest.$ac_ext
16919cat >>conftest.$ac_ext <<_ACEOF
16920/* end confdefs.h. */
21d1c967
GD
16921main () {
16922 /* Are we little or big endian? From Harbison&Steele. */
16923 union
16924 {
16925 long l;
16926 char c[sizeof (long)];
16927 } u;
16928 u.l = 1;
16929 exit (u.c[sizeof (long) - 1] == 1);
16930}
e6cc62c6
VS
16931_ACEOF
16932rm -f conftest$ac_exeext
16933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16934 (eval $ac_link) 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
21d1c967 16943 ac_cv_c_bigendian=no
3f345b47 16944else
e6cc62c6
VS
16945 echo "$as_me: program exited with status $ac_status" >&5
16946echo "$as_me: failed program was:" >&5
16947sed 's/^/| /' conftest.$ac_ext >&5
16948
16949( exit $ac_status )
16950ac_cv_c_bigendian=yes
247f5006 16951fi
e6cc62c6 16952rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16953fi
3f345b47 16954fi
8168de4c 16955fi
e6cc62c6
VS
16956echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16957echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16958if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16959 { 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
16960echo "$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;}
247f5006
VZ
16961fi
16962if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16963 cat >>confdefs.h <<\_ACEOF
247f5006 16964#define WORDS_BIGENDIAN 1
e6cc62c6 16965_ACEOF
247f5006
VZ
16966
16967fi
16968
16969
e6cc62c6
VS
16970
16971ac_ext=cc
16972ac_cpp='$CXXCPP $CPPFLAGS'
16973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16976echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16977echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16978if test -z "$CXXCPP"; then
e6cc62c6
VS
16979 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 # Double quotes because CXXCPP needs to be expanded
16983 for CXXCPP in "$CXX -E" "/lib/cpp"
16984 do
16985 ac_preproc_ok=false
16986for ac_cxx_preproc_warn_flag in '' yes
16987do
16988 # Use a header file that comes with gcc, so configuring glibc
16989 # with a fresh cross-compiler works.
16990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991 # <limits.h> exists even on freestanding compilers.
16992 # On the NeXT, cc -E runs the code through the compiler's parser,
16993 # not just through cpp. "Syntax error" is here to catch this case.
16994 cat >conftest.$ac_ext <<_ACEOF
16995#line $LINENO "configure"
16996/* confdefs.h. */
16997_ACEOF
16998cat confdefs.h >>conftest.$ac_ext
16999cat >>conftest.$ac_ext <<_ACEOF
17000/* end confdefs.h. */
17001#ifdef __STDC__
17002# include <limits.h>
17003#else
17004# include <assert.h>
17005#endif
17006 Syntax error
17007_ACEOF
17008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } >/dev/null; then
17016 if test -s conftest.err; then
17017 ac_cpp_err=$ac_cxx_preproc_warn_flag
17018 else
17019 ac_cpp_err=
17020 fi
247f5006 17021else
e6cc62c6
VS
17022 ac_cpp_err=yes
17023fi
17024if test -z "$ac_cpp_err"; then
17025 :
17026else
17027 echo "$as_me: failed program was:" >&5
17028sed 's/^/| /' conftest.$ac_ext >&5
17029
17030 # Broken: fails on valid input.
17031continue
17032fi
17033rm -f conftest.err conftest.$ac_ext
17034
17035 # OK, works on sane cases. Now check whether non-existent headers
17036 # can be detected and how.
17037 cat >conftest.$ac_ext <<_ACEOF
17038#line $LINENO "configure"
17039/* confdefs.h. */
17040_ACEOF
17041cat confdefs.h >>conftest.$ac_ext
17042cat >>conftest.$ac_ext <<_ACEOF
17043/* end confdefs.h. */
17044#include <ac_nonexistent.h>
17045_ACEOF
17046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } >/dev/null; then
17054 if test -s conftest.err; then
17055 ac_cpp_err=$ac_cxx_preproc_warn_flag
17056 else
17057 ac_cpp_err=
17058 fi
17059else
17060 ac_cpp_err=yes
17061fi
17062if test -z "$ac_cpp_err"; then
17063 # Broken: success on invalid input.
17064continue
17065else
17066 echo "$as_me: failed program was:" >&5
17067sed 's/^/| /' conftest.$ac_ext >&5
17068
17069 # Passes both tests.
17070ac_preproc_ok=:
17071break
17072fi
17073rm -f conftest.err conftest.$ac_ext
17074
17075done
17076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17077rm -f conftest.err conftest.$ac_ext
17078if $ac_preproc_ok; then
17079 break
17080fi
17081
17082 done
17083 ac_cv_prog_CXXCPP=$CXXCPP
17084
17085fi
17086 CXXCPP=$ac_cv_prog_CXXCPP
17087else
17088 ac_cv_prog_CXXCPP=$CXXCPP
17089fi
17090echo "$as_me:$LINENO: result: $CXXCPP" >&5
17091echo "${ECHO_T}$CXXCPP" >&6
17092ac_preproc_ok=false
17093for ac_cxx_preproc_warn_flag in '' yes
17094do
17095 # Use a header file that comes with gcc, so configuring glibc
17096 # with a fresh cross-compiler works.
17097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 # <limits.h> exists even on freestanding compilers.
17099 # On the NeXT, cc -E runs the code through the compiler's parser,
17100 # not just through cpp. "Syntax error" is here to catch this case.
17101 cat >conftest.$ac_ext <<_ACEOF
17102#line $LINENO "configure"
17103/* confdefs.h. */
17104_ACEOF
17105cat confdefs.h >>conftest.$ac_ext
17106cat >>conftest.$ac_ext <<_ACEOF
17107/* end confdefs.h. */
17108#ifdef __STDC__
17109# include <limits.h>
17110#else
17111# include <assert.h>
17112#endif
17113 Syntax error
17114_ACEOF
17115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17117 ac_status=$?
17118 grep -v '^ *+' conftest.er1 >conftest.err
17119 rm -f conftest.er1
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } >/dev/null; then
17123 if test -s conftest.err; then
17124 ac_cpp_err=$ac_cxx_preproc_warn_flag
17125 else
17126 ac_cpp_err=
17127 fi
17128else
17129 ac_cpp_err=yes
17130fi
17131if test -z "$ac_cpp_err"; then
21d1c967 17132 :
698dcdb6 17133else
e6cc62c6
VS
17134 echo "$as_me: failed program was:" >&5
17135sed 's/^/| /' conftest.$ac_ext >&5
17136
17137 # Broken: fails on valid input.
17138continue
17139fi
17140rm -f conftest.err conftest.$ac_ext
17141
17142 # OK, works on sane cases. Now check whether non-existent headers
17143 # can be detected and how.
17144 cat >conftest.$ac_ext <<_ACEOF
17145#line $LINENO "configure"
17146/* confdefs.h. */
17147_ACEOF
17148cat confdefs.h >>conftest.$ac_ext
17149cat >>conftest.$ac_ext <<_ACEOF
17150/* end confdefs.h. */
17151#include <ac_nonexistent.h>
17152_ACEOF
17153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } >/dev/null; then
17161 if test -s conftest.err; then
17162 ac_cpp_err=$ac_cxx_preproc_warn_flag
17163 else
17164 ac_cpp_err=
17165 fi
17166else
17167 ac_cpp_err=yes
247f5006 17168fi
e6cc62c6
VS
17169if test -z "$ac_cpp_err"; then
17170 # Broken: success on invalid input.
17171continue
17172else
17173 echo "$as_me: failed program was:" >&5
17174sed 's/^/| /' conftest.$ac_ext >&5
17175
17176 # Passes both tests.
17177ac_preproc_ok=:
17178break
328a083c 17179fi
e6cc62c6
VS
17180rm -f conftest.err conftest.$ac_ext
17181
17182done
17183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17184rm -f conftest.err conftest.$ac_ext
17185if $ac_preproc_ok; then
17186 :
17187else
17188 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17189See \`config.log' for more details." >&5
17190echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17191See \`config.log' for more details." >&2;}
17192 { (exit 1); exit 1; }; }
90dd450c 17193fi
e6cc62c6
VS
17194
17195ac_ext=cc
17196ac_cpp='$CXXCPP $CPPFLAGS'
17197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17200
1e6feb95 17201
1725144d 17202
21d1c967 17203 if test "$cross_compiling" = "yes"; then
e6cc62c6 17204 cat >>confdefs.h <<\_ACEOF
21d1c967 17205#define wxUSE_IOSTREAMH 1
e6cc62c6 17206_ACEOF
ab9b9eab 17207
21d1c967 17208 else
e6cc62c6
VS
17209
17210
17211 ac_ext=cc
5c6fa7d2 17212ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17216
52127426 17217
247f5006 17218
e6cc62c6 17219for ac_header in iostream
21d1c967 17220do
e6cc62c6
VS
17221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17222if eval "test \"\${$as_ac_Header+set}\" = set"; then
17223 echo "$as_me:$LINENO: checking for $ac_header" >&5
17224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17225if eval "test \"\${$as_ac_Header+set}\" = set"; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227fi
17228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17230else
17231 # Is the header compilable?
17232echo "$as_me:$LINENO: checking $ac_header usability" >&5
17233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17234cat >conftest.$ac_ext <<_ACEOF
17235#line $LINENO "configure"
17236/* confdefs.h. */
17237_ACEOF
17238cat confdefs.h >>conftest.$ac_ext
17239cat >>conftest.$ac_ext <<_ACEOF
17240/* end confdefs.h. */
17241$ac_includes_default
17242#include <$ac_header>
17243_ACEOF
17244rm -f conftest.$ac_objext
17245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17246 (eval $ac_compile) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -s conftest.$ac_objext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_header_compiler=yes
17257else
17258 echo "$as_me: failed program was:" >&5
17259sed 's/^/| /' conftest.$ac_ext >&5
17260
17261ac_header_compiler=no
17262fi
17263rm -f conftest.$ac_objext conftest.$ac_ext
17264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265echo "${ECHO_T}$ac_header_compiler" >&6
17266
17267# Is the header present?
17268echo "$as_me:$LINENO: checking $ac_header presence" >&5
17269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17270cat >conftest.$ac_ext <<_ACEOF
17271#line $LINENO "configure"
17272/* confdefs.h. */
17273_ACEOF
17274cat confdefs.h >>conftest.$ac_ext
17275cat >>conftest.$ac_ext <<_ACEOF
17276/* end confdefs.h. */
17277#include <$ac_header>
17278_ACEOF
17279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17281 ac_status=$?
17282 grep -v '^ *+' conftest.er1 >conftest.err
17283 rm -f conftest.er1
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } >/dev/null; then
17287 if test -s conftest.err; then
17288 ac_cpp_err=$ac_cxx_preproc_warn_flag
17289 else
17290 ac_cpp_err=
17291 fi
17292else
17293 ac_cpp_err=yes
17294fi
17295if test -z "$ac_cpp_err"; then
17296 ac_header_preproc=yes
17297else
17298 echo "$as_me: failed program was:" >&5
17299sed 's/^/| /' conftest.$ac_ext >&5
17300
17301 ac_header_preproc=no
17302fi
17303rm -f conftest.err conftest.$ac_ext
17304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17305echo "${ECHO_T}$ac_header_preproc" >&6
17306
17307# So? What about this header?
17308case $ac_header_compiler:$ac_header_preproc in
17309 yes:no )
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17314 (
17315 cat <<\_ASBOX
17316## ------------------------------------ ##
17317## Report this to bug-autoconf@gnu.org. ##
17318## ------------------------------------ ##
17319_ASBOX
17320 ) |
17321 sed "s/^/$as_me: WARNING: /" >&2
17322 ;;
17323 no:yes )
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17329echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17330 (
17331 cat <<\_ASBOX
17332## ------------------------------------ ##
17333## Report this to bug-autoconf@gnu.org. ##
17334## ------------------------------------ ##
17335_ASBOX
17336 ) |
17337 sed "s/^/$as_me: WARNING: /" >&2
17338 ;;
17339esac
17340echo "$as_me:$LINENO: checking for $ac_header" >&5
17341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17342if eval "test \"\${$as_ac_Header+set}\" = set"; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344else
17345 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17346fi
e6cc62c6
VS
17347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17349
90dd450c 17350fi
e6cc62c6
VS
17351if test `eval echo '${'$as_ac_Header'}'` = yes; then
17352 cat >>confdefs.h <<_ACEOF
17353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17354_ACEOF
17355
90dd450c 17356fi
e6cc62c6 17357
21d1c967 17358done
10f2d63a 17359
8284b0c5 17360
21d1c967
GD
17361 if test "$ac_cv_header_iostream" = "yes" ; then
17362 :
17363 else
e6cc62c6 17364 cat >>confdefs.h <<\_ACEOF
21d1c967 17365#define wxUSE_IOSTREAMH 1
e6cc62c6 17366_ACEOF
788deba1 17367
90dd450c 17368 fi
ab9b9eab 17369
21d1c967 17370 ac_ext=c
21d1c967 17371ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17375
21d1c967 17376 fi
ab9b9eab 17377
52127426 17378
8284b0c5 17379
e6cc62c6
VS
17380 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17381echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17382if test "${wx_cv_cpp_bool+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17384else
e6cc62c6
VS
17385
17386
17387
17388 ac_ext=cc
5c6fa7d2 17389ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17393
8284b0c5 17394
e6cc62c6
VS
17395 cat >conftest.$ac_ext <<_ACEOF
17396#line $LINENO "configure"
17397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
21d1c967 17402
e6cc62c6
VS
17403
17404int
17405main ()
17406{
21d1c967
GD
17407
17408 bool b = true;
17409
17410 return 0;
e6cc62c6
VS
17411
17412 ;
17413 return 0;
17414}
17415_ACEOF
17416rm -f conftest.$ac_objext
17417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418 (eval $ac_compile) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -s conftest.$ac_objext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428
21d1c967 17429 wx_cv_cpp_bool=yes
e6cc62c6 17430
698dcdb6 17431else
e6cc62c6
VS
17432 echo "$as_me: failed program was:" >&5
17433sed 's/^/| /' conftest.$ac_ext >&5
17434
17435
21d1c967 17436 wx_cv_cpp_bool=no
e6cc62c6
VS
17437
17438
698dcdb6 17439fi
e6cc62c6 17440rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17441
17442 ac_ext=c
21d1c967 17443ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17447
a0b9e27f 17448
e6cc62c6
VS
17449fi
17450echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17451echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17452
17453 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17454 cat >>confdefs.h <<\_ACEOF
21d1c967 17455#define HAVE_BOOL 1
e6cc62c6 17456_ACEOF
ab9b9eab 17457
21d1c967
GD
17458 fi
17459
52127426 17460
8284b0c5 17461
e6cc62c6
VS
17462 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17463echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17464if test "${wx_cv_explicit+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17466else
e6cc62c6
VS
17467
17468
17469
17470 ac_ext=cc
5c6fa7d2 17471ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17475
8284b0c5 17476
e6cc62c6
VS
17477 cat >conftest.$ac_ext <<_ACEOF
17478#line $LINENO "configure"
17479/* confdefs.h. */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h. */
986ecc86
VZ
17484
17485 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17486
17487int
17488main ()
17489{
986ecc86
VZ
17490
17491 return 0;
e6cc62c6
VS
17492
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext
17498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -s conftest.$ac_objext'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509
17510 cat >conftest.$ac_ext <<_ACEOF
17511#line $LINENO "configure"
17512/* confdefs.h. */
17513_ACEOF
17514cat confdefs.h >>conftest.$ac_ext
17515cat >>conftest.$ac_ext <<_ACEOF
17516/* end confdefs.h. */
986ecc86
VZ
17517
17518 class Foo { public: explicit Foo(int) {} };
17519 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17520
17521int
17522main ()
17523{
986ecc86
VZ
17524
17525 TakeFoo(17);
17526 return 0;
e6cc62c6
VS
17527
17528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext
17533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17534 (eval $ac_compile) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } &&
17538 { ac_try='test -s conftest.$ac_objext'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
986ecc86
VZ
17544 wx_cv_explicit=no
17545else
e6cc62c6
VS
17546 echo "$as_me: failed program was:" >&5
17547sed 's/^/| /' conftest.$ac_ext >&5
17548
17549wx_cv_explicit=yes
17550
986ecc86 17551fi
e6cc62c6
VS
17552rm -f conftest.$ac_objext conftest.$ac_ext
17553
986ecc86 17554else
e6cc62c6
VS
17555 echo "$as_me: failed program was:" >&5
17556sed 's/^/| /' conftest.$ac_ext >&5
17557
17558wx_cv_explicit=no
17559
986ecc86 17560fi
e6cc62c6 17561rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17562
17563 ac_ext=c
986ecc86 17564ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17568
a0b9e27f 17569
e6cc62c6
VS
17570fi
17571echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17572echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17573
17574 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17575 cat >>confdefs.h <<\_ACEOF
986ecc86 17576#define HAVE_EXPLICIT 1
e6cc62c6 17577_ACEOF
986ecc86
VZ
17578
17579 fi
17580
8284b0c5 17581
e6cc62c6
VS
17582echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17583echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17584if test "${ac_cv_cxx_const_cast+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17586else
521196a2 17587
521196a2 17588
e6cc62c6
VS
17589 ac_ext=cc
17590ac_cpp='$CXXCPP $CPPFLAGS'
17591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17594
17595 cat >conftest.$ac_ext <<_ACEOF
17596#line $LINENO "configure"
17597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
17602
17603int
17604main ()
17605{
521196a2 17606int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17607 ;
17608 return 0;
17609}
17610_ACEOF
17611rm -f conftest.$ac_objext
17612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17613 (eval $ac_compile) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
17617 { ac_try='test -s conftest.$ac_objext'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
521196a2
MB
17623 ac_cv_cxx_const_cast=yes
17624else
e6cc62c6
VS
17625 echo "$as_me: failed program was:" >&5
17626sed 's/^/| /' conftest.$ac_ext >&5
17627
17628ac_cv_cxx_const_cast=no
521196a2 17629fi
e6cc62c6 17630rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17631 ac_ext=c
521196a2 17632ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17636
17637
17638fi
e6cc62c6
VS
17639echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17640echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17641if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17642
17643cat >>confdefs.h <<\_ACEOF
17644#define HAVE_CONST_CAST
17645_ACEOF
521196a2
MB
17646
17647fi
17648
17649
8284b0c5 17650
21d1c967
GD
17651SEARCH_INCLUDE="\
17652 /usr/local/include \
17653 \
17654 /usr/Motif-1.2/include \
17655 /usr/Motif-2.1/include \
17656 \
17657 /usr/include/Motif1.2 \
17658 /opt/xpm/include/X11 \
17659 /opt/GBxpm/include/ \
17660 /opt/GBxpm/X11/include/ \
17661 \
17662 /usr/Motif1.2/include \
17663 /usr/dt/include \
17664 /usr/openwin/include \
17665 \
17666 /usr/include/Xm \
17667 \
17668 /usr/X11R6/include \
17669 /usr/X11R6.4/include \
17670 /usr/X11R5/include \
17671 /usr/X11R4/include \
17672 \
17673 /usr/include/X11R6 \
17674 /usr/include/X11R5 \
17675 /usr/include/X11R4 \
17676 \
17677 /usr/local/X11R6/include \
17678 /usr/local/X11R5/include \
17679 /usr/local/X11R4/include \
17680 \
17681 /usr/local/include/X11R6 \
17682 /usr/local/include/X11R5 \
17683 /usr/local/include/X11R4 \
17684 \
17685 /usr/X11/include \
17686 /usr/include/X11 \
17687 /usr/local/X11/include \
17688 /usr/local/include/X11 \
17689 \
17690 /usr/X386/include \
17691 /usr/x386/include \
17692 /usr/XFree86/include/X11 \
17693 \
17694 X:/XFree86/include \
17695 X:/XFree86/include/X11 \
17696 \
17697 /usr/include/gtk \
17698 /usr/local/include/gtk \
17699 /usr/include/glib \
17700 /usr/local/include/glib \
17701 \
17702 /usr/include/qt \
17703 /usr/local/include/qt \
17704 \
17705 /usr/include/windows \
17706 /usr/include/wine \
17707 /usr/local/include/wine \
17708 \
17709 /usr/unsupported/include \
17710 /usr/athena/include \
17711 /usr/local/x11r5/include \
17712 /usr/lpp/Xamples/include \
17713 \
2b5f62a0 17714 /usr/openwin/share/include"
21d1c967
GD
17715
17716SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17717
8284b0c5 17718
e6cc62c6 17719cat >confcache <<\_ACEOF
21d1c967
GD
17720# This file is a shell script that caches the results of configure
17721# tests run on this system so they can be shared between configure
e6cc62c6
VS
17722# scripts and configure runs, see configure's option --config-cache.
17723# It is not useful on other systems. If it contains results you don't
17724# want to keep, you may remove or edit it.
21d1c967 17725#
e6cc62c6
VS
17726# config.status only pays attention to the cache file if you give it
17727# the --recheck option to rerun configure.
21d1c967 17728#
e6cc62c6
VS
17729# `ac_cv_env_foo' variables (set or unset) will be overridden when
17730# loading this file, other *unset* `ac_cv_foo' will be assigned the
17731# following values.
17732
17733_ACEOF
17734
21d1c967
GD
17735# The following way of writing the cache mishandles newlines in values,
17736# but we know of no workaround that is simple, portable, and efficient.
17737# So, don't put newlines in cache variables' values.
17738# Ultrix sh set writes to stderr and can't be redirected directly,
17739# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17740{
17741 (set) 2>&1 |
17742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17743 *ac_space=\ *)
17744 # `set' does not quote correctly, so add quotes (double-quote
17745 # substitution turns \\\\ into \\, and sed turns \\ into \).
17746 sed -n \
17747 "s/'/'\\\\''/g;
17748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17749 ;;
17750 *)
17751 # `set' quotes correctly as required by POSIX, so do not add quotes.
17752 sed -n \
17753 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17754 ;;
17755 esac;
17756} |
17757 sed '
17758 t clear
17759 : clear
17760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17761 t end
17762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17763 : end' >>confcache
17764if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17765 if test -w $cache_file; then
e6cc62c6
VS
17766 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17767 cat confcache >$cache_file
21d1c967
GD
17768 else
17769 echo "not updating unwritable cache $cache_file"
17770 fi
ab9b9eab 17771fi
21d1c967 17772rm -f confcache
ab9b9eab 17773
fe0895cf 17774if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17775 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17776echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17777if test "${wx_cv_lib_glibc21+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779else
17780
17781 cat >conftest.$ac_ext <<_ACEOF
17782#line $LINENO "configure"
17783/* confdefs.h. */
17784_ACEOF
17785cat confdefs.h >>conftest.$ac_ext
17786cat >>conftest.$ac_ext <<_ACEOF
17787/* end confdefs.h. */
21d1c967 17788#include <features.h>
e6cc62c6
VS
17789int
17790main ()
17791{
ab9b9eab 17792
21d1c967
GD
17793 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17794 #error not glibc2.1
17795 #endif
e6cc62c6
VS
17796
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17803 (eval $ac_compile) 2>&5
17804 ac_status=$?
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -s conftest.$ac_objext'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; }; then
17813
21d1c967 17814 wx_cv_lib_glibc21=yes
e6cc62c6 17815
698dcdb6 17816else
e6cc62c6
VS
17817 echo "$as_me: failed program was:" >&5
17818sed 's/^/| /' conftest.$ac_ext >&5
17819
17820
21d1c967 17821 wx_cv_lib_glibc21=no
e6cc62c6
VS
17822
17823
247f5006 17824fi
e6cc62c6 17825rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17826
e6cc62c6
VS
17827fi
17828echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17829echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17830 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17831 cat >>confdefs.h <<\_ACEOF
21d1c967 17832#define wxHAVE_GLIBC2 1
e6cc62c6 17833_ACEOF
1e487827 17834
90dd450c 17835 fi
ab9b9eab
VZ
17836fi
17837
5c0a20c3
VZ
17838if test "x$wx_cv_lib_glibc21" = "xyes"; then
17839 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17840 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17841#define _GNU_SOURCE 1
e6cc62c6 17842_ACEOF
5c0a20c3
VZ
17843
17844 fi
17845fi
17846
8284b0c5
MB
17847
17848
21d1c967
GD
17849REGEX_INCLUDE=
17850if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17851 cat >>confdefs.h <<\_ACEOF
21d1c967 17852#define wxUSE_REGEX 1
e6cc62c6 17853_ACEOF
698dcdb6 17854
8284b0c5 17855
21d1c967 17856 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17857 if test "${ac_cv_header_regex_h+set}" = set; then
17858 echo "$as_me:$LINENO: checking for regex.h" >&5
17859echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17860if test "${ac_cv_header_regex_h+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17862fi
17863echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17864echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17865else
17866 # Is the header compilable?
17867echo "$as_me:$LINENO: checking regex.h usability" >&5
17868echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17869cat >conftest.$ac_ext <<_ACEOF
17870#line $LINENO "configure"
17871/* confdefs.h. */
17872_ACEOF
17873cat confdefs.h >>conftest.$ac_ext
17874cat >>conftest.$ac_ext <<_ACEOF
17875/* end confdefs.h. */
17876$ac_includes_default
247f5006 17877#include <regex.h>
e6cc62c6
VS
17878_ACEOF
17879rm -f conftest.$ac_objext
17880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17881 (eval $ac_compile) 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -s conftest.$ac_objext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 ac_header_compiler=yes
17892else
17893 echo "$as_me: failed program was:" >&5
17894sed 's/^/| /' conftest.$ac_ext >&5
17895
17896ac_header_compiler=no
17897fi
17898rm -f conftest.$ac_objext conftest.$ac_ext
17899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17900echo "${ECHO_T}$ac_header_compiler" >&6
17901
17902# Is the header present?
17903echo "$as_me:$LINENO: checking regex.h presence" >&5
17904echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17905cat >conftest.$ac_ext <<_ACEOF
17906#line $LINENO "configure"
17907/* confdefs.h. */
17908_ACEOF
17909cat confdefs.h >>conftest.$ac_ext
17910cat >>conftest.$ac_ext <<_ACEOF
17911/* end confdefs.h. */
17912#include <regex.h>
17913_ACEOF
17914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } >/dev/null; then
17922 if test -s conftest.err; then
17923 ac_cpp_err=$ac_c_preproc_warn_flag
17924 else
17925 ac_cpp_err=
17926 fi
17927else
17928 ac_cpp_err=yes
17929fi
17930if test -z "$ac_cpp_err"; then
17931 ac_header_preproc=yes
17932else
17933 echo "$as_me: failed program was:" >&5
17934sed 's/^/| /' conftest.$ac_ext >&5
17935
17936 ac_header_preproc=no
17937fi
17938rm -f conftest.err conftest.$ac_ext
17939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17940echo "${ECHO_T}$ac_header_preproc" >&6
17941
17942# So? What about this header?
17943case $ac_header_compiler:$ac_header_preproc in
17944 yes:no )
17945 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17946echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17947 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17948echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17949 (
17950 cat <<\_ASBOX
17951## ------------------------------------ ##
17952## Report this to bug-autoconf@gnu.org. ##
17953## ------------------------------------ ##
17954_ASBOX
17955 ) |
17956 sed "s/^/$as_me: WARNING: /" >&2
17957 ;;
17958 no:yes )
17959 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17960echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17961 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17962echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17963 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17964echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17965 (
17966 cat <<\_ASBOX
17967## ------------------------------------ ##
17968## Report this to bug-autoconf@gnu.org. ##
17969## ------------------------------------ ##
17970_ASBOX
17971 ) |
17972 sed "s/^/$as_me: WARNING: /" >&2
17973 ;;
17974esac
17975echo "$as_me:$LINENO: checking for regex.h" >&5
17976echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17977if test "${ac_cv_header_regex_h+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979else
17980 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 17981fi
e6cc62c6
VS
17982echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17983echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17984
698dcdb6 17985fi
e6cc62c6
VS
17986if test $ac_cv_header_regex_h = yes; then
17987
17988for ac_func in regcomp
21d1c967 17989do
e6cc62c6
VS
17990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17991echo "$as_me:$LINENO: checking for $ac_func" >&5
17992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17993if eval "test \"\${$as_ac_var+set}\" = set"; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17995else
17996 cat >conftest.$ac_ext <<_ACEOF
17997#line $LINENO "configure"
17998/* confdefs.h. */
17999_ACEOF
18000cat confdefs.h >>conftest.$ac_ext
18001cat >>conftest.$ac_ext <<_ACEOF
18002/* end confdefs.h. */
a0b9e27f 18003/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18004 which can conflict with char $ac_func (); below.
18005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006 <limits.h> exists even on freestanding compilers. */
18007#ifdef __STDC__
18008# include <limits.h>
18009#else
18010# include <assert.h>
18011#endif
21d1c967 18012/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18013#ifdef __cplusplus
18014extern "C"
18015{
18016#endif
21d1c967 18017/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18018 builtin and then its argument prototype would still apply. */
18019char $ac_func ();
21d1c967
GD
18020/* The GNU C library defines this for functions which it implements
18021 to always fail with ENOSYS. Some functions are actually named
18022 something starting with __ and the normal name is an alias. */
18023#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18024choke me
18025#else
e6cc62c6
VS
18026char (*f) () = $ac_func;
18027#endif
18028#ifdef __cplusplus
18029}
21d1c967 18030#endif
90dd450c 18031
e6cc62c6
VS
18032int
18033main ()
18034{
18035return f != $ac_func;
18036 ;
18037 return 0;
18038}
18039_ACEOF
18040rm -f conftest.$ac_objext conftest$ac_exeext
18041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042 (eval $ac_link) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -s conftest$ac_exeext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 eval "$as_ac_var=yes"
18053else
18054 echo "$as_me: failed program was:" >&5
18055sed 's/^/| /' conftest.$ac_ext >&5
18056
18057eval "$as_ac_var=no"
18058fi
18059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18060fi
18061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18063if test `eval echo '${'$as_ac_var'}'` = yes; then
18064 cat >>confdefs.h <<_ACEOF
18065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18066_ACEOF
5c6fa7d2 18067
698dcdb6 18068fi
21d1c967
GD
18069done
18070
ab9b9eab
VZ
18071fi
18072
8284b0c5 18073
e6cc62c6 18074
21d1c967
GD
18075 if test "x$ac_cv_func_regcomp" != "xyes"; then
18076 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18077 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18078echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18079 { (exit 1); exit 1; }; }
21d1c967 18080 else
e6cc62c6
VS
18081 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18082echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18083 wxUSE_REGEX=builtin
18084 fi
18085 else
18086 wxUSE_REGEX=sys
18087 fi
ab9b9eab 18088 fi
90dd450c 18089
21d1c967
GD
18090 if test "$wxUSE_REGEX" = "builtin" ; then
18091 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18092 fi
21d1c967 18093fi
90dd450c 18094
8284b0c5 18095
21d1c967
GD
18096ZLIB_INCLUDE=
18097ZLIB_LINK=
18098if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18099 cat >>confdefs.h <<\_ACEOF
21d1c967 18100#define wxUSE_ZLIB 1
e6cc62c6 18101_ACEOF
21d1c967 18102
8284b0c5 18103
21d1c967 18104 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18105 if test "$USE_DARWIN" = 1; then
18106 system_zlib_h_ok="yes"
18107 else
e6cc62c6
VS
18108 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18109echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18110if test "${ac_cv_header_zlib_h+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18112else
18113 if test "$cross_compiling" = yes; then
89e6bf6d 18114 unset ac_cv_header_zlib_h
e6cc62c6 18115
d643b80e 18116else
e6cc62c6
VS
18117 cat >conftest.$ac_ext <<_ACEOF
18118#line $LINENO "configure"
18119/* confdefs.h. */
18120_ACEOF
18121cat confdefs.h >>conftest.$ac_ext
18122cat >>conftest.$ac_ext <<_ACEOF
18123/* end confdefs.h. */
18124
ef33c576 18125 #include <zlib.h>
d775acfa 18126 #include <stdio.h>
d643b80e 18127
d775acfa
VZ
18128 int main()
18129 {
18130 FILE *f=fopen("conftestval", "w");
18131 if (!f) exit(1);
18132 fprintf(f, "%s",
18133 ZLIB_VERSION[0] == '1' &&
18134 (ZLIB_VERSION[2] > '1' ||
18135 (ZLIB_VERSION[2] == '1' &&
18136 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18137 exit(0);
18138 }
e6cc62c6
VS
18139
18140_ACEOF
18141rm -f conftest$ac_exeext
18142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
d643b80e
VZ
18152 ac_cv_header_zlib_h=`cat conftestval`
18153else
e6cc62c6
VS
18154 echo "$as_me: program exited with status $ac_status" >&5
18155echo "$as_me: failed program was:" >&5
18156sed 's/^/| /' conftest.$ac_ext >&5
18157
18158( exit $ac_status )
18159ac_cv_header_zlib_h=no
d643b80e 18160fi
e6cc62c6 18161rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18162fi
18163
d643b80e 18164fi
e6cc62c6
VS
18165echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18166echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18167 if test "${ac_cv_header_zlib_h+set}" = set; then
18168 echo "$as_me:$LINENO: checking for zlib.h" >&5
18169echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18170if test "${ac_cv_header_zlib_h+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18172fi
18173echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18174echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18175else
e6cc62c6
VS
18176 # Is the header compilable?
18177echo "$as_me:$LINENO: checking zlib.h usability" >&5
18178echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18179cat >conftest.$ac_ext <<_ACEOF
18180#line $LINENO "configure"
18181/* confdefs.h. */
18182_ACEOF
18183cat confdefs.h >>conftest.$ac_ext
18184cat >>conftest.$ac_ext <<_ACEOF
18185/* end confdefs.h. */
18186$ac_includes_default
89e6bf6d 18187#include <zlib.h>
e6cc62c6
VS
18188_ACEOF
18189rm -f conftest.$ac_objext
18190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191 (eval $ac_compile) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } &&
18195 { ac_try='test -s conftest.$ac_objext'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; }; then
18201 ac_header_compiler=yes
18202else
18203 echo "$as_me: failed program was:" >&5
18204sed 's/^/| /' conftest.$ac_ext >&5
18205
18206ac_header_compiler=no
18207fi
18208rm -f conftest.$ac_objext conftest.$ac_ext
18209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18210echo "${ECHO_T}$ac_header_compiler" >&6
18211
18212# Is the header present?
18213echo "$as_me:$LINENO: checking zlib.h presence" >&5
18214echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18215cat >conftest.$ac_ext <<_ACEOF
18216#line $LINENO "configure"
18217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
18222#include <zlib.h>
18223_ACEOF
18224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18226 ac_status=$?
18227 grep -v '^ *+' conftest.er1 >conftest.err
18228 rm -f conftest.er1
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } >/dev/null; then
18232 if test -s conftest.err; then
18233 ac_cpp_err=$ac_c_preproc_warn_flag
18234 else
18235 ac_cpp_err=
18236 fi
18237else
18238 ac_cpp_err=yes
18239fi
18240if test -z "$ac_cpp_err"; then
18241 ac_header_preproc=yes
18242else
18243 echo "$as_me: failed program was:" >&5
18244sed 's/^/| /' conftest.$ac_ext >&5
18245
18246 ac_header_preproc=no
18247fi
18248rm -f conftest.err conftest.$ac_ext
18249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18250echo "${ECHO_T}$ac_header_preproc" >&6
18251
18252# So? What about this header?
18253case $ac_header_compiler:$ac_header_preproc in
18254 yes:no )
18255 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18256echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18257 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18258echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18259 (
18260 cat <<\_ASBOX
18261## ------------------------------------ ##
18262## Report this to bug-autoconf@gnu.org. ##
18263## ------------------------------------ ##
18264_ASBOX
18265 ) |
18266 sed "s/^/$as_me: WARNING: /" >&2
18267 ;;
18268 no:yes )
18269 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18270echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18271 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18272echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18273 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18274echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18275 (
18276 cat <<\_ASBOX
18277## ------------------------------------ ##
18278## Report this to bug-autoconf@gnu.org. ##
18279## ------------------------------------ ##
18280_ASBOX
18281 ) |
18282 sed "s/^/$as_me: WARNING: /" >&2
18283 ;;
18284esac
18285echo "$as_me:$LINENO: checking for zlib.h" >&5
18286echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18287if test "${ac_cv_header_zlib_h+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18289else
e6cc62c6
VS
18290 ac_cv_header_zlib_h=$ac_header_preproc
18291fi
18292echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18293echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18294
89e6bf6d
VZ
18295fi
18296
d643b80e 18297
e6cc62c6 18298
d775acfa
VZ
18299 system_zlib_h_ok=$ac_cv_header_zlib_h
18300 fi
18301
18302 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18303 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18304echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18305if test "${ac_cv_lib_z_deflate+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18307else
e6cc62c6 18308 ac_check_lib_save_LIBS=$LIBS
21d1c967 18309LIBS="-lz $LIBS"
e6cc62c6
VS
18310cat >conftest.$ac_ext <<_ACEOF
18311#line $LINENO "configure"
18312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
18317
21d1c967 18318/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18319#ifdef __cplusplus
18320extern "C"
18321#endif
21d1c967 18322/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18323 builtin and then its argument prototype would still apply. */
18324char deflate ();
18325int
18326main ()
18327{
18328deflate ();
18329 ;
18330 return 0;
18331}
18332_ACEOF
18333rm -f conftest.$ac_objext conftest$ac_exeext
18334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335 (eval $ac_link) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -s conftest$ac_exeext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_lib_z_deflate=yes
18346else
18347 echo "$as_me: failed program was:" >&5
18348sed 's/^/| /' conftest.$ac_ext >&5
18349
18350ac_cv_lib_z_deflate=no
18351fi
18352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18353LIBS=$ac_check_lib_save_LIBS
18354fi
18355echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18356echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18357if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18358 ZLIB_LINK=" -lz"
a0b9e27f 18359fi
698dcdb6 18360
d643b80e 18361 fi
247f5006 18362
21d1c967
GD
18363 if test "x$ZLIB_LINK" = "x" ; then
18364 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18365 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18366echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18367 { (exit 1); exit 1; }; }
21d1c967 18368 else
e6cc62c6
VS
18369 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18370echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18371 wxUSE_ZLIB=builtin
18372 fi
18373 else
18374 wxUSE_ZLIB=sys
18375 fi
18376 fi
18377
18378 if test "$wxUSE_ZLIB" = "builtin" ; then
18379 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18380 fi
ab9b9eab
VZ
18381fi
18382
8284b0c5 18383
21d1c967
GD
18384PNG_INCLUDE=
18385PNG_LINK=
18386if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18387 cat >>confdefs.h <<\_ACEOF
21d1c967 18388#define wxUSE_LIBPNG 1
e6cc62c6 18389_ACEOF
90dd450c 18390
8284b0c5 18391
21d1c967 18392 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18393 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18394echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18395 wxUSE_LIBPNG=sys
18396 fi
90dd450c 18397
21d1c967 18398 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18399 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18400echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18401 wxUSE_LIBPNG=builtin
18402 fi
18403
18404 if test "$wxUSE_MGL" != 1 ; then
18405 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18406 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18407echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18408if test "${ac_cv_header_png_h+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18410else
18411 if test "$cross_compiling" = yes; then
89e6bf6d 18412 unset ac_cv_header_png_h
e6cc62c6 18413
5d3f766d 18414else
e6cc62c6
VS
18415 cat >conftest.$ac_ext <<_ACEOF
18416#line $LINENO "configure"
18417/* confdefs.h. */
18418_ACEOF
18419cat confdefs.h >>conftest.$ac_ext
18420cat >>conftest.$ac_ext <<_ACEOF
18421/* end confdefs.h. */
18422
ef33c576 18423 #include <png.h>
5d3f766d
VZ
18424 #include <stdio.h>
18425
18426 int main()
18427 {
18428 FILE *f=fopen("conftestval", "w");
18429 if (!f) exit(1);
18430 fprintf(f, "%s",
18431 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18432 exit(0);
18433 }
e6cc62c6
VS
18434
18435_ACEOF
18436rm -f conftest$ac_exeext
18437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18438 (eval $ac_link) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
5d3f766d
VZ
18447 ac_cv_header_png_h=`cat conftestval`
18448else
e6cc62c6
VS
18449 echo "$as_me: program exited with status $ac_status" >&5
18450echo "$as_me: failed program was:" >&5
18451sed 's/^/| /' conftest.$ac_ext >&5
18452
18453( exit $ac_status )
18454ac_cv_header_png_h=no
5d3f766d 18455fi
e6cc62c6 18456rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18457fi
18458
5d3f766d 18459fi
e6cc62c6
VS
18460echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18461echo "${ECHO_T}$ac_cv_header_png_h" >&6
18462 if test "${ac_cv_header_png_h+set}" = set; then
18463 echo "$as_me:$LINENO: checking for png.h" >&5
18464echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18465if test "${ac_cv_header_png_h+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18467fi
18468echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18469echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18470else
e6cc62c6
VS
18471 # Is the header compilable?
18472echo "$as_me:$LINENO: checking png.h usability" >&5
18473echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18474cat >conftest.$ac_ext <<_ACEOF
18475#line $LINENO "configure"
18476/* confdefs.h. */
18477_ACEOF
18478cat confdefs.h >>conftest.$ac_ext
18479cat >>conftest.$ac_ext <<_ACEOF
18480/* end confdefs.h. */
18481$ac_includes_default
89e6bf6d 18482#include <png.h>
e6cc62c6
VS
18483_ACEOF
18484rm -f conftest.$ac_objext
18485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18486 (eval $ac_compile) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } &&
18490 { ac_try='test -s conftest.$ac_objext'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_header_compiler=yes
18497else
18498 echo "$as_me: failed program was:" >&5
18499sed 's/^/| /' conftest.$ac_ext >&5
18500
18501ac_header_compiler=no
18502fi
18503rm -f conftest.$ac_objext conftest.$ac_ext
18504echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18505echo "${ECHO_T}$ac_header_compiler" >&6
18506
18507# Is the header present?
18508echo "$as_me:$LINENO: checking png.h presence" >&5
18509echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18510cat >conftest.$ac_ext <<_ACEOF
18511#line $LINENO "configure"
18512/* confdefs.h. */
18513_ACEOF
18514cat confdefs.h >>conftest.$ac_ext
18515cat >>conftest.$ac_ext <<_ACEOF
18516/* end confdefs.h. */
18517#include <png.h>
18518_ACEOF
18519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } >/dev/null; then
18527 if test -s conftest.err; then
18528 ac_cpp_err=$ac_c_preproc_warn_flag
18529 else
18530 ac_cpp_err=
18531 fi
18532else
18533 ac_cpp_err=yes
18534fi
18535if test -z "$ac_cpp_err"; then
18536 ac_header_preproc=yes
18537else
18538 echo "$as_me: failed program was:" >&5
18539sed 's/^/| /' conftest.$ac_ext >&5
18540
18541 ac_header_preproc=no
18542fi
18543rm -f conftest.err conftest.$ac_ext
18544echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18545echo "${ECHO_T}$ac_header_preproc" >&6
18546
18547# So? What about this header?
18548case $ac_header_compiler:$ac_header_preproc in
18549 yes:no )
18550 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18551echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18552 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18553echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18554 (
18555 cat <<\_ASBOX
18556## ------------------------------------ ##
18557## Report this to bug-autoconf@gnu.org. ##
18558## ------------------------------------ ##
18559_ASBOX
18560 ) |
18561 sed "s/^/$as_me: WARNING: /" >&2
18562 ;;
18563 no:yes )
18564 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18565echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18567echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18569echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18570 (
18571 cat <<\_ASBOX
18572## ------------------------------------ ##
18573## Report this to bug-autoconf@gnu.org. ##
18574## ------------------------------------ ##
18575_ASBOX
18576 ) |
18577 sed "s/^/$as_me: WARNING: /" >&2
18578 ;;
18579esac
18580echo "$as_me:$LINENO: checking for png.h" >&5
18581echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18582if test "${ac_cv_header_png_h+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18584else
e6cc62c6
VS
18585 ac_cv_header_png_h=$ac_header_preproc
18586fi
18587echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18588echo "${ECHO_T}$ac_cv_header_png_h" >&6
18589
89e6bf6d
VZ
18590fi
18591
5d3f766d 18592
e6cc62c6 18593
5d3f766d 18594 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18595 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18596echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18597if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18599else
e6cc62c6 18600 ac_check_lib_save_LIBS=$LIBS
21d1c967 18601LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18602cat >conftest.$ac_ext <<_ACEOF
18603#line $LINENO "configure"
18604/* confdefs.h. */
18605_ACEOF
18606cat confdefs.h >>conftest.$ac_ext
18607cat >>conftest.$ac_ext <<_ACEOF
18608/* end confdefs.h. */
18609
21d1c967 18610/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18611#ifdef __cplusplus
18612extern "C"
18613#endif
21d1c967 18614/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18615 builtin and then its argument prototype would still apply. */
18616char png_check_sig ();
18617int
18618main ()
18619{
18620png_check_sig ();
18621 ;
18622 return 0;
18623}
18624_ACEOF
18625rm -f conftest.$ac_objext conftest$ac_exeext
18626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18627 (eval $ac_link) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_lib_png_png_check_sig=yes
18638else
18639 echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642ac_cv_lib_png_png_check_sig=no
18643fi
18644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18645LIBS=$ac_check_lib_save_LIBS
18646fi
18647echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18648echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18649if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18650 PNG_LINK=" -lpng"
a0b9e27f 18651fi
90dd450c 18652
5d3f766d 18653 fi
247f5006 18654
21d1c967
GD
18655 if test "x$PNG_LINK" = "x" ; then
18656 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18657 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18658echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18659 { (exit 1); exit 1; }; }
21d1c967 18660 else
e6cc62c6
VS
18661 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18662echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18663 wxUSE_LIBPNG=builtin
18664 fi
18665 else
2b5f62a0 18666 wxUSE_LIBPNG=sys
21d1c967
GD
18667 fi
18668 fi
18669 fi
90dd450c 18670
21d1c967
GD
18671 if test "$wxUSE_LIBPNG" = "builtin" ; then
18672 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18673 fi
90dd450c 18674
21d1c967 18675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18676fi
18677
8284b0c5 18678
21d1c967
GD
18679JPEG_INCLUDE=
18680JPEG_LINK=
18681if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18682 cat >>confdefs.h <<\_ACEOF
21d1c967 18683#define wxUSE_LIBJPEG 1
e6cc62c6 18684_ACEOF
90dd450c 18685
8284b0c5 18686
21d1c967 18687 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18688 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18689echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18690 wxUSE_LIBJPEG=sys
18691 fi
90dd450c 18692
21d1c967
GD
18693 if test "$wxUSE_MGL" != 1 ; then
18694 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18695 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18696echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18697 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
18700 cat >conftest.$ac_ext <<_ACEOF
18701#line $LINENO "configure"
18702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
90dd450c 18707
21d1c967
GD
18708 #undef HAVE_STDLIB_H
18709 #include <stdio.h>
18710 #include <jpeglib.h>
90dd450c 18711
e6cc62c6
VS
18712int
18713main ()
18714{
18715
18716
18717 ;
18718 return 0;
18719}
18720_ACEOF
18721rm -f conftest.$ac_objext
18722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18723 (eval $ac_compile) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -s conftest.$ac_objext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
21d1c967 18733 ac_cv_header_jpeglib_h=yes
90dd450c 18734else
e6cc62c6
VS
18735 echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738ac_cv_header_jpeglib_h=no
18739
90dd450c 18740fi
e6cc62c6
VS
18741rm -f conftest.$ac_objext conftest.$ac_ext
18742
90dd450c
VZ
18743fi
18744
e6cc62c6
VS
18745 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18746echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18747
21d1c967 18748 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18749 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18750echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18751if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18753else
e6cc62c6 18754 ac_check_lib_save_LIBS=$LIBS
21d1c967 18755LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18756cat >conftest.$ac_ext <<_ACEOF
18757#line $LINENO "configure"
18758/* confdefs.h. */
18759_ACEOF
18760cat confdefs.h >>conftest.$ac_ext
18761cat >>conftest.$ac_ext <<_ACEOF
18762/* end confdefs.h. */
18763
21d1c967 18764/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18765#ifdef __cplusplus
18766extern "C"
18767#endif
21d1c967 18768/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18769 builtin and then its argument prototype would still apply. */
18770char jpeg_read_header ();
18771int
18772main ()
18773{
18774jpeg_read_header ();
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext conftest$ac_exeext
18780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18781 (eval $ac_link) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -s conftest$ac_exeext'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_cv_lib_jpeg_jpeg_read_header=yes
18792else
18793 echo "$as_me: failed program was:" >&5
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
18796ac_cv_lib_jpeg_jpeg_read_header=no
18797fi
18798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18799LIBS=$ac_check_lib_save_LIBS
18800fi
18801echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18802echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18803if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18804 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18805fi
18806
21d1c967 18807 fi
90dd450c 18808
21d1c967
GD
18809 if test "x$JPEG_LINK" = "x" ; then
18810 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18811 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18812echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18813 { (exit 1); exit 1; }; }
21d1c967 18814 else
e6cc62c6
VS
18815 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18816echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18817 wxUSE_LIBJPEG=builtin
18818 fi
18819 else
18820 wxUSE_LIBJPEG=sys
18821 fi
18822 fi
18823 fi
90dd450c 18824
21d1c967
GD
18825 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18826 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18827 fi
18828fi
90dd450c 18829
8284b0c5 18830
21d1c967
GD
18831TIFF_INCLUDE=
18832TIFF_LINK=
2b5f62a0 18833TIFF_PREREQ_LINKS=-lm
21d1c967 18834if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18835 cat >>confdefs.h <<\_ACEOF
21d1c967 18836#define wxUSE_LIBTIFF 1
e6cc62c6 18837_ACEOF
21d1c967 18838
8284b0c5 18839
21d1c967 18840 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18841 if test "$wxUSE_LIBJPEG" = "sys"; then
18842 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18843 fi
18844 if test "$wxUSE_ZLIB" = "sys"; then
18845 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18846 fi
e6cc62c6
VS
18847 if test "${ac_cv_header_tiffio_h+set}" = set; then
18848 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18849echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18850if test "${ac_cv_header_tiffio_h+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852fi
18853echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18854echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18855else
18856 # Is the header compilable?
18857echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18858echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18859cat >conftest.$ac_ext <<_ACEOF
18860#line $LINENO "configure"
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866$ac_includes_default
247f5006 18867#include <tiffio.h>
e6cc62c6
VS
18868_ACEOF
18869rm -f conftest.$ac_objext
18870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18871 (eval $ac_compile) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } &&
18875 { ac_try='test -s conftest.$ac_objext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_header_compiler=yes
18882else
18883 echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886ac_header_compiler=no
18887fi
18888rm -f conftest.$ac_objext conftest.$ac_ext
18889echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18890echo "${ECHO_T}$ac_header_compiler" >&6
18891
18892# Is the header present?
18893echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18894echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18895cat >conftest.$ac_ext <<_ACEOF
18896#line $LINENO "configure"
18897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
18902#include <tiffio.h>
18903_ACEOF
18904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18906 ac_status=$?
18907 grep -v '^ *+' conftest.er1 >conftest.err
18908 rm -f conftest.er1
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } >/dev/null; then
18912 if test -s conftest.err; then
18913 ac_cpp_err=$ac_c_preproc_warn_flag
18914 else
18915 ac_cpp_err=
18916 fi
18917else
18918 ac_cpp_err=yes
18919fi
18920if test -z "$ac_cpp_err"; then
18921 ac_header_preproc=yes
18922else
18923 echo "$as_me: failed program was:" >&5
18924sed 's/^/| /' conftest.$ac_ext >&5
18925
18926 ac_header_preproc=no
18927fi
18928rm -f conftest.err conftest.$ac_ext
18929echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18930echo "${ECHO_T}$ac_header_preproc" >&6
18931
18932# So? What about this header?
18933case $ac_header_compiler:$ac_header_preproc in
18934 yes:no )
18935 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18936echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18938echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18939 (
18940 cat <<\_ASBOX
18941## ------------------------------------ ##
18942## Report this to bug-autoconf@gnu.org. ##
18943## ------------------------------------ ##
18944_ASBOX
18945 ) |
18946 sed "s/^/$as_me: WARNING: /" >&2
18947 ;;
18948 no:yes )
18949 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18950echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18951 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18952echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18953 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18954echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18955 (
18956 cat <<\_ASBOX
18957## ------------------------------------ ##
18958## Report this to bug-autoconf@gnu.org. ##
18959## ------------------------------------ ##
18960_ASBOX
18961 ) |
18962 sed "s/^/$as_me: WARNING: /" >&2
18963 ;;
18964esac
18965echo "$as_me:$LINENO: checking for tiffio.h" >&5
18966echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18967if test "${ac_cv_header_tiffio_h+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969else
18970 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18971fi
e6cc62c6
VS
18972echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18973echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18974
21d1c967 18975fi
e6cc62c6
VS
18976if test $ac_cv_header_tiffio_h = yes; then
18977 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18978echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18979if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 18981else
e6cc62c6 18982 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 18983LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
18984cat >conftest.$ac_ext <<_ACEOF
18985#line $LINENO "configure"
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991
ab9b9eab 18992/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18993#ifdef __cplusplus
18994extern "C"
18995#endif
ab9b9eab 18996/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18997 builtin and then its argument prototype would still apply. */
18998char TIFFError ();
18999int
19000main ()
19001{
19002TIFFError ();
19003 ;
19004 return 0;
19005}
19006_ACEOF
19007rm -f conftest.$ac_objext conftest$ac_exeext
19008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19009 (eval $ac_link) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -s conftest$ac_exeext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_cv_lib_tiff_TIFFError=yes
19020else
19021 echo "$as_me: failed program was:" >&5
19022sed 's/^/| /' conftest.$ac_ext >&5
19023
19024ac_cv_lib_tiff_TIFFError=no
19025fi
19026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19027LIBS=$ac_check_lib_save_LIBS
19028fi
19029echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19030echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19031if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19032 TIFF_LINK=" -ltiff"
a0b9e27f 19033fi
cd6d6d5b 19034
e6cc62c6 19035
a0b9e27f 19036fi
8284b0c5 19037
247f5006 19038
e6cc62c6 19039
21d1c967
GD
19040 if test "x$TIFF_LINK" = "x" ; then
19041 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19042 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19043echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19044 { (exit 1); exit 1; }; }
90dd450c 19045 else
e6cc62c6
VS
19046 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19047echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19048 wxUSE_LIBTIFF=builtin
d8356fa3 19049 fi
d8356fa3 19050 else
21d1c967 19051 wxUSE_LIBTIFF=sys
d8356fa3 19052 fi
21d1c967 19053 fi
d8356fa3 19054
21d1c967
GD
19055 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19056 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19057 fi
21d1c967 19058fi
10f2d63a 19059
8284b0c5 19060
21d1c967 19061AFMINSTALL=
2b5f62a0 19062WIN32INSTALL=
90dd450c 19063
21d1c967
GD
19064TOOLKIT=
19065TOOLKIT_INCLUDE=
19066WIDGET_SET=
19067
19068if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19069
19070for ac_header in w32api.h
21d1c967 19071do
e6cc62c6
VS
19072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19073if eval "test \"\${$as_ac_Header+set}\" = set"; then
19074 echo "$as_me:$LINENO: checking for $ac_header" >&5
19075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19076if eval "test \"\${$as_ac_Header+set}\" = set"; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19078fi
19079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19081else
19082 # Is the header compilable?
19083echo "$as_me:$LINENO: checking $ac_header usability" >&5
19084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19085cat >conftest.$ac_ext <<_ACEOF
19086#line $LINENO "configure"
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
19092$ac_includes_default
19093#include <$ac_header>
19094_ACEOF
19095rm -f conftest.$ac_objext
19096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19097 (eval $ac_compile) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
19101 { ac_try='test -s conftest.$ac_objext'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_header_compiler=yes
19108else
19109 echo "$as_me: failed program was:" >&5
19110sed 's/^/| /' conftest.$ac_ext >&5
19111
19112ac_header_compiler=no
19113fi
19114rm -f conftest.$ac_objext conftest.$ac_ext
19115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19116echo "${ECHO_T}$ac_header_compiler" >&6
19117
19118# Is the header present?
19119echo "$as_me:$LINENO: checking $ac_header presence" >&5
19120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19121cat >conftest.$ac_ext <<_ACEOF
19122#line $LINENO "configure"
19123/* confdefs.h. */
19124_ACEOF
19125cat confdefs.h >>conftest.$ac_ext
19126cat >>conftest.$ac_ext <<_ACEOF
19127/* end confdefs.h. */
19128#include <$ac_header>
19129_ACEOF
19130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19132 ac_status=$?
19133 grep -v '^ *+' conftest.er1 >conftest.err
19134 rm -f conftest.er1
19135 cat conftest.err >&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } >/dev/null; then
19138 if test -s conftest.err; then
19139 ac_cpp_err=$ac_c_preproc_warn_flag
19140 else
19141 ac_cpp_err=
19142 fi
19143else
19144 ac_cpp_err=yes
19145fi
19146if test -z "$ac_cpp_err"; then
19147 ac_header_preproc=yes
19148else
19149 echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
19152 ac_header_preproc=no
19153fi
19154rm -f conftest.err conftest.$ac_ext
19155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19156echo "${ECHO_T}$ac_header_preproc" >&6
19157
19158# So? What about this header?
19159case $ac_header_compiler:$ac_header_preproc in
19160 yes:no )
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19164echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19165 (
19166 cat <<\_ASBOX
19167## ------------------------------------ ##
19168## Report this to bug-autoconf@gnu.org. ##
19169## ------------------------------------ ##
19170_ASBOX
19171 ) |
19172 sed "s/^/$as_me: WARNING: /" >&2
19173 ;;
19174 no:yes )
19175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19181 (
19182 cat <<\_ASBOX
19183## ------------------------------------ ##
19184## Report this to bug-autoconf@gnu.org. ##
19185## ------------------------------------ ##
19186_ASBOX
19187 ) |
19188 sed "s/^/$as_me: WARNING: /" >&2
19189 ;;
19190esac
19191echo "$as_me:$LINENO: checking for $ac_header" >&5
19192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19193if eval "test \"\${$as_ac_Header+set}\" = set"; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195else
19196 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19197fi
e6cc62c6
VS
19198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19200
21d1c967 19201fi
e6cc62c6
VS
19202if test `eval echo '${'$as_ac_Header'}'` = yes; then
19203 cat >>confdefs.h <<_ACEOF
19204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19205_ACEOF
19206
21d1c967 19207fi
e6cc62c6 19208
21d1c967 19209done
f79bd02d 19210
e6cc62c6
VS
19211 if test "${ac_cv_header_windows_h+set}" = set; then
19212 echo "$as_me:$LINENO: checking for windows.h" >&5
19213echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19214if test "${ac_cv_header_windows_h+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19216fi
19217echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19218echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19219else
19220 # Is the header compilable?
19221echo "$as_me:$LINENO: checking windows.h usability" >&5
19222echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19223cat >conftest.$ac_ext <<_ACEOF
19224#line $LINENO "configure"
19225/* confdefs.h. */
19226_ACEOF
19227cat confdefs.h >>conftest.$ac_ext
19228cat >>conftest.$ac_ext <<_ACEOF
19229/* end confdefs.h. */
19230$ac_includes_default
247f5006 19231#include <windows.h>
e6cc62c6
VS
19232_ACEOF
19233rm -f conftest.$ac_objext
19234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235 (eval $ac_compile) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -s conftest.$ac_objext'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_header_compiler=yes
19246else
19247 echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250ac_header_compiler=no
19251fi
19252rm -f conftest.$ac_objext conftest.$ac_ext
19253echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19254echo "${ECHO_T}$ac_header_compiler" >&6
19255
19256# Is the header present?
19257echo "$as_me:$LINENO: checking windows.h presence" >&5
19258echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19259cat >conftest.$ac_ext <<_ACEOF
19260#line $LINENO "configure"
19261/* confdefs.h. */
19262_ACEOF
19263cat confdefs.h >>conftest.$ac_ext
19264cat >>conftest.$ac_ext <<_ACEOF
19265/* end confdefs.h. */
19266#include <windows.h>
19267_ACEOF
19268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } >/dev/null; then
19276 if test -s conftest.err; then
19277 ac_cpp_err=$ac_c_preproc_warn_flag
19278 else
19279 ac_cpp_err=
19280 fi
19281else
19282 ac_cpp_err=yes
19283fi
19284if test -z "$ac_cpp_err"; then
19285 ac_header_preproc=yes
19286else
19287 echo "$as_me: failed program was:" >&5
19288sed 's/^/| /' conftest.$ac_ext >&5
19289
19290 ac_header_preproc=no
19291fi
19292rm -f conftest.err conftest.$ac_ext
19293echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19294echo "${ECHO_T}$ac_header_preproc" >&6
19295
19296# So? What about this header?
19297case $ac_header_compiler:$ac_header_preproc in
19298 yes:no )
19299 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19300echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19301 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19302echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19303 (
19304 cat <<\_ASBOX
19305## ------------------------------------ ##
19306## Report this to bug-autoconf@gnu.org. ##
19307## ------------------------------------ ##
19308_ASBOX
19309 ) |
19310 sed "s/^/$as_me: WARNING: /" >&2
19311 ;;
19312 no:yes )
19313 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19314echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19315 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19316echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19317 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19318echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19319 (
19320 cat <<\_ASBOX
19321## ------------------------------------ ##
19322## Report this to bug-autoconf@gnu.org. ##
19323## ------------------------------------ ##
19324_ASBOX
19325 ) |
19326 sed "s/^/$as_me: WARNING: /" >&2
19327 ;;
19328esac
19329echo "$as_me:$LINENO: checking for windows.h" >&5
19330echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19331if test "${ac_cv_header_windows_h+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333else
19334 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19335fi
e6cc62c6
VS
19336echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19337echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19338
90dd450c 19339fi
e6cc62c6 19340if test $ac_cv_header_windows_h = yes; then
21d1c967 19341 :
90dd450c 19342else
21d1c967 19343
e6cc62c6
VS
19344 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19345echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19346 { (exit 1); exit 1; }; }
19347
5c6fa7d2 19348fi
7b4a847f 19349
5c6fa7d2 19350
e6cc62c6
VS
19351
19352 echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5
19353echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
19354if test "${wx_cv_w32api_win32_ie+set}" = set; then
19355 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 19356else
e6cc62c6
VS
19357
19358 cat >conftest.$ac_ext <<_ACEOF
19359#line $LINENO "configure"
19360/* confdefs.h. */
19361_ACEOF
19362cat confdefs.h >>conftest.$ac_ext
19363cat >>conftest.$ac_ext <<_ACEOF
19364/* end confdefs.h. */
21d1c967 19365#include <w32api.h>
e6cc62c6
VS
19366int
19367main ()
19368{
f79bd02d 19369
21d1c967
GD
19370 #define wxCHECK_W32API_VERSION( major, minor ) \
19371 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
19372 && ( ( __W32API_MAJOR_VERSION > (major) ) \
19373 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
19374
19375 #if !wxCHECK_W32API_VERSION(1,1)
19376 #error You need w32api 1.1 or newer
19377 #endif
e6cc62c6
VS
19378
19379 ;
19380 return 0;
19381}
19382_ACEOF
19383rm -f conftest.$ac_objext
19384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19385 (eval $ac_compile) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395
21d1c967 19396 wx_cv_w32api_win32_ie=yes
e6cc62c6 19397
f79bd02d 19398else
e6cc62c6
VS
19399 echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402
21d1c967 19403 wx_cv_w32api_win32_ie=no
e6cc62c6 19404
247f5006 19405fi
e6cc62c6 19406rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 19407
e6cc62c6
VS
19408fi
19409echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5
19410echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
21d1c967
GD
19411 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
19412 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
19413 fi
f79bd02d 19414
21d1c967
GD
19415 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
19416
7bb2947d
MB
19417 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19418 LIBS="$LIBS -loleacc"
19419 fi
19420
21d1c967
GD
19421 case "${host}" in
19422 *-*-cygwin* )
19423 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
19424 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19425 esac
f79bd02d 19426
8647bec6
RG
19427 if test "$wxUSE_ODBC" = "sys" ; then
19428 wxUSE_ODBC = "yes"
21d1c967 19429 fi
8647bec6
RG
19430 if test "$wxUSE_ODBC" = "yes" ; then
19431 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19432 cat >>confdefs.h <<\_ACEOF
8647bec6 19433#define wxUSE_ODBC 1
e6cc62c6 19434_ACEOF
f79bd02d 19435
8647bec6 19436 fi
e6cc62c6 19437
21d1c967
GD
19438 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19439 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19440
19441 WIN32INSTALL=win32install
f79bd02d 19442fi
f79bd02d 19443
b2fee376 19444if test "$USE_DARWIN" = 1; then
50bcbd3d 19445 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
19446 CPPFLAGS="$CPPFLAGS -cpp-precomp"
19447 else
19448 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
19449 fi
19450fi
19451
21d1c967
GD
19452if test "$wxUSE_GUI" = "yes"; then
19453 USE_GUI=1
f79bd02d 19454
21d1c967 19455 GUI_TK_LIBRARY=
f79bd02d 19456
21d1c967
GD
19457 WXGTK12=
19458 WXGTK127=
19459 WXGTK20=
f79bd02d 19460
21d1c967
GD
19461 if test "$wxUSE_MSW" = 1 ; then
19462 TOOLKIT=MSW
19463 GUIDIST=MSW_DIST
f79bd02d 19464
89e6bf6d 19465 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
19466 fi
19467
21d1c967 19468 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19469 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19470echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19471
19472 gtk_version_cached=1
e6cc62c6
VS
19473 if test "${wx_cv_lib_gtk+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19475else
e6cc62c6 19476
21d1c967 19477 gtk_version_cached=0
e6cc62c6
VS
19478 echo "$as_me:$LINENO: result: " >&5
19479echo "${ECHO_T}" >&6
f79bd02d 19480
21d1c967
GD
19481 GTK_MODULES=
19482 if test "$wxUSE_THREADS" = "yes"; then
19483 GTK_MODULES=gthread
19484 fi
f79bd02d 19485
2b5f62a0 19486 wx_cv_lib_gtk=
21d1c967
GD
19487 if test "x$wxUSE_GTK2" = "xyes"; then
19488 # Check whether --enable-gtktest or --disable-gtktest was given.
19489if test "${enable_gtktest+set}" = set; then
19490 enableval="$enable_gtktest"
e6cc62c6 19491
f79bd02d 19492else
21d1c967 19493 enable_gtktest=yes
e6cc62c6 19494fi;
f79bd02d 19495
21d1c967
GD
19496 pkg_config_args=gtk+-2.0
19497 for module in . $GTK_MODULES
19498 do
19499 case "$module" in
e6cc62c6 19500 gthread)
21d1c967
GD
19501 pkg_config_args="$pkg_config_args gthread-2.0"
19502 ;;
19503 esac
19504 done
19505
19506 no_gtk=""
f79bd02d 19507
21d1c967
GD
19508 # Extract the first word of "pkg-config", so it can be a program name with args.
19509set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19510echo "$as_me:$LINENO: checking for $ac_word" >&5
19511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19512if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19514else
e6cc62c6
VS
19515 case $PKG_CONFIG in
19516 [\\/]* | ?:[\\/]*)
21d1c967
GD
19517 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19518 ;;
21d1c967 19519 *)
e6cc62c6
VS
19520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19521for as_dir in $PATH
19522do
19523 IFS=$as_save_IFS
19524 test -z "$as_dir" && as_dir=.
19525 for ac_exec_ext in '' $ac_executable_extensions; do
19526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19527 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19529 break 2
19530 fi
19531done
19532done
19533
21d1c967
GD
19534 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19535 ;;
19536esac
f79bd02d 19537fi
e6cc62c6
VS
19538PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19539
21d1c967 19540if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19541 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19542echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19543else
e6cc62c6
VS
19544 echo "$as_me:$LINENO: result: no" >&5
19545echo "${ECHO_T}no" >&6
f79bd02d
JS
19546fi
19547
8284b0c5 19548
21d1c967
GD
19549 if test x$PKG_CONFIG != xno ; then
19550 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19551 :
19552 else
19553 echo *** pkg-config too old; version 0.7 or better required.
19554 no_gtk=yes
19555 PKG_CONFIG=no
19556 fi
19557 else
19558 no_gtk=yes
19559 fi
f79bd02d 19560
21d1c967 19561 min_gtk_version=2.0.0
e6cc62c6
VS
19562 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19563echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19564
21d1c967
GD
19565 if test x$PKG_CONFIG != xno ; then
19566 ## don't try to run the test against uninstalled libtool libs
19567 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19568 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19569 enable_gtktest=no
19570 fi
f79bd02d 19571
21d1c967
GD
19572 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19573 :
19574 else
19575 no_gtk=yes
19576 fi
19577 fi
f79bd02d 19578
21d1c967
GD
19579 if test x"$no_gtk" = x ; then
19580 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19581 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19582 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19583 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19584 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19585 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19586 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19587 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19588 if test "x$enable_gtktest" = "xyes" ; then
19589 ac_save_CFLAGS="$CFLAGS"
19590 ac_save_LIBS="$LIBS"
19591 CFLAGS="$CFLAGS $GTK_CFLAGS"
19592 LIBS="$GTK_LIBS $LIBS"
19593 rm -f conf.gtktest
19594 if test "$cross_compiling" = yes; then
19595 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19596else
e6cc62c6
VS
19597 cat >conftest.$ac_ext <<_ACEOF
19598#line $LINENO "configure"
19599/* confdefs.h. */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h. */
f79bd02d 19604
21d1c967
GD
19605#include <gtk/gtk.h>
19606#include <stdio.h>
19607#include <stdlib.h>
f79bd02d 19608
e6cc62c6 19609int
21d1c967
GD
19610main ()
19611{
19612 int major, minor, micro;
19613 char *tmp_version;
f79bd02d 19614
21d1c967 19615 system ("touch conf.gtktest");
f79bd02d 19616
21d1c967
GD
19617 /* HP/UX 9 (%@#!) writes to sscanf strings */
19618 tmp_version = g_strdup("$min_gtk_version");
19619 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19620 printf("%s, bad version string\n", "$min_gtk_version");
19621 exit(1);
19622 }
f79bd02d 19623
21d1c967
GD
19624 if ((gtk_major_version != $gtk_config_major_version) ||
19625 (gtk_minor_version != $gtk_config_minor_version) ||
19626 (gtk_micro_version != $gtk_config_micro_version))
19627 {
e6cc62c6 19628 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19629 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19630 gtk_major_version, gtk_minor_version, gtk_micro_version);
19631 printf ("*** was found! If pkg-config was correct, then it is best\n");
19632 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19633 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19634 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19635 printf("*** required on your system.\n");
19636 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19637 printf("*** to point to the correct configuration files\n");
e6cc62c6 19638 }
21d1c967
GD
19639 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19640 (gtk_minor_version != GTK_MINOR_VERSION) ||
19641 (gtk_micro_version != GTK_MICRO_VERSION))
19642 {
19643 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19644 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19645 printf("*** library (version %d.%d.%d)\n",
19646 gtk_major_version, gtk_minor_version, gtk_micro_version);
19647 }
19648 else
19649 {
19650 if ((gtk_major_version > major) ||
19651 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19652 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19653 {
19654 return 0;
19655 }
19656 else
19657 {
19658 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19659 gtk_major_version, gtk_minor_version, gtk_micro_version);
19660 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19661 major, minor, micro);
19662 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19663 printf("***\n");
19664 printf("*** If you have already installed a sufficiently new version, this error\n");
19665 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19666 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19667 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19668 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19669 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19670 printf("*** so that the correct libraries are found at run-time))\n");
19671 }
19672 }
19673 return 1;
19674}
f79bd02d 19675
e6cc62c6
VS
19676_ACEOF
19677rm -f conftest$ac_exeext
19678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19679 (eval $ac_link) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; }; then
21d1c967 19688 :
f79bd02d 19689else
e6cc62c6
VS
19690 echo "$as_me: program exited with status $ac_status" >&5
19691echo "$as_me: failed program was:" >&5
19692sed 's/^/| /' conftest.$ac_ext >&5
19693
19694( exit $ac_status )
19695no_gtk=yes
f79bd02d 19696fi
e6cc62c6 19697rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19698fi
21d1c967
GD
19699 CFLAGS="$ac_save_CFLAGS"
19700 LIBS="$ac_save_LIBS"
19701 fi
19702 fi
19703 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19704 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19705echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19706 wx_cv_lib_gtk=2.0
21d1c967 19707 else
e6cc62c6
VS
19708 echo "$as_me:$LINENO: result: no" >&5
19709echo "${ECHO_T}no" >&6
21d1c967
GD
19710 if test "$PKG_CONFIG" = "no" ; then
19711 echo "*** A new enough version of pkg-config was not found."
19712 echo "*** See http://pkgconfig.sourceforge.net"
19713 else
19714 if test -f conf.gtktest ; then
19715 :
19716 else
19717 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19718 ac_save_CFLAGS="$CFLAGS"
19719 ac_save_LIBS="$LIBS"
21d1c967
GD
19720 CFLAGS="$CFLAGS $GTK_CFLAGS"
19721 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19722 cat >conftest.$ac_ext <<_ACEOF
19723#line $LINENO "configure"
19724/* confdefs.h. */
19725_ACEOF
19726cat confdefs.h >>conftest.$ac_ext
19727cat >>conftest.$ac_ext <<_ACEOF
19728/* end confdefs.h. */
21d1c967
GD
19729
19730#include <gtk/gtk.h>
19731#include <stdio.h>
f79bd02d 19732
e6cc62c6
VS
19733int
19734main ()
19735{
19736 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19737 ;
19738 return 0;
19739}
19740_ACEOF
19741rm -f conftest.$ac_objext conftest$ac_exeext
19742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19743 (eval $ac_link) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -s conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
21d1c967
GD
19753 echo "*** The test program compiled, but did not run. This usually means"
19754 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19755 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19756 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19757 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19758 echo "*** is required on your system"
19759 echo "***"
19760 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 19761 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 19762else
e6cc62c6
VS
19763 echo "$as_me: failed program was:" >&5
19764sed 's/^/| /' conftest.$ac_ext >&5
19765
19766 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 19767 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 19768fi
e6cc62c6 19769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
19770 CFLAGS="$ac_save_CFLAGS"
19771 LIBS="$ac_save_LIBS"
19772 fi
19773 fi
19774 GTK_CFLAGS=""
19775 GTK_LIBS=""
19776 :
19777 fi
e6cc62c6
VS
19778
19779
21d1c967 19780 rm -f conf.gtktest
f79bd02d 19781
2b5f62a0 19782 else
e6cc62c6
VS
19783
19784# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
19785if test "${with_gtk_prefix+set}" = set; then
19786 withval="$with_gtk_prefix"
19787 gtk_config_prefix="$withval"
19788else
19789 gtk_config_prefix=""
e6cc62c6 19790fi;
f79bd02d 19791
21d1c967
GD
19792# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19793if test "${with_gtk_exec_prefix+set}" = set; then
19794 withval="$with_gtk_exec_prefix"
19795 gtk_config_exec_prefix="$withval"
19796else
19797 gtk_config_exec_prefix=""
e6cc62c6 19798fi;
21d1c967
GD
19799# Check whether --enable-gtktest or --disable-gtktest was given.
19800if test "${enable_gtktest+set}" = set; then
19801 enableval="$enable_gtktest"
e6cc62c6 19802
21d1c967
GD
19803else
19804 enable_gtktest=yes
e6cc62c6 19805fi;
21d1c967
GD
19806
19807 for module in . $GTK_MODULES
19808 do
19809 case "$module" in
e6cc62c6 19810 gthread)
21d1c967
GD
19811 gtk_config_args="$gtk_config_args gthread"
19812 ;;
19813 esac
19814 done
19815
19816 if test x$gtk_config_exec_prefix != x ; then
19817 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19818 if test x${GTK_CONFIG+set} != xset ; then
19819 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19820 fi
19821 fi
19822 if test x$gtk_config_prefix != x ; then
19823 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19824 if test x${GTK_CONFIG+set} != xset ; then
19825 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19826 fi
19827 fi
19828
19829 # Extract the first word of "gtk-config", so it can be a program name with args.
19830set dummy gtk-config; ac_word=$2
e6cc62c6
VS
19831echo "$as_me:$LINENO: checking for $ac_word" >&5
19832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19833if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19835else
e6cc62c6
VS
19836 case $GTK_CONFIG in
19837 [\\/]* | ?:[\\/]*)
21d1c967
GD
19838 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
19839 ;;
21d1c967 19840 *)
e6cc62c6
VS
19841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842for as_dir in $PATH
19843do
19844 IFS=$as_save_IFS
19845 test -z "$as_dir" && as_dir=.
19846 for ac_exec_ext in '' $ac_executable_extensions; do
19847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19848 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19850 break 2
19851 fi
19852done
19853done
19854
21d1c967
GD
19855 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
19856 ;;
19857esac
19858fi
e6cc62c6
VS
19859GTK_CONFIG=$ac_cv_path_GTK_CONFIG
19860
21d1c967 19861if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
19862 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
19863echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 19864else
e6cc62c6
VS
19865 echo "$as_me:$LINENO: result: no" >&5
19866echo "${ECHO_T}no" >&6
21d1c967
GD
19867fi
19868
19869 min_gtk_version=1.2.7
e6cc62c6
VS
19870 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
19871echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
19872 no_gtk=""
19873 if test "$GTK_CONFIG" = "no" ; then
19874 no_gtk=yes
19875 else
19876 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
19877 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
19878 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
19879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19880 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
19881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19882 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
19883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19884 if test "x$enable_gtktest" = "xyes" ; then
19885 ac_save_CFLAGS="$CFLAGS"
19886 ac_save_LIBS="$LIBS"
19887 CFLAGS="$CFLAGS $GTK_CFLAGS"
19888 LIBS="$GTK_LIBS $LIBS"
19889 rm -f conf.gtktest
19890 if test "$cross_compiling" = yes; then
19891 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19892else
e6cc62c6
VS
19893 cat >conftest.$ac_ext <<_ACEOF
19894#line $LINENO "configure"
19895/* confdefs.h. */
19896_ACEOF
19897cat confdefs.h >>conftest.$ac_ext
19898cat >>conftest.$ac_ext <<_ACEOF
19899/* end confdefs.h. */
f79bd02d 19900
21d1c967
GD
19901#include <gtk/gtk.h>
19902#include <stdio.h>
19903#include <stdlib.h>
f79bd02d 19904
e6cc62c6 19905int
21d1c967
GD
19906main ()
19907{
19908 int major, minor, micro;
19909 char *tmp_version;
19910
19911 system ("touch conf.gtktest");
19912
19913 /* HP/UX 9 (%@#!) writes to sscanf strings */
19914 tmp_version = g_strdup("$min_gtk_version");
19915 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19916 printf("%s, bad version string\n", "$min_gtk_version");
19917 exit(1);
19918 }
90dd450c 19919
21d1c967
GD
19920 if ((gtk_major_version != $gtk_config_major_version) ||
19921 (gtk_minor_version != $gtk_config_minor_version) ||
19922 (gtk_micro_version != $gtk_config_micro_version))
19923 {
e6cc62c6 19924 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19925 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19926 gtk_major_version, gtk_minor_version, gtk_micro_version);
19927 printf ("*** was found! If gtk-config was correct, then it is best\n");
19928 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19929 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19930 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19931 printf("*** required on your system.\n");
19932 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19933 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19934 printf("*** before re-running configure\n");
e6cc62c6 19935 }
21d1c967
GD
19936#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19937 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19938 (gtk_minor_version != GTK_MINOR_VERSION) ||
19939 (gtk_micro_version != GTK_MICRO_VERSION))
19940 {
19941 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19942 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19943 printf("*** library (version %d.%d.%d)\n",
19944 gtk_major_version, gtk_minor_version, gtk_micro_version);
19945 }
19946#endif /* defined (GTK_MAJOR_VERSION) ... */
19947 else
19948 {
19949 if ((gtk_major_version > major) ||
19950 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19951 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19952 {
19953 return 0;
19954 }
19955 else
19956 {
19957 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19958 gtk_major_version, gtk_minor_version, gtk_micro_version);
19959 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19960 major, minor, micro);
19961 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19962 printf("***\n");
19963 printf("*** If you have already installed a sufficiently new version, this error\n");
19964 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19965 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19966 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19967 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19968 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19969 printf("*** so that the correct libraries are found at run-time))\n");
19970 }
19971 }
19972 return 1;
19973}
19974
e6cc62c6
VS
19975_ACEOF
19976rm -f conftest$ac_exeext
19977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19978 (eval $ac_link) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
21d1c967
GD
19987 :
19988else
e6cc62c6
VS
19989 echo "$as_me: program exited with status $ac_status" >&5
19990echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
19993( exit $ac_status )
19994no_gtk=yes
21d1c967 19995fi
e6cc62c6 19996rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 19997fi
21d1c967
GD
19998 CFLAGS="$ac_save_CFLAGS"
19999 LIBS="$ac_save_LIBS"
20000 fi
20001 fi
20002 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20003 echo "$as_me:$LINENO: result: yes" >&5
20004echo "${ECHO_T}yes" >&6
20005 wx_cv_lib_gtk=1.2.7
21d1c967 20006 else
e6cc62c6
VS
20007 echo "$as_me:$LINENO: result: no" >&5
20008echo "${ECHO_T}no" >&6
21d1c967
GD
20009 if test "$GTK_CONFIG" = "no" ; then
20010 echo "*** The gtk-config script installed by GTK could not be found"
20011 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20012 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20013 echo "*** full path to gtk-config."
20014 else
20015 if test -f conf.gtktest ; then
20016 :
20017 else
20018 echo "*** Could not run GTK test program, checking why..."
20019 CFLAGS="$CFLAGS $GTK_CFLAGS"
20020 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20021 cat >conftest.$ac_ext <<_ACEOF
20022#line $LINENO "configure"
20023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
21d1c967
GD
20028
20029#include <gtk/gtk.h>
20030#include <stdio.h>
20031
e6cc62c6
VS
20032int
20033main ()
20034{
20035 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20036 ;
20037 return 0;
20038}
20039_ACEOF
20040rm -f conftest.$ac_objext conftest$ac_exeext
20041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20042 (eval $ac_link) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -s conftest$ac_exeext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
21d1c967
GD
20052 echo "*** The test program compiled, but did not run. This usually means"
20053 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20054 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20055 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20056 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20057 echo "*** is required on your system"
20058 echo "***"
20059 echo "*** If you have an old version installed, it is best to remove it, although"
20060 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20061 echo "***"
20062 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20063 echo "*** came with the system with the command"
20064 echo "***"
e6cc62c6 20065 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20066else
e6cc62c6
VS
20067 echo "$as_me: failed program was:" >&5
20068sed 's/^/| /' conftest.$ac_ext >&5
20069
20070 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20071 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20072 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20073 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20074fi
e6cc62c6 20075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20076 CFLAGS="$ac_save_CFLAGS"
20077 LIBS="$ac_save_LIBS"
20078 fi
20079 fi
20080 GTK_CFLAGS=""
20081 GTK_LIBS=""
20082 :
20083 fi
e6cc62c6
VS
20084
20085
21d1c967
GD
20086 rm -f conf.gtktest
20087
21d1c967 20088
2b5f62a0 20089 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20090
20091# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20092if test "${with_gtk_prefix+set}" = set; then
20093 withval="$with_gtk_prefix"
20094 gtk_config_prefix="$withval"
20095else
20096 gtk_config_prefix=""
e6cc62c6 20097fi;
f79bd02d 20098
21d1c967
GD
20099# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20100if test "${with_gtk_exec_prefix+set}" = set; then
20101 withval="$with_gtk_exec_prefix"
20102 gtk_config_exec_prefix="$withval"
20103else
20104 gtk_config_exec_prefix=""
e6cc62c6 20105fi;
21d1c967
GD
20106# Check whether --enable-gtktest or --disable-gtktest was given.
20107if test "${enable_gtktest+set}" = set; then
20108 enableval="$enable_gtktest"
e6cc62c6 20109
90dd450c 20110else
21d1c967 20111 enable_gtktest=yes
e6cc62c6 20112fi;
21d1c967
GD
20113
20114 for module in . $GTK_MODULES
20115 do
20116 case "$module" in
e6cc62c6 20117 gthread)
21d1c967
GD
20118 gtk_config_args="$gtk_config_args gthread"
20119 ;;
20120 esac
20121 done
20122
20123 if test x$gtk_config_exec_prefix != x ; then
20124 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20125 if test x${GTK_CONFIG+set} != xset ; then
20126 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20127 fi
20128 fi
20129 if test x$gtk_config_prefix != x ; then
20130 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20131 if test x${GTK_CONFIG+set} != xset ; then
20132 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20133 fi
20134 fi
20135
20136 # Extract the first word of "gtk-config", so it can be a program name with args.
20137set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20138echo "$as_me:$LINENO: checking for $ac_word" >&5
20139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20140if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20142else
e6cc62c6
VS
20143 case $GTK_CONFIG in
20144 [\\/]* | ?:[\\/]*)
21d1c967
GD
20145 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20146 ;;
21d1c967 20147 *)
e6cc62c6
VS
20148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20149for as_dir in $PATH
20150do
20151 IFS=$as_save_IFS
20152 test -z "$as_dir" && as_dir=.
20153 for ac_exec_ext in '' $ac_executable_extensions; do
20154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20155 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20157 break 2
20158 fi
20159done
20160done
20161
21d1c967
GD
20162 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20163 ;;
20164esac
20165fi
e6cc62c6
VS
20166GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20167
21d1c967 20168if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20169 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20170echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20171else
e6cc62c6
VS
20172 echo "$as_me:$LINENO: result: no" >&5
20173echo "${ECHO_T}no" >&6
21d1c967
GD
20174fi
20175
20176 min_gtk_version=1.2.3
e6cc62c6
VS
20177 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20178echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20179 no_gtk=""
20180 if test "$GTK_CONFIG" = "no" ; then
20181 no_gtk=yes
20182 else
20183 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20184 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20185 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20186 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20187 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20188 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20189 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20190 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20191 if test "x$enable_gtktest" = "xyes" ; then
20192 ac_save_CFLAGS="$CFLAGS"
20193 ac_save_LIBS="$LIBS"
20194 CFLAGS="$CFLAGS $GTK_CFLAGS"
20195 LIBS="$GTK_LIBS $LIBS"
20196 rm -f conf.gtktest
20197 if test "$cross_compiling" = yes; then
20198 echo $ac_n "cross compiling; assumed OK... $ac_c"
20199else
e6cc62c6
VS
20200 cat >conftest.$ac_ext <<_ACEOF
20201#line $LINENO "configure"
20202/* confdefs.h. */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h. */
21d1c967
GD
20207
20208#include <gtk/gtk.h>
20209#include <stdio.h>
20210#include <stdlib.h>
20211
e6cc62c6 20212int
21d1c967
GD
20213main ()
20214{
20215 int major, minor, micro;
20216 char *tmp_version;
20217
20218 system ("touch conf.gtktest");
20219
20220 /* HP/UX 9 (%@#!) writes to sscanf strings */
20221 tmp_version = g_strdup("$min_gtk_version");
20222 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20223 printf("%s, bad version string\n", "$min_gtk_version");
20224 exit(1);
20225 }
20226
20227 if ((gtk_major_version != $gtk_config_major_version) ||
20228 (gtk_minor_version != $gtk_config_minor_version) ||
20229 (gtk_micro_version != $gtk_config_micro_version))
20230 {
e6cc62c6 20231 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20232 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20233 gtk_major_version, gtk_minor_version, gtk_micro_version);
20234 printf ("*** was found! If gtk-config was correct, then it is best\n");
20235 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20236 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20237 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20238 printf("*** required on your system.\n");
20239 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20240 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20241 printf("*** before re-running configure\n");
e6cc62c6 20242 }
21d1c967
GD
20243#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20244 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20245 (gtk_minor_version != GTK_MINOR_VERSION) ||
20246 (gtk_micro_version != GTK_MICRO_VERSION))
20247 {
20248 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20249 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20250 printf("*** library (version %d.%d.%d)\n",
20251 gtk_major_version, gtk_minor_version, gtk_micro_version);
20252 }
20253#endif /* defined (GTK_MAJOR_VERSION) ... */
20254 else
20255 {
20256 if ((gtk_major_version > major) ||
20257 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20258 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20259 {
20260 return 0;
20261 }
20262 else
20263 {
20264 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20265 gtk_major_version, gtk_minor_version, gtk_micro_version);
20266 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20267 major, minor, micro);
20268 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20269 printf("***\n");
20270 printf("*** If you have already installed a sufficiently new version, this error\n");
20271 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20272 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20273 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20274 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20275 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20276 printf("*** so that the correct libraries are found at run-time))\n");
20277 }
20278 }
20279 return 1;
20280}
20281
e6cc62c6
VS
20282_ACEOF
20283rm -f conftest$ac_exeext
20284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20285 (eval $ac_link) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
21d1c967
GD
20294 :
20295else
e6cc62c6
VS
20296 echo "$as_me: program exited with status $ac_status" >&5
20297echo "$as_me: failed program was:" >&5
20298sed 's/^/| /' conftest.$ac_ext >&5
20299
20300( exit $ac_status )
20301no_gtk=yes
21d1c967 20302fi
e6cc62c6 20303rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20304fi
21d1c967
GD
20305 CFLAGS="$ac_save_CFLAGS"
20306 LIBS="$ac_save_LIBS"
20307 fi
20308 fi
20309 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20310 echo "$as_me:$LINENO: result: yes" >&5
20311echo "${ECHO_T}yes" >&6
20312 wx_cv_lib_gtk=1.2.3
21d1c967 20313 else
e6cc62c6
VS
20314 echo "$as_me:$LINENO: result: no" >&5
20315echo "${ECHO_T}no" >&6
21d1c967
GD
20316 if test "$GTK_CONFIG" = "no" ; then
20317 echo "*** The gtk-config script installed by GTK could not be found"
20318 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20319 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20320 echo "*** full path to gtk-config."
20321 else
20322 if test -f conf.gtktest ; then
20323 :
20324 else
20325 echo "*** Could not run GTK test program, checking why..."
20326 CFLAGS="$CFLAGS $GTK_CFLAGS"
20327 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20328 cat >conftest.$ac_ext <<_ACEOF
20329#line $LINENO "configure"
20330/* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h. */
21d1c967
GD
20335
20336#include <gtk/gtk.h>
20337#include <stdio.h>
f79bd02d 20338
e6cc62c6
VS
20339int
20340main ()
20341{
20342 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20343 ;
20344 return 0;
20345}
20346_ACEOF
20347rm -f conftest.$ac_objext conftest$ac_exeext
20348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -s conftest$ac_exeext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
21d1c967
GD
20359 echo "*** The test program compiled, but did not run. This usually means"
20360 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20361 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20362 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20363 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20364 echo "*** is required on your system"
20365 echo "***"
20366 echo "*** If you have an old version installed, it is best to remove it, although"
20367 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20368 echo "***"
20369 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20370 echo "*** came with the system with the command"
20371 echo "***"
e6cc62c6 20372 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20373else
e6cc62c6
VS
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20378 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20379 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20380 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20381fi
e6cc62c6 20382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20383 CFLAGS="$ac_save_CFLAGS"
20384 LIBS="$ac_save_LIBS"
20385 fi
20386 fi
20387 GTK_CFLAGS=""
20388 GTK_LIBS=""
20389 :
20390 fi
e6cc62c6
VS
20391
20392
21d1c967 20393 rm -f conf.gtktest
f79bd02d 20394
2b5f62a0 20395 fi
21d1c967
GD
20396 fi
20397
20398 if test -z "$wx_cv_lib_gtk"; then
20399 wx_cv_lib_gtk=none
20400 else
20401 wx_cv_cflags_gtk=$GTK_CFLAGS
20402 wx_cv_libs_gtk=$GTK_LIBS
20403 fi
e6cc62c6
VS
20404
20405
5c6fa7d2 20406fi
52127426 20407
8284b0c5 20408
21d1c967 20409 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20410 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20411echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20412 fi
20413
20414 case "$wx_cv_lib_gtk" in
20415 2.0) WXGTK20=1
2b5f62a0 20416 TOOLKIT_VERSION=2
21d1c967
GD
20417 ;;
20418 1.2.7) WXGTK127=1
20419 WXGTK12=1
20420 ;;
20421 1.2.3) WXGTK12=1
20422 ;;
e6cc62c6
VS
20423 *) { { echo "$as_me:$LINENO: error:
20424Please check that gtk-config is in path, the directory
20425where GTK+ libraries are installed (returned by
20426'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20427equivalent variable and GTK+ is version 1.2.3 or above.
20428 " >&5
20429echo "$as_me: error:
247f5006
VZ
20430Please check that gtk-config is in path, the directory
20431where GTK+ libraries are installed (returned by
20432'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20433equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20434 " >&2;}
20435 { (exit 1); exit 1; }; }
21d1c967
GD
20436 ;;
20437 esac
20438
b13cd66e
VZ
20439 if test "$WXGTK20" = 1; then
20440 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20441
f09359cf
VS
20442 succeeded=no
20443
20444 if test -z "$PKG_CONFIG"; then
20445 # Extract the first word of "pkg-config", so it can be a program name with args.
20446set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20447echo "$as_me:$LINENO: checking for $ac_word" >&5
20448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20449if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20451else
e6cc62c6
VS
20452 case $PKG_CONFIG in
20453 [\\/]* | ?:[\\/]*)
f09359cf
VS
20454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20455 ;;
f09359cf 20456 *)
e6cc62c6
VS
20457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20458for as_dir in $PATH
20459do
20460 IFS=$as_save_IFS
20461 test -z "$as_dir" && as_dir=.
20462 for ac_exec_ext in '' $ac_executable_extensions; do
20463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20464 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20466 break 2
20467 fi
20468done
20469done
20470
f09359cf
VS
20471 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20472 ;;
20473esac
20474fi
e6cc62c6
VS
20475PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20476
f09359cf 20477if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20478 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20479echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20480else
e6cc62c6
VS
20481 echo "$as_me:$LINENO: result: no" >&5
20482echo "${ECHO_T}no" >&6
f09359cf
VS
20483fi
20484
20485 fi
20486
20487 if test "$PKG_CONFIG" = "no" ; then
20488 echo "*** The pkg-config script could not be found. Make sure it is"
20489 echo "*** in your path, or set the PKG_CONFIG environment variable"
20490 echo "*** to the full path to pkg-config."
20491 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20492 else
20493 PKG_CONFIG_MIN_VERSION=0.9.0
20494 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20495 echo "$as_me:$LINENO: checking for pangoft2" >&5
20496echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20497
20498 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20499 echo "$as_me:$LINENO: result: yes" >&5
20500echo "${ECHO_T}yes" >&6
f09359cf
VS
20501 succeeded=yes
20502
e6cc62c6
VS
20503 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20504echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20505 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20506 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20507echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20508
e6cc62c6
VS
20509 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20510echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20511 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20512 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20513echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20514 else
20515 PANGOFT2_CFLAGS=""
20516 PANGOFT2_LIBS=""
e6cc62c6 20517 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20518 ## do set a variable so people can do so.
20519 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20520
f09359cf
VS
20521 fi
20522
e6cc62c6
VS
20523
20524
f09359cf
VS
20525 else
20526 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20527 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20528 fi
20529 fi
20530
20531 if test $succeeded = yes; then
e6cc62c6 20532
b13cd66e
VZ
20533 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
20534 LIBS="$LIBS $PANGOFT2_LIBS"
e6cc62c6 20535
f09359cf 20536 else
e6cc62c6
VS
20537
20538 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20539echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20540 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20541
20542
f09359cf
VS
20543 fi
20544
b13cd66e 20545 fi
2b5f62a0
VZ
20546 else
20547 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20548 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20549echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20550 wxUSE_UNICODE=no
20551 fi
20552 fi
20553
20554 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20555
20556for ac_func in poll
2b5f62a0 20557do
e6cc62c6
VS
20558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20559echo "$as_me:$LINENO: checking for $ac_func" >&5
20560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20561if eval "test \"\${$as_ac_var+set}\" = set"; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563else
20564 cat >conftest.$ac_ext <<_ACEOF
20565#line $LINENO "configure"
20566/* confdefs.h. */
20567_ACEOF
20568cat confdefs.h >>conftest.$ac_ext
20569cat >>conftest.$ac_ext <<_ACEOF
20570/* end confdefs.h. */
2b5f62a0 20571/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20572 which can conflict with char $ac_func (); below.
20573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20574 <limits.h> exists even on freestanding compilers. */
20575#ifdef __STDC__
20576# include <limits.h>
20577#else
20578# include <assert.h>
20579#endif
2b5f62a0 20580/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20581#ifdef __cplusplus
20582extern "C"
20583{
20584#endif
2b5f62a0 20585/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20586 builtin and then its argument prototype would still apply. */
20587char $ac_func ();
2b5f62a0
VZ
20588/* The GNU C library defines this for functions which it implements
20589 to always fail with ENOSYS. Some functions are actually named
20590 something starting with __ and the normal name is an alias. */
20591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20592choke me
20593#else
e6cc62c6
VS
20594char (*f) () = $ac_func;
20595#endif
20596#ifdef __cplusplus
20597}
2b5f62a0
VZ
20598#endif
20599
e6cc62c6
VS
20600int
20601main ()
20602{
20603return f != $ac_func;
20604 ;
20605 return 0;
20606}
20607_ACEOF
20608rm -f conftest.$ac_objext conftest$ac_exeext
20609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20610 (eval $ac_link) 2>&5
20611 ac_status=$?
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
20614 { ac_try='test -s conftest$ac_exeext'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 eval "$as_ac_var=yes"
20621else
20622 echo "$as_me: failed program was:" >&5
20623sed 's/^/| /' conftest.$ac_ext >&5
20624
20625eval "$as_ac_var=no"
20626fi
20627rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20628fi
20629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20630echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20631if test `eval echo '${'$as_ac_var'}'` = yes; then
20632 cat >>confdefs.h <<_ACEOF
20633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20634_ACEOF
2b5f62a0 20635
2b5f62a0
VZ
20636fi
20637done
20638
f09359cf
VS
20639 fi
20640
21d1c967
GD
20641 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
20642 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
20643
20644 AFMINSTALL=afminstall
20645 TOOLKIT=GTK
20646 GUIDIST=GTK_DIST
20647
e6cc62c6
VS
20648 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20649echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20650if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20652else
e6cc62c6 20653 ac_check_lib_save_LIBS=$LIBS
21d1c967 20654LIBS="-lgdk $LIBS"
e6cc62c6
VS
20655cat >conftest.$ac_ext <<_ACEOF
20656#line $LINENO "configure"
20657/* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
20662
5c6fa7d2 20663/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20664#ifdef __cplusplus
20665extern "C"
20666#endif
5c6fa7d2 20667/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20668 builtin and then its argument prototype would still apply. */
20669char gdk_im_open ();
20670int
20671main ()
20672{
20673gdk_im_open ();
20674 ;
20675 return 0;
20676}
20677_ACEOF
20678rm -f conftest.$ac_objext conftest$ac_exeext
20679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20680 (eval $ac_link) 2>&5
20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
20684 { ac_try='test -s conftest$ac_exeext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_lib_gdk_gdk_im_open=yes
20691else
20692 echo "$as_me: failed program was:" >&5
20693sed 's/^/| /' conftest.$ac_ext >&5
20694
20695ac_cv_lib_gdk_gdk_im_open=no
20696fi
20697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20698LIBS=$ac_check_lib_save_LIBS
20699fi
20700echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20701echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20702if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20703 cat >>confdefs.h <<\_ACEOF
21d1c967 20704#define HAVE_XIM 1
e6cc62c6 20705_ACEOF
21d1c967 20706
90dd450c 20707fi
1e6feb95 20708
21d1c967 20709 fi
1e6feb95 20710
21d1c967 20711 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20712 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20713echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20714 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20715 echo "$as_me:$LINENO: result: not found" >&5
20716echo "${ECHO_T}not found" >&6
20717 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20718echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20719 { (exit 1); exit 1; }; }
21d1c967 20720 else
e6cc62c6
VS
20721 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20722echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20723 fi
20724
e6cc62c6
VS
20725 echo "$as_me:$LINENO: checking for libmgl location" >&5
20726echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20727 case "${host}" in
20728 *-*-linux* )
63a76696
VS
20729 if test "x$wxUSE_SHARED" = xyes ; then
20730 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20731 else
20732 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20733 fi
21d1c967
GD
20734 ;;
20735 *-pc-msdosdjgpp )
63a76696 20736 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20737 ;;
20738 *)
e6cc62c6
VS
20739 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20740echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20741 { (exit 1); exit 1; }; }
21d1c967 20742 esac
1e6feb95 20743
21d1c967 20744 mgl_lib_type=""
63a76696
VS
20745 mgl_os=""
20746
20747 for mgl_os_i in $mgl_os_candidates ; do
20748 if test "x$mgl_os" = x ; then
20749 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20750 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20751 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20752 mgl_lib_type=debug
20753 mgl_os=$mgl_os_i
20754 fi
20755 fi
20756 if test "x$mgl_lib_type" = x ; then
20757 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20758 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20759 mgl_lib_type=release
20760 mgl_os=$mgl_os_i
20761 fi
20762 fi
21d1c967 20763 fi
63a76696 20764 done
2224580a 20765
63a76696 20766 if test "x$mgl_os" = x ; then
e6cc62c6
VS
20767 echo "$as_me:$LINENO: result: not found" >&5
20768echo "${ECHO_T}not found" >&6
20769 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20770echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20771 { (exit 1); exit 1; }; }
63a76696 20772 fi
e6cc62c6
VS
20773 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20774echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 20775
1d1b75ac
VZ
20776 wxUSE_UNIVERSAL="yes"
20777
21d1c967
GD
20778 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20779 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20780
90dd450c 20781 AFMINSTALL=afminstall
21d1c967
GD
20782 TOOLKIT=MGL
20783 GUIDIST=MGL_DIST
20784 fi
dad6c0ea 20785
21d1c967 20786 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
20787 echo "$as_me:$LINENO: checking for MicroWindows" >&5
20788echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 20789 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
20790 echo "$as_me:$LINENO: result: not found" >&5
20791echo "${ECHO_T}not found" >&6
20792 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20793echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20794 { (exit 1); exit 1; }; }
21d1c967 20795 else
e6cc62c6
VS
20796 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20797echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 20798 fi
f6bcfd97 20799
21d1c967 20800 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
20801 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20802echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 20803 else
e6cc62c6
VS
20804 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20805echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20806 { (exit 1); exit 1; }; }
90dd450c 20807 fi
0b2effe9 20808
21d1c967
GD
20809 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20810 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20811
1d1b75ac
VZ
20812 wxUSE_UNIVERSAL="yes"
20813
21d1c967
GD
20814 AFMINSTALL=afminstall
20815 TOOLKIT=MICROWIN
20816 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
20817
20818 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 20819 fi
f6bcfd97 20820
21d1c967 20821 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
20822 echo "$as_me:$LINENO: checking for X" >&5
20823echo $ECHO_N "checking for X... $ECHO_C" >&6
20824
d8356fa3 20825
21d1c967
GD
20826# Check whether --with-x or --without-x was given.
20827if test "${with_x+set}" = set; then
20828 withval="$with_x"
2224580a 20829
e6cc62c6 20830fi;
21d1c967
GD
20831# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20832if test "x$with_x" = xno; then
20833 # The user explicitly disabled X.
20834 have_x=disabled
20835else
20836 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20837 # Both variables are already set.
20838 have_x=yes
20839 else
e6cc62c6
VS
20840 if test "${ac_cv_have_x+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
20842else
20843 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
20844ac_x_includes=no ac_x_libraries=no
20845rm -fr conftest.dir
20846if mkdir conftest.dir; then
20847 cd conftest.dir
21d1c967 20848 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 20849 cat >Imakefile <<'_ACEOF'
21d1c967
GD
20850acfindx:
20851 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 20852_ACEOF
21d1c967
GD
20853 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20855 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20856 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20857 for ac_extension in a so sl; do
20858 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 20859 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
20860 ac_im_usrlibdir=$ac_im_libdir; break
20861 fi
20862 done
20863 # Screen out bogus values from the imake configuration. They are
20864 # bogus both because they are the default anyway, and because
20865 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 20866 case $ac_im_incroot in
21d1c967 20867 /usr/include) ;;
e6cc62c6 20868 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 20869 esac
e6cc62c6 20870 case $ac_im_usrlibdir in
21d1c967 20871 /usr/lib | /lib) ;;
e6cc62c6 20872 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
20873 esac
20874 fi
20875 cd ..
e6cc62c6 20876 rm -fr conftest.dir
21d1c967 20877fi
10f2d63a 20878
e6cc62c6
VS
20879# Standard set of common directories for X headers.
20880# Check X11 before X11Rn because it is often a symlink to the current release.
20881ac_x_header_dirs='
20882/usr/X11/include
20883/usr/X11R6/include
20884/usr/X11R5/include
20885/usr/X11R4/include
20886
20887/usr/include/X11
20888/usr/include/X11R6
20889/usr/include/X11R5
20890/usr/include/X11R4
20891
20892/usr/local/X11/include
20893/usr/local/X11R6/include
20894/usr/local/X11R5/include
20895/usr/local/X11R4/include
20896
20897/usr/local/include/X11
20898/usr/local/include/X11R6
20899/usr/local/include/X11R5
20900/usr/local/include/X11R4
20901
20902/usr/X386/include
20903/usr/x386/include
20904/usr/XFree86/include/X11
20905
20906/usr/include
20907/usr/local/include
20908/usr/unsupported/include
20909/usr/athena/include
20910/usr/local/x11r5/include
20911/usr/lpp/Xamples/include
20912
20913/usr/openwin/include
20914/usr/openwin/share/include'
20915
20916if test "$ac_x_includes" = no; then
20917 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 20918 # First, try using that file with no special directory specified.
e6cc62c6
VS
20919 cat >conftest.$ac_ext <<_ACEOF
20920#line $LINENO "configure"
20921/* confdefs.h. */
20922_ACEOF
20923cat confdefs.h >>conftest.$ac_ext
20924cat >>conftest.$ac_ext <<_ACEOF
20925/* end confdefs.h. */
20926#include <X11/Intrinsic.h>
20927_ACEOF
20928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } >/dev/null; then
20936 if test -s conftest.err; then
20937 ac_cpp_err=$ac_c_preproc_warn_flag
20938 else
20939 ac_cpp_err=
20940 fi
20941else
20942 ac_cpp_err=yes
20943fi
20944if test -z "$ac_cpp_err"; then
21d1c967
GD
20945 # We can compile using X headers with no special include directory.
20946ac_x_includes=
90dd450c 20947else
e6cc62c6
VS
20948 echo "$as_me: failed program was:" >&5
20949sed 's/^/| /' conftest.$ac_ext >&5
20950
20951 for ac_dir in $ac_x_header_dirs; do
20952 if test -r "$ac_dir/X11/Intrinsic.h"; then
20953 ac_x_includes=$ac_dir
20954 break
20955 fi
20956done
3a922bb4 20957fi
e6cc62c6
VS
20958rm -f conftest.err conftest.$ac_ext
20959fi # $ac_x_includes = no
10f2d63a 20960
e6cc62c6 20961if test "$ac_x_libraries" = no; then
21d1c967 20962 # Check for the libraries.
21d1c967
GD
20963 # See if we find them without any special options.
20964 # Don't add to $LIBS permanently.
e6cc62c6
VS
20965 ac_save_LIBS=$LIBS
20966 LIBS="-lXt $LIBS"
20967 cat >conftest.$ac_ext <<_ACEOF
20968#line $LINENO "configure"
20969/* confdefs.h. */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h. */
20974#include <X11/Intrinsic.h>
20975int
20976main ()
20977{
20978XtMalloc (0)
20979 ;
20980 return 0;
20981}
20982_ACEOF
20983rm -f conftest.$ac_objext conftest$ac_exeext
20984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20985 (eval $ac_link) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -s conftest$ac_exeext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 LIBS=$ac_save_LIBS
21d1c967
GD
20996# We can link X programs with no special library path.
20997ac_x_libraries=
3a922bb4 20998else
e6cc62c6
VS
20999 echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002LIBS=$ac_save_LIBS
21003for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21004do
e6cc62c6 21005 # Don't even attempt the hair of trying to link an X program!
21d1c967 21006 for ac_extension in a so sl; do
e6cc62c6 21007 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21008 ac_x_libraries=$ac_dir
21009 break 2
21010 fi
21011 done
21012done
3a922bb4 21013fi
e6cc62c6
VS
21014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21015fi # $ac_x_libraries = no
90dd450c 21016
e6cc62c6 21017if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21018 # Didn't find X anywhere. Cache the known absence of X.
21019 ac_cv_have_x="have_x=no"
21020else
21021 # Record where we found X for the cache.
21022 ac_cv_have_x="have_x=yes \
21023 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21024fi
21d1c967 21025fi
e6cc62c6 21026
21d1c967
GD
21027 fi
21028 eval "$ac_cv_have_x"
21029fi # $with_x != no
90dd450c 21030
21d1c967 21031if test "$have_x" != yes; then
e6cc62c6
VS
21032 echo "$as_me:$LINENO: result: $have_x" >&5
21033echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21034 no_x=yes
21035else
21036 # If each of the values was on the command line, it overrides each guess.
21037 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21038 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21039 # Update the cache value to reflect the command line values.
21040 ac_cv_have_x="have_x=yes \
21041 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21042 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21043echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21044fi
90dd450c 21045
21d1c967 21046if test "$no_x" = yes; then
90dd450c 21047 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21048
21049cat >>confdefs.h <<\_ACEOF
90dd450c 21050#define X_DISPLAY_MISSING 1
e6cc62c6 21051_ACEOF
90dd450c
VZ
21052
21053 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21054else
21055 if test -n "$x_includes"; then
21056 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21057 fi
3a922bb4 21058
90dd450c
VZ
21059 # It would also be nice to do this for all -L options, not just this one.
21060 if test -n "$x_libraries"; then
21061 X_LIBS="$X_LIBS -L$x_libraries"
21062 # For Solaris; some versions of Sun CC require a space after -R and
21063 # others require no space. Words are not sufficient . . . .
e6cc62c6 21064 case `(uname -sr) 2>/dev/null` in
90dd450c 21065 "SunOS 5"*)
e6cc62c6
VS
21066 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21067echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21068 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21069 cat >conftest.$ac_ext <<_ACEOF
21070#line $LINENO "configure"
21071/* confdefs.h. */
21072_ACEOF
21073cat confdefs.h >>conftest.$ac_ext
21074cat >>conftest.$ac_ext <<_ACEOF
21075/* end confdefs.h. */
21076
21077int
21078main ()
21079{
90dd450c 21080
e6cc62c6
VS
21081 ;
21082 return 0;
21083}
21084_ACEOF
21085rm -f conftest.$ac_objext conftest$ac_exeext
21086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21087 (eval $ac_link) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -s conftest$ac_exeext'
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
90dd450c 21097 ac_R_nospace=yes
3a922bb4 21098else
e6cc62c6
VS
21099 echo "$as_me: failed program was:" >&5
21100sed 's/^/| /' conftest.$ac_ext >&5
21101
21102ac_R_nospace=no
3a922bb4 21103fi
e6cc62c6 21104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21105 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21106 echo "$as_me:$LINENO: result: no" >&5
21107echo "${ECHO_T}no" >&6
90dd450c
VZ
21108 X_LIBS="$X_LIBS -R$x_libraries"
21109 else
21110 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21111 cat >conftest.$ac_ext <<_ACEOF
21112#line $LINENO "configure"
21113/* confdefs.h. */
21114_ACEOF
21115cat confdefs.h >>conftest.$ac_ext
21116cat >>conftest.$ac_ext <<_ACEOF
21117/* end confdefs.h. */
21118
21119int
21120main ()
21121{
6f754473 21122
e6cc62c6
VS
21123 ;
21124 return 0;
21125}
21126_ACEOF
21127rm -f conftest.$ac_objext conftest$ac_exeext
21128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21129 (eval $ac_link) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } &&
21133 { ac_try='test -s conftest$ac_exeext'
21134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
90dd450c
VZ
21139 ac_R_space=yes
21140else
e6cc62c6
VS
21141 echo "$as_me: failed program was:" >&5
21142sed 's/^/| /' conftest.$ac_ext >&5
21143
21144ac_R_space=no
90dd450c 21145fi
e6cc62c6 21146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21147 if test $ac_R_space = yes; then
e6cc62c6
VS
21148 echo "$as_me:$LINENO: result: yes" >&5
21149echo "${ECHO_T}yes" >&6
90dd450c
VZ
21150 X_LIBS="$X_LIBS -R $x_libraries"
21151 else
e6cc62c6
VS
21152 echo "$as_me:$LINENO: result: neither works" >&5
21153echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21154 fi
21155 fi
e6cc62c6 21156 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21157 esac
21158 fi
21159
21160 # Check for system-dependent libraries X programs must link with.
21161 # Do this before checking for the system-independent R6 libraries
21162 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21163
90dd450c
VZ
21164 if test "$ISC" = yes; then
21165 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21166 else
e6cc62c6
VS
21167 # Martyn Johnson says this is needed for Ultrix, if the X
21168 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21169 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21170 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21171 cat >conftest.$ac_ext <<_ACEOF
21172#line $LINENO "configure"
21173/* confdefs.h. */
21174_ACEOF
21175cat confdefs.h >>conftest.$ac_ext
21176cat >>conftest.$ac_ext <<_ACEOF
21177/* end confdefs.h. */
21178
247f5006 21179/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21180#ifdef __cplusplus
21181extern "C"
21182#endif
247f5006 21183/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21184 builtin and then its argument prototype would still apply. */
21185char XOpenDisplay ();
21186int
21187main ()
21188{
21189XOpenDisplay ();
21190 ;
21191 return 0;
21192}
21193_ACEOF
21194rm -f conftest.$ac_objext conftest$ac_exeext
21195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21196 (eval $ac_link) 2>&5
21197 ac_status=$?
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } &&
21200 { ac_try='test -s conftest$ac_exeext'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
21206 :
21207else
21208 echo "$as_me: failed program was:" >&5
21209sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21210
e6cc62c6
VS
21211echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21212echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21213if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21215else
e6cc62c6
VS
21216 ac_check_lib_save_LIBS=$LIBS
21217LIBS="-ldnet $LIBS"
21218cat >conftest.$ac_ext <<_ACEOF
21219#line $LINENO "configure"
21220/* confdefs.h. */
21221_ACEOF
21222cat confdefs.h >>conftest.$ac_ext
21223cat >>conftest.$ac_ext <<_ACEOF
21224/* end confdefs.h. */
a0b9e27f 21225
e6cc62c6
VS
21226/* Override any gcc2 internal prototype to avoid an error. */
21227#ifdef __cplusplus
21228extern "C"
21229#endif
21230/* We use char because int might match the return type of a gcc2
21231 builtin and then its argument prototype would still apply. */
21232char dnet_ntoa ();
21233int
21234main ()
21235{
21236dnet_ntoa ();
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_dnet_dnet_ntoa=yes
21254else
21255 echo "$as_me: failed program was:" >&5
21256sed 's/^/| /' conftest.$ac_ext >&5
21257
21258ac_cv_lib_dnet_dnet_ntoa=no
21259fi
21260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21261LIBS=$ac_check_lib_save_LIBS
21262fi
21263echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21264echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21265if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21266 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21267fi
21268
90dd450c 21269 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21270 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21271echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21272if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21274else
e6cc62c6 21275 ac_check_lib_save_LIBS=$LIBS
90dd450c 21276LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21277cat >conftest.$ac_ext <<_ACEOF
21278#line $LINENO "configure"
21279/* confdefs.h. */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h. */
21284
90dd450c 21285/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21286#ifdef __cplusplus
21287extern "C"
21288#endif
90dd450c 21289/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21290 builtin and then its argument prototype would still apply. */
21291char dnet_ntoa ();
21292int
21293main ()
21294{
21295dnet_ntoa ();
21296 ;
21297 return 0;
21298}
21299_ACEOF
21300rm -f conftest.$ac_objext conftest$ac_exeext
21301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21302 (eval $ac_link) 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -s conftest$ac_exeext'
21307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308 (eval $ac_try) 2>&5
21309 ac_status=$?
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); }; }; then
21312 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21313else
21314 echo "$as_me: failed program was:" >&5
21315sed 's/^/| /' conftest.$ac_ext >&5
21316
21317ac_cv_lib_dnet_stub_dnet_ntoa=no
21318fi
21319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21320LIBS=$ac_check_lib_save_LIBS
21321fi
21322echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21323echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21324if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21325 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21326fi
21327
90dd450c 21328 fi
e6cc62c6
VS
21329fi
21330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21331 LIBS="$ac_xsave_LIBS"
978f1259 21332
90dd450c
VZ
21333 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21334 # to get the SysV transport functions.
e6cc62c6 21335 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21336 # needs -lnsl.
21337 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21338 # on Irix 5.2, according to T.E. Dickey.
21339 # The functions gethostbyname, getservbyname, and inet_addr are
21340 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21341 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21342echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21343if test "${ac_cv_func_gethostbyname+set}" = set; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21345else
21346 cat >conftest.$ac_ext <<_ACEOF
21347#line $LINENO "configure"
21348/* confdefs.h. */
21349_ACEOF
21350cat confdefs.h >>conftest.$ac_ext
21351cat >>conftest.$ac_ext <<_ACEOF
21352/* end confdefs.h. */
90dd450c 21353/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21354 which can conflict with char gethostbyname (); below.
21355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21356 <limits.h> exists even on freestanding compilers. */
21357#ifdef __STDC__
21358# include <limits.h>
21359#else
21360# include <assert.h>
21361#endif
90dd450c 21362/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21363#ifdef __cplusplus
21364extern "C"
21365{
21366#endif
90dd450c 21367/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21368 builtin and then its argument prototype would still apply. */
21369char gethostbyname ();
90dd450c
VZ
21370/* The GNU C library defines this for functions which it implements
21371 to always fail with ENOSYS. Some functions are actually named
21372 something starting with __ and the normal name is an alias. */
21373#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21374choke me
21375#else
e6cc62c6
VS
21376char (*f) () = gethostbyname;
21377#endif
21378#ifdef __cplusplus
21379}
90dd450c 21380#endif
978f1259 21381
e6cc62c6
VS
21382int
21383main ()
21384{
21385return f != gethostbyname;
21386 ;
21387 return 0;
21388}
21389_ACEOF
21390rm -f conftest.$ac_objext conftest$ac_exeext
21391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21392 (eval $ac_link) 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } &&
21396 { ac_try='test -s conftest$ac_exeext'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21399 ac_status=$?
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; }; then
21402 ac_cv_func_gethostbyname=yes
21403else
21404 echo "$as_me: failed program was:" >&5
21405sed 's/^/| /' conftest.$ac_ext >&5
21406
21407ac_cv_func_gethostbyname=no
21408fi
21409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21410fi
21411echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21412echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21413
90dd450c 21414 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21415 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21416echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21417if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21419else
e6cc62c6 21420 ac_check_lib_save_LIBS=$LIBS
90dd450c 21421LIBS="-lnsl $LIBS"
e6cc62c6
VS
21422cat >conftest.$ac_ext <<_ACEOF
21423#line $LINENO "configure"
21424/* confdefs.h. */
21425_ACEOF
21426cat confdefs.h >>conftest.$ac_ext
21427cat >>conftest.$ac_ext <<_ACEOF
21428/* end confdefs.h. */
21429
90dd450c 21430/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21431#ifdef __cplusplus
21432extern "C"
21433#endif
90dd450c 21434/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21435 builtin and then its argument prototype would still apply. */
21436char gethostbyname ();
21437int
21438main ()
21439{
21440gethostbyname ();
21441 ;
21442 return 0;
21443}
21444_ACEOF
21445rm -f conftest.$ac_objext conftest$ac_exeext
21446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21447 (eval $ac_link) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } &&
21451 { ac_try='test -s conftest$ac_exeext'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_lib_nsl_gethostbyname=yes
21458else
21459 echo "$as_me: failed program was:" >&5
21460sed 's/^/| /' conftest.$ac_ext >&5
21461
21462ac_cv_lib_nsl_gethostbyname=no
21463fi
21464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21465LIBS=$ac_check_lib_save_LIBS
21466fi
21467echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21468echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21469if test $ac_cv_lib_nsl_gethostbyname = yes; then
21470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21471fi
247f5006 21472
e6cc62c6
VS
21473 if test $ac_cv_lib_nsl_gethostbyname = no; then
21474 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21475echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21476if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21478else
e6cc62c6
VS
21479 ac_check_lib_save_LIBS=$LIBS
21480LIBS="-lbsd $LIBS"
21481cat >conftest.$ac_ext <<_ACEOF
21482#line $LINENO "configure"
21483/* confdefs.h. */
21484_ACEOF
21485cat confdefs.h >>conftest.$ac_ext
21486cat >>conftest.$ac_ext <<_ACEOF
21487/* end confdefs.h. */
21488
21489/* Override any gcc2 internal prototype to avoid an error. */
21490#ifdef __cplusplus
21491extern "C"
21492#endif
21493/* We use char because int might match the return type of a gcc2
21494 builtin and then its argument prototype would still apply. */
21495char gethostbyname ();
21496int
21497main ()
21498{
21499gethostbyname ();
21500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext conftest$ac_exeext
21505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506 (eval $ac_link) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -s conftest$ac_exeext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 ac_cv_lib_bsd_gethostbyname=yes
21517else
21518 echo "$as_me: failed program was:" >&5
21519sed 's/^/| /' conftest.$ac_ext >&5
21520
21521ac_cv_lib_bsd_gethostbyname=no
21522fi
21523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21524LIBS=$ac_check_lib_save_LIBS
21525fi
21526echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21527echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21528if test $ac_cv_lib_bsd_gethostbyname = yes; then
21529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21530fi
b12915c1 21531
e6cc62c6 21532 fi
90dd450c
VZ
21533 fi
21534
21535 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21536 # socket/setsockopt and other routines are undefined under SCO ODT
21537 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21538 # on later versions), says Simon Leinen: it contains gethostby*
21539 # variants that don't use the name server (or something). -lsocket
21540 # must be given before -lnsl if both are needed. We assume that
21541 # if connect needs -lnsl, so does gethostbyname.
21542 echo "$as_me:$LINENO: checking for connect" >&5
21543echo $ECHO_N "checking for connect... $ECHO_C" >&6
21544if test "${ac_cv_func_connect+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21546else
21547 cat >conftest.$ac_ext <<_ACEOF
21548#line $LINENO "configure"
21549/* confdefs.h. */
21550_ACEOF
21551cat confdefs.h >>conftest.$ac_ext
21552cat >>conftest.$ac_ext <<_ACEOF
21553/* end confdefs.h. */
90dd450c 21554/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21555 which can conflict with char connect (); below.
21556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21557 <limits.h> exists even on freestanding compilers. */
21558#ifdef __STDC__
21559# include <limits.h>
21560#else
21561# include <assert.h>
21562#endif
90dd450c 21563/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21564#ifdef __cplusplus
21565extern "C"
21566{
21567#endif
90dd450c 21568/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21569 builtin and then its argument prototype would still apply. */
21570char connect ();
90dd450c
VZ
21571/* The GNU C library defines this for functions which it implements
21572 to always fail with ENOSYS. Some functions are actually named
21573 something starting with __ and the normal name is an alias. */
21574#if defined (__stub_connect) || defined (__stub___connect)
21575choke me
21576#else
e6cc62c6
VS
21577char (*f) () = connect;
21578#endif
21579#ifdef __cplusplus
21580}
90dd450c
VZ
21581#endif
21582
e6cc62c6
VS
21583int
21584main ()
21585{
21586return f != connect;
21587 ;
21588 return 0;
21589}
21590_ACEOF
21591rm -f conftest.$ac_objext conftest$ac_exeext
21592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21593 (eval $ac_link) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
21597 { ac_try='test -s conftest$ac_exeext'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 ac_cv_func_connect=yes
21604else
21605 echo "$as_me: failed program was:" >&5
21606sed 's/^/| /' conftest.$ac_ext >&5
21607
21608ac_cv_func_connect=no
21609fi
21610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21611fi
21612echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21613echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21614
90dd450c 21615 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21616 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21617echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21618if test "${ac_cv_lib_socket_connect+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21620else
e6cc62c6 21621 ac_check_lib_save_LIBS=$LIBS
90dd450c 21622LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21623cat >conftest.$ac_ext <<_ACEOF
21624#line $LINENO "configure"
21625/* confdefs.h. */
21626_ACEOF
21627cat confdefs.h >>conftest.$ac_ext
21628cat >>conftest.$ac_ext <<_ACEOF
21629/* end confdefs.h. */
21630
90dd450c 21631/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21632#ifdef __cplusplus
21633extern "C"
21634#endif
90dd450c 21635/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21636 builtin and then its argument prototype would still apply. */
21637char connect ();
21638int
21639main ()
21640{
21641connect ();
21642 ;
21643 return 0;
21644}
21645_ACEOF
21646rm -f conftest.$ac_objext conftest$ac_exeext
21647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648 (eval $ac_link) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -s conftest$ac_exeext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_cv_lib_socket_connect=yes
21659else
21660 echo "$as_me: failed program was:" >&5
21661sed 's/^/| /' conftest.$ac_ext >&5
21662
21663ac_cv_lib_socket_connect=no
21664fi
21665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21666LIBS=$ac_check_lib_save_LIBS
21667fi
21668echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21669echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21670if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21671 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21672fi
77e13408 21673
90dd450c 21674 fi
25d0687a 21675
e6cc62c6
VS
21676 # Guillermo Gomez says -lposix is necessary on A/UX.
21677 echo "$as_me:$LINENO: checking for remove" >&5
21678echo $ECHO_N "checking for remove... $ECHO_C" >&6
21679if test "${ac_cv_func_remove+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681else
21682 cat >conftest.$ac_ext <<_ACEOF
21683#line $LINENO "configure"
21684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
90dd450c 21689/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21690 which can conflict with char remove (); below.
21691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692 <limits.h> exists even on freestanding compilers. */
21693#ifdef __STDC__
21694# include <limits.h>
21695#else
21696# include <assert.h>
21697#endif
90dd450c 21698/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21699#ifdef __cplusplus
21700extern "C"
21701{
21702#endif
90dd450c 21703/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21704 builtin and then its argument prototype would still apply. */
21705char remove ();
90dd450c
VZ
21706/* The GNU C library defines this for functions which it implements
21707 to always fail with ENOSYS. Some functions are actually named
21708 something starting with __ and the normal name is an alias. */
21709#if defined (__stub_remove) || defined (__stub___remove)
21710choke me
21711#else
e6cc62c6
VS
21712char (*f) () = remove;
21713#endif
21714#ifdef __cplusplus
21715}
90dd450c 21716#endif
55e80573 21717
e6cc62c6
VS
21718int
21719main ()
21720{
21721return f != remove;
21722 ;
21723 return 0;
21724}
21725_ACEOF
21726rm -f conftest.$ac_objext conftest$ac_exeext
21727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21728 (eval $ac_link) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try='test -s conftest$ac_exeext'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 ac_cv_func_remove=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743ac_cv_func_remove=no
21744fi
21745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21746fi
21747echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21748echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21749
90dd450c 21750 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
21751 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21752echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21753if test "${ac_cv_lib_posix_remove+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21755else
e6cc62c6 21756 ac_check_lib_save_LIBS=$LIBS
90dd450c 21757LIBS="-lposix $LIBS"
e6cc62c6
VS
21758cat >conftest.$ac_ext <<_ACEOF
21759#line $LINENO "configure"
21760/* confdefs.h. */
21761_ACEOF
21762cat confdefs.h >>conftest.$ac_ext
21763cat >>conftest.$ac_ext <<_ACEOF
21764/* end confdefs.h. */
21765
90dd450c 21766/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21767#ifdef __cplusplus
21768extern "C"
21769#endif
90dd450c 21770/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21771 builtin and then its argument prototype would still apply. */
21772char remove ();
21773int
21774main ()
21775{
21776remove ();
21777 ;
21778 return 0;
21779}
21780_ACEOF
21781rm -f conftest.$ac_objext conftest$ac_exeext
21782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21783 (eval $ac_link) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); } &&
21787 { ac_try='test -s conftest$ac_exeext'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; }; then
21793 ac_cv_lib_posix_remove=yes
21794else
21795 echo "$as_me: failed program was:" >&5
21796sed 's/^/| /' conftest.$ac_ext >&5
21797
21798ac_cv_lib_posix_remove=no
21799fi
21800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21801LIBS=$ac_check_lib_save_LIBS
21802fi
21803echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21804echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21805if test $ac_cv_lib_posix_remove = yes; then
90dd450c 21806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 21807fi
f6bcfd97 21808
6fa882bd
RR
21809 fi
21810
90dd450c 21811 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
21812 echo "$as_me:$LINENO: checking for shmat" >&5
21813echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21814if test "${ac_cv_func_shmat+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816else
21817 cat >conftest.$ac_ext <<_ACEOF
21818#line $LINENO "configure"
21819/* confdefs.h. */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
21823/* end confdefs.h. */
90dd450c 21824/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21825 which can conflict with char shmat (); below.
21826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21827 <limits.h> exists even on freestanding compilers. */
21828#ifdef __STDC__
21829# include <limits.h>
21830#else
21831# include <assert.h>
21832#endif
90dd450c 21833/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21834#ifdef __cplusplus
21835extern "C"
21836{
21837#endif
90dd450c 21838/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21839 builtin and then its argument prototype would still apply. */
21840char shmat ();
90dd450c
VZ
21841/* The GNU C library defines this for functions which it implements
21842 to always fail with ENOSYS. Some functions are actually named
21843 something starting with __ and the normal name is an alias. */
21844#if defined (__stub_shmat) || defined (__stub___shmat)
21845choke me
21846#else
e6cc62c6
VS
21847char (*f) () = shmat;
21848#endif
21849#ifdef __cplusplus
21850}
90dd450c 21851#endif
10f2d63a 21852
e6cc62c6
VS
21853int
21854main ()
21855{
21856return f != shmat;
21857 ;
21858 return 0;
21859}
21860_ACEOF
21861rm -f conftest.$ac_objext conftest$ac_exeext
21862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863 (eval $ac_link) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } &&
21867 { ac_try='test -s conftest$ac_exeext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 ac_cv_func_shmat=yes
21874else
21875 echo "$as_me: failed program was:" >&5
21876sed 's/^/| /' conftest.$ac_ext >&5
21877
21878ac_cv_func_shmat=no
21879fi
21880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21881fi
21882echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21883echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 21884
90dd450c 21885 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
21886 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21887echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21888if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 21890else
e6cc62c6 21891 ac_check_lib_save_LIBS=$LIBS
90dd450c 21892LIBS="-lipc $LIBS"
e6cc62c6
VS
21893cat >conftest.$ac_ext <<_ACEOF
21894#line $LINENO "configure"
21895/* confdefs.h. */
21896_ACEOF
21897cat confdefs.h >>conftest.$ac_ext
21898cat >>conftest.$ac_ext <<_ACEOF
21899/* end confdefs.h. */
21900
8284b0c5 21901/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21902#ifdef __cplusplus
21903extern "C"
21904#endif
90dd450c 21905/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21906 builtin and then its argument prototype would still apply. */
21907char shmat ();
21908int
21909main ()
21910{
21911shmat ();
21912 ;
21913 return 0;
21914}
21915_ACEOF
21916rm -f conftest.$ac_objext conftest$ac_exeext
21917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918 (eval $ac_link) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } &&
21922 { ac_try='test -s conftest$ac_exeext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 ac_cv_lib_ipc_shmat=yes
21929else
21930 echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
21933ac_cv_lib_ipc_shmat=no
21934fi
21935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21936LIBS=$ac_check_lib_save_LIBS
21937fi
21938echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21939echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21940if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 21941 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
21942fi
21943
d558c907 21944 fi
90dd450c 21945 fi
3a922bb4 21946
90dd450c 21947 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 21948 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
21949 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21950 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21951 # check for ICE first), but we must link in the order -lSM -lICE or
21952 # we get undefined symbols. So assume we have SM if we have ICE.
21953 # These have to be linked with before -lX11, unlike the other
21954 # libraries we check for below, so use a different variable.
e6cc62c6
VS
21955 # John Interrante, Karl Berry
21956 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21957echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21958if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21960else
21961 ac_check_lib_save_LIBS=$LIBS
f09359cf 21962LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21963cat >conftest.$ac_ext <<_ACEOF
21964#line $LINENO "configure"
21965/* confdefs.h. */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
21969/* end confdefs.h. */
21970
90dd450c 21971/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21972#ifdef __cplusplus
21973extern "C"
21974#endif
90dd450c 21975/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21976 builtin and then its argument prototype would still apply. */
21977char IceConnectionNumber ();
21978int
21979main ()
21980{
21981IceConnectionNumber ();
21982 ;
21983 return 0;
21984}
21985_ACEOF
21986rm -f conftest.$ac_objext conftest$ac_exeext
21987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21988 (eval $ac_link) 2>&5
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
21992 { ac_try='test -s conftest$ac_exeext'
21993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21995 ac_status=$?
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; }; then
21998 ac_cv_lib_ICE_IceConnectionNumber=yes
21999else
22000 echo "$as_me: failed program was:" >&5
22001sed 's/^/| /' conftest.$ac_ext >&5
22002
22003ac_cv_lib_ICE_IceConnectionNumber=no
22004fi
22005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22006LIBS=$ac_check_lib_save_LIBS
22007fi
22008echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22009echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22010if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22011 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22012fi
10f2d63a 22013
e6cc62c6 22014 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22015
22016fi
22017
8284b0c5 22018
90dd450c 22019 if test "$no_x" = "yes"; then
e6cc62c6
VS
22020 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22021echo "$as_me: error: X11 not found" >&2;}
22022 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22023 fi
22024
22025 GUI_TK_LIBRARY="$X_LIBS"
22026 TOOLKIT_INCLUDE="$X_CFLAGS"
22027 AFMINSTALL=afminstall
22028 COMPILED_X_PROGRAM=0
22029
21d1c967 22030 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22031 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22032echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22033 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22034 echo "$as_me:$LINENO: result: not found" >&5
22035echo "${ECHO_T}not found" >&6
22036 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22037echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22038 { (exit 1); exit 1; }; }
90dd450c 22039 else
e6cc62c6
VS
22040 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22041echo "${ECHO_T}$MICROWIN" >&6
22042 cat >>confdefs.h <<\_ACEOF
21d1c967 22043#define wxUSE_NANOX 1
e6cc62c6 22044_ACEOF
21d1c967 22045
90dd450c
VZ
22046 fi
22047 fi
22048
22049 xpm_link=
e6cc62c6
VS
22050 echo "$as_me:$LINENO: checking for Xpm library" >&5
22051echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22052
90dd450c 22053ac_find_libraries=
2b5f62a0 22054for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22055 do
22056 for ac_extension in a so sl dylib; do
22057 if test -f "$ac_dir/libXpm.$ac_extension"; then
22058 ac_find_libraries=$ac_dir
22059 break 2
22060 fi
22061 done
22062 done
22063
22064 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22065
90dd450c
VZ
22066 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22067 result=$?
22068 if test $result = 0; then
22069 ac_path_to_link=""
22070 else
22071 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22072 fi
90dd450c 22073
21d1c967
GD
22074 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22075 xpm_link=" -lXpm"
e6cc62c6 22076 cat >>confdefs.h <<\_ACEOF
21d1c967 22077#define wxHAVE_LIB_XPM 1
e6cc62c6 22078_ACEOF
90dd450c 22079
e6cc62c6
VS
22080 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22081echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22082 else
e6cc62c6
VS
22083 cat >conftest.$ac_ext <<_ACEOF
22084#line $LINENO "configure"
22085/* confdefs.h. */
22086_ACEOF
22087cat confdefs.h >>conftest.$ac_ext
22088cat >>conftest.$ac_ext <<_ACEOF
22089/* end confdefs.h. */
90dd450c 22090
21d1c967 22091 #include <X11/xpm.h>
e6cc62c6
VS
22092
22093int
22094main ()
22095{
6f72b082 22096
21d1c967
GD
22097 int version;
22098 version = XpmLibraryVersion();
e6cc62c6
VS
22099
22100 ;
22101 return 0;
22102}
22103_ACEOF
22104rm -f conftest.$ac_objext
22105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22106 (eval $ac_compile) 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
22110 { ac_try='test -s conftest.$ac_objext'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; }; then
22116
21d1c967 22117 xpm_link=" -lXpm"
e6cc62c6 22118 cat >>confdefs.h <<\_ACEOF
21d1c967 22119#define wxHAVE_LIB_XPM 1
e6cc62c6 22120_ACEOF
90dd450c 22121
e6cc62c6
VS
22122 echo "$as_me:$LINENO: result: found in default search path" >&5
22123echo "${ECHO_T}found in default search path" >&6
21d1c967 22124 COMPILED_X_PROGRAM=0
e6cc62c6 22125
21d1c967 22126else
e6cc62c6
VS
22127 echo "$as_me: failed program was:" >&5
22128sed 's/^/| /' conftest.$ac_ext >&5
22129
22130
22131 echo "$as_me:$LINENO: result: no" >&5
22132echo "${ECHO_T}no" >&6
22133 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22134echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22135
22136
6f72b082 22137fi
e6cc62c6 22138rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22139 fi
90dd450c 22140
e6cc62c6
VS
22141 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22142echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22143if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22144 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22145else
e6cc62c6 22146 ac_check_lib_save_LIBS=$LIBS
f7f78039 22147LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22148cat >conftest.$ac_ext <<_ACEOF
22149#line $LINENO "configure"
22150/* confdefs.h. */
22151_ACEOF
22152cat confdefs.h >>conftest.$ac_ext
22153cat >>conftest.$ac_ext <<_ACEOF
22154/* end confdefs.h. */
22155
f7f78039 22156/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22157#ifdef __cplusplus
22158extern "C"
22159#endif
f7f78039 22160/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22161 builtin and then its argument prototype would still apply. */
22162char XShapeQueryExtension ();
22163int
22164main ()
22165{
22166XShapeQueryExtension ();
22167 ;
22168 return 0;
22169}
22170_ACEOF
22171rm -f conftest.$ac_objext conftest$ac_exeext
22172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22173 (eval $ac_link) 2>&5
22174 ac_status=$?
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } &&
22177 { ac_try='test -s conftest$ac_exeext'
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; }; then
22183 ac_cv_lib_Xext_XShapeQueryExtension=yes
22184else
22185 echo "$as_me: failed program was:" >&5
22186sed 's/^/| /' conftest.$ac_ext >&5
22187
22188ac_cv_lib_Xext_XShapeQueryExtension=no
22189fi
22190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22191LIBS=$ac_check_lib_save_LIBS
22192fi
22193echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22194echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22195if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22196
f7f78039
MB
22197 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22198 wxHAVE_XEXT_LIB=1
e6cc62c6 22199
f7f78039
MB
22200fi
22201
22202
2b5f62a0 22203 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22204
2b5f62a0 22205 succeeded=no
90dd450c 22206
2b5f62a0
VZ
22207 if test -z "$PKG_CONFIG"; then
22208 # Extract the first word of "pkg-config", so it can be a program name with args.
22209set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22210echo "$as_me:$LINENO: checking for $ac_word" >&5
22211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22212if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22214else
e6cc62c6
VS
22215 case $PKG_CONFIG in
22216 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22217 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22218 ;;
2b5f62a0 22219 *)
e6cc62c6
VS
22220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221for as_dir in $PATH
22222do
22223 IFS=$as_save_IFS
22224 test -z "$as_dir" && as_dir=.
22225 for ac_exec_ext in '' $ac_executable_extensions; do
22226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22229 break 2
22230 fi
22231done
22232done
22233
2b5f62a0
VZ
22234 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22235 ;;
22236esac
22237fi
e6cc62c6
VS
22238PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22239
2b5f62a0 22240if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22241 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22242echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22243else
e6cc62c6
VS
22244 echo "$as_me:$LINENO: result: no" >&5
22245echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22246fi
22247
22248 fi
22249
22250 if test "$PKG_CONFIG" = "no" ; then
22251 echo "*** The pkg-config script could not be found. Make sure it is"
22252 echo "*** in your path, or set the PKG_CONFIG environment variable"
22253 echo "*** to the full path to pkg-config."
22254 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22255 else
22256 PKG_CONFIG_MIN_VERSION=0.9.0
22257 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22258 echo "$as_me:$LINENO: checking for pangox" >&5
22259echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22260
22261 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22262 echo "$as_me:$LINENO: result: yes" >&5
22263echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22264 succeeded=yes
22265
e6cc62c6
VS
22266 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22267echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22268 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22269 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22270echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22271
e6cc62c6
VS
22272 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22273echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22274 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22275 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22276echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22277 else
22278 PANGOX_CFLAGS=""
22279 PANGOX_LIBS=""
e6cc62c6 22280 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22281 ## do set a variable so people can do so.
22282 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22283
2b5f62a0
VZ
22284 fi
22285
e6cc62c6
VS
22286
22287
2b5f62a0
VZ
22288 else
22289 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22290 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22291 fi
22292 fi
22293
22294 if test $succeeded = yes; then
e6cc62c6 22295
2b5f62a0
VZ
22296 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22297 LIBS="$LIBS $PANGOX_LIBS"
e6cc62c6 22298
2b5f62a0 22299 else
e6cc62c6
VS
22300
22301 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22302echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22303 { (exit 1); exit 1; }; }
22304
22305
2b5f62a0
VZ
22306 fi
22307
e6cc62c6 22308
2b5f62a0
VZ
22309 succeeded=no
22310
22311 if test -z "$PKG_CONFIG"; then
22312 # Extract the first word of "pkg-config", so it can be a program name with args.
22313set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22314echo "$as_me:$LINENO: checking for $ac_word" >&5
22315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22316if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22318else
e6cc62c6
VS
22319 case $PKG_CONFIG in
22320 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22322 ;;
2b5f62a0 22323 *)
e6cc62c6
VS
22324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325for as_dir in $PATH
22326do
22327 IFS=$as_save_IFS
22328 test -z "$as_dir" && as_dir=.
22329 for ac_exec_ext in '' $ac_executable_extensions; do
22330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22333 break 2
22334 fi
22335done
22336done
22337
2b5f62a0
VZ
22338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22339 ;;
22340esac
22341fi
e6cc62c6
VS
22342PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22343
2b5f62a0 22344if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22345 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22346echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22347else
e6cc62c6
VS
22348 echo "$as_me:$LINENO: result: no" >&5
22349echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22350fi
22351
22352 fi
22353
22354 if test "$PKG_CONFIG" = "no" ; then
22355 echo "*** The pkg-config script could not be found. Make sure it is"
22356 echo "*** in your path, or set the PKG_CONFIG environment variable"
22357 echo "*** to the full path to pkg-config."
22358 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22359 else
22360 PKG_CONFIG_MIN_VERSION=0.9.0
22361 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22362 echo "$as_me:$LINENO: checking for pangoft2" >&5
22363echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22364
22365 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22366 echo "$as_me:$LINENO: result: yes" >&5
22367echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22368 succeeded=yes
22369
e6cc62c6
VS
22370 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22371echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22372 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22373 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22374echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22375
e6cc62c6
VS
22376 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22377echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22378 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22379 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22380echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22381 else
22382 PANGOFT2_CFLAGS=""
22383 PANGOFT2_LIBS=""
e6cc62c6 22384 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22385 ## do set a variable so people can do so.
22386 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22387
2b5f62a0
VZ
22388 fi
22389
e6cc62c6
VS
22390
22391
2b5f62a0
VZ
22392 else
22393 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22394 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22395 fi
22396 fi
22397
22398 if test $succeeded = yes; then
e6cc62c6 22399
2b5f62a0
VZ
22400 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22401 LIBS="$LIBS $PANGOFT2_LIBS"
e6cc62c6 22402
2b5f62a0 22403 else
e6cc62c6
VS
22404
22405 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22406echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22407 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22408
22409
2b5f62a0
VZ
22410 fi
22411
e6cc62c6 22412
2b5f62a0
VZ
22413 succeeded=no
22414
22415 if test -z "$PKG_CONFIG"; then
22416 # Extract the first word of "pkg-config", so it can be a program name with args.
22417set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22418echo "$as_me:$LINENO: checking for $ac_word" >&5
22419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22420if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22421 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22422else
e6cc62c6
VS
22423 case $PKG_CONFIG in
22424 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22426 ;;
2b5f62a0 22427 *)
e6cc62c6
VS
22428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22429for as_dir in $PATH
22430do
22431 IFS=$as_save_IFS
22432 test -z "$as_dir" && as_dir=.
22433 for ac_exec_ext in '' $ac_executable_extensions; do
22434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22437 break 2
22438 fi
22439done
22440done
22441
2b5f62a0
VZ
22442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22443 ;;
22444esac
22445fi
e6cc62c6
VS
22446PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22447
2b5f62a0 22448if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22449 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22450echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22451else
e6cc62c6
VS
22452 echo "$as_me:$LINENO: result: no" >&5
22453echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22454fi
22455
22456 fi
22457
22458 if test "$PKG_CONFIG" = "no" ; then
22459 echo "*** The pkg-config script could not be found. Make sure it is"
22460 echo "*** in your path, or set the PKG_CONFIG environment variable"
22461 echo "*** to the full path to pkg-config."
22462 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22463 else
22464 PKG_CONFIG_MIN_VERSION=0.9.0
22465 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22466 echo "$as_me:$LINENO: checking for pangoxft" >&5
22467echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22468
22469 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22470 echo "$as_me:$LINENO: result: yes" >&5
22471echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22472 succeeded=yes
22473
e6cc62c6
VS
22474 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22475echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22476 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22477 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22478echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22479
e6cc62c6
VS
22480 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22481echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22482 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22483 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22484echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22485 else
22486 PANGOXFT_CFLAGS=""
22487 PANGOXFT_LIBS=""
e6cc62c6 22488 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22489 ## do set a variable so people can do so.
22490 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22491
2b5f62a0
VZ
22492 fi
22493
e6cc62c6
VS
22494
22495
2b5f62a0
VZ
22496 else
22497 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22498 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22499 fi
22500 fi
22501
22502 if test $succeeded = yes; then
e6cc62c6 22503
2b5f62a0
VZ
22504 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
22505 LIBS="$LIBS $PANGOXFT_LIBS"
e6cc62c6 22506
2b5f62a0 22507 else
e6cc62c6
VS
22508
22509 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22510echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22511
22512
2b5f62a0
VZ
22513 fi
22514
22515 fi
22516
22517 wxUSE_UNIVERSAL="yes"
22518
22519 if test "$wxUSE_NANOX" = "yes"; then
22520 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22521 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 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
2b5f62a0
VZ
22522 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22523 else
22524 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22525 fi
22526
22527 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22528 TOOLKIT=X11
22529 GUIDIST=X11_DIST
22530 fi
22531
21d1c967
GD
22532 if test "$wxUSE_MOTIF" = 1; then
22533 if test "$no_x" = yes; then
22534 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22535
22536cat >>confdefs.h <<\_ACEOF
21d1c967 22537#define X_DISPLAY_MISSING 1
e6cc62c6 22538_ACEOF
21d1c967
GD
22539
22540 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22541else
22542 if test -n "$x_includes"; then
22543 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22544 fi
22545
21d1c967
GD
22546 # It would also be nice to do this for all -L options, not just this one.
22547 if test -n "$x_libraries"; then
22548 X_LIBS="$X_LIBS -L$x_libraries"
22549 # For Solaris; some versions of Sun CC require a space after -R and
22550 # others require no space. Words are not sufficient . . . .
e6cc62c6 22551 case `(uname -sr) 2>/dev/null` in
21d1c967 22552 "SunOS 5"*)
e6cc62c6
VS
22553 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22554echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22555 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22556 cat >conftest.$ac_ext <<_ACEOF
22557#line $LINENO "configure"
22558/* confdefs.h. */
22559_ACEOF
22560cat confdefs.h >>conftest.$ac_ext
22561cat >>conftest.$ac_ext <<_ACEOF
22562/* end confdefs.h. */
22563
22564int
22565main ()
22566{
21d1c967 22567
e6cc62c6
VS
22568 ;
22569 return 0;
22570}
22571_ACEOF
22572rm -f conftest.$ac_objext conftest$ac_exeext
22573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22574 (eval $ac_link) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } &&
22578 { ac_try='test -s conftest$ac_exeext'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
21d1c967 22584 ac_R_nospace=yes
698dcdb6 22585else
e6cc62c6
VS
22586 echo "$as_me: failed program was:" >&5
22587sed 's/^/| /' conftest.$ac_ext >&5
22588
22589ac_R_nospace=no
10f2d63a 22590fi
e6cc62c6 22591rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22592 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22593 echo "$as_me:$LINENO: result: no" >&5
22594echo "${ECHO_T}no" >&6
21d1c967
GD
22595 X_LIBS="$X_LIBS -R$x_libraries"
22596 else
22597 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22598 cat >conftest.$ac_ext <<_ACEOF
22599#line $LINENO "configure"
22600/* confdefs.h. */
22601_ACEOF
22602cat confdefs.h >>conftest.$ac_ext
22603cat >>conftest.$ac_ext <<_ACEOF
22604/* end confdefs.h. */
22605
22606int
22607main ()
22608{
f0c87536 22609
e6cc62c6
VS
22610 ;
22611 return 0;
22612}
22613_ACEOF
22614rm -f conftest.$ac_objext conftest$ac_exeext
22615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22616 (eval $ac_link) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
22620 { ac_try='test -s conftest$ac_exeext'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
21d1c967
GD
22626 ac_R_space=yes
22627else
e6cc62c6
VS
22628 echo "$as_me: failed program was:" >&5
22629sed 's/^/| /' conftest.$ac_ext >&5
22630
22631ac_R_space=no
21d1c967 22632fi
e6cc62c6 22633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22634 if test $ac_R_space = yes; then
e6cc62c6
VS
22635 echo "$as_me:$LINENO: result: yes" >&5
22636echo "${ECHO_T}yes" >&6
21d1c967
GD
22637 X_LIBS="$X_LIBS -R $x_libraries"
22638 else
e6cc62c6
VS
22639 echo "$as_me:$LINENO: result: neither works" >&5
22640echo "${ECHO_T}neither works" >&6
21d1c967
GD
22641 fi
22642 fi
e6cc62c6 22643 LIBS=$ac_xsave_LIBS
21d1c967
GD
22644 esac
22645 fi
90dd450c 22646
21d1c967
GD
22647 # Check for system-dependent libraries X programs must link with.
22648 # Do this before checking for the system-independent R6 libraries
22649 # (-lICE), since we may need -lsocket or whatever for X linking.
22650
22651 if test "$ISC" = yes; then
22652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22653 else
e6cc62c6
VS
22654 # Martyn Johnson says this is needed for Ultrix, if the X
22655 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22656 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22657 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22658 cat >conftest.$ac_ext <<_ACEOF
22659#line $LINENO "configure"
22660/* confdefs.h. */
22661_ACEOF
22662cat confdefs.h >>conftest.$ac_ext
22663cat >>conftest.$ac_ext <<_ACEOF
22664/* end confdefs.h. */
22665
247f5006 22666/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22667#ifdef __cplusplus
22668extern "C"
22669#endif
247f5006 22670/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22671 builtin and then its argument prototype would still apply. */
22672char XOpenDisplay ();
22673int
22674main ()
22675{
22676XOpenDisplay ();
22677 ;
22678 return 0;
22679}
22680_ACEOF
22681rm -f conftest.$ac_objext conftest$ac_exeext
22682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22683 (eval $ac_link) 2>&5
22684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
22687 { ac_try='test -s conftest$ac_exeext'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; }; then
22693 :
22694else
22695 echo "$as_me: failed program was:" >&5
22696sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22697
e6cc62c6
VS
22698echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22699echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22700if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22702else
e6cc62c6
VS
22703 ac_check_lib_save_LIBS=$LIBS
22704LIBS="-ldnet $LIBS"
22705cat >conftest.$ac_ext <<_ACEOF
22706#line $LINENO "configure"
22707/* confdefs.h. */
22708_ACEOF
22709cat confdefs.h >>conftest.$ac_ext
22710cat >>conftest.$ac_ext <<_ACEOF
22711/* end confdefs.h. */
a0b9e27f 22712
e6cc62c6
VS
22713/* Override any gcc2 internal prototype to avoid an error. */
22714#ifdef __cplusplus
22715extern "C"
22716#endif
22717/* We use char because int might match the return type of a gcc2
22718 builtin and then its argument prototype would still apply. */
22719char dnet_ntoa ();
22720int
22721main ()
22722{
22723dnet_ntoa ();
22724 ;
22725 return 0;
22726}
22727_ACEOF
22728rm -f conftest.$ac_objext conftest$ac_exeext
22729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22730 (eval $ac_link) 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } &&
22734 { ac_try='test -s conftest$ac_exeext'
22735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736 (eval $ac_try) 2>&5
22737 ac_status=$?
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); }; }; then
22740 ac_cv_lib_dnet_dnet_ntoa=yes
22741else
22742 echo "$as_me: failed program was:" >&5
22743sed 's/^/| /' conftest.$ac_ext >&5
22744
22745ac_cv_lib_dnet_dnet_ntoa=no
22746fi
22747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22748LIBS=$ac_check_lib_save_LIBS
22749fi
22750echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22751echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22752if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 22753 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 22754fi
0fb0dd83 22755
21d1c967 22756 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22757 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22758echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22759if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22761else
e6cc62c6 22762 ac_check_lib_save_LIBS=$LIBS
21d1c967 22763LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
22764cat >conftest.$ac_ext <<_ACEOF
22765#line $LINENO "configure"
22766/* confdefs.h. */
22767_ACEOF
22768cat confdefs.h >>conftest.$ac_ext
22769cat >>conftest.$ac_ext <<_ACEOF
22770/* end confdefs.h. */
22771
21d1c967 22772/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22773#ifdef __cplusplus
22774extern "C"
22775#endif
21d1c967 22776/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22777 builtin and then its argument prototype would still apply. */
22778char dnet_ntoa ();
22779int
22780main ()
22781{
22782dnet_ntoa ();
22783 ;
22784 return 0;
22785}
22786_ACEOF
22787rm -f conftest.$ac_objext conftest$ac_exeext
22788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22789 (eval $ac_link) 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } &&
22793 { ac_try='test -s conftest$ac_exeext'
22794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795 (eval $ac_try) 2>&5
22796 ac_status=$?
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; }; then
22799 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22800else
22801 echo "$as_me: failed program was:" >&5
22802sed 's/^/| /' conftest.$ac_ext >&5
22803
22804ac_cv_lib_dnet_stub_dnet_ntoa=no
22805fi
22806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22807LIBS=$ac_check_lib_save_LIBS
22808fi
22809echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22810echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22811if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 22812 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
22813fi
22814
21d1c967 22815 fi
e6cc62c6
VS
22816fi
22817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22818 LIBS="$ac_xsave_LIBS"
90dd450c 22819
21d1c967
GD
22820 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22821 # to get the SysV transport functions.
e6cc62c6 22822 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
22823 # needs -lnsl.
22824 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
22825 # on Irix 5.2, according to T.E. Dickey.
22826 # The functions gethostbyname, getservbyname, and inet_addr are
22827 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22828 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22829echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22830if test "${ac_cv_func_gethostbyname+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22832else
22833 cat >conftest.$ac_ext <<_ACEOF
22834#line $LINENO "configure"
22835/* confdefs.h. */
22836_ACEOF
22837cat confdefs.h >>conftest.$ac_ext
22838cat >>conftest.$ac_ext <<_ACEOF
22839/* end confdefs.h. */
21d1c967 22840/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22841 which can conflict with char gethostbyname (); below.
22842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22843 <limits.h> exists even on freestanding compilers. */
22844#ifdef __STDC__
22845# include <limits.h>
22846#else
22847# include <assert.h>
22848#endif
21d1c967 22849/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22850#ifdef __cplusplus
22851extern "C"
22852{
22853#endif
21d1c967 22854/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22855 builtin and then its argument prototype would still apply. */
22856char gethostbyname ();
21d1c967
GD
22857/* The GNU C library defines this for functions which it implements
22858 to always fail with ENOSYS. Some functions are actually named
22859 something starting with __ and the normal name is an alias. */
22860#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22861choke me
22862#else
e6cc62c6
VS
22863char (*f) () = gethostbyname;
22864#endif
22865#ifdef __cplusplus
22866}
21d1c967 22867#endif
90dd450c 22868
e6cc62c6
VS
22869int
22870main ()
22871{
22872return f != gethostbyname;
22873 ;
22874 return 0;
22875}
22876_ACEOF
22877rm -f conftest.$ac_objext conftest$ac_exeext
22878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22879 (eval $ac_link) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } &&
22883 { ac_try='test -s conftest$ac_exeext'
22884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22886 ac_status=$?
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; }; then
22889 ac_cv_func_gethostbyname=yes
22890else
22891 echo "$as_me: failed program was:" >&5
22892sed 's/^/| /' conftest.$ac_ext >&5
22893
22894ac_cv_func_gethostbyname=no
22895fi
22896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22897fi
22898echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22899echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 22900
21d1c967 22901 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22902 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22903echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22904if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22905 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22906else
e6cc62c6 22907 ac_check_lib_save_LIBS=$LIBS
21d1c967 22908LIBS="-lnsl $LIBS"
e6cc62c6
VS
22909cat >conftest.$ac_ext <<_ACEOF
22910#line $LINENO "configure"
22911/* confdefs.h. */
22912_ACEOF
22913cat confdefs.h >>conftest.$ac_ext
22914cat >>conftest.$ac_ext <<_ACEOF
22915/* end confdefs.h. */
22916
21d1c967 22917/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22918#ifdef __cplusplus
22919extern "C"
22920#endif
21d1c967 22921/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22922 builtin and then its argument prototype would still apply. */
22923char gethostbyname ();
22924int
22925main ()
22926{
22927gethostbyname ();
22928 ;
22929 return 0;
22930}
22931_ACEOF
22932rm -f conftest.$ac_objext conftest$ac_exeext
22933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22934 (eval $ac_link) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } &&
22938 { ac_try='test -s conftest$ac_exeext'
22939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; }; then
22944 ac_cv_lib_nsl_gethostbyname=yes
22945else
22946 echo "$as_me: failed program was:" >&5
22947sed 's/^/| /' conftest.$ac_ext >&5
22948
22949ac_cv_lib_nsl_gethostbyname=no
22950fi
22951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22952LIBS=$ac_check_lib_save_LIBS
22953fi
22954echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22955echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22956if test $ac_cv_lib_nsl_gethostbyname = yes; then
22957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22958fi
247f5006 22959
e6cc62c6
VS
22960 if test $ac_cv_lib_nsl_gethostbyname = no; then
22961 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22962echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22963if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22965else
e6cc62c6
VS
22966 ac_check_lib_save_LIBS=$LIBS
22967LIBS="-lbsd $LIBS"
22968cat >conftest.$ac_ext <<_ACEOF
22969#line $LINENO "configure"
22970/* confdefs.h. */
22971_ACEOF
22972cat confdefs.h >>conftest.$ac_ext
22973cat >>conftest.$ac_ext <<_ACEOF
22974/* end confdefs.h. */
22975
22976/* Override any gcc2 internal prototype to avoid an error. */
22977#ifdef __cplusplus
22978extern "C"
22979#endif
22980/* We use char because int might match the return type of a gcc2
22981 builtin and then its argument prototype would still apply. */
22982char gethostbyname ();
22983int
22984main ()
22985{
22986gethostbyname ();
22987 ;
22988 return 0;
22989}
22990_ACEOF
22991rm -f conftest.$ac_objext conftest$ac_exeext
22992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22993 (eval $ac_link) 2>&5
22994 ac_status=$?
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } &&
22997 { ac_try='test -s conftest$ac_exeext'
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_cv_lib_bsd_gethostbyname=yes
23004else
23005 echo "$as_me: failed program was:" >&5
23006sed 's/^/| /' conftest.$ac_ext >&5
23007
23008ac_cv_lib_bsd_gethostbyname=no
23009fi
23010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23011LIBS=$ac_check_lib_save_LIBS
23012fi
23013echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23014echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23015if test $ac_cv_lib_bsd_gethostbyname = yes; then
23016 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23017fi
90dd450c 23018
e6cc62c6 23019 fi
90dd450c
VZ
23020 fi
23021
21d1c967
GD
23022 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23023 # socket/setsockopt and other routines are undefined under SCO ODT
23024 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23025 # on later versions), says Simon Leinen: it contains gethostby*
23026 # variants that don't use the name server (or something). -lsocket
23027 # must be given before -lnsl if both are needed. We assume that
23028 # if connect needs -lnsl, so does gethostbyname.
23029 echo "$as_me:$LINENO: checking for connect" >&5
23030echo $ECHO_N "checking for connect... $ECHO_C" >&6
23031if test "${ac_cv_func_connect+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23033else
23034 cat >conftest.$ac_ext <<_ACEOF
23035#line $LINENO "configure"
23036/* confdefs.h. */
23037_ACEOF
23038cat confdefs.h >>conftest.$ac_ext
23039cat >>conftest.$ac_ext <<_ACEOF
23040/* end confdefs.h. */
21d1c967 23041/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23042 which can conflict with char connect (); below.
23043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23044 <limits.h> exists even on freestanding compilers. */
23045#ifdef __STDC__
23046# include <limits.h>
23047#else
23048# include <assert.h>
23049#endif
21d1c967 23050/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23051#ifdef __cplusplus
23052extern "C"
23053{
23054#endif
21d1c967 23055/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23056 builtin and then its argument prototype would still apply. */
23057char connect ();
21d1c967
GD
23058/* The GNU C library defines this for functions which it implements
23059 to always fail with ENOSYS. Some functions are actually named
23060 something starting with __ and the normal name is an alias. */
23061#if defined (__stub_connect) || defined (__stub___connect)
23062choke me
23063#else
e6cc62c6
VS
23064char (*f) () = connect;
23065#endif
23066#ifdef __cplusplus
23067}
21d1c967 23068#endif
90dd450c 23069
e6cc62c6
VS
23070int
23071main ()
23072{
23073return f != connect;
23074 ;
23075 return 0;
23076}
23077_ACEOF
23078rm -f conftest.$ac_objext conftest$ac_exeext
23079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23080 (eval $ac_link) 2>&5
23081 ac_status=$?
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); } &&
23084 { ac_try='test -s conftest$ac_exeext'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 ac_cv_func_connect=yes
23091else
23092 echo "$as_me: failed program was:" >&5
23093sed 's/^/| /' conftest.$ac_ext >&5
23094
23095ac_cv_func_connect=no
23096fi
23097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23098fi
23099echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23100echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23101
21d1c967 23102 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23103 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23104echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23105if test "${ac_cv_lib_socket_connect+set}" = set; then
23106 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23107else
e6cc62c6 23108 ac_check_lib_save_LIBS=$LIBS
21d1c967 23109LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23110cat >conftest.$ac_ext <<_ACEOF
23111#line $LINENO "configure"
23112/* confdefs.h. */
23113_ACEOF
23114cat confdefs.h >>conftest.$ac_ext
23115cat >>conftest.$ac_ext <<_ACEOF
23116/* end confdefs.h. */
23117
21d1c967 23118/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23119#ifdef __cplusplus
23120extern "C"
23121#endif
21d1c967 23122/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23123 builtin and then its argument prototype would still apply. */
23124char connect ();
23125int
23126main ()
23127{
23128connect ();
23129 ;
23130 return 0;
23131}
23132_ACEOF
23133rm -f conftest.$ac_objext conftest$ac_exeext
23134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23135 (eval $ac_link) 2>&5
23136 ac_status=$?
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } &&
23139 { ac_try='test -s conftest$ac_exeext'
23140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141 (eval $ac_try) 2>&5
23142 ac_status=$?
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); }; }; then
23145 ac_cv_lib_socket_connect=yes
23146else
23147 echo "$as_me: failed program was:" >&5
23148sed 's/^/| /' conftest.$ac_ext >&5
23149
23150ac_cv_lib_socket_connect=no
23151fi
23152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23153LIBS=$ac_check_lib_save_LIBS
23154fi
23155echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23156echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23157if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23158 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23159fi
90dd450c 23160
21d1c967 23161 fi
90dd450c 23162
e6cc62c6
VS
23163 # Guillermo Gomez says -lposix is necessary on A/UX.
23164 echo "$as_me:$LINENO: checking for remove" >&5
23165echo $ECHO_N "checking for remove... $ECHO_C" >&6
23166if test "${ac_cv_func_remove+set}" = set; then
23167 echo $ECHO_N "(cached) $ECHO_C" >&6
23168else
23169 cat >conftest.$ac_ext <<_ACEOF
23170#line $LINENO "configure"
23171/* confdefs.h. */
23172_ACEOF
23173cat confdefs.h >>conftest.$ac_ext
23174cat >>conftest.$ac_ext <<_ACEOF
23175/* end confdefs.h. */
21d1c967 23176/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23177 which can conflict with char remove (); below.
23178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23179 <limits.h> exists even on freestanding compilers. */
23180#ifdef __STDC__
23181# include <limits.h>
23182#else
23183# include <assert.h>
23184#endif
21d1c967 23185/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23186#ifdef __cplusplus
23187extern "C"
23188{
23189#endif
21d1c967 23190/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23191 builtin and then its argument prototype would still apply. */
23192char remove ();
21d1c967
GD
23193/* The GNU C library defines this for functions which it implements
23194 to always fail with ENOSYS. Some functions are actually named
23195 something starting with __ and the normal name is an alias. */
23196#if defined (__stub_remove) || defined (__stub___remove)
23197choke me
23198#else
e6cc62c6
VS
23199char (*f) () = remove;
23200#endif
23201#ifdef __cplusplus
23202}
21d1c967 23203#endif
90dd450c 23204
e6cc62c6
VS
23205int
23206main ()
23207{
23208return f != remove;
23209 ;
23210 return 0;
23211}
23212_ACEOF
23213rm -f conftest.$ac_objext conftest$ac_exeext
23214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23215 (eval $ac_link) 2>&5
23216 ac_status=$?
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } &&
23219 { ac_try='test -s conftest$ac_exeext'
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; }; then
23225 ac_cv_func_remove=yes
23226else
23227 echo "$as_me: failed program was:" >&5
23228sed 's/^/| /' conftest.$ac_ext >&5
23229
23230ac_cv_func_remove=no
23231fi
23232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23233fi
23234echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23235echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23236
21d1c967 23237 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23238 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23239echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23240if test "${ac_cv_lib_posix_remove+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23242else
e6cc62c6 23243 ac_check_lib_save_LIBS=$LIBS
21d1c967 23244LIBS="-lposix $LIBS"
e6cc62c6
VS
23245cat >conftest.$ac_ext <<_ACEOF
23246#line $LINENO "configure"
23247/* confdefs.h. */
23248_ACEOF
23249cat confdefs.h >>conftest.$ac_ext
23250cat >>conftest.$ac_ext <<_ACEOF
23251/* end confdefs.h. */
23252
21d1c967 23253/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23254#ifdef __cplusplus
23255extern "C"
23256#endif
21d1c967 23257/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23258 builtin and then its argument prototype would still apply. */
23259char remove ();
23260int
23261main ()
23262{
23263remove ();
23264 ;
23265 return 0;
23266}
23267_ACEOF
23268rm -f conftest.$ac_objext conftest$ac_exeext
23269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23270 (eval $ac_link) 2>&5
23271 ac_status=$?
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -s conftest$ac_exeext'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23277 ac_status=$?
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; }; then
23280 ac_cv_lib_posix_remove=yes
23281else
23282 echo "$as_me: failed program was:" >&5
23283sed 's/^/| /' conftest.$ac_ext >&5
23284
23285ac_cv_lib_posix_remove=no
23286fi
23287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23288LIBS=$ac_check_lib_save_LIBS
23289fi
23290echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23291echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23292if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23294fi
19bc6aad 23295
90dd450c 23296 fi
19bc6aad 23297
21d1c967 23298 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23299 echo "$as_me:$LINENO: checking for shmat" >&5
23300echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23301if test "${ac_cv_func_shmat+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23303else
23304 cat >conftest.$ac_ext <<_ACEOF
23305#line $LINENO "configure"
23306/* confdefs.h. */
23307_ACEOF
23308cat confdefs.h >>conftest.$ac_ext
23309cat >>conftest.$ac_ext <<_ACEOF
23310/* end confdefs.h. */
21d1c967 23311/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23312 which can conflict with char shmat (); below.
23313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23314 <limits.h> exists even on freestanding compilers. */
23315#ifdef __STDC__
23316# include <limits.h>
23317#else
23318# include <assert.h>
23319#endif
21d1c967 23320/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23321#ifdef __cplusplus
23322extern "C"
23323{
23324#endif
21d1c967 23325/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23326 builtin and then its argument prototype would still apply. */
23327char shmat ();
21d1c967
GD
23328/* The GNU C library defines this for functions which it implements
23329 to always fail with ENOSYS. Some functions are actually named
23330 something starting with __ and the normal name is an alias. */
23331#if defined (__stub_shmat) || defined (__stub___shmat)
23332choke me
23333#else
e6cc62c6
VS
23334char (*f) () = shmat;
23335#endif
23336#ifdef __cplusplus
23337}
21d1c967 23338#endif
90dd450c 23339
e6cc62c6
VS
23340int
23341main ()
23342{
23343return f != shmat;
23344 ;
23345 return 0;
23346}
23347_ACEOF
23348rm -f conftest.$ac_objext conftest$ac_exeext
23349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23350 (eval $ac_link) 2>&5
23351 ac_status=$?
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } &&
23354 { ac_try='test -s conftest$ac_exeext'
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23357 ac_status=$?
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; }; then
23360 ac_cv_func_shmat=yes
23361else
23362 echo "$as_me: failed program was:" >&5
23363sed 's/^/| /' conftest.$ac_ext >&5
23364
23365ac_cv_func_shmat=no
23366fi
23367rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23368fi
23369echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23370echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23371
21d1c967 23372 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23373 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23374echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23375if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23377else
e6cc62c6 23378 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23379LIBS="-lipc $LIBS"
e6cc62c6
VS
23380cat >conftest.$ac_ext <<_ACEOF
23381#line $LINENO "configure"
23382/* confdefs.h. */
23383_ACEOF
23384cat confdefs.h >>conftest.$ac_ext
23385cat >>conftest.$ac_ext <<_ACEOF
23386/* end confdefs.h. */
23387
5c6fa7d2 23388/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23389#ifdef __cplusplus
23390extern "C"
23391#endif
5c6fa7d2 23392/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23393 builtin and then its argument prototype would still apply. */
23394char shmat ();
23395int
23396main ()
23397{
23398shmat ();
23399 ;
23400 return 0;
23401}
23402_ACEOF
23403rm -f conftest.$ac_objext conftest$ac_exeext
23404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23405 (eval $ac_link) 2>&5
23406 ac_status=$?
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } &&
23409 { ac_try='test -s conftest$ac_exeext'
23410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23412 ac_status=$?
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; }; then
23415 ac_cv_lib_ipc_shmat=yes
23416else
23417 echo "$as_me: failed program was:" >&5
23418sed 's/^/| /' conftest.$ac_ext >&5
23419
23420ac_cv_lib_ipc_shmat=no
23421fi
23422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23423LIBS=$ac_check_lib_save_LIBS
23424fi
23425echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23426echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23427if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23428 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23429fi
90dd450c 23430
90dd450c 23431 fi
21d1c967 23432 fi
10f2d63a 23433
21d1c967 23434 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23435 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23436 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23437 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23438 # check for ICE first), but we must link in the order -lSM -lICE or
23439 # we get undefined symbols. So assume we have SM if we have ICE.
23440 # These have to be linked with before -lX11, unlike the other
23441 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23442 # John Interrante, Karl Berry
23443 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23444echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23445if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23447else
23448 ac_check_lib_save_LIBS=$LIBS
f09359cf 23449LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23450cat >conftest.$ac_ext <<_ACEOF
23451#line $LINENO "configure"
23452/* confdefs.h. */
23453_ACEOF
23454cat confdefs.h >>conftest.$ac_ext
23455cat >>conftest.$ac_ext <<_ACEOF
23456/* end confdefs.h. */
23457
21d1c967 23458/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23459#ifdef __cplusplus
23460extern "C"
23461#endif
21d1c967 23462/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23463 builtin and then its argument prototype would still apply. */
23464char IceConnectionNumber ();
23465int
23466main ()
23467{
23468IceConnectionNumber ();
23469 ;
23470 return 0;
23471}
23472_ACEOF
23473rm -f conftest.$ac_objext conftest$ac_exeext
23474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23475 (eval $ac_link) 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } &&
23479 { ac_try='test -s conftest$ac_exeext'
23480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_cv_lib_ICE_IceConnectionNumber=yes
23486else
23487 echo "$as_me: failed program was:" >&5
23488sed 's/^/| /' conftest.$ac_ext >&5
23489
23490ac_cv_lib_ICE_IceConnectionNumber=no
23491fi
23492rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23493LIBS=$ac_check_lib_save_LIBS
23494fi
23495echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23496echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23497if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23498 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23499fi
21d1c967 23500
e6cc62c6 23501 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23502
10f2d63a
VZ
23503fi
23504
8284b0c5 23505
21d1c967 23506 if test "$no_x" = "yes"; then
e6cc62c6
VS
23507 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23508echo "$as_me: error: X11 not found" >&2;}
23509 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23510 fi
23511
2b5f62a0
VZ
23512 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23513 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23514 AFMINSTALL=afminstall
23515 COMPILED_X_PROGRAM=0
23516
e6cc62c6
VS
23517 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23518echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23519
21d1c967 23520ac_find_includes=
2b5f62a0 23521for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23522 do
23523 if test -f "$ac_dir/Xm/Xm.h"; then
23524 ac_find_includes=$ac_dir
23525 break
23526 fi
23527 done
23528
23529 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23530 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23531echo "${ECHO_T}found in $ac_find_includes" >&6
23532
2b5f62a0 23533 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23534 ac_path_to_include=""
23535 else
2b5f62a0
VZ
23536 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23537 result=$?
23538 if test $result = 0; then
23539 ac_path_to_include=""
23540 else
23541 ac_path_to_include=" -I$ac_find_includes"
23542 fi
dd0e4a90
VZ
23543 fi
23544
23545 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23546 else
e6cc62c6
VS
23547 cat >conftest.$ac_ext <<_ACEOF
23548#line $LINENO "configure"
23549/* confdefs.h. */
23550_ACEOF
23551cat confdefs.h >>conftest.$ac_ext
23552cat >>conftest.$ac_ext <<_ACEOF
23553/* end confdefs.h. */
21d1c967
GD
23554
23555 #include <Xm/Xm.h>
e6cc62c6
VS
23556
23557int
23558main ()
23559{
21d1c967
GD
23560
23561 int version;
23562 version = xmUseVersion;
e6cc62c6
VS
23563
23564 ;
23565 return 0;
23566}
23567_ACEOF
23568rm -f conftest.$ac_objext
23569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23570 (eval $ac_compile) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } &&
23574 { ac_try='test -s conftest.$ac_objext'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580
23581 echo "$as_me:$LINENO: result: found in default search path" >&5
23582echo "${ECHO_T}found in default search path" >&6
21d1c967 23583 COMPILED_X_PROGRAM=1
e6cc62c6 23584
10f2d63a 23585else
e6cc62c6
VS
23586 echo "$as_me: failed program was:" >&5
23587sed 's/^/| /' conftest.$ac_ext >&5
23588
23589
23590 echo "$as_me:$LINENO: result: no" >&5
23591echo "${ECHO_T}no" >&6
23592 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23593echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23594 { (exit 1); exit 1; }; }
23595
23596
10f2d63a 23597fi
e6cc62c6 23598rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23599 fi
10f2d63a 23600
21d1c967 23601 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23602 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23603echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23604
21d1c967 23605ac_find_libraries=
2b5f62a0 23606for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23607 do
23608 for ac_extension in a so sl dylib; do
23609 if test -f "$ac_dir/libXm.$ac_extension"; then
23610 ac_find_libraries=$ac_dir
23611 break 2
23612 fi
23613 done
23614 done
23615
23616 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23617 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23618echo "${ECHO_T}found at $ac_find_libraries" >&6
23619
21d1c967 23620
21d1c967
GD
23621 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23622 result=$?
23623 if test $result = 0; then
23624 ac_path_to_link=""
23625 else
23626 ac_path_to_link=" -L$ac_find_libraries"
23627 fi
23628
21d1c967 23629 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23630 else
dd0e4a90
VZ
23631 save_CFLAGS=$CFLAGS
23632 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23633
e6cc62c6
VS
23634 cat >conftest.$ac_ext <<_ACEOF
23635#line $LINENO "configure"
23636/* confdefs.h. */
23637_ACEOF
23638cat confdefs.h >>conftest.$ac_ext
23639cat >>conftest.$ac_ext <<_ACEOF
23640/* end confdefs.h. */
21d1c967
GD
23641
23642 #include <Xm/Xm.h>
e6cc62c6
VS
23643
23644int
23645main ()
23646{
21d1c967
GD
23647
23648 int version;
23649 version = xmUseVersion;
e6cc62c6
VS
23650
23651 ;
23652 return 0;
23653}
23654_ACEOF
23655rm -f conftest.$ac_objext
23656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23657 (eval $ac_compile) 2>&5
23658 ac_status=$?
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); } &&
23661 { ac_try='test -s conftest.$ac_objext'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23664 ac_status=$?
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667
23668 echo "$as_me:$LINENO: result: found in default search path" >&5
23669echo "${ECHO_T}found in default search path" >&6
21d1c967 23670 COMPILED_X_PROGRAM=1
e6cc62c6 23671
d836ee96 23672else
e6cc62c6
VS
23673 echo "$as_me: failed program was:" >&5
23674sed 's/^/| /' conftest.$ac_ext >&5
23675
23676
23677 echo "$as_me:$LINENO: result: no" >&5
23678echo "${ECHO_T}no" >&6
23679 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23680echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23681 { (exit 1); exit 1; }; }
23682
23683
d836ee96 23684fi
e6cc62c6 23685rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23686
23687 CFLAGS=$save_CFLAGS
21d1c967
GD
23688 fi
23689 fi
23690
23691 xpm_link=
e6cc62c6
VS
23692 echo "$as_me:$LINENO: checking for Xpm library" >&5
23693echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23694
21d1c967 23695ac_find_libraries=
2b5f62a0 23696for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23697 do
23698 for ac_extension in a so sl dylib; do
23699 if test -f "$ac_dir/libXpm.$ac_extension"; then
23700 ac_find_libraries=$ac_dir
23701 break 2
23702 fi
23703 done
23704 done
23705
23706 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23707
21d1c967
GD
23708 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23709 result=$?
23710 if test $result = 0; then
23711 ac_path_to_link=""
23712 else
23713 ac_path_to_link=" -L$ac_find_libraries"
23714 fi
23715
23716 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23717
21d1c967 23718 xpm_link=" -lXpm"
e6cc62c6 23719 cat >>confdefs.h <<\_ACEOF
21d1c967 23720#define wxHAVE_LIB_XPM 1
e6cc62c6 23721_ACEOF
90dd450c 23722
e6cc62c6
VS
23723 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23724echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23725 else
dd0e4a90
VZ
23726 save_CFLAGS=$CFLAGS
23727 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23728
e6cc62c6
VS
23729 cat >conftest.$ac_ext <<_ACEOF
23730#line $LINENO "configure"
23731/* confdefs.h. */
23732_ACEOF
23733cat confdefs.h >>conftest.$ac_ext
23734cat >>conftest.$ac_ext <<_ACEOF
23735/* end confdefs.h. */
21d1c967
GD
23736
23737 #include <X11/xpm.h>
e6cc62c6
VS
23738
23739int
23740main ()
23741{
21d1c967
GD
23742
23743 int version;
23744 version = XpmLibraryVersion();
e6cc62c6
VS
23745
23746 ;
23747 return 0;
23748}
23749_ACEOF
23750rm -f conftest.$ac_objext
23751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23752 (eval $ac_compile) 2>&5
23753 ac_status=$?
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } &&
23756 { ac_try='test -s conftest.$ac_objext'
23757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758 (eval $ac_try) 2>&5
23759 ac_status=$?
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); }; }; then
23762
21d1c967 23763 xpm_link=" -lXpm"
e6cc62c6 23764 cat >>confdefs.h <<\_ACEOF
21d1c967 23765#define wxHAVE_LIB_XPM 1
e6cc62c6 23766_ACEOF
21d1c967 23767
e6cc62c6
VS
23768 echo "$as_me:$LINENO: result: found in default search path" >&5
23769echo "${ECHO_T}found in default search path" >&6
21d1c967 23770 COMPILED_X_PROGRAM=0
e6cc62c6 23771
d836ee96 23772else
e6cc62c6
VS
23773 echo "$as_me: failed program was:" >&5
23774sed 's/^/| /' conftest.$ac_ext >&5
23775
23776
23777 echo "$as_me:$LINENO: result: no" >&5
23778echo "${ECHO_T}no" >&6
23779 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23780echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23781
23782
d836ee96 23783fi
e6cc62c6 23784rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23785
23786 CFLAGS=$save_CFLAGS
21d1c967
GD
23787 fi
23788
e6cc62c6
VS
23789 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23790echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
23791 libp_link=""
23792 libsm_ice_link=""
23793 libs_found=0
23794 for libp in "" " -lXp"; do
23795 if test "$libs_found" = "0"; then
23796 for libsm_ice in " -lSM -lICE"; do
e26c13cf 23797 if test "$libs_found" = "0"; then
6a30f1c8
MB
23798 save_LIBS="$LIBS"
23799 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
23800 save_CFLAGS=$CFLAGS
23801 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23802
e6cc62c6
VS
23803 cat >conftest.$ac_ext <<_ACEOF
23804#line $LINENO "configure"
23805/* confdefs.h. */
23806_ACEOF
23807cat confdefs.h >>conftest.$ac_ext
23808cat >>conftest.$ac_ext <<_ACEOF
23809/* end confdefs.h. */
17234b26 23810
6a30f1c8
MB
23811 #include <Xm/Xm.h>
23812 #include <Xm/List.h>
e6cc62c6
VS
23813
23814int
23815main ()
23816{
6a30f1c8
MB
23817
23818 XmString string = NULL;
23819 Widget w = NULL;
23820 int position = 0;
23821 XmListAddItem(w, string, position);
e6cc62c6
VS
23822
23823 ;
23824 return 0;
23825}
23826_ACEOF
23827rm -f conftest.$ac_objext conftest$ac_exeext
23828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23829 (eval $ac_link) 2>&5
23830 ac_status=$?
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } &&
23833 { ac_try='test -s conftest$ac_exeext'
23834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835 (eval $ac_try) 2>&5
23836 ac_status=$?
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); }; }; then
23839
6a30f1c8
MB
23840 libp_link="$libp"
23841 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
23842 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
23843echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 23844 libs_found=1
e6cc62c6 23845
6a30f1c8 23846else
e6cc62c6
VS
23847 echo "$as_me: failed program was:" >&5
23848sed 's/^/| /' conftest.$ac_ext >&5
23849
23850
23851
6a30f1c8 23852fi
e6cc62c6 23853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 23854
6a30f1c8 23855 LIBS="$save_LIBS"
dd0e4a90 23856 CFLAGS=$save_CFLAGS
6a30f1c8
MB
23857 fi
23858 done
23859 fi
23860 done
23861
23862 if test "$libs_found" = "0"; then
e6cc62c6
VS
23863 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
23864echo "${ECHO_T}can't find the right libraries" >&6
23865 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
23866echo "$as_me: error: can't link a simple motif program" >&2;}
23867 { (exit 1); exit 1; }; }
6a30f1c8
MB
23868 fi
23869
da494b40
MB
23870 save_CFLAGS=$CFLAGS
23871 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
23872 echo "$as_me:$LINENO: checking for Motif 2" >&5
23873echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
23874 cat >conftest.$ac_ext <<_ACEOF
23875#line $LINENO "configure"
23876/* confdefs.h. */
23877_ACEOF
23878cat confdefs.h >>conftest.$ac_ext
23879cat >>conftest.$ac_ext <<_ACEOF
23880/* end confdefs.h. */
da494b40
MB
23881
23882 #include <Xm/Xm.h>
e6cc62c6
VS
23883
23884int
23885main ()
23886{
da494b40
MB
23887
23888 #if XmVersion < 2000
23889 #error "Not Motif 2"
23890 #endif
e6cc62c6
VS
23891
23892 ;
23893 return 0;
23894}
23895_ACEOF
23896rm -f conftest.$ac_objext
23897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23898 (eval $ac_compile) 2>&5
23899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); } &&
23902 { ac_try='test -s conftest.$ac_objext'
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23908
23909 cat >>confdefs.h <<\_ACEOF
da494b40 23910#define __WXMOTIF20__ 1
e6cc62c6
VS
23911_ACEOF
23912
23913 echo "$as_me:$LINENO: result: found" >&5
23914echo "${ECHO_T}found" >&6
da494b40 23915
da494b40 23916else
e6cc62c6
VS
23917 echo "$as_me: failed program was:" >&5
23918sed 's/^/| /' conftest.$ac_ext >&5
23919
23920
23921 cat >>confdefs.h <<\_ACEOF
da494b40 23922#define __WXMOTIF20__ 0
e6cc62c6
VS
23923_ACEOF
23924
23925 echo "$as_me:$LINENO: result: not found" >&5
23926echo "${ECHO_T}not found" >&6
da494b40 23927
da494b40 23928fi
e6cc62c6 23929rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
23930 CFLAGS=$save_CFLAGS
23931
6a30f1c8 23932 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 23933 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
23934 TOOLKIT=MOTIF
23935 GUIDIST=MOTIF_DIST
f7f78039
MB
23936 wxHAVE_XEXT_LIB=1
23937 fi
23938
23939 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
23940 test "$wxHAVE_XEXT_LIB" = 1; then
23941 save_CFLAGS="$CFLAGS"
23942 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23943
e6cc62c6
VS
23944 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
23945echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
23946 cat >conftest.$ac_ext <<_ACEOF
23947#line $LINENO "configure"
23948/* confdefs.h. */
23949_ACEOF
23950cat confdefs.h >>conftest.$ac_ext
23951cat >>conftest.$ac_ext <<_ACEOF
23952/* end confdefs.h. */
23953
23954 #include <X11/Xlib.h>
f7f78039 23955 #include <X11/extensions/shape.h>
e6cc62c6
VS
23956
23957int
23958main ()
23959{
f7f78039
MB
23960
23961 int dummy1, dummy2;
23962 XShapeQueryExtension((Display*)NULL,
23963 (int*)NULL, (int*)NULL);
e6cc62c6
VS
23964
23965 ;
23966 return 0;
23967}
23968_ACEOF
23969rm -f conftest.$ac_objext
23970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23971 (eval $ac_compile) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } &&
23975 { ac_try='test -s conftest.$ac_objext'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981
23982 cat >>confdefs.h <<\_ACEOF
f7f78039 23983#define HAVE_XSHAPE 1
e6cc62c6
VS
23984_ACEOF
23985
23986 echo "$as_me:$LINENO: result: found" >&5
23987echo "${ECHO_T}found" >&6
f7f78039 23988
f7f78039 23989else
e6cc62c6
VS
23990 echo "$as_me: failed program was:" >&5
23991sed 's/^/| /' conftest.$ac_ext >&5
23992
23993
23994 echo "$as_me:$LINENO: result: not found" >&5
23995echo "${ECHO_T}not found" >&6
23996
f7f78039 23997fi
e6cc62c6 23998rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 23999 CFLAGS="$save_CFLAGS"
21d1c967
GD
24000 fi
24001
24002 if test "$wxUSE_MAC" = 1; then
0c98a14e 24003 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24004
0c98a14e 24005 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24006 TOOLKIT=MAC
24007 GUIDIST=MACX_DIST
24008 fi
24009
ac0c4cc3
DE
24010 if test "$wxUSE_COCOA" = 1; then
24011 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24012 TOOLKIT=COCOA
24013 GUIDIST=COCOA_DIST
24014 fi
24015
21d1c967
GD
24016 if test "$wxUSE_PM" = 1; then
24017 TOOLKIT=PM
24018 GUIDIST=GTK_DIST
e6cc62c6
VS
24019 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24020echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24021 wxUSE_THREADS="no"
21d1c967
GD
24022 fi
24023
24024 if test "$TOOLKIT" = "PM" ; then
24025 TOOLKIT_DIR="os2"
24026 else
24027 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24028 fi
24029
24030 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24031
24032 if test "$wxUSE_UNIVERSAL" = "yes"; then
24033 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24034
24035 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24036 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24037
24038 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24039 if test "$wxUSE_X11" = 1; then
24040 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24041 else
24042 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24043 fi
24044 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24045 WIDGET_SET=univ
24046 else
24047 ALL_OBJECTS="\$(GUIOBJS)"
24048 ALL_SOURCES="\$(ALL_SOURCES)"
24049 ALL_HEADERS="\$(ALL_HEADERS)"
24050 fi
24051
24052 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24053
24054 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24055 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24056 fi
24057
24058 if test "$wxUSE_HTML" = "yes"; then
24059 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24060 fi
24061
24062 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24063 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24064 fi
24065 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24066 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24067 fi
24068 if test "$wxUSE_LIBPNG" = "builtin" ; then
24069 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24070 fi
24071
24072 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24073 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24074else
21d1c967
GD
24075 USE_GUI=0
24076
24077 TOOLKIT_DIR="base"
24078
24079 if test "$USE_WIN32" = 1 ; then
24080 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24081 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24082
24083 TOOLKIT="MSW"
24084 else
24085 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24086 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24087 fi
24088
24089 ALL_SOURCES="\$(ALL_SOURCES)"
24090 ALL_HEADERS="\$(ALL_HEADERS)"
24091
24092 PORT_FILES="\${top_srcdir}/src/files.lst"
24093
24094 GUIDIST="BASE_DIST"
24095 DISTDIR="wxBase"
d836ee96
VZ
24096fi
24097
8284b0c5 24098
8647bec6
RG
24099
24100
24101IODBC_C_SRC=""
24102
24103
24104if test "$TOOLKIT" != "MSW" ; then
24105
24106 if test "$wxUSE_ODBC" != "no" ; then
e6cc62c6 24107 cat >>confdefs.h <<\_ACEOF
8647bec6 24108#define wxUSE_ODBC 1
e6cc62c6 24109_ACEOF
8647bec6
RG
24110
24111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
e6cc62c6 24112
8647bec6
RG
24113 WXODBCFLAG="-D_IODBC_"
24114
24115
24116 if test "$wxUSE_ODBC" = "sys" ; then
e6cc62c6
VS
24117
24118 if test "${ac_cv_header_sql_h+set}" = set; then
24119 echo "$as_me:$LINENO: checking for sql.h" >&5
24120echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24121if test "${ac_cv_header_sql_h+set}" = set; then
24122 echo $ECHO_N "(cached) $ECHO_C" >&6
24123fi
24124echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24125echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24126else
24127 # Is the header compilable?
24128echo "$as_me:$LINENO: checking sql.h usability" >&5
24129echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24130cat >conftest.$ac_ext <<_ACEOF
24131#line $LINENO "configure"
24132/* confdefs.h. */
24133_ACEOF
24134cat confdefs.h >>conftest.$ac_ext
24135cat >>conftest.$ac_ext <<_ACEOF
24136/* end confdefs.h. */
24137$ac_includes_default
8647bec6 24138#include <sql.h>
e6cc62c6
VS
24139_ACEOF
24140rm -f conftest.$ac_objext
24141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24142 (eval $ac_compile) 2>&5
24143 ac_status=$?
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } &&
24146 { ac_try='test -s conftest.$ac_objext'
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; }; then
24152 ac_header_compiler=yes
24153else
24154 echo "$as_me: failed program was:" >&5
24155sed 's/^/| /' conftest.$ac_ext >&5
24156
24157ac_header_compiler=no
24158fi
24159rm -f conftest.$ac_objext conftest.$ac_ext
24160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24161echo "${ECHO_T}$ac_header_compiler" >&6
24162
24163# Is the header present?
24164echo "$as_me:$LINENO: checking sql.h presence" >&5
24165echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24166cat >conftest.$ac_ext <<_ACEOF
24167#line $LINENO "configure"
24168/* confdefs.h. */
24169_ACEOF
24170cat confdefs.h >>conftest.$ac_ext
24171cat >>conftest.$ac_ext <<_ACEOF
24172/* end confdefs.h. */
24173#include <sql.h>
24174_ACEOF
24175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24177 ac_status=$?
24178 grep -v '^ *+' conftest.er1 >conftest.err
24179 rm -f conftest.er1
24180 cat conftest.err >&5
24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); } >/dev/null; then
24183 if test -s conftest.err; then
24184 ac_cpp_err=$ac_c_preproc_warn_flag
24185 else
24186 ac_cpp_err=
24187 fi
24188else
24189 ac_cpp_err=yes
24190fi
24191if test -z "$ac_cpp_err"; then
24192 ac_header_preproc=yes
24193else
24194 echo "$as_me: failed program was:" >&5
24195sed 's/^/| /' conftest.$ac_ext >&5
24196
24197 ac_header_preproc=no
24198fi
24199rm -f conftest.err conftest.$ac_ext
24200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24201echo "${ECHO_T}$ac_header_preproc" >&6
24202
24203# So? What about this header?
24204case $ac_header_compiler:$ac_header_preproc in
24205 yes:no )
24206 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24207echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24208 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24209echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24210 (
24211 cat <<\_ASBOX
24212## ------------------------------------ ##
24213## Report this to bug-autoconf@gnu.org. ##
24214## ------------------------------------ ##
24215_ASBOX
24216 ) |
24217 sed "s/^/$as_me: WARNING: /" >&2
24218 ;;
24219 no:yes )
24220 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24221echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24222 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24223echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24225echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24226 (
24227 cat <<\_ASBOX
24228## ------------------------------------ ##
24229## Report this to bug-autoconf@gnu.org. ##
24230## ------------------------------------ ##
24231_ASBOX
24232 ) |
24233 sed "s/^/$as_me: WARNING: /" >&2
24234 ;;
24235esac
24236echo "$as_me:$LINENO: checking for sql.h" >&5
24237echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24238if test "${ac_cv_header_sql_h+set}" = set; then
24239 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24240else
e6cc62c6
VS
24241 ac_cv_header_sql_h=$ac_header_preproc
24242fi
24243echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24244echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24245
8647bec6
RG
24246fi
24247
e6cc62c6
VS
24248
24249 echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24250echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24251if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24253else
e6cc62c6
VS
24254 ac_func_search_save_LIBS=$LIBS
24255ac_cv_search_SQLAllocEnv=no
24256cat >conftest.$ac_ext <<_ACEOF
24257#line $LINENO "configure"
24258/* confdefs.h. */
24259_ACEOF
24260cat confdefs.h >>conftest.$ac_ext
24261cat >>conftest.$ac_ext <<_ACEOF
24262/* end confdefs.h. */
24263
8647bec6 24264/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24265#ifdef __cplusplus
24266extern "C"
24267#endif
8647bec6 24268/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24269 builtin and then its argument prototype would still apply. */
24270char SQLAllocEnv ();
24271int
24272main ()
24273{
24274SQLAllocEnv ();
24275 ;
24276 return 0;
24277}
24278_ACEOF
24279rm -f conftest.$ac_objext conftest$ac_exeext
24280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24281 (eval $ac_link) 2>&5
24282 ac_status=$?
24283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284 (exit $ac_status); } &&
24285 { ac_try='test -s conftest$ac_exeext'
24286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24287 (eval $ac_try) 2>&5
24288 ac_status=$?
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); }; }; then
8647bec6
RG
24291 ac_cv_search_SQLAllocEnv="none required"
24292else
e6cc62c6
VS
24293 echo "$as_me: failed program was:" >&5
24294sed 's/^/| /' conftest.$ac_ext >&5
24295
8647bec6 24296fi
e6cc62c6
VS
24297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24298if test "$ac_cv_search_SQLAllocEnv" = no; then
24299 for ac_lib in iodbc unixodbc odbc ; do
24300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24301 cat >conftest.$ac_ext <<_ACEOF
24302#line $LINENO "configure"
24303/* confdefs.h. */
24304_ACEOF
24305cat confdefs.h >>conftest.$ac_ext
24306cat >>conftest.$ac_ext <<_ACEOF
24307/* end confdefs.h. */
24308
8647bec6 24309/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24310#ifdef __cplusplus
24311extern "C"
24312#endif
8647bec6 24313/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24314 builtin and then its argument prototype would still apply. */
24315char SQLAllocEnv ();
24316int
24317main ()
24318{
24319SQLAllocEnv ();
24320 ;
24321 return 0;
24322}
24323_ACEOF
24324rm -f conftest.$ac_objext conftest$ac_exeext
24325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326 (eval $ac_link) 2>&5
24327 ac_status=$?
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } &&
24330 { ac_try='test -s conftest$ac_exeext'
24331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24332 (eval $ac_try) 2>&5
24333 ac_status=$?
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); }; }; then
24336 ac_cv_search_SQLAllocEnv="-l$ac_lib"
8647bec6
RG
24337break
24338else
e6cc62c6
VS
24339 echo "$as_me: failed program was:" >&5
24340sed 's/^/| /' conftest.$ac_ext >&5
24341
8647bec6 24342fi
e6cc62c6
VS
24343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24344 done
8647bec6 24345fi
e6cc62c6
VS
24346LIBS=$ac_func_search_save_LIBS
24347fi
24348echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24349echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24350if test "$ac_cv_search_SQLAllocEnv" != no; then
8647bec6 24351 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
e6cc62c6
VS
24352
24353else
24354
24355 wxUSE_ODBC=builtin;
24356 { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5
24357echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;}
24358
8647bec6 24359fi
e6cc62c6 24360
fd3d7534
RG
24361 fi
24362 if test "$wxUSE_ODBC" != "sys" ; then
24363 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
24364 fi
24365
24366 fi
e6cc62c6 24367
6232543b 24368fi
21d1c967
GD
24369
24370if test "$wxUSE_REGEX" = "builtin" ; then
24371 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24372fi
21d1c967
GD
24373if test "$wxUSE_ZLIB" = "builtin" ; then
24374 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24375fi
24376
8284b0c5 24377
21d1c967 24378if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24379 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24380 OPENGL_LIBS="-framework OpenGL -framework AGL"
24381 elif test "$wxUSE_MSW" = 1; then
24382 OPENGL_LIBS="-lopengl32 -lglu32"
24383 else
01aa5863
VS
24384
24385
24386ac_find_includes=
24387for ac_dir in $SEARCH_INCLUDE /usr/include;
24388 do
24389 if test -f "$ac_dir/GL/gl.h"; then
24390 ac_find_includes=$ac_dir
24391 break
24392 fi
24393 done
24394
24395 if test "$ac_find_includes" != "" ; then
24396 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24397echo "${ECHO_T}found in $ac_find_includes" >&6
24398 set -x
24399
24400 if test "x$ac_find_includes" = "x/usr/include"; then
24401 ac_path_to_include=""
24402 else
24403 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24404 result=$?
24405 if test $result = 0; then
24406 ac_path_to_include=""
24407 else
24408 ac_path_to_include=" -I$ac_find_includes"
24409 fi
24410 fi
24411
24412 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24413 set +x
24414 fi
24415
e6cc62c6
VS
24416 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24417 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24418echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24419if test "${ac_cv_header_GL_gl_h+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24421fi
24422echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24423echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24424else
24425 # Is the header compilable?
24426echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24427echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24428cat >conftest.$ac_ext <<_ACEOF
24429#line $LINENO "configure"
24430/* confdefs.h. */
24431_ACEOF
24432cat confdefs.h >>conftest.$ac_ext
24433cat >>conftest.$ac_ext <<_ACEOF
24434/* end confdefs.h. */
24435$ac_includes_default
21d1c967 24436#include <GL/gl.h>
e6cc62c6
VS
24437_ACEOF
24438rm -f conftest.$ac_objext
24439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24440 (eval $ac_compile) 2>&5
24441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } &&
24444 { ac_try='test -s conftest.$ac_objext'
24445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; }; then
24450 ac_header_compiler=yes
24451else
24452 echo "$as_me: failed program was:" >&5
24453sed 's/^/| /' conftest.$ac_ext >&5
24454
24455ac_header_compiler=no
24456fi
24457rm -f conftest.$ac_objext conftest.$ac_ext
24458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24459echo "${ECHO_T}$ac_header_compiler" >&6
24460
24461# Is the header present?
24462echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24463echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24464cat >conftest.$ac_ext <<_ACEOF
24465#line $LINENO "configure"
24466/* confdefs.h. */
24467_ACEOF
24468cat confdefs.h >>conftest.$ac_ext
24469cat >>conftest.$ac_ext <<_ACEOF
24470/* end confdefs.h. */
24471#include <GL/gl.h>
24472_ACEOF
24473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24475 ac_status=$?
24476 grep -v '^ *+' conftest.er1 >conftest.err
24477 rm -f conftest.er1
24478 cat conftest.err >&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } >/dev/null; then
24481 if test -s conftest.err; then
24482 ac_cpp_err=$ac_c_preproc_warn_flag
24483 else
24484 ac_cpp_err=
24485 fi
24486else
24487 ac_cpp_err=yes
24488fi
24489if test -z "$ac_cpp_err"; then
24490 ac_header_preproc=yes
24491else
24492 echo "$as_me: failed program was:" >&5
24493sed 's/^/| /' conftest.$ac_ext >&5
24494
24495 ac_header_preproc=no
24496fi
24497rm -f conftest.err conftest.$ac_ext
24498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24499echo "${ECHO_T}$ac_header_preproc" >&6
24500
24501# So? What about this header?
24502case $ac_header_compiler:$ac_header_preproc in
24503 yes:no )
24504 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24505echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24506 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24507echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24508 (
24509 cat <<\_ASBOX
24510## ------------------------------------ ##
24511## Report this to bug-autoconf@gnu.org. ##
24512## ------------------------------------ ##
24513_ASBOX
24514 ) |
24515 sed "s/^/$as_me: WARNING: /" >&2
24516 ;;
24517 no:yes )
24518 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24519echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24520 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24521echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24522 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24523echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24524 (
24525 cat <<\_ASBOX
24526## ------------------------------------ ##
24527## Report this to bug-autoconf@gnu.org. ##
24528## ------------------------------------ ##
24529_ASBOX
24530 ) |
24531 sed "s/^/$as_me: WARNING: /" >&2
24532 ;;
24533esac
24534echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24535echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24536if test "${ac_cv_header_GL_gl_h+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24538else
24539 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24540fi
e6cc62c6
VS
24541echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24542echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24543
698dcdb6 24544fi
e6cc62c6
VS
24545if test $ac_cv_header_GL_gl_h = yes; then
24546
89e3b3e4
VZ
24547 found_gl=0
24548
e6cc62c6
VS
24549 echo "$as_me:$LINENO: checking for -lGL" >&5
24550echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24551
21d1c967 24552ac_find_libraries=
2b5f62a0 24553for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24554 do
24555 for ac_extension in a so sl dylib; do
24556 if test -f "$ac_dir/libGL.$ac_extension"; then
24557 ac_find_libraries=$ac_dir
24558 break 2
24559 fi
24560 done
24561 done
24562
24563 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24564
21d1c967
GD
24565 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24566 result=$?
24567 if test $result = 0; then
24568 ac_path_to_link=""
24569 else
24570 ac_path_to_link=" -L$ac_find_libraries"
24571 fi
24572
89e3b3e4
VZ
24573 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24574 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24575 fi
89e3b3e4 24576
e6cc62c6 24577
89e3b3e4
VZ
24578ac_find_libraries=
24579for ac_dir in $SEARCH_LIB /usr/lib;
24580 do
24581 for ac_extension in a so sl dylib; do
24582 if test -f "$ac_dir/libGLU.$ac_extension"; then
24583 ac_find_libraries=$ac_dir
24584 break 2
24585 fi
24586 done
24587 done
24588
24589 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24590
89e3b3e4
VZ
24591 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24592 result=$?
24593 if test $result = 0; then
24594 ac_path_to_link=""
24595 else
24596 ac_path_to_link=" -L$ac_find_libraries"
24597 fi
24598
24599 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24600 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24601 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24602 fi
24603
24604 found_gl=1
24605 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24606 echo "$as_me:$LINENO: result: yes" >&5
24607echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24608 fi
24609 fi
24610
24611 if "$found_gl" != 1; then
e6cc62c6
VS
24612 echo "$as_me:$LINENO: result: no" >&5
24613echo "${ECHO_T}no" >&6
24614 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24615echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24616
21d1c967 24617ac_find_libraries=
2b5f62a0 24618for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24619 do
24620 for ac_extension in a so sl dylib; do
24621 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24622 ac_find_libraries=$ac_dir
24623 break 2
24624 fi
24625 done
24626 done
24627
24628 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24629
21d1c967
GD
24630 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24631 result=$?
24632 if test $result = 0; then
24633 ac_path_to_link=""
24634 else
24635 ac_path_to_link=" -L$ac_find_libraries"
24636 fi
24637
24638 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24639 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24640 echo "$as_me:$LINENO: result: yes" >&5
24641echo "${ECHO_T}yes" >&6
21d1c967 24642 else
e6cc62c6
VS
24643 echo "$as_me:$LINENO: result: no" >&5
24644echo "${ECHO_T}no" >&6
21d1c967
GD
24645 fi
24646 fi
e6cc62c6 24647
5c6fa7d2 24648fi
52127426 24649
8284b0c5 24650
e6cc62c6 24651
21d1c967 24652 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24653 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24654echo "$as_me: error: OpenGL libraries not available" >&2;}
24655 { (exit 1); exit 1; }; }
21d1c967
GD
24656 fi
24657 fi
90dd450c 24658
21d1c967 24659 if test "$wxUSE_OPENGL" = "yes"; then
e6cc62c6 24660 cat >>confdefs.h <<\_ACEOF
21d1c967 24661#define wxUSE_OPENGL 1
e6cc62c6 24662_ACEOF
21d1c967 24663
e6cc62c6 24664 cat >>confdefs.h <<\_ACEOF
21d1c967 24665#define wxUSE_GLCANVAS 1
e6cc62c6 24666_ACEOF
21d1c967
GD
24667
24668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24669 fi
10f2d63a 24670fi
21d1c967
GD
24671
24672if test -z "$TOOLKIT_VPATH" ; then
24673 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 24674fi
21d1c967
GD
24675
24676if test -n "$TOOLKIT" ; then
24677 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24678fi
24679
fe0895cf 24680UNICODE=0
21d1c967
GD
24681lib_unicode_suffix=
24682if test "$wxUSE_UNICODE" = "yes"; then
24683 lib_unicode_suffix=u
fe0895cf 24684 UNICODE=1
90dd450c 24685fi
698dcdb6 24686
21d1c967 24687lib_debug_suffix=
fe0895cf 24688BUILD=release
21d1c967
GD
24689if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24690 lib_debug_suffix=d
fe0895cf 24691 BUILD=debug
21d1c967 24692fi
698dcdb6 24693
2b5f62a0
VZ
24694WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24695
24696TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24697TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
24698
24699if test "$cross_compiling" = "yes"; then
24700 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24701 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
24702fi
24703
24704WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24705WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 24706WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
24707
24708WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24709WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24710
24711WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24712WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24713WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24714WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24715
24716case "${host}" in
24717 *-*-cygwin* | *-*-mingw32* )
24718
e6cc62c6
VS
24719
24720
17234b26 24721 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
24722 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24723 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24724 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
24725 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
24726 else
24727 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24728 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24729 fi
24730 ;;
24731
24732 *-*-darwin* )
e6cc62c6 24733
05159a27
GD
24734 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24735 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24736
24737 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24738 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24739 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24740 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24741
21d1c967 24742 if test "$wxUSE_MAC" = 1; then
f346733b
GD
24743 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24744 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
24745 fi
24746 ;;
24747esac
24748
24749WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24750WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24751
24752WXCONFIG_LIBS="-l${WX_LIBRARY}"
24753WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24754
24755if test "$wxUSE_OPENGL" = "yes"; then
24756 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24757 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24758fi
24759
8284b0c5
MB
24760
24761
21d1c967
GD
24762if test "$wxUSE_SHARED" = "yes"; then
24763 case "${host}" in
24764 *-pc-os2_emx | *-pc-os2-emx | \
24765 *-pc-msdosdjgpp )
24766 wxUSE_SHARED=no
e6cc62c6
VS
24767 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24768echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
24769 ;;
24770 esac
24771fi
24772
fe0895cf 24773SHARED=0
2b5f62a0 24774if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 24775 SHARED=1
2b5f62a0
VZ
24776
24777 if test "$wxUSE_OPENGL" = "yes"; then
24778 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
24779 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
24780 else
24781 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
24782 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
24783 fi
24784
24785 if test "$GCC" = "yes"; then
24786 PIC_FLAG="-fPIC"
24787 fi
24788
24789
e6cc62c6 24790
2b5f62a0
VZ
24791 found_versioning=no
24792
e6cc62c6 24793
2b5f62a0 24794 if test $found_versioning = no ; then
e6cc62c6
VS
24795 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
24796echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
24797if test "${wx_cv_version_script+set}" = set; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24799else
e6cc62c6 24800
2b5f62a0
VZ
24801 echo "VER_1 { *; };" >conftest.sym
24802 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 24803
2b5f62a0
VZ
24804 if { ac_try='
24805 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
24806 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
24807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808 (eval $ac_try) 2>&5
24809 ac_status=$?
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); }; } ; then
2b5f62a0
VZ
24812 if test -s conftest.stderr ; then
24813 wx_cv_version_script=no
24814 else
24815 wx_cv_version_script=yes
24816 fi
24817 else
24818 wx_cv_version_script=no
24819 fi
24820 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 24821
e6cc62c6
VS
24822fi
24823echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
24824echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 24825 if test $wx_cv_version_script = yes ; then
e6cc62c6 24826 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
24827 fi
24828 fi
21d1c967 24829
21d1c967
GD
24830
24831 SHARED_LD="${CXX} -shared -o"
24832
24833 case "${host}" in
24834 *-hp-hpux* )
ad2622f1 24835 if test "$GCC" = "yes"; then
85d5e282 24836 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
24837 else
24838 LDFLAGS="$LDFLAGS -L/usr/lib"
24839
24840 SHARED_LD="${CXX} -b -o"
24841 PIC_FLAG="+Z"
24842 fi
24843
24844 if test "$wxUSE_OPENGL" = "yes"; then
24845 WX_ALL_INSTALLED="preinstall_gl"
24846 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
24847 else
24848 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
24849 fi
24850 ;;
24851
fe0895cf 24852 *-*-linux* | *-*-gnu* )
21d1c967 24853 if test "$GCC" != "yes"; then
e6cc62c6
VS
24854 echo "$as_me:$LINENO: checking for Intel compiler" >&5
24855echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
24856if test "${wx_cv_prog_icc+set}" = set; then
24857 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24858else
90dd450c 24859
e6cc62c6
VS
24860 cat >conftest.$ac_ext <<_ACEOF
24861#line $LINENO "configure"
24862/* confdefs.h. */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h. */
24867
24868int
24869main ()
24870{
90dd450c 24871
21d1c967
GD
24872 #ifndef __INTEL_COMPILER
24873 #error Not icc
24874 #endif
e6cc62c6
VS
24875
24876 ;
24877 return 0;
24878}
24879_ACEOF
24880rm -f conftest.$ac_objext
24881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24882 (eval $ac_compile) 2>&5
24883 ac_status=$?
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } &&
24886 { ac_try='test -s conftest.$ac_objext'
24887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); }; }; then
21d1c967 24892 wx_cv_prog_icc=yes
6232543b 24893else
e6cc62c6
VS
24894 echo "$as_me: failed program was:" >&5
24895sed 's/^/| /' conftest.$ac_ext >&5
24896
24897wx_cv_prog_icc=no
24898
247f5006 24899fi
e6cc62c6 24900rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 24901
e6cc62c6
VS
24902fi
24903echo "$as_me:$LINENO: result: $wx_cv_prog_icc" >&5
24904echo "${ECHO_T}$wx_cv_prog_icc" >&6
21d1c967
GD
24905 if test "$wx_cv_prog_icc" = "yes"; then
24906 PIC_FLAG="-KPIC"
24907 fi
24908 fi
24909
24910 if test "$wxUSE_SONAME" = "yes" ; then
24911 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
24912 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
24913 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
24914 fi
e6cc62c6 24915 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
21d1c967
GD
24916 ;;
24917
24918 *-*-solaris2* )
24919 if test "$GCC" = yes ; then
24920 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
24921
24922 saveLdflags="$LDFLAGS"
24923 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
24924 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
24925echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
24926 cat >conftest.$ac_ext <<_ACEOF
24927#line $LINENO "configure"
24928/* confdefs.h. */
24929_ACEOF
24930cat confdefs.h >>conftest.$ac_ext
24931cat >>conftest.$ac_ext <<_ACEOF
24932/* end confdefs.h. */
24933
24934int
24935main ()
24936{
fe0895cf 24937
e6cc62c6
VS
24938 ;
24939 return 0;
24940}
24941_ACEOF
24942rm -f conftest.$ac_objext conftest$ac_exeext
24943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944 (eval $ac_link) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
24948 { ac_try='test -s conftest$ac_exeext'
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; }; then
24954
24955 echo "$as_me:$LINENO: result: yes" >&5
24956echo "${ECHO_T}yes" >&6
24957 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24958
24959else
24960 echo "$as_me: failed program was:" >&5
24961sed 's/^/| /' conftest.$ac_ext >&5
24962
24963
24964 echo "$as_me:$LINENO: result: no" >&5
24965echo "${ECHO_T}no" >&6
24966 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
24967echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 24968 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
24969 cat >conftest.$ac_ext <<_ACEOF
24970#line $LINENO "configure"
24971/* confdefs.h. */
24972_ACEOF
24973cat confdefs.h >>conftest.$ac_ext
24974cat >>conftest.$ac_ext <<_ACEOF
24975/* end confdefs.h. */
24976
24977int
24978main ()
24979{
24980
24981 ;
24982 return 0;
24983}
24984_ACEOF
24985rm -f conftest.$ac_objext conftest$ac_exeext
24986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24987 (eval $ac_link) 2>&5
24988 ac_status=$?
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); } &&
24991 { ac_try='test -s conftest$ac_exeext'
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; }; then
24997
24998 echo "$as_me:$LINENO: result: yes" >&5
24999echo "${ECHO_T}yes" >&6
25000 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25001else
25002 echo "$as_me: failed program was:" >&5
25003sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25004
fe0895cf 25005
e6cc62c6
VS
25006 echo "$as_me:$LINENO: result: no" >&5
25007echo "${ECHO_T}no" >&6
25008
fe0895cf 25009fi
e6cc62c6
VS
25010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25011
25012fi
25013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25014 LDFLAGS="$saveLdflags"
21d1c967
GD
25015 else
25016 SHARED_LD="${CXX} -G -o"
25017 PIC_FLAG="-KPIC"
25018 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
25019 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
e6cc62c6 25020 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25021 fi
25022 ;;
25023
25024 *-*-darwin* )
b2fee376
GD
25025 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
25026 CFLAGS="$CFLAGS -fno-common"
25027 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
25028 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
25029 PIC_FLAG="-dynamic -fPIC"
f346733b 25030 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 25031 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
25032 ;;
25033
25034 *-*-aix* )
2b5f62a0
VZ
25035 if test "$GCC" != "yes"; then
25036 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 25037set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
25038echo "$as_me:$LINENO: checking for $ac_word" >&5
25039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25040if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
25041 echo $ECHO_N "(cached) $ECHO_C" >&6
321d2b14
VZ
25042else
25043 if test -n "$AIX_CXX_LD"; then
25044 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
25045else
e6cc62c6
VS
25046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25047for as_dir in $PATH
25048do
25049 IFS=$as_save_IFS
25050 test -z "$as_dir" && as_dir=.
25051 for ac_exec_ext in '' $ac_executable_extensions; do
25052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25053 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
25054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25055 break 2
25056 fi
25057done
25058done
25059
321d2b14
VZ
25060 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
25061fi
25062fi
e6cc62c6 25063AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
321d2b14 25064if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
25065 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
25066echo "${ECHO_T}$AIX_CXX_LD" >&6
321d2b14 25067else
e6cc62c6
VS
25068 echo "$as_me:$LINENO: result: no" >&5
25069echo "${ECHO_T}no" >&6
321d2b14
VZ
25070fi
25071
8284b0c5 25072
2b5f62a0
VZ
25073 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
25074 fi
21d1c967
GD
25075 ;;
25076
25077 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
25078 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
25079
25080 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
25081 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25082
25083 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
25084
f657dbe7
MB
25085 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
25086 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
25087
25088 if test "$wxUSE_OPENGL" = "yes"; then
25089 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
25090 fi
25091 ;;
25092
25093 *-*-beos* )
25094 SHARED_LD="${LD} -shared -o"
25095 ;;
25096
2b5f62a0
VZ
25097 *-*-irix* )
25098 if test "$GCC" != "yes"; then
25099 PIC_FLAG="-KPIC"
25100 fi
25101 ;;
25102
21d1c967
GD
25103 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
25104 *-*-sunos4* | \
21d1c967
GD
25105 *-*-osf* | \
25106 *-*-dgux5* | \
25107 *-*-sysv5* )
25108 ;;
25109
25110 *)
e6cc62c6
VS
25111 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
25112echo "$as_me: error: unknown system type $host." >&2;}
25113 { (exit 1); exit 1; }; }
21d1c967
GD
25114 esac
25115
25116 if test "x$WX_TARGET_LIBRARY" = "x"; then
25117 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25118 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25119 fi
25120
25121 WX_TARGET_LIBRARY_TYPE="so"
25122 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25123fi
10f2d63a 25124
21d1c967
GD
25125if test "$wxUSE_SHARED" = "no"; then
25126
25127 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25128 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25129 fi
25130
ac0c4cc3 25131 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25132 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25133 fi
25134
25135 if test "$wxUSE_OPENGL" = "yes"; then
25136 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25137 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25138 else
25139 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25140 fi
25141
25142 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25143 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25144
25145 WX_TARGET_LIBRARY_TYPE="a"
25146 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25147
25148 STATIC_FLAG="yes"
25149else
25150 STATIC_FLAG="no"
90dd450c 25151fi
1e487827 25152
93fac604
VZ
25153MACRESCOMP="@#"
25154MACSETFILE="@#"
36825681 25155MACRESWXCONFIG="#"
21d1c967 25156if test "$wxUSE_MAC" = 1; then
e6cc62c6 25157 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25158 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25159 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25160 # Extract the first word of "Rez", so it can be a program name with args.
25161set dummy Rez; ac_word=$2
e6cc62c6
VS
25162echo "$as_me:$LINENO: checking for $ac_word" >&5
25163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25164if test "${ac_cv_prog_RESCOMP+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25166else
21d1c967
GD
25167 if test -n "$RESCOMP"; then
25168 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25169else
e6cc62c6
VS
25170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25171for as_dir in $PATH
25172do
25173 IFS=$as_save_IFS
25174 test -z "$as_dir" && as_dir=.
25175 for ac_exec_ext in '' $ac_executable_extensions; do
25176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25177 ac_cv_prog_RESCOMP="Rez"
25178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25179 break 2
25180 fi
25181done
25182done
25183
21d1c967 25184 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25185fi
b93d0d08 25186fi
e6cc62c6 25187RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25188if test -n "$RESCOMP"; then
e6cc62c6
VS
25189 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25190echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25191else
e6cc62c6
VS
25192 echo "$as_me:$LINENO: result: no" >&5
25193echo "${ECHO_T}no" >&6
90dd450c 25194fi
b93d0d08 25195
21d1c967
GD
25196 # Extract the first word of "DeRez", so it can be a program name with args.
25197set dummy DeRez; ac_word=$2
e6cc62c6
VS
25198echo "$as_me:$LINENO: checking for $ac_word" >&5
25199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25200if test "${ac_cv_prog_DEREZ+set}" = set; then
25201 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25202else
21d1c967
GD
25203 if test -n "$DEREZ"; then
25204 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25205else
e6cc62c6
VS
25206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25207for as_dir in $PATH
25208do
25209 IFS=$as_save_IFS
25210 test -z "$as_dir" && as_dir=.
25211 for ac_exec_ext in '' $ac_executable_extensions; do
25212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25213 ac_cv_prog_DEREZ="DeRez"
25214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25215 break 2
25216 fi
25217done
25218done
25219
21d1c967 25220 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25221fi
90dd450c 25222fi
e6cc62c6 25223DEREZ=$ac_cv_prog_DEREZ
21d1c967 25224if test -n "$DEREZ"; then
e6cc62c6
VS
25225 echo "$as_me:$LINENO: result: $DEREZ" >&5
25226echo "${ECHO_T}$DEREZ" >&6
90dd450c 25227else
e6cc62c6
VS
25228 echo "$as_me:$LINENO: result: no" >&5
25229echo "${ECHO_T}no" >&6
3a922bb4 25230fi
698dcdb6 25231
36825681
GD
25232 # Extract the first word of "SetFile", so it can be a program name with args.
25233set dummy SetFile; ac_word=$2
e6cc62c6
VS
25234echo "$as_me:$LINENO: checking for $ac_word" >&5
25235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25236if test "${ac_cv_prog_SETFILE+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25238else
25239 if test -n "$SETFILE"; then
25240 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25241else
e6cc62c6
VS
25242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25243for as_dir in $PATH
25244do
25245 IFS=$as_save_IFS
25246 test -z "$as_dir" && as_dir=.
25247 for ac_exec_ext in '' $ac_executable_extensions; do
25248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25249 ac_cv_prog_SETFILE="SetFile"
25250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25251 break 2
25252 fi
25253done
25254done
25255
36825681
GD
25256 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25257fi
25258fi
e6cc62c6 25259SETFILE=$ac_cv_prog_SETFILE
36825681 25260if test -n "$SETFILE"; then
e6cc62c6
VS
25261 echo "$as_me:$LINENO: result: $SETFILE" >&5
25262echo "${ECHO_T}$SETFILE" >&6
36825681 25263else
e6cc62c6
VS
25264 echo "$as_me:$LINENO: result: no" >&5
25265echo "${ECHO_T}no" >&6
36825681
GD
25266fi
25267
21d1c967 25268 MACOSX_BUNDLE="bundle"
36825681
GD
25269 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25270 MACSETFILE="\$(SETFILE)"
9711d31e 25271 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25272elif test "$wxUSE_COCOA" = 1; then
25273 # Extract the first word of "Rez", so it can be a program name with args.
25274set dummy Rez; ac_word=$2
e6cc62c6
VS
25275echo "$as_me:$LINENO: checking for $ac_word" >&5
25276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25277if test "${ac_cv_prog_RESCOMP+set}" = set; then
25278 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25279else
25280 if test -n "$RESCOMP"; then
25281 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25282else
e6cc62c6
VS
25283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25284for as_dir in $PATH
25285do
25286 IFS=$as_save_IFS
25287 test -z "$as_dir" && as_dir=.
25288 for ac_exec_ext in '' $ac_executable_extensions; do
25289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25290 ac_cv_prog_RESCOMP="Rez"
25291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25292 break 2
25293 fi
25294done
25295done
25296
64440d77
DE
25297 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25298fi
25299fi
e6cc62c6 25300RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25301if test -n "$RESCOMP"; then
e6cc62c6
VS
25302 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25303echo "${ECHO_T}$RESCOMP" >&6
64440d77 25304else
e6cc62c6
VS
25305 echo "$as_me:$LINENO: result: no" >&5
25306echo "${ECHO_T}no" >&6
64440d77
DE
25307fi
25308
25309 # Extract the first word of "DeRez", so it can be a program name with args.
25310set dummy DeRez; ac_word=$2
e6cc62c6
VS
25311echo "$as_me:$LINENO: checking for $ac_word" >&5
25312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25313if test "${ac_cv_prog_DEREZ+set}" = set; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25315else
25316 if test -n "$DEREZ"; then
25317 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25318else
e6cc62c6
VS
25319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25320for as_dir in $PATH
25321do
25322 IFS=$as_save_IFS
25323 test -z "$as_dir" && as_dir=.
25324 for ac_exec_ext in '' $ac_executable_extensions; do
25325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25326 ac_cv_prog_DEREZ="DeRez"
25327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25328 break 2
25329 fi
25330done
25331done
25332
64440d77
DE
25333 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25334fi
25335fi
e6cc62c6 25336DEREZ=$ac_cv_prog_DEREZ
64440d77 25337if test -n "$DEREZ"; then
e6cc62c6
VS
25338 echo "$as_me:$LINENO: result: $DEREZ" >&5
25339echo "${ECHO_T}$DEREZ" >&6
64440d77 25340else
e6cc62c6
VS
25341 echo "$as_me:$LINENO: result: no" >&5
25342echo "${ECHO_T}no" >&6
64440d77
DE
25343fi
25344
25345 # Extract the first word of "SetFile", so it can be a program name with args.
25346set dummy SetFile; ac_word=$2
e6cc62c6
VS
25347echo "$as_me:$LINENO: checking for $ac_word" >&5
25348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25349if test "${ac_cv_prog_SETFILE+set}" = set; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25351else
25352 if test -n "$SETFILE"; then
25353 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25354else
e6cc62c6
VS
25355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25356for as_dir in $PATH
25357do
25358 IFS=$as_save_IFS
25359 test -z "$as_dir" && as_dir=.
25360 for ac_exec_ext in '' $ac_executable_extensions; do
25361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25362 ac_cv_prog_SETFILE="SetFile"
25363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25364 break 2
25365 fi
25366done
25367done
25368
64440d77
DE
25369 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25370fi
25371fi
e6cc62c6 25372SETFILE=$ac_cv_prog_SETFILE
64440d77 25373if test -n "$SETFILE"; then
e6cc62c6
VS
25374 echo "$as_me:$LINENO: result: $SETFILE" >&5
25375echo "${ECHO_T}$SETFILE" >&6
64440d77 25376else
e6cc62c6
VS
25377 echo "$as_me:$LINENO: result: no" >&5
25378echo "${ECHO_T}no" >&6
64440d77
DE
25379fi
25380
25381 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25382 MACSETFILE="\$(SETFILE)"
9711d31e 25383 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25384else
25385 if test "$wxUSE_PM" = 1; then
36825681 25386 MACRESCOMP="emxbind -ep"
90dd450c 25387 fi
4f14bcd8 25388fi
10f2d63a 25389
8284b0c5 25390
e6cc62c6
VS
25391echo "$as_me:$LINENO: checking for mode_t" >&5
25392echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25393if test "${ac_cv_type_mode_t+set}" = set; then
25394 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25395else
e6cc62c6
VS
25396 cat >conftest.$ac_ext <<_ACEOF
25397#line $LINENO "configure"
25398/* confdefs.h. */
25399_ACEOF
25400cat confdefs.h >>conftest.$ac_ext
25401cat >>conftest.$ac_ext <<_ACEOF
25402/* end confdefs.h. */
25403$ac_includes_default
25404int
25405main ()
25406{
25407if ((mode_t *) 0)
25408 return 0;
25409if (sizeof (mode_t))
25410 return 0;
25411 ;
25412 return 0;
25413}
25414_ACEOF
25415rm -f conftest.$ac_objext
25416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25417 (eval $ac_compile) 2>&5
25418 ac_status=$?
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); } &&
25421 { ac_try='test -s conftest.$ac_objext'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25424 ac_status=$?
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; }; then
25427 ac_cv_type_mode_t=yes
a0b9e27f 25428else
e6cc62c6
VS
25429 echo "$as_me: failed program was:" >&5
25430sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25431
e6cc62c6 25432ac_cv_type_mode_t=no
a0b9e27f 25433fi
e6cc62c6 25434rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25435fi
e6cc62c6
VS
25436echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25437echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25438if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25439 :
25440else
a0b9e27f 25441
e6cc62c6
VS
25442cat >>confdefs.h <<_ACEOF
25443#define mode_t int
25444_ACEOF
8284b0c5
MB
25445
25446fi
25447
e6cc62c6
VS
25448echo "$as_me:$LINENO: checking for off_t" >&5
25449echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25450if test "${ac_cv_type_off_t+set}" = set; then
25451 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25452else
e6cc62c6
VS
25453 cat >conftest.$ac_ext <<_ACEOF
25454#line $LINENO "configure"
25455/* confdefs.h. */
25456_ACEOF
25457cat confdefs.h >>conftest.$ac_ext
25458cat >>conftest.$ac_ext <<_ACEOF
25459/* end confdefs.h. */
25460$ac_includes_default
25461int
25462main ()
25463{
25464if ((off_t *) 0)
25465 return 0;
25466if (sizeof (off_t))
25467 return 0;
25468 ;
25469 return 0;
25470}
25471_ACEOF
25472rm -f conftest.$ac_objext
25473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25474 (eval $ac_compile) 2>&5
25475 ac_status=$?
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
25478 { ac_try='test -s conftest.$ac_objext'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; }; then
25484 ac_cv_type_off_t=yes
5c6fa7d2 25485else
e6cc62c6
VS
25486 echo "$as_me: failed program was:" >&5
25487sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25488
e6cc62c6 25489ac_cv_type_off_t=no
8284b0c5 25490fi
e6cc62c6 25491rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25492fi
e6cc62c6
VS
25493echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25494echo "${ECHO_T}$ac_cv_type_off_t" >&6
25495if test $ac_cv_type_off_t = yes; then
25496 :
247f5006
VZ
25497else
25498
e6cc62c6 25499cat >>confdefs.h <<_ACEOF
90dd450c 25500#define off_t long
e6cc62c6 25501_ACEOF
10f2d63a 25502
90dd450c 25503fi
10f2d63a 25504
e6cc62c6
VS
25505echo "$as_me:$LINENO: checking for pid_t" >&5
25506echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25507if test "${ac_cv_type_pid_t+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25509else
e6cc62c6
VS
25510 cat >conftest.$ac_ext <<_ACEOF
25511#line $LINENO "configure"
25512/* confdefs.h. */
25513_ACEOF
25514cat confdefs.h >>conftest.$ac_ext
25515cat >>conftest.$ac_ext <<_ACEOF
25516/* end confdefs.h. */
25517$ac_includes_default
25518int
25519main ()
25520{
25521if ((pid_t *) 0)
25522 return 0;
25523if (sizeof (pid_t))
25524 return 0;
25525 ;
25526 return 0;
25527}
25528_ACEOF
25529rm -f conftest.$ac_objext
25530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25531 (eval $ac_compile) 2>&5
25532 ac_status=$?
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } &&
25535 { ac_try='test -s conftest.$ac_objext'
25536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25537 (eval $ac_try) 2>&5
25538 ac_status=$?
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); }; }; then
90dd450c 25541 ac_cv_type_pid_t=yes
698dcdb6 25542else
e6cc62c6
VS
25543 echo "$as_me: failed program was:" >&5
25544sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25545
e6cc62c6
VS
25546ac_cv_type_pid_t=no
25547fi
25548rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25549fi
e6cc62c6
VS
25550echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25551echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25552if test $ac_cv_type_pid_t = yes; then
25553 :
25554else
25555
25556cat >>confdefs.h <<_ACEOF
90dd450c 25557#define pid_t int
e6cc62c6 25558_ACEOF
10f2d63a 25559
7b4a847f
RR
25560fi
25561
e6cc62c6
VS
25562echo "$as_me:$LINENO: checking for size_t" >&5
25563echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25564if test "${ac_cv_type_size_t+set}" = set; then
25565 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25566else
e6cc62c6
VS
25567 cat >conftest.$ac_ext <<_ACEOF
25568#line $LINENO "configure"
25569/* confdefs.h. */
25570_ACEOF
25571cat confdefs.h >>conftest.$ac_ext
25572cat >>conftest.$ac_ext <<_ACEOF
25573/* end confdefs.h. */
25574$ac_includes_default
25575int
25576main ()
25577{
25578if ((size_t *) 0)
25579 return 0;
25580if (sizeof (size_t))
25581 return 0;
25582 ;
25583 return 0;
25584}
25585_ACEOF
25586rm -f conftest.$ac_objext
25587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25588 (eval $ac_compile) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } &&
25592 { ac_try='test -s conftest.$ac_objext'
25593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; }; then
90dd450c 25598 ac_cv_type_size_t=yes
18dbb1f6 25599else
e6cc62c6
VS
25600 echo "$as_me: failed program was:" >&5
25601sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25602
e6cc62c6 25603ac_cv_type_size_t=no
a0b9e27f 25604fi
e6cc62c6
VS
25605rm -f conftest.$ac_objext conftest.$ac_ext
25606fi
25607echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25608echo "${ECHO_T}$ac_cv_type_size_t" >&6
25609if test $ac_cv_type_size_t = yes; then
25610 :
25611else
25612
25613cat >>confdefs.h <<_ACEOF
90dd450c 25614#define size_t unsigned
e6cc62c6 25615_ACEOF
90dd450c
VZ
25616
25617fi
25618
e6cc62c6
VS
25619echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25620echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25621if test "${ac_cv_type_uid_t+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25623else
e6cc62c6
VS
25624 cat >conftest.$ac_ext <<_ACEOF
25625#line $LINENO "configure"
25626/* confdefs.h. */
25627_ACEOF
25628cat confdefs.h >>conftest.$ac_ext
25629cat >>conftest.$ac_ext <<_ACEOF
25630/* end confdefs.h. */
90dd450c 25631#include <sys/types.h>
e6cc62c6
VS
25632
25633_ACEOF
90dd450c 25634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25635 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25636 ac_cv_type_uid_t=yes
b3e8d00a 25637else
90dd450c 25638 ac_cv_type_uid_t=no
b3e8d00a 25639fi
90dd450c 25640rm -f conftest*
b3e8d00a 25641
4f14bcd8 25642fi
e6cc62c6
VS
25643echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25644echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25645if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25646
25647cat >>confdefs.h <<\_ACEOF
90dd450c 25648#define uid_t int
e6cc62c6 25649_ACEOF
247f5006 25650
e6cc62c6
VS
25651
25652cat >>confdefs.h <<\_ACEOF
90dd450c 25653#define gid_t int
e6cc62c6 25654_ACEOF
4f14bcd8 25655
b3e8d00a 25656fi
b3e8d00a 25657
8284b0c5
MB
25658
25659
e6cc62c6
VS
25660
25661ac_ext=cc
4f14bcd8 25662ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25666
25667echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25668echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25669if test "${wx_cv_size_t_is_uint+set}" = set; then
25670 echo $ECHO_N "(cached) $ECHO_C" >&6
25671else
25672
25673 cat >conftest.$ac_ext <<_ACEOF
25674#line $LINENO "configure"
25675/* confdefs.h. */
25676_ACEOF
25677cat confdefs.h >>conftest.$ac_ext
25678cat >>conftest.$ac_ext <<_ACEOF
25679/* end confdefs.h. */
90dd450c 25680#include <stddef.h>
e6cc62c6
VS
25681int
25682main ()
25683{
90dd450c
VZ
25684
25685 return 0; }
25686
25687 struct Foo { void foo(size_t); void foo(unsigned int); };
25688
25689 int bar() {
e6cc62c6
VS
25690
25691 ;
25692 return 0;
25693}
25694_ACEOF
25695rm -f conftest.$ac_objext
25696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25697 (eval $ac_compile) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } &&
25701 { ac_try='test -s conftest.$ac_objext'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25704 ac_status=$?
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
90dd450c 25707 wx_cv_size_t_is_uint=no
698dcdb6 25708else
e6cc62c6
VS
25709 echo "$as_me: failed program was:" >&5
25710sed 's/^/| /' conftest.$ac_ext >&5
25711
25712wx_cv_size_t_is_uint=yes
8284b0c5 25713
247f5006 25714fi
e6cc62c6
VS
25715rm -f conftest.$ac_objext conftest.$ac_ext
25716
a0b9e27f 25717
e6cc62c6
VS
25718fi
25719echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25720echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25721
90dd450c 25722if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25723 cat >>confdefs.h <<\_ACEOF
90dd450c 25724#define wxSIZE_T_IS_UINT 1
e6cc62c6 25725_ACEOF
698dcdb6 25726
90dd450c 25727else
e6cc62c6
VS
25728 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25729echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25730if test "${wx_cv_size_t_is_ulong+set}" = set; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25732else
e6cc62c6
VS
25733 cat >conftest.$ac_ext <<_ACEOF
25734#line $LINENO "configure"
25735/* confdefs.h. */
25736_ACEOF
25737cat confdefs.h >>conftest.$ac_ext
25738cat >>conftest.$ac_ext <<_ACEOF
25739/* end confdefs.h. */
90dd450c 25740#include <stddef.h>
e6cc62c6
VS
25741int
25742main ()
25743{
90dd450c
VZ
25744
25745 return 0; }
25746
25747 struct Foo { void foo(size_t); void foo(unsigned long); };
25748
25749 int bar() {
e6cc62c6
VS
25750
25751 ;
25752 return 0;
25753}
25754_ACEOF
25755rm -f conftest.$ac_objext
25756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25757 (eval $ac_compile) 2>&5
25758 ac_status=$?
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } &&
25761 { ac_try='test -s conftest.$ac_objext'
25762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763 (eval $ac_try) 2>&5
25764 ac_status=$?
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); }; }; then
90dd450c 25767 wx_cv_size_t_is_ulong=no
698dcdb6 25768else
e6cc62c6
VS
25769 echo "$as_me: failed program was:" >&5
25770sed 's/^/| /' conftest.$ac_ext >&5
25771
25772wx_cv_size_t_is_ulong=yes
25773
247f5006 25774fi
e6cc62c6 25775rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25776
e6cc62c6
VS
25777fi
25778echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25779echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25780
90dd450c 25781 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25782 cat >>confdefs.h <<\_ACEOF
90dd450c 25783#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25784_ACEOF
4f14bcd8
GD
25785
25786 fi
90dd450c 25787fi
1e487827 25788
90dd450c 25789ac_ext=c
4f14bcd8 25790ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25793ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25794
5c6fa7d2 25795
8284b0c5 25796
e6cc62c6
VS
25797echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25798echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25799if test "${wx_cv_struct_pw_gecos+set}" = set; then
25800 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25801else
e6cc62c6
VS
25802
25803 cat >conftest.$ac_ext <<_ACEOF
25804#line $LINENO "configure"
25805/* confdefs.h. */
25806_ACEOF
25807cat confdefs.h >>conftest.$ac_ext
25808cat >>conftest.$ac_ext <<_ACEOF
25809/* end confdefs.h. */
90dd450c 25810#include <pwd.h>
e6cc62c6
VS
25811int
25812main ()
25813{
f6bcfd97 25814
90dd450c
VZ
25815 char *p;
25816 struct passwd *pw;
25817 p = pw->pw_gecos;
e6cc62c6
VS
25818
25819 ;
25820 return 0;
25821}
25822_ACEOF
25823rm -f conftest.$ac_objext
25824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25825 (eval $ac_compile) 2>&5
25826 ac_status=$?
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } &&
25829 { ac_try='test -s conftest.$ac_objext'
25830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831 (eval $ac_try) 2>&5
25832 ac_status=$?
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; }; then
25835
90dd450c 25836 wx_cv_struct_pw_gecos=yes
e6cc62c6 25837
10f2d63a 25838else
e6cc62c6
VS
25839 echo "$as_me: failed program was:" >&5
25840sed 's/^/| /' conftest.$ac_ext >&5
25841
25842
90dd450c 25843 wx_cv_struct_pw_gecos=no
e6cc62c6 25844
247f5006
VZ
25845
25846fi
e6cc62c6 25847rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25848
e6cc62c6
VS
25849
25850fi
25851echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25852echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 25853
90dd450c 25854if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 25855 cat >>confdefs.h <<\_ACEOF
90dd450c 25856#define HAVE_PW_GECOS 1
e6cc62c6 25857_ACEOF
c521c494 25858
90dd450c 25859fi
4f14bcd8 25860
8284b0c5 25861
d29b553b 25862if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 25863 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25864#define wxUSE_WCHAR_T 1
e6cc62c6 25865_ACEOF
d74f4b5a 25866
8284b0c5 25867
d74f4b5a
VZ
25868 WCSLEN_FOUND=0
25869 WCHAR_LINK=
e6cc62c6
VS
25870
25871for ac_func in wcslen
7a30264c 25872do
e6cc62c6
VS
25873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25874echo "$as_me:$LINENO: checking for $ac_func" >&5
25875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25876if eval "test \"\${$as_ac_var+set}\" = set"; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25878else
25879 cat >conftest.$ac_ext <<_ACEOF
25880#line $LINENO "configure"
25881/* confdefs.h. */
25882_ACEOF
25883cat confdefs.h >>conftest.$ac_ext
25884cat >>conftest.$ac_ext <<_ACEOF
25885/* end confdefs.h. */
7a30264c 25886/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25887 which can conflict with char $ac_func (); below.
25888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25889 <limits.h> exists even on freestanding compilers. */
25890#ifdef __STDC__
25891# include <limits.h>
25892#else
25893# include <assert.h>
25894#endif
4f14bcd8 25895/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25896#ifdef __cplusplus
25897extern "C"
25898{
25899#endif
4f14bcd8 25900/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25901 builtin and then its argument prototype would still apply. */
25902char $ac_func ();
7a30264c
VZ
25903/* The GNU C library defines this for functions which it implements
25904 to always fail with ENOSYS. Some functions are actually named
25905 something starting with __ and the normal name is an alias. */
25906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25907choke me
25908#else
e6cc62c6
VS
25909char (*f) () = $ac_func;
25910#endif
25911#ifdef __cplusplus
25912}
7a30264c
VZ
25913#endif
25914
e6cc62c6
VS
25915int
25916main ()
25917{
25918return f != $ac_func;
25919 ;
25920 return 0;
25921}
25922_ACEOF
25923rm -f conftest.$ac_objext conftest$ac_exeext
25924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25925 (eval $ac_link) 2>&5
25926 ac_status=$?
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } &&
25929 { ac_try='test -s conftest$ac_exeext'
25930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; }; then
25935 eval "$as_ac_var=yes"
25936else
25937 echo "$as_me: failed program was:" >&5
25938sed 's/^/| /' conftest.$ac_ext >&5
25939
25940eval "$as_ac_var=no"
25941fi
25942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25943fi
25944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25945echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25946if test `eval echo '${'$as_ac_var'}'` = yes; then
25947 cat >>confdefs.h <<_ACEOF
25948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25949_ACEOF
d74f4b5a 25950 WCSLEN_FOUND=1
7a30264c
VZ
25951fi
25952done
9d8deca0 25953
8284b0c5 25954
d74f4b5a 25955 if test "$WCSLEN_FOUND" = 0; then
7a30264c 25956 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
25957 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25958echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25959if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 25961else
e6cc62c6 25962 ac_check_lib_save_LIBS=$LIBS
7a30264c 25963LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
25964cat >conftest.$ac_ext <<_ACEOF
25965#line $LINENO "configure"
25966/* confdefs.h. */
25967_ACEOF
25968cat confdefs.h >>conftest.$ac_ext
25969cat >>conftest.$ac_ext <<_ACEOF
25970/* end confdefs.h. */
25971
4f14bcd8 25972/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25973#ifdef __cplusplus
25974extern "C"
25975#endif
4f14bcd8 25976/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25977 builtin and then its argument prototype would still apply. */
25978char wcslen ();
25979int
25980main ()
25981{
25982wcslen ();
25983 ;
25984 return 0;
25985}
25986_ACEOF
25987rm -f conftest.$ac_objext conftest$ac_exeext
25988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25989 (eval $ac_link) 2>&5
25990 ac_status=$?
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } &&
25993 { ac_try='test -s conftest$ac_exeext'
25994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995 (eval $ac_try) 2>&5
25996 ac_status=$?
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); }; }; then
25999 ac_cv_lib_msvcrt_wcslen=yes
26000else
26001 echo "$as_me: failed program was:" >&5
26002sed 's/^/| /' conftest.$ac_ext >&5
26003
26004ac_cv_lib_msvcrt_wcslen=no
26005fi
26006rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26007LIBS=$ac_check_lib_save_LIBS
26008fi
26009echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26010echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26011if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26012 WCHAR_OK=1
d29b553b 26013fi
698dcdb6 26014
7a30264c 26015 else
e6cc62c6
VS
26016 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26017echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26018if test "${ac_cv_lib_w_wcslen+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26020else
e6cc62c6 26021 ac_check_lib_save_LIBS=$LIBS
7a30264c 26022LIBS="-lw $LIBS"
e6cc62c6
VS
26023cat >conftest.$ac_ext <<_ACEOF
26024#line $LINENO "configure"
26025/* confdefs.h. */
26026_ACEOF
26027cat confdefs.h >>conftest.$ac_ext
26028cat >>conftest.$ac_ext <<_ACEOF
26029/* end confdefs.h. */
26030
4f14bcd8 26031/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26032#ifdef __cplusplus
26033extern "C"
26034#endif
4f14bcd8 26035/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26036 builtin and then its argument prototype would still apply. */
26037char wcslen ();
26038int
26039main ()
26040{
26041wcslen ();
26042 ;
26043 return 0;
26044}
26045_ACEOF
26046rm -f conftest.$ac_objext conftest$ac_exeext
26047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26048 (eval $ac_link) 2>&5
26049 ac_status=$?
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } &&
26052 { ac_try='test -s conftest$ac_exeext'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26055 ac_status=$?
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; }; then
26058 ac_cv_lib_w_wcslen=yes
26059else
26060 echo "$as_me: failed program was:" >&5
26061sed 's/^/| /' conftest.$ac_ext >&5
26062
26063ac_cv_lib_w_wcslen=no
26064fi
26065rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26066LIBS=$ac_check_lib_save_LIBS
26067fi
26068echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26069echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26070if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26071
7a30264c 26072 WCHAR_LINK=" -lw"
d74f4b5a 26073 WCSLEN_FOUND=1
e6cc62c6 26074
4f14bcd8 26075fi
10f2d63a 26076
7a30264c 26077 fi
d29b553b 26078 fi
95c8801c 26079
d74f4b5a 26080 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26081 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26082#define HAVE_WCSLEN 1
e6cc62c6 26083_ACEOF
10f2d63a 26084
d74f4b5a 26085 fi
52127426 26086
e6cc62c6
VS
26087
26088for ac_func in wcsrtombs
eb4efbdc 26089do
e6cc62c6
VS
26090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26091echo "$as_me:$LINENO: checking for $ac_func" >&5
26092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26093if eval "test \"\${$as_ac_var+set}\" = set"; then
26094 echo $ECHO_N "(cached) $ECHO_C" >&6
26095else
26096 cat >conftest.$ac_ext <<_ACEOF
26097#line $LINENO "configure"
26098/* confdefs.h. */
26099_ACEOF
26100cat confdefs.h >>conftest.$ac_ext
26101cat >>conftest.$ac_ext <<_ACEOF
26102/* end confdefs.h. */
eb4efbdc 26103/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26104 which can conflict with char $ac_func (); below.
26105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26106 <limits.h> exists even on freestanding compilers. */
26107#ifdef __STDC__
26108# include <limits.h>
26109#else
26110# include <assert.h>
26111#endif
eb4efbdc 26112/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26113#ifdef __cplusplus
26114extern "C"
26115{
26116#endif
4f14bcd8 26117/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26118 builtin and then its argument prototype would still apply. */
26119char $ac_func ();
10f2d63a
VZ
26120/* The GNU C library defines this for functions which it implements
26121 to always fail with ENOSYS. Some functions are actually named
26122 something starting with __ and the normal name is an alias. */
247f5006 26123#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26124choke me
26125#else
e6cc62c6
VS
26126char (*f) () = $ac_func;
26127#endif
26128#ifdef __cplusplus
26129}
10f2d63a
VZ
26130#endif
26131
e6cc62c6
VS
26132int
26133main ()
26134{
26135return f != $ac_func;
26136 ;
26137 return 0;
26138}
26139_ACEOF
26140rm -f conftest.$ac_objext conftest$ac_exeext
26141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26142 (eval $ac_link) 2>&5
26143 ac_status=$?
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } &&
26146 { ac_try='test -s conftest$ac_exeext'
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 eval "$as_ac_var=yes"
26153else
26154 echo "$as_me: failed program was:" >&5
26155sed 's/^/| /' conftest.$ac_ext >&5
26156
26157eval "$as_ac_var=no"
26158fi
26159rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26160fi
26161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26162echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26163if test `eval echo '${'$as_ac_var'}'` = yes; then
26164 cat >>confdefs.h <<_ACEOF
26165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26166_ACEOF
270a909e 26167
4f14bcd8 26168fi
247f5006 26169done
1e487827 26170
af15babd 26171else
e6cc62c6
VS
26172 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26173echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26174fi
52127426 26175
8284b0c5 26176
e6cc62c6
VS
26177
26178ac_ext=cc
247f5006 26179ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26183
af15babd 26184
247f5006
VZ
26185
26186for ac_func in vsnprintf
26187do
e6cc62c6
VS
26188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26189echo "$as_me:$LINENO: checking for $ac_func" >&5
26190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26191if eval "test \"\${$as_ac_var+set}\" = set"; then
26192 echo $ECHO_N "(cached) $ECHO_C" >&6
26193else
26194 cat >conftest.$ac_ext <<_ACEOF
26195#line $LINENO "configure"
26196/* confdefs.h. */
26197_ACEOF
26198cat confdefs.h >>conftest.$ac_ext
26199cat >>conftest.$ac_ext <<_ACEOF
26200/* end confdefs.h. */
247f5006 26201/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26202 which can conflict with char $ac_func (); below.
26203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26204 <limits.h> exists even on freestanding compilers. */
26205#ifdef __STDC__
26206# include <limits.h>
26207#else
26208# include <assert.h>
26209#endif
247f5006
VZ
26210/* Override any gcc2 internal prototype to avoid an error. */
26211#ifdef __cplusplus
26212extern "C"
e6cc62c6 26213{
247f5006
VZ
26214#endif
26215/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26216 builtin and then its argument prototype would still apply. */
26217char $ac_func ();
247f5006
VZ
26218/* The GNU C library defines this for functions which it implements
26219 to always fail with ENOSYS. Some functions are actually named
26220 something starting with __ and the normal name is an alias. */
26221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26222choke me
26223#else
e6cc62c6
VS
26224char (*f) () = $ac_func;
26225#endif
26226#ifdef __cplusplus
26227}
247f5006 26228#endif
af15babd 26229
e6cc62c6
VS
26230int
26231main ()
26232{
26233return f != $ac_func;
26234 ;
26235 return 0;
26236}
26237_ACEOF
26238rm -f conftest.$ac_objext conftest$ac_exeext
26239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26240 (eval $ac_link) 2>&5
26241 ac_status=$?
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); } &&
26244 { ac_try='test -s conftest$ac_exeext'
26245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246 (eval $ac_try) 2>&5
26247 ac_status=$?
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); }; }; then
26250 eval "$as_ac_var=yes"
26251else
26252 echo "$as_me: failed program was:" >&5
26253sed 's/^/| /' conftest.$ac_ext >&5
26254
26255eval "$as_ac_var=no"
26256fi
26257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26258fi
26259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26261if test `eval echo '${'$as_ac_var'}'` = yes; then
26262 cat >>confdefs.h <<_ACEOF
26263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26264_ACEOF
52127426 26265
5c6fa7d2 26266fi
247f5006 26267done
8284b0c5 26268
4f14bcd8 26269
8d90d2f2 26270if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26271 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26272echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26273if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26274 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26275else
e6cc62c6
VS
26276
26277 cat >conftest.$ac_ext <<_ACEOF
26278#line $LINENO "configure"
26279/* confdefs.h. */
26280_ACEOF
26281cat confdefs.h >>conftest.$ac_ext
26282cat >>conftest.$ac_ext <<_ACEOF
26283/* end confdefs.h. */
8d90d2f2
VZ
26284
26285 #include <stdio.h>
26286 #include <stdarg.h>
e6cc62c6
VS
26287
26288int
26289main ()
26290{
8d90d2f2
VZ
26291
26292 char *buf;
26293 va_list ap;
26294 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26295
26296 ;
26297 return 0;
26298}
26299_ACEOF
26300rm -f conftest.$ac_objext
26301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26302 (eval $ac_compile) 2>&5
26303 ac_status=$?
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } &&
26306 { ac_try='test -s conftest.$ac_objext'
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
26309 ac_status=$?
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
8d90d2f2
VZ
26312 wx_cv_func_vsnprintf_decl=yes
26313else
e6cc62c6
VS
26314 echo "$as_me: failed program was:" >&5
26315sed 's/^/| /' conftest.$ac_ext >&5
26316
26317wx_cv_func_vsnprintf_decl=no
26318
8d90d2f2 26319fi
e6cc62c6
VS
26320rm -f conftest.$ac_objext conftest.$ac_ext
26321
8d90d2f2 26322
e6cc62c6
VS
26323fi
26324echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26325echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26326
26327 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26328 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26329#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26330_ACEOF
8d90d2f2
VZ
26331
26332 fi
26333fi
26334
247f5006 26335if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26336
26337
26338
26339for ac_func in fputwc wprintf vswprintf
d74f4b5a 26340do
e6cc62c6
VS
26341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26342echo "$as_me:$LINENO: checking for $ac_func" >&5
26343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26344if eval "test \"\${$as_ac_var+set}\" = set"; then
26345 echo $ECHO_N "(cached) $ECHO_C" >&6
26346else
26347 cat >conftest.$ac_ext <<_ACEOF
26348#line $LINENO "configure"
26349/* confdefs.h. */
26350_ACEOF
26351cat confdefs.h >>conftest.$ac_ext
26352cat >>conftest.$ac_ext <<_ACEOF
26353/* end confdefs.h. */
d74f4b5a 26354/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26355 which can conflict with char $ac_func (); below.
26356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26357 <limits.h> exists even on freestanding compilers. */
26358#ifdef __STDC__
26359# include <limits.h>
26360#else
26361# include <assert.h>
26362#endif
d74f4b5a 26363/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26364#ifdef __cplusplus
26365extern "C"
e6cc62c6 26366{
247f5006 26367#endif
d74f4b5a 26368/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26369 builtin and then its argument prototype would still apply. */
26370char $ac_func ();
d74f4b5a
VZ
26371/* The GNU C library defines this for functions which it implements
26372 to always fail with ENOSYS. Some functions are actually named
26373 something starting with __ and the normal name is an alias. */
26374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26375choke me
26376#else
e6cc62c6
VS
26377char (*f) () = $ac_func;
26378#endif
26379#ifdef __cplusplus
26380}
d74f4b5a
VZ
26381#endif
26382
e6cc62c6
VS
26383int
26384main ()
26385{
26386return f != $ac_func;
26387 ;
26388 return 0;
26389}
26390_ACEOF
26391rm -f conftest.$ac_objext conftest$ac_exeext
26392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26393 (eval $ac_link) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } &&
26397 { ac_try='test -s conftest$ac_exeext'
26398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26399 (eval $ac_try) 2>&5
26400 ac_status=$?
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); }; }; then
26403 eval "$as_ac_var=yes"
26404else
26405 echo "$as_me: failed program was:" >&5
26406sed 's/^/| /' conftest.$ac_ext >&5
26407
26408eval "$as_ac_var=no"
26409fi
26410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26411fi
26412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26414if test `eval echo '${'$as_ac_var'}'` = yes; then
26415 cat >>confdefs.h <<_ACEOF
26416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26417_ACEOF
d74f4b5a 26418
d74f4b5a
VZ
26419fi
26420done
26421
8d90d2f2 26422
e6cc62c6
VS
26423 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26424echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26425 cat >conftest.$ac_ext <<_ACEOF
26426#line $LINENO "configure"
26427/* confdefs.h. */
26428_ACEOF
26429cat confdefs.h >>conftest.$ac_ext
26430cat >>conftest.$ac_ext <<_ACEOF
26431/* end confdefs.h. */
79668cae 26432#include <wchar.h>
e6cc62c6
VS
26433int
26434main ()
26435{
79668cae 26436&_vsnwprintf;
e6cc62c6
VS
26437 ;
26438 return 0;
26439}
26440_ACEOF
26441rm -f conftest.$ac_objext
26442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26443 (eval $ac_compile) 2>&5
26444 ac_status=$?
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } &&
26447 { ac_try='test -s conftest.$ac_objext'
26448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26450 ac_status=$?
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; }; then
26453 echo "$as_me:$LINENO: result: yes" >&5
26454echo "${ECHO_T}yes" >&6
26455 cat >>confdefs.h <<\_ACEOF
79668cae 26456#define HAVE__VSNWPRINTF 1
e6cc62c6 26457_ACEOF
79668cae
MB
26458
26459else
e6cc62c6
VS
26460 echo "$as_me: failed program was:" >&5
26461sed 's/^/| /' conftest.$ac_ext >&5
26462
26463echo "$as_me:$LINENO: result: no" >&5
26464echo "${ECHO_T}no" >&6
79668cae 26465fi
e6cc62c6 26466rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26467fi
26468
247f5006
VZ
26469ac_ext=c
26470ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26473ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26474
26475
26476
26477
4f14bcd8 26478if test "$TOOLKIT" != "MSW"; then
af15babd 26479
8284b0c5
MB
26480
26481
e6cc62c6
VS
26482
26483ac_ext=cc
4f14bcd8 26484ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26488
52127426 26489
e6cc62c6
VS
26490
26491
26492# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26493if test "${with_libiconv_prefix+set}" = set; then
26494 withval="$with_libiconv_prefix"
e6cc62c6 26495
b040e242
VS
26496 for dir in `echo "$withval" | tr : ' '`; do
26497 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26498 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26499 done
b040e242 26500
e6cc62c6 26501fi;
b040e242 26502
e6cc62c6
VS
26503 echo "$as_me:$LINENO: checking for iconv" >&5
26504echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26505if test "${am_cv_func_iconv+set}" = set; then
26506 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26507else
e6cc62c6 26508
b040e242
VS
26509 am_cv_func_iconv="no, consider installing GNU libiconv"
26510 am_cv_lib_iconv=no
e6cc62c6
VS
26511 cat >conftest.$ac_ext <<_ACEOF
26512#line $LINENO "configure"
26513/* confdefs.h. */
26514_ACEOF
26515cat confdefs.h >>conftest.$ac_ext
26516cat >>conftest.$ac_ext <<_ACEOF
26517/* end confdefs.h. */
b040e242 26518#include <stdlib.h>
4f14bcd8 26519#include <iconv.h>
e6cc62c6
VS
26520int
26521main ()
26522{
b040e242
VS
26523iconv_t cd = iconv_open("","");
26524 iconv(cd,NULL,NULL,NULL,NULL);
26525 iconv_close(cd);
e6cc62c6
VS
26526 ;
26527 return 0;
26528}
26529_ACEOF
26530rm -f conftest.$ac_objext conftest$ac_exeext
26531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26532 (eval $ac_link) 2>&5
26533 ac_status=$?
26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); } &&
26536 { ac_try='test -s conftest$ac_exeext'
26537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538 (eval $ac_try) 2>&5
26539 ac_status=$?
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; }; then
b040e242 26542 am_cv_func_iconv=yes
af15babd 26543else
e6cc62c6
VS
26544 echo "$as_me: failed program was:" >&5
26545sed 's/^/| /' conftest.$ac_ext >&5
26546
b040e242 26547fi
e6cc62c6 26548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26549 if test "$am_cv_func_iconv" != yes; then
26550 am_save_LIBS="$LIBS"
26551 LIBS="$LIBS -liconv"
e6cc62c6
VS
26552 cat >conftest.$ac_ext <<_ACEOF
26553#line $LINENO "configure"
26554/* confdefs.h. */
26555_ACEOF
26556cat confdefs.h >>conftest.$ac_ext
26557cat >>conftest.$ac_ext <<_ACEOF
26558/* end confdefs.h. */
b040e242
VS
26559#include <stdlib.h>
26560#include <iconv.h>
e6cc62c6
VS
26561int
26562main ()
26563{
b040e242
VS
26564iconv_t cd = iconv_open("","");
26565 iconv(cd,NULL,NULL,NULL,NULL);
26566 iconv_close(cd);
e6cc62c6
VS
26567 ;
26568 return 0;
26569}
26570_ACEOF
26571rm -f conftest.$ac_objext conftest$ac_exeext
26572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26573 (eval $ac_link) 2>&5
26574 ac_status=$?
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } &&
26577 { ac_try='test -s conftest$ac_exeext'
26578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26579 (eval $ac_try) 2>&5
26580 ac_status=$?
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); }; }; then
b040e242
VS
26583 am_cv_lib_iconv=yes
26584 am_cv_func_iconv=yes
26585else
e6cc62c6
VS
26586 echo "$as_me: failed program was:" >&5
26587sed 's/^/| /' conftest.$ac_ext >&5
26588
af15babd 26589fi
e6cc62c6 26590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26591 LIBS="$am_save_LIBS"
26592 fi
247f5006 26593
e6cc62c6
VS
26594fi
26595echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26596echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26597 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26598
26599cat >>confdefs.h <<\_ACEOF
b040e242 26600#define HAVE_ICONV 1
e6cc62c6 26601_ACEOF
b040e242 26602
e6cc62c6
VS
26603 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26604echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26605if test "${wx_cv_func_iconv_const+set}" = set; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26607else
e6cc62c6
VS
26608 cat >conftest.$ac_ext <<_ACEOF
26609#line $LINENO "configure"
26610/* confdefs.h. */
26611_ACEOF
26612cat confdefs.h >>conftest.$ac_ext
26613cat >>conftest.$ac_ext <<_ACEOF
26614/* end confdefs.h. */
b040e242
VS
26615
26616#include <stdlib.h>
26617#include <iconv.h>
26618extern
26619#ifdef __cplusplus
26620"C"
26621#endif
26622#if defined(__STDC__) || defined(__cplusplus)
26623size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26624#else
26625size_t iconv();
26626#endif
af15babd 26627
e6cc62c6
VS
26628int
26629main ()
26630{
26631
26632 ;
26633 return 0;
26634}
26635_ACEOF
26636rm -f conftest.$ac_objext
26637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26638 (eval $ac_compile) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } &&
26642 { ac_try='test -s conftest.$ac_objext'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; }; then
b7043674 26648 wx_cv_func_iconv_const="no"
b040e242 26649else
e6cc62c6
VS
26650 echo "$as_me: failed program was:" >&5
26651sed 's/^/| /' conftest.$ac_ext >&5
26652
26653wx_cv_func_iconv_const="yes"
26654
247f5006 26655fi
e6cc62c6 26656rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26657
e6cc62c6
VS
26658fi
26659echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26660echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26661
26662 iconv_const=
1c405bb5 26663 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26664 iconv_const="const"
26665 fi
26666
e6cc62c6
VS
26667
26668cat >>confdefs.h <<_ACEOF
f09359cf 26669#define ICONV_CONST $iconv_const
e6cc62c6 26670_ACEOF
b040e242
VS
26671
26672 fi
26673 LIBICONV=
26674 if test "$am_cv_lib_iconv" = yes; then
26675 LIBICONV="-liconv"
26676 fi
e6cc62c6 26677
b040e242
VS
26678
26679LIBS="$LIBICONV $LIBS"
4f14bcd8 26680ac_ext=c
4f14bcd8 26681ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26684ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26685
5c6fa7d2 26686
8284b0c5 26687if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26688
26689for ac_func in sigaction
af15babd 26690do
e6cc62c6
VS
26691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26692echo "$as_me:$LINENO: checking for $ac_func" >&5
26693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26694if eval "test \"\${$as_ac_var+set}\" = set"; then
26695 echo $ECHO_N "(cached) $ECHO_C" >&6
26696else
26697 cat >conftest.$ac_ext <<_ACEOF
26698#line $LINENO "configure"
26699/* confdefs.h. */
26700_ACEOF
26701cat confdefs.h >>conftest.$ac_ext
26702cat >>conftest.$ac_ext <<_ACEOF
26703/* end confdefs.h. */
af15babd 26704/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26705 which can conflict with char $ac_func (); below.
26706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26707 <limits.h> exists even on freestanding compilers. */
26708#ifdef __STDC__
26709# include <limits.h>
26710#else
26711# include <assert.h>
26712#endif
af15babd 26713/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26714#ifdef __cplusplus
26715extern "C"
26716{
26717#endif
af15babd 26718/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26719 builtin and then its argument prototype would still apply. */
26720char $ac_func ();
af15babd
VZ
26721/* The GNU C library defines this for functions which it implements
26722 to always fail with ENOSYS. Some functions are actually named
26723 something starting with __ and the normal name is an alias. */
26724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26725choke me
26726#else
e6cc62c6
VS
26727char (*f) () = $ac_func;
26728#endif
26729#ifdef __cplusplus
26730}
af15babd
VZ
26731#endif
26732
e6cc62c6
VS
26733int
26734main ()
26735{
26736return f != $ac_func;
26737 ;
26738 return 0;
26739}
26740_ACEOF
26741rm -f conftest.$ac_objext conftest$ac_exeext
26742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26743 (eval $ac_link) 2>&5
26744 ac_status=$?
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } &&
26747 { ac_try='test -s conftest$ac_exeext'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; }; then
26753 eval "$as_ac_var=yes"
26754else
26755 echo "$as_me: failed program was:" >&5
26756sed 's/^/| /' conftest.$ac_ext >&5
26757
26758eval "$as_ac_var=no"
26759fi
26760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26761fi
26762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26764if test `eval echo '${'$as_ac_var'}'` = yes; then
26765 cat >>confdefs.h <<_ACEOF
26766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26767_ACEOF
7b4a847f 26768
4f14bcd8
GD
26769fi
26770done
26771
8284b0c5 26772
4f14bcd8 26773 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26774 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26775echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26776 wxUSE_ON_FATAL_EXCEPTION=no
26777 fi
26778
26779 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26780
26781
26782 ac_ext=cc
5c6fa7d2 26783ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26787
5c6fa7d2 26788
e6cc62c6
VS
26789 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26790echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26791if test "${wx_cv_type_sa_handler+set}" = set; then
26792 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26793else
e6cc62c6
VS
26794
26795 cat >conftest.$ac_ext <<_ACEOF
26796#line $LINENO "configure"
26797/* confdefs.h. */
26798_ACEOF
26799cat confdefs.h >>conftest.$ac_ext
26800cat >>conftest.$ac_ext <<_ACEOF
26801/* end confdefs.h. */
4f14bcd8 26802#include <signal.h>
e6cc62c6
VS
26803int
26804main ()
26805{
4f14bcd8
GD
26806
26807 extern void testSigHandler(int);
26808
26809 struct sigaction sa;
26810 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26811
26812 ;
26813 return 0;
26814}
26815_ACEOF
26816rm -f conftest.$ac_objext
26817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26818 (eval $ac_compile) 2>&5
26819 ac_status=$?
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); } &&
26822 { ac_try='test -s conftest.$ac_objext'
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; }; then
26828
4f14bcd8 26829 wx_cv_type_sa_handler=int
e6cc62c6 26830
af15babd 26831else
e6cc62c6
VS
26832 echo "$as_me: failed program was:" >&5
26833sed 's/^/| /' conftest.$ac_ext >&5
26834
26835
4f14bcd8 26836 wx_cv_type_sa_handler=void
e6cc62c6 26837
247f5006 26838fi
e6cc62c6 26839rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26840
e6cc62c6
VS
26841fi
26842echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26843echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
26844
26845 ac_ext=c
4f14bcd8 26846ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26849ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 26850
8284b0c5 26851
e6cc62c6 26852 cat >>confdefs.h <<_ACEOF
4f14bcd8 26853#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 26854_ACEOF
af15babd 26855
4f14bcd8
GD
26856 fi
26857fi
af15babd 26858
e6cc62c6
VS
26859
26860
a1d22ad7 26861for ac_func in mkstemp mktemp
af15babd 26862do
e6cc62c6
VS
26863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26864echo "$as_me:$LINENO: checking for $ac_func" >&5
26865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26866if eval "test \"\${$as_ac_var+set}\" = set"; then
26867 echo $ECHO_N "(cached) $ECHO_C" >&6
26868else
26869 cat >conftest.$ac_ext <<_ACEOF
26870#line $LINENO "configure"
26871/* confdefs.h. */
26872_ACEOF
26873cat confdefs.h >>conftest.$ac_ext
26874cat >>conftest.$ac_ext <<_ACEOF
26875/* end confdefs.h. */
af15babd 26876/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26877 which can conflict with char $ac_func (); below.
26878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26879 <limits.h> exists even on freestanding compilers. */
26880#ifdef __STDC__
26881# include <limits.h>
26882#else
26883# include <assert.h>
26884#endif
af15babd 26885/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26886#ifdef __cplusplus
26887extern "C"
26888{
26889#endif
af15babd 26890/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26891 builtin and then its argument prototype would still apply. */
26892char $ac_func ();
af15babd
VZ
26893/* The GNU C library defines this for functions which it implements
26894 to always fail with ENOSYS. Some functions are actually named
26895 something starting with __ and the normal name is an alias. */
26896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26897choke me
26898#else
e6cc62c6
VS
26899char (*f) () = $ac_func;
26900#endif
26901#ifdef __cplusplus
26902}
af15babd
VZ
26903#endif
26904
e6cc62c6
VS
26905int
26906main ()
26907{
26908return f != $ac_func;
26909 ;
26910 return 0;
26911}
26912_ACEOF
26913rm -f conftest.$ac_objext conftest$ac_exeext
26914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26915 (eval $ac_link) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); } &&
26919 { ac_try='test -s conftest$ac_exeext'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 eval "$as_ac_var=yes"
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930eval "$as_ac_var=no"
26931fi
26932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26933fi
26934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26936if test `eval echo '${'$as_ac_var'}'` = yes; then
26937 cat >>confdefs.h <<_ACEOF
26938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26939_ACEOF
ade35f11 26940 break
ade35f11
VZ
26941fi
26942done
26943
8284b0c5 26944
e6cc62c6
VS
26945echo "$as_me:$LINENO: checking for statfs" >&5
26946echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26947if test "${wx_cv_func_statfs+set}" = set; then
26948 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26949else
e6cc62c6
VS
26950 cat >conftest.$ac_ext <<_ACEOF
26951#line $LINENO "configure"
26952/* confdefs.h. */
26953_ACEOF
26954cat confdefs.h >>conftest.$ac_ext
26955cat >>conftest.$ac_ext <<_ACEOF
26956/* end confdefs.h. */
4f14bcd8
GD
26957
26958 #if defined(__BSD__)
26959 #include <sys/param.h>
26960 #include <sys/mount.h>
26961 #else
26962 #include <sys/vfs.h>
26963 #endif
e6cc62c6
VS
26964
26965int
26966main ()
26967{
4f14bcd8
GD
26968
26969 long l;
26970 struct statfs fs;
26971 statfs("/", &fs);
26972 l = fs.f_bsize;
26973 l += fs.f_blocks;
26974 l += fs.f_bavail;
e6cc62c6
VS
26975
26976 ;
26977 return 0;
26978}
26979_ACEOF
26980rm -f conftest.$ac_objext
26981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26982 (eval $ac_compile) 2>&5
26983 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
26986 { ac_try='test -s conftest.$ac_objext'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; }; then
26992
4f14bcd8 26993 wx_cv_func_statfs=yes
e6cc62c6 26994
4f14bcd8 26995else
e6cc62c6
VS
26996 echo "$as_me: failed program was:" >&5
26997sed 's/^/| /' conftest.$ac_ext >&5
26998
26999
4f14bcd8 27000 wx_cv_func_statfs=no
e6cc62c6 27001
8284b0c5 27002
247f5006 27003fi
e6cc62c6 27004rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27005
e6cc62c6
VS
27006fi
27007echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27008echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27009
27010if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27011 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27012 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27013#define HAVE_STATFS 1
e6cc62c6 27014_ACEOF
4f14bcd8
GD
27015
27016else
e6cc62c6
VS
27017 echo "$as_me:$LINENO: checking for statvfs" >&5
27018echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27019if test "${wx_cv_func_statvfs+set}" = set; then
27020 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27021else
e6cc62c6
VS
27022 cat >conftest.$ac_ext <<_ACEOF
27023#line $LINENO "configure"
27024/* confdefs.h. */
27025_ACEOF
27026cat confdefs.h >>conftest.$ac_ext
27027cat >>conftest.$ac_ext <<_ACEOF
27028/* end confdefs.h. */
af15babd 27029
54ab82b3
VZ
27030 #include <stddef.h>
27031 #include <sys/statvfs.h>
e6cc62c6
VS
27032
27033int
27034main ()
27035{
af15babd 27036
54ab82b3 27037 statvfs("/", NULL);
e6cc62c6
VS
27038
27039 ;
27040 return 0;
27041}
27042_ACEOF
27043rm -f conftest.$ac_objext
27044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27045 (eval $ac_compile) 2>&5
27046 ac_status=$?
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } &&
27049 { ac_try='test -s conftest.$ac_objext'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27052 ac_status=$?
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
54ab82b3 27055 wx_cv_func_statvfs=yes
af15babd 27056else
e6cc62c6
VS
27057 echo "$as_me: failed program was:" >&5
27058sed 's/^/| /' conftest.$ac_ext >&5
27059
27060wx_cv_func_statvfs=no
27061
247f5006 27062fi
e6cc62c6 27063rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27064
e6cc62c6
VS
27065fi
27066echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27067echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27068
4f14bcd8 27069 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27070
27071
27072 ac_ext=cc
54ab82b3 27073ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27077
27078
e6cc62c6
VS
27079 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27080echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27081if test "${wx_cv_type_statvfs_t+set}" = set; then
27082 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27083else
e6cc62c6
VS
27084 cat >conftest.$ac_ext <<_ACEOF
27085#line $LINENO "configure"
27086/* confdefs.h. */
27087_ACEOF
27088cat confdefs.h >>conftest.$ac_ext
27089cat >>conftest.$ac_ext <<_ACEOF
27090/* end confdefs.h. */
54ab82b3
VZ
27091
27092 #include <sys/statvfs.h>
e6cc62c6
VS
27093
27094int
27095main ()
27096{
54ab82b3
VZ
27097
27098 long l;
27099 statvfs_t fs;
27100 statvfs("/", &fs);
27101 l = fs.f_bsize;
27102 l += fs.f_blocks;
27103 l += fs.f_bavail;
e6cc62c6
VS
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
54ab82b3
VZ
27121 wx_cv_type_statvfs_t=statvfs_t
27122else
e6cc62c6
VS
27123 echo "$as_me: failed program was:" >&5
27124sed 's/^/| /' conftest.$ac_ext >&5
27125
27126
27127 cat >conftest.$ac_ext <<_ACEOF
27128#line $LINENO "configure"
27129/* confdefs.h. */
27130_ACEOF
27131cat confdefs.h >>conftest.$ac_ext
27132cat >>conftest.$ac_ext <<_ACEOF
27133/* end confdefs.h. */
54ab82b3
VZ
27134
27135 #include <sys/statvfs.h>
e6cc62c6
VS
27136
27137int
27138main ()
27139{
54ab82b3
VZ
27140
27141 long l;
65d8ef1e 27142 struct statvfs fs;
54ab82b3
VZ
27143 statvfs("/", &fs);
27144 l = fs.f_bsize;
27145 l += fs.f_blocks;
27146 l += fs.f_bavail;
e6cc62c6
VS
27147
27148 ;
27149 return 0;
27150}
27151_ACEOF
27152rm -f conftest.$ac_objext
27153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27154 (eval $ac_compile) 2>&5
27155 ac_status=$?
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); } &&
27158 { ac_try='test -s conftest.$ac_objext'
27159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27160 (eval $ac_try) 2>&5
27161 ac_status=$?
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); }; }; then
54ab82b3
VZ
27164 wx_cv_type_statvfs_t="struct statvfs"
27165else
e6cc62c6
VS
27166 echo "$as_me: failed program was:" >&5
27167sed 's/^/| /' conftest.$ac_ext >&5
27168
27169wx_cv_type_statvfs_t="unknown"
27170
54ab82b3 27171fi
e6cc62c6
VS
27172rm -f conftest.$ac_objext conftest.$ac_ext
27173
27174
54ab82b3 27175fi
e6cc62c6 27176rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27177
e6cc62c6
VS
27178fi
27179echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27180echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27181
27182 ac_ext=c
54ab82b3 27183ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27186ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27187
27188
27189 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27190 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27191#define HAVE_STATVFS 1
e6cc62c6 27192_ACEOF
af15babd 27193
54ab82b3 27194 fi
4f14bcd8 27195 else
54ab82b3 27196 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27197 fi
27198fi
af15babd 27199
54ab82b3 27200if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27201 cat >>confdefs.h <<_ACEOF
54ab82b3 27202#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27203_ACEOF
54ab82b3
VZ
27204
27205else
e6cc62c6
VS
27206 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27207echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27208fi
27209
4f14bcd8 27210if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27211
27212
27213for ac_func in fcntl flock
af15babd 27214do
e6cc62c6
VS
27215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27216echo "$as_me:$LINENO: checking for $ac_func" >&5
27217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27218if eval "test \"\${$as_ac_var+set}\" = set"; then
27219 echo $ECHO_N "(cached) $ECHO_C" >&6
27220else
27221 cat >conftest.$ac_ext <<_ACEOF
27222#line $LINENO "configure"
27223/* confdefs.h. */
27224_ACEOF
27225cat confdefs.h >>conftest.$ac_ext
27226cat >>conftest.$ac_ext <<_ACEOF
27227/* end confdefs.h. */
af15babd 27228/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27229 which can conflict with char $ac_func (); below.
27230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27231 <limits.h> exists even on freestanding compilers. */
27232#ifdef __STDC__
27233# include <limits.h>
27234#else
27235# include <assert.h>
27236#endif
af15babd 27237/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27238#ifdef __cplusplus
27239extern "C"
27240{
27241#endif
af15babd 27242/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27243 builtin and then its argument prototype would still apply. */
27244char $ac_func ();
af15babd
VZ
27245/* The GNU C library defines this for functions which it implements
27246 to always fail with ENOSYS. Some functions are actually named
27247 something starting with __ and the normal name is an alias. */
27248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27249choke me
27250#else
e6cc62c6
VS
27251char (*f) () = $ac_func;
27252#endif
27253#ifdef __cplusplus
27254}
af15babd
VZ
27255#endif
27256
e6cc62c6
VS
27257int
27258main ()
27259{
27260return f != $ac_func;
27261 ;
27262 return 0;
27263}
27264_ACEOF
27265rm -f conftest.$ac_objext conftest$ac_exeext
27266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27267 (eval $ac_link) 2>&5
27268 ac_status=$?
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); } &&
27271 { ac_try='test -s conftest$ac_exeext'
27272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27273 (eval $ac_try) 2>&5
27274 ac_status=$?
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; }; then
27277 eval "$as_ac_var=yes"
27278else
27279 echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
27282eval "$as_ac_var=no"
27283fi
27284rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27285fi
27286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27288if test `eval echo '${'$as_ac_var'}'` = yes; then
27289 cat >>confdefs.h <<_ACEOF
27290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27291_ACEOF
4f14bcd8 27292 break
af15babd
VZ
27293fi
27294done
27295
8284b0c5 27296
4f14bcd8 27297 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27298 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27299echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27300 wxUSE_SNGLINST_CHECKER=no
27301 fi
27302fi
af15babd 27303
e6cc62c6 27304
4f14bcd8 27305for ac_func in timegm
af15babd 27306do
e6cc62c6
VS
27307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27308echo "$as_me:$LINENO: checking for $ac_func" >&5
27309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27310if eval "test \"\${$as_ac_var+set}\" = set"; then
27311 echo $ECHO_N "(cached) $ECHO_C" >&6
27312else
27313 cat >conftest.$ac_ext <<_ACEOF
27314#line $LINENO "configure"
27315/* confdefs.h. */
27316_ACEOF
27317cat confdefs.h >>conftest.$ac_ext
27318cat >>conftest.$ac_ext <<_ACEOF
27319/* end confdefs.h. */
af15babd 27320/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27321 which can conflict with char $ac_func (); below.
27322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27323 <limits.h> exists even on freestanding compilers. */
27324#ifdef __STDC__
27325# include <limits.h>
27326#else
27327# include <assert.h>
27328#endif
af15babd 27329/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27330#ifdef __cplusplus
27331extern "C"
27332{
27333#endif
af15babd 27334/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27335 builtin and then its argument prototype would still apply. */
27336char $ac_func ();
af15babd
VZ
27337/* The GNU C library defines this for functions which it implements
27338 to always fail with ENOSYS. Some functions are actually named
27339 something starting with __ and the normal name is an alias. */
247f5006
VZ
27340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27341choke me
27342#else
e6cc62c6
VS
27343char (*f) () = $ac_func;
27344#endif
27345#ifdef __cplusplus
27346}
247f5006
VZ
27347#endif
27348
e6cc62c6
VS
27349int
27350main ()
27351{
27352return f != $ac_func;
27353 ;
27354 return 0;
27355}
27356_ACEOF
27357rm -f conftest.$ac_objext conftest$ac_exeext
27358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27359 (eval $ac_link) 2>&5
27360 ac_status=$?
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } &&
27363 { ac_try='test -s conftest$ac_exeext'
27364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365 (eval $ac_try) 2>&5
27366 ac_status=$?
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; }; then
27369 eval "$as_ac_var=yes"
27370else
27371 echo "$as_me: failed program was:" >&5
27372sed 's/^/| /' conftest.$ac_ext >&5
27373
27374eval "$as_ac_var=no"
27375fi
27376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27377fi
27378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27380if test `eval echo '${'$as_ac_var'}'` = yes; then
27381 cat >>confdefs.h <<_ACEOF
27382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27383_ACEOF
703e0a69 27384
af15babd
VZ
27385fi
27386done
27387
8284b0c5 27388
e6cc62c6
VS
27389
27390
4f14bcd8 27391for ac_func in putenv setenv
10f2d63a 27392do
e6cc62c6
VS
27393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27394echo "$as_me:$LINENO: checking for $ac_func" >&5
27395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27396if eval "test \"\${$as_ac_var+set}\" = set"; then
27397 echo $ECHO_N "(cached) $ECHO_C" >&6
27398else
27399 cat >conftest.$ac_ext <<_ACEOF
27400#line $LINENO "configure"
27401/* confdefs.h. */
27402_ACEOF
27403cat confdefs.h >>conftest.$ac_ext
27404cat >>conftest.$ac_ext <<_ACEOF
27405/* end confdefs.h. */
af15babd 27406/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27407 which can conflict with char $ac_func (); below.
27408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27409 <limits.h> exists even on freestanding compilers. */
27410#ifdef __STDC__
27411# include <limits.h>
27412#else
27413# include <assert.h>
27414#endif
af15babd 27415/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27416#ifdef __cplusplus
27417extern "C"
27418{
27419#endif
af15babd 27420/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27421 builtin and then its argument prototype would still apply. */
27422char $ac_func ();
af15babd
VZ
27423/* The GNU C library defines this for functions which it implements
27424 to always fail with ENOSYS. Some functions are actually named
27425 something starting with __ and the normal name is an alias. */
27426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27427choke me
27428#else
e6cc62c6
VS
27429char (*f) () = $ac_func;
27430#endif
27431#ifdef __cplusplus
27432}
af15babd
VZ
27433#endif
27434
e6cc62c6
VS
27435int
27436main ()
27437{
27438return f != $ac_func;
27439 ;
27440 return 0;
27441}
27442_ACEOF
27443rm -f conftest.$ac_objext conftest$ac_exeext
27444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27445 (eval $ac_link) 2>&5
27446 ac_status=$?
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); } &&
27449 { ac_try='test -s conftest$ac_exeext'
27450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27452 ac_status=$?
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; }; then
27455 eval "$as_ac_var=yes"
27456else
27457 echo "$as_me: failed program was:" >&5
27458sed 's/^/| /' conftest.$ac_ext >&5
27459
27460eval "$as_ac_var=no"
27461fi
27462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27463fi
27464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27465echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27466if test `eval echo '${'$as_ac_var'}'` = yes; then
27467 cat >>confdefs.h <<_ACEOF
27468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27469_ACEOF
4f14bcd8 27470 break
af15babd 27471fi
af15babd
VZ
27472done
27473
8284b0c5 27474
4f14bcd8
GD
27475HAVE_SOME_SLEEP_FUNC=0
27476if test "$USE_BEOS" = 1; then
e6cc62c6 27477 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27478#define HAVE_SLEEP 1
e6cc62c6 27479_ACEOF
af15babd 27480
4f14bcd8 27481 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27482fi
27483
4f14bcd8 27484if test "$USE_DARWIN" = 1; then
e6cc62c6 27485 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27486#define HAVE_USLEEP 1
e6cc62c6 27487_ACEOF
10f2d63a 27488
4f14bcd8 27489 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27490fi
27491
4f14bcd8
GD
27492if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27493 POSIX4_LINK=
e6cc62c6
VS
27494
27495for ac_func in nanosleep
4f14bcd8 27496do
e6cc62c6
VS
27497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27498echo "$as_me:$LINENO: checking for $ac_func" >&5
27499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27500if eval "test \"\${$as_ac_var+set}\" = set"; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502else
27503 cat >conftest.$ac_ext <<_ACEOF
27504#line $LINENO "configure"
27505/* confdefs.h. */
27506_ACEOF
27507cat confdefs.h >>conftest.$ac_ext
27508cat >>conftest.$ac_ext <<_ACEOF
27509/* end confdefs.h. */
4f14bcd8 27510/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27511 which can conflict with char $ac_func (); below.
27512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27513 <limits.h> exists even on freestanding compilers. */
27514#ifdef __STDC__
27515# include <limits.h>
27516#else
27517# include <assert.h>
27518#endif
10f2d63a 27519/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27520#ifdef __cplusplus
27521extern "C"
27522{
27523#endif
10f2d63a 27524/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27525 builtin and then its argument prototype would still apply. */
27526char $ac_func ();
4f14bcd8
GD
27527/* The GNU C library defines this for functions which it implements
27528 to always fail with ENOSYS. Some functions are actually named
27529 something starting with __ and the normal name is an alias. */
27530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27531choke me
27532#else
e6cc62c6
VS
27533char (*f) () = $ac_func;
27534#endif
27535#ifdef __cplusplus
27536}
4f14bcd8
GD
27537#endif
27538
e6cc62c6
VS
27539int
27540main ()
27541{
27542return f != $ac_func;
27543 ;
27544 return 0;
27545}
27546_ACEOF
27547rm -f conftest.$ac_objext conftest$ac_exeext
27548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27549 (eval $ac_link) 2>&5
27550 ac_status=$?
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); } &&
27553 { ac_try='test -s conftest$ac_exeext'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27556 ac_status=$?
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559 eval "$as_ac_var=yes"
27560else
27561 echo "$as_me: failed program was:" >&5
27562sed 's/^/| /' conftest.$ac_ext >&5
27563
27564eval "$as_ac_var=no"
27565fi
27566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27567fi
27568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27570if test `eval echo '${'$as_ac_var'}'` = yes; then
27571 cat >>confdefs.h <<_ACEOF
27572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27573_ACEOF
27574 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27575#define HAVE_NANOSLEEP 1
e6cc62c6 27576_ACEOF
4f14bcd8 27577
10f2d63a 27578else
e6cc62c6
VS
27579
27580 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27581echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27582if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27584else
e6cc62c6 27585 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27586LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27587cat >conftest.$ac_ext <<_ACEOF
27588#line $LINENO "configure"
27589/* confdefs.h. */
27590_ACEOF
27591cat confdefs.h >>conftest.$ac_ext
27592cat >>conftest.$ac_ext <<_ACEOF
27593/* end confdefs.h. */
27594
10f2d63a 27595/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27596#ifdef __cplusplus
27597extern "C"
27598#endif
10f2d63a 27599/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27600 builtin and then its argument prototype would still apply. */
27601char nanosleep ();
27602int
27603main ()
27604{
27605nanosleep ();
27606 ;
27607 return 0;
27608}
27609_ACEOF
27610rm -f conftest.$ac_objext conftest$ac_exeext
27611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27612 (eval $ac_link) 2>&5
27613 ac_status=$?
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } &&
27616 { ac_try='test -s conftest$ac_exeext'
27617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618 (eval $ac_try) 2>&5
27619 ac_status=$?
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); }; }; then
27622 ac_cv_lib_posix4_nanosleep=yes
27623else
27624 echo "$as_me: failed program was:" >&5
27625sed 's/^/| /' conftest.$ac_ext >&5
27626
27627ac_cv_lib_posix4_nanosleep=no
27628fi
27629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27630LIBS=$ac_check_lib_save_LIBS
27631fi
27632echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27633echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27634if test $ac_cv_lib_posix4_nanosleep = yes; then
27635
27636 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27637#define HAVE_NANOSLEEP 1
e6cc62c6 27638_ACEOF
4f14bcd8 27639
3d63bc3a 27640 POSIX4_LINK=" -lposix4"
e6cc62c6 27641
10f2d63a 27642else
10f2d63a 27643
e6cc62c6
VS
27644
27645for ac_func in usleep
4f14bcd8 27646do
e6cc62c6
VS
27647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27648echo "$as_me:$LINENO: checking for $ac_func" >&5
27649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27650if eval "test \"\${$as_ac_var+set}\" = set"; then
27651 echo $ECHO_N "(cached) $ECHO_C" >&6
27652else
27653 cat >conftest.$ac_ext <<_ACEOF
27654#line $LINENO "configure"
27655/* confdefs.h. */
27656_ACEOF
27657cat confdefs.h >>conftest.$ac_ext
27658cat >>conftest.$ac_ext <<_ACEOF
27659/* end confdefs.h. */
4f14bcd8 27660/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27661 which can conflict with char $ac_func (); below.
27662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27663 <limits.h> exists even on freestanding compilers. */
27664#ifdef __STDC__
27665# include <limits.h>
27666#else
27667# include <assert.h>
27668#endif
4f14bcd8 27669/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27670#ifdef __cplusplus
27671extern "C"
27672{
27673#endif
4f14bcd8 27674/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27675 builtin and then its argument prototype would still apply. */
27676char $ac_func ();
4f14bcd8
GD
27677/* The GNU C library defines this for functions which it implements
27678 to always fail with ENOSYS. Some functions are actually named
27679 something starting with __ and the normal name is an alias. */
27680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27681choke me
27682#else
e6cc62c6
VS
27683char (*f) () = $ac_func;
27684#endif
27685#ifdef __cplusplus
27686}
4f14bcd8
GD
27687#endif
27688
e6cc62c6
VS
27689int
27690main ()
27691{
27692return f != $ac_func;
27693 ;
27694 return 0;
27695}
27696_ACEOF
27697rm -f conftest.$ac_objext conftest$ac_exeext
27698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27699 (eval $ac_link) 2>&5
27700 ac_status=$?
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); } &&
27703 { ac_try='test -s conftest$ac_exeext'
27704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705 (eval $ac_try) 2>&5
27706 ac_status=$?
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; }; then
27709 eval "$as_ac_var=yes"
27710else
27711 echo "$as_me: failed program was:" >&5
27712sed 's/^/| /' conftest.$ac_ext >&5
27713
27714eval "$as_ac_var=no"
27715fi
27716rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27717fi
27718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27719echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27720if test `eval echo '${'$as_ac_var'}'` = yes; then
27721 cat >>confdefs.h <<_ACEOF
27722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27723_ACEOF
27724 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27725#define HAVE_USLEEP 1
e6cc62c6 27726_ACEOF
4f14bcd8 27727
698dcdb6 27728else
e6cc62c6
VS
27729 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27730echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27731
10f2d63a 27732fi
4f14bcd8 27733done
10f2d63a 27734
e6cc62c6
VS
27735
27736
6232543b 27737fi
10f2d63a 27738
e6cc62c6
VS
27739
27740
1e487827 27741fi
4f14bcd8 27742done
703e0a69 27743
10f2d63a
VZ
27744fi
27745
e6cc62c6
VS
27746
27747
4f14bcd8 27748for ac_func in uname gethostname
70846f0a 27749do
e6cc62c6
VS
27750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27751echo "$as_me:$LINENO: checking for $ac_func" >&5
27752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27753if eval "test \"\${$as_ac_var+set}\" = set"; then
27754 echo $ECHO_N "(cached) $ECHO_C" >&6
27755else
27756 cat >conftest.$ac_ext <<_ACEOF
27757#line $LINENO "configure"
27758/* confdefs.h. */
27759_ACEOF
27760cat confdefs.h >>conftest.$ac_ext
27761cat >>conftest.$ac_ext <<_ACEOF
27762/* end confdefs.h. */
70846f0a 27763/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27764 which can conflict with char $ac_func (); below.
27765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27766 <limits.h> exists even on freestanding compilers. */
27767#ifdef __STDC__
27768# include <limits.h>
27769#else
27770# include <assert.h>
27771#endif
70846f0a 27772/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27773#ifdef __cplusplus
27774extern "C"
27775{
27776#endif
70846f0a 27777/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27778 builtin and then its argument prototype would still apply. */
27779char $ac_func ();
70846f0a
VZ
27780/* The GNU C library defines this for functions which it implements
27781 to always fail with ENOSYS. Some functions are actually named
27782 something starting with __ and the normal name is an alias. */
27783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27784choke me
27785#else
e6cc62c6
VS
27786char (*f) () = $ac_func;
27787#endif
27788#ifdef __cplusplus
27789}
70846f0a
VZ
27790#endif
27791
e6cc62c6
VS
27792int
27793main ()
27794{
27795return f != $ac_func;
27796 ;
27797 return 0;
27798}
27799_ACEOF
27800rm -f conftest.$ac_objext conftest$ac_exeext
27801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27802 (eval $ac_link) 2>&5
27803 ac_status=$?
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); } &&
27806 { ac_try='test -s conftest$ac_exeext'
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27809 ac_status=$?
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
27812 eval "$as_ac_var=yes"
27813else
27814 echo "$as_me: failed program was:" >&5
27815sed 's/^/| /' conftest.$ac_ext >&5
27816
27817eval "$as_ac_var=no"
27818fi
27819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27820fi
27821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27823if test `eval echo '${'$as_ac_var'}'` = yes; then
27824 cat >>confdefs.h <<_ACEOF
27825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27826_ACEOF
4f14bcd8 27827 break
70846f0a
VZ
27828fi
27829done
27830
8284b0c5
MB
27831
27832
e6cc62c6
VS
27833
27834ac_ext=cc
4f14bcd8 27835ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27839
8284b0c5 27840
4f14bcd8
GD
27841
27842for ac_func in strtok_r
10f2d63a 27843do
e6cc62c6
VS
27844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27845echo "$as_me:$LINENO: checking for $ac_func" >&5
27846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27847if eval "test \"\${$as_ac_var+set}\" = set"; then
27848 echo $ECHO_N "(cached) $ECHO_C" >&6
27849else
27850 cat >conftest.$ac_ext <<_ACEOF
27851#line $LINENO "configure"
27852/* confdefs.h. */
27853_ACEOF
27854cat confdefs.h >>conftest.$ac_ext
27855cat >>conftest.$ac_ext <<_ACEOF
27856/* end confdefs.h. */
4f14bcd8 27857/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27858 which can conflict with char $ac_func (); below.
27859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27860 <limits.h> exists even on freestanding compilers. */
27861#ifdef __STDC__
27862# include <limits.h>
27863#else
27864# include <assert.h>
27865#endif
4f14bcd8
GD
27866/* Override any gcc2 internal prototype to avoid an error. */
27867#ifdef __cplusplus
27868extern "C"
e6cc62c6 27869{
4f14bcd8
GD
27870#endif
27871/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27872 builtin and then its argument prototype would still apply. */
27873char $ac_func ();
4f14bcd8
GD
27874/* The GNU C library defines this for functions which it implements
27875 to always fail with ENOSYS. Some functions are actually named
27876 something starting with __ and the normal name is an alias. */
27877#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27878choke me
27879#else
e6cc62c6
VS
27880char (*f) () = $ac_func;
27881#endif
27882#ifdef __cplusplus
27883}
4f14bcd8
GD
27884#endif
27885
e6cc62c6
VS
27886int
27887main ()
27888{
27889return f != $ac_func;
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
27909sed 's/^/| /' conftest.$ac_ext >&5
27910
27911eval "$as_ac_var=no"
27912fi
27913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27914fi
27915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27917if test `eval echo '${'$as_ac_var'}'` = yes; then
27918 cat >>confdefs.h <<_ACEOF
27919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27920_ACEOF
4f14bcd8 27921
10f2d63a
VZ
27922fi
27923done
27924
8284b0c5 27925
4f14bcd8 27926ac_ext=c
4f14bcd8 27927ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27930ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27931
5c6fa7d2 27932
8284b0c5 27933INET_LINK=
e6cc62c6 27934
4f14bcd8
GD
27935for ac_func in inet_addr
27936do
e6cc62c6
VS
27937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27938echo "$as_me:$LINENO: checking for $ac_func" >&5
27939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27940if eval "test \"\${$as_ac_var+set}\" = set"; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27942else
27943 cat >conftest.$ac_ext <<_ACEOF
27944#line $LINENO "configure"
27945/* confdefs.h. */
27946_ACEOF
27947cat confdefs.h >>conftest.$ac_ext
27948cat >>conftest.$ac_ext <<_ACEOF
27949/* end confdefs.h. */
4f14bcd8 27950/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27951 which can conflict with char $ac_func (); below.
27952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27953 <limits.h> exists even on freestanding compilers. */
27954#ifdef __STDC__
27955# include <limits.h>
27956#else
27957# include <assert.h>
27958#endif
10f2d63a 27959/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27960#ifdef __cplusplus
27961extern "C"
27962{
27963#endif
10f2d63a 27964/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27965 builtin and then its argument prototype would still apply. */
27966char $ac_func ();
4f14bcd8
GD
27967/* The GNU C library defines this for functions which it implements
27968 to always fail with ENOSYS. Some functions are actually named
27969 something starting with __ and the normal name is an alias. */
27970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27971choke me
27972#else
e6cc62c6
VS
27973char (*f) () = $ac_func;
27974#endif
27975#ifdef __cplusplus
27976}
4f14bcd8
GD
27977#endif
27978
e6cc62c6
VS
27979int
27980main ()
27981{
27982return f != $ac_func;
27983 ;
27984 return 0;
27985}
27986_ACEOF
27987rm -f conftest.$ac_objext conftest$ac_exeext
27988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27989 (eval $ac_link) 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } &&
27993 { ac_try='test -s conftest$ac_exeext'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
27999 eval "$as_ac_var=yes"
28000else
28001 echo "$as_me: failed program was:" >&5
28002sed 's/^/| /' conftest.$ac_ext >&5
28003
28004eval "$as_ac_var=no"
28005fi
28006rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28007fi
28008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28010if test `eval echo '${'$as_ac_var'}'` = yes; then
28011 cat >>confdefs.h <<_ACEOF
28012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28013_ACEOF
28014 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28015#define HAVE_INET_ADDR 1
e6cc62c6 28016_ACEOF
10f2d63a
VZ
28017
28018else
e6cc62c6
VS
28019
28020 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28021echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28022if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28023 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28024else
e6cc62c6 28025 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28026LIBS="-lnsl $LIBS"
e6cc62c6
VS
28027cat >conftest.$ac_ext <<_ACEOF
28028#line $LINENO "configure"
28029/* confdefs.h. */
28030_ACEOF
28031cat confdefs.h >>conftest.$ac_ext
28032cat >>conftest.$ac_ext <<_ACEOF
28033/* end confdefs.h. */
28034
10f2d63a 28035/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28036#ifdef __cplusplus
28037extern "C"
28038#endif
10f2d63a 28039/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28040 builtin and then its argument prototype would still apply. */
28041char inet_addr ();
28042int
28043main ()
28044{
28045inet_addr ();
28046 ;
28047 return 0;
28048}
28049_ACEOF
28050rm -f conftest.$ac_objext conftest$ac_exeext
28051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28052 (eval $ac_link) 2>&5
28053 ac_status=$?
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } &&
28056 { ac_try='test -s conftest$ac_exeext'
28057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058 (eval $ac_try) 2>&5
28059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; }; then
28062 ac_cv_lib_nsl_inet_addr=yes
28063else
28064 echo "$as_me: failed program was:" >&5
28065sed 's/^/| /' conftest.$ac_ext >&5
28066
28067ac_cv_lib_nsl_inet_addr=no
28068fi
28069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28070LIBS=$ac_check_lib_save_LIBS
28071fi
28072echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28073echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28074if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28075 INET_LINK="nsl"
10f2d63a 28076else
e6cc62c6
VS
28077 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28078echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28079if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28080 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28081else
e6cc62c6 28082 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28083LIBS="-lresolv $LIBS"
e6cc62c6
VS
28084cat >conftest.$ac_ext <<_ACEOF
28085#line $LINENO "configure"
28086/* confdefs.h. */
28087_ACEOF
28088cat confdefs.h >>conftest.$ac_ext
28089cat >>conftest.$ac_ext <<_ACEOF
28090/* end confdefs.h. */
28091
5c6fa7d2 28092/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28093#ifdef __cplusplus
28094extern "C"
28095#endif
5c6fa7d2 28096/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28097 builtin and then its argument prototype would still apply. */
28098char inet_addr ();
28099int
28100main ()
28101{
28102inet_addr ();
28103 ;
28104 return 0;
28105}
28106_ACEOF
28107rm -f conftest.$ac_objext conftest$ac_exeext
28108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28109 (eval $ac_link) 2>&5
28110 ac_status=$?
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } &&
28113 { ac_try='test -s conftest$ac_exeext'
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28116 ac_status=$?
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; }; then
28119 ac_cv_lib_resolv_inet_addr=yes
28120else
28121 echo "$as_me: failed program was:" >&5
28122sed 's/^/| /' conftest.$ac_ext >&5
28123
28124ac_cv_lib_resolv_inet_addr=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_resolv_inet_addr" >&5
28130echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28131if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28132 INET_LINK="resolv"
698dcdb6 28133else
e6cc62c6
VS
28134 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28135echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28136if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28137 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28138else
e6cc62c6 28139 ac_check_lib_save_LIBS=$LIBS
3c011993 28140LIBS="-lsocket $LIBS"
e6cc62c6
VS
28141cat >conftest.$ac_ext <<_ACEOF
28142#line $LINENO "configure"
28143/* confdefs.h. */
28144_ACEOF
28145cat confdefs.h >>conftest.$ac_ext
28146cat >>conftest.$ac_ext <<_ACEOF
28147/* end confdefs.h. */
28148
3c011993 28149/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28150#ifdef __cplusplus
28151extern "C"
28152#endif
3c011993 28153/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28154 builtin and then its argument prototype would still apply. */
28155char inet_addr ();
28156int
28157main ()
28158{
28159inet_addr ();
28160 ;
28161 return 0;
28162}
28163_ACEOF
28164rm -f conftest.$ac_objext conftest$ac_exeext
28165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28166 (eval $ac_link) 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } &&
28170 { ac_try='test -s conftest$ac_exeext'
28171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28172 (eval $ac_try) 2>&5
28173 ac_status=$?
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; }; then
28176 ac_cv_lib_socket_inet_addr=yes
28177else
28178 echo "$as_me: failed program was:" >&5
28179sed 's/^/| /' conftest.$ac_ext >&5
28180
28181ac_cv_lib_socket_inet_addr=no
28182fi
28183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28184LIBS=$ac_check_lib_save_LIBS
28185fi
28186echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28187echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28188if test $ac_cv_lib_socket_inet_addr = yes; then
28189 INET_LINK="socket"
4f14bcd8 28190
8284b0c5 28191fi
e6cc62c6 28192
698dcdb6 28193
7b4a847f 28194fi
e6cc62c6
VS
28195
28196
a0b9e27f 28197fi
579d8138 28198
e6cc62c6
VS
28199
28200
5c6fa7d2 28201fi
e6cc62c6
VS
28202done
28203
28204
28205
28206for ac_func in inet_aton
28207do
28208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28209echo "$as_me:$LINENO: checking for $ac_func" >&5
28210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28211if eval "test \"\${$as_ac_var+set}\" = set"; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28213else
28214 cat >conftest.$ac_ext <<_ACEOF
28215#line $LINENO "configure"
28216/* confdefs.h. */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h. */
28221/* System header to define __stub macros and hopefully few prototypes,
28222 which can conflict with char $ac_func (); below.
28223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28224 <limits.h> exists even on freestanding compilers. */
28225#ifdef __STDC__
28226# include <limits.h>
28227#else
28228# include <assert.h>
28229#endif
28230/* Override any gcc2 internal prototype to avoid an error. */
28231#ifdef __cplusplus
28232extern "C"
28233{
28234#endif
28235/* We use char because int might match the return type of a gcc2
28236 builtin and then its argument prototype would still apply. */
28237char $ac_func ();
28238/* The GNU C library defines this for functions which it implements
28239 to always fail with ENOSYS. Some functions are actually named
28240 something starting with __ and the normal name is an alias. */
28241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28242choke me
28243#else
28244char (*f) () = $ac_func;
28245#endif
28246#ifdef __cplusplus
28247}
28248#endif
28249
28250int
28251main ()
28252{
28253return f != $ac_func;
28254 ;
28255 return 0;
28256}
28257_ACEOF
28258rm -f conftest.$ac_objext conftest$ac_exeext
28259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28260 (eval $ac_link) 2>&5
28261 ac_status=$?
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } &&
28264 { ac_try='test -s conftest$ac_exeext'
28265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266 (eval $ac_try) 2>&5
28267 ac_status=$?
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; }; then
28270 eval "$as_ac_var=yes"
28271else
28272 echo "$as_me: failed program was:" >&5
28273sed 's/^/| /' conftest.$ac_ext >&5
28274
28275eval "$as_ac_var=no"
28276fi
28277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28278fi
28279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28281if test `eval echo '${'$as_ac_var'}'` = yes; then
28282 cat >>confdefs.h <<_ACEOF
28283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28284_ACEOF
28285 cat >>confdefs.h <<\_ACEOF
28286#define HAVE_INET_ATON 1
28287_ACEOF
28288
28289else
28290
28291 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28292echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28293echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28294if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28295 echo $ECHO_N "(cached) $ECHO_C" >&6
28296else
28297 ac_check_lib_save_LIBS=$LIBS
28298LIBS="-l$INET_LINK $LIBS"
28299cat >conftest.$ac_ext <<_ACEOF
28300#line $LINENO "configure"
28301/* confdefs.h. */
28302_ACEOF
28303cat confdefs.h >>conftest.$ac_ext
28304cat >>conftest.$ac_ext <<_ACEOF
28305/* end confdefs.h. */
28306
28307/* Override any gcc2 internal prototype to avoid an error. */
28308#ifdef __cplusplus
28309extern "C"
28310#endif
28311/* We use char because int might match the return type of a gcc2
28312 builtin and then its argument prototype would still apply. */
28313char inet_aton ();
28314int
28315main ()
28316{
28317inet_aton ();
28318 ;
28319 return 0;
28320}
28321_ACEOF
28322rm -f conftest.$ac_objext conftest$ac_exeext
28323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28324 (eval $ac_link) 2>&5
28325 ac_status=$?
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); } &&
28328 { ac_try='test -s conftest$ac_exeext'
28329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28330 (eval $ac_try) 2>&5
28331 ac_status=$?
28332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333 (exit $ac_status); }; }; then
28334 eval "$as_ac_Lib=yes"
28335else
28336 echo "$as_me: failed program was:" >&5
28337sed 's/^/| /' conftest.$ac_ext >&5
28338
28339eval "$as_ac_Lib=no"
28340fi
28341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28342LIBS=$ac_check_lib_save_LIBS
28343fi
28344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28345echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28346if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28347 cat >>confdefs.h <<\_ACEOF
28348#define HAVE_INET_ATON 1
28349_ACEOF
52127426 28350
a0b9e27f 28351fi
247f5006 28352
8284b0c5 28353
698dcdb6 28354fi
4f14bcd8
GD
28355done
28356
8284b0c5 28357
e6cc62c6
VS
28358if test "x$INET_LINK" != "x"; then
28359 cat >>confdefs.h <<\_ACEOF
28360#define HAVE_INET_ADDR 1
28361_ACEOF
28362
28363 INET_LINK=" -l$INET_LINK"
28364fi
28365
28366fi
a0b9e27f 28367
a0b9e27f 28368
4f14bcd8 28369
e6cc62c6
VS
28370ESD_LINK=
28371if test "${ac_cv_header_esd_h+set}" = set; then
28372 echo "$as_me:$LINENO: checking for esd.h" >&5
28373echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28374if test "${ac_cv_header_esd_h+set}" = set; then
28375 echo $ECHO_N "(cached) $ECHO_C" >&6
28376fi
28377echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28378echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28379else
28380 # Is the header compilable?
28381echo "$as_me:$LINENO: checking esd.h usability" >&5
28382echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28383cat >conftest.$ac_ext <<_ACEOF
28384#line $LINENO "configure"
28385/* confdefs.h. */
28386_ACEOF
28387cat confdefs.h >>conftest.$ac_ext
28388cat >>conftest.$ac_ext <<_ACEOF
28389/* end confdefs.h. */
28390$ac_includes_default
28391#include <esd.h>
28392_ACEOF
28393rm -f conftest.$ac_objext
28394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28395 (eval $ac_compile) 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); } &&
28399 { ac_try='test -s conftest.$ac_objext'
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28402 ac_status=$?
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405 ac_header_compiler=yes
28406else
28407 echo "$as_me: failed program was:" >&5
28408sed 's/^/| /' conftest.$ac_ext >&5
28409
28410ac_header_compiler=no
28411fi
28412rm -f conftest.$ac_objext conftest.$ac_ext
28413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28414echo "${ECHO_T}$ac_header_compiler" >&6
28415
28416# Is the header present?
28417echo "$as_me:$LINENO: checking esd.h presence" >&5
28418echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28419cat >conftest.$ac_ext <<_ACEOF
28420#line $LINENO "configure"
28421/* confdefs.h. */
28422_ACEOF
28423cat confdefs.h >>conftest.$ac_ext
28424cat >>conftest.$ac_ext <<_ACEOF
28425/* end confdefs.h. */
28426#include <esd.h>
28427_ACEOF
28428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28430 ac_status=$?
28431 grep -v '^ *+' conftest.er1 >conftest.err
28432 rm -f conftest.er1
28433 cat conftest.err >&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } >/dev/null; then
28436 if test -s conftest.err; then
28437 ac_cpp_err=$ac_c_preproc_warn_flag
28438 else
28439 ac_cpp_err=
28440 fi
a0b9e27f 28441else
e6cc62c6
VS
28442 ac_cpp_err=yes
28443fi
28444if test -z "$ac_cpp_err"; then
28445 ac_header_preproc=yes
28446else
28447 echo "$as_me: failed program was:" >&5
28448sed 's/^/| /' conftest.$ac_ext >&5
28449
28450 ac_header_preproc=no
28451fi
28452rm -f conftest.err conftest.$ac_ext
28453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28454echo "${ECHO_T}$ac_header_preproc" >&6
28455
28456# So? What about this header?
28457case $ac_header_compiler:$ac_header_preproc in
28458 yes:no )
28459 { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28460echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28461 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28462echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28463 (
28464 cat <<\_ASBOX
28465## ------------------------------------ ##
28466## Report this to bug-autoconf@gnu.org. ##
28467## ------------------------------------ ##
28468_ASBOX
28469 ) |
28470 sed "s/^/$as_me: WARNING: /" >&2
28471 ;;
28472 no:yes )
28473 { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28474echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28475 { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28476echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28477 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28478echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28479 (
28480 cat <<\_ASBOX
28481## ------------------------------------ ##
28482## Report this to bug-autoconf@gnu.org. ##
28483## ------------------------------------ ##
28484_ASBOX
28485 ) |
28486 sed "s/^/$as_me: WARNING: /" >&2
28487 ;;
28488esac
28489echo "$as_me:$LINENO: checking for esd.h" >&5
28490echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28491if test "${ac_cv_header_esd_h+set}" = set; then
28492 echo $ECHO_N "(cached) $ECHO_C" >&6
28493else
28494 ac_cv_header_esd_h=$ac_header_preproc
a0b9e27f 28495fi
e6cc62c6
VS
28496echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28497echo "${ECHO_T}$ac_cv_header_esd_h" >&6
a0b9e27f 28498
e6cc62c6
VS
28499fi
28500if test $ac_cv_header_esd_h = yes; then
4f14bcd8 28501
e6cc62c6
VS
28502 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28503echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28504if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28505 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28506else
e6cc62c6
VS
28507 ac_check_lib_save_LIBS=$LIBS
28508LIBS="-lesd $LIBS"
28509cat >conftest.$ac_ext <<_ACEOF
28510#line $LINENO "configure"
28511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
28516
6232543b 28517/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28518#ifdef __cplusplus
28519extern "C"
28520#endif
6232543b 28521/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28522 builtin and then its argument prototype would still apply. */
28523char esd_close ();
28524int
28525main ()
28526{
28527esd_close ();
28528 ;
28529 return 0;
28530}
28531_ACEOF
28532rm -f conftest.$ac_objext conftest$ac_exeext
28533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28534 (eval $ac_link) 2>&5
28535 ac_status=$?
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } &&
28538 { ac_try='test -s conftest$ac_exeext'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28541 ac_status=$?
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28544 ac_cv_lib_esd_esd_close=yes
a0b9e27f 28545else
e6cc62c6
VS
28546 echo "$as_me: failed program was:" >&5
28547sed 's/^/| /' conftest.$ac_ext >&5
4f14bcd8 28548
e6cc62c6 28549ac_cv_lib_esd_esd_close=no
10f2d63a 28550fi
e6cc62c6
VS
28551rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28552LIBS=$ac_check_lib_save_LIBS
a0b9e27f 28553fi
e6cc62c6
VS
28554echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28555echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28556if test $ac_cv_lib_esd_esd_close = yes; then
247f5006 28557
e6cc62c6 28558 ESD_LINK="-lesd"
10f2d63a 28559
e6cc62c6 28560fi
8284b0c5 28561
4f14bcd8 28562
6232543b 28563fi
10f2d63a 28564
703e0a69 28565
8284b0c5 28566
e6cc62c6
VS
28567
28568
28569cat >confcache <<\_ACEOF
4f14bcd8
GD
28570# This file is a shell script that caches the results of configure
28571# tests run on this system so they can be shared between configure
e6cc62c6
VS
28572# scripts and configure runs, see configure's option --config-cache.
28573# It is not useful on other systems. If it contains results you don't
28574# want to keep, you may remove or edit it.
4f14bcd8 28575#
e6cc62c6
VS
28576# config.status only pays attention to the cache file if you give it
28577# the --recheck option to rerun configure.
4f14bcd8 28578#
e6cc62c6
VS
28579# `ac_cv_env_foo' variables (set or unset) will be overridden when
28580# loading this file, other *unset* `ac_cv_foo' will be assigned the
28581# following values.
28582
28583_ACEOF
28584
4f14bcd8
GD
28585# The following way of writing the cache mishandles newlines in values,
28586# but we know of no workaround that is simple, portable, and efficient.
28587# So, don't put newlines in cache variables' values.
28588# Ultrix sh set writes to stderr and can't be redirected directly,
28589# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28590{
28591 (set) 2>&1 |
28592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28593 *ac_space=\ *)
28594 # `set' does not quote correctly, so add quotes (double-quote
28595 # substitution turns \\\\ into \\, and sed turns \\ into \).
28596 sed -n \
28597 "s/'/'\\\\''/g;
28598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28599 ;;
28600 *)
28601 # `set' quotes correctly as required by POSIX, so do not add quotes.
28602 sed -n \
28603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28604 ;;
28605 esac;
28606} |
28607 sed '
28608 t clear
28609 : clear
28610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28611 t end
28612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28613 : end' >>confcache
28614if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28615 if test -w $cache_file; then
e6cc62c6
VS
28616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28617 cat confcache >$cache_file
f6bcfd97 28618 else
4f14bcd8 28619 echo "not updating unwritable cache $cache_file"
f6bcfd97 28620 fi
4f14bcd8
GD
28621fi
28622rm -f confcache
f6bcfd97 28623
8284b0c5 28624
009fead0 28625CPP_MT_FLAG=
4f14bcd8
GD
28626if test "$TOOLKIT" != "MSW"; then
28627
e6cc62c6 28628
7274f1c7 28629 THREADS_LINK=
009fead0 28630 THREADS_CFLAGS=
7274f1c7
RL
28631
28632 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28633 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28634 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28635echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28636 wxUSE_THREADS="no"
28637 fi
4f14bcd8 28638 fi
4f14bcd8 28639
7274f1c7 28640 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28641
28642
009fead0
VZ
28643 THREAD_OPTS="-pthread"
28644 case "${host}" in
28645 *-*-solaris2* | *-*-sunos4* )
28646 if test "x$GCC" = "xyes"; then
126be6b4 28647 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28648 else
28649 THREAD_OPTS="-mt $THREAD_OPTS"
28650 fi
28651 ;;
28652 *-*-freebsd*)
28653 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28654 ;;
17234b26
MB
28655 *-*-darwin* | *-*-cygwin* )
28656 THREAD_OPTS=""
4101db81 28657 ;;
8f4a9a10 28658 *-*-aix*)
009fead0
VZ
28659 THREAD_OPTS="pthreads"
28660 ;;
4f5a7f74
VZ
28661 *-hp-hpux* )
28662 if test "x$GCC" != "xyes"; then
28663 THREAD_OPTS=""
28664 fi
89e3b3e4
VZ
28665 ;;
28666
28667 *-*-irix* )
28668 if test "x$GCC" = "xyes"; then
28669 THREAD_OPTS=""
28670 fi
28671 ;;
28672
28673 *-*-*UnixWare*)
28674 if test "x$GCC" != "xyes"; then
28675 THREAD_OPTS="-Ethread"
28676 fi
28677 ;;
009fead0 28678 esac
4f14bcd8 28679
02a1dfba 28680 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28681
009fead0
VZ
28682 THREADS_OK=no
28683 for flag in $THREAD_OPTS; do
28684 case $flag in
28685 none)
e6cc62c6
VS
28686 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28687echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28688 ;;
698dcdb6 28689
009fead0 28690 -*)
e6cc62c6
VS
28691 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28692echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28693 THREADS_CFLAGS="$flag"
28694 ;;
698dcdb6 28695
009fead0 28696 *)
e6cc62c6
VS
28697 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28698echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28699 THREADS_LINK="-l$flag"
28700 ;;
28701 esac
10f2d63a 28702
009fead0
VZ
28703 save_LIBS="$LIBS"
28704 save_CFLAGS="$CFLAGS"
28705 LIBS="$THREADS_LINK $LIBS"
04727afd 28706 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28707
e6cc62c6
VS
28708 cat >conftest.$ac_ext <<_ACEOF
28709#line $LINENO "configure"
28710/* confdefs.h. */
28711_ACEOF
28712cat confdefs.h >>conftest.$ac_ext
28713cat >>conftest.$ac_ext <<_ACEOF
28714/* end confdefs.h. */
009fead0 28715#include <pthread.h>
e6cc62c6
VS
28716int
28717main ()
28718{
009fead0 28719pthread_create(0,0,0,0);
e6cc62c6
VS
28720 ;
28721 return 0;
28722}
28723_ACEOF
28724rm -f conftest.$ac_objext conftest$ac_exeext
28725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28726 (eval $ac_link) 2>&5
28727 ac_status=$?
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } &&
28730 { ac_try='test -s conftest$ac_exeext'
28731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732 (eval $ac_try) 2>&5
28733 ac_status=$?
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; }; then
009fead0 28736 THREADS_OK=yes
10f2d63a 28737else
e6cc62c6
VS
28738 echo "$as_me: failed program was:" >&5
28739sed 's/^/| /' conftest.$ac_ext >&5
28740
6232543b 28741fi
e6cc62c6 28742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28743
009fead0
VZ
28744 LIBS="$save_LIBS"
28745 CFLAGS="$save_CFLAGS"
d9b9876f 28746
e6cc62c6
VS
28747 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28748echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28749 if test "x$THREADS_OK" = "xyes"; then
28750 break;
28751 fi
d9b9876f 28752
009fead0
VZ
28753 THREADS_LINK=""
28754 THREADS_CFLAGS=""
28755 done
4f14bcd8 28756
009fead0
VZ
28757 if test "x$THREADS_OK" != "xyes"; then
28758 wxUSE_THREADS=no
e6cc62c6
VS
28759 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28760echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28761 else
db82f09e
VZ
28762 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28763 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28764
e6cc62c6
VS
28765 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28766echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28767 flag=no
28768 case "${host}" in
2b5f62a0
VZ
28769 *-aix*)
28770 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28771 flag="-D_THREAD_SAFE"
28772 ;;
28773 *-freebsd*)
009fead0
VZ
28774 flag="-D_THREAD_SAFE"
28775 ;;
06313569
GD
28776 *-hp-hpux* )
28777 flag="-D_REENTRANT"
4f5a7f74
VZ
28778 if test "x$GCC" != "xyes"; then
28779 flag="$flag -D_RWSTD_MULTI_THREAD"
28780 fi
06313569 28781 ;;
009fead0
VZ
28782 *solaris* | alpha*-osf*)
28783 flag="-D_REENTRANT"
28784 ;;
28785 esac
e6cc62c6
VS
28786 echo "$as_me:$LINENO: result: ${flag}" >&5
28787echo "${ECHO_T}${flag}" >&6
009fead0 28788 if test "x$flag" != xno; then
04727afd 28789 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28790 fi
28791
009fead0 28792 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28793 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28794 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28795 fi
28796 fi
4f14bcd8 28797 fi
4f14bcd8 28798
7274f1c7 28799 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28800
28801for ac_func in thr_setconcurrency
4f14bcd8 28802do
e6cc62c6
VS
28803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28804echo "$as_me:$LINENO: checking for $ac_func" >&5
28805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28806if eval "test \"\${$as_ac_var+set}\" = set"; then
28807 echo $ECHO_N "(cached) $ECHO_C" >&6
28808else
28809 cat >conftest.$ac_ext <<_ACEOF
28810#line $LINENO "configure"
28811/* confdefs.h. */
28812_ACEOF
28813cat confdefs.h >>conftest.$ac_ext
28814cat >>conftest.$ac_ext <<_ACEOF
28815/* end confdefs.h. */
4f14bcd8 28816/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28817 which can conflict with char $ac_func (); below.
28818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28819 <limits.h> exists even on freestanding compilers. */
28820#ifdef __STDC__
28821# include <limits.h>
28822#else
28823# include <assert.h>
28824#endif
4f14bcd8 28825/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28826#ifdef __cplusplus
28827extern "C"
28828{
28829#endif
4f14bcd8 28830/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28831 builtin and then its argument prototype would still apply. */
28832char $ac_func ();
4f14bcd8
GD
28833/* The GNU C library defines this for functions which it implements
28834 to always fail with ENOSYS. Some functions are actually named
28835 something starting with __ and the normal name is an alias. */
28836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28837choke me
28838#else
e6cc62c6
VS
28839char (*f) () = $ac_func;
28840#endif
28841#ifdef __cplusplus
28842}
4f14bcd8
GD
28843#endif
28844
e6cc62c6
VS
28845int
28846main ()
28847{
28848return f != $ac_func;
28849 ;
28850 return 0;
28851}
28852_ACEOF
28853rm -f conftest.$ac_objext conftest$ac_exeext
28854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28855 (eval $ac_link) 2>&5
28856 ac_status=$?
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); } &&
28859 { ac_try='test -s conftest$ac_exeext'
28860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28861 (eval $ac_try) 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); }; }; then
28865 eval "$as_ac_var=yes"
28866else
28867 echo "$as_me: failed program was:" >&5
28868sed 's/^/| /' conftest.$ac_ext >&5
28869
28870eval "$as_ac_var=no"
28871fi
28872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28873fi
28874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28876if test `eval echo '${'$as_ac_var'}'` = yes; then
28877 cat >>confdefs.h <<_ACEOF
28878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28879_ACEOF
698dcdb6 28880
10f2d63a 28881fi
4f14bcd8 28882done
10f2d63a 28883
8284b0c5 28884
e6cc62c6
VS
28885
28886for ac_header in sched.h
4f14bcd8 28887do
e6cc62c6
VS
28888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28889if eval "test \"\${$as_ac_Header+set}\" = set"; then
28890 echo "$as_me:$LINENO: checking for $ac_header" >&5
28891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28892if eval "test \"\${$as_ac_Header+set}\" = set"; then
28893 echo $ECHO_N "(cached) $ECHO_C" >&6
28894fi
28895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28897else
28898 # Is the header compilable?
28899echo "$as_me:$LINENO: checking $ac_header usability" >&5
28900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28901cat >conftest.$ac_ext <<_ACEOF
28902#line $LINENO "configure"
28903/* confdefs.h. */
28904_ACEOF
28905cat confdefs.h >>conftest.$ac_ext
28906cat >>conftest.$ac_ext <<_ACEOF
28907/* end confdefs.h. */
28908$ac_includes_default
28909#include <$ac_header>
28910_ACEOF
28911rm -f conftest.$ac_objext
28912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28913 (eval $ac_compile) 2>&5
28914 ac_status=$?
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
28917 { ac_try='test -s conftest.$ac_objext'
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28920 ac_status=$?
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; }; then
28923 ac_header_compiler=yes
28924else
28925 echo "$as_me: failed program was:" >&5
28926sed 's/^/| /' conftest.$ac_ext >&5
28927
28928ac_header_compiler=no
28929fi
28930rm -f conftest.$ac_objext conftest.$ac_ext
28931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28932echo "${ECHO_T}$ac_header_compiler" >&6
28933
28934# Is the header present?
28935echo "$as_me:$LINENO: checking $ac_header presence" >&5
28936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28937cat >conftest.$ac_ext <<_ACEOF
28938#line $LINENO "configure"
28939/* confdefs.h. */
28940_ACEOF
28941cat confdefs.h >>conftest.$ac_ext
28942cat >>conftest.$ac_ext <<_ACEOF
28943/* end confdefs.h. */
28944#include <$ac_header>
28945_ACEOF
28946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28948 ac_status=$?
28949 grep -v '^ *+' conftest.er1 >conftest.err
28950 rm -f conftest.er1
28951 cat conftest.err >&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); } >/dev/null; then
28954 if test -s conftest.err; then
28955 ac_cpp_err=$ac_c_preproc_warn_flag
28956 else
28957 ac_cpp_err=
28958 fi
28959else
28960 ac_cpp_err=yes
28961fi
28962if test -z "$ac_cpp_err"; then
28963 ac_header_preproc=yes
28964else
28965 echo "$as_me: failed program was:" >&5
28966sed 's/^/| /' conftest.$ac_ext >&5
28967
28968 ac_header_preproc=no
28969fi
28970rm -f conftest.err conftest.$ac_ext
28971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28972echo "${ECHO_T}$ac_header_preproc" >&6
28973
28974# So? What about this header?
28975case $ac_header_compiler:$ac_header_preproc in
28976 yes:no )
28977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28978echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28981 (
28982 cat <<\_ASBOX
28983## ------------------------------------ ##
28984## Report this to bug-autoconf@gnu.org. ##
28985## ------------------------------------ ##
28986_ASBOX
28987 ) |
28988 sed "s/^/$as_me: WARNING: /" >&2
28989 ;;
28990 no:yes )
28991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28997 (
28998 cat <<\_ASBOX
28999## ------------------------------------ ##
29000## Report this to bug-autoconf@gnu.org. ##
29001## ------------------------------------ ##
29002_ASBOX
29003 ) |
29004 sed "s/^/$as_me: WARNING: /" >&2
29005 ;;
29006esac
29007echo "$as_me:$LINENO: checking for $ac_header" >&5
29008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29009if eval "test \"\${$as_ac_Header+set}\" = set"; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29011else
29012 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29013fi
e6cc62c6
VS
29014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29016
10f2d63a 29017fi
e6cc62c6
VS
29018if test `eval echo '${'$as_ac_Header'}'` = yes; then
29019 cat >>confdefs.h <<_ACEOF
29020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29021_ACEOF
29022
f6bcfd97 29023fi
e6cc62c6 29024
4f14bcd8 29025done
f6bcfd97 29026
009fead0 29027 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29028 echo "$as_me:$LINENO: checking for sched_yield" >&5
29029echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29030if test "${ac_cv_func_sched_yield+set}" = set; then
29031 echo $ECHO_N "(cached) $ECHO_C" >&6
29032else
29033 cat >conftest.$ac_ext <<_ACEOF
29034#line $LINENO "configure"
29035/* confdefs.h. */
29036_ACEOF
29037cat confdefs.h >>conftest.$ac_ext
29038cat >>conftest.$ac_ext <<_ACEOF
29039/* end confdefs.h. */
009fead0 29040/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29041 which can conflict with char sched_yield (); below.
29042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29043 <limits.h> exists even on freestanding compilers. */
29044#ifdef __STDC__
29045# include <limits.h>
29046#else
29047# include <assert.h>
29048#endif
4f14bcd8 29049/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29050#ifdef __cplusplus
29051extern "C"
29052{
29053#endif
4f14bcd8 29054/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29055 builtin and then its argument prototype would still apply. */
29056char sched_yield ();
009fead0
VZ
29057/* The GNU C library defines this for functions which it implements
29058 to always fail with ENOSYS. Some functions are actually named
29059 something starting with __ and the normal name is an alias. */
29060#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29061choke me
29062#else
e6cc62c6
VS
29063char (*f) () = sched_yield;
29064#endif
29065#ifdef __cplusplus
29066}
009fead0
VZ
29067#endif
29068
e6cc62c6
VS
29069int
29070main ()
29071{
29072return f != sched_yield;
29073 ;
29074 return 0;
29075}
29076_ACEOF
29077rm -f conftest.$ac_objext conftest$ac_exeext
29078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29079 (eval $ac_link) 2>&5
29080 ac_status=$?
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); } &&
29083 { ac_try='test -s conftest$ac_exeext'
29084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29085 (eval $ac_try) 2>&5
29086 ac_status=$?
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); }; }; then
29089 ac_cv_func_sched_yield=yes
29090else
29091 echo "$as_me: failed program was:" >&5
29092sed 's/^/| /' conftest.$ac_ext >&5
29093
29094ac_cv_func_sched_yield=no
29095fi
29096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29097fi
29098echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29099echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29100if test $ac_cv_func_sched_yield = yes; then
29101 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29102#define HAVE_SCHED_YIELD 1
e6cc62c6 29103_ACEOF
10f2d63a 29104
4f14bcd8 29105else
009fead0 29106
e6cc62c6
VS
29107 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29108echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29109if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29110 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29111else
e6cc62c6 29112 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29113LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29114cat >conftest.$ac_ext <<_ACEOF
29115#line $LINENO "configure"
29116/* confdefs.h. */
29117_ACEOF
29118cat confdefs.h >>conftest.$ac_ext
29119cat >>conftest.$ac_ext <<_ACEOF
29120/* end confdefs.h. */
29121
4f14bcd8 29122/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29123#ifdef __cplusplus
29124extern "C"
29125#endif
4f14bcd8 29126/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29127 builtin and then its argument prototype would still apply. */
29128char sched_yield ();
29129int
29130main ()
29131{
29132sched_yield ();
29133 ;
29134 return 0;
29135}
29136_ACEOF
29137rm -f conftest.$ac_objext conftest$ac_exeext
29138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29139 (eval $ac_link) 2>&5
29140 ac_status=$?
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); } &&
29143 { ac_try='test -s conftest$ac_exeext'
29144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145 (eval $ac_try) 2>&5
29146 ac_status=$?
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; }; then
29149 ac_cv_lib_posix4_sched_yield=yes
29150else
29151 echo "$as_me: failed program was:" >&5
29152sed 's/^/| /' conftest.$ac_ext >&5
29153
29154ac_cv_lib_posix4_sched_yield=no
29155fi
29156rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29157LIBS=$ac_check_lib_save_LIBS
29158fi
29159echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29160echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29161if test $ac_cv_lib_posix4_sched_yield = yes; then
29162 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29163#define HAVE_SCHED_YIELD 1
e6cc62c6 29164_ACEOF
3d63bc3a 29165 POSIX4_LINK=" -lposix4"
4f14bcd8 29166else
e6cc62c6
VS
29167 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29168echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29169
54276ccf
VZ
29170fi
29171
e6cc62c6
VS
29172
29173
4f14bcd8 29174fi
698dcdb6 29175
009fead0 29176 fi
10f2d63a 29177
7274f1c7 29178 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29179 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29180echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29181if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29182 echo $ECHO_N "(cached) $ECHO_C" >&6
29183else
29184 cat >conftest.$ac_ext <<_ACEOF
29185#line $LINENO "configure"
29186/* confdefs.h. */
29187_ACEOF
29188cat confdefs.h >>conftest.$ac_ext
29189cat >>conftest.$ac_ext <<_ACEOF
29190/* end confdefs.h. */
009fead0 29191/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29192 which can conflict with char pthread_attr_getschedpolicy (); below.
29193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29194 <limits.h> exists even on freestanding compilers. */
29195#ifdef __STDC__
29196# include <limits.h>
29197#else
29198# include <assert.h>
29199#endif
4f14bcd8 29200/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29201#ifdef __cplusplus
29202extern "C"
29203{
29204#endif
4f14bcd8 29205/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29206 builtin and then its argument prototype would still apply. */
29207char pthread_attr_getschedpolicy ();
009fead0
VZ
29208/* The GNU C library defines this for functions which it implements
29209 to always fail with ENOSYS. Some functions are actually named
29210 something starting with __ and the normal name is an alias. */
29211#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29212choke me
29213#else
e6cc62c6
VS
29214char (*f) () = pthread_attr_getschedpolicy;
29215#endif
29216#ifdef __cplusplus
29217}
009fead0
VZ
29218#endif
29219
e6cc62c6
VS
29220int
29221main ()
29222{
29223return f != pthread_attr_getschedpolicy;
29224 ;
29225 return 0;
29226}
29227_ACEOF
29228rm -f conftest.$ac_objext conftest$ac_exeext
29229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29230 (eval $ac_link) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } &&
29234 { ac_try='test -s conftest$ac_exeext'
29235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236 (eval $ac_try) 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; }; then
29240 ac_cv_func_pthread_attr_getschedpolicy=yes
29241else
29242 echo "$as_me: failed program was:" >&5
29243sed 's/^/| /' conftest.$ac_ext >&5
29244
29245ac_cv_func_pthread_attr_getschedpolicy=no
29246fi
29247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29248fi
29249echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29250echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29251if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29252 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29253echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29254if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29256else
29257 cat >conftest.$ac_ext <<_ACEOF
29258#line $LINENO "configure"
29259/* confdefs.h. */
29260_ACEOF
29261cat confdefs.h >>conftest.$ac_ext
29262cat >>conftest.$ac_ext <<_ACEOF
29263/* end confdefs.h. */
a0b9e27f 29264/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29265 which can conflict with char pthread_attr_setschedparam (); below.
29266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29267 <limits.h> exists even on freestanding compilers. */
29268#ifdef __STDC__
29269# include <limits.h>
29270#else
29271# include <assert.h>
29272#endif
422107f9 29273/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29274#ifdef __cplusplus
29275extern "C"
29276{
29277#endif
422107f9 29278/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29279 builtin and then its argument prototype would still apply. */
29280char pthread_attr_setschedparam ();
009fead0
VZ
29281/* The GNU C library defines this for functions which it implements
29282 to always fail with ENOSYS. Some functions are actually named
29283 something starting with __ and the normal name is an alias. */
29284#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29285choke me
29286#else
e6cc62c6
VS
29287char (*f) () = pthread_attr_setschedparam;
29288#endif
29289#ifdef __cplusplus
29290}
009fead0
VZ
29291#endif
29292
e6cc62c6
VS
29293int
29294main ()
29295{
29296return f != pthread_attr_setschedparam;
29297 ;
29298 return 0;
29299}
29300_ACEOF
29301rm -f conftest.$ac_objext conftest$ac_exeext
29302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29303 (eval $ac_link) 2>&5
29304 ac_status=$?
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); } &&
29307 { ac_try='test -s conftest$ac_exeext'
29308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309 (eval $ac_try) 2>&5
29310 ac_status=$?
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); }; }; then
29313 ac_cv_func_pthread_attr_setschedparam=yes
29314else
29315 echo "$as_me: failed program was:" >&5
29316sed 's/^/| /' conftest.$ac_ext >&5
29317
29318ac_cv_func_pthread_attr_setschedparam=no
29319fi
29320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29321fi
29322echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29323echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29324if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29325 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29326echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29327if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29328 echo $ECHO_N "(cached) $ECHO_C" >&6
29329else
29330 cat >conftest.$ac_ext <<_ACEOF
29331#line $LINENO "configure"
29332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
ef33c576 29337/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29338 which can conflict with char sched_get_priority_max (); below.
29339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29340 <limits.h> exists even on freestanding compilers. */
29341#ifdef __STDC__
29342# include <limits.h>
29343#else
29344# include <assert.h>
29345#endif
4f14bcd8 29346/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29347#ifdef __cplusplus
29348extern "C"
29349{
29350#endif
4f14bcd8 29351/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29352 builtin and then its argument prototype would still apply. */
29353char sched_get_priority_max ();
009fead0
VZ
29354/* The GNU C library defines this for functions which it implements
29355 to always fail with ENOSYS. Some functions are actually named
29356 something starting with __ and the normal name is an alias. */
29357#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29358choke me
29359#else
e6cc62c6
VS
29360char (*f) () = sched_get_priority_max;
29361#endif
29362#ifdef __cplusplus
29363}
009fead0
VZ
29364#endif
29365
e6cc62c6
VS
29366int
29367main ()
29368{
29369return f != sched_get_priority_max;
29370 ;
29371 return 0;
29372}
29373_ACEOF
29374rm -f conftest.$ac_objext conftest$ac_exeext
29375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29376 (eval $ac_link) 2>&5
29377 ac_status=$?
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); } &&
29380 { ac_try='test -s conftest$ac_exeext'
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29383 ac_status=$?
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; }; then
29386 ac_cv_func_sched_get_priority_max=yes
29387else
29388 echo "$as_me: failed program was:" >&5
29389sed 's/^/| /' conftest.$ac_ext >&5
29390
29391ac_cv_func_sched_get_priority_max=no
29392fi
29393rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29394fi
29395echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29396echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29397if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29398 HAVE_PRIOR_FUNCS=1
29399else
e6cc62c6
VS
29400 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29401echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29402if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29404else
e6cc62c6 29405 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29406LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29407cat >conftest.$ac_ext <<_ACEOF
29408#line $LINENO "configure"
29409/* confdefs.h. */
29410_ACEOF
29411cat confdefs.h >>conftest.$ac_ext
29412cat >>conftest.$ac_ext <<_ACEOF
29413/* end confdefs.h. */
29414
422107f9 29415/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29416#ifdef __cplusplus
29417extern "C"
29418#endif
422107f9 29419/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29420 builtin and then its argument prototype would still apply. */
29421char sched_get_priority_max ();
29422int
29423main ()
29424{
29425sched_get_priority_max ();
29426 ;
29427 return 0;
29428}
29429_ACEOF
29430rm -f conftest.$ac_objext conftest$ac_exeext
29431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29432 (eval $ac_link) 2>&5
29433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } &&
29436 { ac_try='test -s conftest$ac_exeext'
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; }; then
29442 ac_cv_lib_posix4_sched_get_priority_max=yes
29443else
29444 echo "$as_me: failed program was:" >&5
29445sed 's/^/| /' conftest.$ac_ext >&5
29446
29447ac_cv_lib_posix4_sched_get_priority_max=no
29448fi
29449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29450LIBS=$ac_check_lib_save_LIBS
29451fi
29452echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29453echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29454if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29455
7274f1c7
RL
29456 HAVE_PRIOR_FUNCS=1
29457 POSIX4_LINK=" -lposix4"
e6cc62c6 29458
4f14bcd8 29459fi
463abc64 29460
e6cc62c6 29461
328a083c 29462fi
463abc64 29463
e6cc62c6 29464
7b4a847f 29465fi
579d8138 29466
e6cc62c6 29467
5c6fa7d2 29468fi
52127426 29469
8284b0c5 29470
7274f1c7 29471 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29472 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29473#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29474_ACEOF
463abc64 29475
7274f1c7 29476 else
e6cc62c6
VS
29477 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29478echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29479 fi
463abc64 29480
e6cc62c6
VS
29481 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29482echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29483if test "${ac_cv_func_pthread_cancel+set}" = set; then
29484 echo $ECHO_N "(cached) $ECHO_C" >&6
29485else
29486 cat >conftest.$ac_ext <<_ACEOF
29487#line $LINENO "configure"
29488/* confdefs.h. */
29489_ACEOF
29490cat confdefs.h >>conftest.$ac_ext
29491cat >>conftest.$ac_ext <<_ACEOF
29492/* end confdefs.h. */
009fead0 29493/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29494 which can conflict with char pthread_cancel (); below.
29495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29496 <limits.h> exists even on freestanding compilers. */
29497#ifdef __STDC__
29498# include <limits.h>
29499#else
29500# include <assert.h>
29501#endif
422107f9 29502/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29503#ifdef __cplusplus
29504extern "C"
29505{
29506#endif
422107f9 29507/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29508 builtin and then its argument prototype would still apply. */
29509char pthread_cancel ();
009fead0
VZ
29510/* The GNU C library defines this for functions which it implements
29511 to always fail with ENOSYS. Some functions are actually named
29512 something starting with __ and the normal name is an alias. */
29513#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29514choke me
29515#else
e6cc62c6
VS
29516char (*f) () = pthread_cancel;
29517#endif
29518#ifdef __cplusplus
29519}
009fead0
VZ
29520#endif
29521
e6cc62c6
VS
29522int
29523main ()
29524{
29525return f != pthread_cancel;
29526 ;
29527 return 0;
29528}
29529_ACEOF
29530rm -f conftest.$ac_objext conftest$ac_exeext
29531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29532 (eval $ac_link) 2>&5
29533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); } &&
29536 { ac_try='test -s conftest$ac_exeext'
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; }; then
29542 ac_cv_func_pthread_cancel=yes
29543else
29544 echo "$as_me: failed program was:" >&5
29545sed 's/^/| /' conftest.$ac_ext >&5
29546
29547ac_cv_func_pthread_cancel=no
29548fi
29549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29550fi
29551echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29552echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29553if test $ac_cv_func_pthread_cancel = yes; then
29554 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29555#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29556_ACEOF
4f14bcd8 29557
698dcdb6 29558else
e6cc62c6
VS
29559 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29560echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29561fi
29562
5c6fa7d2 29563
e6cc62c6
VS
29564 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29565echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29566if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29567 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29568else
e6cc62c6
VS
29569
29570 cat >conftest.$ac_ext <<_ACEOF
29571#line $LINENO "configure"
29572/* confdefs.h. */
29573_ACEOF
29574cat confdefs.h >>conftest.$ac_ext
29575cat >>conftest.$ac_ext <<_ACEOF
29576/* end confdefs.h. */
4f14bcd8 29577#include <pthread.h>
e6cc62c6
VS
29578int
29579main ()
29580{
4f14bcd8 29581
7274f1c7
RL
29582 pthread_cleanup_push(NULL, NULL);
29583 pthread_cleanup_pop(0);
e6cc62c6
VS
29584
29585 ;
29586 return 0;
29587}
29588_ACEOF
29589rm -f conftest.$ac_objext
29590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29591 (eval $ac_compile) 2>&5
29592 ac_status=$?
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); } &&
29595 { ac_try='test -s conftest.$ac_objext'
29596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29597 (eval $ac_try) 2>&5
29598 ac_status=$?
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); }; }; then
29601
7274f1c7 29602 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29603
4f14bcd8 29604else
e6cc62c6
VS
29605 echo "$as_me: failed program was:" >&5
29606sed 's/^/| /' conftest.$ac_ext >&5
29607
29608
7274f1c7 29609 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29610
247f5006 29611fi
e6cc62c6 29612rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29613
e6cc62c6
VS
29614fi
29615echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29616echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29617
7274f1c7 29618 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29619 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29620#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29621_ACEOF
c7a2bf27 29622
7274f1c7 29623 fi
4f14bcd8 29624
e6cc62c6
VS
29625
29626 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29627echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29628if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29629 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29630else
e6cc62c6
VS
29631
29632 cat >conftest.$ac_ext <<_ACEOF
29633#line $LINENO "configure"
29634/* confdefs.h. */
29635_ACEOF
29636cat confdefs.h >>conftest.$ac_ext
29637cat >>conftest.$ac_ext <<_ACEOF
29638/* end confdefs.h. */
4f14bcd8 29639#include <pthread.h>
e6cc62c6
VS
29640int
29641main ()
29642{
4f14bcd8 29643
7274f1c7
RL
29644 pthread_mutexattr_t attr;
29645 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29646
29647 ;
29648 return 0;
29649}
29650_ACEOF
29651rm -f conftest.$ac_objext
29652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29653 (eval $ac_compile) 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); } &&
29657 { ac_try='test -s conftest.$ac_objext'
29658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659 (eval $ac_try) 2>&5
29660 ac_status=$?
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); }; }; then
29663
7274f1c7 29664 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29665
3fed1840 29666else
e6cc62c6
VS
29667 echo "$as_me: failed program was:" >&5
29668sed 's/^/| /' conftest.$ac_ext >&5
29669
29670
7274f1c7 29671 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29672
29673
247f5006 29674fi
e6cc62c6 29675rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29676
e6cc62c6
VS
29677fi
29678echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29679echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29680
7274f1c7 29681 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29682 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29683#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29684_ACEOF
4f14bcd8 29685
7274f1c7 29686 else
e6cc62c6
VS
29687 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29688echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29689if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29690 echo $ECHO_N "(cached) $ECHO_C" >&6
29691else
29692
29693 cat >conftest.$ac_ext <<_ACEOF
29694#line $LINENO "configure"
29695/* confdefs.h. */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h. */
4f14bcd8 29700#include <pthread.h>
e6cc62c6
VS
29701int
29702main ()
29703{
4f14bcd8 29704
7274f1c7 29705 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29706
29707 ;
29708 return 0;
29709}
29710_ACEOF
29711rm -f conftest.$ac_objext
29712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29713 (eval $ac_compile) 2>&5
29714 ac_status=$?
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
29717 { ac_try='test -s conftest.$ac_objext'
29718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719 (eval $ac_try) 2>&5
29720 ac_status=$?
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; }; then
29723
7274f1c7 29724 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29725
698dcdb6 29726else
e6cc62c6
VS
29727 echo "$as_me: failed program was:" >&5
29728sed 's/^/| /' conftest.$ac_ext >&5
29729
29730
7274f1c7 29731 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29732
29733
247f5006 29734fi
e6cc62c6 29735rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29736
e6cc62c6
VS
29737fi
29738echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29739echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29740 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29741 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29742#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29743_ACEOF
3fed1840 29744
7274f1c7 29745 else
e6cc62c6
VS
29746 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29747echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29748 fi
29749 fi
7274f1c7 29750 fi
3fed1840 29751
a0b9e27f
MB
29752else
29753 if test "$wxUSE_THREADS" = "yes" ; then
29754 case "${host}" in
29755 *-*-mingw32* )
e6cc62c6
VS
29756 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29757echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29758if test "${wx_cv_cflags_mthread+set}" = set; then
29759 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29760else
e6cc62c6 29761
ca8e52b3
VZ
29762 CFLAGS_OLD="$CFLAGS"
29763 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29764 cat >conftest.$ac_ext <<_ACEOF
29765#line $LINENO "configure"
29766/* confdefs.h. */
29767_ACEOF
29768cat confdefs.h >>conftest.$ac_ext
29769cat >>conftest.$ac_ext <<_ACEOF
29770/* end confdefs.h. */
29771
29772int
29773main ()
29774{
ca8e52b3 29775
e6cc62c6
VS
29776 ;
29777 return 0;
29778}
29779_ACEOF
29780rm -f conftest.$ac_objext
29781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29782 (eval $ac_compile) 2>&5
29783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } &&
29786 { ac_try='test -s conftest.$ac_objext'
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29789 ac_status=$?
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; }; then
ca8e52b3
VZ
29792 wx_cv_cflags_mthread=yes
29793else
e6cc62c6
VS
29794 echo "$as_me: failed program was:" >&5
29795sed 's/^/| /' conftest.$ac_ext >&5
29796
29797wx_cv_cflags_mthread=no
29798
ca8e52b3 29799fi
e6cc62c6
VS
29800rm -f conftest.$ac_objext conftest.$ac_ext
29801
ca8e52b3 29802
e6cc62c6
VS
29803fi
29804echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29805echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29806
29807 if test "$wx_cv_cflags_mthread" = "yes"; then
29808 CXXFLAGS="$CXXFLAGS -mthreads"
29809 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29810 LDFLAGS="$LDFLAGS -mthreads"
29811 else
29812 CFLAGS="$CFLAGS_OLD"
29813 fi
a0b9e27f
MB
29814 ;;
29815 esac
29816 fi
4f14bcd8
GD
29817fi
29818
29819if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29820 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29821#define wxUSE_THREADS 1
e6cc62c6 29822_ACEOF
7b6058cd 29823
8284b0c5 29824
4f14bcd8 29825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29826else
4f14bcd8 29827 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
29828 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29829echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
29830 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29831 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
29832 echo "$as_me:$LINENO: result: yes" >&5
29833echo "${ECHO_T}yes" >&6
4f14bcd8 29834 else
e6cc62c6
VS
29835 echo "$as_me:$LINENO: result: no" >&5
29836echo "${ECHO_T}no" >&6
4f14bcd8
GD
29837 fi
29838 fi
29839fi
29840
29841if test "$WXGTK20" = 1 ; then
e6cc62c6 29842 cat >>confdefs.h <<_ACEOF
4f14bcd8 29843#define __WXGTK20__ $WXGTK20
e6cc62c6 29844_ACEOF
4f14bcd8
GD
29845
29846 WXGTK12=1
10f2d63a 29847fi
4f14bcd8
GD
29848
29849if test "$WXGTK12" = 1 ; then
e6cc62c6 29850 cat >>confdefs.h <<_ACEOF
4f14bcd8 29851#define __WXGTK12__ $WXGTK12
e6cc62c6 29852_ACEOF
4f14bcd8 29853
10f2d63a 29854fi
698dcdb6 29855
4f14bcd8 29856if test "$WXGTK127" = 1 ; then
e6cc62c6 29857 cat >>confdefs.h <<_ACEOF
4f14bcd8 29858#define __WXGTK127__ $WXGTK127
e6cc62c6 29859_ACEOF
4f14bcd8 29860
698dcdb6 29861fi
10f2d63a 29862
4f14bcd8
GD
29863WXDEBUG=
29864
29865if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29866 WXDEBUG="-g"
29867 wxUSE_OPTIMISE=no
698dcdb6 29868fi
4f14bcd8
GD
29869
29870if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29871 wxUSE_DEBUG_INFO=yes
29872 WXDEBUG="-ggdb"
10f2d63a
VZ
29873fi
29874
4f14bcd8 29875if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 29876 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29877#define WXDEBUG 1
e6cc62c6 29878_ACEOF
4f14bcd8
GD
29879
29880 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 29881else
4f14bcd8
GD
29882 if test "$wxUSE_GTK" = 1 ; then
29883 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29884 fi
29885fi
29886
29887if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 29888 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29889#define wxUSE_MEMORY_TRACING 1
e6cc62c6 29890_ACEOF
4f14bcd8 29891
e6cc62c6 29892 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29893#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 29894_ACEOF
4f14bcd8 29895
e6cc62c6 29896 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29897#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 29898_ACEOF
4f14bcd8
GD
29899
29900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29901fi
29902
29903if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 29904 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
29905fi
29906
29907PROFILE=
29908if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 29909 PROFILE=" -pg"
10f2d63a
VZ
29910fi
29911
009fead0
VZ
29912CODE_GEN_FLAGS=
29913CODE_GEN_FLAGS_CXX=
88e30f2b 29914if test "$GCC" = "yes" ; then
4f14bcd8
GD
29915 if test "$wxUSE_NO_RTTI" = "yes" ; then
29916 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 29917 fi
4f14bcd8
GD
29918 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29919 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29920 fi
29921 if test "$wxUSE_PERMISSIVE" = "yes" ; then
29922 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29923 fi
4f14bcd8
GD
29924 if test "$USE_WIN32" = 1 ; then
29925 # I'm not even really sure what this was ever added to solve,
29926 # but someone added it for mingw native builds, so I guess
29927 # they had a reason, right??
29928 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
29929 fi
1d1b75ac 29930
2b5f62a0 29931 case "${host}" in
1d1b75ac
VZ
29932 powerpc*-*-aix* )
29933 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29934 ;;
2b5f62a0
VZ
29935 *-hppa* )
29936 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29937 ;;
1d1b75ac 29938 esac
4f14bcd8
GD
29939fi
29940
af7b5345 29941OPTIMISE=
4f14bcd8 29942if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
29943 if test "$GCC" = yes ; then
29944 OPTIMISE="-O0"
29945 fi
4f14bcd8
GD
29946else
29947 if test "$GCC" = yes ; then
29948 OPTIMISE="-O2"
af7b5345
VZ
29949
29950 case "${host}" in
4f14bcd8
GD
29951 i586-*-*|i686-*-* )
29952 OPTIMISE="${OPTIMISE} "
29953 ;;
29954 esac
29955 else
29956 OPTIMISE="-O"
29957 fi
29958fi
29959
8d90d2f2 29960
4f14bcd8 29961if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 29962 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29963#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 29964_ACEOF
4f14bcd8 29965
8284b0c5 29966
4f14bcd8
GD
29967 WXWIN_COMPATIBILITY_2_2="yes"
29968fi
29969
65d8ef1e 29970if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 29971 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29972#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 29973_ACEOF
4f14bcd8 29974
8d90d2f2
VZ
29975
29976 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
29977fi
29978
65d8ef1e 29979if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 29980 cat >>confdefs.h <<\_ACEOF
65d8ef1e 29981#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 29982_ACEOF
65d8ef1e
VS
29983
29984fi
29985
8284b0c5 29986
10f2d63a 29987if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 29988 cat >>confdefs.h <<\_ACEOF
10f2d63a 29989#define wxUSE_GUI 1
e6cc62c6 29990_ACEOF
10f2d63a 29991
8284b0c5 29992
10f2d63a 29993 else
e6cc62c6 29994 cat >>confdefs.h <<\_ACEOF
10f2d63a 29995#define wxUSE_NOGUI 1
e6cc62c6 29996_ACEOF
10f2d63a
VZ
29997
29998fi
29999
8284b0c5 30000
10f2d63a 30001if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30002 cat >>confdefs.h <<\_ACEOF
10f2d63a 30003#define wxUSE_UNIX 1
e6cc62c6 30004_ACEOF
10f2d63a
VZ
30005
30006fi
30007
8284b0c5 30008
10f2d63a 30009if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30010 cat >>confdefs.h <<\_ACEOF
10f2d63a 30011#define wxUSE_APPLE_IEEE 1
e6cc62c6 30012_ACEOF
10f2d63a
VZ
30013
30014fi
30015
1e6feb95 30016if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30017 cat >>confdefs.h <<\_ACEOF
1e6feb95 30018#define wxUSE_TIMER 1
e6cc62c6 30019_ACEOF
1e6feb95
VZ
30020
30021fi
30022
10f2d63a 30023if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30024 cat >>confdefs.h <<\_ACEOF
10f2d63a 30025#define wxUSE_WAVE 1
e6cc62c6 30026_ACEOF
10f2d63a
VZ
30027
30028fi
30029
1e6feb95 30030if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30031 cat >>confdefs.h <<\_ACEOF
1e6feb95 30032#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30033_ACEOF
1e6feb95
VZ
30034
30035fi
30036
30037if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30038 cat >>confdefs.h <<\_ACEOF
1e6feb95 30039#define wxUSE_STOPWATCH 1
e6cc62c6 30040_ACEOF
1e6feb95
VZ
30041
30042fi
30043
30044if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30045 cat >>confdefs.h <<\_ACEOF
1e6feb95 30046#define wxUSE_DATETIME 1
e6cc62c6 30047_ACEOF
1e6feb95
VZ
30048
30049fi
30050
10f2d63a 30051if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30052 cat >>confdefs.h <<\_ACEOF
10f2d63a 30053#define wxUSE_FILE 1
e6cc62c6 30054_ACEOF
10f2d63a
VZ
30055
30056fi
30057
1e6feb95 30058if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30059 cat >>confdefs.h <<\_ACEOF
1e6feb95 30060#define wxUSE_FFILE 1
e6cc62c6 30061_ACEOF
1e6feb95
VZ
30062
30063fi
30064
24528b0c 30065if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30066 cat >>confdefs.h <<\_ACEOF
24528b0c 30067#define wxUSE_FILESYSTEM 1
e6cc62c6 30068_ACEOF
24528b0c
VS
30069
30070fi
30071
10f2d63a 30072if test "$wxUSE_FS_INET" = "yes"; then
e6cc62c6 30073 cat >>confdefs.h <<\_ACEOF
10f2d63a 30074#define wxUSE_FS_INET 1
e6cc62c6 30075_ACEOF
10f2d63a
VZ
30076
30077fi
30078
30079if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30080 cat >>confdefs.h <<\_ACEOF
10f2d63a 30081#define wxUSE_FS_ZIP 1
e6cc62c6 30082_ACEOF
10f2d63a
VZ
30083
30084fi
30085
30086if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30087 cat >>confdefs.h <<\_ACEOF
10f2d63a 30088#define wxUSE_ZIPSTREAM 1
e6cc62c6 30089_ACEOF
10f2d63a
VZ
30090
30091fi
30092
eb4efbdc 30093if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30094 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30095#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30096_ACEOF
eb4efbdc
VZ
30097
30098fi
30099
4f3c5f06 30100if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30101 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30102#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30103_ACEOF
4f3c5f06
VZ
30104
30105fi
30106
10f2d63a 30107if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30108 cat >>confdefs.h <<\_ACEOF
10f2d63a 30109#define wxUSE_BUSYINFO 1
e6cc62c6 30110_ACEOF
10f2d63a
VZ
30111
30112fi
30113
30114if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30115 cat >>confdefs.h <<\_ACEOF
10f2d63a 30116#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30117_ACEOF
10f2d63a
VZ
30118
30119fi
30120
a3a584a7 30121if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30122 cat >>confdefs.h <<\_ACEOF
a3a584a7 30123#define wxUSE_TEXTBUFFER 1
e6cc62c6 30124_ACEOF
a3a584a7
VZ
30125
30126fi
30127
10f2d63a 30128if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30129 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30130 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30131echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30132 else
e6cc62c6 30133 cat >>confdefs.h <<\_ACEOF
10f2d63a 30134#define wxUSE_TEXTFILE 1
e6cc62c6 30135_ACEOF
10f2d63a
VZ
30136
30137 fi
30138fi
30139
30140if test "$wxUSE_CONFIG" = "yes" ; then
30141 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30142 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30143echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30144 else
e6cc62c6 30145 cat >>confdefs.h <<\_ACEOF
10f2d63a 30146#define wxUSE_CONFIG 1
e6cc62c6 30147_ACEOF
10f2d63a
VZ
30148
30149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30150 fi
30151fi
30152
30153if test "$wxUSE_INTL" = "yes" ; then
30154 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30155 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30156echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30157 else
e6cc62c6 30158 cat >>confdefs.h <<\_ACEOF
10f2d63a 30159#define wxUSE_INTL 1
e6cc62c6 30160_ACEOF
10f2d63a
VZ
30161
30162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30163 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30164 fi
30165fi
30166
30167if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30168 cat >>confdefs.h <<\_ACEOF
10f2d63a 30169#define wxUSE_LOG 1
e6cc62c6 30170_ACEOF
10f2d63a 30171
8284b0c5 30172
d73be714 30173 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30174 cat >>confdefs.h <<\_ACEOF
d73be714 30175#define wxUSE_LOGGUI 1
e6cc62c6 30176_ACEOF
d73be714
VZ
30177
30178 fi
30179
30180 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30181 cat >>confdefs.h <<\_ACEOF
d73be714 30182#define wxUSE_LOGWINDOW 1
e6cc62c6 30183_ACEOF
69d27ff7
MB
30184
30185 fi
30186
30187 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30188 cat >>confdefs.h <<\_ACEOF
69d27ff7 30189#define wxUSE_LOG_DIALOG 1
e6cc62c6 30190_ACEOF
d73be714
VZ
30191
30192 fi
10f2d63a
VZ
30193fi
30194
30195if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30196 cat >>confdefs.h <<\_ACEOF
10f2d63a 30197#define wxUSE_LONGLONG 1
e6cc62c6 30198_ACEOF
10f2d63a
VZ
30199
30200fi
30201
e8f65ba6 30202if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30203 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30204#define wxUSE_GEOMETRY 1
e6cc62c6 30205_ACEOF
e8f65ba6
RR
30206
30207fi
30208
10f2d63a 30209if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30210 cat >>confdefs.h <<\_ACEOF
10f2d63a 30211#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30212_ACEOF
10f2d63a 30213
70f7a477 30214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30215fi
30216
30217if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30218 cat >>confdefs.h <<\_ACEOF
10f2d63a 30219#define wxUSE_STREAMS 1
e6cc62c6 30220_ACEOF
10f2d63a
VZ
30221
30222fi
30223
5c6fa7d2 30224
8284b0c5 30225if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30226
30227for ac_func in strptime
83307f33 30228do
e6cc62c6
VS
30229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30230echo "$as_me:$LINENO: checking for $ac_func" >&5
30231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30232if eval "test \"\${$as_ac_var+set}\" = set"; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30234else
30235 cat >conftest.$ac_ext <<_ACEOF
30236#line $LINENO "configure"
30237/* confdefs.h. */
30238_ACEOF
30239cat confdefs.h >>conftest.$ac_ext
30240cat >>conftest.$ac_ext <<_ACEOF
30241/* end confdefs.h. */
83307f33 30242/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30243 which can conflict with char $ac_func (); below.
30244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30245 <limits.h> exists even on freestanding compilers. */
30246#ifdef __STDC__
30247# include <limits.h>
30248#else
30249# include <assert.h>
30250#endif
83307f33 30251/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30252#ifdef __cplusplus
30253extern "C"
30254{
30255#endif
83307f33 30256/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30257 builtin and then its argument prototype would still apply. */
30258char $ac_func ();
83307f33
VZ
30259/* The GNU C library defines this for functions which it implements
30260 to always fail with ENOSYS. Some functions are actually named
30261 something starting with __ and the normal name is an alias. */
30262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30263choke me
30264#else
e6cc62c6
VS
30265char (*f) () = $ac_func;
30266#endif
30267#ifdef __cplusplus
30268}
83307f33
VZ
30269#endif
30270
e6cc62c6
VS
30271int
30272main ()
30273{
30274return f != $ac_func;
30275 ;
30276 return 0;
30277}
30278_ACEOF
30279rm -f conftest.$ac_objext conftest$ac_exeext
30280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30281 (eval $ac_link) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } &&
30285 { ac_try='test -s conftest$ac_exeext'
30286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287 (eval $ac_try) 2>&5
30288 ac_status=$?
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; }; then
30291 eval "$as_ac_var=yes"
30292else
30293 echo "$as_me: failed program was:" >&5
30294sed 's/^/| /' conftest.$ac_ext >&5
30295
30296eval "$as_ac_var=no"
30297fi
30298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30299fi
30300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30302if test `eval echo '${'$as_ac_var'}'` = yes; then
30303 cat >>confdefs.h <<_ACEOF
30304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30305_ACEOF
83307f33 30306
83307f33
VZ
30307fi
30308done
30309
5c6fa7d2 30310
e6cc62c6
VS
30311 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30312echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30313if test "${wx_cv_var_timezone+set}" = set; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30315else
e6cc62c6
VS
30316
30317 cat >conftest.$ac_ext <<_ACEOF
30318#line $LINENO "configure"
30319/* confdefs.h. */
30320_ACEOF
30321cat confdefs.h >>conftest.$ac_ext
30322cat >>conftest.$ac_ext <<_ACEOF
30323/* end confdefs.h. */
360d6699 30324
b4085ce6 30325 #include <time.h>
e6cc62c6
VS
30326
30327int
30328main ()
30329{
360d6699
VZ
30330
30331 int tz;
4f11a343 30332 tz = timezone;
e6cc62c6
VS
30333
30334 ;
30335 return 0;
30336}
30337_ACEOF
30338rm -f conftest.$ac_objext
30339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30340 (eval $ac_compile) 2>&5
30341 ac_status=$?
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } &&
30344 { ac_try='test -s conftest.$ac_objext'
30345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30346 (eval $ac_try) 2>&5
30347 ac_status=$?
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); }; }; then
30350
4f11a343 30351 wx_cv_var_timezone=timezone
e6cc62c6 30352
360d6699 30353else
e6cc62c6
VS
30354 echo "$as_me: failed program was:" >&5
30355sed 's/^/| /' conftest.$ac_ext >&5
30356
30357
30358 cat >conftest.$ac_ext <<_ACEOF
30359#line $LINENO "configure"
30360/* confdefs.h. */
30361_ACEOF
30362cat confdefs.h >>conftest.$ac_ext
30363cat >>conftest.$ac_ext <<_ACEOF
30364/* end confdefs.h. */
360d6699 30365
b4085ce6 30366 #include <time.h>
e6cc62c6
VS
30367
30368int
30369main ()
30370{
360d6699
VZ
30371
30372 int tz;
30373 tz = _timezone;
e6cc62c6
VS
30374
30375 ;
30376 return 0;
30377}
30378_ACEOF
30379rm -f conftest.$ac_objext
30380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30381 (eval $ac_compile) 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } &&
30385 { ac_try='test -s conftest.$ac_objext'
30386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30387 (eval $ac_try) 2>&5
30388 ac_status=$?
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); }; }; then
30391
360d6699 30392 wx_cv_var_timezone=_timezone
e6cc62c6 30393
5357c8e8 30394else
e6cc62c6
VS
30395 echo "$as_me: failed program was:" >&5
30396sed 's/^/| /' conftest.$ac_ext >&5
30397
30398
30399 cat >conftest.$ac_ext <<_ACEOF
30400#line $LINENO "configure"
30401/* confdefs.h. */
30402_ACEOF
30403cat confdefs.h >>conftest.$ac_ext
30404cat >>conftest.$ac_ext <<_ACEOF
30405/* end confdefs.h. */
5357c8e8 30406
b4085ce6 30407 #include <time.h>
e6cc62c6
VS
30408
30409int
30410main ()
30411{
5357c8e8
VZ
30412
30413 int tz;
4f11a343 30414 tz = __timezone;
e6cc62c6
VS
30415
30416 ;
30417 return 0;
30418}
30419_ACEOF
30420rm -f conftest.$ac_objext
30421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30422 (eval $ac_compile) 2>&5
30423 ac_status=$?
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } &&
30426 { ac_try='test -s conftest.$ac_objext'
30427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30428 (eval $ac_try) 2>&5
30429 ac_status=$?
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); }; }; then
30432
4f11a343 30433 wx_cv_var_timezone=__timezone
e6cc62c6 30434
360d6699 30435else
e6cc62c6
VS
30436 echo "$as_me: failed program was:" >&5
30437sed 's/^/| /' conftest.$ac_ext >&5
30438
30439
f9bc1684 30440 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30441 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30442echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30443 fi
e6cc62c6
VS
30444
30445
7b4a847f 30446fi
e6cc62c6
VS
30447rm -f conftest.$ac_objext conftest.$ac_ext
30448
30449
5c6fa7d2 30450fi
e6cc62c6
VS
30451rm -f conftest.$ac_objext conftest.$ac_ext
30452
30453
247f5006 30454fi
e6cc62c6 30455rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30456
e6cc62c6
VS
30457
30458fi
30459echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30460echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30461
f9bc1684 30462 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30463 cat >>confdefs.h <<_ACEOF
360d6699 30464#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30465_ACEOF
360d6699 30466
f9bc1684 30467 fi
698dcdb6 30468
e6cc62c6
VS
30469
30470for ac_func in localtime
afc31813 30471do
e6cc62c6
VS
30472as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30473echo "$as_me:$LINENO: checking for $ac_func" >&5
30474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30475if eval "test \"\${$as_ac_var+set}\" = set"; then
30476 echo $ECHO_N "(cached) $ECHO_C" >&6
30477else
30478 cat >conftest.$ac_ext <<_ACEOF
30479#line $LINENO "configure"
30480/* confdefs.h. */
30481_ACEOF
30482cat confdefs.h >>conftest.$ac_ext
30483cat >>conftest.$ac_ext <<_ACEOF
30484/* end confdefs.h. */
afc31813 30485/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30486 which can conflict with char $ac_func (); below.
30487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30488 <limits.h> exists even on freestanding compilers. */
30489#ifdef __STDC__
30490# include <limits.h>
30491#else
30492# include <assert.h>
30493#endif
afc31813 30494/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30495#ifdef __cplusplus
30496extern "C"
30497{
30498#endif
afc31813 30499/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30500 builtin and then its argument prototype would still apply. */
30501char $ac_func ();
afc31813
VZ
30502/* The GNU C library defines this for functions which it implements
30503 to always fail with ENOSYS. Some functions are actually named
30504 something starting with __ and the normal name is an alias. */
30505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30506choke me
30507#else
e6cc62c6
VS
30508char (*f) () = $ac_func;
30509#endif
30510#ifdef __cplusplus
30511}
afc31813
VZ
30512#endif
30513
e6cc62c6
VS
30514int
30515main ()
30516{
30517return f != $ac_func;
30518 ;
30519 return 0;
30520}
30521_ACEOF
30522rm -f conftest.$ac_objext conftest$ac_exeext
30523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30524 (eval $ac_link) 2>&5
30525 ac_status=$?
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } &&
30528 { ac_try='test -s conftest$ac_exeext'
30529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530 (eval $ac_try) 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; }; then
30534 eval "$as_ac_var=yes"
30535else
30536 echo "$as_me: failed program was:" >&5
30537sed 's/^/| /' conftest.$ac_ext >&5
30538
30539eval "$as_ac_var=no"
30540fi
30541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30542fi
30543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30544echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30545if test `eval echo '${'$as_ac_var'}'` = yes; then
30546 cat >>confdefs.h <<_ACEOF
30547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30548_ACEOF
afc31813 30549
afc31813
VZ
30550fi
30551done
30552
5c6fa7d2 30553
8284b0c5 30554 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30555 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30556echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30557if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30559else
e6cc62c6
VS
30560
30561 cat >conftest.$ac_ext <<_ACEOF
30562#line $LINENO "configure"
30563/* confdefs.h. */
30564_ACEOF
30565cat confdefs.h >>conftest.$ac_ext
30566cat >>conftest.$ac_ext <<_ACEOF
30567/* end confdefs.h. */
0470b1e6 30568
b4085ce6 30569 #include <time.h>
e6cc62c6
VS
30570
30571int
30572main ()
30573{
0470b1e6
VZ
30574
30575 struct tm tm;
30576 tm.tm_gmtoff++;
e6cc62c6
VS
30577
30578 ;
30579 return 0;
30580}
30581_ACEOF
30582rm -f conftest.$ac_objext
30583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30584 (eval $ac_compile) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); } &&
30588 { ac_try='test -s conftest.$ac_objext'
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30591 ac_status=$?
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594
f03a98d8 30595 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30596
0470b1e6 30597else
e6cc62c6
VS
30598 echo "$as_me: failed program was:" >&5
30599sed 's/^/| /' conftest.$ac_ext >&5
30600
30601wx_cv_struct_tm_has_gmtoff=no
30602
247f5006 30603fi
e6cc62c6 30604rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30605
e6cc62c6
VS
30606fi
30607echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30608echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30609 fi
30610
30611 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30612 cat >>confdefs.h <<\_ACEOF
6232543b 30613#define WX_GMTOFF_IN_TM 1
e6cc62c6 30614_ACEOF
0470b1e6 30615
3fcdd07b
VZ
30616 fi
30617
e6cc62c6
VS
30618
30619
30620for ac_func in gettimeofday ftime
3fcdd07b 30621do
e6cc62c6
VS
30622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30623echo "$as_me:$LINENO: checking for $ac_func" >&5
30624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30625if eval "test \"\${$as_ac_var+set}\" = set"; then
30626 echo $ECHO_N "(cached) $ECHO_C" >&6
30627else
30628 cat >conftest.$ac_ext <<_ACEOF
30629#line $LINENO "configure"
30630/* confdefs.h. */
30631_ACEOF
30632cat confdefs.h >>conftest.$ac_ext
30633cat >>conftest.$ac_ext <<_ACEOF
30634/* end confdefs.h. */
3fcdd07b 30635/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30636 which can conflict with char $ac_func (); below.
30637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30638 <limits.h> exists even on freestanding compilers. */
30639#ifdef __STDC__
30640# include <limits.h>
30641#else
30642# include <assert.h>
30643#endif
3fcdd07b 30644/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30645#ifdef __cplusplus
30646extern "C"
30647{
30648#endif
3fcdd07b 30649/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30650 builtin and then its argument prototype would still apply. */
30651char $ac_func ();
3fcdd07b
VZ
30652/* The GNU C library defines this for functions which it implements
30653 to always fail with ENOSYS. Some functions are actually named
30654 something starting with __ and the normal name is an alias. */
30655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30656choke me
30657#else
e6cc62c6
VS
30658char (*f) () = $ac_func;
30659#endif
30660#ifdef __cplusplus
30661}
3fcdd07b
VZ
30662#endif
30663
e6cc62c6
VS
30664int
30665main ()
30666{
30667return f != $ac_func;
30668 ;
30669 return 0;
30670}
30671_ACEOF
30672rm -f conftest.$ac_objext conftest$ac_exeext
30673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30674 (eval $ac_link) 2>&5
30675 ac_status=$?
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); } &&
30678 { ac_try='test -s conftest$ac_exeext'
30679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30680 (eval $ac_try) 2>&5
30681 ac_status=$?
30682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683 (exit $ac_status); }; }; then
30684 eval "$as_ac_var=yes"
30685else
30686 echo "$as_me: failed program was:" >&5
30687sed 's/^/| /' conftest.$ac_ext >&5
30688
30689eval "$as_ac_var=no"
30690fi
30691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30692fi
30693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30694echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30695if test `eval echo '${'$as_ac_var'}'` = yes; then
30696 cat >>confdefs.h <<_ACEOF
30697#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698_ACEOF
3fcdd07b 30699 break
3fcdd07b
VZ
30700fi
30701done
30702
698dcdb6 30703
8284b0c5 30704 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30705 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30706echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30707if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30708 echo $ECHO_N "(cached) $ECHO_C" >&6
30709else
30710
30711
30712
30713 ac_ext=cc
5c6fa7d2 30714ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30718
8284b0c5 30719
e6cc62c6
VS
30720 cat >conftest.$ac_ext <<_ACEOF
30721#line $LINENO "configure"
30722/* confdefs.h. */
30723_ACEOF
30724cat confdefs.h >>conftest.$ac_ext
30725cat >>conftest.$ac_ext <<_ACEOF
30726/* end confdefs.h. */
afc31813
VZ
30727
30728 #include <sys/time.h>
30729 #include <unistd.h>
e6cc62c6
VS
30730
30731int
30732main ()
30733{
afc31813
VZ
30734
30735 struct timeval tv;
776862b4 30736 gettimeofday(&tv, NULL);
e6cc62c6
VS
30737
30738 ;
30739 return 0;
30740}
30741_ACEOF
30742rm -f conftest.$ac_objext
30743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30744 (eval $ac_compile) 2>&5
30745 ac_status=$?
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); } &&
30748 { ac_try='test -s conftest.$ac_objext'
30749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30750 (eval $ac_try) 2>&5
30751 ac_status=$?
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753 (exit $ac_status); }; }; then
afc31813 30754 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30755else
e6cc62c6
VS
30756 echo "$as_me: failed program was:" >&5
30757sed 's/^/| /' conftest.$ac_ext >&5
30758
30759cat >conftest.$ac_ext <<_ACEOF
30760#line $LINENO "configure"
30761/* confdefs.h. */
30762_ACEOF
30763cat confdefs.h >>conftest.$ac_ext
30764cat >>conftest.$ac_ext <<_ACEOF
30765/* end confdefs.h. */
afc31813
VZ
30766
30767 #include <sys/time.h>
30768 #include <unistd.h>
e6cc62c6
VS
30769
30770int
30771main ()
30772{
afc31813
VZ
30773
30774 struct timeval tv;
30775 gettimeofday(&tv);
e6cc62c6
VS
30776
30777 ;
30778 return 0;
30779}
30780_ACEOF
30781rm -f conftest.$ac_objext
30782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30783 (eval $ac_compile) 2>&5
30784 ac_status=$?
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); } &&
30787 { ac_try='test -s conftest.$ac_objext'
30788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30789 (eval $ac_try) 2>&5
30790 ac_status=$?
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); }; }; then
afc31813 30793 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30794else
e6cc62c6
VS
30795 echo "$as_me: failed program was:" >&5
30796sed 's/^/| /' conftest.$ac_ext >&5
30797
30798
30799 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30800echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30801 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30802
30803
10f2d63a 30804fi
e6cc62c6
VS
30805rm -f conftest.$ac_objext conftest.$ac_ext
30806
10f2d63a 30807fi
e6cc62c6 30808rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30809 ac_ext=c
10f2d63a 30810ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30813ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30814
a0b9e27f 30815
e6cc62c6
VS
30816fi
30817echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30818echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30819
afc31813 30820 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30821 cat >>confdefs.h <<\_ACEOF
afc31813 30822#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30823_ACEOF
afc31813
VZ
30824
30825 fi
30826 fi
30827
afc31813
VZ
30828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30829fi
30830
8284b0c5 30831
52127426 30832if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30833 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30834 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30835echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30836 wxUSE_SOCKETS="no"
30837 fi
0feee163 30838fi
b089607b 30839
0feee163
VZ
30840if test "$wxUSE_SOCKETS" = "yes"; then
30841 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30842 echo "$as_me:$LINENO: checking for socket" >&5
30843echo $ECHO_N "checking for socket... $ECHO_C" >&6
30844if test "${ac_cv_func_socket+set}" = set; then
30845 echo $ECHO_N "(cached) $ECHO_C" >&6
30846else
30847 cat >conftest.$ac_ext <<_ACEOF
30848#line $LINENO "configure"
30849/* confdefs.h. */
30850_ACEOF
30851cat confdefs.h >>conftest.$ac_ext
30852cat >>conftest.$ac_ext <<_ACEOF
30853/* end confdefs.h. */
c63c7106 30854/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30855 which can conflict with char socket (); below.
30856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30857 <limits.h> exists even on freestanding compilers. */
30858#ifdef __STDC__
30859# include <limits.h>
30860#else
30861# include <assert.h>
30862#endif
c63c7106 30863/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30864#ifdef __cplusplus
30865extern "C"
30866{
30867#endif
c63c7106 30868/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30869 builtin and then its argument prototype would still apply. */
30870char socket ();
c63c7106
VZ
30871/* The GNU C library defines this for functions which it implements
30872 to always fail with ENOSYS. Some functions are actually named
30873 something starting with __ and the normal name is an alias. */
30874#if defined (__stub_socket) || defined (__stub___socket)
30875choke me
30876#else
e6cc62c6
VS
30877char (*f) () = socket;
30878#endif
30879#ifdef __cplusplus
30880}
c63c7106
VZ
30881#endif
30882
e6cc62c6
VS
30883int
30884main ()
30885{
30886return f != socket;
30887 ;
30888 return 0;
30889}
30890_ACEOF
30891rm -f conftest.$ac_objext conftest$ac_exeext
30892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30893 (eval $ac_link) 2>&5
30894 ac_status=$?
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } &&
30897 { ac_try='test -s conftest$ac_exeext'
30898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30899 (eval $ac_try) 2>&5
30900 ac_status=$?
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; }; then
30903 ac_cv_func_socket=yes
30904else
30905 echo "$as_me: failed program was:" >&5
30906sed 's/^/| /' conftest.$ac_ext >&5
30907
30908ac_cv_func_socket=no
30909fi
30910rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30911fi
30912echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30913echo "${ECHO_T}$ac_cv_func_socket" >&6
30914if test $ac_cv_func_socket = yes; then
c63c7106
VZ
30915 :
30916else
e6cc62c6
VS
30917 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30918echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30919if test "${ac_cv_lib_socket_socket+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 30921else
e6cc62c6 30922 ac_check_lib_save_LIBS=$LIBS
c63c7106 30923LIBS="-lsocket $LIBS"
e6cc62c6
VS
30924cat >conftest.$ac_ext <<_ACEOF
30925#line $LINENO "configure"
30926/* confdefs.h. */
30927_ACEOF
30928cat confdefs.h >>conftest.$ac_ext
30929cat >>conftest.$ac_ext <<_ACEOF
30930/* end confdefs.h. */
30931
c63c7106 30932/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30933#ifdef __cplusplus
30934extern "C"
30935#endif
c63c7106 30936/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30937 builtin and then its argument prototype would still apply. */
30938char socket ();
30939int
30940main ()
30941{
30942socket ();
30943 ;
30944 return 0;
30945}
30946_ACEOF
30947rm -f conftest.$ac_objext conftest$ac_exeext
30948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30949 (eval $ac_link) 2>&5
30950 ac_status=$?
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); } &&
30953 { ac_try='test -s conftest$ac_exeext'
30954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30955 (eval $ac_try) 2>&5
30956 ac_status=$?
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); }; }; then
30959 ac_cv_lib_socket_socket=yes
30960else
30961 echo "$as_me: failed program was:" >&5
30962sed 's/^/| /' conftest.$ac_ext >&5
30963
30964ac_cv_lib_socket_socket=no
30965fi
30966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30967LIBS=$ac_check_lib_save_LIBS
30968fi
30969echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
30970echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
30971if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
30972 if test "$INET_LINK" != " -lsocket"; then
30973 INET_LINK="$INET_LINK -lsocket"
30974 fi
c63c7106 30975else
afc31813 30976
e6cc62c6
VS
30977 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
30978echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 30979 wxUSE_SOCKETS=no
e6cc62c6
VS
30980
30981
6232543b 30982fi
b089607b 30983
e6cc62c6 30984
1e487827 30985fi
afc31813 30986
3a922bb4 30987 fi
0feee163 30988fi
51a9faba 30989
0feee163
VZ
30990if test "$wxUSE_SOCKETS" = "yes" ; then
30991 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30992 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
30993echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
30994if test "${wx_cv_type_getsockname3+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30996else
e6cc62c6
VS
30997
30998 cat >conftest.$ac_ext <<_ACEOF
30999#line $LINENO "configure"
31000/* confdefs.h. */
31001_ACEOF
31002cat confdefs.h >>conftest.$ac_ext
31003cat >>conftest.$ac_ext <<_ACEOF
31004/* end confdefs.h. */
51a9faba 31005
3a922bb4
RL
31006 #include <sys/types.h>
31007 #include <sys/socket.h>
e6cc62c6
VS
31008
31009int
31010main ()
31011{
51a9faba 31012
3a922bb4
RL
31013 socklen_t len;
31014 getsockname(0, 0, &len);
e6cc62c6
VS
31015
31016 ;
31017 return 0;
31018}
31019_ACEOF
31020rm -f conftest.$ac_objext
31021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31022 (eval $ac_compile) 2>&5
31023 ac_status=$?
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } &&
31026 { ac_try='test -s conftest.$ac_objext'
31027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31028 (eval $ac_try) 2>&5
31029 ac_status=$?
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); }; }; then
51a9faba 31032 wx_cv_type_getsockname3=socklen_t
afc31813 31033else
e6cc62c6
VS
31034 echo "$as_me: failed program was:" >&5
31035sed 's/^/| /' conftest.$ac_ext >&5
31036
31037
9711d31e
GD
31038 CFLAGS_OLD="$CFLAGS"
31039 if test "$GCC" = yes ; then
31040 CFLAGS="$CFLAGS -Werror"
31041 fi
31042
e6cc62c6
VS
31043 cat >conftest.$ac_ext <<_ACEOF
31044#line $LINENO "configure"
31045/* confdefs.h. */
31046_ACEOF
31047cat confdefs.h >>conftest.$ac_ext
31048cat >>conftest.$ac_ext <<_ACEOF
31049/* end confdefs.h. */
51a9faba 31050
9711d31e
GD
31051 #include <sys/types.h>
31052 #include <sys/socket.h>
e6cc62c6
VS
31053
31054int
31055main ()
31056{
51a9faba 31057
9711d31e
GD
31058 size_t len;
31059 getsockname(0, 0, &len);
e6cc62c6
VS
31060
31061 ;
31062 return 0;
31063}
31064_ACEOF
31065rm -f conftest.$ac_objext
31066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31067 (eval $ac_compile) 2>&5
31068 ac_status=$?
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
31071 { ac_try='test -s conftest.$ac_objext'
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; }; then
51a9faba 31077 wx_cv_type_getsockname3=size_t
afc31813 31078else
e6cc62c6
VS
31079 echo "$as_me: failed program was:" >&5
31080sed 's/^/| /' conftest.$ac_ext >&5
31081
31082cat >conftest.$ac_ext <<_ACEOF
31083#line $LINENO "configure"
31084/* confdefs.h. */
31085_ACEOF
31086cat confdefs.h >>conftest.$ac_ext
31087cat >>conftest.$ac_ext <<_ACEOF
31088/* end confdefs.h. */
51a9faba 31089
9711d31e
GD
31090 #include <sys/types.h>
31091 #include <sys/socket.h>
e6cc62c6
VS
31092
31093int
31094main ()
31095{
51a9faba 31096
9711d31e
GD
31097 int len;
31098 getsockname(0, 0, &len);
e6cc62c6
VS
31099
31100 ;
31101 return 0;
31102}
31103_ACEOF
31104rm -f conftest.$ac_objext
31105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31106 (eval $ac_compile) 2>&5
31107 ac_status=$?
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); } &&
31110 { ac_try='test -s conftest.$ac_objext'
31111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31112 (eval $ac_try) 2>&5
31113 ac_status=$?
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; }; then
51a9faba 31116 wx_cv_type_getsockname3=int
afc31813 31117else
e6cc62c6
VS
31118 echo "$as_me: failed program was:" >&5
31119sed 's/^/| /' conftest.$ac_ext >&5
31120
31121wx_cv_type_getsockname3=unknown
31122
afc31813 31123fi
e6cc62c6
VS
31124rm -f conftest.$ac_objext conftest.$ac_ext
31125
afc31813 31126fi
e6cc62c6 31127rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31128
31129 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31130
31131
247f5006 31132fi
e6cc62c6 31133rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31134
e6cc62c6
VS
31135fi
31136echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31137echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31138
3a922bb4
RL
31139 if test "$wx_cv_type_getsockname3" = "unknown"; then
31140 wxUSE_SOCKETS=no
e6cc62c6
VS
31141 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31142echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31143 else
e6cc62c6 31144 cat >>confdefs.h <<_ACEOF
51a9faba 31145#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31146_ACEOF
51a9faba 31147
3a922bb4 31148 fi
51a9faba
VZ
31149 fi
31150fi
afc31813 31151
51a9faba 31152if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31153 cat >>confdefs.h <<\_ACEOF
afc31813 31154#define wxUSE_SOCKETS 1
e6cc62c6 31155_ACEOF
afc31813 31156
70f7a477 31157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31158fi
31159
8284b0c5 31160
dc3d889d
VZ
31161if test "$wxUSE_GUI" = "yes"; then
31162
ac0c4cc3 31163 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31164 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31165echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
31166 wxUSE_JOYSTICK=no
31167 fi
31168 if test "$TOOLKIT" = "MOTIF"; then
e6cc62c6
VS
31169 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31170echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 31171 wxUSE_JOYSTICK=no
f79bd02d
JS
31172 fi
31173 if test "$TOOLKIT" = "X11"; then
e6cc62c6
VS
31174 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31175echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 31176 wxUSE_JOYSTICK=no
156b2523
GD
31177 fi
31178
3a922bb4
RL
31179 if test "$TOOLKIT" != "MSW"; then
31180 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31181
31182for ac_header in linux/joystick.h
10f2d63a 31183do
e6cc62c6
VS
31184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31185if eval "test \"\${$as_ac_Header+set}\" = set"; then
31186 echo "$as_me:$LINENO: checking for $ac_header" >&5
31187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31188if eval "test \"\${$as_ac_Header+set}\" = set"; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31190fi
31191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31193else
31194 # Is the header compilable?
31195echo "$as_me:$LINENO: checking $ac_header usability" >&5
31196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31197cat >conftest.$ac_ext <<_ACEOF
31198#line $LINENO "configure"
31199/* confdefs.h. */
31200_ACEOF
31201cat confdefs.h >>conftest.$ac_ext
31202cat >>conftest.$ac_ext <<_ACEOF
31203/* end confdefs.h. */
31204$ac_includes_default
31205#include <$ac_header>
31206_ACEOF
31207rm -f conftest.$ac_objext
31208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31209 (eval $ac_compile) 2>&5
31210 ac_status=$?
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } &&
31213 { ac_try='test -s conftest.$ac_objext'
31214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215 (eval $ac_try) 2>&5
31216 ac_status=$?
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); }; }; then
31219 ac_header_compiler=yes
31220else
31221 echo "$as_me: failed program was:" >&5
31222sed 's/^/| /' conftest.$ac_ext >&5
31223
31224ac_header_compiler=no
31225fi
31226rm -f conftest.$ac_objext conftest.$ac_ext
31227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31228echo "${ECHO_T}$ac_header_compiler" >&6
31229
31230# Is the header present?
31231echo "$as_me:$LINENO: checking $ac_header presence" >&5
31232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31233cat >conftest.$ac_ext <<_ACEOF
31234#line $LINENO "configure"
31235/* confdefs.h. */
31236_ACEOF
31237cat confdefs.h >>conftest.$ac_ext
31238cat >>conftest.$ac_ext <<_ACEOF
31239/* end confdefs.h. */
31240#include <$ac_header>
31241_ACEOF
31242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31244 ac_status=$?
31245 grep -v '^ *+' conftest.er1 >conftest.err
31246 rm -f conftest.er1
31247 cat conftest.err >&5
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); } >/dev/null; then
31250 if test -s conftest.err; then
31251 ac_cpp_err=$ac_c_preproc_warn_flag
31252 else
31253 ac_cpp_err=
31254 fi
31255else
31256 ac_cpp_err=yes
31257fi
31258if test -z "$ac_cpp_err"; then
31259 ac_header_preproc=yes
31260else
31261 echo "$as_me: failed program was:" >&5
31262sed 's/^/| /' conftest.$ac_ext >&5
31263
31264 ac_header_preproc=no
31265fi
31266rm -f conftest.err conftest.$ac_ext
31267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31268echo "${ECHO_T}$ac_header_preproc" >&6
31269
31270# So? What about this header?
31271case $ac_header_compiler:$ac_header_preproc in
31272 yes:no )
31273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31277 (
31278 cat <<\_ASBOX
31279## ------------------------------------ ##
31280## Report this to bug-autoconf@gnu.org. ##
31281## ------------------------------------ ##
31282_ASBOX
31283 ) |
31284 sed "s/^/$as_me: WARNING: /" >&2
31285 ;;
31286 no:yes )
31287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31293 (
31294 cat <<\_ASBOX
31295## ------------------------------------ ##
31296## Report this to bug-autoconf@gnu.org. ##
31297## ------------------------------------ ##
31298_ASBOX
31299 ) |
31300 sed "s/^/$as_me: WARNING: /" >&2
31301 ;;
31302esac
31303echo "$as_me:$LINENO: checking for $ac_header" >&5
31304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31305if eval "test \"\${$as_ac_Header+set}\" = set"; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31307else
31308 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31309fi
e6cc62c6
VS
31310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31312
10f2d63a 31313fi
e6cc62c6
VS
31314if test `eval echo '${'$as_ac_Header'}'` = yes; then
31315 cat >>confdefs.h <<_ACEOF
31316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31317_ACEOF
31318
247f5006 31319fi
e6cc62c6 31320
10f2d63a
VZ
31321done
31322
3a922bb4
RL
31323 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31324 wxUSE_JOYSTICK=no
e6cc62c6
VS
31325 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31326echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31327 fi
31328 fi
31329 fi
b089607b 31330
3a922bb4 31331 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31332 cat >>confdefs.h <<\_ACEOF
10f2d63a 31333#define wxUSE_JOYSTICK 1
e6cc62c6 31334_ACEOF
10f2d63a 31335
3a922bb4
RL
31336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31337 fi
dc3d889d
VZ
31338fi
31339
8284b0c5 31340
b089607b
VZ
31341if test "$TOOLKIT" != "MSW"; then
31342
3a922bb4
RL
31343 HAVE_DL_FUNCS=0
31344 HAVE_SHL_FUNCS=0
0b9ab0bd 31345 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31346 if test "$USE_DARWIN" = 1; then
31347 HAVE_DL_FUNCS=1
31348 else
e6cc62c6
VS
31349
31350for ac_func in dlopen
10f2d63a 31351do
e6cc62c6
VS
31352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31353echo "$as_me:$LINENO: checking for $ac_func" >&5
31354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31355if eval "test \"\${$as_ac_var+set}\" = set"; then
31356 echo $ECHO_N "(cached) $ECHO_C" >&6
31357else
31358 cat >conftest.$ac_ext <<_ACEOF
31359#line $LINENO "configure"
31360/* confdefs.h. */
31361_ACEOF
31362cat confdefs.h >>conftest.$ac_ext
31363cat >>conftest.$ac_ext <<_ACEOF
31364/* end confdefs.h. */
10f2d63a 31365/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31366 which can conflict with char $ac_func (); below.
31367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31368 <limits.h> exists even on freestanding compilers. */
31369#ifdef __STDC__
31370# include <limits.h>
31371#else
31372# include <assert.h>
31373#endif
10f2d63a 31374/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31375#ifdef __cplusplus
31376extern "C"
31377{
31378#endif
10f2d63a 31379/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31380 builtin and then its argument prototype would still apply. */
31381char $ac_func ();
10f2d63a
VZ
31382/* The GNU C library defines this for functions which it implements
31383 to always fail with ENOSYS. Some functions are actually named
31384 something starting with __ and the normal name is an alias. */
31385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31386choke me
31387#else
e6cc62c6
VS
31388char (*f) () = $ac_func;
31389#endif
31390#ifdef __cplusplus
31391}
10f2d63a
VZ
31392#endif
31393
e6cc62c6
VS
31394int
31395main ()
31396{
31397return f != $ac_func;
31398 ;
31399 return 0;
31400}
31401_ACEOF
31402rm -f conftest.$ac_objext conftest$ac_exeext
31403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31404 (eval $ac_link) 2>&5
31405 ac_status=$?
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); } &&
31408 { ac_try='test -s conftest$ac_exeext'
31409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31410 (eval $ac_try) 2>&5
31411 ac_status=$?
31412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413 (exit $ac_status); }; }; then
31414 eval "$as_ac_var=yes"
31415else
31416 echo "$as_me: failed program was:" >&5
31417sed 's/^/| /' conftest.$ac_ext >&5
31418
31419eval "$as_ac_var=no"
31420fi
31421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31422fi
31423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31425if test `eval echo '${'$as_ac_var'}'` = yes; then
31426 cat >>confdefs.h <<_ACEOF
31427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31428_ACEOF
31429
31430 cat >>confdefs.h <<\_ACEOF
10f2d63a 31431#define HAVE_DLOPEN 1
e6cc62c6 31432_ACEOF
10f2d63a 31433
3a922bb4 31434 HAVE_DL_FUNCS=1
e6cc62c6 31435
10f2d63a 31436else
e6cc62c6
VS
31437
31438 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31439echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31440if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31442else
e6cc62c6 31443 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31444LIBS="-ldl $LIBS"
e6cc62c6
VS
31445cat >conftest.$ac_ext <<_ACEOF
31446#line $LINENO "configure"
31447/* confdefs.h. */
31448_ACEOF
31449cat confdefs.h >>conftest.$ac_ext
31450cat >>conftest.$ac_ext <<_ACEOF
31451/* end confdefs.h. */
31452
10f2d63a 31453/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31454#ifdef __cplusplus
31455extern "C"
31456#endif
10f2d63a 31457/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31458 builtin and then its argument prototype would still apply. */
31459char dlopen ();
31460int
31461main ()
31462{
31463dlopen ();
31464 ;
31465 return 0;
31466}
31467_ACEOF
31468rm -f conftest.$ac_objext conftest$ac_exeext
31469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31470 (eval $ac_link) 2>&5
31471 ac_status=$?
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); } &&
31474 { ac_try='test -s conftest$ac_exeext'
31475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31476 (eval $ac_try) 2>&5
31477 ac_status=$?
31478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479 (exit $ac_status); }; }; then
31480 ac_cv_lib_dl_dlopen=yes
31481else
31482 echo "$as_me: failed program was:" >&5
31483sed 's/^/| /' conftest.$ac_ext >&5
31484
31485ac_cv_lib_dl_dlopen=no
31486fi
31487rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31488LIBS=$ac_check_lib_save_LIBS
31489fi
31490echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31491echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31492if test $ac_cv_lib_dl_dlopen = yes; then
31493
31494 cat >>confdefs.h <<\_ACEOF
10f2d63a 31495#define HAVE_DLOPEN 1
e6cc62c6 31496_ACEOF
10f2d63a 31497
3a922bb4 31498 HAVE_DL_FUNCS=1
3d63bc3a 31499 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31500
10f2d63a 31501else
10f2d63a 31502
e6cc62c6
VS
31503
31504for ac_func in shl_load
10f2d63a 31505do
e6cc62c6
VS
31506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31507echo "$as_me:$LINENO: checking for $ac_func" >&5
31508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31509if eval "test \"\${$as_ac_var+set}\" = set"; then
31510 echo $ECHO_N "(cached) $ECHO_C" >&6
31511else
31512 cat >conftest.$ac_ext <<_ACEOF
31513#line $LINENO "configure"
31514/* confdefs.h. */
31515_ACEOF
31516cat confdefs.h >>conftest.$ac_ext
31517cat >>conftest.$ac_ext <<_ACEOF
31518/* end confdefs.h. */
10f2d63a 31519/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31520 which can conflict with char $ac_func (); below.
31521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31522 <limits.h> exists even on freestanding compilers. */
31523#ifdef __STDC__
31524# include <limits.h>
31525#else
31526# include <assert.h>
31527#endif
10f2d63a 31528/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31529#ifdef __cplusplus
31530extern "C"
31531{
31532#endif
10f2d63a 31533/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31534 builtin and then its argument prototype would still apply. */
31535char $ac_func ();
10f2d63a
VZ
31536/* The GNU C library defines this for functions which it implements
31537 to always fail with ENOSYS. Some functions are actually named
31538 something starting with __ and the normal name is an alias. */
31539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31540choke me
31541#else
e6cc62c6
VS
31542char (*f) () = $ac_func;
31543#endif
31544#ifdef __cplusplus
31545}
10f2d63a
VZ
31546#endif
31547
e6cc62c6
VS
31548int
31549main ()
31550{
31551return f != $ac_func;
31552 ;
31553 return 0;
31554}
31555_ACEOF
31556rm -f conftest.$ac_objext conftest$ac_exeext
31557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31558 (eval $ac_link) 2>&5
31559 ac_status=$?
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); } &&
31562 { ac_try='test -s conftest$ac_exeext'
31563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31564 (eval $ac_try) 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
31568 eval "$as_ac_var=yes"
31569else
31570 echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
31573eval "$as_ac_var=no"
31574fi
31575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31576fi
31577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31579if test `eval echo '${'$as_ac_var'}'` = yes; then
31580 cat >>confdefs.h <<_ACEOF
31581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31582_ACEOF
31583
31584 cat >>confdefs.h <<\_ACEOF
10f2d63a 31585#define HAVE_SHL_LOAD 1
e6cc62c6 31586_ACEOF
10f2d63a 31587
3a922bb4 31588 HAVE_SHL_FUNCS=1
e6cc62c6 31589
10f2d63a 31590else
e6cc62c6
VS
31591
31592 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31593echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31594if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31595 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31596else
e6cc62c6 31597 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31598LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31599cat >conftest.$ac_ext <<_ACEOF
31600#line $LINENO "configure"
31601/* confdefs.h. */
31602_ACEOF
31603cat confdefs.h >>conftest.$ac_ext
31604cat >>conftest.$ac_ext <<_ACEOF
31605/* end confdefs.h. */
31606
8284b0c5 31607/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31608#ifdef __cplusplus
31609extern "C"
31610#endif
f6bcfd97 31611/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31612 builtin and then its argument prototype would still apply. */
31613char dld ();
31614int
31615main ()
31616{
31617dld ();
31618 ;
31619 return 0;
31620}
31621_ACEOF
31622rm -f conftest.$ac_objext conftest$ac_exeext
31623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31624 (eval $ac_link) 2>&5
31625 ac_status=$?
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); } &&
31628 { ac_try='test -s conftest$ac_exeext'
31629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31630 (eval $ac_try) 2>&5
31631 ac_status=$?
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); }; }; then
31634 ac_cv_lib_shl_load_dld=yes
31635else
31636 echo "$as_me: failed program was:" >&5
31637sed 's/^/| /' conftest.$ac_ext >&5
31638
31639ac_cv_lib_shl_load_dld=no
31640fi
31641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31642LIBS=$ac_check_lib_save_LIBS
31643fi
31644echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31645echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31646if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31647
3a922bb4 31648 HAVE_SHL_FUNCS=1
3d63bc3a 31649 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31650
f6bcfd97
BP
31651fi
31652
e6cc62c6 31653
10f2d63a
VZ
31654fi
31655done
31656
e6cc62c6 31657
10f2d63a
VZ
31658fi
31659
e6cc62c6 31660
10f2d63a
VZ
31661fi
31662done
31663
5c6fa7d2 31664
8284b0c5 31665 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31666
31667for ac_func in dlerror
f6bcfd97 31668do
e6cc62c6
VS
31669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31670echo "$as_me:$LINENO: checking for $ac_func" >&5
31671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31672if eval "test \"\${$as_ac_var+set}\" = set"; then
31673 echo $ECHO_N "(cached) $ECHO_C" >&6
31674else
31675 cat >conftest.$ac_ext <<_ACEOF
31676#line $LINENO "configure"
31677/* confdefs.h. */
31678_ACEOF
31679cat confdefs.h >>conftest.$ac_ext
31680cat >>conftest.$ac_ext <<_ACEOF
31681/* end confdefs.h. */
f6bcfd97 31682/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31683 which can conflict with char $ac_func (); below.
31684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31685 <limits.h> exists even on freestanding compilers. */
31686#ifdef __STDC__
31687# include <limits.h>
31688#else
31689# include <assert.h>
31690#endif
f6bcfd97 31691/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31692#ifdef __cplusplus
31693extern "C"
31694{
31695#endif
f6bcfd97 31696/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31697 builtin and then its argument prototype would still apply. */
31698char $ac_func ();
f6bcfd97
BP
31699/* The GNU C library defines this for functions which it implements
31700 to always fail with ENOSYS. Some functions are actually named
31701 something starting with __ and the normal name is an alias. */
31702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31703choke me
31704#else
e6cc62c6
VS
31705char (*f) () = $ac_func;
31706#endif
31707#ifdef __cplusplus
31708}
f6bcfd97
BP
31709#endif
31710
e6cc62c6
VS
31711int
31712main ()
31713{
31714return f != $ac_func;
31715 ;
31716 return 0;
31717}
31718_ACEOF
31719rm -f conftest.$ac_objext conftest$ac_exeext
31720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31721 (eval $ac_link) 2>&5
31722 ac_status=$?
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } &&
31725 { ac_try='test -s conftest$ac_exeext'
31726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727 (eval $ac_try) 2>&5
31728 ac_status=$?
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); }; }; then
31731 eval "$as_ac_var=yes"
31732else
31733 echo "$as_me: failed program was:" >&5
31734sed 's/^/| /' conftest.$ac_ext >&5
31735
31736eval "$as_ac_var=no"
31737fi
31738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31739fi
31740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31742if test `eval echo '${'$as_ac_var'}'` = yes; then
31743 cat >>confdefs.h <<_ACEOF
31744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31745_ACEOF
31746 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31747#define HAVE_DLERROR 1
e6cc62c6 31748_ACEOF
f6bcfd97
BP
31749
31750else
e6cc62c6
VS
31751 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31752echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31753if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31754 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31755else
e6cc62c6 31756 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31757LIBS="-ldl $LIBS"
e6cc62c6
VS
31758cat >conftest.$ac_ext <<_ACEOF
31759#line $LINENO "configure"
31760/* confdefs.h. */
31761_ACEOF
31762cat confdefs.h >>conftest.$ac_ext
31763cat >>conftest.$ac_ext <<_ACEOF
31764/* end confdefs.h. */
31765
f6bcfd97 31766/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31767#ifdef __cplusplus
31768extern "C"
31769#endif
f6bcfd97 31770/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31771 builtin and then its argument prototype would still apply. */
31772char dlerror ();
31773int
31774main ()
31775{
31776dlerror ();
31777 ;
31778 return 0;
31779}
31780_ACEOF
31781rm -f conftest.$ac_objext conftest$ac_exeext
31782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31783 (eval $ac_link) 2>&5
31784 ac_status=$?
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); } &&
31787 { ac_try='test -s conftest$ac_exeext'
31788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31789 (eval $ac_try) 2>&5
31790 ac_status=$?
31791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792 (exit $ac_status); }; }; then
31793 ac_cv_lib_dl_dlerror=yes
31794else
31795 echo "$as_me: failed program was:" >&5
31796sed 's/^/| /' conftest.$ac_ext >&5
31797
31798ac_cv_lib_dl_dlerror=no
31799fi
31800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31801LIBS=$ac_check_lib_save_LIBS
31802fi
31803echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31804echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31805if test $ac_cv_lib_dl_dlerror = yes; then
31806 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31807#define HAVE_DLERROR 1
e6cc62c6 31808_ACEOF
f6bcfd97 31809
f6bcfd97
BP
31810fi
31811
31812fi
31813done
31814
3a922bb4
RL
31815 fi
31816 fi
f6bcfd97 31817
3a922bb4
RL
31818 if test "$HAVE_DL_FUNCS" = 0; then
31819 if test "$HAVE_SHL_FUNCS" = 0; then
31820 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
31821 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31822echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 31823 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
31824 wxUSE_DYNLIB_CLASS=no
31825 else
e6cc62c6
VS
31826 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31827echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
31828 fi
31829 fi
10f2d63a
VZ
31830 fi
31831 fi
31832fi
31833
0b9ab0bd 31834if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 31835 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 31836#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 31837_ACEOF
0b9ab0bd
RL
31838
31839elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 31840 cat >>confdefs.h <<\_ACEOF
10f2d63a 31841#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 31842_ACEOF
10f2d63a
VZ
31843
31844fi
31845
8284b0c5 31846
1e6feb95 31847if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 31848 cat >>confdefs.h <<\_ACEOF
1e6feb95 31849#define wxUSE_FONTMAP 1
e6cc62c6 31850_ACEOF
1e6feb95
VZ
31851
31852fi
31853
10f2d63a 31854if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 31855 cat >>confdefs.h <<\_ACEOF
10f2d63a 31856#define wxUSE_UNICODE 1
e6cc62c6 31857_ACEOF
10f2d63a 31858
8284b0c5 31859
bbc3925a
VS
31860 if test "$wxUSE_MSW" != 1; then
31861 wxUSE_UNICODE_MSLU=no
31862 fi
a72a4bfa
VS
31863
31864 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
31865 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31866echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31867if test "${ac_cv_lib_unicows_main+set}" = set; then
31868 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 31869else
e6cc62c6 31870 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 31871LIBS="-lunicows $LIBS"
e6cc62c6
VS
31872cat >conftest.$ac_ext <<_ACEOF
31873#line $LINENO "configure"
31874/* confdefs.h. */
31875_ACEOF
31876cat confdefs.h >>conftest.$ac_ext
31877cat >>conftest.$ac_ext <<_ACEOF
31878/* end confdefs.h. */
a72a4bfa 31879
8284b0c5 31880
e6cc62c6
VS
31881int
31882main ()
31883{
31884main ();
31885 ;
31886 return 0;
31887}
31888_ACEOF
31889rm -f conftest.$ac_objext conftest$ac_exeext
31890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31891 (eval $ac_link) 2>&5
31892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } &&
31895 { ac_try='test -s conftest$ac_exeext'
31896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897 (eval $ac_try) 2>&5
31898 ac_status=$?
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; }; then
31901 ac_cv_lib_unicows_main=yes
31902else
31903 echo "$as_me: failed program was:" >&5
31904sed 's/^/| /' conftest.$ac_ext >&5
31905
31906ac_cv_lib_unicows_main=no
31907fi
31908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31909LIBS=$ac_check_lib_save_LIBS
31910fi
31911echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
31912echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
31913if test $ac_cv_lib_unicows_main = yes; then
31914
31915 cat >>confdefs.h <<\_ACEOF
a72a4bfa 31916#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
31917_ACEOF
31918
a72a4bfa 31919
a72a4bfa 31920else
a72a4bfa 31921
e6cc62c6
VS
31922 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31923 Applications will only run on Windows NT/2000/XP!" >&5
31924echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31925 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 31926 wxUSE_UNICODE_MSLU=no
e6cc62c6 31927
a72a4bfa
VS
31928fi
31929
31930 fi
10f2d63a
VZ
31931fi
31932
10f2d63a 31933if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 31934 cat >>confdefs.h <<\_ACEOF
10f2d63a 31935#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 31936_ACEOF
10f2d63a
VZ
31937
31938fi
31939
8284b0c5 31940
10f2d63a 31941if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 31942 cat >>confdefs.h <<\_ACEOF
10f2d63a 31943#define wxUSE_POSTSCRIPT 1
e6cc62c6 31944_ACEOF
10f2d63a
VZ
31945
31946fi
31947
e6cc62c6 31948cat >>confdefs.h <<\_ACEOF
10f2d63a 31949#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 31950_ACEOF
10f2d63a 31951
8284b0c5 31952
e6cc62c6 31953cat >>confdefs.h <<\_ACEOF
10f2d63a 31954#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 31955_ACEOF
10f2d63a 31956
8284b0c5
MB
31957
31958
10f2d63a 31959if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 31960 cat >>confdefs.h <<\_ACEOF
10f2d63a 31961#define wxUSE_CONSTRAINTS 1
e6cc62c6 31962_ACEOF
10f2d63a
VZ
31963
31964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
31965fi
31966
31967if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 31968
8284b0c5 31969
bb811f17 31970 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
e6cc62c6 31971 cat >>confdefs.h <<\_ACEOF
10f2d63a 31972#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 31973_ACEOF
10f2d63a 31974
bb811f17
JS
31975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
31976 fi
10f2d63a
VZ
31977fi
31978
31979if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 31980 cat >>confdefs.h <<\_ACEOF
10f2d63a 31981#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 31982_ACEOF
10f2d63a
VZ
31983
31984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
31985 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
31987 fi
31988fi
31989
31990if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 31991 cat >>confdefs.h <<\_ACEOF
10f2d63a 31992#define wxUSE_HELP 1
e6cc62c6 31993_ACEOF
10f2d63a
VZ
31994
31995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 31996
77e13408 31997 if test "$wxUSE_MSW" = 1; then
031d8228 31998 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 31999 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32000#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32001_ACEOF
29fd3c0c 32002
3e44f09d 32003 fi
3379ed37 32004 fi
031d8228
VS
32005
32006 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32007 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32008 cat >>confdefs.h <<\_ACEOF
031d8228 32009#define wxUSE_WXHTML_HELP 1
e6cc62c6 32010_ACEOF
031d8228
VS
32011
32012 else
e6cc62c6
VS
32013 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32014echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32015 wxUSE_WXHTML_HELP=no
32016 fi
32017 fi
10f2d63a
VZ
32018fi
32019
32020if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32021 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32022 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32023echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32024 else
e6cc62c6 32025 cat >>confdefs.h <<\_ACEOF
10f2d63a 32026#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32027_ACEOF
10f2d63a
VZ
32028
32029 fi
32030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32031fi
32032
e6cc62c6
VS
32033if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32034 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32035echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32036 { (exit 1); exit 1; }; }
32037fi
32038
32039
32040if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32041 -o "$wxUSE_CLIPBOARD" = "yes" \
32042 -o "$wxUSE_OLE" = "yes" \
32043 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32044
32045for ac_header in ole2.h
32046do
32047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32048if eval "test \"\${$as_ac_Header+set}\" = set"; then
32049 echo "$as_me:$LINENO: checking for $ac_header" >&5
32050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32051if eval "test \"\${$as_ac_Header+set}\" = set"; then
32052 echo $ECHO_N "(cached) $ECHO_C" >&6
32053fi
32054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32056else
32057 # Is the header compilable?
32058echo "$as_me:$LINENO: checking $ac_header usability" >&5
32059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32060cat >conftest.$ac_ext <<_ACEOF
32061#line $LINENO "configure"
32062/* confdefs.h. */
32063_ACEOF
32064cat confdefs.h >>conftest.$ac_ext
32065cat >>conftest.$ac_ext <<_ACEOF
32066/* end confdefs.h. */
32067$ac_includes_default
32068#include <$ac_header>
32069_ACEOF
32070rm -f conftest.$ac_objext
32071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32072 (eval $ac_compile) 2>&5
32073 ac_status=$?
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); } &&
32076 { ac_try='test -s conftest.$ac_objext'
32077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32078 (eval $ac_try) 2>&5
32079 ac_status=$?
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); }; }; then
32082 ac_header_compiler=yes
32083else
32084 echo "$as_me: failed program was:" >&5
32085sed 's/^/| /' conftest.$ac_ext >&5
32086
32087ac_header_compiler=no
32088fi
32089rm -f conftest.$ac_objext conftest.$ac_ext
32090echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32091echo "${ECHO_T}$ac_header_compiler" >&6
32092
32093# Is the header present?
32094echo "$as_me:$LINENO: checking $ac_header presence" >&5
32095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32096cat >conftest.$ac_ext <<_ACEOF
32097#line $LINENO "configure"
32098/* confdefs.h. */
32099_ACEOF
32100cat confdefs.h >>conftest.$ac_ext
32101cat >>conftest.$ac_ext <<_ACEOF
32102/* end confdefs.h. */
32103#include <$ac_header>
32104_ACEOF
32105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32107 ac_status=$?
32108 grep -v '^ *+' conftest.er1 >conftest.err
32109 rm -f conftest.er1
32110 cat conftest.err >&5
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); } >/dev/null; then
32113 if test -s conftest.err; then
32114 ac_cpp_err=$ac_c_preproc_warn_flag
32115 else
32116 ac_cpp_err=
32117 fi
32118else
32119 ac_cpp_err=yes
32120fi
32121if test -z "$ac_cpp_err"; then
32122 ac_header_preproc=yes
32123else
32124 echo "$as_me: failed program was:" >&5
32125sed 's/^/| /' conftest.$ac_ext >&5
32126
32127 ac_header_preproc=no
32128fi
32129rm -f conftest.err conftest.$ac_ext
32130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32131echo "${ECHO_T}$ac_header_preproc" >&6
32132
32133# So? What about this header?
32134case $ac_header_compiler:$ac_header_preproc in
32135 yes:no )
32136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32140 (
32141 cat <<\_ASBOX
32142## ------------------------------------ ##
32143## Report this to bug-autoconf@gnu.org. ##
32144## ------------------------------------ ##
32145_ASBOX
32146 ) |
32147 sed "s/^/$as_me: WARNING: /" >&2
32148 ;;
32149 no:yes )
32150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32153echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32156 (
32157 cat <<\_ASBOX
32158## ------------------------------------ ##
32159## Report this to bug-autoconf@gnu.org. ##
32160## ------------------------------------ ##
32161_ASBOX
32162 ) |
32163 sed "s/^/$as_me: WARNING: /" >&2
32164 ;;
32165esac
32166echo "$as_me:$LINENO: checking for $ac_header" >&5
32167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32168if eval "test \"\${$as_ac_Header+set}\" = set"; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32170else
32171 eval "$as_ac_Header=$ac_header_preproc"
32172fi
32173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32175
10f2d63a 32176fi
e6cc62c6
VS
32177if test `eval echo '${'$as_ac_Header'}'` = yes; then
32178 cat >>confdefs.h <<_ACEOF
32179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32180_ACEOF
10f2d63a 32181
10f2d63a 32182fi
e6cc62c6 32183
10f2d63a
VZ
32184done
32185
8284b0c5 32186
2b9bdf71
VZ
32187 if test "$ac_cv_header_ole2_h" = "yes" ; then
32188 if test "$GCC" = yes ; then
8284b0c5
MB
32189
32190
e6cc62c6
VS
32191 ac_ext=cc
32192ac_cpp='$CXXCPP $CPPFLAGS'
32193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32196
32197
32198 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32199echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32200 cat >conftest.$ac_ext <<_ACEOF
32201#line $LINENO "configure"
32202/* confdefs.h. */
32203_ACEOF
32204cat confdefs.h >>conftest.$ac_ext
32205cat >>conftest.$ac_ext <<_ACEOF
32206/* end confdefs.h. */
8284b0c5
MB
32207#include <windows.h>
32208 #include <ole2.h>
e6cc62c6
VS
32209int
32210main ()
32211{
8284b0c5 32212
e6cc62c6
VS
32213 ;
32214 return 0;
32215}
32216_ACEOF
32217rm -f conftest.$ac_objext
32218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32219 (eval $ac_compile) 2>&5
32220 ac_status=$?
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); } &&
32223 { ac_try='test -s conftest.$ac_objext'
32224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32225 (eval $ac_try) 2>&5
32226 ac_status=$?
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); }; }; then
32229 echo "$as_me:$LINENO: result: no" >&5
32230echo "${ECHO_T}no" >&6
32231else
32232 echo "$as_me: failed program was:" >&5
32233sed 's/^/| /' conftest.$ac_ext >&5
32234
32235echo "$as_me:$LINENO: result: yes" >&5
32236echo "${ECHO_T}yes" >&6
8284b0c5
MB
32237 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32238fi
e6cc62c6 32239rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32240 ac_ext=c
8284b0c5 32241ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32244ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32245
2b9bdf71 32246 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32247 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32248 cat >>confdefs.h <<\_ACEOF
4f11a343 32249#define wxUSE_OLE 1
e6cc62c6 32250_ACEOF
4f11a343 32251
8284b0c5 32252
2b9bdf71
VZ
32253 fi
32254
e6cc62c6 32255 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32256#define wxUSE_DATAOBJ 1
e6cc62c6 32257_ACEOF
2b9bdf71
VZ
32258
32259 else
e6cc62c6
VS
32260 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32261echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32262
32263 wxUSE_CLIPBOARD=no
32264 wxUSE_DRAG_AND_DROP=no
32265 wxUSE_DATAOBJ=no
3bce6687
JS
32266 wxUSE_OLE=no
32267 fi
32268
32269 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32270 cat >>confdefs.h <<\_ACEOF
3bce6687 32271#define wxUSE_METAFILE 1
e6cc62c6 32272_ACEOF
3bce6687
JS
32273
32274
e6cc62c6 32275 cat >>confdefs.h <<\_ACEOF
3bce6687 32276#define wxUSE_ENH_METAFILE 1
e6cc62c6 32277_ACEOF
3bce6687
JS
32278
32279 fi
32280fi
32281
2b9bdf71
VZ
32282if test "$wxUSE_IPC" = "yes"; then
32283 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32284 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32285echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32286 fi
32287
e6cc62c6 32288 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32289#define wxUSE_IPC 1
e6cc62c6 32290_ACEOF
2b9bdf71
VZ
32291
32292fi
32293
32294if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32295 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32296 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32297echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32298 wxUSE_CLIPBOARD=no
32299 fi
32300
32301 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32302 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32303#define wxUSE_CLIPBOARD 1
e6cc62c6 32304_ACEOF
2b9bdf71 32305
8284b0c5 32306
e6cc62c6 32307 cat >>confdefs.h <<\_ACEOF
673f4220 32308#define wxUSE_DATAOBJ 1
e6cc62c6 32309_ACEOF
673f4220 32310
6c657b52 32311 fi
2b9bdf71
VZ
32312fi
32313
32314if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32315 if test "$wxUSE_GTK" = 1; then
32316 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32317 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32318echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32319 wxUSE_DRAG_AND_DROP=no
32320 fi
32321 fi
32322
2b9bdf71 32323 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32324 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32325echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32326 wxUSE_DRAG_AND_DROP=no
32327 fi
32328
f79bd02d 32329 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32330 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32331echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32332 wxUSE_DRAG_AND_DROP=no
32333 fi
32334
6c657b52 32335 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32336 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32337echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32338 wxUSE_DRAG_AND_DROP=no
32339 fi
32340
10f2d63a 32341 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32342 cat >>confdefs.h <<\_ACEOF
10f2d63a 32343#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32344_ACEOF
10f2d63a
VZ
32345
32346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32347 fi
32348
32349fi
32350
32351if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32352 cat >>confdefs.h <<\_ACEOF
10f2d63a 32353#define wxUSE_SPLINES 1
e6cc62c6 32354_ACEOF
10f2d63a
VZ
32355
32356fi
32357
8284b0c5 32358
1e6feb95
VZ
32359USES_CONTROLS=0
32360if test "$wxUSE_CONTROLS" = "yes"; then
32361 USES_CONTROLS=1
32362fi
32363
10f2d63a 32364if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32365 cat >>confdefs.h <<\_ACEOF
10f2d63a 32366#define wxUSE_ACCEL 1
e6cc62c6 32367_ACEOF
10f2d63a 32368
1e6feb95
VZ
32369 USES_CONTROLS=1
32370fi
32371
32372if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32373 cat >>confdefs.h <<\_ACEOF
1e6feb95 32374#define wxUSE_BUTTON 1
e6cc62c6 32375_ACEOF
1e6feb95
VZ
32376
32377 USES_CONTROLS=1
32378fi
32379
32380if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32381 cat >>confdefs.h <<\_ACEOF
1e6feb95 32382#define wxUSE_BMPBUTTON 1
e6cc62c6 32383_ACEOF
1e6feb95
VZ
32384
32385 USES_CONTROLS=1
32386fi
32387
32388if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32389 cat >>confdefs.h <<\_ACEOF
1e6feb95 32390#define wxUSE_CALENDARCTRL 1
e6cc62c6 32391_ACEOF
1e6feb95
VZ
32392
32393 USES_CONTROLS=1
32394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32395fi
32396
32397if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32398 cat >>confdefs.h <<\_ACEOF
10f2d63a 32399#define wxUSE_CARET 1
e6cc62c6 32400_ACEOF
10f2d63a 32401
1e6feb95 32402 USES_CONTROLS=1
10f2d63a
VZ
32403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32404fi
32405
32406if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32407 cat >>confdefs.h <<\_ACEOF
10f2d63a 32408#define wxUSE_COMBOBOX 1
e6cc62c6 32409_ACEOF
10f2d63a 32410
1e6feb95 32411 USES_CONTROLS=1
10f2d63a
VZ
32412fi
32413
32414if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32415 cat >>confdefs.h <<\_ACEOF
10f2d63a 32416#define wxUSE_CHOICE 1
e6cc62c6 32417_ACEOF
10f2d63a 32418
1e6feb95 32419 USES_CONTROLS=1
10f2d63a
VZ
32420fi
32421
32422if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32423 cat >>confdefs.h <<\_ACEOF
10f2d63a 32424#define wxUSE_CHECKBOX 1
e6cc62c6 32425_ACEOF
10f2d63a 32426
1e6feb95 32427 USES_CONTROLS=1
10f2d63a
VZ
32428fi
32429
32430if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32431 cat >>confdefs.h <<\_ACEOF
10f2d63a 32432#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32433_ACEOF
10f2d63a 32434
1e6feb95 32435 USES_CONTROLS=1
10f2d63a
VZ
32436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32437fi
32438
da494b40 32439if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32440 cat >>confdefs.h <<\_ACEOF
da494b40 32441#define wxUSE_DISPLAY 1
e6cc62c6 32442_ACEOF
da494b40
MB
32443
32444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32445fi
32446
10f2d63a 32447if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32448 cat >>confdefs.h <<\_ACEOF
10f2d63a 32449#define wxUSE_GAUGE 1
e6cc62c6 32450_ACEOF
10f2d63a 32451
1e6feb95 32452 USES_CONTROLS=1
10f2d63a
VZ
32453fi
32454
d6a55c4b 32455if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32456 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32457#define wxUSE_GRID 1
e6cc62c6 32458_ACEOF
10f2d63a 32459
1e6feb95 32460 USES_CONTROLS=1
d6a55c4b 32461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32462fi
32463
32464if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32465 cat >>confdefs.h <<\_ACEOF
10f2d63a 32466#define wxUSE_IMAGLIST 1
e6cc62c6 32467_ACEOF
10f2d63a
VZ
32468
32469fi
32470
32471if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32472 cat >>confdefs.h <<\_ACEOF
10f2d63a 32473#define wxUSE_LISTBOX 1
e6cc62c6 32474_ACEOF
10f2d63a 32475
1e6feb95 32476 USES_CONTROLS=1
10f2d63a
VZ
32477fi
32478
32479if test "$wxUSE_LISTCTRL" = "yes"; then
32480 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32481 cat >>confdefs.h <<\_ACEOF
10f2d63a 32482#define wxUSE_LISTCTRL 1
e6cc62c6 32483_ACEOF
10f2d63a 32484
1e6feb95 32485 USES_CONTROLS=1
10f2d63a
VZ
32486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32487 else
e6cc62c6
VS
32488 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32489echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32490 fi
32491fi
32492
32493if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32494 cat >>confdefs.h <<\_ACEOF
10f2d63a 32495#define wxUSE_NOTEBOOK 1
e6cc62c6 32496_ACEOF
10f2d63a 32497
1e6feb95 32498 USES_CONTROLS=1
10f2d63a
VZ
32499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32500fi
32501
24176f2c 32502
10f2d63a 32503if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32504 cat >>confdefs.h <<\_ACEOF
10f2d63a 32505#define wxUSE_RADIOBOX 1
e6cc62c6 32506_ACEOF
10f2d63a 32507
1e6feb95 32508 USES_CONTROLS=1
10f2d63a
VZ
32509fi
32510
32511if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32512 cat >>confdefs.h <<\_ACEOF
10f2d63a 32513#define wxUSE_RADIOBTN 1
e6cc62c6 32514_ACEOF
10f2d63a 32515
1e6feb95 32516 USES_CONTROLS=1
10f2d63a
VZ
32517fi
32518
32519if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32520 cat >>confdefs.h <<\_ACEOF
10f2d63a 32521#define wxUSE_SASH 1
e6cc62c6 32522_ACEOF
10f2d63a
VZ
32523
32524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32525fi
32526
32527if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32528 cat >>confdefs.h <<\_ACEOF
10f2d63a 32529#define wxUSE_SCROLLBAR 1
e6cc62c6 32530_ACEOF
10f2d63a 32531
1e6feb95 32532 USES_CONTROLS=1
741a9306 32533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32534fi
32535
32536if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32537 cat >>confdefs.h <<\_ACEOF
10f2d63a 32538#define wxUSE_SLIDER 1
e6cc62c6 32539_ACEOF
10f2d63a 32540
1e6feb95 32541 USES_CONTROLS=1
10f2d63a
VZ
32542fi
32543
32544if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32545 cat >>confdefs.h <<\_ACEOF
10f2d63a 32546#define wxUSE_SPINBTN 1
e6cc62c6 32547_ACEOF
10f2d63a 32548
1e6feb95 32549 USES_CONTROLS=1
10f2d63a
VZ
32550fi
32551
56cfaa52 32552if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32553 cat >>confdefs.h <<\_ACEOF
56cfaa52 32554#define wxUSE_SPINCTRL 1
e6cc62c6 32555_ACEOF
56cfaa52 32556
1e6feb95 32557 USES_CONTROLS=1
56cfaa52
RR
32558fi
32559
10f2d63a 32560if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32561 cat >>confdefs.h <<\_ACEOF
10f2d63a 32562#define wxUSE_SPLITTER 1
e6cc62c6 32563_ACEOF
10f2d63a
VZ
32564
32565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32566fi
32567
32568if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32569 cat >>confdefs.h <<\_ACEOF
10f2d63a 32570#define wxUSE_STATBMP 1
e6cc62c6 32571_ACEOF
10f2d63a 32572
1e6feb95 32573 USES_CONTROLS=1
10f2d63a
VZ
32574fi
32575
32576if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32577 cat >>confdefs.h <<\_ACEOF
10f2d63a 32578#define wxUSE_STATBOX 1
e6cc62c6 32579_ACEOF
10f2d63a 32580
1e6feb95
VZ
32581 USES_CONTROLS=1
32582fi
32583
32584if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32585 cat >>confdefs.h <<\_ACEOF
1e6feb95 32586#define wxUSE_STATTEXT 1
e6cc62c6 32587_ACEOF
1e6feb95
VZ
32588
32589 USES_CONTROLS=1
10f2d63a
VZ
32590fi
32591
32592if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32593 cat >>confdefs.h <<\_ACEOF
10f2d63a 32594#define wxUSE_STATLINE 1
e6cc62c6 32595_ACEOF
10f2d63a 32596
89e6bf6d 32597 USES_CONTROLS=1
10f2d63a
VZ
32598fi
32599
32600if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32601 cat >>confdefs.h <<\_ACEOF
10f2d63a 32602#define wxUSE_STATUSBAR 1
e6cc62c6 32603_ACEOF
10f2d63a 32604
1e6feb95 32605 USES_CONTROLS=1
698dcdb6 32606
2286341c 32607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32608fi
32609
32610if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32611 cat >>confdefs.h <<\_ACEOF
10f2d63a 32612#define wxUSE_TAB_DIALOG 1
e6cc62c6 32613_ACEOF
10f2d63a
VZ
32614
32615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32616fi
32617
1e6feb95 32618if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32619 cat >>confdefs.h <<\_ACEOF
1e6feb95 32620#define wxUSE_TEXTCTRL 1
e6cc62c6 32621_ACEOF
1e6feb95
VZ
32622
32623 USES_CONTROLS=1
32624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32625fi
32626
1db8dc4a 32627if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32628 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32629 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32630echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32631 wxUSE_TOGGLEBTN=no
32632 fi
32633 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32634 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32635echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32636 wxUSE_TOGGLEBTN=no
32637 fi
32638
32639 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32640 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32641#define wxUSE_TOGGLEBTN 1
e6cc62c6 32642_ACEOF
1db8dc4a 32643
1e6feb95 32644 USES_CONTROLS=1
a45d7ab7 32645 fi
1db8dc4a
VZ
32646fi
32647
360d6699 32648if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32649 cat >>confdefs.h <<\_ACEOF
360d6699 32650#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32651_ACEOF
360d6699
VZ
32652
32653 wxUSE_TOOLBAR="yes"
1e6feb95 32654 USES_CONTROLS=1
360d6699
VZ
32655fi
32656
10f2d63a 32657if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32658 cat >>confdefs.h <<\_ACEOF
10f2d63a 32659#define wxUSE_TOOLBAR 1
e6cc62c6 32660_ACEOF
10f2d63a 32661
1e6feb95 32662 USES_CONTROLS=1
698dcdb6 32663
360d6699
VZ
32664 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32665 wxUSE_TOOLBAR_NATIVE="yes"
32666 fi
32667
1e6feb95 32668 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32669 cat >>confdefs.h <<\_ACEOF
360d6699 32670#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32671_ACEOF
360d6699 32672
1e6feb95
VZ
32673 USES_CONTROLS=1
32674 fi
32675
32676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32677fi
32678
10f2d63a
VZ
32679if test "$wxUSE_TOOLTIPS" = "yes"; then
32680 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32681 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32682echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32683 else
89e6bf6d 32684 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32685 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32686echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32687 else
e6cc62c6 32688 cat >>confdefs.h <<\_ACEOF
10f2d63a 32689#define wxUSE_TOOLTIPS 1
e6cc62c6 32690_ACEOF
10f2d63a
VZ
32691
32692 fi
32693 fi
32694fi
32695
32696if test "$wxUSE_TREECTRL" = "yes"; then
32697 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32698 cat >>confdefs.h <<\_ACEOF
10f2d63a 32699#define wxUSE_TREECTRL 1
e6cc62c6 32700_ACEOF
10f2d63a 32701
1e6feb95 32702 USES_CONTROLS=1
10f2d63a
VZ
32703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32704 else
e6cc62c6
VS
32705 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32706echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32707 fi
32708fi
32709
9f41d601 32710if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32711 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32712 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32713echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32714 else
485cf710 32715 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32716 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32717echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32718 else
3c011993 32719 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32720 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32721echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32722 else
e6cc62c6 32723 cat >>confdefs.h <<\_ACEOF
9f41d601 32724#define wxUSE_POPUPWIN 1
e6cc62c6 32725_ACEOF
9f41d601 32726
8284b0c5 32727
3c011993
VZ
32728 USES_CONTROLS=1
32729 fi
485cf710 32730 fi
6abe4b65 32731 fi
9f41d601
RR
32732fi
32733
dd964dcc 32734if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32735 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32736 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32737echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32738 else
e6cc62c6 32739 cat >>confdefs.h <<\_ACEOF
dd964dcc 32740#define wxUSE_TIPWINDOW 1
e6cc62c6 32741_ACEOF
dd964dcc 32742
3c011993 32743 fi
dd964dcc
VZ
32744fi
32745
1e6feb95 32746if test "$USES_CONTROLS" = 1; then
e6cc62c6 32747 cat >>confdefs.h <<\_ACEOF
1e6feb95 32748#define wxUSE_CONTROLS 1
e6cc62c6 32749_ACEOF
10f2d63a 32750
10f2d63a
VZ
32751fi
32752
8284b0c5 32753
1e6feb95 32754
24fd6d87 32755if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32756 cat >>confdefs.h <<\_ACEOF
24fd6d87 32757#define wxUSE_DRAGIMAGE 1
e6cc62c6 32758_ACEOF
24fd6d87
VZ
32759
32760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32761fi
32762
7bb2947d 32763if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32764 cat >>confdefs.h <<\_ACEOF
7bb2947d 32765#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32766_ACEOF
7bb2947d
MB
32767
32768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32769fi
32770
1e6feb95 32771if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32772 cat >>confdefs.h <<\_ACEOF
1e6feb95 32773#define wxUSE_MENUS 1
e6cc62c6 32774_ACEOF
10f2d63a 32775
1e6feb95 32776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
32777fi
32778
1e6feb95 32779if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32780 cat >>confdefs.h <<\_ACEOF
1e6feb95 32781#define wxUSE_METAFILE 1
e6cc62c6 32782_ACEOF
10f2d63a 32783
10f2d63a
VZ
32784fi
32785
1e6feb95 32786if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 32787 cat >>confdefs.h <<\_ACEOF
1e6feb95 32788#define wxUSE_MIMETYPE 1
e6cc62c6 32789_ACEOF
10f2d63a 32790
10f2d63a
VZ
32791fi
32792
3e44f09d 32793if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 32794 cat >>confdefs.h <<\_ACEOF
3e44f09d 32795#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 32796_ACEOF
3e44f09d 32797
321d2b14
VZ
32798if test "$TOOLKIT" = "MSW"; then
32799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32800fi
32801
3e44f09d
VZ
32802fi
32803
4cdb0ab0 32804if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 32805 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32806 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
32807echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
3954f9ca
VS
32808 wxUSE_PROTOCOL=no
32809 fi
32810
32811 if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 32812 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32813#define wxUSE_PROTOCOL 1
e6cc62c6 32814_ACEOF
4cdb0ab0 32815
8284b0c5 32816
3954f9ca 32817 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
e6cc62c6 32818 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32819#define wxUSE_PROTOCOL_HTTP 1
e6cc62c6 32820_ACEOF
4cdb0ab0 32821
3954f9ca
VS
32822 fi
32823 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
e6cc62c6 32824 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32825#define wxUSE_PROTOCOL_FTP 1
e6cc62c6 32826_ACEOF
4cdb0ab0 32827
3954f9ca
VS
32828 fi
32829 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
e6cc62c6 32830 cat >>confdefs.h <<\_ACEOF
3954f9ca 32831#define wxUSE_PROTOCOL_FILE 1
e6cc62c6 32832_ACEOF
3954f9ca
VS
32833
32834 fi
4cdb0ab0 32835 fi
3954f9ca
VS
32836fi
32837
32838if test "$wxUSE_URL" = "yes"; then
32839 if test "$wxUSE_PROTOCOL" != "yes"; then
e6cc62c6
VS
32840 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
32841echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
3954f9ca
VS
32842 wxUSE_URL=no
32843 fi
32844 if test "$wxUSE_URL" = "yes"; then
e6cc62c6 32845 cat >>confdefs.h <<\_ACEOF
3954f9ca 32846#define wxUSE_URL 1
e6cc62c6 32847_ACEOF
4cdb0ab0
VS
32848
32849 fi
32850fi
32851
10f2d63a 32852if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 32853 cat >>confdefs.h <<\_ACEOF
10f2d63a 32854#define wxUSE_MINIFRAME 1
e6cc62c6 32855_ACEOF
10f2d63a
VZ
32856
32857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32858fi
32859
32860if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32861 cat >>confdefs.h <<\_ACEOF
10f2d63a 32862#define wxUSE_HTML 1
e6cc62c6 32863_ACEOF
10f2d63a 32864
d2739ea6 32865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
10f2d63a
VZ
32866fi
32867
32868if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 32869 cat >>confdefs.h <<\_ACEOF
1e487827 32870#define wxUSE_VALIDATORS 1
e6cc62c6 32871_ACEOF
703e0a69 32872
698dcdb6
VZ
32873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32874fi
32875
edae8572 32876if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 32877 cat >>confdefs.h <<\_ACEOF
edae8572 32878#define wxUSE_PALETTE 1
e6cc62c6 32879_ACEOF
edae8572
VZ
32880
32881fi
32882
698dcdb6 32883if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 32884 cat >>confdefs.h <<\_ACEOF
698dcdb6 32885#define wxUSE_IMAGE 1
e6cc62c6 32886_ACEOF
698dcdb6
VZ
32887
32888fi
32889
32890if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 32891 cat >>confdefs.h <<\_ACEOF
698dcdb6 32892#define wxUSE_GIF 1
e6cc62c6 32893_ACEOF
698dcdb6
VZ
32894
32895fi
32896
32897if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 32898 cat >>confdefs.h <<\_ACEOF
698dcdb6 32899#define wxUSE_PCX 1
e6cc62c6 32900_ACEOF
698dcdb6
VZ
32901
32902fi
32903
4b6b4dfc 32904if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 32905 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 32906#define wxUSE_IFF 1
e6cc62c6 32907_ACEOF
4b6b4dfc
RR
32908
32909fi
32910
698dcdb6 32911if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 32912 cat >>confdefs.h <<\_ACEOF
698dcdb6 32913#define wxUSE_PNM 1
e6cc62c6 32914_ACEOF
698dcdb6
VZ
32915
32916fi
32917
32918if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 32919 cat >>confdefs.h <<\_ACEOF
698dcdb6 32920#define wxUSE_XPM 1
e6cc62c6 32921_ACEOF
698dcdb6
VZ
32922
32923fi
32924
658974ae 32925if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 32926 cat >>confdefs.h <<\_ACEOF
658974ae 32927#define wxUSE_ICO_CUR 1
e6cc62c6 32928_ACEOF
658974ae
VS
32929
32930fi
32931
a72a4bfa
VS
32932if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32933 LIBS=" -lunicows $LIBS"
32934fi
32935
8284b0c5 32936
1e6feb95 32937if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 32938 cat >>confdefs.h <<\_ACEOF
1e6feb95 32939#define wxUSE_CHOICEDLG 1
e6cc62c6 32940_ACEOF
1e6feb95
VZ
32941
32942fi
32943
32944if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 32945 cat >>confdefs.h <<\_ACEOF
1e6feb95 32946#define wxUSE_COLOURDLG 1
e6cc62c6 32947_ACEOF
1e6feb95
VZ
32948
32949fi
32950
32951if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 32952 cat >>confdefs.h <<\_ACEOF
1e6feb95 32953#define wxUSE_FILEDLG 1
e6cc62c6 32954_ACEOF
1e6feb95
VZ
32955
32956fi
32957
8db37e06 32958if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 32959 cat >>confdefs.h <<\_ACEOF
8db37e06 32960#define wxUSE_FINDREPLDLG 1
e6cc62c6 32961_ACEOF
8db37e06
VZ
32962
32963fi
32964
1e6feb95 32965if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 32966 cat >>confdefs.h <<\_ACEOF
1e6feb95 32967#define wxUSE_FONTDLG 1
e6cc62c6 32968_ACEOF
1e6feb95
VZ
32969
32970fi
32971
32972if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 32973 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
32974 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
32975echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 32976 else
e6cc62c6 32977 cat >>confdefs.h <<\_ACEOF
1e6feb95 32978#define wxUSE_DIRDLG 1
e6cc62c6 32979_ACEOF
1e6feb95 32980
1e6feb95
VZ
32981 fi
32982fi
32983
32984if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 32985 cat >>confdefs.h <<\_ACEOF
1e6feb95 32986#define wxUSE_MSGDLG 1
e6cc62c6 32987_ACEOF
1e6feb95
VZ
32988
32989fi
32990
32991if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 32992 cat >>confdefs.h <<\_ACEOF
1e6feb95 32993#define wxUSE_NUMBERDLG 1
e6cc62c6 32994_ACEOF
1e6feb95
VZ
32995
32996fi
32997
32998if test "$wxUSE_PROGRESSDLG" = "yes"; then
32999 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33000 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33001echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33002 else
e6cc62c6 33003 cat >>confdefs.h <<\_ACEOF
1e6feb95 33004#define wxUSE_PROGRESSDLG 1
e6cc62c6 33005_ACEOF
1e6feb95
VZ
33006
33007 fi
33008fi
33009
cbca9943 33010if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33011 cat >>confdefs.h <<\_ACEOF
cbca9943 33012#define wxUSE_SPLASH 1
e6cc62c6 33013_ACEOF
cbca9943
VZ
33014
33015fi
33016
1e6feb95
VZ
33017if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33018 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33019 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33020echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33021 else
e6cc62c6 33022 cat >>confdefs.h <<\_ACEOF
1e6feb95 33023#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33024_ACEOF
1e6feb95 33025
7b4a847f
RR
33026 fi
33027fi
579d8138 33028
8284b0c5 33029if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33030 cat >>confdefs.h <<\_ACEOF
8284b0c5 33031#define wxUSE_TEXTDLG 1
e6cc62c6 33032_ACEOF
8284b0c5
MB
33033
33034fi
33035
33036if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33037 cat >>confdefs.h <<\_ACEOF
8284b0c5 33038#define wxUSE_WIZARDDLG 1
e6cc62c6 33039_ACEOF
8284b0c5
MB
33040
33041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33042fi
33043
33044
33045if test "$cross_compiling" = "yes"; then
33046 OSINFO="\"$host\""
33047else
33048 OSINFO=`uname -s -r -m`
33049 OSINFO="\"$OSINFO\""
33050fi
33051
e6cc62c6 33052cat >>confdefs.h <<_ACEOF
8284b0c5 33053#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33054_ACEOF
8284b0c5
MB
33055
33056
33057
33058if test "x$prefix" != "xNONE"; then
33059 wxPREFIX=$prefix
33060else
33061 wxPREFIX=$ac_default_prefix
33062fi
33063
e6cc62c6 33064cat >>confdefs.h <<_ACEOF
8284b0c5 33065#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33066_ACEOF
8284b0c5
MB
33067
33068
e6cc62c6 33069top_builddir_wxconfig=`pwd`
52c71b80 33070
8284b0c5
MB
33071
33072
33073
33074if test "$wxUSE_MAC" = 1 ; then
33075 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33076fi
ac0c4cc3
DE
33077if test "$wxUSE_COCOA" = 1 ; then
33078 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33079fi
8284b0c5
MB
33080
33081
2b5f62a0
VZ
33082LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33083
33084have_cos=0
33085have_floor=0
e6cc62c6 33086
2b5f62a0
VZ
33087for ac_func in cos
33088do
e6cc62c6
VS
33089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33090echo "$as_me:$LINENO: checking for $ac_func" >&5
33091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33092if eval "test \"\${$as_ac_var+set}\" = set"; then
33093 echo $ECHO_N "(cached) $ECHO_C" >&6
33094else
33095 cat >conftest.$ac_ext <<_ACEOF
33096#line $LINENO "configure"
33097/* confdefs.h. */
33098_ACEOF
33099cat confdefs.h >>conftest.$ac_ext
33100cat >>conftest.$ac_ext <<_ACEOF
33101/* end confdefs.h. */
2b5f62a0 33102/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33103 which can conflict with char $ac_func (); below.
33104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33105 <limits.h> exists even on freestanding compilers. */
33106#ifdef __STDC__
33107# include <limits.h>
33108#else
33109# include <assert.h>
33110#endif
2b5f62a0 33111/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33112#ifdef __cplusplus
33113extern "C"
33114{
33115#endif
2b5f62a0 33116/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33117 builtin and then its argument prototype would still apply. */
33118char $ac_func ();
2b5f62a0
VZ
33119/* The GNU C library defines this for functions which it implements
33120 to always fail with ENOSYS. Some functions are actually named
33121 something starting with __ and the normal name is an alias. */
33122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33123choke me
33124#else
e6cc62c6
VS
33125char (*f) () = $ac_func;
33126#endif
33127#ifdef __cplusplus
33128}
2b5f62a0
VZ
33129#endif
33130
e6cc62c6
VS
33131int
33132main ()
33133{
33134return f != $ac_func;
33135 ;
33136 return 0;
33137}
33138_ACEOF
33139rm -f conftest.$ac_objext conftest$ac_exeext
33140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33141 (eval $ac_link) 2>&5
33142 ac_status=$?
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); } &&
33145 { ac_try='test -s conftest$ac_exeext'
33146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33147 (eval $ac_try) 2>&5
33148 ac_status=$?
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; }; then
33151 eval "$as_ac_var=yes"
33152else
33153 echo "$as_me: failed program was:" >&5
33154sed 's/^/| /' conftest.$ac_ext >&5
33155
33156eval "$as_ac_var=no"
33157fi
33158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33159fi
33160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33161echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33162if test `eval echo '${'$as_ac_var'}'` = yes; then
33163 cat >>confdefs.h <<_ACEOF
33164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33165_ACEOF
2b5f62a0 33166 have_cos=1
2b5f62a0
VZ
33167fi
33168done
33169
e6cc62c6 33170
2b5f62a0
VZ
33171for ac_func in floor
33172do
e6cc62c6
VS
33173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33174echo "$as_me:$LINENO: checking for $ac_func" >&5
33175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33176if eval "test \"\${$as_ac_var+set}\" = set"; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33178else
33179 cat >conftest.$ac_ext <<_ACEOF
33180#line $LINENO "configure"
33181/* confdefs.h. */
33182_ACEOF
33183cat confdefs.h >>conftest.$ac_ext
33184cat >>conftest.$ac_ext <<_ACEOF
33185/* end confdefs.h. */
2b5f62a0 33186/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33187 which can conflict with char $ac_func (); below.
33188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33189 <limits.h> exists even on freestanding compilers. */
33190#ifdef __STDC__
33191# include <limits.h>
33192#else
33193# include <assert.h>
33194#endif
2b5f62a0 33195/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33196#ifdef __cplusplus
33197extern "C"
33198{
33199#endif
2b5f62a0 33200/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33201 builtin and then its argument prototype would still apply. */
33202char $ac_func ();
2b5f62a0
VZ
33203/* The GNU C library defines this for functions which it implements
33204 to always fail with ENOSYS. Some functions are actually named
33205 something starting with __ and the normal name is an alias. */
33206#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33207choke me
33208#else
e6cc62c6
VS
33209char (*f) () = $ac_func;
33210#endif
33211#ifdef __cplusplus
33212}
2b5f62a0
VZ
33213#endif
33214
e6cc62c6
VS
33215int
33216main ()
33217{
33218return f != $ac_func;
33219 ;
33220 return 0;
33221}
33222_ACEOF
33223rm -f conftest.$ac_objext conftest$ac_exeext
33224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33225 (eval $ac_link) 2>&5
33226 ac_status=$?
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); } &&
33229 { ac_try='test -s conftest$ac_exeext'
33230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33231 (eval $ac_try) 2>&5
33232 ac_status=$?
33233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234 (exit $ac_status); }; }; then
33235 eval "$as_ac_var=yes"
33236else
33237 echo "$as_me: failed program was:" >&5
33238sed 's/^/| /' conftest.$ac_ext >&5
33239
33240eval "$as_ac_var=no"
33241fi
33242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33243fi
33244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33245echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33246if test `eval echo '${'$as_ac_var'}'` = yes; then
33247 cat >>confdefs.h <<_ACEOF
33248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33249_ACEOF
2b5f62a0 33250 have_floor=1
2b5f62a0
VZ
33251fi
33252done
33253
e6cc62c6
VS
33254echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33255echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33256if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33257 echo "$as_me:$LINENO: result: yes" >&5
33258echo "${ECHO_T}yes" >&6
2b5f62a0 33259else
e6cc62c6
VS
33260 echo "$as_me:$LINENO: result: no" >&5
33261echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33262 LIBS="$LIBS -lm"
33263 # use different functions to avoid configure caching
33264 have_sin=0
33265 have_ceil=0
e6cc62c6
VS
33266
33267for ac_func in sin
2b5f62a0 33268do
e6cc62c6
VS
33269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33270echo "$as_me:$LINENO: checking for $ac_func" >&5
33271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33272if eval "test \"\${$as_ac_var+set}\" = set"; then
33273 echo $ECHO_N "(cached) $ECHO_C" >&6
33274else
33275 cat >conftest.$ac_ext <<_ACEOF
33276#line $LINENO "configure"
33277/* confdefs.h. */
33278_ACEOF
33279cat confdefs.h >>conftest.$ac_ext
33280cat >>conftest.$ac_ext <<_ACEOF
33281/* end confdefs.h. */
2b5f62a0 33282/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33283 which can conflict with char $ac_func (); below.
33284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33285 <limits.h> exists even on freestanding compilers. */
33286#ifdef __STDC__
33287# include <limits.h>
33288#else
33289# include <assert.h>
33290#endif
2b5f62a0 33291/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33292#ifdef __cplusplus
33293extern "C"
33294{
33295#endif
2b5f62a0 33296/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33297 builtin and then its argument prototype would still apply. */
33298char $ac_func ();
2b5f62a0
VZ
33299/* The GNU C library defines this for functions which it implements
33300 to always fail with ENOSYS. Some functions are actually named
33301 something starting with __ and the normal name is an alias. */
33302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33303choke me
33304#else
e6cc62c6
VS
33305char (*f) () = $ac_func;
33306#endif
33307#ifdef __cplusplus
33308}
2b5f62a0
VZ
33309#endif
33310
e6cc62c6
VS
33311int
33312main ()
33313{
33314return f != $ac_func;
33315 ;
33316 return 0;
33317}
33318_ACEOF
33319rm -f conftest.$ac_objext conftest$ac_exeext
33320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33321 (eval $ac_link) 2>&5
33322 ac_status=$?
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } &&
33325 { ac_try='test -s conftest$ac_exeext'
33326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33327 (eval $ac_try) 2>&5
33328 ac_status=$?
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); }; }; then
33331 eval "$as_ac_var=yes"
33332else
33333 echo "$as_me: failed program was:" >&5
33334sed 's/^/| /' conftest.$ac_ext >&5
33335
33336eval "$as_ac_var=no"
33337fi
33338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33339fi
33340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33342if test `eval echo '${'$as_ac_var'}'` = yes; then
33343 cat >>confdefs.h <<_ACEOF
33344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33345_ACEOF
2b5f62a0 33346 have_sin=1
2b5f62a0
VZ
33347fi
33348done
33349
e6cc62c6
VS
33350
33351for ac_func in ceil
2b5f62a0 33352do
e6cc62c6
VS
33353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33354echo "$as_me:$LINENO: checking for $ac_func" >&5
33355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33356if eval "test \"\${$as_ac_var+set}\" = set"; then
33357 echo $ECHO_N "(cached) $ECHO_C" >&6
33358else
33359 cat >conftest.$ac_ext <<_ACEOF
33360#line $LINENO "configure"
33361/* confdefs.h. */
33362_ACEOF
33363cat confdefs.h >>conftest.$ac_ext
33364cat >>conftest.$ac_ext <<_ACEOF
33365/* end confdefs.h. */
2b5f62a0 33366/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33367 which can conflict with char $ac_func (); below.
33368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33369 <limits.h> exists even on freestanding compilers. */
33370#ifdef __STDC__
33371# include <limits.h>
33372#else
33373# include <assert.h>
33374#endif
2b5f62a0 33375/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33376#ifdef __cplusplus
33377extern "C"
33378{
33379#endif
2b5f62a0 33380/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33381 builtin and then its argument prototype would still apply. */
33382char $ac_func ();
2b5f62a0
VZ
33383/* The GNU C library defines this for functions which it implements
33384 to always fail with ENOSYS. Some functions are actually named
33385 something starting with __ and the normal name is an alias. */
33386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33387choke me
33388#else
e6cc62c6
VS
33389char (*f) () = $ac_func;
33390#endif
33391#ifdef __cplusplus
33392}
2b5f62a0
VZ
33393#endif
33394
e6cc62c6
VS
33395int
33396main ()
33397{
33398return f != $ac_func;
33399 ;
33400 return 0;
33401}
33402_ACEOF
33403rm -f conftest.$ac_objext conftest$ac_exeext
33404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33405 (eval $ac_link) 2>&5
33406 ac_status=$?
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); } &&
33409 { ac_try='test -s conftest$ac_exeext'
33410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411 (eval $ac_try) 2>&5
33412 ac_status=$?
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; }; then
33415 eval "$as_ac_var=yes"
33416else
33417 echo "$as_me: failed program was:" >&5
33418sed 's/^/| /' conftest.$ac_ext >&5
33419
33420eval "$as_ac_var=no"
33421fi
33422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33423fi
33424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33426if test `eval echo '${'$as_ac_var'}'` = yes; then
33427 cat >>confdefs.h <<_ACEOF
33428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33429_ACEOF
2b5f62a0 33430 have_ceil=1
2b5f62a0
VZ
33431fi
33432done
33433
e6cc62c6
VS
33434 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33435echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33436 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33437 echo "$as_me:$LINENO: result: yes" >&5
33438echo "${ECHO_T}yes" >&6
2b5f62a0 33439 else
e6cc62c6
VS
33440 echo "$as_me:$LINENO: result: no" >&5
33441echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33442 # not sure we should warn the user, crash, etc.
33443 fi
33444fi
8284b0c5
MB
33445
33446if test "$wxUSE_GUI" = "yes"; then
33447
33448 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
33449
e6cc62c6 33450
8284b0c5
MB
33451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33452 drawing dynamic erase event exec font image \
1542ea39 33453 minimal propsize rotate shaped widgets"
8284b0c5
MB
33454else
33455 SAMPLES_SUBDIRS="console"
33456fi
33457
33458
e6cc62c6 33459INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33460-I\${top_srcdir}/include \
33461$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33462$TOOLKIT_INCLUDE"
33463
33464if test "$wxUSE_GTK" = 1; then
33465 WXCONFIG_INCLUDE=
33466else
33467 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33468fi
33469
fe0895cf
VS
33470if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33471 WXUNIV=1
33472else
33473 WXUNIV=0
8284b0c5
MB
33474fi
33475
8284b0c5
MB
33476
33477
33478
33479
33480
33481
33482
fe0895cf 33483EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
8284b0c5 33484
9747f85d
VS
33485if test $wxUSE_MONOLITHIC = "yes" ; then
33486 MONOLITHIC=1
33487else
33488 MONOLITHIC=0
33489fi
8284b0c5
MB
33490
33491
33492
33493
33494
33495
33496
fe0895cf 33497TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33498
33499
33500
33501
33502
fe0895cf 33503 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33504
33505 if test -n "$ac_tool_prefix"; then
33506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33507set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33508echo "$as_me:$LINENO: checking for $ac_word" >&5
33509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33510if test "${ac_cv_prog_RANLIB+set}" = set; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33512else
fe0895cf
VS
33513 if test -n "$RANLIB"; then
33514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33515else
e6cc62c6
VS
33516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33517for as_dir in $PATH
33518do
33519 IFS=$as_save_IFS
33520 test -z "$as_dir" && as_dir=.
33521 for ac_exec_ext in '' $ac_executable_extensions; do
33522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33525 break 2
33526 fi
33527done
33528done
33529
10f2d63a 33530fi
10f2d63a 33531fi
e6cc62c6 33532RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33533if test -n "$RANLIB"; then
e6cc62c6
VS
33534 echo "$as_me:$LINENO: result: $RANLIB" >&5
33535echo "${ECHO_T}$RANLIB" >&6
33536else
33537 echo "$as_me:$LINENO: result: no" >&5
33538echo "${ECHO_T}no" >&6
33539fi
33540
33541fi
33542if test -z "$ac_cv_prog_RANLIB"; then
33543 ac_ct_RANLIB=$RANLIB
33544 # Extract the first word of "ranlib", so it can be a program name with args.
33545set dummy ranlib; ac_word=$2
33546echo "$as_me:$LINENO: checking for $ac_word" >&5
33547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33548if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33549 echo $ECHO_N "(cached) $ECHO_C" >&6
33550else
33551 if test -n "$ac_ct_RANLIB"; then
33552 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33553else
33554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33555for as_dir in $PATH
33556do
33557 IFS=$as_save_IFS
33558 test -z "$as_dir" && as_dir=.
33559 for ac_exec_ext in '' $ac_executable_extensions; do
33560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33561 ac_cv_prog_ac_ct_RANLIB="ranlib"
33562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33563 break 2
33564 fi
33565done
33566done
33567
33568 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33569fi
33570fi
33571ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33572if test -n "$ac_ct_RANLIB"; then
33573 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33574echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33575else
e6cc62c6
VS
33576 echo "$as_me:$LINENO: result: no" >&5
33577echo "${ECHO_T}no" >&6
33578fi
33579
33580 RANLIB=$ac_ct_RANLIB
33581else
33582 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33583fi
665bbe97 33584
fe0895cf
VS
33585 # Find a good install program. We prefer a C program (faster),
33586# so one script is as good as another. But avoid the broken or
33587# incompatible versions:
33588# SysV /etc/install, /usr/sbin/install
33589# SunOS /usr/etc/install
33590# IRIX /sbin/install
33591# AIX /bin/install
e6cc62c6 33592# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33594# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33596# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33597echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33598echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33599if test -z "$INSTALL"; then
e6cc62c6
VS
33600if test "${ac_cv_path_install+set}" = set; then
33601 echo $ECHO_N "(cached) $ECHO_C" >&6
33602else
33603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33604for as_dir in $PATH
33605do
33606 IFS=$as_save_IFS
33607 test -z "$as_dir" && as_dir=.
33608 # Account for people who put trailing slashes in PATH elements.
33609case $as_dir/ in
33610 ./ | .// | /cC/* | \
33611 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33612 /usr/ucb/* ) ;;
33613 *)
33614 # OSF1 and SCO ODT 3.0 have their own names for install.
33615 # Don't use installbsd from OSF since it installs stuff as root
33616 # by default.
33617 for ac_prog in ginstall scoinst install; do
33618 for ac_exec_ext in '' $ac_executable_extensions; do
33619 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33620 if test $ac_prog = install &&
33621 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33622 # AIX install. It has an incompatible calling convention.
33623 :
33624 elif test $ac_prog = install &&
33625 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33626 # program-specific install script used by HP pwplus--don't use.
33627 :
33628 else
33629 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33630 break 3
33631 fi
33632 fi
fe0895cf 33633 done
e6cc62c6
VS
33634 done
33635 ;;
33636esac
33637done
33638
fe0895cf
VS
33639
33640fi
33641 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33642 INSTALL=$ac_cv_path_install
fe0895cf
VS
33643 else
33644 # As a last resort, use the slow shell script. We don't cache a
33645 # path for INSTALL within a source directory, because that will
33646 # break other packages using the cache if that directory is
33647 # removed, or if the path is relative.
e6cc62c6 33648 INSTALL=$ac_install_sh
fe0895cf
VS
33649 fi
33650fi
e6cc62c6
VS
33651echo "$as_me:$LINENO: result: $INSTALL" >&5
33652echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33653
33654# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33655# It thinks the first close brace ends the variable substitution.
33656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33657
e6cc62c6 33658test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33659
33660test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33661
e6cc62c6
VS
33662 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33663echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33664LN_S=$as_ln_s
33665if test "$LN_S" = "ln -s"; then
33666 echo "$as_me:$LINENO: result: yes" >&5
33667echo "${ECHO_T}yes" >&6
fe0895cf 33668else
e6cc62c6
VS
33669 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33670echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33671fi
33672
33673
e6cc62c6
VS
33674 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33675echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33676set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33677if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33678 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33679else
e6cc62c6 33680 cat >conftest.make <<\_ACEOF
fe0895cf 33681all:
e6cc62c6
VS
33682 @echo 'ac_maketemp="$(MAKE)"'
33683_ACEOF
fe0895cf 33684# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33685eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33686if test -n "$ac_maketemp"; then
33687 eval ac_cv_prog_make_${ac_make}_set=yes
33688else
33689 eval ac_cv_prog_make_${ac_make}_set=no
33690fi
e6cc62c6 33691rm -f conftest.make
fe0895cf
VS
33692fi
33693if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33694 echo "$as_me:$LINENO: result: yes" >&5
33695echo "${ECHO_T}yes" >&6
fe0895cf
VS
33696 SET_MAKE=
33697else
e6cc62c6
VS
33698 echo "$as_me:$LINENO: result: no" >&5
33699echo "${ECHO_T}no" >&6
fe0895cf
VS
33700 SET_MAKE="MAKE=${MAKE-make}"
33701fi
33702
e6cc62c6
VS
33703
33704
fe0895cf
VS
33705 if test "$build" != "$host" ; then
33706 AR=$host_alias-ar
33707 STRIP=$host_alias-strip
33708 else
33709 # Extract the first word of "ar", so it can be a program name with args.
33710set dummy ar; ac_word=$2
e6cc62c6
VS
33711echo "$as_me:$LINENO: checking for $ac_word" >&5
33712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33713if test "${ac_cv_prog_AR+set}" = set; then
33714 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33715else
33716 if test -n "$AR"; then
33717 ac_cv_prog_AR="$AR" # Let the user override the test.
33718else
e6cc62c6
VS
33719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33720for as_dir in $PATH
33721do
33722 IFS=$as_save_IFS
33723 test -z "$as_dir" && as_dir=.
33724 for ac_exec_ext in '' $ac_executable_extensions; do
33725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33726 ac_cv_prog_AR="ar"
33727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33728 break 2
33729 fi
33730done
33731done
33732
fe0895cf
VS
33733 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33734fi
33735fi
e6cc62c6 33736AR=$ac_cv_prog_AR
fe0895cf 33737if test -n "$AR"; then
e6cc62c6
VS
33738 echo "$as_me:$LINENO: result: $AR" >&5
33739echo "${ECHO_T}$AR" >&6
fe0895cf 33740else
e6cc62c6
VS
33741 echo "$as_me:$LINENO: result: no" >&5
33742echo "${ECHO_T}no" >&6
fe0895cf
VS
33743fi
33744
33745 # Extract the first word of "strip", so it can be a program name with args.
33746set dummy strip; ac_word=$2
e6cc62c6
VS
33747echo "$as_me:$LINENO: checking for $ac_word" >&5
33748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33749if test "${ac_cv_prog_STRIP+set}" = set; then
33750 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33751else
33752 if test -n "$STRIP"; then
33753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33754else
e6cc62c6
VS
33755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33756for as_dir in $PATH
33757do
33758 IFS=$as_save_IFS
33759 test -z "$as_dir" && as_dir=.
33760 for ac_exec_ext in '' $ac_executable_extensions; do
33761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33762 ac_cv_prog_STRIP="strip"
33763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33764 break 2
33765 fi
33766done
33767done
33768
fe0895cf
VS
33769 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33770fi
33771fi
e6cc62c6 33772STRIP=$ac_cv_prog_STRIP
fe0895cf 33773if test -n "$STRIP"; then
e6cc62c6
VS
33774 echo "$as_me:$LINENO: result: $STRIP" >&5
33775echo "${ECHO_T}$STRIP" >&6
fe0895cf 33776else
e6cc62c6
VS
33777 echo "$as_me:$LINENO: result: no" >&5
33778echo "${ECHO_T}no" >&6
fe0895cf
VS
33779fi
33780
33781 fi
33782
33783 case ${host} in
33784 *-hp-hpux* )
33785 INSTALL_DIR="mkdir"
33786 ;;
33787 *) INSTALL_DIR="$INSTALL -d"
33788 ;;
33789 esac
e6cc62c6 33790
fe0895cf
VS
33791
33792 fi
e6cc62c6
VS
33793
33794 echo "$as_me:$LINENO: checking if make is GNU make" >&5
33795echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 33796if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 33797 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33798else
e6cc62c6 33799
fe0895cf
VS
33800 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33801 egrep -s GNU > /dev/null); then
33802 bakefile_cv_prog_makeisgnu="yes"
33803 else
33804 bakefile_cv_prog_makeisgnu="no"
33805 fi
fe0895cf 33806
e6cc62c6 33807fi
49b0a3aa
VS
33808echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
33809echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
33810
33811 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33812 IF_GNU_MAKE=""
33813 else
33814 IF_GNU_MAKE="#"
33815 fi
fe0895cf 33816
e6cc62c6
VS
33817
33818
fe0895cf
VS
33819 PLATFORM_UNIX=0
33820 PLATFORM_WIN32=0
33821 PLATFORM_MSDOS=0
33822 PLATFORM_MAC=0
33823 PLATFORM_MACOSX=0
e6cc62c6 33824
fe0895cf
VS
33825 case "${host}" in
33826 *-*-cygwin* | *-*-mingw32* )
33827 PLATFORM_WIN32=1
33828 ;;
33829 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33830 PLATFORM_MSDOS=1
33831 ;;
33832 powerpc-*-darwin* )
33833 PLATFORM_MAC=1
33834 PLATFORM_MACOSX=1
33835 ;;
33836 * )
33837 PLATFORM_UNIX=1
33838 ;;
33839 esac
33840
fe0895cf 33841
e6cc62c6
VS
33842
33843
33844
33845
33846
33847
fe0895cf
VS
33848 SO_SUFFIX="so"
33849 EXEEXT=""
33850 DLLPREFIX=lib
e6cc62c6 33851
fe0895cf
VS
33852 case "${host}" in
33853 *-hp-hpux* )
33854 SO_SUFFIX="sl"
33855 ;;
33856 *-*-aix* )
33857 SO_SUFFIX="a"
33858 ;;
33859 *-*-cygwin* | *-*-mingw32* )
33860 SO_SUFFIX="dll"
33861 EXEEXT=".exe"
33862 DLLPREFIX=""
33863 ;;
33864 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33865 EXEEXT=".exe"
33866 DLLPREFIX=""
33867 ;;
33868 powerpc-*-darwin* )
33869 SO_SUFFIX="dylib"
33870 ;;
33871 esac
33872
fe0895cf 33873
e6cc62c6
VS
33874
33875
33876
33877
fe0895cf
VS
33878 SHARED_LD_CC="\$(CC) -shared -o"
33879 SHARED_LD_CXX="\$(CXX) -shared -o"
33880
33881 if test "x$GCC" = "xyes"; then
33882 PIC_FLAG="-fPIC"
33883 fi
33884
33885 case "${host}" in
33886 *-hp-hpux* )
33887 if test "x$GCC" = "xyes"; then
33888 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33889 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33890 else
33891 LDFLAGS="$LDFLAGS -L/usr/lib"
33892
33893 SHARED_LD_CC="${CC} -b -o"
33894 SHARED_LD_CXX="${CXX} -b -o"
33895 PIC_FLAG="+Z"
33896 fi
33897 ;;
33898
33899 *-*-linux* )
33900 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
33901 echo "$as_me:$LINENO: checking for Intel compiler" >&5
33902echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33903if test "${bakefile_cv_prog_icc+set}" = set; then
33904 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33905else
fe0895cf 33906
e6cc62c6
VS
33907 cat >conftest.$ac_ext <<_ACEOF
33908#line $LINENO "configure"
33909/* confdefs.h. */
33910_ACEOF
33911cat confdefs.h >>conftest.$ac_ext
33912cat >>conftest.$ac_ext <<_ACEOF
33913/* end confdefs.h. */
33914
33915int
33916main ()
33917{
fe0895cf
VS
33918
33919 #ifndef __INTEL_COMPILER
33920 #error Not icc
33921 #endif
e6cc62c6
VS
33922
33923 ;
33924 return 0;
33925}
33926_ACEOF
33927rm -f conftest.$ac_objext
33928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33929 (eval $ac_compile) 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); } &&
33933 { ac_try='test -s conftest.$ac_objext'
33934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33935 (eval $ac_try) 2>&5
33936 ac_status=$?
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); }; }; then
fe0895cf
VS
33939 bakefile_cv_prog_icc=yes
33940else
e6cc62c6
VS
33941 echo "$as_me: failed program was:" >&5
33942sed 's/^/| /' conftest.$ac_ext >&5
33943
33944bakefile_cv_prog_icc=no
33945
fe0895cf 33946fi
e6cc62c6 33947rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 33948
e6cc62c6
VS
33949fi
33950echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
33951echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
33952 if test "$bakefile_cv_prog_icc" = "yes"; then
33953 PIC_FLAG="-KPIC"
33954 fi
33955 fi
33956 ;;
33957
33958 *-*-solaris2* )
33959 if test "x$GCC" != xyes ; then
33960 SHARED_LD_CC="${CC} -G -o"
33961 SHARED_LD_CXX="${CXX} -G -o"
33962 PIC_FLAG="-KPIC"
33963 fi
33964 ;;
33965
33966 *-*-darwin* )
33967 CFLAGS="$CFLAGS -fno-common"
33968 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
33969
33970
fe0895cf
VS
33971 cat <<EOF >shared-ld-sh
33972#!/bin/sh
33973#-----------------------------------------------------------------------------
33974#-- Name: distrib/mac/shared-ld-sh
33975#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
33976#-- Author: Gilles Depeyrot
33977#-- Copyright: (c) 2002 Gilles Depeyrot
33978#-- Licence: any use permitted
33979#-----------------------------------------------------------------------------
33980
33981verbose=0
33982args=""
33983objects=""
33984
33985while test \${#} -gt 0; do
33986 case \${1} in
33987
33988 -v)
33989 verbose=1
33990 ;;
33991
33992 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
33993 # collect these options and values
33994 args="\${args} \${1} \${2}"
33995 shift
33996 ;;
33997
33998 -l*|-L*|-flat_namespace)
33999 # collect these options
34000 args="\${args} \${1}"
34001 ;;
34002
34003 -dynamiclib)
34004 # skip these options
34005 ;;
34006
34007 -*)
34008 echo "shared-ld: unhandled option '\${1}'"
34009 exit 1
34010 ;;
34011
34012 *.o | *.a)
34013 # collect object files
34014 objects="\${objects} \${1}"
34015 ;;
34016
34017 *)
34018 echo "shared-ld: unhandled argument '\${1}'"
34019 exit 1
34020 ;;
34021
34022 esac
34023 shift
34024done
34025
34026#
34027# Link one module containing all the others
34028#
34029if test \${verbose} = 1; then
34030 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34031fi
34032c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34033status=\$?
34034if test \${status} != 0; then
34035 exit \${status}
34036fi
34037
34038#
34039# Link the shared library from the single module created
34040#
34041if test \${verbose} = 1; then
34042 echo "cc -dynamiclib master.\$\$.o \${args}"
34043fi
34044c++ -dynamiclib master.\$\$.o \${args}
34045status=\$?
34046if test \${status} != 0; then
34047 exit \${status}
34048fi
34049
34050#
34051# Remove intermediate module
34052#
34053rm -f master.\$\$.o
34054
34055exit 0
34056EOF
34057 chmod +x shared-ld-sh
34058
34059 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
34060 SHARED_LD_CXX="$SHARED_LD_CC"
34061 PIC_FLAG="-dynamic -fPIC"
34062 ;;
34063
34064 *-*-aix* )
34065 if test "x$GCC" != "xyes"; then
34066 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34067set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34068echo "$as_me:$LINENO: checking for $ac_word" >&5
34069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34070if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34071 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34072else
34073 if test -n "$AIX_CXX_LD"; then
34074 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34075else
e6cc62c6
VS
34076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34077for as_dir in $PATH
34078do
34079 IFS=$as_save_IFS
34080 test -z "$as_dir" && as_dir=.
34081 for ac_exec_ext in '' $ac_executable_extensions; do
34082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34083 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34085 break 2
34086 fi
34087done
34088done
34089
fe0895cf
VS
34090 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34091fi
34092fi
e6cc62c6 34093AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34094if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34095 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34096echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34097else
e6cc62c6
VS
34098 echo "$as_me:$LINENO: result: no" >&5
34099echo "${ECHO_T}no" >&6
fe0895cf
VS
34100fi
34101
34102 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34103 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34104 fi
34105 ;;
34106
34107 *-*-beos* )
34108 SHARED_LD_CC="${LD} -shared -o"
34109 SHARED_LD_CXX="${LD} -shared -o"
34110 ;;
34111
34112 *-*-irix* )
34113 if test "x$GCC" != "xyes"; then
34114 PIC_FLAG="-KPIC"
34115 fi
34116 ;;
e6cc62c6 34117
fe0895cf
VS
34118 *-*-cygwin* | *-*-mingw32* )
34119 PIC_FLAG=""
34120 ;;
e6cc62c6 34121
fe0895cf
VS
34122 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34123 *-*-sunos4* | \
34124 *-*-osf* | \
34125 *-*-dgux5* | \
34126 *-*-sysv5* )
34127 ;;
34128
34129 *)
e6cc62c6
VS
34130 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34131echo "$as_me: error: unknown system type $host." >&2;}
34132 { (exit 1); exit 1; }; }
fe0895cf
VS
34133 esac
34134
fe0895cf 34135
e6cc62c6
VS
34136
34137
34138
34139
fe0895cf
VS
34140 USE_SOVERSION=0
34141 USE_SOVERLINUX=0
34142 USE_SOVERSOLARIS=0
34143 USE_SOSYMLINKS=0
34144 USE_MACVERSION=0
34145 SONAME_FLAG=
34146
34147 case "${host}" in
34148 *-*-linux* )
34149 SONAME_FLAG="-Wl,-soname,"
34150 USE_SOVERSION=1
34151 USE_SOVERLINUX=1
34152 USE_SOSYMLINKS=1
34153 ;;
34154
34155 *-*-solaris2* )
34156 SONAME_FLAG="-h "
34157 USE_SOVERSION=1
34158 USE_SOVERSOLARIS=1
34159 USE_SOSYMLINKS=1
34160 ;;
34161
34162 *-*-darwin* )
34163 USE_MACVERSION=1
34164 USE_SOVERSION=1
34165 USE_SOSYMLINKS=1
e6cc62c6 34166 ;;
fe0895cf
VS
34167 esac
34168
fe0895cf 34169
e6cc62c6
VS
34170
34171
34172
34173
34174
34175
34176
49b0a3aa
VS
34177 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34178echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34179 DEPS_TRACKING=0
34180
fe0895cf 34181 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34182 DEPSMODE=gcc
34183 DEPS_TRACKING=1
34184 echo "$as_me:$LINENO: result: gcc" >&5
34185echo "${ECHO_T}gcc" >&6
34186 else
34187 echo "$as_me:$LINENO: result: none" >&5
34188echo "${ECHO_T}none" >&6
34189 fi
34190
34191 if test $DEPS_TRACKING = 1 ; then
34192 cat <<EOF >bk-deps
34193#!/bin/sh
34194
34195# This script is part of Bakefile (http://bakefile.sf.net) autoconf script.
34196# It is used to track C/C++ files dependencies in portable way.
34197#
34198# Permission is given to use this file in any way.
34199
34200DEPSMODE=$DEPSMODE
34201DEPSDIR=.deps
34202
34203mkdir -p \$DEPSDIR
34204
34205if test \$DEPSMODE = gcc ; then
34206 \${*} -MMD
34207 status=\${?}
34208 if test \${status} != 0 ; then
34209 exit \${status}
34210 fi
34211 # move created file to the location we want it in:
34212 while test \${#} -gt 0; do
34213 case "\${1}" in
34214 -o )
34215 shift
34216 objfile=\${1}
34217 ;;
34218 -* )
34219 ;;
34220 * )
34221 srcfile=\${1}
34222 ;;
34223 esac
34224 shift
34225 done
34226 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34227 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
34228 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34229 rm -f \$depfile
34230 exit 0
34231else
34232 \${*}
34233 exit \${?}
34234fi
34235EOF
34236 chmod +x bk-deps
fe0895cf 34237 fi
fe0895cf 34238
e6cc62c6
VS
34239
34240
34241
fe0895cf
VS
34242 RESCOMP=
34243 SETFILE=
34244
e6cc62c6 34245 case ${host} in
fe0895cf
VS
34246 *-*-cygwin* | *-*-mingw32* )
34247 if test "$build" != "$host" ; then
34248 RESCOMP=$host_alias-windres
34249 else
34250 # Extract the first word of "windres", so it can be a program name with args.
34251set dummy windres; ac_word=$2
e6cc62c6
VS
34252echo "$as_me:$LINENO: checking for $ac_word" >&5
34253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34254if test "${ac_cv_prog_RESCOMP+set}" = set; then
34255 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34256else
34257 if test -n "$RESCOMP"; then
34258 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34259else
e6cc62c6
VS
34260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34261for as_dir in $PATH
34262do
34263 IFS=$as_save_IFS
34264 test -z "$as_dir" && as_dir=.
34265 for ac_exec_ext in '' $ac_executable_extensions; do
34266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34267 ac_cv_prog_RESCOMP="windres"
34268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34269 break 2
34270 fi
34271done
34272done
34273
fe0895cf
VS
34274 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34275fi
34276fi
e6cc62c6 34277RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34278if test -n "$RESCOMP"; then
e6cc62c6
VS
34279 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34280echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34281else
e6cc62c6
VS
34282 echo "$as_me:$LINENO: result: no" >&5
34283echo "${ECHO_T}no" >&6
fe0895cf
VS
34284fi
34285
34286 fi
34287 ;;
e6cc62c6 34288
fe0895cf
VS
34289 *-*-darwin* )
34290 # Extract the first word of "Rez", so it can be a program name with args.
34291set dummy Rez; ac_word=$2
e6cc62c6
VS
34292echo "$as_me:$LINENO: checking for $ac_word" >&5
34293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34294if test "${ac_cv_prog_RESCOMP+set}" = set; then
34295 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34296else
34297 if test -n "$RESCOMP"; then
34298 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34299else
e6cc62c6
VS
34300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34301for as_dir in $PATH
34302do
34303 IFS=$as_save_IFS
34304 test -z "$as_dir" && as_dir=.
34305 for ac_exec_ext in '' $ac_executable_extensions; do
34306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34307 ac_cv_prog_RESCOMP="Rez"
34308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34309 break 2
34310 fi
34311done
34312done
34313
fe0895cf
VS
34314 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34315fi
34316fi
e6cc62c6 34317RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34318if test -n "$RESCOMP"; then
e6cc62c6
VS
34319 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34320echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34321else
e6cc62c6
VS
34322 echo "$as_me:$LINENO: result: no" >&5
34323echo "${ECHO_T}no" >&6
fe0895cf
VS
34324fi
34325
34326 # Extract the first word of "SetFile", so it can be a program name with args.
34327set dummy SetFile; ac_word=$2
e6cc62c6
VS
34328echo "$as_me:$LINENO: checking for $ac_word" >&5
34329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34330if test "${ac_cv_prog_SETFILE+set}" = set; then
34331 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34332else
34333 if test -n "$SETFILE"; then
34334 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34335else
e6cc62c6
VS
34336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34337for as_dir in $PATH
34338do
34339 IFS=$as_save_IFS
34340 test -z "$as_dir" && as_dir=.
34341 for ac_exec_ext in '' $ac_executable_extensions; do
34342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34343 ac_cv_prog_SETFILE="SetFile"
34344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34345 break 2
34346 fi
34347done
34348done
34349
fe0895cf
VS
34350 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34351fi
34352fi
e6cc62c6 34353SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34354if test -n "$SETFILE"; then
e6cc62c6
VS
34355 echo "$as_me:$LINENO: result: $SETFILE" >&5
34356echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34357else
e6cc62c6
VS
34358 echo "$as_me:$LINENO: result: no" >&5
34359echo "${ECHO_T}no" >&6
fe0895cf
VS
34360fi
34361
34362 ;;
34363 esac
34364
fe0895cf
VS
34365
34366
e6cc62c6
VS
34367
34368
34369
34370
9747f85d
VS
34371 COND_SHARED_1_MONOLITHIC_0="#"
34372 if test "x$SHARED" = "x1" -a \
34373 "x$MONOLITHIC" = "x0" ; then
34374 COND_SHARED_1_MONOLITHIC_0=
fe0895cf 34375 fi
e6cc62c6 34376
9747f85d
VS
34377 COND_WXUSE_LIBPNG_BUILTIN="#"
34378 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34379 COND_WXUSE_LIBPNG_BUILTIN=
fe0895cf 34380 fi
e6cc62c6 34381
9747f85d
VS
34382 COND_WXUSE_ZLIB_BUILTIN="#"
34383 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
34384 COND_WXUSE_ZLIB_BUILTIN=
fe0895cf 34385 fi
e6cc62c6
VS
34386
34387 COND_USE_SOSYMLINKS_1="#"
fe0895cf 34388 if test "x$USE_SOSYMLINKS" = "x1" ; then
e6cc62c6 34389 COND_USE_SOSYMLINKS_1=
fe0895cf 34390 fi
e6cc62c6 34391
9747f85d
VS
34392 COND_USE_GUI_1="#"
34393 if test "x$USE_GUI" = "x1" ; then
34394 COND_USE_GUI_1=
fe0895cf 34395 fi
e6cc62c6 34396
9747f85d
VS
34397 COND_WXUSE_ODBC_BUILTIN="#"
34398 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
34399 COND_WXUSE_ODBC_BUILTIN=
fe0895cf 34400 fi
e6cc62c6 34401
9747f85d
VS
34402 COND_TOOLKIT_X11="#"
34403 if test "x$TOOLKIT" = "xX11" ; then
34404 COND_TOOLKIT_X11=
e6cc62c6
VS
34405 fi
34406
9747f85d
VS
34407 COND_TOOLKIT_MGL="#"
34408 if test "x$TOOLKIT" = "xMGL" ; then
34409 COND_TOOLKIT_MGL=
fe0895cf 34410 fi
e6cc62c6
VS
34411
34412 COND_TOOLKIT_GTK="#"
fe0895cf 34413 if test "x$TOOLKIT" = "xGTK" ; then
e6cc62c6 34414 COND_TOOLKIT_GTK=
fe0895cf 34415 fi
e6cc62c6 34416
e6cc62c6 34417 COND_TOOLKIT_MSW="#"
fe0895cf 34418 if test "x$TOOLKIT" = "xMSW" ; then
e6cc62c6 34419 COND_TOOLKIT_MSW=
fe0895cf 34420 fi
e6cc62c6
VS
34421
34422 COND_TOOLKIT_MAC="#"
fe0895cf 34423 if test "x$TOOLKIT" = "xMAC" ; then
e6cc62c6 34424 COND_TOOLKIT_MAC=
fe0895cf 34425 fi
e6cc62c6 34426
9747f85d
VS
34427 COND_USE_SOVERSION_1_PLATFORM_MACOSX_0="#"
34428 if test "x$USE_SOVERSION" = "x1" -a \
34429 "x$PLATFORM_MACOSX" = "x0" ; then
34430 COND_USE_SOVERSION_1_PLATFORM_MACOSX_0=
fe0895cf 34431 fi
e6cc62c6 34432
9747f85d
VS
34433 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1="#"
34434 if test "x$USE_SOVERSION" = "x1" -a \
34435 "x$PLATFORM_MACOSX" = "x1" ; then
34436 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1=
fe0895cf 34437 fi
e6cc62c6 34438
9747f85d
VS
34439 COND_PLATFORM_WIN32_1="#"
34440 if test "x$PLATFORM_WIN32" = "x1" ; then
34441 COND_PLATFORM_WIN32_1=
fe0895cf 34442 fi
e6cc62c6 34443
9747f85d
VS
34444 COND_SHARED_0_USE_GUI_1_MONOLITHIC_0="#"
34445 if test "x$SHARED" = "x0" -a \
34446 "x$USE_GUI" = "x1" -a \
34447 "x$MONOLITHIC" = "x0" ; then
34448 COND_SHARED_0_USE_GUI_1_MONOLITHIC_0=
fe0895cf 34449 fi
e6cc62c6
VS
34450
34451 COND_PLATFORM_UNIX_1="#"
fe0895cf 34452 if test "x$PLATFORM_UNIX" = "x1" ; then
e6cc62c6 34453 COND_PLATFORM_UNIX_1=
fe0895cf 34454 fi
e6cc62c6
VS
34455
34456 COND_PLATFORM_MACOSX_1="#"
fe0895cf 34457 if test "x$PLATFORM_MACOSX" = "x1" ; then
e6cc62c6 34458 COND_PLATFORM_MACOSX_1=
fe0895cf 34459 fi
e6cc62c6 34460
9747f85d
VS
34461 COND_WXUSE_LIBTIFF_BUILTIN="#"
34462 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34463 COND_WXUSE_LIBTIFF_BUILTIN=
fe0895cf 34464 fi
e6cc62c6 34465
9747f85d
VS
34466 COND_SHARED_1_USE_GUI_1_MONOLITHIC_0="#"
34467 if test "x$SHARED" = "x1" -a \
34468 "x$USE_GUI" = "x1" -a \
34469 "x$MONOLITHIC" = "x0" ; then
34470 COND_SHARED_1_USE_GUI_1_MONOLITHIC_0=
fe0895cf 34471 fi
e6cc62c6 34472
9747f85d
VS
34473 COND_MONOLITHIC_0="#"
34474 if test "x$MONOLITHIC" = "x0" ; then
34475 COND_MONOLITHIC_0=
fe0895cf 34476 fi
e6cc62c6 34477
9747f85d
VS
34478 COND_WXUSE_REGEX_BUILTIN="#"
34479 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
34480 COND_WXUSE_REGEX_BUILTIN=
fe0895cf 34481 fi
e6cc62c6 34482
9747f85d
VS
34483 COND_TOOLKIT_MOTIF="#"
34484 if test "x$TOOLKIT" = "xMOTIF" ; then
34485 COND_TOOLKIT_MOTIF=
fe0895cf 34486 fi
e6cc62c6 34487
9747f85d
VS
34488 COND_TOOLKIT_COCOA="#"
34489 if test "x$TOOLKIT" = "xCOCOA" ; then
34490 COND_TOOLKIT_COCOA=
fe0895cf 34491 fi
e6cc62c6 34492
9747f85d
VS
34493 COND_TOOLKIT_OS2="#"
34494 if test "x$TOOLKIT" = "xOS2" ; then
34495 COND_TOOLKIT_OS2=
fe0895cf 34496 fi
e6cc62c6 34497
9747f85d
VS
34498 COND_WXUNIV_1="#"
34499 if test "x$WXUNIV" = "x1" ; then
34500 COND_WXUNIV_1=
34501 fi
34502
34503 COND_WXUSE_LIBJPEG_BUILTIN="#"
34504 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34505 COND_WXUSE_LIBJPEG_BUILTIN=
fe0895cf 34506 fi
e6cc62c6
VS
34507
34508 COND_USE_GUI_0="#"
fe0895cf 34509 if test "x$USE_GUI" = "x0" ; then
e6cc62c6 34510 COND_USE_GUI_0=
fe0895cf 34511 fi
e6cc62c6 34512
9747f85d
VS
34513 COND_SHARED_1_MONOLITHIC_1="#"
34514 if test "x$SHARED" = "x1" -a \
34515 "x$MONOLITHIC" = "x1" ; then
34516 COND_SHARED_1_MONOLITHIC_1=
34517 fi
34518
34519 COND_SHARED_0_MONOLITHIC_1="#"
34520 if test "x$SHARED" = "x0" -a \
34521 "x$MONOLITHIC" = "x1" ; then
34522 COND_SHARED_0_MONOLITHIC_1=
34523 fi
34524
34525 COND_USE_SOVERLINUX_1="#"
34526 if test "x$USE_SOVERLINUX" = "x1" ; then
34527 COND_USE_SOVERLINUX_1=
34528 fi
34529
34530 COND_USE_SOVERSOLARIS_1="#"
34531 if test "x$USE_SOVERSOLARIS" = "x1" ; then
34532 COND_USE_SOVERSOLARIS_1=
34533 fi
34534
e6cc62c6 34535 COND_USE_GUI_1_WXUNIV_0="#"
fe0895cf
VS
34536 if test "x$USE_GUI" = "x1" -a \
34537 "x$WXUNIV" = "x0" ; then
e6cc62c6 34538 COND_USE_GUI_1_WXUNIV_0=
fe0895cf 34539 fi
e6cc62c6
VS
34540
34541 COND_USE_GUI_1_WXUNIV_1="#"
fe0895cf
VS
34542 if test "x$USE_GUI" = "x1" -a \
34543 "x$WXUNIV" = "x1" ; then
e6cc62c6
VS
34544 COND_USE_GUI_1_WXUNIV_1=
34545 fi
34546
9747f85d
VS
34547 COND_UNICODE_1="#"
34548 if test "x$UNICODE" = "x1" ; then
34549 COND_UNICODE_1=
34550 fi
34551
34552 COND_PLATFORM_WIN32_0="#"
34553 if test "x$PLATFORM_WIN32" = "x0" ; then
34554 COND_PLATFORM_WIN32_0=
34555 fi
34556
34557 COND_MONOLITHIC_1="#"
34558 if test "x$MONOLITHIC" = "x1" ; then
34559 COND_MONOLITHIC_1=
34560 fi
34561
34562 COND_SHARED_0_MONOLITHIC_0="#"
e6cc62c6 34563 if test "x$SHARED" = "x0" -a \
9747f85d
VS
34564 "x$MONOLITHIC" = "x0" ; then
34565 COND_SHARED_0_MONOLITHIC_0=
fe0895cf 34566 fi
e6cc62c6 34567
9747f85d
VS
34568 COND_BUILD_DEBUG="#"
34569 if test "x$BUILD" = "xdebug" ; then
34570 COND_BUILD_DEBUG=
fe0895cf 34571 fi
e6cc62c6 34572
9747f85d
VS
34573 COND_DEPS_TYPE_GCC="#"
34574 if test "x$DEPS_TYPE" = "xgcc" ; then
34575 COND_DEPS_TYPE_GCC=
e6cc62c6
VS
34576 fi
34577
34578 COND_PLATFORM_MAC_1="#"
34579 if test "x$PLATFORM_MAC" = "x1" ; then
34580 COND_PLATFORM_MAC_1=
fe0895cf 34581 fi
e6cc62c6 34582
6d7d8f3b
VS
34583 COND_SHARED_1="#"
34584 if test "x$SHARED" = "x1" ; then
34585 COND_SHARED_1=
34586 fi
34587
9747f85d
VS
34588 COND_SHARED_0="#"
34589 if test "x$SHARED" = "x0" ; then
34590 COND_SHARED_0=
34591 fi
34592
49b0a3aa
VS
34593 COND_DEPS_TRACKING_1="#"
34594 if test "x$DEPS_TRACKING" = "x1" ; then
34595 COND_DEPS_TRACKING_1=
34596 fi
34597
34598 COND_DEPS_TRACKING_0="#"
34599 if test "x$DEPS_TRACKING" = "x0" ; then
34600 COND_DEPS_TRACKING_0=
34601 fi
34602
fe0895cf
VS
34603
34604
34605
34606if test "$GXX" = yes ; then
34607 CXXWARNINGS="-Wall"
34608 fi
34609
34610EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34611
34612CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
34613CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34614CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
34615LIBS=`echo $LIBS | sed 's/ \+/ /g'`
34616
34617LDFLAGS="$LDFLAGS $PROFILE"
34618
34619SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
e6cc62c6
VS
34720
34721
34722
34723echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34724echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34725set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34726if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34727 echo $ECHO_N "(cached) $ECHO_C" >&6
34728else
34729 cat >conftest.make <<\_ACEOF
34730all:
34731 @echo 'ac_maketemp="$(MAKE)"'
34732_ACEOF
34733# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34734eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34735if test -n "$ac_maketemp"; then
34736 eval ac_cv_prog_make_${ac_make}_set=yes
34737else
34738 eval ac_cv_prog_make_${ac_make}_set=no
34739fi
34740rm -f conftest.make
34741fi
34742if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34743 echo "$as_me:$LINENO: result: yes" >&5
34744echo "${ECHO_T}yes" >&6
34745 SET_MAKE=
34746else
34747 echo "$as_me:$LINENO: result: no" >&5
34748echo "${ECHO_T}no" >&6
34749 SET_MAKE="MAKE=${MAKE-make}"
34750fi
34751
34752
34753if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34754 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34755fi
34756
34757 ac_config_headers="$ac_config_headers setup.h"
34758
34759
34760 ac_config_files="$ac_config_files wx-config version-script Makefile"
34761
34762
34763 ac_config_commands="$ac_config_commands default"
34764
34765
34766
9747f85d
VS
34767for subdir in samples demos utils contrib ; do
34768 if test -d ${srcdir}/${subdir} ; then
34769 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
34770 for mkin in $makefiles ; do
34771 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
34772 ac_config_files="$ac_config_files $mk"
e6cc62c6 34773
9747f85d
VS
34774 done
34775 fi
34776done
e6cc62c6
VS
34777
34778
34779cat >confcache <<\_ACEOF
34780# This file is a shell script that caches the results of configure
34781# tests run on this system so they can be shared between configure
34782# scripts and configure runs, see configure's option --config-cache.
34783# It is not useful on other systems. If it contains results you don't
34784# want to keep, you may remove or edit it.
34785#
34786# config.status only pays attention to the cache file if you give it
34787# the --recheck option to rerun configure.
34788#
34789# `ac_cv_env_foo' variables (set or unset) will be overridden when
34790# loading this file, other *unset* `ac_cv_foo' will be assigned the
34791# following values.
34792
34793_ACEOF
34794
34795# The following way of writing the cache mishandles newlines in values,
34796# but we know of no workaround that is simple, portable, and efficient.
34797# So, don't put newlines in cache variables' values.
34798# Ultrix sh set writes to stderr and can't be redirected directly,
34799# and sets the high bit in the cache file unless we assign to the vars.
34800{
34801 (set) 2>&1 |
34802 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34803 *ac_space=\ *)
34804 # `set' does not quote correctly, so add quotes (double-quote
34805 # substitution turns \\\\ into \\, and sed turns \\ into \).
34806 sed -n \
34807 "s/'/'\\\\''/g;
34808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34809 ;;
34810 *)
34811 # `set' quotes correctly as required by POSIX, so do not add quotes.
34812 sed -n \
34813 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34814 ;;
34815 esac;
34816} |
34817 sed '
34818 t clear
34819 : clear
34820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34821 t end
34822 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34823 : end' >>confcache
34824if diff $cache_file confcache >/dev/null 2>&1; then :; else
34825 if test -w $cache_file; then
34826 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34827 cat confcache >$cache_file
34828 else
34829 echo "not updating unwritable cache $cache_file"
34830 fi
34831fi
34832rm -f confcache
34833
34834test "x$prefix" = xNONE && prefix=$ac_default_prefix
34835# Let make expand exec_prefix.
34836test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34837
34838# VPATH may cause trouble with some makes, so we remove $(srcdir),
34839# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34840# trailing colons and then remove the whole line if VPATH becomes empty
34841# (actually we leave an empty line to preserve line numbers).
34842if test "x$srcdir" = x.; then
34843 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34844s/:*\$(srcdir):*/:/;
34845s/:*\${srcdir}:*/:/;
34846s/:*@srcdir@:*/:/;
34847s/^\([^=]*=[ ]*\):*/\1/;
34848s/:*$//;
34849s/^[^=]*=[ ]*$//;
34850}'
34851fi
34852
34853DEFS=-DHAVE_CONFIG_H
34854
34855ac_libobjs=
34856ac_ltlibobjs=
34857for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34858 # 1. Remove the extension, and $U if already installed.
34859 ac_i=`echo "$ac_i" |
34860 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34861 # 2. Add them.
34862 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34863 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34864done
34865LIBOBJS=$ac_libobjs
34866
34867LTLIBOBJS=$ac_ltlibobjs
34868
34869
34870
34871: ${CONFIG_STATUS=./config.status}
34872ac_clean_files_save=$ac_clean_files
34873ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34874{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34875echo "$as_me: creating $CONFIG_STATUS" >&6;}
34876cat >$CONFIG_STATUS <<_ACEOF
34877#! $SHELL
34878# Generated by $as_me.
34879# Run this file to recreate the current configuration.
34880# Compiler output produced by configure, useful for debugging
34881# configure, is in config.log if it exists.
34882
34883debug=false
34884ac_cs_recheck=false
34885ac_cs_silent=false
34886SHELL=\${CONFIG_SHELL-$SHELL}
34887_ACEOF
34888
34889cat >>$CONFIG_STATUS <<\_ACEOF
34890## --------------------- ##
34891## M4sh Initialization. ##
34892## --------------------- ##
34893
34894# Be Bourne compatible
34895if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34896 emulate sh
34897 NULLCMD=:
34898 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34899 # is contrary to our usage. Disable this feature.
34900 alias -g '${1+"$@"}'='"$@"'
34901elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34902 set -o posix
34903fi
34904
34905# Support unset when possible.
34906if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34907 as_unset=unset
34908else
34909 as_unset=false
34910fi
34911
34912
34913# Work around bugs in pre-3.0 UWIN ksh.
34914$as_unset ENV MAIL MAILPATH
34915PS1='$ '
34916PS2='> '
34917PS4='+ '
34918
34919# NLS nuisances.
34920for as_var in \
34921 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34922 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34923 LC_TELEPHONE LC_TIME
34924do
34925 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
34926 eval $as_var=C; export $as_var
34927 else
34928 $as_unset $as_var
34929 fi
34930done
34931
34932# Required to use basename.
34933if expr a : '\(a\)' >/dev/null 2>&1; then
34934 as_expr=expr
34935else
34936 as_expr=false
34937fi
34938
34939if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
34940 as_basename=basename
34941else
34942 as_basename=false
34943fi
34944
34945
34946# Name of the executable.
34947as_me=`$as_basename "$0" ||
34948$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34949 X"$0" : 'X\(//\)$' \| \
34950 X"$0" : 'X\(/\)$' \| \
34951 . : '\(.\)' 2>/dev/null ||
34952echo X/"$0" |
34953 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34954 /^X\/\(\/\/\)$/{ s//\1/; q; }
34955 /^X\/\(\/\).*/{ s//\1/; q; }
34956 s/.*/./; q'`
34957
34958
34959# PATH needs CR, and LINENO needs CR and PATH.
34960# Avoid depending upon Character Ranges.
34961as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34962as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34963as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34964as_cr_digits='0123456789'
34965as_cr_alnum=$as_cr_Letters$as_cr_digits
34966
34967# The user is always right.
34968if test "${PATH_SEPARATOR+set}" != set; then
34969 echo "#! /bin/sh" >conf$$.sh
34970 echo "exit 0" >>conf$$.sh
34971 chmod +x conf$$.sh
34972 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34973 PATH_SEPARATOR=';'
34974 else
34975 PATH_SEPARATOR=:
34976 fi
34977 rm -f conf$$.sh
34978fi
34979
34980
34981 as_lineno_1=$LINENO
34982 as_lineno_2=$LINENO
34983 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34984 test "x$as_lineno_1" != "x$as_lineno_2" &&
34985 test "x$as_lineno_3" = "x$as_lineno_2" || {
34986 # Find who we are. Look in the path if we contain no path at all
34987 # relative or not.
34988 case $0 in
34989 *[\\/]* ) as_myself=$0 ;;
34990 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34991for as_dir in $PATH
34992do
34993 IFS=$as_save_IFS
34994 test -z "$as_dir" && as_dir=.
34995 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34996done
34997
34998 ;;
34999 esac
35000 # We did not find ourselves, most probably we were run as `sh COMMAND'
35001 # in which case we are not to be found in the path.
35002 if test "x$as_myself" = x; then
35003 as_myself=$0
35004 fi
35005 if test ! -f "$as_myself"; then
35006 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35007echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35008 { (exit 1); exit 1; }; }
35009 fi
35010 case $CONFIG_SHELL in
35011 '')
35012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35013for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35014do
35015 IFS=$as_save_IFS
35016 test -z "$as_dir" && as_dir=.
35017 for as_base in sh bash ksh sh5; do
35018 case $as_dir in
35019 /*)
35020 if ("$as_dir/$as_base" -c '
35021 as_lineno_1=$LINENO
35022 as_lineno_2=$LINENO
35023 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35024 test "x$as_lineno_1" != "x$as_lineno_2" &&
35025 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35026 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35027 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35028 CONFIG_SHELL=$as_dir/$as_base
35029 export CONFIG_SHELL
35030 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35031 fi;;
35032 esac
35033 done
35034done
35035;;
35036 esac
35037
35038 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35039 # uniformly replaced by the line number. The first 'sed' inserts a
35040 # line-number line before each line; the second 'sed' does the real
35041 # work. The second script uses 'N' to pair each line-number line
35042 # with the numbered line, and appends trailing '-' during
35043 # substitution so that $LINENO is not a special case at line end.
35044 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35045 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35046 sed '=' <$as_myself |
35047 sed '
35048 N
35049 s,$,-,
35050 : loop
35051 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35052 t loop
35053 s,-$,,
35054 s,^['$as_cr_digits']*\n,,
35055 ' >$as_me.lineno &&
35056 chmod +x $as_me.lineno ||
35057 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35058echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35059 { (exit 1); exit 1; }; }
35060
35061 # Don't try to exec as it changes $[0], causing all sort of problems
35062 # (the dirname of $[0] is not the place where we might find the
35063 # original and so on. Autoconf is especially sensible to this).
35064 . ./$as_me.lineno
35065 # Exit status is that of the last command.
35066 exit
35067}
35068
35069
35070case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35071 *c*,-n*) ECHO_N= ECHO_C='
35072' ECHO_T=' ' ;;
35073 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35074 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35075esac
35076
35077if expr a : '\(a\)' >/dev/null 2>&1; then
35078 as_expr=expr
35079else
35080 as_expr=false
35081fi
35082
35083rm -f conf$$ conf$$.exe conf$$.file
35084echo >conf$$.file
35085if ln -s conf$$.file conf$$ 2>/dev/null; then
35086 # We could just check for DJGPP; but this test a) works b) is more generic
35087 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35088 if test -f conf$$.exe; then
35089 # Don't use ln at all; we don't have any links
35090 as_ln_s='cp -p'
35091 else
35092 as_ln_s='ln -s'
35093 fi
35094elif ln conf$$.file conf$$ 2>/dev/null; then
35095 as_ln_s=ln
35096else
35097 as_ln_s='cp -p'
35098fi
35099rm -f conf$$ conf$$.exe conf$$.file
35100
35101if mkdir -p . 2>/dev/null; then
35102 as_mkdir_p=:
35103else
35104 as_mkdir_p=false
35105fi
35106
35107as_executable_p="test -f"
35108
35109# Sed expression to map a string onto a valid CPP name.
35110as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35111
35112# Sed expression to map a string onto a valid variable name.
35113as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35114
35115
35116# IFS
35117# We need space, tab and new line, in precisely that order.
35118as_nl='
35119'
35120IFS=" $as_nl"
35121
35122# CDPATH.
35123$as_unset CDPATH
35124
35125exec 6>&1
35126
35127# Open the log real soon, to keep \$[0] and so on meaningful, and to
35128# report actual input values of CONFIG_FILES etc. instead of their
35129# values after options handling. Logging --version etc. is OK.
35130exec 5>>config.log
35131{
35132 echo
35133 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35134## Running $as_me. ##
35135_ASBOX
35136} >&5
35137cat >&5 <<_CSEOF
35138
35139This file was extended by wxWindows $as_me 2.5.0, which was
35140generated by GNU Autoconf 2.57. Invocation command line was
35141
35142 CONFIG_FILES = $CONFIG_FILES
35143 CONFIG_HEADERS = $CONFIG_HEADERS
35144 CONFIG_LINKS = $CONFIG_LINKS
35145 CONFIG_COMMANDS = $CONFIG_COMMANDS
35146 $ $0 $@
35147
35148_CSEOF
35149echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35150echo >&5
35151_ACEOF
35152
35153# Files that config.status was made for.
35154if test -n "$ac_config_files"; then
35155 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35156fi
35157
35158if test -n "$ac_config_headers"; then
35159 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35160fi
35161
35162if test -n "$ac_config_links"; then
35163 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35164fi
35165
35166if test -n "$ac_config_commands"; then
35167 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35168fi
35169
35170cat >>$CONFIG_STATUS <<\_ACEOF
35171
35172ac_cs_usage="\
35173\`$as_me' instantiates files from templates according to the
35174current configuration.
35175
35176Usage: $0 [OPTIONS] [FILE]...
35177
35178 -h, --help print this help, then exit
35179 -V, --version print version number, then exit
35180 -q, --quiet do not print progress messages
35181 -d, --debug don't remove temporary files
35182 --recheck update $as_me by reconfiguring in the same conditions
35183 --file=FILE[:TEMPLATE]
35184 instantiate the configuration file FILE
35185 --header=FILE[:TEMPLATE]
35186 instantiate the configuration header FILE
35187
35188Configuration files:
35189$config_files
35190
35191Configuration headers:
35192$config_headers
35193
35194Configuration commands:
35195$config_commands
35196
35197Report bugs to <bug-autoconf@gnu.org>."
35198_ACEOF
35199
35200cat >>$CONFIG_STATUS <<_ACEOF
35201ac_cs_version="\\
35202wxWindows config.status 2.5.0
35203configured by $0, generated by GNU Autoconf 2.57,
35204 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35205
35206Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35207Free Software Foundation, Inc.
35208This config.status script is free software; the Free Software Foundation
35209gives unlimited permission to copy, distribute and modify it."
35210srcdir=$srcdir
35211INSTALL="$INSTALL"
35212_ACEOF
35213
35214cat >>$CONFIG_STATUS <<\_ACEOF
35215# If no file are specified by the user, then we need to provide default
35216# value. By we need to know if files were specified by the user.
35217ac_need_defaults=:
35218while test $# != 0
35219do
35220 case $1 in
35221 --*=*)
35222 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35223 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35224 ac_shift=:
35225 ;;
35226 -*)
35227 ac_option=$1
35228 ac_optarg=$2
35229 ac_shift=shift
35230 ;;
35231 *) # This is not an option, so the user has probably given explicit
35232 # arguments.
35233 ac_option=$1
35234 ac_need_defaults=false;;
35235 esac
35236
35237 case $ac_option in
35238 # Handling of the options.
35239_ACEOF
35240cat >>$CONFIG_STATUS <<\_ACEOF
35241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35242 ac_cs_recheck=: ;;
35243 --version | --vers* | -V )
35244 echo "$ac_cs_version"; exit 0 ;;
35245 --he | --h)
35246 # Conflict between --help and --header
35247 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35248Try \`$0 --help' for more information." >&5
35249echo "$as_me: error: ambiguous option: $1
35250Try \`$0 --help' for more information." >&2;}
35251 { (exit 1); exit 1; }; };;
35252 --help | --hel | -h )
35253 echo "$ac_cs_usage"; exit 0 ;;
35254 --debug | --d* | -d )
35255 debug=: ;;
35256 --file | --fil | --fi | --f )
35257 $ac_shift
35258 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35259 ac_need_defaults=false;;
35260 --header | --heade | --head | --hea )
35261 $ac_shift
35262 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35263 ac_need_defaults=false;;
35264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35265 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35266 ac_cs_silent=: ;;
35267
35268 # This is an error.
35269 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35270Try \`$0 --help' for more information." >&5
35271echo "$as_me: error: unrecognized option: $1
35272Try \`$0 --help' for more information." >&2;}
35273 { (exit 1); exit 1; }; } ;;
35274
35275 *) ac_config_targets="$ac_config_targets $1" ;;
35276
35277 esac
35278 shift
35279done
35280
35281ac_configure_extra_args=
35282
35283if $ac_cs_silent; then
35284 exec 6>/dev/null
35285 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35286fi
35287
e6cc62c6
VS
35288_ACEOF
35289cat >>$CONFIG_STATUS <<_ACEOF
35290if \$ac_cs_recheck; then
35291 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35292 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35293fi
35294
e6cc62c6 35295_ACEOF
fe0895cf 35296
e6cc62c6 35297cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35298#
e6cc62c6 35299# INIT-COMMANDS section.
10f2d63a 35300#
10f2d63a 35301
a0b9e27f 35302
e6cc62c6
VS
35303 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35304 LN_S="${LN_S}"
10f2d63a 35305
10f2d63a 35306
10f2d63a 35307
e6cc62c6 35308_ACEOF
8284b0c5 35309
52127426 35310
247f5006 35311
e6cc62c6
VS
35312cat >>$CONFIG_STATUS <<\_ACEOF
35313for ac_config_target in $ac_config_targets
247f5006 35314do
e6cc62c6
VS
35315 case "$ac_config_target" in
35316 # Handling of arguments.
35317 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35318 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35319 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 35320 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
35321 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35322 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35323 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35324echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35325 { (exit 1); exit 1; }; };;
247f5006
VZ
35326 esac
35327done
35328
e6cc62c6
VS
35329# If the user did not use the arguments to specify the items to instantiate,
35330# then the envvar interface is used. Set only those that are not.
35331# We use the long form for the default assignment because of an extremely
35332# bizarre bug on SunOS 4.1.3.
35333if $ac_need_defaults; then
35334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35337fi
35338
35339# Have a temporary directory for convenience. Make it in the build tree
35340# simply because there is no reason to put it here, and in addition,
35341# creating and moving files from /tmp can sometimes cause problems.
35342# Create a temporary directory, and hook for its removal unless debugging.
35343$debug ||
35344{
35345 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35346 trap '{ (exit 1); exit 1; }' 1 2 13 15
35347}
247f5006 35348
e6cc62c6 35349# Create a (secure) tmp directory for tmp files.
247f5006 35350
e6cc62c6
VS
35351{
35352 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35353 test -n "$tmp" && test -d "$tmp"
35354} ||
35355{
35356 tmp=./confstat$$-$RANDOM
35357 (umask 077 && mkdir $tmp)
35358} ||
35359{
35360 echo "$me: cannot create a temporary directory in ." >&2
35361 { (exit 1); exit 1; }
35362}
35363
35364_ACEOF
35365
35366cat >>$CONFIG_STATUS <<_ACEOF
35367
35368#
35369# CONFIG_FILES section.
35370#
247f5006 35371
e6cc62c6
VS
35372# No need to generate the scripts if there are no CONFIG_FILES.
35373# This happens for instance when ./config.status config.h
35374if test -n "\$CONFIG_FILES"; then
35375 # Protect against being on the right side of a sed subst in config.status.
35376 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35377 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35378s,@SHELL@,$SHELL,;t t
35379s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35380s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35381s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35382s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35383s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35384s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35385s,@exec_prefix@,$exec_prefix,;t t
35386s,@prefix@,$prefix,;t t
35387s,@program_transform_name@,$program_transform_name,;t t
35388s,@bindir@,$bindir,;t t
35389s,@sbindir@,$sbindir,;t t
35390s,@libexecdir@,$libexecdir,;t t
35391s,@datadir@,$datadir,;t t
35392s,@sysconfdir@,$sysconfdir,;t t
35393s,@sharedstatedir@,$sharedstatedir,;t t
35394s,@localstatedir@,$localstatedir,;t t
35395s,@libdir@,$libdir,;t t
35396s,@includedir@,$includedir,;t t
35397s,@oldincludedir@,$oldincludedir,;t t
35398s,@infodir@,$infodir,;t t
35399s,@mandir@,$mandir,;t t
35400s,@build_alias@,$build_alias,;t t
35401s,@host_alias@,$host_alias,;t t
35402s,@target_alias@,$target_alias,;t t
35403s,@DEFS@,$DEFS,;t t
35404s,@ECHO_C@,$ECHO_C,;t t
35405s,@ECHO_N@,$ECHO_N,;t t
35406s,@ECHO_T@,$ECHO_T,;t t
35407s,@LIBS@,$LIBS,;t t
35408s,@build@,$build,;t t
35409s,@build_cpu@,$build_cpu,;t t
35410s,@build_vendor@,$build_vendor,;t t
35411s,@build_os@,$build_os,;t t
35412s,@host@,$host,;t t
35413s,@host_cpu@,$host_cpu,;t t
35414s,@host_vendor@,$host_vendor,;t t
35415s,@host_os@,$host_os,;t t
35416s,@target@,$target,;t t
35417s,@target_cpu@,$target_cpu,;t t
35418s,@target_vendor@,$target_vendor,;t t
35419s,@target_os@,$target_os,;t t
35420s,@CC@,$CC,;t t
35421s,@CFLAGS@,$CFLAGS,;t t
35422s,@LDFLAGS@,$LDFLAGS,;t t
35423s,@CPPFLAGS@,$CPPFLAGS,;t t
35424s,@ac_ct_CC@,$ac_ct_CC,;t t
35425s,@EXEEXT@,$EXEEXT,;t t
35426s,@OBJEXT@,$OBJEXT,;t t
35427s,@CPP@,$CPP,;t t
35428s,@EGREP@,$EGREP,;t t
35429s,@CXX@,$CXX,;t t
35430s,@CXXFLAGS@,$CXXFLAGS,;t t
35431s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35432s,@RANLIB@,$RANLIB,;t t
35433s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35434s,@AR@,$AR,;t t
35435s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35436s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35437s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35438s,@STRIP@,$STRIP,;t t
35439s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35440s,@YACC@,$YACC,;t t
35441s,@LEX@,$LEX,;t t
35442s,@LEXLIB@,$LEXLIB,;t t
35443s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35444s,@LN_S@,$LN_S,;t t
35445s,@CXXCPP@,$CXXCPP,;t t
35446s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35447s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35448s,@GTK_LIBS@,$GTK_LIBS,;t t
35449s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35450s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35451s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35452s,@X_CFLAGS@,$X_CFLAGS,;t t
35453s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35454s,@X_LIBS@,$X_LIBS,;t t
35455s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35456s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35457s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35458s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35459s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
35460s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
35461s,@RESCOMP@,$RESCOMP,;t t
35462s,@DEREZ@,$DEREZ,;t t
35463s,@SETFILE@,$SETFILE,;t t
35464s,@LIBICONV@,$LIBICONV,;t t
35465s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35466s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
35467s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35468s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35469s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35470s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
35471s,@WXUNIV@,$WXUNIV,;t t
35472s,@MONOLITHIC@,$MONOLITHIC,;t t
35473s,@EXTRALIBS@,$EXTRALIBS,;t t
35474s,@UNICODE@,$UNICODE,;t t
35475s,@BUILD@,$BUILD,;t t
35476s,@SHARED@,$SHARED,;t t
35477s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35478s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35479s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
35480s,@SET_MAKE@,$SET_MAKE,;t t
35481s,@MAKE_SET@,$MAKE_SET,;t t
35482s,@INSTALL_DIR@,$INSTALL_DIR,;t t
35483s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35484s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35485s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35486s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35487s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35488s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35489s,@DLLPREFIX@,$DLLPREFIX,;t t
35490s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35491s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35492s,@PIC_FLAG@,$PIC_FLAG,;t t
35493s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35494s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35495s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35496s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35497s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35498s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 35499s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
9747f85d
VS
35500s,@COND_SHARED_1_MONOLITHIC_0@,$COND_SHARED_1_MONOLITHIC_0,;t t
35501s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
e6cc62c6 35502s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6 35503s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
9747f85d 35504s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
e6cc62c6 35505s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
9747f85d
VS
35506s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35507s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
e6cc62c6 35508s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
e6cc62c6
VS
35509s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
35510s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
e6cc62c6
VS
35511s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_0@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_0,;t t
35512s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_1@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_1,;t t
9747f85d
VS
35513s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
35514s,@COND_SHARED_0_USE_GUI_1_MONOLITHIC_0@,$COND_SHARED_0_USE_GUI_1_MONOLITHIC_0,;t t
35515s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35516s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
35517s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35518s,@COND_SHARED_1_USE_GUI_1_MONOLITHIC_0@,$COND_SHARED_1_USE_GUI_1_MONOLITHIC_0,;t t
e6cc62c6 35519s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
9747f85d
VS
35520s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
35521s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
35522s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
35523s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35524s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
35525s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
e6cc62c6 35526s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
9747f85d 35527s,@COND_SHARED_1_MONOLITHIC_1@,$COND_SHARED_1_MONOLITHIC_1,;t t
e6cc62c6
VS
35528s,@COND_SHARED_0_MONOLITHIC_1@,$COND_SHARED_0_MONOLITHIC_1,;t t
35529s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35530s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
9747f85d
VS
35531s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35532s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
35533s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35534s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35535s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
35536s,@COND_SHARED_0_MONOLITHIC_0@,$COND_SHARED_0_MONOLITHIC_0,;t t
35537s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35538s,@COND_DEPS_TYPE_GCC@,$COND_DEPS_TYPE_GCC,;t t
e6cc62c6 35539s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
6d7d8f3b 35540s,@COND_SHARED_1@,$COND_SHARED_1,;t t
9747f85d 35541s,@COND_SHARED_0@,$COND_SHARED_0,;t t
49b0a3aa
VS
35542s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
35543s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
e6cc62c6
VS
35544s,@LEX_STEM@,$LEX_STEM,;t t
35545s,@PATH_IFS@,$PATH_IFS,;t t
35546s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35547s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35548s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35549s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35550s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35551s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35552s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35553s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35554s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35555s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35556s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35557s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35558s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35559s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35560s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35561s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35562s,@WX_ALL@,$WX_ALL,;t t
35563s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35564s,@SHARED_LD@,$SHARED_LD,;t t
35565s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35566s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
35567s,@SONAME_FLAGS@,$SONAME_FLAGS,;t t
35568s,@SONAME_FLAGS_GL@,$SONAME_FLAGS_GL,;t t
35569s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t
35570s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35571s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35572s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35573s,@USE_GUI@,$USE_GUI,;t t
35574s,@AFMINSTALL@,$AFMINSTALL,;t t
35575s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35576s,@TOOLKIT@,$TOOLKIT,;t t
35577s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35578s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35579s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35580s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35581s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35582s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35583s,@cross_compiling@,$cross_compiling,;t t
35584s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35585s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35586s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35587s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35588s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35589s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35590s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
35591s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35592s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35593s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35594s,@GUIDIST@,$GUIDIST,;t t
35595s,@PORT_FILES@,$PORT_FILES,;t t
35596s,@DISTDIR@,$DISTDIR,;t t
35597s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35598s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35599s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35600s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35601s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35602s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35603s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35604s,@RESFLAGS@,$RESFLAGS,;t t
35605s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35606s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35607s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35608s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35609s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35610s,@MACRESCOMP@,$MACRESCOMP,;t t
35611s,@MACSETFILE@,$MACSETFILE,;t t
35612s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35613s,@GCC@,$GCC,;t t
35614s,@DLLTOOL@,$DLLTOOL,;t t
35615s,@AS@,$AS,;t t
35616s,@NM@,$NM,;t t
35617s,@LD@,$LD,;t t
35618s,@MAKEINFO@,$MAKEINFO,;t t
35619s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35620s,@ESD_LINK@,$ESD_LINK,;t t
35621s,@LIBOBJS@,$LIBOBJS,;t t
35622s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
35623CEOF
35624
e6cc62c6
VS
35625_ACEOF
35626
35627 cat >>$CONFIG_STATUS <<\_ACEOF
35628 # Split the substitutions into bite-sized pieces for seds with
35629 # small command number limits, like on Digital OSF/1 and HP-UX.
35630 ac_max_sed_lines=48
35631 ac_sed_frag=1 # Number of current file.
35632 ac_beg=1 # First line for current file.
35633 ac_end=$ac_max_sed_lines # Line after last line for current file.
35634 ac_more_lines=:
35635 ac_sed_cmds=
35636 while $ac_more_lines; do
35637 if test $ac_beg -gt 1; then
35638 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 35639 else
e6cc62c6
VS
35640 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35641 fi
35642 if test ! -s $tmp/subs.frag; then
35643 ac_more_lines=false
35644 else
35645 # The purpose of the label and of the branching condition is to
35646 # speed up the sed processing (if there are no `@' at all, there
35647 # is no need to browse any of the substitutions).
35648 # These are the two extra sed commands mentioned above.
35649 (echo ':t
35650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35651 if test -z "$ac_sed_cmds"; then
35652 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35653 else
35654 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35655 fi
35656 ac_sed_frag=`expr $ac_sed_frag + 1`
35657 ac_beg=$ac_end
35658 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 35659 fi
e6cc62c6
VS
35660 done
35661 if test -z "$ac_sed_cmds"; then
35662 ac_sed_cmds=cat
10f2d63a 35663 fi
e6cc62c6 35664fi # test -n "$CONFIG_FILES"
10f2d63a 35665
e6cc62c6
VS
35666_ACEOF
35667cat >>$CONFIG_STATUS <<\_ACEOF
35668for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 35669 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35670 case $ac_file in
35671 - | *:- | *:-:* ) # input from stdin
35672 cat >$tmp/stdin
35673 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35674 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35675 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35676 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35677 * ) ac_file_in=$ac_file.in ;;
10f2d63a 35678 esac
247f5006 35679
e6cc62c6
VS
35680 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35681 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35682$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35683 X"$ac_file" : 'X\(//\)[^/]' \| \
35684 X"$ac_file" : 'X\(//\)$' \| \
35685 X"$ac_file" : 'X\(/\)' \| \
35686 . : '\(.\)' 2>/dev/null ||
35687echo X"$ac_file" |
35688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35690 /^X\(\/\/\)$/{ s//\1/; q; }
35691 /^X\(\/\).*/{ s//\1/; q; }
35692 s/.*/./; q'`
35693 { if $as_mkdir_p; then
35694 mkdir -p "$ac_dir"
a0b9e27f 35695 else
e6cc62c6
VS
35696 as_dir="$ac_dir"
35697 as_dirs=
35698 while test ! -d "$as_dir"; do
35699 as_dirs="$as_dir $as_dirs"
35700 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35701$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35702 X"$as_dir" : 'X\(//\)[^/]' \| \
35703 X"$as_dir" : 'X\(//\)$' \| \
35704 X"$as_dir" : 'X\(/\)' \| \
35705 . : '\(.\)' 2>/dev/null ||
35706echo X"$as_dir" |
35707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35709 /^X\(\/\/\)$/{ s//\1/; q; }
35710 /^X\(\/\).*/{ s//\1/; q; }
35711 s/.*/./; q'`
35712 done
35713 test ! -n "$as_dirs" || mkdir $as_dirs
35714 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35715echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35716 { (exit 1); exit 1; }; }; }
35717
35718 ac_builddir=.
35719
35720if test "$ac_dir" != .; then
35721 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35722 # A "../" for each directory in $ac_dir_suffix.
35723 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35724else
35725 ac_dir_suffix= ac_top_builddir=
35726fi
247f5006 35727
e6cc62c6
VS
35728case $srcdir in
35729 .) # No --srcdir option. We are building in place.
35730 ac_srcdir=.
35731 if test -z "$ac_top_builddir"; then
35732 ac_top_srcdir=.
35733 else
35734 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35735 fi ;;
35736 [\\/]* | ?:[\\/]* ) # Absolute path.
35737 ac_srcdir=$srcdir$ac_dir_suffix;
35738 ac_top_srcdir=$srcdir ;;
247f5006 35739 *) # Relative path.
e6cc62c6
VS
35740 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35741 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35742esac
35743# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35744# absolute.
35745ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35746ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35747ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35748ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 35749
247f5006 35750
e6cc62c6
VS
35751 case $INSTALL in
35752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35753 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 35754 esac
247f5006 35755
e6cc62c6
VS
35756 if test x"$ac_file" != x-; then
35757 { echo "$as_me:$LINENO: creating $ac_file" >&5
35758echo "$as_me: creating $ac_file" >&6;}
35759 rm -f "$ac_file"
35760 fi
35761 # Let's still pretend it is `configure' which instantiates (i.e., don't
35762 # use $as_me), people would be surprised to read:
35763 # /* config.h. Generated by config.status. */
35764 if test x"$ac_file" = x-; then
35765 configure_input=
35766 else
35767 configure_input="$ac_file. "
35768 fi
35769 configure_input=$configure_input"Generated from `echo $ac_file_in |
35770 sed 's,.*/,,'` by configure."
35771
35772 # First look for the input files in the build tree, otherwise in the
35773 # src tree.
35774 ac_file_inputs=`IFS=:
35775 for f in $ac_file_in; do
35776 case $f in
35777 -) echo $tmp/stdin ;;
35778 [\\/$]*)
35779 # Absolute (can't be DOS-style, as IFS=:)
35780 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35781echo "$as_me: error: cannot find input file: $f" >&2;}
35782 { (exit 1); exit 1; }; }
35783 echo $f;;
35784 *) # Relative
35785 if test -f "$f"; then
35786 # Build tree
35787 echo $f
35788 elif test -f "$srcdir/$f"; then
35789 # Source tree
35790 echo $srcdir/$f
35791 else
35792 # /dev/null tree
35793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35794echo "$as_me: error: cannot find input file: $f" >&2;}
35795 { (exit 1); exit 1; }; }
35796 fi;;
35797 esac
35798 done` || { (exit 1); exit 1; }
35799_ACEOF
35800cat >>$CONFIG_STATUS <<_ACEOF
35801 sed "$ac_vpsub
35802$extrasub
35803_ACEOF
35804cat >>$CONFIG_STATUS <<\_ACEOF
35805:t
35806/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35807s,@configure_input@,$configure_input,;t t
35808s,@srcdir@,$ac_srcdir,;t t
35809s,@abs_srcdir@,$ac_abs_srcdir,;t t
35810s,@top_srcdir@,$ac_top_srcdir,;t t
35811s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35812s,@builddir@,$ac_builddir,;t t
35813s,@abs_builddir@,$ac_abs_builddir,;t t
35814s,@top_builddir@,$ac_top_builddir,;t t
35815s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35816s,@INSTALL@,$ac_INSTALL,;t t
35817" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35818 rm -f $tmp/stdin
35819 if test x"$ac_file" != x-; then
35820 mv $tmp/out $ac_file
35821 else
35822 cat $tmp/out
35823 rm -f $tmp/out
35824 fi
35825
35826done
35827_ACEOF
35828cat >>$CONFIG_STATUS <<\_ACEOF
35829
35830#
35831# CONFIG_HEADER section.
35832#
10f2d63a
VZ
35833
35834# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35835# NAME is the cpp macro being defined and VALUE is the value it is being given.
35836#
35837# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
35838ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
35839ac_dB='[ ].*$,\1#\2'
35840ac_dC=' '
35841ac_dD=',;t'
35842# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35843ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
35844ac_uB='$,\1#\2define\3'
10f2d63a 35845ac_uC=' '
e6cc62c6
VS
35846ac_uD=',;t'
35847
35848for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 35849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35850 case $ac_file in
35851 - | *:- | *:-:* ) # input from stdin
35852 cat >$tmp/stdin
35853 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35855 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35857 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
35858 esac
35859
e6cc62c6
VS
35860 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35861echo "$as_me: creating $ac_file" >&6;}
35862
35863 # First look for the input files in the build tree, otherwise in the
35864 # src tree.
35865 ac_file_inputs=`IFS=:
35866 for f in $ac_file_in; do
35867 case $f in
35868 -) echo $tmp/stdin ;;
35869 [\\/$]*)
35870 # Absolute (can't be DOS-style, as IFS=:)
35871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35872echo "$as_me: error: cannot find input file: $f" >&2;}
35873 { (exit 1); exit 1; }; }
35874 echo $f;;
35875 *) # Relative
35876 if test -f "$f"; then
35877 # Build tree
35878 echo $f
35879 elif test -f "$srcdir/$f"; then
35880 # Source tree
35881 echo $srcdir/$f
35882 else
35883 # /dev/null tree
35884 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35885echo "$as_me: error: cannot find input file: $f" >&2;}
35886 { (exit 1); exit 1; }; }
35887 fi;;
35888 esac
35889 done` || { (exit 1); exit 1; }
35890 # Remove the trailing spaces.
35891 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35892
35893_ACEOF
35894
35895# Transform confdefs.h into two sed scripts, `conftest.defines' and
35896# `conftest.undefs', that substitutes the proper values into
35897# config.h.in to produce config.h. The first handles `#define'
35898# templates, and the second `#undef' templates.
35899# And first: Protect against being on the right side of a sed subst in
35900# config.status. Protect against being in an unquoted here document
35901# in config.status.
35902rm -f conftest.defines conftest.undefs
35903# Using a here document instead of a string reduces the quoting nightmare.
35904# Putting comments in sed scripts is not portable.
35905#
35906# `end' is used to avoid that the second main sed command (meant for
35907# 0-ary CPP macros) applies to n-ary macro definitions.
35908# See the Autoconf documentation for `clear'.
35909cat >confdef2sed.sed <<\_ACEOF
35910s/[\\&,]/\\&/g
35911s,[\\$`],\\&,g
35912t clear
35913: clear
35914s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35915t end
35916s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35917: end
35918_ACEOF
35919# If some macros were called several times there might be several times
35920# the same #defines, which is useless. Nevertheless, we may not want to
35921# sort them, since we want the *last* AC-DEFINE to be honored.
35922uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35923sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35924rm -f confdef2sed.sed
10f2d63a
VZ
35925
35926# This sed command replaces #undef with comments. This is necessary, for
35927# example, in the case of _POSIX_SOURCE, which is predefined and required
35928# on some systems where configure will not decide to define it.
e6cc62c6
VS
35929cat >>conftest.undefs <<\_ACEOF
35930s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35931_ACEOF
35932
35933# Break up conftest.defines because some shells have a limit on the size
35934# of here documents, and old seds have small limits too (100 cmds).
35935echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35936echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35937echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35938echo ' :' >>$CONFIG_STATUS
35939rm -f conftest.tail
35940while grep . conftest.defines >/dev/null
35941do
35942 # Write a limited-size here document to $tmp/defines.sed.
35943 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35944 # Speed up: don't consider the non `#define' lines.
35945 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
35946 # Work around the forget-to-reset-the-flag bug.
35947 echo 't clr' >>$CONFIG_STATUS
35948 echo ': clr' >>$CONFIG_STATUS
35949 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35950 echo 'CEOF
35951 sed -f $tmp/defines.sed $tmp/in >$tmp/out
35952 rm -f $tmp/in
35953 mv $tmp/out $tmp/in
35954' >>$CONFIG_STATUS
35955 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35956 rm -f conftest.defines
35957 mv conftest.tail conftest.defines
35958done
35959rm -f conftest.defines
35960echo ' fi # grep' >>$CONFIG_STATUS
35961echo >>$CONFIG_STATUS
10f2d63a 35962
e6cc62c6
VS
35963# Break up conftest.undefs because some shells have a limit on the size
35964# of here documents, and old seds have small limits too (100 cmds).
35965echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 35966rm -f conftest.tail
e6cc62c6 35967while grep . conftest.undefs >/dev/null
10f2d63a 35968do
e6cc62c6
VS
35969 # Write a limited-size here document to $tmp/undefs.sed.
35970 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35971 # Speed up: don't consider the non `#undef'
35972 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
35973 # Work around the forget-to-reset-the-flag bug.
35974 echo 't clr' >>$CONFIG_STATUS
35975 echo ': clr' >>$CONFIG_STATUS
35976 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 35977 echo 'CEOF
e6cc62c6
VS
35978 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35979 rm -f $tmp/in
35980 mv $tmp/out $tmp/in
35981' >>$CONFIG_STATUS
35982 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35983 rm -f conftest.undefs
35984 mv conftest.tail conftest.undefs
10f2d63a 35985done
e6cc62c6
VS
35986rm -f conftest.undefs
35987
35988cat >>$CONFIG_STATUS <<\_ACEOF
35989 # Let's still pretend it is `configure' which instantiates (i.e., don't
35990 # use $as_me), people would be surprised to read:
35991 # /* config.h. Generated by config.status. */
35992 if test x"$ac_file" = x-; then
35993 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 35994 else
e6cc62c6 35995 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 35996 fi
e6cc62c6
VS
35997 cat $tmp/in >>$tmp/config.h
35998 rm -f $tmp/in
35999 if test x"$ac_file" != x-; then
36000 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36001 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36002echo "$as_me: $ac_file is unchanged" >&6;}
36003 else
36004 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36005$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36006 X"$ac_file" : 'X\(//\)[^/]' \| \
36007 X"$ac_file" : 'X\(//\)$' \| \
36008 X"$ac_file" : 'X\(/\)' \| \
36009 . : '\(.\)' 2>/dev/null ||
36010echo X"$ac_file" |
36011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36013 /^X\(\/\/\)$/{ s//\1/; q; }
36014 /^X\(\/\).*/{ s//\1/; q; }
36015 s/.*/./; q'`
36016 { if $as_mkdir_p; then
36017 mkdir -p "$ac_dir"
36018 else
36019 as_dir="$ac_dir"
36020 as_dirs=
36021 while test ! -d "$as_dir"; do
36022 as_dirs="$as_dir $as_dirs"
36023 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36024$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36025 X"$as_dir" : 'X\(//\)[^/]' \| \
36026 X"$as_dir" : 'X\(//\)$' \| \
36027 X"$as_dir" : 'X\(/\)' \| \
36028 . : '\(.\)' 2>/dev/null ||
36029echo X"$as_dir" |
36030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36032 /^X\(\/\/\)$/{ s//\1/; q; }
36033 /^X\(\/\).*/{ s//\1/; q; }
36034 s/.*/./; q'`
36035 done
36036 test ! -n "$as_dirs" || mkdir $as_dirs
36037 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36038echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36039 { (exit 1); exit 1; }; }; }
a0b9e27f 36040
e6cc62c6
VS
36041 rm -f $ac_file
36042 mv $tmp/config.h $ac_file
36043 fi
36044 else
36045 cat $tmp/config.h
36046 rm -f $tmp/config.h
36047 fi
36048done
36049_ACEOF
36050cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36051
e6cc62c6
VS
36052#
36053# CONFIG_COMMANDS section.
36054#
36055for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36056 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36057 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36058 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36059$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36060 X"$ac_dest" : 'X\(//\)[^/]' \| \
36061 X"$ac_dest" : 'X\(//\)$' \| \
36062 X"$ac_dest" : 'X\(/\)' \| \
36063 . : '\(.\)' 2>/dev/null ||
36064echo X"$ac_dest" |
36065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36067 /^X\(\/\/\)$/{ s//\1/; q; }
36068 /^X\(\/\).*/{ s//\1/; q; }
36069 s/.*/./; q'`
36070 ac_builddir=.
36071
36072if test "$ac_dir" != .; then
36073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36074 # A "../" for each directory in $ac_dir_suffix.
36075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36076else
36077 ac_dir_suffix= ac_top_builddir=
36078fi
36079
36080case $srcdir in
36081 .) # No --srcdir option. We are building in place.
36082 ac_srcdir=.
36083 if test -z "$ac_top_builddir"; then
36084 ac_top_srcdir=.
36085 else
36086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36087 fi ;;
36088 [\\/]* | ?:[\\/]* ) # Absolute path.
36089 ac_srcdir=$srcdir$ac_dir_suffix;
36090 ac_top_srcdir=$srcdir ;;
36091 *) # Relative path.
36092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36094esac
36095# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36096# absolute.
36097ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36098ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36099ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36100ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36101
36102
36103 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36104echo "$as_me: executing $ac_dest commands" >&6;}
36105 case $ac_dest in
36106 default )
652d930d 36107 if test ! -h wx-config; then
991a5759 36108 chmod +x wx-config
3a922bb4
RL
36109 mv wx-config wx${TOOLCHAIN_NAME}-config
36110 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36111 fi
665bbe97 36112
00cf1208
RR
36113 if test ! -d lib; then
36114 mkdir lib
36115 fi
36116 if test ! -d lib/wx; then
36117 mkdir lib/wx
36118 fi
36119 if test ! -d lib/wx/include; then
36120 mkdir lib/wx/include
36121 fi
3a922bb4
RL
36122 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36123 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36124 fi
3a922bb4
RL
36125 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36126 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36127 fi
36128 if test -f setup.h; then
3a922bb4 36129 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36130 fi
e6cc62c6
VS
36131 ;;
36132 esac
36133done
36134_ACEOF
2224580a 36135
e6cc62c6 36136cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36137
e6cc62c6
VS
36138{ (exit 0); exit 0; }
36139_ACEOF
36140chmod +x $CONFIG_STATUS
36141ac_clean_files=$ac_clean_files_save
36142
36143
36144# configure is writing to config.log, and then calls config.status.
36145# config.status does its own redirection, appending to config.log.
36146# Unfortunately, on DOS this fails, as config.log is still kept open
36147# by configure, so config.status won't be able to write to it; its
36148# output is simply discarded. So we exec the FD to /dev/null,
36149# effectively closing config.log, so it can be properly (re)opened and
36150# appended to by config.status. When coming back to configure, we
36151# need to make the FD available again.
36152if test "$no_create" != yes; then
36153 ac_cs_success=:
36154 ac_config_status_args=
36155 test "$silent" = yes &&
36156 ac_config_status_args="$ac_config_status_args --quiet"
36157 exec 5>/dev/null
36158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36159 exec 5>>config.log
36160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36161 # would make configure fail if this is the last instruction.
36162 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36163fi
36164
8284b0c5 36165
2b5f62a0
VZ
36166echo
36167echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36168echo ""
36169echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 36170echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
36171
36172echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36173echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36174echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36175
0c98a14e
GD
36176echo " What level of wxWindows compatibility should be enabled?"
36177echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
36178echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
36179echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 36180
2b5f62a0
VZ
36181echo " Which libraries should wxWindows use?"
36182echo " jpeg ${wxUSE_LIBJPEG-none}"
36183echo " png ${wxUSE_LIBPNG-none}"
36184echo " regex ${wxUSE_REGEX}"
36185echo " tiff ${wxUSE_LIBTIFF-none}"
36186echo " zlib ${wxUSE_ZLIB}"
fd3d7534 36187echo " odbc ${wxUSE_ODBC}"
2b5f62a0
VZ
36188
36189echo ""
36190